qt: tabs to network interface settings.

This commit is contained in:
ts-korhonen
2023-02-14 09:12:23 +02:00
parent 1ad8d1870b
commit e7fec886d0
2 changed files with 430 additions and 300 deletions

View File

@@ -6,20 +6,20 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>831</width> <width>800</width>
<height>595</height> <height>570</height>
</rect> </rect>
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>831</width> <width>800</width>
<height>595</height> <height>570</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>831</width> <width>800</width>
<height>595</height> <height>570</height>
</size> </size>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@@ -29,6 +29,12 @@
<item> <item>
<widget class="QWidget" name="widget" native="true"> <widget class="QWidget" name="widget" native="true">
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,3"> <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,3">
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<item> <item>
<widget class="QListView" name="listView"> <widget class="QListView" name="listView">
<property name="viewMode"> <property name="viewMode">

View File

@@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>548</width> <width>548</width>
<height>458</height> <height>488</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@@ -27,302 +27,426 @@
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="QGroupBox" name="groupBox"> <widget class="QTabWidget" name="tabWidget">
<property name="title"> <property name="currentIndex">
<string>Network Interface Contollers</string> <number>0</number>
</property> </property>
<layout class="QGridLayout" name="gridLayout_3"> <widget class="QWidget" name="tab_1">
<item row="0" column="4"> <attribute name="title">
<widget class="QLabel" name="label_7"> <string>Network Card #1</string>
<property name="sizePolicy"> </attribute>
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> <layout class="QGridLayout" name="gridLayout_3">
<horstretch>0</horstretch> <item row="2" column="1">
<verstretch>0</verstretch> <widget class="QComboBox" name="comboBoxNIC1">
</sizepolicy> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<property name="text"> <horstretch>0</horstretch>
<string>Adapter</string> <verstretch>0</verstretch>
</property> </sizepolicy>
</widget> </property>
</item> <property name="sizeAdjustPolicy">
<item row="4" column="3"> <enum>QComboBox::AdjustToContents</enum>
<widget class="QComboBox" name="comboBoxIntf4"> </property>
<property name="sizePolicy"> </widget>
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> </item>
<horstretch>0</horstretch> <item row="2" column="0">
<verstretch>0</verstretch> <widget class="QLabel" name="label_7">
</sizepolicy> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
</widget> <horstretch>0</horstretch>
</item> <verstretch>0</verstretch>
<item row="3" column="3"> </sizepolicy>
<widget class="QComboBox" name="comboBoxIntf3"> </property>
<property name="sizePolicy"> <property name="text">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <string>Adapter</string>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> </widget>
</sizepolicy> </item>
</property> <item row="0" column="1" colspan="2">
</widget> <widget class="QComboBox" name="comboBoxNet1">
</item> <property name="sizePolicy">
<item row="3" column="5"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<widget class="QPushButton" name="pushButtonConf3"> <horstretch>0</horstretch>
<property name="sizePolicy"> <verstretch>0</verstretch>
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> </sizepolicy>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> </widget>
</sizepolicy> </item>
</property> <item row="2" column="2">
<property name="text"> <widget class="QPushButton" name="pushButtonConf1">
<string>Configure</string> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
</widget> <horstretch>0</horstretch>
</item> <verstretch>0</verstretch>
<item row="1" column="2"> </sizepolicy>
<widget class="QComboBox" name="comboBoxNet1"> </property>
<property name="sizePolicy"> <property name="text">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <string>Configure</string>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> </widget>
</sizepolicy> </item>
</property> <item row="1" column="0">
</widget> <widget class="QLabel" name="label_2">
</item> <property name="sizePolicy">
<item row="3" column="0"> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<widget class="QLabel" name="label_6"> <horstretch>0</horstretch>
<property name="sizePolicy"> <verstretch>0</verstretch>
<sizepolicy hsizetype="Maximum" vsizetype="Preferred"> </sizepolicy>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> <property name="text">
</sizepolicy> <string>Interface</string>
</property> </property>
<property name="text"> </widget>
<string>Card 3:</string> </item>
</property> <item row="0" column="0">
</widget> <widget class="QLabel" name="label">
</item> <property name="sizePolicy">
<item row="4" column="4"> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<widget class="QComboBox" name="comboBoxNIC4"> <horstretch>0</horstretch>
<property name="sizePolicy"> <verstretch>0</verstretch>
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> </sizepolicy>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> <property name="text">
</sizepolicy> <string>Mode</string>
</property> </property>
<property name="sizeAdjustPolicy"> </widget>
<enum>QComboBox::AdjustToContents</enum> </item>
</property> <item row="1" column="1" colspan="2">
</widget> <widget class="QComboBox" name="comboBoxIntf1">
</item> <property name="sizePolicy">
<item row="1" column="0"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<widget class="QLabel" name="label_3"> <horstretch>0</horstretch>
<property name="sizePolicy"> <verstretch>0</verstretch>
<sizepolicy hsizetype="Maximum" vsizetype="Preferred"> </sizepolicy>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> </widget>
</sizepolicy> </item>
</property> <item row="3" column="1">
<property name="text"> <spacer name="verticalSpacer_2">
<string>Card 1:</string> <property name="orientation">
</property> <enum>Qt::Vertical</enum>
</widget> </property>
</item> <property name="sizeHint" stdset="0">
<item row="0" column="3"> <size>
<widget class="QLabel" name="label_2"> <width>20</width>
<property name="sizePolicy"> <height>40</height>
<sizepolicy hsizetype="Maximum" vsizetype="Preferred"> </size>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> </spacer>
</sizepolicy> </item>
</property> </layout>
<property name="text"> </widget>
<string>Interface</string> <widget class="QWidget" name="tab_2">
</property> <attribute name="title">
</widget> <string>Network Card #2</string>
</item> </attribute>
<item row="1" column="4"> <layout class="QGridLayout" name="gridLayout">
<widget class="QComboBox" name="comboBoxNIC1"> <item row="1" column="0">
<property name="sizePolicy"> <widget class="QLabel" name="label_9">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <property name="sizePolicy">
<horstretch>0</horstretch> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<verstretch>0</verstretch> <horstretch>0</horstretch>
</sizepolicy> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="sizeAdjustPolicy"> </property>
<enum>QComboBox::AdjustToContents</enum> <property name="text">
</property> <string>Interface</string>
</widget> </property>
</item> </widget>
<item row="1" column="5"> </item>
<widget class="QPushButton" name="pushButtonConf1"> <item row="0" column="0">
<property name="sizePolicy"> <widget class="QLabel" name="label_8">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <property name="sizePolicy">
<horstretch>0</horstretch> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<verstretch>0</verstretch> <horstretch>0</horstretch>
</sizepolicy> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="text"> </property>
<string>Configure</string> <property name="text">
</property> <string>Mode</string>
</widget> </property>
</item> </widget>
<item row="3" column="4"> </item>
<widget class="QComboBox" name="comboBoxNIC3"> <item row="2" column="0">
<property name="sizePolicy"> <widget class="QLabel" name="label_10">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <property name="sizePolicy">
<horstretch>0</horstretch> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<verstretch>0</verstretch> <horstretch>0</horstretch>
</sizepolicy> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="sizeAdjustPolicy"> </property>
<enum>QComboBox::AdjustToContents</enum> <property name="text">
</property> <string>Adapter</string>
</widget> </property>
</item> </widget>
<item row="4" column="2"> </item>
<widget class="QComboBox" name="comboBoxNet4"> <item row="2" column="1">
<property name="sizePolicy"> <widget class="QComboBox" name="comboBoxNIC2">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <property name="sizePolicy">
<horstretch>0</horstretch> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<verstretch>0</verstretch> <horstretch>0</horstretch>
</sizepolicy> <verstretch>0</verstretch>
</property> </sizepolicy>
</widget> </property>
</item> <property name="sizeAdjustPolicy">
<item row="4" column="0"> <enum>QComboBox::AdjustToContents</enum>
<widget class="QLabel" name="label_5"> </property>
<property name="sizePolicy"> </widget>
<sizepolicy hsizetype="Maximum" vsizetype="Preferred"> </item>
<horstretch>0</horstretch> <item row="0" column="1" colspan="2">
<verstretch>0</verstretch> <widget class="QComboBox" name="comboBoxNet2">
</sizepolicy> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<property name="text"> <horstretch>0</horstretch>
<string>Card 4:</string> <verstretch>0</verstretch>
</property> </sizepolicy>
</widget> </property>
</item> </widget>
<item row="0" column="2"> </item>
<widget class="QLabel" name="label"> <item row="1" column="1" colspan="2">
<property name="sizePolicy"> <widget class="QComboBox" name="comboBoxIntf2">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred"> <property name="sizePolicy">
<horstretch>0</horstretch> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<verstretch>0</verstretch> <horstretch>0</horstretch>
</sizepolicy> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="text"> </property>
<string>Mode</string> </widget>
</property> </item>
</widget> <item row="2" column="2">
</item> <widget class="QPushButton" name="pushButtonConf2">
<item row="2" column="0"> <property name="text">
<widget class="QLabel" name="label_4"> <string>Configure</string>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Maximum" vsizetype="Preferred"> </widget>
<horstretch>0</horstretch> </item>
<verstretch>0</verstretch> <item row="3" column="1">
</sizepolicy> <spacer name="verticalSpacer">
</property> <property name="orientation">
<property name="text"> <enum>Qt::Vertical</enum>
<string>Card 2:</string> </property>
</property> <property name="sizeHint" stdset="0">
</widget> <size>
</item> <width>20</width>
<item row="3" column="2"> <height>40</height>
<widget class="QComboBox" name="comboBoxNet3"> </size>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> </spacer>
<horstretch>0</horstretch> </item>
<verstretch>0</verstretch> </layout>
</sizepolicy> </widget>
</property> <widget class="QWidget" name="tab_3">
</widget> <attribute name="title">
</item> <string>Network Card #3</string>
<item row="2" column="2"> </attribute>
<widget class="QComboBox" name="comboBoxNet2"> <layout class="QGridLayout" name="gridLayout_2">
<property name="sizePolicy"> <item row="0" column="1" colspan="2">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <widget class="QComboBox" name="comboBoxNet3">
<horstretch>0</horstretch> <property name="sizePolicy">
<verstretch>0</verstretch> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
</sizepolicy> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
</widget> </sizepolicy>
</item> </property>
<item row="2" column="5"> </widget>
<widget class="QPushButton" name="pushButtonConf2"> </item>
<property name="sizePolicy"> <item row="2" column="0">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <widget class="QLabel" name="label_13">
<horstretch>0</horstretch> <property name="sizePolicy">
<verstretch>0</verstretch> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
</sizepolicy> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="text"> </sizepolicy>
<string>Configure</string> </property>
</property> <property name="text">
</widget> <string>Adapter</string>
</item> </property>
<item row="4" column="5"> </widget>
<widget class="QPushButton" name="pushButtonConf4"> </item>
<property name="sizePolicy"> <item row="0" column="0">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <widget class="QLabel" name="label_11">
<horstretch>0</horstretch> <property name="sizePolicy">
<verstretch>0</verstretch> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
</sizepolicy> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="text"> </sizepolicy>
<string>Configure</string> </property>
</property> <property name="text">
</widget> <string>Mode</string>
</item> </property>
<item row="1" column="3"> </widget>
<widget class="QComboBox" name="comboBoxIntf1"> </item>
<property name="sizePolicy"> <item row="1" column="0">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <widget class="QLabel" name="label_12">
<horstretch>0</horstretch> <property name="sizePolicy">
<verstretch>0</verstretch> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
</sizepolicy> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
</widget> </sizepolicy>
</item> </property>
<item row="2" column="3"> <property name="text">
<widget class="QComboBox" name="comboBoxIntf2"> <string>Interface</string>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> </widget>
<horstretch>0</horstretch> </item>
<verstretch>0</verstretch> <item row="1" column="1" colspan="2">
</sizepolicy> <widget class="QComboBox" name="comboBoxIntf3">
</property> <property name="sizePolicy">
</widget> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
</item> <horstretch>0</horstretch>
<item row="2" column="4"> <verstretch>0</verstretch>
<widget class="QComboBox" name="comboBoxNIC2"> </sizepolicy>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> </widget>
<horstretch>0</horstretch> </item>
<verstretch>0</verstretch> <item row="2" column="2">
</sizepolicy> <widget class="QPushButton" name="pushButtonConf3">
</property> <property name="sizePolicy">
<property name="sizeAdjustPolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<enum>QComboBox::AdjustToContents</enum> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
</widget> </sizepolicy>
</item> </property>
</layout> <property name="text">
<string>Configure</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="comboBoxNIC3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
</widget>
</item>
<item row="3" column="1">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>Network Card #4</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_4">
<item row="2" column="1">
<widget class="QComboBox" name="comboBoxNIC4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QPushButton" name="pushButtonConf4">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Configure</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QComboBox" name="comboBoxNet4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_15">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Interface</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_16">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Adapter</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QComboBox" name="comboBoxIntf4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_14">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Mode</string>
</property>
</widget>
</item>
<item row="3" column="1">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget> </widget>
</item> </item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</widget> </widget>
<resources/> <resources/>