More QStackedWidgets; more space to read, option to leave menu bar there

when reading.
This commit is contained in:
Nicolas Mailloux 2021-03-27 00:10:49 -04:00
parent 11bd0e7ae5
commit 915a69fdcc
6 changed files with 1254 additions and 1153 deletions

View file

@ -118,6 +118,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QStackedWidget" name="stackedWidget"> <widget class="QStackedWidget" name="stackedWidget">
<property name="currentIndex"> <property name="currentIndex">
@ -156,6 +169,22 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="1" column="0">
<widget class="QLabel" name="quoteHeadingLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Author's quote</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="5" column="0"> <item row="5" column="0">
<layout class="QGridLayout" name="gridLayout_4"> <layout class="QGridLayout" name="gridLayout_4">
<property name="bottomMargin"> <property name="bottomMargin">
@ -248,35 +277,6 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="1" column="0">
<widget class="QLabel" name="quoteHeadingLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Author's quote</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="0" column="0">
<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>
<item row="4" column="0"> <item row="4" column="0">
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<property name="bottomMargin"> <property name="bottomMargin">
@ -326,7 +326,7 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="6" column="0"> <item row="0" column="0">
<spacer name="verticalSpacer_4"> <spacer name="verticalSpacer_4">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
@ -346,6 +346,19 @@
<widget class="QWidget" name="page_2"/> <widget class="QWidget" name="page_2"/>
</widget> </widget>
</item> </item>
<item>
<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>
<item> <item>
<widget class="Line" name="line_4"> <widget class="Line" name="line_4">
<property name="frameShadow"> <property name="frameShadow">

View file

