UI: More configurable items

UI part
master
wh201906 2 years ago
parent aaf6e52a12
commit 6926b2f170
No known key found for this signature in database

@ -1322,7 +1322,7 @@ void MainWindow::on_Set_Client_forceEnabledBox_stateChanged(int arg1)
setButtonsEnabled(true); setButtonsEnabled(true);
} }
void MainWindow::on_Set_GUI_setLanguageButton_clicked() void MainWindow::on_Set_UI_setLanguageButton_clicked()
{ {
Util::chooseLanguage(settings, this); Util::chooseLanguage(settings, this);
} }

@ -172,7 +172,7 @@ private slots:
void on_Set_Client_forceEnabledBox_stateChanged(int arg1); void on_Set_Client_forceEnabledBox_stateChanged(int arg1);
void on_Set_GUI_setLanguageButton_clicked(); void on_Set_UI_setLanguageButton_clicked();
void setButtonsEnabled(bool st); void setButtonsEnabled(bool st);

@ -2641,9 +2641,48 @@ or the communication between a tag and a reader.</string>
<attribute name="title"> <attribute name="title">
<string>Settings</string> <string>Settings</string>
</attribute> </attribute>
<layout class="QHBoxLayout" name="horizontalLayout_19"> <layout class="QVBoxLayout" name="horizontalLayout_19">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QScrollArea" name="Set_scrollArea">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="Set_scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1017</width>
<height>790</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_36">
<property name="spacing">
<number>0</number>
</property>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_12"> <layout class="QVBoxLayout" name="verticalLayout_12">
<property name="spacing">
<number>6</number>
</property>
<item> <item>
<widget class="QGroupBox" name="Set_clientGroupBox"> <widget class="QGroupBox" name="Set_clientGroupBox">
<property name="title"> <property name="title">
@ -2910,7 +2949,7 @@ or the communication between a tag and a reader.</string>
<item> <item>
<widget class="QGroupBox" name="groupBox_2"> <widget class="QGroupBox" name="groupBox_2">
<property name="title"> <property name="title">
<string>GUI</string> <string>UI</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_11"> <layout class="QVBoxLayout" name="verticalLayout_11">
<item> <item>
@ -2923,7 +2962,7 @@ or the communication between a tag and a reader.</string>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="Set_GUI_setLanguageButton"> <widget class="QPushButton" name="Set_UI_setLanguageButton">
<property name="text"> <property name="text">
<string>Choose Language</string> <string>Choose Language</string>
</property> </property>
@ -2951,6 +2990,200 @@ or the communication between a tag and a reader.</string>
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QWidget" name="opacityWidget" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_31">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_70">
<property name="text">
<string>Opacity:</string>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="Set_UI_Opacity_slider">
<property name="minimum">
<number>10</number>
</property>
<property name="maximum">
<number>100</number>
</property>
<property name="value">
<number>100</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::TicksBelow</enum>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="Set_UI_Opacity_Box">
<property name="minimum">
<number>10</number>
</property>
<property name="maximum">
<number>100</number>
</property>
<property name="value">
<number>100</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_32">
<item>
<widget class="QLabel" name="label_71">
<property name="text">
<string>Theme:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="Set_UI_Theme_nameBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="Set_UI_Theme_setButton">
<property name="text">
<string>Set</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_17">
<property name="text">
<string>(Restart this app to use new theme)</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_33">
<item>
<widget class="QLabel" name="label_72">
<property name="text">
<string>Global Font:</string>
</property>
</widget>
</item>
<item>
<widget class="QFontComboBox" name="Set_UI_Font_nameBox"/>
</item>
<item>
<widget class="QSpinBox" name="Set_UI_Font_sizeBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>9</number>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="Set_UI_Font_setButton">
<property name="text">
<string>Set</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_34">
<item>
<widget class="QLabel" name="label_73">
<property name="text">
<string>Data Font:</string>
</property>
</widget>
</item>
<item>
<widget class="QFontComboBox" name="Set_UI_DataFont_nameBox"/>
</item>
<item>
<widget class="QSpinBox" name="Set_UI_DataFont_sizeBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>9</number>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="Set_UI_DataFont_setButton">
<property name="text">
<string>Set</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_35">
<item>
<widget class="QLabel" name="label_74">
<property name="text">
<string>Command Font:</string>
</property>
</widget>
</item>
<item>
<widget class="QFontComboBox" name="Set_UI_CMDFont_nameBox"/>
</item>
<item>
<widget class="QSpinBox" name="Set_UI_CMDFont_sizeBox">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>9</number>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="Set_UI_CMDFont_setButton">
<property name="text">
<string>Set</string>
</property>
</widget>
</item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -3051,6 +3284,10 @@ or the communication between a tag and a reader.</string>
</item> </item>
</layout> </layout>
</widget> </widget>
</widget>
</item>
</layout>
</widget>
<widget class="QStatusBar" name="statusbar"> <widget class="QStatusBar" name="statusbar">
<property name="sizeGripEnabled"> <property name="sizeGripEnabled">
<bool>true</bool> <bool>true</bool>

Loading…
Cancel
Save