From 72397d880e57605233a9f060f88a392727057935 Mon Sep 17 00:00:00 2001 From: hawkeyexp Date: Fri, 7 Sep 2018 03:14:04 +0200 Subject: [PATCH] Reworked settings menu / switchable button alpha and gui toggle --- .../autoapp/Configuration/Configuration.hpp | 8 + .../autoapp/Configuration/IConfiguration.hpp | 4 + .../f1x/openauto/autoapp/UI/MainWindow.hpp | 4 +- .../openauto/autoapp/UI/SettingsWindow.hpp | 10 + src/autoapp/Configuration/Configuration.cpp | 28 + src/autoapp/UI/MainWindow.cpp | 11 + src/autoapp/UI/SettingsWindow.cpp | 119 +- src/autoapp/UI/mainwindow.ui | 8 +- src/autoapp/UI/settingswindow.ui | 8509 ++++++++++------- src/autoapp/autoapp.cpp | 2 + 10 files changed, 5019 insertions(+), 3684 deletions(-) diff --git a/include/f1x/openauto/autoapp/Configuration/Configuration.hpp b/include/f1x/openauto/autoapp/Configuration/Configuration.hpp index 953cbe1..8040991 100644 --- a/include/f1x/openauto/autoapp/Configuration/Configuration.hpp +++ b/include/f1x/openauto/autoapp/Configuration/Configuration.hpp @@ -52,6 +52,10 @@ public: bool oldGUI() const override; void setAlphaTrans(size_t value) override; size_t getAlphaTrans() const override; + void hideMenuToggle(bool value) override; + bool hideMenuToggle() const override; + void hideAlpha(bool value) override; + bool hideAlpha() const override; aasdk::proto::enums::VideoFPS::Enum getVideoFPS() const override; void setVideoFPS(aasdk::proto::enums::VideoFPS::Enum value) override; @@ -92,6 +96,8 @@ private: bool showBigClock_; bool oldGUI_; size_t alphaTrans_; + bool hideMenuToggle_; + bool hideAlpha_; aasdk::proto::enums::VideoFPS::Enum videoFPS_; aasdk::proto::enums::VideoResolution::Enum videoResolution_; @@ -113,6 +119,8 @@ private: static const std::string cGeneralShowBigClockKey; static const std::string cGeneralOldGUIKey; static const std::string cGeneralAlphaTransKey; + static const std::string cGeneralHideMenuToggleKey; + static const std::string cGeneralHideAlphaKey; static const std::string cGeneralHandednessOfTrafficTypeKey; diff --git a/include/f1x/openauto/autoapp/Configuration/IConfiguration.hpp b/include/f1x/openauto/autoapp/Configuration/IConfiguration.hpp index 6148a3d..6b497c3 100644 --- a/include/f1x/openauto/autoapp/Configuration/IConfiguration.hpp +++ b/include/f1x/openauto/autoapp/Configuration/IConfiguration.hpp @@ -60,6 +60,10 @@ public: virtual bool oldGUI() const = 0; virtual void setAlphaTrans(size_t value) = 0; virtual size_t getAlphaTrans() const = 0; + virtual void hideMenuToggle(bool value) = 0; + virtual bool hideMenuToggle() const = 0; + virtual void hideAlpha(bool value) = 0; + virtual bool hideAlpha() const = 0; virtual aasdk::proto::enums::VideoFPS::Enum getVideoFPS() const = 0; virtual void setVideoFPS(aasdk::proto::enums::VideoFPS::Enum value) = 0; diff --git a/include/f1x/openauto/autoapp/UI/MainWindow.hpp b/include/f1x/openauto/autoapp/UI/MainWindow.hpp index 6bc5393..2c25157 100644 --- a/include/f1x/openauto/autoapp/UI/MainWindow.hpp +++ b/include/f1x/openauto/autoapp/UI/MainWindow.hpp @@ -174,8 +174,8 @@ private: bool c7ButtonForce = false; bool c8ButtonForce = false; - int screen_width = 800; - int screen_height = 480; + //int screen_width = 800; + //int screen_height = 480; }; } diff --git a/include/f1x/openauto/autoapp/UI/SettingsWindow.hpp b/include/f1x/openauto/autoapp/UI/SettingsWindow.hpp index 81bc526..2c63a4a 100644 --- a/include/f1x/openauto/autoapp/UI/SettingsWindow.hpp +++ b/include/f1x/openauto/autoapp/UI/SettingsWindow.hpp @@ -56,6 +56,16 @@ private slots: void onUpdateSystemVolume(int value); void onUpdateSystemCapture(int value); +private slots: + void show_tab1(); + void show_tab2(); + void show_tab3(); + void show_tab4(); + void show_tab5(); + void show_tab6(); + void show_tab7(); + void show_tab8(); + private: void showEvent(QShowEvent* event); void load(); diff --git a/src/autoapp/Configuration/Configuration.cpp b/src/autoapp/Configuration/Configuration.cpp index f3167d0..3e60c3d 100644 --- a/src/autoapp/Configuration/Configuration.cpp +++ b/src/autoapp/Configuration/Configuration.cpp @@ -36,6 +36,8 @@ const std::string Configuration::cGeneralShowClockKey = "General.ShowClock"; const std::string Configuration::cGeneralShowBigClockKey = "General.ShowBigClock"; const std::string Configuration::cGeneralOldGUIKey = "General.OldGUI"; const std::string Configuration::cGeneralAlphaTransKey = "General.AlphaTrans"; +const std::string Configuration::cGeneralHideMenuToggleKey = "General.HideMenuToggle"; +const std::string Configuration::cGeneralHideAlphaKey = "General.HideAlpha"; const std::string Configuration::cGeneralHandednessOfTrafficTypeKey = "General.HandednessOfTrafficType"; @@ -91,6 +93,8 @@ void Configuration::load() showBigClock_ = iniConfig.get(cGeneralShowBigClockKey, false); oldGUI_ = iniConfig.get(cGeneralOldGUIKey, false); alphaTrans_ = iniConfig.get(cGeneralAlphaTransKey, 50); + hideMenuToggle_ = iniConfig.get(cGeneralHideMenuToggleKey, false); + hideAlpha_ = iniConfig.get(cGeneralHideAlphaKey, false); videoFPS_ = static_cast(iniConfig.get(cVideoFPSKey, aasdk::proto::enums::VideoFPS::_60)); @@ -130,6 +134,8 @@ void Configuration::reset() showBigClock_ = false; oldGUI_ = false; alphaTrans_ = 50; + hideMenuToggle_ = false; + hideAlpha_ = false; videoFPS_ = aasdk::proto::enums::VideoFPS::_60; videoResolution_ = aasdk::proto::enums::VideoResolution::_480p; screenDPI_ = 140; @@ -153,6 +159,8 @@ void Configuration::save() iniConfig.put(cGeneralShowBigClockKey, showBigClock_); iniConfig.put(cGeneralOldGUIKey, oldGUI_); iniConfig.put(cGeneralAlphaTransKey, alphaTrans_); + iniConfig.put(cGeneralHideMenuToggleKey, hideMenuToggle_); + iniConfig.put(cGeneralHideAlphaKey, hideAlpha_); iniConfig.put(cVideoFPSKey, static_cast(videoFPS_)); iniConfig.put(cVideoResolutionKey, static_cast(videoResolution_)); @@ -242,6 +250,26 @@ void Configuration::setAlphaTrans(size_t value) alphaTrans_ = value; } +void Configuration::hideMenuToggle(bool value) +{ + hideMenuToggle_ = value; +} + +bool Configuration::hideMenuToggle() const +{ + return hideMenuToggle_; +} + +void Configuration::hideAlpha(bool value) +{ + hideAlpha_ = value; +} + +bool Configuration::hideAlpha() const +{ + return hideAlpha_; +} + aasdk::proto::enums::VideoFPS::Enum Configuration::getVideoFPS() const { return videoFPS_; diff --git a/src/autoapp/UI/MainWindow.cpp b/src/autoapp/UI/MainWindow.cpp index 353c33d..1712473 100644 --- a/src/autoapp/UI/MainWindow.cpp +++ b/src/autoapp/UI/MainWindow.cpp @@ -555,6 +555,17 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi } } + // hide gui toggle if enabled in settings + if (configuration->hideMenuToggle()) { + ui_->pushButtonToggleGUI->hide(); + ui_->pushButtonToggleGUI2->hide(); + } + + // hide alpha controls if enabled in settings + if (configuration->hideAlpha()) { + ui_->pushButtonAlpha->hide(); + } + // init alpha values ui_->horizontalSliderAlpha->setValue(int(configuration->getAlphaTrans())); MainWindow::on_horizontalSliderAlpha_valueChanged(int(configuration->getAlphaTrans())); diff --git a/src/autoapp/UI/SettingsWindow.cpp b/src/autoapp/UI/SettingsWindow.cpp index 0b36f44..4514791 100644 --- a/src/autoapp/UI/SettingsWindow.cpp +++ b/src/autoapp/UI/SettingsWindow.cpp @@ -53,7 +53,24 @@ SettingsWindow::SettingsWindow(configuration::IConfiguration::Pointer configurat connect(ui_->pushButtonShowBindings, &QPushButton::clicked, this, &SettingsWindow::onShowBindings); connect(ui_->horizontalSliderSystemVolume, &QSlider::valueChanged, this, &SettingsWindow::onUpdateSystemVolume); connect(ui_->horizontalSliderSystemCapture, &QSlider::valueChanged, this, &SettingsWindow::onUpdateSystemCapture); - + // menu + ui_->tab1->show(); + ui_->tab2->hide(); + ui_->tab3->hide(); + ui_->tab4->hide(); + ui_->tab5->hide(); + ui_->tab6->hide(); + ui_->tab7->hide(); + ui_->tab8->hide(); + ui_->horizontalGroupBox->hide(); + connect(ui_->pushButtonTab1, &QPushButton::clicked, this, &SettingsWindow::show_tab1); + connect(ui_->pushButtonTab2, &QPushButton::clicked, this, &SettingsWindow::show_tab2); + connect(ui_->pushButtonTab3, &QPushButton::clicked, this, &SettingsWindow::show_tab3); + connect(ui_->pushButtonTab4, &QPushButton::clicked, this, &SettingsWindow::show_tab4); + connect(ui_->pushButtonTab5, &QPushButton::clicked, this, &SettingsWindow::show_tab5); + connect(ui_->pushButtonTab6, &QPushButton::clicked, this, &SettingsWindow::show_tab6); + connect(ui_->pushButtonTab7, &QPushButton::clicked, this, &SettingsWindow::show_tab7); + connect(ui_->pushButtonTab8, &QPushButton::clicked, this, &SettingsWindow::show_tab8); } SettingsWindow::~SettingsWindow() @@ -69,6 +86,8 @@ void SettingsWindow::onSave() configuration_->showBigClock(ui_->checkBoxShowBigClock->isChecked()); configuration_->oldGUI(ui_->checkBoxOldGUI->isChecked()); configuration_->setAlphaTrans(static_cast(ui_->horizontalSliderAlphaTrans->value())); + configuration_->hideMenuToggle(ui_->checkBoxHideMenuToggle->isChecked()); + configuration_->hideAlpha(ui_->checkBoxHideAlpha->isChecked()); configuration_->setVideoFPS(ui_->radioButton30FPS->isChecked() ? aasdk::proto::enums::VideoFPS::_30 : aasdk::proto::enums::VideoFPS::_60); @@ -243,6 +262,8 @@ void SettingsWindow::load() ui_->checkBoxShowBigClock->setChecked(configuration_->showBigClock()); ui_->checkBoxOldGUI->setChecked(configuration_->oldGUI()); + ui_->checkBoxHideMenuToggle->setChecked(configuration_->hideMenuToggle()); + ui_->checkBoxHideAlpha->setChecked(configuration_->hideAlpha()); ui_->radioButton30FPS->setChecked(configuration_->getVideoFPS() == aasdk::proto::enums::VideoFPS::_30); ui_->radioButton60FPS->setChecked(configuration_->getVideoFPS() == aasdk::proto::enums::VideoFPS::_60); @@ -656,6 +677,102 @@ void SettingsWindow::onShowBindings() confirmationMessage.exec(); } +void SettingsWindow::show_tab1() +{ + ui_->tab2->hide(); + ui_->tab3->hide(); + ui_->tab4->hide(); + ui_->tab5->hide(); + ui_->tab6->hide(); + ui_->tab7->hide(); + ui_->tab8->hide(); + ui_->tab1->show(); +} + +void SettingsWindow::show_tab2() +{ + ui_->tab1->hide(); + ui_->tab3->hide(); + ui_->tab4->hide(); + ui_->tab5->hide(); + ui_->tab6->hide(); + ui_->tab7->hide(); + ui_->tab8->hide(); + ui_->tab2->show(); +} + +void SettingsWindow::show_tab3() +{ + ui_->tab1->hide(); + ui_->tab2->hide(); + ui_->tab4->hide(); + ui_->tab5->hide(); + ui_->tab6->hide(); + ui_->tab7->hide(); + ui_->tab8->hide(); + ui_->tab3->show(); +} + +void SettingsWindow::show_tab4() +{ + ui_->tab1->hide(); + ui_->tab2->hide(); + ui_->tab3->hide(); + ui_->tab5->hide(); + ui_->tab6->hide(); + ui_->tab7->hide(); + ui_->tab8->hide(); + ui_->tab4->show(); +} + +void SettingsWindow::show_tab5() +{ + ui_->tab1->hide(); + ui_->tab2->hide(); + ui_->tab3->hide(); + ui_->tab4->hide(); + ui_->tab6->hide(); + ui_->tab7->hide(); + ui_->tab8->hide(); + ui_->tab5->show(); +} + +void SettingsWindow::show_tab6() +{ + ui_->tab1->hide(); + ui_->tab2->hide(); + ui_->tab3->hide(); + ui_->tab4->hide(); + ui_->tab5->hide(); + ui_->tab7->hide(); + ui_->tab8->hide(); + ui_->tab6->show(); +} + +void SettingsWindow::show_tab7() +{ + ui_->tab1->hide(); + ui_->tab2->hide(); + ui_->tab3->hide(); + ui_->tab4->hide(); + ui_->tab5->hide(); + ui_->tab6->hide(); + ui_->tab8->hide(); + ui_->tab7->show(); +} + +void SettingsWindow::show_tab8() +{ + ui_->tab1->hide(); + ui_->tab2->hide(); + ui_->tab3->hide(); + ui_->tab4->hide(); + ui_->tab5->hide(); + ui_->tab6->hide(); + ui_->tab7->hide(); + ui_->tab8->show(); +} + } } } diff --git a/src/autoapp/UI/mainwindow.ui b/src/autoapp/UI/mainwindow.ui index b0f46d0..9f05a84 100644 --- a/src/autoapp/UI/mainwindow.ui +++ b/src/autoapp/UI/mainwindow.ui @@ -6,7 +6,7 @@ 0 0 - 740 + 800 837 @@ -16,6 +16,12 @@ 0 + + + 800 + 480 + + MainWindow diff --git a/src/autoapp/UI/settingswindow.ui b/src/autoapp/UI/settingswindow.ui index 59e7489..df628af 100644 --- a/src/autoapp/UI/settingswindow.ui +++ b/src/autoapp/UI/settingswindow.ui @@ -7,432 +7,749 @@ 0 0 800 - 480 + 2770 + + + 0 + 0 + + 800 480 - - - 800 - 480 - - - Settings + SettingsWindow background-color: rgb(46, 52, 54); -color: rgb(238, 238, 236); - +color: rgb(255, 255, 255); - - - - 660 - 430 - 131 - 41 - + + + 2 - - Save + + 2 - - false - - - - - - 660 - 330 - 131 - 41 - - - - Cancel - - - false - - - false - - - - - - 0 - 0 - 651 - 481 - - - - 0 - - - - General - - - - - 0 - 10 - 646 - 91 - + + + + 4 - - Handedness of traffic + + + + + 0 + 0 + + + + QPushButton { + background-color: rgb(85, 87, 83); +} +QPushButton:pressed { +background-color: rgb(114, 159, 207); +} +QPushButton:focus { +background-color: rgb(114, 159, 207); +} + + + General + + + + + + + + 0 + 0 + + + + QPushButton { + background-color: rgb(85, 87, 83); +} +QPushButton:pressed { +background-color: rgb(114, 159, 207); +} +QPushButton:focus { +background-color: rgb(114, 159, 207); +} + + + Video + + + + + + + + 0 + 0 + + + + QPushButton { + background-color: rgb(85, 87, 83); +} +QPushButton:pressed { +background-color: rgb(114, 159, 207); +} +QPushButton:focus { +background-color: rgb(114, 159, 207); +} + + + Audio + + + + + + + + 0 + 0 + + + + QPushButton { + background-color: rgb(85, 87, 83); +} +QPushButton:pressed { +background-color: rgb(114, 159, 207); +} +QPushButton:focus { +background-color: rgb(114, 159, 207); +} + + + Input + + + + + + + + 0 + 0 + + + + QPushButton { + background-color: rgb(85, 87, 83); +} +QPushButton:pressed { +background-color: rgb(114, 159, 207); +} +QPushButton:focus { +background-color: rgb(114, 159, 207); +} + + + BT / WiFi + + + + + + + + 0 + 0 + + + + QPushButton { + background-color: rgb(85, 87, 83); +} +QPushButton:pressed { +background-color: rgb(114, 159, 207); +} +QPushButton:focus { +background-color: rgb(114, 159, 207); +} + + + CS Base + + + + + + + + 0 + 0 + + + + QPushButton { + background-color: rgb(85, 87, 83); +} +QPushButton:pressed { +background-color: rgb(114, 159, 207); +} +QPushButton:focus { +background-color: rgb(114, 159, 207); +} + + + CS Env + + + + + + + + 0 + 0 + + + + QPushButton { + background-color: rgb(85, 87, 83); +} +QPushButton:pressed { +background-color: rgb(114, 159, 207); +} +QPushButton:focus { +background-color: rgb(114, 159, 207); +} + + + CS HW + + + + + + + + + + 0 + 0 + - - - - 10 - 30 - 141 - 23 - + + + 2 - - Left-hand drive + + 2 - - true - - - - - - 10 - 60 - 151 - 23 - - - - Right-hand drive - - - - - - - 0 - 110 - 646 - 131 - - - - GUI - - - - - 10 - 30 - 111 - 23 - - - - Show clock - - - - - - 10 - 60 - 221 - 23 - - - - Use classic gui on startup - - - - - - 10 - 90 - 381 - 23 - - - - Use big clock in classic gui (only if show clock enabled) - - - - - - - 0 - 250 - 646 - 81 - - - - Transparency Tile GUI on Startup - - - - - 570 - 40 - 41 - 31 - - - - 0.5 - - - - - - 20 - 40 - 531 - 34 - - - - QSlider::handle:horizontal { background: white; height: 32px; width: 52px; margin: 0 0;} + + + + + + + 0 + 0 + + + + Handedness of traffic + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + Left-hand drive + + + true + + + + + + + + 0 + 0 + + + + Right-hand drive + + + + + + + + + + + 0 + 0 + + + + GUI + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + Show clock + + + true + + + + + + + + 0 + 0 + + + + Start with classic gui + + + + + + + + 0 + 0 + + + + Use big clock in classic gui (only if show clock enabled) + + + + + + + + 0 + 0 + + + + Hide menu toggle button + + + + + + + + 0 + 0 + + + + Hide transparency controls on tile menu + + + + + + + + + + + + + 0 + 0 + + + + Transparency Tile GUI on Startup + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + + 0 + 24 + + + + QSlider::handle:horizontal { background: white; height: 32px; width: 52px; margin: 0 0;} QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} - - - 1 - - - 100 - - - 50 - - - Qt::Horizontal - - + + + 1 + + + 100 + + + 50 + + + Qt::Horizontal + + + + + + + + 0 + 0 + + + + + 40 + 32 + + + + 0.5 + + + + + + + + + + + 0 + 0 + + + + + + + + - - - - Video - - - - - 0 - 80 - 646 - 141 - + + + + + + 0 + 0 + - - Resolution - - - - - 10 - 30 - 71 - 23 - + + + 9 - - 480p + + 2 - - true + + 9 - - - - - 120 - 30 - 71 - 23 - + + 2 - - 720p - - - - - - 230 - 30 - 81 - 23 - - - - 1080p - - - - - - 50 - 60 - 561 - 71 - - - - - true - - - - 720p and 1080p must be activated in hidden Developer settings of Android Auto application. - - - true - - - 10 - - - - - - 20 - 60 - 31 - 71 - - - - <html><head/><body><p align="justify"><img src=":/ico_warning.png"/></p></body></html> - - - - - - - 0 - 10 - 646 - 61 - - - - Frame rate - - - - - 120 - 30 - 81 - 23 - - - - 60 FPS - - - - - - 10 - 30 - 81 - 23 - - - - 30 FPS - - - true - - - - - - - 0 - 230 - 646 - 121 - - - - Display - - - - - 10 - 40 - 90 - 21 - - - - Layer index: - - - - - - 60 - 80 - 360 - 31 - - - - - true - - - - OMX Layer is used only in case of OMX video output. - - - - - - 30 - 80 - 21 - 31 - - - - <html><head/><body><p><img src=":/ico_info.png"/></p></body></html> - - - - - - 100 - 30 - 100 - 41 - - - - QSpinBox::up-button { width: 32px; height: 32px; + + + + + 0 + 0 + + + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + Frame rate + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + 30 FPS + + + true + + + + + + + + 0 + 0 + + + + 60 FPS + + + + + + + + + + + 0 + 0 + + + + Resolution + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + 720p + + + + + + + + 0 + 0 + + + + 1080p + + + + + + + + 0 + 0 + + + + 480p + + + true + + + + + + + + 0 + 0 + + + + + 30 + 30 + + + + <html><head/><body><p><img src=":/ico_warning.png"/></p></body></html> + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 10 + true + + + + 720p and 1080p must be activated in hidden Developer settings of Android Auto application. + + + true + + + + + + + + + + + + + + 0 + 0 + + + + Display + + + + 2 + + + 2 + + + + + + + + 0 + 0 + + + + + 4 + + + 4 + + + + + + 0 + 0 + + + + Margin height + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + + + + + + 0 + 0 + + + + + 100 + 32 + + + + QSpinBox::up-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center right; } @@ -440,35 +757,74 @@ QSpinBox::down-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center left; } - - - Qt::AlignCenter - - - - - - 210 - 40 - 95 - 21 - - - - Margin width: - - - - - - 305 - 30 - 100 - 41 - - - - QSpinBox::up-button { width: 32px; height: 32px; + + + 99999 + + + + + + + + + + + 0 + 0 + + + + + 4 + + + 4 + + + + + + 0 + 0 + + + + + false + true + + + + QFrame::NoFrame + + + QFrame::Plain + + + Layer index + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + + + + + + 0 + 0 + + + + + 100 + 32 + + + + QSpinBox::up-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center right; } @@ -476,38 +832,59 @@ QSpinBox::down-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center left; } - - - Qt::AlignCenter - - - 99999 - - - - - - 415 - 40 - 100 - 21 - - - - Margin height: - - - - - - 515 - 30 - 100 - 41 - - - - QSpinBox::up-button { width: 32px; height: 32px; + + + + + + + + + + + 0 + 0 + + + + + 4 + + + 4 + + + + + + 0 + 0 + + + + Margin width + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 32 + + + + QSpinBox::up-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center right; } @@ -515,1243 +892,1652 @@ QSpinBox::down-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center left; } - - - Qt::AlignCenter - - - 99999 - - - - - - - 0 - 360 - 646 - 81 - - - - Android Auto Screen DPI - - - - - 570 - 40 - 41 - 31 - - - - 100 - - - - - - 20 - 40 - 531 - 34 - - - - QSlider::handle:horizontal { background: white; height: 32px; width: 52px; margin: 0 0;} + + + 99999 + + + + + + + + + + + + + 0 + 0 + + + + + + + + 0 + 0 + + + + + 30 + 30 + + + + <html><head/><body><p><img src=":/ico_info.png"/></p></body></html> + + + false + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 10 + true + + + + OMX Layer is used only in case of OMX video output. + + + + + + + + + + + + + + 0 + 0 + + + + Android Auto Screen DPI + + + + 2 + + + 9 + + + + + + 0 + 0 + + + + + 40 + 24 + + + + 100 + + + + + + + + 0 + 0 + + + + + 0 + 24 + + + + QSlider::handle:horizontal { background: white; height: 32px; width: 52px; margin: 0 0;} QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} - - - 400 - - - 100 - - - Qt::Horizontal - - + + + 400 + + + 100 + + + Qt::Horizontal + + + + + + + + + + + 0 + 0 + + + + + + + + - - - - Audio - - - - - -1 - 10 - 431 - 101 - + + + + + + 0 + 0 + - - Audio channels - - - - - 10 - 30 - 131 - 23 - + + + 9 - - Music channel + + 2 - - - - - 160 - 30 - 131 - 23 - + + 9 - - Speech channel + + 2 - - - - - 60 - 60 - 341 - 31 - - - - - true - - - - Disable audio channel if you need custom audio routing e.g. via A2DP or AUX. - - - true - - - - - - 30 - 60 - 21 - 31 - - - - <html><head/><body><p><img src=":/ico_info.png"/></p></body></html> - - - - - - - 435 - 10 - 211 - 101 - - - - Output backend - - - - - 10 - 30 - 101 - 23 - - - - RT audio - - - - - - 130 - 30 - 71 - 23 - - - - Qt - - - - - - - 0 - 120 - 646 - 151 - - - - Pulseaudio Input / Output Device - - - - - 80 - 36 - 531 - 30 - - - - false - - - - - - 20 - 36 - 61 - 30 - - - - Output - - - - - - 80 - 76 - 531 - 30 - - - - false - - - - - - 20 - 76 - 61 - 30 - - - - Input - - - - - - 80 - 114 - 561 - 31 - - - - - true - - - - To activate changed audio device you have to save settings and reconnect phone! - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - true - - - - - - 20 - 116 - 31 - 31 - - - - <html><head/><body><p align="justify"><img src=":/ico_warning.png"/></p></body></html> - - - - - - - 0 - 280 - 646 - 81 - - - - Playback Volume - - - - - 570 - 40 - 41 - 31 - - - - 0 - - - - - - 20 - 40 - 531 - 32 - - - - QSlider::handle:horizontal { background: white; height: 32px; width: 52px; margin: 0 0;} + + + + + 0 + 0 + + + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + Audio channels + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + + 2 + + + 0 + + + + + Speech channel + + + true + + + + + + + Music channel + + + true + + + + + + + + + + + 0 + 0 + + + + + 0 + 40 + + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + + 0 + 40 + + + + <html><head/><body><p><img src=":/ico_info.png"/></p></body></html> + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 40 + + + + + 10 + true + + + + Disable audio channel if you need custom audio routing e.g. via A2DP or AUX. + + + true + + + + + + + + + + + + + + 0 + 0 + + + + Output backend + + + + 2 + + + 2 + + + + + RT audio + + + true + + + + + + + Qt + + + + + + + + + + + + + + 0 + 0 + + + + Pulseaudio Input / Output Device + + + + 6 + + + 2 + + + 9 + + + + + Output + + + + + + + + 0 + 0 + + + + + + + + Input + + + + + + + + 0 + 0 + + + + + + + + + + + + 0 + 0 + + + + Playback Volume + + + + 6 + + + 2 + + + 2 + + + 9 + + + + + + 0 + 0 + + + + + 40 + 24 + + + + 0 + + + + + + + + 0 + 24 + + + + QSlider::handle:horizontal { background: white; height: 32px; width: 52px; margin: 0 0;} QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} - - - 100 - - - Qt::Horizontal - - - - - - - 0 - 370 - 646 - 81 - - - - Capture Volume - - - - - 570 - 40 - 41 - 31 - - - - 0 - - - - - - 20 - 40 - 531 - 32 - - - - QSlider::handle:horizontal { background: white; height: 32px; width: 52px; margin: 0 0;} + + + 100 + + + Qt::Horizontal + + + + + + + + + + + 0 + 0 + + + + Capture Volume + + + + 2 + + + 9 + + + + + + 0 + 0 + + + + + 40 + 24 + + + + 0 + + + + + + + + 0 + 24 + + + + QSlider::handle:horizontal { background: white; height: 32px; width: 52px; margin: 0 0;} QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} - - - 100 - - - Qt::Horizontal - - + + + 100 + + + Qt::Horizontal + + + + + + + + + + + 0 + 0 + + + + + + + + - - - - Input - - - - - 0 - 10 - 161 - 23 - - - - Enable touchscreen + + + + + + 0 + 0 + + + + 9 + + + 2 + + + 9 + + + 2 + + + + + + + Enable touchscreen + + + + + + + Buttons + + + + 2 + + + 9 + + + 9 + + + + + Next track + + + + + + + Play + + + + + + + Call end + + + + + + + Enter + + + + + + + Left + + + + + + + Previous track + + + + + + + Voice command + + + + + + + Toggle play + + + + + + + Back + + + + + + + Right + + + + + + + Scroll wheel + + + + + + + Home + + + + + + + Pause + + + + + + + Down + + + + + + + Up + + + + + + + Phone + + + + + + + + 0 + 0 + + + + + 120 + 20 + + + + Select all + + + + + + + + 0 + 0 + + + + + 120 + 20 + + + + Clear selection + + + + + + + + 0 + 0 + + + + + 120 + 20 + + + + Show bindings + + + + + + + + + + + + + 0 + 0 + + + + + + + + - - - - 0 - 70 - 646 - 381 - - - - QAbstractItemView::MultiSelection + + + + + + 0 + 0 + + + + 9 + + + 2 + + + 9 + + + 2 + + + + + true + + + + 0 + 0 + + + + Bluetooth Adapter + + + + + + Disable bluetooth + + + + + + + Use local adapter + + + + + + + Use external adapter + + + + + + + + + + + 0 + 0 + + + + Bluetooth settings + + + + 2 + + + 9 + + + + + + + + 0 + 0 + + + + Set pairable for 120 secs after startup + + + + + + + + 0 + 20 + + + + background-color: rgb(164, 0, 0); + + + Remove all paired devices + + + + + + + + + + 0 + 0 + + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + + 100 + 0 + + + + Used Address: + + + + + + + + 0 + 0 + + + + + 200 + 0 + + + + + + + + + + + + + + + 0 + 0 + + + + Wifi client settings + + + + 2 + + + 9 + + + + + + 0 + 0 + + + + + 9 + + + 2 + + + 9 + + + 2 + + + + + + 100 + 0 + + + + Used SSID: + + + + + + + + 0 + 0 + + + + + 200 + 0 + + + + + 0 + 0 + + + + + + + + + + + + + + + 0 + 0 + + + + Hotspot settings + + + + 2 + + + 9 + + + + + + 0 + 0 + + + + + 9 + + + 2 + + + 9 + + + 2 + + + + + + 0 + 0 + + + + + 100 + 0 + + + + Used SSID: + + + + + + + + 0 + 0 + + + + + 200 + 0 + + + + + + + + Enable + + + + + + + + 8 + true + + + + The Hotspot is only available in dev mode and overrides client mode! SSID is fixed. + + + + + + + + + + + + + + 0 + 0 + + + + + + + + + + + + 0 + 0 + + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + + 30 + 30 + + + + <html><head/><body><p><img src=":/ico_warning.png"/></p></body></html> + + + + + + + + 0 + 0 + + + + + true + + + + Changes in this tab needs a reboot to take effect! + + + + + + + - - - - 10 - 50 - 67 - 17 - + + + + + + 0 + 0 + - - Buttons - - - - - - 20 - 80 - 92 - 23 - - - - Play - - - - - - 20 - 120 - 92 - 23 - - - - Pause - - - - - - 20 - 160 - 111 - 23 - - - - Toggle play - - - - - - 20 - 200 - 92 - 23 - - - - Next track - - - - - - 20 - 240 - 121 - 23 - - - - Previous track - - - - - - 20 - 280 - 92 - 23 - - - - Home - - - - - - 200 - 320 - 92 - 23 - - - - Back - - - - - - 200 - 360 - 92 - 23 - - - - Enter - - - - - - 20 - 320 - 92 - 23 - - - - Phone - - - - - - 20 - 360 - 92 - 23 - - - - Call end - - - - - - 200 - 80 - 141 - 23 - - - - Voice command - - - - - - 200 - 120 - 92 - 23 - - - - Left - - - - - - 200 - 160 - 92 - 23 - - - - Right - - - - - - 200 - 200 - 92 - 23 - - - - Up - - - - - - 200 - 240 - 92 - 23 - - - - Down - - - - - - 200 - 280 - 111 - 23 - - - - Scroll wheel - - - - - - 520 - 80 - 121 - 41 - - - - Select all - - - false - - - - - - 520 - 140 - 121 - 41 - - - - Clear selection - - - false - - - - - - 520 - 200 - 121 - 41 - - - - Show bindings - - - false - - - - - - Wireless - - - - - 0 - 10 - 646 - 111 - - - - Bluetooth settings - - - - - 410 - 26 - 231 - 31 - + + + 9 - - true + + 2 - - - - - 290 - 26 - 111 - 31 - + + 9 - - Used Address: + + 2 - - - - - 20 - 30 - 261 - 23 - - - - Set pairable on startup (120 secs) - - - - - - 20 - 70 - 191 - 30 - - - - Remove all paired devices - - - false - - - false - - - - - - - 0 - 160 - 646 - 111 - - - - Wifi client settings - - - - - 310 - 30 - 331 - 31 - - - - Credentials must be set in crankshaft_env.sh! - - - - - - 90 - 70 - 551 - 31 - - - - - true - - - - The wifi connection is only available in dev mode or debug mode! - - - - - - 100 - 30 - 200 - 31 - - - - true - - - - - - 10 - 30 - 81 - 31 - - - - Used SSID: - - - - - - 60 - 76 - 21 - 21 - - - - <html><head/><body><p><img src=":/ico_info.png"/></p></body></html> - - - - - - - 0 - 280 - 646 - 141 - - - - Hotspot settings - - - - - 310 - 60 - 331 - 31 - - - - Credentials must be set in crankshaft_env.sh! - - - - - - 90 - 100 - 551 - 31 - - - - - true - - - - The hotspot is only available in dev mode and overrides client mode! SSID is fixed. - - - - - - 100 - 60 - 200 - 31 - - - - - - - true - - - - - - 10 - 60 - 81 - 31 - - - - Used SSID: - - - - - - 10 - 30 - 141 - 23 - - - - Enable Hotspot - - - - - - 60 - 106 - 21 - 21 - - - - <html><head/><body><p><img src=":/ico_info.png"/></p></body></html> - - - - - - - 330 - 60 - 171 - 23 - - - - Use external adapter - - - - - true - - - - 170 - 60 - 151 - 23 - - - - Use local adapter - - - - - - 10 - 60 - 171 - 23 - - - - Disable bluetooth - - - - - - 80 - 422 - 31 - 31 - - - - <html><head/><body><p align="justify"><img src=":/ico_warning.png"/></p></body></html> - - - - - - 2 - 425 - 644 - 26 - - - - - true - - - - To activate this settings you have to reboot after changing! - - - Qt::AlignCenter - - - true - - - radioButtonDisableBluetooth - radioButtonUseExternalBluetoothAdapter - radioButtonUseLocalBluetoothAdapter - groupBoxWifiClient - groupBoxWifiHotspot - groupBoxBluetoothAdapter - labelSettingsInfo_5 - labelSettingsInfo_Icon_5 - - - - CS Base - - - - - 0 - 10 - 646 - 111 - - - - System Information - - - - - 10 - 30 - 80 - 23 - - - - Version: - - - - - - 90 - 34 - 80 - 23 - - - - Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing - - - - - - 10 - 66 - 80 - 23 - - - - Build Date: - - - - - - 90 - 70 - 80 - 23 - - - - Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing - - - - - - 200 - 30 - 110 - 23 - - - - Free Memory: - - - - - - 310 - 34 - 80 - 23 - - - - Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing - - - - - - 200 - 66 - 110 - 23 - - - - CPU Frequency: - - - - - - 310 - 70 - 80 - 23 - - - - Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing - - - - - - 420 - 30 - 80 - 23 - - - - CPU Temp: - - - - - - 500 - 34 - 80 - 23 - - - - Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing - - - - - - - 0 - 300 - 646 - 121 - - - - Timer - - - - - 10 - 30 - 150 - 41 - - - - Shutdown Timeout: - - - - - - 150 - 42 - 201 - 23 - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - - 10 - 75 - 150 - 41 - - - - Screen Off Timeout: - - - - - - 150 - 87 - 201 - 23 - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - - 350 - 75 - 110 - 41 - - - - QSpinBox::up-button { width: 32px; height: 32px; + + + + + 0 + 0 + + + + System Information + + + + 2 + + + 9 + + + + + + + + 0 + 0 + + + + + 120 + 20 + + + + CPU Temp: + + + + + + + + 0 + 0 + + + + + 0 + 20 + + + + - - - + + + + + + + + + + + + 0 + 0 + + + + + 120 + 20 + + + + Version: + + + + + + + + 0 + 0 + + + + + 0 + 20 + + + + - - - + + + + + + + + + + + + 0 + 0 + + + + + 120 + 20 + + + + Free Memory: + + + + + + + + 0 + 0 + + + + + 0 + 20 + + + + - - - + + + + + + + + + + + + 0 + 0 + + + + + 120 + 20 + + + + Build Date: + + + + + + + + 0 + 0 + + + + + 0 + 20 + + + + - - - + + + + + + + + + + + + 0 + 0 + + + + + 120 + 20 + + + + CPU Frequency: + + + + + + + + 0 + 0 + + + + + 0 + 20 + + + + - - - + + + + + + + + + + + + + 0 + 0 + + + + + 0 + + + 2 + + + 0 + + + + + + 0 + 0 + + + + Screen Orientation + + + + 2 + + + 9 + + + + + Normal + + + true + + + + + + + 180° Rotated + + + + + + + + + + + 0 + 0 + + + + Start Mode Openauto + + + + 2 + + + 9 + + + + + EGL + + + true + + + + + + + X11 + + + + + + + + + + + + + + 0 + 0 + + + + Auto Day / Night + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + + 4 + + + 4 + + + + + + 0 + 0 + + + + + 100 + 32 + + + + + 10 + + + + Start Day + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 32 + + + + QSpinBox::up-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center right; } @@ -1759,34 +2545,74 @@ QSpinBox::down-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center left; } - - - Qt::AlignCenter - - - 30 - - - 300 - - - 10 - - - 120 - - - - - - 350 - 30 - 110 - 41 - - - - QSpinBox::up-button { width: 32px; height: 32px; + + + 23 + + + 8 + + + + + + + + + + + 0 + 0 + + + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + 4 + + + 4 + + + + + + 0 + 0 + + + + + 100 + 32 + + + + Start Night + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 32 + + + + QSpinBox::up-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center right; } @@ -1794,170 +2620,154 @@ QSpinBox::down-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center left; } - - - true - - - Qt::AlignCenter - - - 1 - - - 60 - - - 1 - - - 60 - - - - - - 470 - 30 - 64 - 41 - - - - Minutes - - - - - - 470 - 74 - 64 - 41 - - - - Seconds - - - - - - 550 - 40 - 71 - 23 - - - - Disable - - - - - - 550 - 84 - 71 - 23 - - - - Disable - - - - - - - 0 - 130 - 311 - 71 - - - - Screen Orientation - - - - - 120 - 30 - 120 - 23 - - - - 180° Rotated - - - - - - 10 - 30 - 80 - 23 - - - - Normal - - - true - - - - - - - 0 - 210 - 646 - 81 - - - - Auto Day / Night - - - - - 10 - 40 - 80 - 21 - - - - Start Day - - - - - - 210 - 40 - 80 - 21 - - - - Start Night - - - - - - 90 - 30 - 100 - 41 - - - - QSpinBox::up-button { width: 32px; height: 32px; + + + 23 + + + 18 + + + + + + + + + + + 0 + 0 + + + + <html><head/><body><p><img src=":/ico_info.png"/></p></body></html> + + + + + + + + 0 + 0 + + + + + 10 + true + + + + Needs a configured RTC! + + + + + + + + + + + 0 + 0 + + + + Timer + + + + 10 + + + 2 + + + 0 + + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + + 0 + + + 0 + + + + + + 140 + 32 + + + + Shutdown Timeout: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 200 + 32 + + + + - - - + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + + + + 0 + 0 + + + + + 100 + 32 + + + + QSpinBox::up-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center right; } @@ -1965,28 +2775,123 @@ QSpinBox::down-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center left; } - - - Qt::AlignCenter - - - 23 - - - 8 - - - - - - 290 - 30 - 100 - 41 - - - - QSpinBox::up-button { width: 32px; height: 32px; + + + 1 + + + 60 + + + 60 + + + + + + + + 0 + 0 + + + + + 64 + 32 + + + + Minutes + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + Disable + + + + + + + + + 2 + + + 2 + + + + + + 0 + + + 0 + + + + + + 140 + 32 + + + + Screen Off Timeout: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 200 + 32 + + + + - - - + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + + + + 0 + 0 + + + + + 100 + 32 + + + + QSpinBox::up-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center right; } @@ -1994,1068 +2899,1153 @@ QSpinBox::down-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center left; } - - - Qt::AlignCenter - - - 23 - - - 18 - - - - - - 440 - 40 - 171 - 23 - - - - - true - - - - Needs configured rtc! - - - true - - - - - - 410 - 36 - 21 - 31 - - - - <html><head/><body><p><img src=":/ico_info.png"/></p></body></html> - - + + + 30 + + + 300 + + + 10 + + + 120 + + + + + + + + 0 + 0 + + + + + 64 + 32 + + + + Seconds + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + Disable + + + + + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + + + + + + + + 0 + 0 + + + + + 2 + + + 2 + + + + + + 0 + 0 + + + + + 30 + 30 + + + + <html><head/><body><p><img src=":/ico_warning.png"/></p></body></html> + + + + + + + + 0 + 0 + + + + + true + + + + Changes in this tab needs a reboot to take effect! + + + + + + + - - - - 2 - 425 - 644 - 26 - + + + + + + 0 + 0 + - - - true - - - - To activate this settings you have to reboot after changing! - - - Qt::AlignCenter - - - true - - - - - - 80 - 422 - 31 - 31 - - - - <html><head/><body><p align="justify"><img src=":/ico_warning.png"/></p></body></html> - - - - - - 320 - 130 - 326 - 71 - - - - Start Mode Openauto - - - - - 120 - 30 - 81 - 23 - + + + 2 - - X11 - - - - - - 10 - 30 - 81 - 23 - - - - EGL - - - true - - - - - - - CS Env - - - - - 0 - 10 - 646 - 101 - - - - GPIO Settings (only working if enabled) - - - - - 10 - 30 - 100 - 23 - - - - Enable GPIO - - - - - - 110 - 60 - 100 - 30 - - - - false - - - - - - + + 2 - - - - - - - - - - 1 - - - - - 2 - - - - - 3 - - - - - 4 - - - - - 5 - - - - - 6 - - - - - 7 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - 15 - - - - - 16 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - 20 - - - - - 21 - - - - - 22 - - - - - 23 - - - - - 24 - - - - - 25 - - - - - 26 - - - - - - - 30 - 60 - 80 - 30 - - - - Dev Mode - - - - - - 320 - 60 - 100 - 30 - - - - false - - - - - - - - - - - - - - - - - - 1 - - - - - 2 - - - - - 3 - - - - - 4 - - - - - 5 - - - - - 6 - - - - - 7 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - 15 - - - - - 16 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - 20 - - - - - 21 - - - - - 22 - - - - - 23 - - - - - 24 - - - - - 25 - - - - - 26 - - - - - - - 530 - 60 - 100 - 30 - - - - false - - - - - - - - - - - - - - - - - - 1 - - - - - 2 - - - - - 3 - - - - - 4 - - - - - 5 - - - - - 6 - - - - - 7 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - 15 - - - - - 16 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - 20 - - - - - 21 - - - - - 22 - - - - - 23 - - - - - 24 - - - - - 25 - - - - - 26 - - - - - - - 450 - 60 - 80 - 30 - - - - X11 Pin - - - - - - 230 - 60 - 90 - 30 - - - - Invert Pin - - - - - - - 2 - 425 - 644 - 26 - - - - - true - - - - To activate this settings you have to reboot after changing! - - - Qt::AlignCenter - - - true - - - - - - 80 - 422 - 31 - 31 - - - - <html><head/><body><p align="justify"><img src=":/ico_warning.png"/></p></body></html> - - - - - - 325 - 250 - 321 - 91 - - - - Custom Brightness Command - - - - - 10 - 30 - 201 - 21 - - - - disabled - - - - - - - 0 - 120 - 646 - 121 - - - - Standalone GPIO Settings (working if set) - - - - - 100 - 34 - 100 - 30 - - - - false - - - - - - - - - - - - - - - - - - 1 - - - - - 2 - - - - - 3 - - - - - 4 - - - - - 5 - - - - - 6 - - - - - 7 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - 15 - - - - - 16 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - 20 - - - - - 21 - - - - - 22 - - - - - 23 - - - - - 24 - - - - - 25 - - - - - 26 - - - - - - - 10 - 34 - 80 - 30 - - - - Android Pin - - - - - - 230 - 34 - 80 - 30 - - - - Ignition Pin - - - - - - 320 - 34 - 100 - 30 - - - - false - - - - - - - - - - - - - - - - - - 1 - - - - - 2 - - - - - 3 - - - - - 4 - - - - - 5 - - - - - 6 - - - - - 7 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - 15 - - - - - 16 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - 20 - - - - - 21 - - - - - 22 - - - - - 23 - - - - - 24 - - - - - 25 - - - - - 26 - - - - - - - 530 - 30 - 100 - 41 - - - - QSpinBox::up-button { width: 32px; height: 32px; + + + + 0 + 0 + + + + GPIO Settings (only working if enabled) + + + + 2 + + + 9 + + + + + Enable GPIO + + + + + + + + 0 + 0 + + + + + 2 + + + 2 + + + + + 6 + + + 6 + + + + + + 0 + 0 + + + + + 100 + 30 + + + + Dev Mode + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + - - - + + + QComboBox::AdjustToContentsOnFirstShow + + + 0 + + + + - - - + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + 10 + + + + + 11 + + + + + 12 + + + + + 13 + + + + + 14 + + + + + 15 + + + + + 16 + + + + + 17 + + + + + 18 + + + + + 19 + + + + + 20 + + + + + 21 + + + + + 22 + + + + + 23 + + + + + 24 + + + + + 25 + + + + + 26 + + + + + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + Invert Pin + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + + - - - + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + 10 + + + + + 11 + + + + + 12 + + + + + 13 + + + + + 14 + + + + + 15 + + + + + 16 + + + + + 17 + + + + + 18 + + + + + 19 + + + + + 20 + + + + + 21 + + + + + 22 + + + + + 23 + + + + + 24 + + + + + 25 + + + + + 26 + + + + + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + X11 Pin + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + + - - - + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + 10 + + + + + 11 + + + + + 12 + + + + + 13 + + + + + 14 + + + + + 15 + + + + + 16 + + + + + 17 + + + + + 18 + + + + + 19 + + + + + 20 + + + + + 21 + + + + + 22 + + + + + 23 + + + + + 24 + + + + + 25 + + + + + 26 + + + + + + + + + + + + + + + + + 0 + 0 + + + + Standalone GPIO Settings (working if set) + + + + 10 + + + 2 + + + 9 + + + + + + 0 + 0 + + + + + 2 + + + 2 + + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + Android Pin + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + + - - - + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + 10 + + + + + 11 + + + + + 12 + + + + + 13 + + + + + 14 + + + + + 15 + + + + + 16 + + + + + 17 + + + + + 18 + + + + + 19 + + + + + 20 + + + + + 21 + + + + + 22 + + + + + 23 + + + + + 24 + + + + + 25 + + + + + 26 + + + + + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + Ignition Pin + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + + - - - + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + 10 + + + + + 11 + + + + + 12 + + + + + 13 + + + + + 14 + + + + + 15 + + + + + 16 + + + + + 17 + + + + + 18 + + + + + 19 + + + + + 20 + + + + + 21 + + + + + 22 + + + + + 23 + + + + + 24 + + + + + 25 + + + + + 26 + + + + + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + Delay + + + + + + + + 0 + 0 + + + + + 100 + 32 + + + + QSpinBox::up-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center right; } @@ -3063,759 +4053,918 @@ QSpinBox::down-button { width: 32px; height: 32px; subcontrol-origin: margin; subcontrol-position: center left; } - - - true - - - Qt::AlignCenter - - - 5 - - - 60 - - - 1 - - - 30 - - - - - - 450 - 34 - 80 - 30 - - - - Delay - - - - - - 100 - 80 - 100 - 30 - - - - false - - - - - - - - - - - - - - + + + 5 + + + 60 + + + 30 + + + + + + + + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + Rearcam Pin + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + + - - - + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + 10 + + + + + 11 + + + + + 12 + + + + + 13 + + + + + 14 + + + + + 15 + + + + + 16 + + + + + 17 + + + + + 18 + + + + + 19 + + + + + 20 + + + + + 21 + + + + + 22 + + + + + 23 + + + + + 24 + + + + + 25 + + + + + 26 + + + + + + + + + + + + + - - 1 - + + + + 0 + 0 + + + + + 0 + 0 + + + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 0 + 60 + + + + Debugmode + + + + 9 + + + 2 + + + 9 + + + 9 + + + + + Disabled + + + + + + + Enabled + + + + + + + + + + + 0 + 0 + + + + + 0 + 60 + + + + Custom Brightness Command + + + + 9 + + + 2 + + + 9 + + + 9 + + + + + + 0 + 0 + + + + + 0 + 20 + + + + TextLabel + + + + + + + + - - 2 - + + + + 0 + 0 + + + + + + - - 3 - + + + + 0 + 0 + + + + + 9 + + + 2 + + + 9 + + + 2 + + + + + + 0 + 0 + + + + + 30 + 30 + + + + <html><head/><body><p><img src=":/ico_warning.png"/></p></body></html> + + + + + + + + 0 + 0 + + + + + true + + + + Changes in this tab needs a reboot to take effect! + + + + + - - - 4 - - - - - 5 - - - - - 6 - - - - - 7 - - - - - 8 - - - - - 9 - - - - - 10 - - - - - 11 - - - - - 12 - - - - - 13 - - - - - 14 - - - - - 15 - - - - - 16 - - - - - 17 - - - - - 18 - - - - - 19 - - - - - 20 - - - - - 21 - - - - - 22 - - - - - 23 - - - - - 24 - - - - - 25 - - - - - 26 - - - - - - - 10 - 80 - 90 - 30 - - - - Rearcam Pin - - + - - - - 0 - 250 - 321 - 91 - + + + + + + 0 + 0 + - - Debugmode - - - - - 120 - 30 - 120 - 23 - + + + 2 - - Enabled + + 2 - - - - - 10 - 30 - 80 - 23 - - - - Disabled - - - true - - - - - - 10 - 56 - 21 - 31 - - - - <html><head/><body><p><img src=":/ico_info.png"/></p></body></html> - - - - - - 40 - 60 - 241 - 23 - - - - - true - - - - Debud Mode overrides dev mode! - - - true - - + + + + + 0 + 0 + + + + Hardware Setup + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + DAC + + + + + + + + 0 + 0 + + + + + 0 + 30 + + + + + Custom + + + + + Raspberry Pi - Onboard + + + + + Allo - Boss + + + + + Allo - Piano + + + + + IQaudIO - Pi-DAC Plus/Pro/Zero + + + + + IQaudIO - Pi-Digi Amp Plus + + + + + IQaudIO - Pi-Digi Amp Plus - Automute + + + + + IQaudIO - Pi-Digi Plus + + + + + Audioinjector - Zero/Stereo + + + + + Hifiberry - DAC + + + + + Hifiberry - DAC Plus + + + + + Hifiberry - DAC Digi + + + + + Hifiberry - DAC Amp + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + RTC + + + + + + + + 0 + 0 + + + + + 0 + 30 + + + + + none + + + + + abx80x + + + + + ds1307 + + + + + ds1339 + + + + + ds3231 + + + + + mcp7940x + + + + + mcp7941x + + + + + pcf2127 + + + + + pcf8523 + + + + + pcf8563 + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + Timezone + + + + + + + + 0 + 0 + + + + + 0 + 30 + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + RPI-Cam + + + + + + + + 0 + 0 + + + + + 0 + 30 + + + + + none + + + + + enabled + + + + + + + + + 0 + 0 + + + + + 100 + 30 + + + + Bluetooth + + + + + + + + 0 + 0 + + + + + 0 + 30 + + + + + none + + + + + builtin + + + + + external + + + + + + + + + + + 0 + 0 + + + + + 240 + 0 + + + + + 12 + 75 + true + + + + Exec hardware setup on save? + + + + + + + + + <html><head/><body><p><img src=":/ico_warning.png"/></p></body></html> + + + + + + + + 0 + 0 + + + + + 10 + true + + + + This must be selected if any hw config should be done on save! + + + + + + + + + + + + + 0 + 0 + + + + + + + + - - - - CS HW - - - - - 0 - 10 - 646 - 291 - - - - Hardware Setup - - - - - 90 - 90 - 300 - 30 - - - - false - - - none - - - - none + + + + + + + + 0 + 0 + - - - - abx80x + + + 0 + 30 + - - - - ds1307 + + + 75 + true + - - - - ds1339 + + background-color: rgb(7, 123, 123); - - - ds3231 + Save + + + + + + + + 0 + 0 + + + + + 0 + 30 + + + + + 75 + true + + + + background-color: rgb(206, 92, 0); - - - mcp7940x + Reset to default + + + + + + + + 0 + 0 + + + + + 0 + 30 + + + + + 75 + true + + + + background-color: rgb(85, 87, 83); - - - mcp7941x + Cancel - - - - pcf2127 - - - - - pcf8523 - - - - - pcf8563 - - - - - - - 10 - 90 - 80 - 30 - - - - RTC - - - - - - 90 - 40 - 300 - 30 - - - - false - - - Custom - - - 0 - - - 0 - - - - Custom - - - - - Raspberry Pi - Onboard - - - - - Allo - Boss - - - - - Allo - Piano - - - - - IQaudIO - Pi-DAC Plus/Pro/Zero - - - - - IQaudIO - Pi-Digi Amp Plus - - - - - IQaudIO - Pi-Digi Amp Plus - Automute - - - - - IQaudIO - Pi-Digi Plus - - - - - Audioinjector - Zero/Stereo - - - - - Hifiberry - DAC - - - - - Hifiberry - DAC Plus - - - - - Hifiberry - DAC Digi - - - - - Hifiberry - DAC Amp - - - - - - - 10 - 40 - 80 - 30 - - - - DAC - - - - - - 90 - 140 - 300 - 30 - - - - false - - - - - - - - - 10 - 140 - 80 - 30 - - - - Timezone - - - - - - 440 - 118 - 201 - 23 - - - - - 75 - false - true - - - - Exec setup on save? - - - - - - 470 - 143 - 171 - 61 - - - - - true - - - - This must be selected if any hw-setup should be done on save! - - - true - - - - - - 440 - 157 - 21 - 31 - - - - <html><head/><body><p><img src=":/ico_info.png"/></p></body></html> - - - - - - 10 - 190 - 80 - 30 - - - - RPI-Cam - - - - - - 90 - 190 - 300 - 30 - - - - false - - - none - - - - none - - - - - enabled - - - - - - - 10 - 240 - 80 - 30 - - - - Bluetooth - - - - - - 90 - 240 - 300 - 30 - - - - false - - - none - - - - none - - - - - builtin - - - - - external - - - - - - - - 2 - 425 - 644 - 26 - - - - - true - - - - To activate this settings you have to reboot after changing! - - - Qt::AlignCenter - - - true - - - - - - 80 - 422 - 31 - 31 - - - - <html><head/><body><p align="justify"><img src=":/ico_warning.png"/></p></body></html> - - - - - - - - 660 - 30 - 131 - 131 - - - - <html><head/><body><p><img src=":/ico_setting.png"/></p></body></html> - - - - - - 660 - 380 - 131 - 41 - - - - Reset to defaults - - - false - - + + + + + - - pushButtonCancel - pushButtonResetToDefaults - pushButtonSave - tabWidget - radioButtonLeftHandDrive - radioButtonRightHandDrive - checkBoxShowClock - radioButton30FPS - radioButton60FPS - radioButton480p - radioButton720p - radioButton1080p - spinBoxOmxLayerIndex - spinBoxVideoMarginWidth - spinBoxVideoMarginHeight - horizontalSliderScreenDPI - checkBoxMusicAudioChannel - checkBoxSpeechAudioChannel - radioButtonRtAudio - radioButtonQtAudio - checkBoxEnableTouchscreen - listWidgetButtons - checkBoxPlayButton - checkBoxPauseButton - checkBoxTogglePlayButton - checkBoxNextTrackButton - checkBoxPreviousTrackButton - checkBoxHomeButton - checkBoxPhoneButton - checkBoxCallEndButton - checkBoxVoiceCommandButton - checkBoxLeftButton - checkBoxRightButton - checkBoxUpButton - checkBoxDownButton - checkBoxScrollWheelButton - checkBoxBackButton - checkBoxEnterButton - pushButtonSelectAll - pushButtonClearSelection - pushButtonShowBindings - radioButtonDisableBluetooth - radioButtonUseLocalBluetoothAdapter - radioButtonUseExternalBluetoothAdapter - lineEditExternalBluetoothAdapterAddress - + diff --git a/src/autoapp/autoapp.cpp b/src/autoapp/autoapp.cpp index 6a9b210..ac1d558 100644 --- a/src/autoapp/autoapp.cpp +++ b/src/autoapp/autoapp.cpp @@ -96,7 +96,9 @@ int main(int argc, char* argv[]) mainWindow.setWindowFlags(Qt::WindowStaysOnTopHint); autoapp::ui::SettingsWindow settingsWindow(configuration); + settingsWindow.setFixedSize(width, height); settingsWindow.setWindowFlags(Qt::WindowStaysOnTopHint); + settingsWindow.adjustSize(); autoapp::configuration::RecentAddressesList recentAddressesList(7); recentAddressesList.read();