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>
</widget>
</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>
<widget class="QStackedWidget" name="stackedWidget">
<property name="currentIndex">
@ -156,6 +169,22 @@
</property>
</spacer>
</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">
<layout class="QGridLayout" name="gridLayout_4">
<property name="bottomMargin">
@ -248,35 +277,6 @@
</item>
</layout>
</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">
<layout class="QGridLayout" name="gridLayout">
<property name="bottomMargin">
@ -326,7 +326,7 @@
</item>
</layout>
</item>
<item row="6" column="0">
<item row="0" column="0">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
@ -346,6 +346,19 @@
<widget class="QWidget" name="page_2"/>
</widget>
</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>
<widget class="Line" name="line_4">
<property name="frameShadow">

View file

@ -100,49 +100,21 @@ reader::reader(QWidget *parent) :
ui->sizeValueLabel->setStyleSheet("font-size: 9pt");
ui->homeBtn->setStyleSheet("font-size: 9pt");
ui->aboutBtn->setStyleSheet("font-size: 9pt");
ui->fontChooser->setStyleSheet("font-size: 9pt");
// Hiding the menubar + definition widget
ui->inkboxLabel->hide();
// Hiding the menubar + definition widget + brightness widget
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->line_12->hide();
ui->line_13->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();
ui->brightnessWidget->hide();
ui->menuBarWidget->hide();
ui->wordWidget->hide();
if(checkconfig(".config/11-menubar/sticky") == true) {
ui->spacerWidget->show();
ui->statusBarWidget->show();
}
else {
ui->spacerWidget->hide();
ui->statusBarWidget->hide();
}
// Getting brightness level
int brightness_value = get_brightness();
@ -545,125 +517,58 @@ void reader::menubar_show() {
}
}
ui->inkboxLabel->show();
ui->hideOptionsBtn->show();
ui->optionsBtn->hide();
ui->line_4->show();
ui->line_5->show();
ui->line_6->show();
ui->line_7->show();
ui->line_8->show();
ui->line_9->show();
ui->line_10->show();
ui->line_11->show();
ui->timeLabel->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();
ui->menuBarWidget->show();
ui->statusBarWidget->show();
string_checkconfig("/opt/inkbox_device");
if(checkconfig_str_val == "n705\n") {
;
}
else {
ui->brightnessWidget->show();
}
menubar_shown = true;
}
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->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->timeLabel->hide();
ui->brightnessDecBtn->hide();
ui->brightnessIncBtn->hide();
ui->brightnessLabel->hide();
ui->brightnessStatus->hide();
ui->aboutBtn->hide();
ui->homeBtn->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->menuBarWidget->hide();
if(checkconfig(".config/11-menubar/sticky") == true) {
ui->spacerWidget->show();
ui->statusBarWidget->show();
}
else {
ui->spacerWidget->hide();
ui->statusBarWidget->hide();
}
menubar_shown = false;
}
void reader::wordwidget_show() {
if(menubar_shown == true) {
menubar_hide();
ui->optionsBtn->hide();
ui->hideOptionsBtn->hide();
ui->infoCloseBtn->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();
ui->wordWidget->show();
}
else {
ui->optionsBtn->hide();
ui->hideOptionsBtn->hide();
ui->infoCloseBtn->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();
ui->wordWidget->show();
}
}
void reader::wordwidget_hide() {
ui->infoCloseBtn->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();
ui->wordWidget->hide();
selected_text_lock = false;
}

1415
reader.ui

File diff suppressed because it is too large Load diff

View file

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

View file

@ -16,261 +16,6 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<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">
<layout class="QGridLayout" name="gridLayout_2">
<property name="bottomMargin">
@ -293,6 +38,295 @@ OK
</item>
</layout>
</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">
<layout class="QGridLayout" name="gridLayout_5">
<property name="bottomMargin">
@ -356,59 +390,33 @@ OK
</item>
</layout>
</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="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">
<item row="22" column="0">
<layout class="QGridLayout" name="gridLayout_3">
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="wordsNumberLabel">
<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>Words number per page</string>
<string>Request</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>
<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_5">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
@ -422,16 +430,6 @@ OK
</item>
</layout>
</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">
<layout class="QGridLayout" name="gridLayout_4">
<property name="bottomMargin">
@ -472,53 +470,69 @@ OK
</item>
</layout>
</item>
<item row="6" column="0">
<layout class="QGridLayout" name="gridLayout_8">
<item row="18" column="0">
<widget class="QCheckBox" name="quoteCheckBox">
<property name="text">
<string>Disable authors quotes</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="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="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">
<widget class="QCheckBox" name="menuBarCheckBox">
<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>
<string>Always show menu bar</string>
</property>
</widget>
</item>