@ -100,49 +100,21 @@ reader::reader(QWidget *parent) :
ui->sizeValueLabel->setStyleSheet("font-size: 9pt"); ui->sizeValueLabel->setStyleSheet("font-size: 9pt");
ui->homeBtn->setStyleSheet("font-size: 9pt"); ui->homeBtn->setStyleSheet("font-size: 9pt");
ui->aboutBtn->setStyleSheet("font-size: 9pt"); ui->aboutBtn->setStyleSheet("font-size: 9pt");
ui->fontChooser->setStyleSheet("font-size: 9pt");
// Hiding the menubar + definition widget // Hiding the menubar + definition widget + brightness widget
ui->inkboxLabel->hide();
ui->hideOptionsBtn->hide(); ui->hideOptionsBtn->hide();
ui->line_4->hide(); ui->brightnessWidget->hide();
ui->line_5->hide(); ui->menuBarWidget->hide();
ui->line_6->hide(); ui->wordWidget->hide();
ui->line_7->hide(); if(checkconfig(".config/11-menubar/sticky") == true) {
ui->line_8->hide(); ui->spacerWidget->show();
ui->line_9->hide(); ui->statusBarWidget->show();
ui->line_10->hide(); }
ui->line_11->hide(); else {
ui->line_12->hide(); ui->spacerWidget->hide();
ui->line_13->hide(); ui->statusBarWidget->hide();
ui->line_14->hide(); }
ui->timeLabel->hide();
ui->brightnessDecBtn->hide();
ui->brightnessIncBtn->hide();
ui->brightnessLabel->hide();
ui->brightnessStatus->hide();
ui->homeBtn->hide();
ui->aboutBtn->hide();
ui->batteryLabel->hide();
ui->batteryIconLabel->hide();
ui->fontChooser->hide();
ui->fontLabel->hide();
ui->styleLabel->hide();
ui->alignmentLabel->hide();
ui->alignJustifyBtn->hide();
ui->alignCenterBtn->hide();
ui->alignLeftBtn->hide();
ui->alignRightBtn->hide();
ui->sizeLabel->hide();
ui->sizeSlider->hide();
ui->sizeValueLabel->hide();
ui->infoCloseBtn->hide();
ui->saveWordBtn->hide();
ui->previousDefinitionBtn->hide();
ui->nextDefinitionBtn->hide();
ui->definitionLabel->hide();
ui->wordSearchLabel->hide();
ui->wordLabel->hide();
ui->definitionStatusLabel->hide();
// Getting brightness level // Getting brightness level
int brightness_value = get_brightness(); int brightness_value = get_brightness();
@ -545,125 +517,58 @@ void reader::menubar_show() {
} }
} }
ui->inkboxLabel->show();
ui->hideOptionsBtn->show(); ui->hideOptionsBtn->show();
ui->optionsBtn->hide(); ui->optionsBtn->hide();
ui->line_4->show(); ui->menuBarWidget->show();
ui->line_5->show(); ui->statusBarWidget->show();
ui->line_6->show();
ui->line_7->show(); string_checkconfig("/opt/inkbox_device");
ui->line_8->show(); if(checkconfig_str_val == "n705\n") {
ui->line_9->show(); ;
ui->line_10->show(); }
ui->line_11->show(); else {
ui->timeLabel->show(); ui->brightnessWidget->show();
ui->brightnessDecBtn->show(); }
ui->brightnessIncBtn->show();
ui->brightnessLabel->show();
ui->brightnessStatus->show();
ui->aboutBtn->show();
ui->homeBtn->show();
ui->batteryLabel->show();
ui->batteryIconLabel->show();
ui->fontChooser->show();
ui->fontLabel->show();
ui->styleLabel->show();
ui->alignmentLabel->show();
ui->alignJustifyBtn->show();
ui->alignCenterBtn->show();
ui->alignLeftBtn->show();
ui->alignRightBtn->show();
ui->sizeLabel->show();
ui->sizeSlider->show();
ui->sizeValueLabel->show();
menubar_shown = true; menubar_shown = true;
} }
void reader::menubar_hide() { void reader::menubar_hide() {
ui->inkboxLabel->hide(); string_checkconfig("/opt/inkbox_device");
if(checkconfig_str_val == "n705\n") {
;
}
else {
ui->brightnessWidget->hide();
}
ui->hideOptionsBtn->hide(); ui->hideOptionsBtn->hide();
ui->line_4->hide();
ui->line_5->hide();
ui->line_6->hide();
ui->line_7->hide();
ui->line_8->hide();
ui->line_9->hide();
ui->line_10->hide();
ui->line_11->hide();
ui->optionsBtn->show(); ui->optionsBtn->show();
ui->timeLabel->hide(); ui->menuBarWidget->hide();
ui->brightnessDecBtn->hide(); if(checkconfig(".config/11-menubar/sticky") == true) {
ui->brightnessIncBtn->hide(); ui->spacerWidget->show();
ui->brightnessLabel->hide(); ui->statusBarWidget->show();
ui->brightnessStatus->hide(); }
ui->aboutBtn->hide(); else {
ui->homeBtn->hide(); ui->spacerWidget->hide();
ui->batteryLabel->hide(); ui->statusBarWidget->hide();
ui->batteryIconLabel->hide(); }
ui->fontChooser->hide();
ui->fontLabel->hide();
ui->styleLabel->hide();
ui->alignmentLabel->hide();
ui->alignJustifyBtn->hide();
ui->alignCenterBtn->hide();
ui->alignLeftBtn->hide();
ui->alignRightBtn->hide();
ui->sizeLabel->hide();
ui->sizeSlider->hide();
ui->sizeValueLabel->hide();
menubar_shown = false; menubar_shown = false;
} }
void reader::wordwidget_show() { void reader::wordwidget_show() {
if(menubar_shown == true) { if(menubar_shown == true) {
menubar_hide(); menubar_hide();
ui->optionsBtn->hide();
ui->hideOptionsBtn->hide(); ui->hideOptionsBtn->hide();
ui->infoCloseBtn->show(); ui->wordWidget->show();
ui->saveWordBtn->show();
ui->previousDefinitionBtn->show();
ui->nextDefinitionBtn->show();
ui->definitionLabel->show();
ui->wordSearchLabel->show();
ui->wordLabel->show();
ui->definitionStatusLabel->show();
ui->line->hide();
ui->line_12->show();
ui->line_13->show();
ui->line_14->show();
} }
else { else {
ui->optionsBtn->hide();
ui->hideOptionsBtn->hide(); ui->hideOptionsBtn->hide();
ui->infoCloseBtn->show(); ui->wordWidget->show();
ui->saveWordBtn->show();
ui->definitionLabel->show();
ui->definitionStatusLabel->show();
ui->previousDefinitionBtn->show();
ui->nextDefinitionBtn->show();
ui->wordSearchLabel->show();
ui->wordLabel->show();
ui->line_13->show();
ui->line_12->show();
ui->line->hide();
ui->line_14->show();
} }
} }
void reader::wordwidget_hide() { void reader::wordwidget_hide() {
ui->infoCloseBtn->hide(); ui->wordWidget->hide();
ui->saveWordBtn->hide();
ui->definitionLabel->hide();
ui->wordSearchLabel->hide();
ui->wordLabel->hide();
ui->line_12->hide();
ui->line_13->hide();
ui->line_14->hide();
ui->line->show();
ui->optionsBtn->show();
ui->previousDefinitionBtn->hide();
ui->nextDefinitionBtn->hide();
ui->definitionStatusLabel->hide();
selected_text_lock = false; selected_text_lock = false;
} }

