More dynamic gui / player autoplay / add lightsensor to hw setup

This commit is contained in:
hawkeyexp 2018-11-24 15:23:09 +01:00
parent a06504a2a5
commit cc2e3d67ba
6 changed files with 784 additions and 811 deletions

View File

@ -146,6 +146,8 @@ private slots:
private: private:
Ui::MainWindow* ui_; Ui::MainWindow* ui_;
configuration::IConfiguration::Pointer configuration_;
QString brightnessFilename = "/sys/class/backlight/rpi_backlight/brightness"; QString brightnessFilename = "/sys/class/backlight/rpi_backlight/brightness";
QString brightnessFilenameAlt = "/tmp/custombrightness"; QString brightnessFilenameAlt = "/tmp/custombrightness";
QFile *brightnessFile; QFile *brightnessFile;
@ -226,12 +228,11 @@ private:
bool c7ButtonForce = false; bool c7ButtonForce = false;
bool hotspotActive = false; bool hotspotActive = false;
int currentPlaylistIndex = 0; int currentPlaylistIndex = 0;
bool background_set = false; bool background_set = false;
bool mediacontentchanged = true; bool mediacontentchanged = true;
bool lightsensor = false;
}; };
} }

View File

@ -61,7 +61,6 @@ private slots:
void onStartHotspot(); void onStartHotspot();
void onStopHotspot(); void onStopHotspot();
void syncNTPTime(); void syncNTPTime();
void on_pushButtonRescan_clicked();
void on_pushButtonAudioTest_clicked(); void on_pushButtonAudioTest_clicked();
void updateNetworkInfo(); void updateNetworkInfo();

View File

