diff -r 33e7b9d3f91c -r ffe7432f716b src/eric7/MicroPython/WifiDialogs/WifiConnectionDialog.ui --- a/src/eric7/MicroPython/WifiDialogs/WifiConnectionDialog.ui Wed Aug 02 17:22:20 2023 +0200 +++ b/src/eric7/MicroPython/WifiDialogs/WifiConnectionDialog.ui Thu Aug 03 17:33:07 2023 +0200 @@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>400</width> - <height>138</height> + <height>202</height> </rect> </property> <property name="windowTitle"> @@ -24,7 +24,7 @@ </property> </widget> </item> - <item row="0" column="1" colspan="2"> + <item row="0" column="1" colspan="3"> <widget class="QLineEdit" name="ssidEdit"> <property name="toolTip"> <string>Enter the network name (SSID) to connect to</string> @@ -41,7 +41,7 @@ </property> </widget> </item> - <item row="1" column="1"> + <item row="1" column="1" colspan="2"> <widget class="QLineEdit" name="passwordEdit"> <property name="toolTip"> <string>Enter the network password</string> @@ -54,7 +54,7 @@ </property> </widget> </item> - <item row="1" column="2"> + <item row="1" column="3"> <widget class="QToolButton" name="showPasswordButton"> <property name="toolTip"> <string>Press to show the password</string> @@ -64,7 +64,57 @@ </property> </widget> </item> - <item row="2" column="0" colspan="3"> + <item row="2" column="0"> + <widget class="QLabel" name="label_3"> + <property name="text"> + <string>Hostname:</string> + </property> + </widget> + </item> + <item row="2" column="1" colspan="3"> + <widget class="EricHostnameInputWidget" name="hostnameEdit"> + <property name="toolTip"> + <string>Enter the host name for the device (leave empty for MicroPython &lt; 1.20).</string> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="countryLabel"> + <property name="text"> + <string>Country:</string> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QLineEdit" name="countryEdit"> + <property name="toolTip"> + <string>Enter the country code for the WiFi interface</string> + </property> + <property name="inputMask"> + <string notr="true">>AA;_</string> + </property> + <property name="maxLength"> + <number>2</number> + </property> + <property name="clearButtonEnabled"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="3" column="2" colspan="2"> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>222</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="4" column="0" colspan="4"> <widget class="QCheckBox" name="rememberCheckBox"> <property name="toolTip"> <string>Select to remember the entered connection parameters</string> @@ -74,7 +124,7 @@ </property> </widget> </item> - <item row="3" column="0" colspan="3"> + <item row="5" column="0" colspan="4"> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> @@ -86,10 +136,20 @@ </item> </layout> </widget> + <customwidgets> + <customwidget> + <class>EricHostnameInputWidget</class> + <extends>QLineEdit</extends> + <header>eric7/EricNetwork/EricHostnameInputWidget.h</header> + </customwidget> + </customwidgets> <tabstops> <tabstop>ssidEdit</tabstop> <tabstop>passwordEdit</tabstop> <tabstop>showPasswordButton</tabstop> + <tabstop>hostnameEdit</tabstop> + <tabstop>countryEdit</tabstop> + <tabstop>rememberCheckBox</tabstop> </tabstops> <resources/> <connections>