move 'randomize MAC' setting to firmware settings, and add setting for changing the MAC.

make things overall betterer.
This commit is contained in:
Arisotura
2021-11-19 13:31:14 +01:00
parent 1fc775d964
commit 1472a0ec4b
11 changed files with 335 additions and 129 deletions

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>511</width>
<height>196</height>
<height>342</height>
</rect>
</property>
<property name="sizePolicy">
@ -24,78 +24,134 @@
<enum>QLayout::SetFixedSize</enum>
</property>
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="1">
<widget class="QComboBox" name="cbxBirthdayDay"/>
</item>
<item row="0" column="0">
<widget class="QLabel" name="usernameLabel">
<property name="text">
<string>Username:</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Message:</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Color:</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Language:</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Birthday:</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QComboBox" name="cbxBirthdayMonth"/>
</item>
<item row="1" column="1" colspan="2">
<widget class="QComboBox" name="languageBox"/>
</item>
<item row="0" column="1" colspan="2">
<widget class="QLineEdit" name="usernameEdit">
<property name="text">
<string>melonDS</string>
</property>
<property name="maxLength">
<number>10</number>
</property>
<property name="clearButtonEnabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="QComboBox" name="colorsEdit"/>
</item>
<item row="4" column="1" colspan="2">
<widget class="QLineEdit" name="messageEdit"/>
</item>
<item row="5" column="0" colspan="3">
<widget class="QCheckBox" name="overrideFirmwareBox">
<property name="text">
<string>Override settings from external firmware</string>
</property>
</widget>
</item>
</layout>
<widget class="QGroupBox" name="grpGeneral">
<property name="title">
<string>General</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QCheckBox" name="overrideFirmwareBox">
<property name="text">
<string>Override settings from external firmware</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="grpUserSettings">
<property name="title">
<string>User settings</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>9</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<item row="2" column="1">
<widget class="QComboBox" name="cbxBirthdayDay"/>
</item>
<item row="2" column="2">
<widget class="QComboBox" name="cbxBirthdayMonth"/>
</item>
<item row="0" column="1" colspan="2">
<widget class="QLineEdit" name="usernameEdit">
<property name="text">
<string>melonDS</string>
</property>
<property name="maxLength">
<number>10</number>
</property>
<property name="clearButtonEnabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="usernameLabel">
<property name="text">
<string>Username:</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Message:</string>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="QComboBox" name="colorsEdit"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Color:</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Language:</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Birthday:</string>
</property>
</widget>
</item>
<item row="4" column="1" colspan="2">
<widget class="QLineEdit" name="messageEdit"/>
</item>
<item row="1" column="1" colspan="2">
<widget class="QComboBox" name="languageBox"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="grpWifiSettings">
<property name="title">
<string>Network settings</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>MAC address:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="txtMAC">
<property name="maxLength">
<number>17</number>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="cbRandomizeMAC">
<property name="text">
<string>Randomize</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="dialogButtons">