@ -53,6 +53,8 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
QFont _font(family, 11); QFont _font(family, 11);
qApp->setFont(_font); qApp->setFont(_font);
this->configuration_ = configuration;
// trigger files // trigger files
QFileInfo nightModeFile("/tmp/night_mode_enabled"); QFileInfo nightModeFile("/tmp/night_mode_enabled");
this->nightModeEnabled = nightModeFile.exists(); this->nightModeEnabled = nightModeFile.exists();
@ -72,6 +74,9 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
QFileInfo DebugmodeFile("/tmp/usb_debug_mode"); QFileInfo DebugmodeFile("/tmp/usb_debug_mode");
this->systemDebugmode = DebugmodeFile.exists(); this->systemDebugmode = DebugmodeFile.exists();
QFileInfo lightsensorFile("/etc/cs_lightsensor");
this->lightsensor = lightsensorFile.exists();
QFileInfo c1ButtonFile(this->custom_button_file_c1); QFileInfo c1ButtonFile(this->custom_button_file_c1);
this->c1ButtonForce = c1ButtonFile.exists(); this->c1ButtonForce = c1ButtonFile.exists();
@ -192,7 +197,6 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
connect(ui_->pushButtonStop, &QPushButton::clicked, this, &MainWindow::cameraStop); connect(ui_->pushButtonStop, &QPushButton::clicked, this, &MainWindow::cameraStop);
connect(ui_->pushButtonRecord, &QPushButton::clicked, this, &MainWindow::cameraRecord); connect(ui_->pushButtonRecord, &QPushButton::clicked, this, &MainWindow::cameraRecord);
connect(ui_->pushButtonSave, &QPushButton::clicked, this, &MainWindow::cameraSave); connect(ui_->pushButtonSave, &QPushButton::clicked, this, &MainWindow::cameraSave);
ui_->pushButtonDummyCamWifi->hide();
} else { } else {
ui_->pushButtonCameraShow->hide(); ui_->pushButtonCameraShow->hide();
ui_->pushButtonCameraShow2->hide(); ui_->pushButtonCameraShow2->hide();
@ -226,10 +230,8 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
ui_->VolumeSliderControlPlayer->hide(); ui_->VolumeSliderControlPlayer->hide();
// as default hide power buttons // as default hide power buttons
ui_->pushButtonShutdown->hide();
ui_->pushButtonReboot->hide();
ui_->pushButtonCancel->hide();
ui_->exitWidget->hide(); ui_->exitWidget->hide();
ui_->horizontalWidgetPower->hide();
// as default hide phone connected label // as default hide phone connected label
ui_->phoneConnected->hide(); ui_->phoneConnected->hide();
@ -241,8 +243,6 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
if (!this->wifiButtonForce) { if (!this->wifiButtonForce) {
ui_->pushButtonWifi->hide(); ui_->pushButtonWifi->hide();
ui_->pushButtonWifi2->hide(); ui_->pushButtonWifi2->hide();
} else {
ui_->pushButtonDummyCamWifi->hide();
} }
// set custom buttons if file enabled by trigger file // set custom buttons if file enabled by trigger file
@ -348,23 +348,6 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
connect(ui_->pushButton_c6, &QPushButton::clicked, this, &MainWindow::customButtonPressed6); connect(ui_->pushButton_c6, &QPushButton::clicked, this, &MainWindow::customButtonPressed6);
} }
if (!this->c7ButtonForce) {
ui_->pushButton_c7->hide();
} else {
// read button config 7
QFile paramFile(this->custom_button_file_c7);
paramFile.open(QIODevice::ReadOnly);
QTextStream data(&paramFile);
QStringList params = data.readAll().split("#");
paramFile.close();
ui_->pushButton_c7->setText(params[0].simplified());
this->custom_button_command_c7 = params[1].simplified();
if (params[2] != "") {
this->custom_button_color_c7 = params[2].simplified();
}
connect(ui_->pushButton_c7, &QPushButton::clicked, this, &MainWindow::customButtonPressed7);
}
// as default hide camera controls // as default hide camera controls
ui_->cameraWidget->hide(); ui_->cameraWidget->hide();
ui_->pushButtonRecordActive->hide(); ui_->pushButtonRecordActive->hide();
@ -504,6 +487,7 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
ui_->Digital_clock->hide(); ui_->Digital_clock->hide();
} }
} else { } else {
ui_->oldmenuDummy->show();
ui_->Digital_clock->show(); ui_->Digital_clock->show();
ui_->bigClock->hide(); ui_->bigClock->hide();
} }
@ -524,6 +508,16 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
ui_->horizontalSliderAlpha->setValue(int(configuration->getAlphaTrans())); ui_->horizontalSliderAlpha->setValue(int(configuration->getAlphaTrans()));
MainWindow::on_horizontalSliderAlpha_valueChanged(int(configuration->getAlphaTrans())); MainWindow::on_horizontalSliderAlpha_valueChanged(int(configuration->getAlphaTrans()));
// Hide auto day/night if needed
if (this->lightsensor) {
ui_->pushButtonDay->hide();
ui_->pushButtonNight->hide();
ui_->pushButtonDay2->hide();
ui_->pushButtonNight2->hide();
ui_->pushButtonBrightness->hide();
ui_->pushButtonBrightness2->hide();
}
player = new QMediaPlayer(this); player = new QMediaPlayer(this);
playlist = new QMediaPlaylist(this); playlist = new QMediaPlaylist(this);
connect(player, &QMediaPlayer::positionChanged, this, &MainWindow::on_positionChanged); connect(player, &QMediaPlayer::positionChanged, this, &MainWindow::on_positionChanged);
@ -549,7 +543,16 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
MainWindow::scanFolders(); MainWindow::scanFolders();
ui_->comboBoxAlbum->setCurrentText(QString::fromStdString(configuration->getMp3SubFolder())); ui_->comboBoxAlbum->setCurrentText(QString::fromStdString(configuration->getMp3SubFolder()));
MainWindow::scanFiles(); MainWindow::scanFiles();
player->setPlaylist(this->playlist);
ui_->mp3List->setCurrentRow(configuration->getMp3Track()); ui_->mp3List->setCurrentRow(configuration->getMp3Track());
this->currentPlaylistIndex = configuration->getMp3Track();
if (configuration->mp3AutoPlay()) {
MainWindow::playerShow();
MainWindow::playerHide();
MainWindow::on_pushButtonPlayerPlayList_clicked();
MainWindow::playerShow();
}
watcher = new QFileSystemWatcher(this); watcher = new QFileSystemWatcher(this);
watcher->addPath("/media/USBDRIVES"); watcher->addPath("/media/USBDRIVES");
@ -757,7 +760,6 @@ void f1x::openauto::autoapp::ui::MainWindow::on_horizontalSliderAlpha_valueChang
ui_->pushButtonDay->setStyleSheet( "background: rgba(252, 233, 79, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);"); ui_->pushButtonDay->setStyleSheet( "background: rgba(252, 233, 79, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);");
ui_->pushButtonNight->setStyleSheet( "background-color: rgba(114, 159, 207, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);"); ui_->pushButtonNight->setStyleSheet( "background-color: rgba(114, 159, 207, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);");
ui_->pushButtonCameraShow->setStyleSheet( "background-color: rgba(100, 62, 4, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);"); ui_->pushButtonCameraShow->setStyleSheet( "background-color: rgba(100, 62, 4, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);");
ui_->pushButtonDummyCamWifi->setStyleSheet( "background-color: rgba(117, 80, 123, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);");
ui_->pushButtonWifi->setStyleSheet( "background-color: rgba(252, 175, 62, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);"); ui_->pushButtonWifi->setStyleSheet( "background-color: rgba(252, 175, 62, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);");
ui_->pushButtonToggleGUI->setStyleSheet( "background-color: rgba(237, 164, 255, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);"); ui_->pushButtonToggleGUI->setStyleSheet( "background-color: rgba(237, 164, 255, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);");
ui_->pushButton_c1->setStyleSheet( "background-color: rgba(" + this->custom_button_color_c1 + ", " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5); color: rgb(255,255,255);"); ui_->pushButton_c1->setStyleSheet( "background-color: rgba(" + this->custom_button_color_c1 + ", " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5); color: rgb(255,255,255);");
@ -766,7 +768,6 @@ void f1x::openauto::autoapp::ui::MainWindow::on_horizontalSliderAlpha_valueChang
ui_->pushButton_c4->setStyleSheet( "background-color: rgba(" + this->custom_button_color_c4 + ", " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5); color: rgb(255,255,255);"); ui_->pushButton_c4->setStyleSheet( "background-color: rgba(" + this->custom_button_color_c4 + ", " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5); color: rgb(255,255,255);");
ui_->pushButton_c5->setStyleSheet( "background-color: rgba(" + this->custom_button_color_c5 + ", " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5); color: rgb(255,255,255);"); ui_->pushButton_c5->setStyleSheet( "background-color: rgba(" + this->custom_button_color_c5 + ", " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5); color: rgb(255,255,255);");
ui_->pushButton_c6->setStyleSheet( "background-color: rgba(" + this->custom_button_color_c6 + ", " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5); color: rgb(255,255,255);"); ui_->pushButton_c6->setStyleSheet( "background-color: rgba(" + this->custom_button_color_c6 + ", " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5); color: rgb(255,255,255);");
ui_->pushButton_c7->setStyleSheet( "background-color: rgba(" + this->custom_button_color_c7 + ", " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5); color: rgb(255,255,255);");
ui_->pushButtonDummy1->setStyleSheet( "background-color: rgba(186, 189, 182, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);"); ui_->pushButtonDummy1->setStyleSheet( "background-color: rgba(186, 189, 182, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);");
ui_->pushButtonDummy2->setStyleSheet( "background-color: rgba(186, 189, 182, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);"); ui_->pushButtonDummy2->setStyleSheet( "background-color: rgba(186, 189, 182, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);");
ui_->pushButtonDummy3->setStyleSheet( "background-color: rgba(186, 189, 182, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);"); ui_->pushButtonDummy3->setStyleSheet( "background-color: rgba(186, 189, 182, " + alp + " ); border-radius: 4px; border: 2px solid rgba(255,255,255,0.5);");
@ -876,20 +877,16 @@ void f1x::openauto::autoapp::ui::MainWindow::playerHide()
void f1x::openauto::autoapp::ui::MainWindow::toggleExit() void f1x::openauto::autoapp::ui::MainWindow::toggleExit()
{ {
if (!this->exitMenuVisible) { if (!this->exitMenuVisible) {
ui_->pushButtonExit->hide();
ui_->pushButtonShutdown->show();
ui_->pushButtonReboot->show();
ui_->pushButtonCancel->show();
ui_->exitWidget->show(); ui_->exitWidget->show();
ui_->buttonWidget->hide(); ui_->buttonWidget->hide();
ui_->horizontalWidgetButtons->hide();
ui_->horizontalWidgetPower->show();
this->exitMenuVisible = true; this->exitMenuVisible = true;
} else { } else {
ui_->pushButtonShutdown->hide();
ui_->pushButtonReboot->hide();
ui_->pushButtonCancel->hide();
ui_->pushButtonExit->show();
ui_->buttonWidget->show(); ui_->buttonWidget->show();
ui_->exitWidget->hide(); ui_->exitWidget->hide();
ui_->horizontalWidgetButtons->show();
ui_->horizontalWidgetPower->hide();
this->exitMenuVisible = false; this->exitMenuVisible = false;
} }
} }
@ -1146,10 +1143,10 @@ void f1x::openauto::autoapp::ui::MainWindow::metaDataChanged()
ui_->labelTrack->setText(QString::number(playlist->currentIndex()+1)); ui_->labelTrack->setText(QString::number(playlist->currentIndex()+1));
ui_->labelTrackCount->setText(QString::number(playlist->mediaCount())); ui_->labelTrackCount->setText(QString::number(playlist->mediaCount()));
// Here a write to config is needed to keep playlist index // Write current playing album and track to config
// this->configuration_->setMp3Track(playlist->currentIndex());
//configuration->setMp3Track(ui_->mp3List->currentRow()); this->configuration_->setMp3SubFolder(ui_->comboBoxAlbum->currentText().toStdString());
// this->configuration_->save();
} }
void f1x::openauto::autoapp::ui::MainWindow::on_pushButtonPlayerPlayList_clicked() void f1x::openauto::autoapp::ui::MainWindow::on_pushButtonPlayerPlayList_clicked()
@ -1205,13 +1202,10 @@ void f1x::openauto::autoapp::ui::MainWindow::scanFolders()
} }
this->currentPlaylistIndex = 0; this->currentPlaylistIndex = 0;
ui_->SysinfoTopLeft->hide(); ui_->SysinfoTopLeft->hide();
//timerscan->stop();
} }
} }
catch(...) { catch(...) {
ui_->SysinfoTopLeft->hide(); ui_->SysinfoTopLeft->hide();
//timerscan->stop();
qDebug() << "Fail in Folderscan";
} }
} }
@ -1515,15 +1509,11 @@ void f1x::openauto::autoapp::ui::MainWindow::tmpChanged()
if ((ui_->pushButtonWifi->isVisible() == true) || (ui_->pushButtonWifi2->isVisible() == true)){ if ((ui_->pushButtonWifi->isVisible() == true) || (ui_->pushButtonWifi2->isVisible() == true)){
ui_->pushButtonWifi->hide(); ui_->pushButtonWifi->hide();
ui_->pushButtonWifi2->hide(); ui_->pushButtonWifi2->hide();
if (!this->cameraButtonForce) {
ui_->pushButtonDummyCamWifi->show();
}
} }
} else { } else {
if ((ui_->pushButtonWifi->isVisible() == false) || (ui_->pushButtonWifi2->isVisible() == false)) { if ((ui_->pushButtonWifi->isVisible() == false) || (ui_->pushButtonWifi2->isVisible() == false)) {
ui_->pushButtonWifi->show(); ui_->pushButtonWifi->show();
ui_->pushButtonWifi2->show(); ui_->pushButtonWifi2->show();
ui_->pushButtonDummyCamWifi->hide();
} }
} }
@ -1557,4 +1547,60 @@ void f1x::openauto::autoapp::ui::MainWindow::tmpChanged()
ui_->pushButtonDummyClassic1->show(); ui_->pushButtonDummyClassic1->show();
ui_->pushButtonDummyClassic2->show(); ui_->pushButtonDummyClassic2->show();
} }
// Hide auto day/night if needed
if (this->lightsensor) {
ui_->pushButtonDay->hide();
ui_->pushButtonNight->hide();
ui_->pushButtonDay2->hide();
ui_->pushButtonNight2->hide();
ui_->pushButtonBrightness->hide();
ui_->pushButtonBrightness2->hide();
}
// use big clock in classic gui?
if (this->configuration_->showBigClock()) {
this->UseBigClock = true;
} else {
this->UseBigClock = false;
}
// clock viibility by settings
if (!this->configuration_->showClock()) {
ui_->Digital_clock->hide();
ui_->bigClock->hide();
this->NoClock = true;
} else {
this->NoClock = false;
if (this->UseBigClock) {
ui_->oldmenuDummy->hide();
ui_->bigClock->show();
if (oldGUIStyle) {
ui_->Digital_clock->hide();
}
} else {
ui_->oldmenuDummy->show();
ui_->Digital_clock->show();
ui_->bigClock->hide();
}
}
// hide gui toggle if enabled in settings
if (this->configuration_->hideMenuToggle()) {
ui_->pushButtonToggleGUI->hide();
ui_->pushButtonToggleGUI2->hide();
} else {
ui_->pushButtonToggleGUI->show();
ui_->pushButtonToggleGUI2->show();
}
// hide alpha controls if enabled in settings
if (!this->configuration_->hideAlpha()) {
ui_->pushButtonAlpha->show();
} else {
ui_->pushButtonAlpha->hide();
}
if (QString::number(this->configuration_->getAlphaTrans()) != QString::number(ui_->horizontalSliderAlpha->value())) {
ui_->horizontalSliderAlpha->setValue(static_cast<int>(this->configuration_->getAlphaTrans()));
}
} }