775
reader.ui
View file

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>472</width> <width>490</width>
<height>620</height> <height>693</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -16,8 +16,8 @@
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="9" column="0"> <item row="10" column="0">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer_2">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
@ -29,7 +29,226 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="12" column="0"> <item row="1" column="0">
<widget class="QStackedWidget" name="statusBarWidget">
<widget class="QWidget" name="page_3">
<layout class="QVBoxLayout" name="verticalLayout_3">
<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>
<layout class="QGridLayout" name="gridLayout_3">
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="inkboxLabel">
<property name="text">
<string>InkBox</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="2">
<widget class="QLabel" name="timeLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>time</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_5">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>4</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QStackedWidget" name="spacerWidget">
<widget class="QWidget" name="page_10">
<layout class="QVBoxLayout" name="verticalLayout_5">
<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>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>37</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_11"/>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_5"/>
</widget>
</item>
<item row="17" column="0">
<widget class="Line" name="line_2">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="13" column="0">
<widget class="QStackedWidget" name="wordWidget">
<widget class="QWidget" name="page_8">
<layout class="QVBoxLayout" name="verticalLayout_4">
<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="Line" name="line_12">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>8</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_5">
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="1" column="3">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="saveWordBtn">
<property name="text">
<string>Save</string>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="QPushButton" name="infoCloseBtn">
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="wordSearchLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Word search</string>
</property>
</widget>
</item>
<item row="1" column="1">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_12"> <layout class="QGridLayout" name="gridLayout_12">
<property name="bottomMargin"> <property name="bottomMargin">
<number>0</number> <number>0</number>
@ -200,232 +419,7 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="5" column="0"> <item>
<layout class="QGridLayout" name="gridLayout_7">
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="3">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="aboutBtn">
<property name="text">
<string> About </string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="Line" name="line_7">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>1</number>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item row="0" column="5">
<widget class="QLabel" name="batteryLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Battery</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="homeBtn">
<property name="text">
<string> Home </string>
</property>
</widget>
</item>
<item row="0" column="6">
<widget class="QLabel" name="batteryIconLabel">
<property name="text">
<string>Battery Icon</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="4" column="0">
<widget class="Line" name="line_6">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_3">
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="2">
<widget class="QLabel" name="timeLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>time</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="inkboxLabel">
<property name="text">
<string>InkBox</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="10" column="0">
<widget class="Line" name="line_12">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>8</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="Line" name="line_4">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>4</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="11" column="0">
<layout class="QGridLayout" name="gridLayout_5">
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="0" column="1">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="4">
<widget class="QPushButton" name="infoCloseBtn">
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="wordSearchLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Word search</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="saveWordBtn">
<property name="text">
<string>Save</string>
</property>
</widget>
</item>
<item row="0" column="3">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="Line" name="line_5">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="13" column="0">
<widget class="Line" name="line_13"> <widget class="Line" name="line_13">
<property name="frameShadow"> <property name="frameShadow">
<enum>QFrame::Plain</enum> <enum>QFrame::Plain</enum>
@ -438,8 +432,79 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="14" column="0"> </layout>
<widget class="Line" name="line_2"> </widget>
<widget class="QWidget" name="page_9"/>
</widget>
</item>
<item row="3" column="0">
<widget class="QStackedWidget" name="brightnessWidget">
<property name="lineWidth">
<number>0</number>
</property>
<widget class="QWidget" name="page_12">
<layout class="QVBoxLayout" name="verticalLayout_6">
<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>
<layout class="QGridLayout" name="gridLayout_6">
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<item row="1" column="0">
<widget class="QPushButton" name="brightnessDecBtn">
<property name="text">
<string>―</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="brightnessIncBtn">
<property name="text">
<string> + </string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="brightnessLabel">
<property name="font">
<font>
<family>Chivo</family>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Brightness</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QProgressBar" name="brightnessStatus">
<property name="value">
<number>24</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_8">
<property name="frameShadow"> <property name="frameShadow">
<enum>QFrame::Plain</enum> <enum>QFrame::Plain</enum>
</property> </property>
@ -451,7 +516,12 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0"> </layout>
</widget>
<widget class="QWidget" name="page_13"/>
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="text"> <widget class="QLabel" name="text">
<property name="font"> <property name="font">
<font> <font>
@ -470,20 +540,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="0"> <item row="18" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="15" column="0">
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="4"> <item row="0" column="4">
<widget class="Line" name="line_3"> <widget class="Line" name="line_3">
@ -559,7 +616,66 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="3" column="0"> <item row="12" column="0">
<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>
<item row="8" column="0">
<widget class="QStackedWidget" name="menuBarWidget">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="page">
<layout class="QVBoxLayout" name="verticalLayout_2">
<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>
<layout class="QGridLayout" name="gridLayout_16">
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item row="4" column="0">
<widget class="Line" name="line_4">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>4</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_8"> <layout class="QGridLayout" name="gridLayout_8">
<property name="bottomMargin"> <property name="bottomMargin">
<number>0</number> <number>0</number>
@ -580,7 +696,9 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> </layout>
</item>
<item row="1" column="0">
<layout class="QGridLayout" name="gridLayout_10"> <layout class="QGridLayout" name="gridLayout_10">
<property name="bottomMargin"> <property name="bottomMargin">
<number>0</number> <number>0</number>
@ -626,13 +744,40 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="1" column="0">
<widget class="QLabel" name="alignmentLabel"> <widget class="QLabel" name="sizeLabel">
<property name="text"> <property name="text">
<string>Alignment:</string> <string>Size:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1">
<layout class="QGridLayout" name="gridLayout_11">
<item row="0" column="0">
<widget class="QSlider" name="sizeSlider">
<property name="maximum">
<number>4</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="value">
<number>0</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="sizeValueLabel">
<property name="text">
<string>Value</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="1"> <item row="2" column="1">
<layout class="QGridLayout" name="gridLayout_4"> <layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="4"> <item row="0" column="4">
@ -713,44 +858,17 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="1" column="0"> <item row="2" column="0">
<widget class="QLabel" name="sizeLabel"> <widget class="QLabel" name="alignmentLabel">
<property name="text"> <property name="text">
<string>Size:</string> <string>Alignment:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<layout class="QGridLayout" name="gridLayout_11">
<item row="0" column="0">
<widget class="QSlider" name="sizeSlider">
<property name="maximum">
<number>4</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="value">
<number>0</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="sizeValueLabel">
<property name="text">
<string>Value</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
</layout> <item row="2" column="0">
</item> <widget class="Line" name="line_6">
<item row="0" column="0">
<widget class="Line" name="line_8">
<property name="frameShadow"> <property name="frameShadow">
<enum>QFrame::Plain</enum> <enum>QFrame::Plain</enum>
</property> </property>
@ -762,50 +880,68 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="3" column="0">
</item> <layout class="QGridLayout" name="gridLayout_7">
<item row="2" column="0"> <property name="bottomMargin">
<layout class="QGridLayout" name="gridLayout_6">
<property name="topMargin">
<number>0</number> <number>0</number>
</property> </property>
<property name="rightMargin"> <item row="0" column="5">
<number>0</number> <widget class="QLabel" name="batteryLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property> </property>
<item row="1" column="1"> <property name="text">
<widget class="QProgressBar" name="brightnessStatus"> <string>Battery</string>
<property name="value">
<number>24</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="0" column="0">
<widget class="QPushButton" name="brightnessDecBtn"> <widget class="QPushButton" name="homeBtn">
<property name="text"> <property name="text">
<string>―</string> <string> Home </string>
</property>
</widget>
</item>
<item row="0" column="3">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="6">
<widget class="QLabel" name="batteryIconLabel">
<property name="text">
<string>Battery Icon</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="aboutBtn">
<property name="text">
<string> About </string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QLabel" name="brightnessLabel"> <widget class="Line" name="line_7">
<property name="font"> <property name="frameShadow">
<font> <enum>QFrame::Plain</enum>
<family>Chivo</family>
<italic>true</italic>
</font>
</property> </property>
<property name="text"> <property name="lineWidth">
<string>Brightness</string> <number>1</number>
</property> </property>
<property name="alignment"> <property name="orientation">
<set>Qt::AlignCenter</set> <enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="brightnessIncBtn">
<property name="text">
<string> + </string>
</property> </property>
</widget> </widget>
</item> </item>
@ -815,6 +951,13 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="page_4"/>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>