View File

@ -94,8 +94,6 @@ SettingsWindow::SettingsWindow(configuration::IConfiguration::Pointer configurat
QString time_text_minute=time.toString("mm"); QString time_text_minute=time.toString("mm");
ui_->spinBoxHour->setValue((time_text_hour).toInt()); ui_->spinBoxHour->setValue((time_text_hour).toInt());
ui_->spinBoxMinute->setValue((time_text_minute).toInt()); ui_->spinBoxMinute->setValue((time_text_minute).toInt());
SettingsWindow::on_pushButtonRescan_clicked();
ui_->label_modeswitchprogress->hide(); ui_->label_modeswitchprogress->hide();
QFileInfo hotspotFile("/tmp/hotspot_active"); QFileInfo hotspotFile("/tmp/hotspot_active");
@ -127,7 +125,6 @@ void SettingsWindow::onSave()
configuration_->setAlphaTrans(static_cast<size_t>(ui_->horizontalSliderAlphaTrans->value())); configuration_->setAlphaTrans(static_cast<size_t>(ui_->horizontalSliderAlphaTrans->value()));
configuration_->hideMenuToggle(ui_->checkBoxHideMenuToggle->isChecked()); configuration_->hideMenuToggle(ui_->checkBoxHideMenuToggle->isChecked());
configuration_->hideAlpha(ui_->checkBoxHideAlpha->isChecked()); configuration_->hideAlpha(ui_->checkBoxHideAlpha->isChecked());
configuration_->setMp3SubFolder(ui_->comboBoxSubFolder->currentText().toStdString());
configuration_->mp3AutoPlay(ui_->checkBoxAutoPlay->isChecked()); configuration_->mp3AutoPlay(ui_->checkBoxAutoPlay->isChecked());
configuration_->setVideoFPS(ui_->radioButton30FPS->isChecked() ? aasdk::proto::enums::VideoFPS::_30 : aasdk::proto::enums::VideoFPS::_60); configuration_->setVideoFPS(ui_->radioButton30FPS->isChecked() ? aasdk::proto::enums::VideoFPS::_30 : aasdk::proto::enums::VideoFPS::_60);
@ -273,6 +270,8 @@ void SettingsWindow::onSave()
params.append("#"); params.append("#");
params.append( std::string(ui_->comboBoxSDOC->currentText().split(" ")[0].toStdString()) ); params.append( std::string(ui_->comboBoxSDOC->currentText().split(" ")[0].toStdString()) );
params.append("#"); params.append("#");
params.append( std::string(ui_->comboBoxLS->currentText().split(" ")[0].toStdString()) );
params.append("#");
system((std::string("/usr/local/bin/autoapp_helper setparams#") + std::string(params) + std::string(" &") ).c_str()); system((std::string("/usr/local/bin/autoapp_helper setparams#") + std::string(params) + std::string(" &") ).c_str());
@ -307,8 +306,6 @@ void SettingsWindow::load()
ui_->checkBoxOldGUI->setChecked(configuration_->oldGUI()); ui_->checkBoxOldGUI->setChecked(configuration_->oldGUI());
ui_->checkBoxHideMenuToggle->setChecked(configuration_->hideMenuToggle()); ui_->checkBoxHideMenuToggle->setChecked(configuration_->hideMenuToggle());
ui_->checkBoxHideAlpha->setChecked(configuration_->hideAlpha()); ui_->checkBoxHideAlpha->setChecked(configuration_->hideAlpha());
ui_->comboBoxSubFolder->setCurrentText(QString::fromStdString(configuration_->getMp3SubFolder()));
ui_->mp3track->setText(QString::number(configuration_->getMp3Track()));
ui_->checkBoxAutoPlay->setChecked(configuration_->mp3AutoPlay()); ui_->checkBoxAutoPlay->setChecked(configuration_->mp3AutoPlay());
ui_->radioButton30FPS->setChecked(configuration_->getVideoFPS() == aasdk::proto::enums::VideoFPS::_30); ui_->radioButton30FPS->setChecked(configuration_->getVideoFPS() == aasdk::proto::enums::VideoFPS::_30);
@ -722,6 +719,12 @@ void SettingsWindow::loadSystemValues()
} else { } else {
ui_->comboBoxSDOC->setCurrentIndex(0); ui_->comboBoxSDOC->setCurrentIndex(0);
} }
// set lightsensor
if (getparams[40] == "enabled") {
ui_->comboBoxLS->setCurrentIndex(1);
} else {
ui_->comboBoxLS->setCurrentIndex(0);
}
} }
} }
@ -875,24 +878,6 @@ void SettingsWindow::show_tab8()
} }
} }
void f1x::openauto::autoapp::ui::SettingsWindow::on_pushButtonRescan_clicked()
{
int cleaner = ui_->comboBoxSubFolder->count();
// clean and rebuild subfolder box
while (cleaner > -1) {
ui_->comboBoxSubFolder->removeItem(cleaner);
cleaner--;
}
ui_->comboBoxSubFolder->addItem("/");
QDir directory("/media/MYMEDIA");
QStringList folders = directory.entryList(QStringList() << "*", QDir::AllDirs, QDir::Name);
foreach (QString foldername, folders) {
if (foldername != ".." && foldername != ".") {
ui_->comboBoxSubFolder->addItem(foldername);
}
}
}
void f1x::openauto::autoapp::ui::SettingsWindow::on_pushButtonAudioTest_clicked() void f1x::openauto::autoapp::ui::SettingsWindow::on_pushButtonAudioTest_clicked()
{ {
ui_->labelTestInProgress->show(); ui_->labelTestInProgress->show();

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>862</width> <width>862</width>
<height>1297</height> <height>1301</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@ -554,11 +554,8 @@ color: rgb(255, 255, 255);</string>
<property name="bottomMargin"> <property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="0"> <item row="0" column="0" colspan="2">
<layout class="QHBoxLayout" name="Layout_DayNight"> <layout class="QHBoxLayout" name="Layout_Sliderselect">
<property name="spacing">
<number>6</number>
</property>
<item> <item>
<widget class="QPushButton" name="pushButtonDay"> <widget class="QPushButton" name="pushButtonDay">
<property name="sizePolicy"> <property name="sizePolicy">
@ -670,15 +667,8 @@ outline: none;</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout>
</item>
<item row="2" column="0">
<layout class="QHBoxLayout" name="Layout_Camera">
<property name="spacing">
<number>6</number>
</property>
<item> <item>
<widget class="QPushButton" name="pushButtonCameraShow"> <widget class="QPushButton" name="pushButtonBrightness">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -686,7 +676,7 @@ outline: none;</string>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">background-color: rgba(100, 62, 4, 0.5); <string notr="true">background-color: rgba(245, 121, 0, 0.5);
border-radius: 4px; border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5); border: 2px solid rgba(255,255,255,0.5);
outline: none;</string> outline: none;</string>
@ -696,7 +686,7 @@ outline: none;</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normalon>:/camera-hot.png</normalon> <normalon>:/brightness-hot.png</normalon>
</iconset> </iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
@ -708,7 +698,7 @@ outline: none;</string>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButtonWifi"> <widget class="QPushButton" name="pushButtonVolume">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -716,10 +706,9 @@ outline: none;</string>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">background-color: rgba(252, 175, 62, 0.5); <string notr="true">background-color: rgba(64, 191, 191, 0.5);
border-radius: 4px; border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5); border: 2px solid rgba(255,255,255,0.5);
color: rgb(255, 255, 255);
outline: none;</string> outline: none;</string>
</property> </property>
<property name="text"> <property name="text">
@ -727,7 +716,7 @@ outline: none;</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normalon>:/wifi-hot.png</normalon> <normalon>:/volume-hot.png</normalon>
</iconset> </iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
@ -738,280 +727,6 @@ outline: none;</string>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="pushButtonDummyCamWifi">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(100, 62, 4, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonWifiSetup">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(100, 62, 4, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string>Setup</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_c7">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(186, 189, 182, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="3">
<layout class="QHBoxLayout" name="Layout_Exit">
<item>
<widget class="QPushButton" name="pushButtonExit">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(164, 0, 0, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/power-hot.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonShutdown">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(239, 41, 41, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/power-hot.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonReboot">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(252, 175, 62, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/reboot-hot.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonCancel">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(32, 74, 135, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/back-hot.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="Layout_Custom2">
<item>
<widget class="QPushButton" name="pushButton_c3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(186, 189, 182, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_c4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(186, 189, 182, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonDummy2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(186, 189, 182, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="3">
<layout class="QHBoxLayout" name="Layout_Settings">
<item> <item>
<widget class="QPushButton" name="pushButtonToggleGUI"> <widget class="QPushButton" name="pushButtonToggleGUI">
<property name="sizePolicy"> <property name="sizePolicy">
@ -1109,7 +824,7 @@ outline: none;</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="1" column="0"> <item row="1" column="0" colspan="2">
<layout class="QHBoxLayout" name="Layout_Custom1"> <layout class="QHBoxLayout" name="Layout_Custom1">
<item> <item>
<widget class="QPushButton" name="pushButton_c1"> <widget class="QPushButton" name="pushButton_c1">
@ -1198,10 +913,84 @@ outline: none;</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item>
</item> <widget class="QPushButton" name="pushButton_c3">
<item row="1" column="3"> <property name="sizePolicy">
<layout class="QHBoxLayout" name="Layout_Custom3"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(186, 189, 182, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_c4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(186, 189, 182, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonDummy2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(186, 189, 182, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="pushButton_c5"> <widget class="QPushButton" name="pushButton_c5">
<property name="sizePolicy"> <property name="sizePolicy">
@ -1282,137 +1071,321 @@ outline: none;</string>
</item> </item>
</layout> </layout>
</item> </item>
<item row="2" column="1"> <item row="2" column="0" colspan="2">
<layout class="QHBoxLayout" name="Layout_BCenter"> <layout class="QHBoxLayout" name="horizontalLayout_14">
<item> <item>
<widget class="QPushButton" name="pushButtonDebug"> <widget class="QWidget" name="horizontalWidgetButtons" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="styleSheet"> <layout class="QHBoxLayout" name="Layout_BCenter">
<string notr="true">background-color: rgba(85, 87, 83, 0.5); <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="QPushButton" name="pushButtonCameraShow">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(100, 62, 4, 0.5);
border-radius: 4px; border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5); border: 2px solid rgba(255,255,255,0.5);
outline: none;</string> outline: none;</string>
</property> </property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normalon>:/bug-hot.png</normalon> <normalon>:/camera-hot.png</normalon>
</iconset> </iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
<width>64</width> <width>64</width>
<height>64</height> <height>64</height>
</size> </size>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButtonMusic"> <widget class="QPushButton" name="pushButtonWifi">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="font"> <property name="styleSheet">
<font> <string notr="true">background-color: rgba(252, 175, 62, 0.5);
<weight>75</weight> border-radius: 4px;
<bold>true</bold> border: 2px solid rgba(255,255,255,0.5);
</font> color: rgb(255, 255, 255);
</property> outline: none;</string>
<property name="styleSheet"> </property>
<string notr="true">background-color: rgba(78, 154, 6, 0.5); <property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/wifi-hot.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonWifiSetup">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(100, 62, 4, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string>Setup</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonDebug">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 87, 83, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/bug-hot.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonMusic">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(78, 154, 6, 0.5);
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
border-radius: 4px; border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5); border: 2px solid rgba(255,255,255,0.5);
outline: none;</string> outline: none;</string>
</property> </property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normalon>:/mp3-hot.png</normalon> <normalon>:/mp3-hot.png</normalon>
</iconset> </iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
<width>64</width> <width>64</width>
<height>64</height> <height>64</height>
</size> </size>
</property> </property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonExit">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(164, 0, 0, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/power-hot.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
</widget>
</item>
</layout>
</widget> </widget>
</item> </item>
</layout>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="Layout_Sliderselect">
<item> <item>
<widget class="QPushButton" name="pushButtonBrightness"> <widget class="QWidget" name="horizontalWidgetPower" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="styleSheet"> <layout class="QHBoxLayout" name="horizontalLayoutPower">
<string notr="true">background-color: rgba(245, 121, 0, 0.5); <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="QPushButton" name="pushButtonShutdown">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(239, 41, 41, 0.5);
border-radius: 4px; border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5); border: 2px solid rgba(255,255,255,0.5);
outline: none;</string> outline: none;</string>
</property> </property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normalon>:/brightness-hot.png</normalon> <normalon>:/power-hot.png</normalon>
</iconset> </iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
<width>64</width> <width>64</width>
<height>64</height> <height>64</height>
</size> </size>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButtonVolume"> <widget class="QPushButton" name="pushButtonReboot">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">background-color: rgba(64, 191, 191, 0.5); <string notr="true">background-color: rgba(252, 175, 62, 0.5);
border-radius: 4px; border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5); border: 2px solid rgba(255,255,255,0.5);
outline: none;</string> outline: none;</string>
</property> </property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset> <iconset>
<normalon>:/volume-hot.png</normalon> <normalon>:/reboot-hot.png</normalon>
</iconset> </iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
<width>64</width> <width>64</width>
<height>64</height> <height>64</height>
</size> </size>
</property> </property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonCancel">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(32, 74, 135, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/back-hot.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
</widget>
</item>
</layout>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -1525,6 +1498,34 @@ outline: none;</string>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="pushButtonToggleGUI2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/eye-hot.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="pushButtonDay2"> <widget class="QPushButton" name="pushButtonDay2">
<property name="sizePolicy"> <property name="sizePolicy">
@ -1859,34 +1860,6 @@ outline: none;</string>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="pushButtonToggleGUI2">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/eye-hot.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="pushButtonWifi2"> <widget class="QPushButton" name="pushButtonWifi2">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>963</width> <width>963</width>
<height>3152</height> <height>3006</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@ -253,6 +253,9 @@ outline: none;
</sizepolicy> </sizepolicy>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_19"> <layout class="QVBoxLayout" name="verticalLayout_19">
<property name="spacing">
<number>6</number>
</property>
<property name="topMargin"> <property name="topMargin">
<number>2</number> <number>2</number>
</property> </property>
@ -406,165 +409,32 @@ outline: none;
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="groupBoxMP3"> <widget class="QGroupBox" name="groupBoxMediaPlayer">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="title"> <property name="title">
<string>MP3 Player defaults </string> <string>Media player defaults</string>
</property> </property>
<layout class="QFormLayout" name="formLayout_6"> <layout class="QFormLayout" name="formLayout_5">
<property name="horizontalSpacing">
<number>9</number>
</property>
<property name="leftMargin">
<number>2</number>
</property>
<property name="topMargin"> <property name="topMargin">
<number>2</number> <number>2</number>
</property> </property>
<property name="bottomMargin"> <property name="bottomMargin">
<number>2</number> <number>2</number>
</property> </property>
<item row="2" column="0"> <item row="0" column="0">
<widget class="QPushButton" name="pushButtonRescan">
<property name="minimumSize">
<size>
<width>140</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>140</width>
<height>32</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(85, 87, 83);
outline: none;</string>
</property>
<property name="text">
<string>Rescan Folders</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="comboBoxSubFolder">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>32</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}</string>
</property>
</widget>
</item>
<item row="8" column="0" colspan="2">
<layout class="QFormLayout" name="formLayout_8">
<property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_17">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>30</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/ico_warning.png&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_18">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>If you select a subfolder the player will start with listing the files inside this folder (on system start).</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_19">
<property name="text">
<string>Last Played Index</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="mp3track">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QCheckBox" name="checkBoxAutoPlay"> <widget class="QCheckBox" name="checkBoxAutoPlay">
<property name="text"> <property name="text">
<string>auto play</string> <string>auto play</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="0" column="1">
<widget class="QLabel" name="label_16"> <widget class="QLabel" name="label_AutoPlay">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -5660,6 +5530,205 @@ QComboBox::item:selected {
</item> </item>
</widget> </widget>
</item> </item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QComboBox" name="comboBoxHardwareRTC">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>32</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}
QComboBox::item {
padding-top: 6px;
padding-bottom: 6px;
height: 32px;
min-height: 32px;
}
QComboBox::item:selected {
background-color: rgb(78, 154, 6);
padding-top: 6px;
padding-bottom: 6px;
height: 32px;
min-height: 32px;
}</string>
</property>
<item>
<property name="text">
<string>none</string>
</property>
</item>
<item>
<property name="text">
<string>abx80x</string>
</property>
</item>
<item>
<property name="text">
<string>ds1307</string>
</property>
</item>
<item>
<property name="text">
<string>ds1339</string>
</property>
</item>
<item>
<property name="text">
<string>ds3231</string>
</property>
</item>
<item>
<property name="text">
<string>mcp7940x</string>
</property>
</item>
<item>
<property name="text">
<string>mcp7941x</string>
</property>
</item>
<item>
<property name="text">
<string>pcf2127</string>
</property>
</item>
<item>
<property name="text">
<string>pcf8523</string>
</property>
</item>
<item>
<property name="text">
<string>pcf8563</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QWidget" name="formWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QFormLayout" name="formLayout_7">
<property name="horizontalSpacing">
<number>0</number>
</property>
<property name="verticalSpacing">
<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 row="0" column="0">
<widget class="QLabel" name="labelHardwareTZ">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>Timezone</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="comboBoxTZ">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>32</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}
QComboBox::item {
padding-top: 6px;
padding-bottom: 6px;
height: 32px;
min-height: 32px;
}
QComboBox::item:selected {
background-color: rgb(78, 154, 6);
padding-top: 6px;
padding-bottom: 6px;
height: 32px;
min-height: 32px;
}</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="labelHardwareRTC"> <widget class="QLabel" name="labelHardwareRTC">
<property name="sizePolicy"> <property name="sizePolicy">
@ -5679,172 +5748,7 @@ QComboBox::item:selected {
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1">
<widget class="QComboBox" name="comboBoxHardwareRTC">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>32</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}
QComboBox::item {
padding-top: 6px;
padding-bottom: 6px;
height: 32px;
min-height: 32px;
}
QComboBox::item:selected {
background-color: rgb(78, 154, 6);
padding-top: 6px;
padding-bottom: 6px;
height: 32px;
min-height: 32px;
}</string>
</property>
<item>
<property name="text">
<string>none</string>
</property>
</item>
<item>
<property name="text">
<string>abx80x</string>
</property>
</item>
<item>
<property name="text">
<string>ds1307</string>
</property>
</item>
<item>
<property name="text">
<string>ds1339</string>
</property>
</item>
<item>
<property name="text">
<string>ds3231</string>
</property>
</item>
<item>
<property name="text">
<string>mcp7940x</string>
</property>
</item>
<item>
<property name="text">
<string>mcp7941x</string>
</property>
</item>
<item>
<property name="text">
<string>pcf2127</string>
</property>
</item>
<item>
<property name="text">
<string>pcf8523</string>
</property>
</item>
<item>
<property name="text">
<string>pcf8563</string>
</property>
</item>
</widget>
</item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="labelHardwareTZ">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>Timezone</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="comboBoxTZ">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>32</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}
QComboBox::item {
padding-top: 6px;
padding-bottom: 6px;
height: 32px;
min-height: 32px;
}
QComboBox::item:selected {
background-color: rgb(78, 154, 6);
padding-top: 6px;
padding-bottom: 6px;
height: 32px;
min-height: 32px;
}</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="labelHardwareCam"> <widget class="QLabel" name="labelHardwareCam">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
@ -5863,7 +5767,7 @@ QComboBox::item:selected {
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="2" column="1">
<widget class="QComboBox" name="comboBoxCam"> <widget class="QComboBox" name="comboBoxCam">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@ -5921,7 +5825,7 @@ QComboBox::item:selected {
</item> </item>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item row="3" column="0">
<widget class="QLabel" name="labelHardwareBluetooth"> <widget class="QLabel" name="labelHardwareBluetooth">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
@ -5940,7 +5844,7 @@ QComboBox::item:selected {
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="3" column="1">
<widget class="QComboBox" name="comboBoxBluetooth"> <widget class="QComboBox" name="comboBoxBluetooth">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@ -6003,7 +5907,7 @@ QComboBox::item:selected {
</item> </item>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="4" column="0">
<widget class="QLabel" name="labelHardwareSDOC"> <widget class="QLabel" name="labelHardwareSDOC">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
@ -6022,7 +5926,7 @@ QComboBox::item:selected {
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="4" column="1">
<widget class="QComboBox" name="comboBoxSDOC"> <widget class="QComboBox" name="comboBoxSDOC">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@ -6080,6 +5984,71 @@ QComboBox::item:selected {
</item> </item>
</widget> </widget>
</item> </item>
<item row="5" column="0">
<widget class="QLabel" name="labelHardwareLS">
<property name="text">
<string>Lightsensor</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QComboBox" name="comboBoxLS">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>32</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QScrollBar {
width: 40px;
background-color: rgba(85, 87, 83, 0.7);
}
QComboBox::item {
padding-top: 6px;
padding-bottom: 6px;
height: 32px;
min-height: 32px;
}
QComboBox::item:selected {
background-color: rgb(78, 154, 6);
padding-top: 6px;
padding-bottom: 6px;
height: 32px;
min-height: 32px;
}</string>
</property>
<item>
<property name="text">
<string>none</string>
</property>
</item>
<item>
<property name="text">
<string>enabled (tsl2561)</string>
</property>
</item>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>