View file

@ -28,6 +28,7 @@ settings::settings(QWidget *parent) :
ui->updateBtn->setProperty("type", "borderless"); ui->updateBtn->setProperty("type", "borderless");
ui->previousBtn->setProperty("type", "borderless"); ui->previousBtn->setProperty("type", "borderless");
ui->nextBtn->setProperty("type", "borderless"); ui->nextBtn->setProperty("type", "borderless");
ui->aboutBtn->setStyleSheet("font-size: 9pt");
ui->requestLeaseBtn->setStyleSheet("font-size: 9pt"); ui->requestLeaseBtn->setStyleSheet("font-size: 9pt");
ui->usbmsBtn->setStyleSheet("font-size: 9pt"); ui->usbmsBtn->setStyleSheet("font-size: 9pt");
ui->updateBtn->setStyleSheet("font-size: 9pt"); ui->updateBtn->setStyleSheet("font-size: 9pt");
@ -67,6 +68,8 @@ settings::settings(QWidget *parent) :
if(checkconfig(".config/10-dark_mode/config") == true) { if(checkconfig(".config/10-dark_mode/config") == true) {
ui->darkModeCheckBox->click(); ui->darkModeCheckBox->click();
} }
// Words number
string_checkconfig(".config/07-words_number/config"); string_checkconfig(".config/07-words_number/config");
if(checkconfig_str_val == "") { if(checkconfig_str_val == "") {
; ;
@ -75,6 +78,12 @@ settings::settings(QWidget *parent) :
int words_number = checkconfig_str_val.toInt(); int words_number = checkconfig_str_val.toInt();
ui->wordsNumber->setValue(words_number); ui->wordsNumber->setValue(words_number);
} }
// Sticky menubar
if(checkconfig(".config/11-menubar/sticky") == true) {
ui->menuBarCheckBox->click();
}
// Scaling // Scaling
string_checkconfig(".config/09-dpi/config"); string_checkconfig(".config/09-dpi/config");
if(checkconfig_str_val == "") { if(checkconfig_str_val == "") {
@ -287,6 +296,7 @@ void settings::on_previousBtn_clicked()
ui->wordsNumber->show(); ui->wordsNumber->show();
ui->wordsNumberLabel->show(); ui->wordsNumberLabel->show();
ui->clockCheckBox->show(); ui->clockCheckBox->show();
ui->menuBarCheckBox->show();
ui->line_9->hide(); ui->line_9->hide();
ui->softwareLabel->hide(); ui->softwareLabel->hide();
@ -324,6 +334,7 @@ void settings::on_previousBtn_clicked()
ui->label_7->hide(); ui->label_7->hide();
ui->line_8->hide(); ui->line_8->hide();
ui->clockCheckBox->hide(); ui->clockCheckBox->hide();
ui->menuBarCheckBox->hide();
ui->demoCheckBox->hide(); ui->demoCheckBox->hide();
ui->quoteCheckBox->hide(); ui->quoteCheckBox->hide();
if(checkconfig("/opt/inkbox_genuine") == true) { if(checkconfig("/opt/inkbox_genuine") == true) {
@ -362,6 +373,7 @@ void settings::on_nextBtn_clicked()
ui->demoCheckBox->hide(); ui->demoCheckBox->hide();
ui->quoteCheckBox->hide(); ui->quoteCheckBox->hide();
ui->clockCheckBox->hide(); ui->clockCheckBox->hide();
ui->menuBarCheckBox->hide();
ui->wordsNumber->hide(); ui->wordsNumber->hide();
ui->wordsNumberLabel->hide(); ui->wordsNumberLabel->hide();
@ -464,3 +476,15 @@ void settings::on_uiScalingSlider_valueChanged(int value)
launch_sh = true; launch_sh = true;
} }
} }
void settings::on_menuBarCheckBox_toggled(bool checked)
{
if(checked == true) {
checked_box = true;
writeconfig(".config/11-menubar/sticky", "StickyMenuBar=");
}
else {
checked_box = false;
writeconfig(".config/11-menubar/sticky", "StickyMenuBar=");
}
}

View file

@ -93,6 +93,8 @@ private slots:
void on_uiScalingSlider_valueChanged(int value); void on_uiScalingSlider_valueChanged(int value);
void on_menuBarCheckBox_toggled(bool checked);
private: private:
Ui::settings *ui; Ui::settings *ui;
usbms_splash *usbmsWindow; usbms_splash *usbmsWindow;

View file

@ -16,261 +16,6 @@
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="10" column="0">
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<family>Chivo</family>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Reading</string>
</property>
</widget>
</item>
<item row="30" column="0">
<widget class="Line" name="line_5">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="11" column="0">
<widget class="Line" name="line_8">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="23" column="0">
<widget class="QLabel" name="label_5">
<property name="font">
<font>
<family>Chivo</family>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Storage</string>
</property>
</widget>
</item>
<item row="29" column="0">
<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>
<item row="18" column="0">
<widget class="QCheckBox" name="quoteCheckBox">
<property name="text">
<string>Disable authors quotes</string>
</property>
</widget>
</item>
<item row="15" column="0">
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<family>Chivo</family>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Home</string>
</property>
</widget>
</item>
<item row="32" column="0">
<widget class="Line" name="line">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="31" column="0">
<widget class="QPushButton" name="aboutBtn">
<property name="text">
<string>About InkBox</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="softwareLabel">
<property name="font">
<font>
<family>Chivo</family>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Software</string>
</property>
</widget>
</item>
<item row="17" column="0">
<widget class="QCheckBox" name="clockCheckBox">
<property name="text">
<string>Clock: Show seconds</string>
</property>
</widget>
</item>
<item row="8" column="0">
<layout class="QGridLayout" name="gridLayout_7">
<property name="bottomMargin">
<number>0</number>
</property>
<property name="verticalSpacing">
<number>0</number>
</property>
<item row="0" column="1">
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="updateBtn">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Update</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="updateLabel">
<property name="text">
<string>Update InkBox</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item row="19" column="0">
<widget class="QCheckBox" name="demoCheckBox">
<property name="text">
<string>Disable &quot;Welcome to InkBox&quot; message</string>
</property>
</widget>
</item>
<item row="21" column="0">
<widget class="Line" name="line_3">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QCheckBox" name="darkModeCheckBox">
<property name="text">
<string>Enable night mode</string>
</property>
</widget>
</item>
<item row="20" column="0">
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<family>Chivo</family>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Networking</string>
</property>
</widget>
</item>
<item row="24" column="0">
<widget class="Line" name="line_7">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="22" column="0">
<layout class="QGridLayout" name="gridLayout_3">
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="2">
<widget class="QPushButton" name="requestLeaseBtn">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Request</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Request DHCP lease</string>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="33" column="0"> <item row="33" column="0">
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2">
<property name="bottomMargin"> <property name="bottomMargin">
@ -293,6 +38,295 @@ OK
</item> </item>
</layout> </layout>
</item> </item>
<item row="23" column="0">
<widget class="QLabel" name="label_5">
<property name="font">
<font>
<family>Chivo</family>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Storage</string>
</property>
</widget>
</item>
<item row="21" column="0">
<widget class="Line" name="line_3">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="12" column="0">
<layout class="QGridLayout" name="gridLayout_6">
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="1">
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<widget class="QLabel" name="wordsNumberLabel">
<property name="text">
<string>Words number per page</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QSpinBox" name="wordsNumber">
<property name="minimum">
<number>20</number>
</property>
<property name="maximum">
<number>300</number>
</property>
<property name="singleStep">
<number>20</number>
</property>
<property name="value">
<number>20</number>
</property>
</widget>
</item>
</layout>
</item>
<item row="32" column="0">
<widget class="Line" name="line">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="Line" name="line_9">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="15" column="0">
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<family>Chivo</family>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Home</string>
</property>
</widget>
</item>
<item row="6" column="0">
<layout class="QGridLayout" name="gridLayout_8">
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="1">
<widget class="QSlider" name="uiScalingSlider">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>2</number>
</property>
<property name="singleStep">
<number>1</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="value">
<number>0</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="uiScalingLabel">
<property name="text">
<string>UI scaling factor</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="uiScaleNumberLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>1</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="7" column="0">
<widget class="QCheckBox" name="darkModeCheckBox">
<property name="text">
<string>Enable night mode</string>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<family>Chivo</family>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Reading</string>
</property>
</widget>
</item>
<item row="16" column="0">
<widget class="Line" name="line_6">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="29" column="0">
<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>
<item row="2" column="0">
<widget class="Line" name="line_4">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>5</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="30" column="0">
<widget class="Line" name="line_5">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="8" column="0">
<layout class="QGridLayout" name="gridLayout_7">
<property name="bottomMargin">
<number>0</number>
</property>
<property name="verticalSpacing">
<number>0</number>
</property>
<item row="0" column="2">
<widget class="QPushButton" name="updateBtn">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Update</string>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<widget class="QLabel" name="updateLabel">
<property name="text">
<string>Update InkBox</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item row="24" column="0">
<widget class="Line" name="line_7">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="11" column="0">
<widget class="Line" name="line_8">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_5"> <layout class="QGridLayout" name="gridLayout_5">
<property name="bottomMargin"> <property name="bottomMargin">
@ -356,59 +390,33 @@ OK
</item> </item>
</layout> </layout>
</item> </item>
<item row="16" column="0"> <item row="22" column="0">
<widget class="Line" name="line_6"> <layout class="QGridLayout" name="gridLayout_3">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="Line" name="line_4">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>5</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="12" column="0">
<layout class="QGridLayout" name="gridLayout_6">
<property name="bottomMargin"> <property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="0"> <item row="0" column="2">
<widget class="QLabel" name="wordsNumberLabel"> <widget class="QPushButton" name="requestLeaseBtn">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text"> <property name="text">
<string>Words number per page</string> <string>Request</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="2"> <item row="0" column="0">
<widget class="QSpinBox" name="wordsNumber"> <widget class="QLabel" name="label_4">
<property name="minimum"> <property name="text">
<number>20</number> <string>Request DHCP lease</string>
</property>
<property name="maximum">
<number>300</number>
</property>
<property name="singleStep">
<number>20</number>
</property>
<property name="value">
<number>20</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<spacer name="horizontalSpacer_5"> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
@ -422,16 +430,6 @@ OK
</item> </item>
</layout> </layout>
</item> </item>
<item row="5" column="0">
<widget class="Line" name="line_9">
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="25" column="0"> <item row="25" column="0">
<layout class="QGridLayout" name="gridLayout_4"> <layout class="QGridLayout" name="gridLayout_4">
<property name="bottomMargin"> <property name="bottomMargin">
@ -472,53 +470,69 @@ OK
</item> </item>
</layout> </layout>
</item> </item>
<item row="6" column="0"> <item row="18" column="0">
<layout class="QGridLayout" name="gridLayout_8"> <widget class="QCheckBox" name="quoteCheckBox">
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="1">
<widget class="QSlider" name="uiScalingSlider">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>2</number>
</property>
<property name="singleStep">
<number>1</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="value">
<number>0</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="uiScalingLabel">
<property name="text"> <property name="text">
<string>UI scaling factor</string> <string>Disable authors quotes</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="2"> <item row="3" column="0">
<widget class="QLabel" name="uiScaleNumberLabel"> <widget class="QLabel" name="softwareLabel">
<property name="font"> <property name="font">
<font> <font>
<weight>75</weight> <family>Chivo</family>
<bold>true</bold> <italic>true</italic>
</font> </font>
</property> </property>
<property name="text"> <property name="text">
<string>1</string> <string>Software</string>
</property>
</widget>
</item>
<item row="19" column="0">
<widget class="QCheckBox" name="demoCheckBox">
<property name="text">
<string>Disable &quot;Welcome to InkBox&quot; message</string>
</property>
</widget>
</item>
<item row="20" column="0">
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<family>Chivo</family>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>Networking</string>
</property>
</widget>
</item>
<item row="31" column="0">
<widget class="QPushButton" name="aboutBtn">
<property name="text">
<string>About InkBox</string>
</property>
</widget>
</item>
<item row="17" column="0">
<widget class="QCheckBox" name="clockCheckBox">
<property name="text">
<string>Clock: Show seconds</string>
</property>
</widget>
</item>
<item row="13" column="0">
<layout class="QGridLayout" name="gridLayout_10">
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QCheckBox" name="menuBarCheckBox">
<property name="text">
<string>Always show menu bar</string>
</property> </property>
</widget> </widget>
</item> </item>