Add mediapaths to settings / gui reworks

This commit is contained in:
hawkeyexp 2018-09-21 00:15:16 +02:00
parent e26022190e
commit f2e27a8d64
8 changed files with 511 additions and 82 deletions

View File

@ -57,6 +57,12 @@ public:
void hideAlpha(bool value) override;
bool hideAlpha() const override;
std::string getMp3MasterPath() const override;
void setMp3MasterPath(const std::string& value) override;
std::string getMp3SubFolder() const override;
void setMp3SubFolder(const std::string& value) override;
aasdk::proto::enums::VideoFPS::Enum getVideoFPS() const override;
void setVideoFPS(aasdk::proto::enums::VideoFPS::Enum value) override;
aasdk::proto::enums::VideoResolution::Enum getVideoResolution() const override;
@ -98,6 +104,8 @@ private:
size_t alphaTrans_;
bool hideMenuToggle_;
bool hideAlpha_;
std::string mp3MasterPath_;
std::string mp3SubFolder_;
aasdk::proto::enums::VideoFPS::Enum videoFPS_;
aasdk::proto::enums::VideoResolution::Enum videoResolution_;
@ -124,6 +132,9 @@ private:
static const std::string cGeneralHandednessOfTrafficTypeKey;
static const std::string cGeneralMp3MasterPathKey;
static const std::string cGeneralMp3SubFolderKey;
static const std::string cVideoFPSKey;
static const std::string cVideoResolutionKey;
static const std::string cVideoScreenDPIKey;

View File

@ -65,6 +65,12 @@ public:
virtual void hideAlpha(bool value) = 0;
virtual bool hideAlpha() const = 0;
virtual std::string getMp3MasterPath() const = 0;
virtual void setMp3MasterPath(const std::string& value) = 0;
virtual std::string getMp3SubFolder() const = 0;
virtual void setMp3SubFolder(const std::string& value) = 0;
virtual aasdk::proto::enums::VideoFPS::Enum getVideoFPS() const = 0;
virtual void setVideoFPS(aasdk::proto::enums::VideoFPS::Enum value) = 0;
virtual aasdk::proto::enums::VideoResolution::Enum getVideoResolution() const = 0;

View File

@ -21,6 +21,7 @@
#include <memory>
#include <QWidget>
#include <f1x/openauto/autoapp/Configuration/IConfiguration.hpp>
#include <QFileDialog>
class QCheckBox;
@ -70,6 +71,9 @@ private slots:
void show_tab7();
void show_tab8();
void on_pushButton_clicked();
void scanSubFolders();
private:
void showEvent(QShowEvent* event);
void load();

View File

@ -41,6 +41,9 @@ const std::string Configuration::cGeneralHideAlphaKey = "General.HideAlpha";
const std::string Configuration::cGeneralHandednessOfTrafficTypeKey = "General.HandednessOfTrafficType";
const std::string Configuration::cGeneralMp3MasterPathKey = "General.Mp3MasterPath";
const std::string Configuration::cGeneralMp3SubFolderKey = "General.Mp3SubFolder";
const std::string Configuration::cVideoFPSKey = "Video.FPS";
const std::string Configuration::cVideoResolutionKey = "Video.Resolution";
const std::string Configuration::cVideoScreenDPIKey = "Video.ScreenDPI";
@ -87,17 +90,18 @@ void Configuration::load()
boost::property_tree::ini_parser::read_ini(cConfigFileName, iniConfig);
handednessOfTrafficType_ = static_cast<HandednessOfTrafficType>(iniConfig.get<uint32_t>(cGeneralHandednessOfTrafficTypeKey,
static_cast<uint32_t>(HandednessOfTrafficType::LEFT_HAND_DRIVE)));
static_cast<uint32_t>(HandednessOfTrafficType::LEFT_HAND_DRIVE)));
showClock_ = iniConfig.get<bool>(cGeneralShowClockKey, true);
showBigClock_ = iniConfig.get<bool>(cGeneralShowBigClockKey, false);
oldGUI_ = iniConfig.get<bool>(cGeneralOldGUIKey, false);
alphaTrans_ = iniConfig.get<size_t>(cGeneralAlphaTransKey, 50);
hideMenuToggle_ = iniConfig.get<bool>(cGeneralHideMenuToggleKey, false);
hideAlpha_ = iniConfig.get<bool>(cGeneralHideAlphaKey, false);
mp3MasterPath_ = iniConfig.get<std::string>(cGeneralMp3MasterPathKey, "/media/CSSTORAGE/Music");
mp3SubFolder_ = iniConfig.get<std::string>(cGeneralMp3SubFolderKey, "/");
videoFPS_ = static_cast<aasdk::proto::enums::VideoFPS::Enum>(iniConfig.get<uint32_t>(cVideoFPSKey,
aasdk::proto::enums::VideoFPS::_60));
aasdk::proto::enums::VideoFPS::_30));
videoResolution_ = static_cast<aasdk::proto::enums::VideoResolution::Enum>(iniConfig.get<uint32_t>(cVideoResolutionKey,
aasdk::proto::enums::VideoResolution::_480p));
@ -113,10 +117,9 @@ void Configuration::load()
static_cast<uint32_t>(BluetoothAdapterType::NONE)));
bluetoothRemoteAdapterAddress_ = iniConfig.get<std::string>(cBluetoothRemoteAdapterAddressKey, "");
musicAudioChannelEnabled_ = iniConfig.get<bool>(cAudioMusicAudioChannelEnabled, true);
speechAudiochannelEnabled_ = iniConfig.get<bool>(cAudioSpeechAudioChannelEnabled, true);
audioOutputBackendType_ = static_cast<AudioOutputBackendType>(iniConfig.get<uint32_t>(cAudioOutputBackendType, static_cast<uint32_t>(AudioOutputBackendType::QT)));
audioOutputBackendType_ = static_cast<AudioOutputBackendType>(iniConfig.get<uint32_t>(cAudioOutputBackendType, static_cast<uint32_t>(AudioOutputBackendType::RTAUDIO)));
}
catch(const boost::property_tree::ini_parser_error& e)
{
@ -136,7 +139,9 @@ void Configuration::reset()
alphaTrans_ = 50;
hideMenuToggle_ = false;
hideAlpha_ = false;
videoFPS_ = aasdk::proto::enums::VideoFPS::_60;
mp3MasterPath_ = "/media/CSSTORAGE/Music";
mp3SubFolder_ = "/";
videoFPS_ = aasdk::proto::enums::VideoFPS::_30;
videoResolution_ = aasdk::proto::enums::VideoResolution::_480p;
screenDPI_ = 140;
omxLayerIndex_ = 1;
@ -161,6 +166,8 @@ void Configuration::save()
iniConfig.put<size_t>(cGeneralAlphaTransKey, alphaTrans_);
iniConfig.put<bool>(cGeneralHideMenuToggleKey, hideMenuToggle_);
iniConfig.put<bool>(cGeneralHideAlphaKey, hideAlpha_);
iniConfig.put<std::string>(cGeneralMp3MasterPathKey, mp3MasterPath_);
iniConfig.put<std::string>(cGeneralMp3SubFolderKey, mp3SubFolder_);
iniConfig.put<uint32_t>(cVideoFPSKey, static_cast<uint32_t>(videoFPS_));
iniConfig.put<uint32_t>(cVideoResolutionKey, static_cast<uint32_t>(videoResolution_));
@ -270,6 +277,26 @@ bool Configuration::hideAlpha() const
return hideAlpha_;
}
std::string Configuration::getMp3MasterPath() const
{
return mp3MasterPath_;
}
void Configuration::setMp3MasterPath(const std::string& value)
{
mp3MasterPath_ = value;
}
std::string Configuration::getMp3SubFolder() const
{
return mp3SubFolder_;
}
void Configuration::setMp3SubFolder(const std::string& value)
{
mp3SubFolder_ = value;
}
aasdk::proto::enums::VideoFPS::Enum Configuration::getVideoFPS() const
{
return videoFPS_;

View File

@ -549,11 +549,20 @@ MainWindow::MainWindow(configuration::IConfiguration::Pointer configuration, QWi
connect(player, &QMediaPlayer::durationChanged, this, &MainWindow::on_durationChanged);
connect(player, &QMediaPlayer::metaDataAvailableChanged, this, &MainWindow::metaDataChanged);
MainWindow::scanFolders();
MainWindow::scanFiles();
ui_->labelFolderpath->hide();
//ui_->labelFolderpath->hide();
ui_->pushButtonPlayerPlay->hide();
ui_->PlayerPlayingWidget->hide();
//this->musicfolder = QString::fromStdString(configuration->getMp3MasterPath());
//this->albumfolder = QString::fromStdString(configuration->getMp3SubFolder());
//ui_->labelFolderpath->setText(this->musicfolder);
//ui_->labelAlbumpath->setText(this->albumfolder);
ui_->labelFolderpath->hide();
ui_->labelAlbumpath->hide();
MainWindow::scanFolders();
ui_->comboBoxAlbum->setCurrentText(QString::fromStdString(configuration->getMp3SubFolder()));
MainWindow::scanFiles();
}
MainWindow::~MainWindow()

View File

@ -1,4 +1,4 @@
/*
/*subfolder
* This file is part of openauto project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
@ -95,6 +95,7 @@ SettingsWindow::SettingsWindow(configuration::IConfiguration::Pointer configurat
QString time_text_minute=time.toString("mm");
ui_->spinBoxHour->setValue((time_text_hour).toInt());
ui_->spinBoxMinute->setValue((time_text_minute).toInt());
SettingsWindow::scanSubFolders();
}
SettingsWindow::~SettingsWindow()
@ -112,6 +113,8 @@ void SettingsWindow::onSave()
configuration_->setAlphaTrans(static_cast<size_t>(ui_->horizontalSliderAlphaTrans->value()));
configuration_->hideMenuToggle(ui_->checkBoxHideMenuToggle->isChecked());
configuration_->hideAlpha(ui_->checkBoxHideAlpha->isChecked());
configuration_->setMp3MasterPath(ui_->pathMusicFolder->text().toStdString());
configuration_->setMp3SubFolder(ui_->comboBoxSubFolder->currentText().toStdString());
configuration_->setVideoFPS(ui_->radioButton30FPS->isChecked() ? aasdk::proto::enums::VideoFPS::_30 : aasdk::proto::enums::VideoFPS::_60);
@ -288,6 +291,8 @@ void SettingsWindow::load()
ui_->checkBoxOldGUI->setChecked(configuration_->oldGUI());
ui_->checkBoxHideMenuToggle->setChecked(configuration_->hideMenuToggle());
ui_->checkBoxHideAlpha->setChecked(configuration_->hideAlpha());
ui_->pathMusicFolder->setText(QString::fromStdString(configuration_->getMp3MasterPath()));
ui_->comboBoxSubFolder->setCurrentText(QString::fromStdString(configuration_->getMp3SubFolder()));
ui_->radioButton30FPS->setChecked(configuration_->getVideoFPS() == aasdk::proto::enums::VideoFPS::_30);
ui_->radioButton60FPS->setChecked(configuration_->getVideoFPS() == aasdk::proto::enums::VideoFPS::_60);
@ -827,3 +832,43 @@ void SettingsWindow::show_tab8()
}
}
}
void f1x::openauto::autoapp::ui::SettingsWindow::on_pushButton_clicked()
{
QString folder = QFileDialog::getExistingDirectory(this, tr("Select Music Path"), "/media/CSSTORAGE/Music", QFileDialog::ShowDirsOnly);
if (folder != "") {
ui_->pathMusicFolder->setText(folder);
int cleaner = ui_->comboBoxSubFolder->count();
// clean and rebuild subfolder box
while (cleaner > -1) {
ui_->comboBoxSubFolder->removeItem(cleaner);
cleaner--;
}
ui_->comboBoxSubFolder->addItem("/");
QDir directory(ui_->pathMusicFolder->text());
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::scanSubFolders()
{
int cleaner = ui_->comboBoxSubFolder->count();
// clean and rebuild subfolder box
while (cleaner > -1) {
ui_->comboBoxSubFolder->removeItem(cleaner);
cleaner--;
}
ui_->comboBoxSubFolder->addItem("/");
QDir directory(ui_->pathMusicFolder->text());
QStringList folders = directory.entryList(QStringList() << "*", QDir::AllDirs, QDir::Name);
foreach (QString foldername, folders) {
if (foldername != ".." && foldername != ".") {
ui_->comboBoxSubFolder->addItem(foldername);
}
}
}

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>936</width>
<height>1282</height>
<height>1286</height>
</rect>
</property>
<property name="sizePolicy">
@ -332,7 +332,8 @@ color: rgb(0, 102, 255);</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(32, 74, 135);
color: rgb(239, 239, 239);</string>
color: rgb(239, 239, 239);
outline: none;</string>
</property>
<property name="text">
<string>BT-Pairing</string>
@ -418,6 +419,9 @@ color: rgb(255, 255, 255);</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">outline: none;</string>
</property>
<layout class="QGridLayout" name="gridLayout_TileArea">
<property name="leftMargin">
<number>0</number>
@ -453,7 +457,8 @@ color: rgb(255, 255, 255);</string>
<property name="styleSheet">
<string notr="true">background: rgba(252, 233, 79, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -491,7 +496,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgba(114, 159, 207, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -507,6 +513,9 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<height>64</height>
</size>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
</item>
<item>
@ -520,7 +529,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgba(173, 127, 168, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -536,6 +546,9 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<height>64</height>
</size>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
@ -556,7 +569,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<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);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -586,7 +600,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<string notr="true">background-color: rgba(252, 175, 62, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
color: rgb(255, 255, 255);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -615,7 +630,8 @@ color: rgb(255, 255, 255);</string>
<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);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -640,7 +656,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<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);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -662,7 +679,8 @@ color: rgb(255, 255, 255);</string>
<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);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -691,7 +709,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<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);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -720,7 +739,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<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);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -749,7 +769,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<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);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -789,7 +810,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<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);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -814,7 +836,8 @@ color: rgb(255, 255, 255);</string>
<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);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -839,7 +862,8 @@ color: rgb(255, 255, 255);</string>
<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);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -861,7 +885,8 @@ color: rgb(255, 255, 255);</string>
<property name="styleSheet">
<string notr="true">background-color: rgba(237, 164, 255, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -892,6 +917,7 @@ border: 2px solid rgba(255,255,255,0.5);</string>
color: rgb(255, 255, 255);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
outline: none;
</string>
</property>
<property name="text">
@ -921,7 +947,8 @@ border: 2px solid rgba(255,255,255,0.5);
<property name="styleSheet">
<string notr="true">background-color: rgba(138, 226, 52, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -970,7 +997,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<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);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -995,7 +1023,8 @@ color: rgb(255, 255, 255);</string>
<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);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1020,7 +1049,8 @@ color: rgb(255, 255, 255);</string>
<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);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1052,7 +1082,8 @@ color: rgb(255, 255, 255);</string>
<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);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1077,7 +1108,8 @@ color: rgb(255, 255, 255);</string>
<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);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1102,7 +1134,8 @@ color: rgb(255, 255, 255);</string>
<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);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1124,7 +1157,8 @@ color: rgb(255, 255, 255);</string>
<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);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1160,7 +1194,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<string notr="true">background-color: rgba(78, 154, 6, 0.5);
color: rgb(255, 255, 255);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1193,7 +1228,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgba(245, 121, 0, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1222,7 +1258,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgba(64, 191, 191, 0.5);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1303,7 +1340,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1330,7 +1368,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1357,7 +1396,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1384,7 +1424,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1411,7 +1452,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1438,7 +1480,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1489,7 +1532,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1516,7 +1560,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1543,7 +1588,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1628,7 +1674,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1655,7 +1702,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1682,7 +1730,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1709,7 +1758,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1736,7 +1786,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1763,7 +1814,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1796,7 +1848,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1824,7 +1877,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(136, 138, 133, 0.5);</string>
<string notr="true">background-color: rgba(136, 138, 133, 0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -1899,7 +1953,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgb(186, 189, 182);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string>Record</string>
@ -1928,7 +1983,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgb(186, 189, 182);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string>Record</string>
@ -1957,7 +2013,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgb(186, 189, 182);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string>Stop</string>
@ -1986,7 +2043,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgb(186, 189, 182);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string>Save</string>
@ -2123,6 +2181,41 @@ background-color: rgba(0, 0, 0, 0);
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 87, 83, 0.7);
color: rgb(255, 255, 255);
border: 2px solid rgba(255,255,255,0.5);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelAlbumpath">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>20</height>
</size>
</property>
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 87, 83, 0.7);
color: rgb(255, 255, 255);
border: 2px solid rgba(255,255,255,0.5);</string>
</property>
<property name="text">
@ -2163,7 +2256,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgba(85, 87, 83, 0.9);
color: rgb(255, 255, 255);
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="frame">
<bool>true</bool>
@ -2196,6 +2290,7 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<string notr="true">background-color: rgba(85, 87, 83, 0.7);
color: rgb(255, 255, 255);
border: 2px solid rgba(255,255,255,0.5);
outline: none;
</string>
</property>
<property name="frameShape">
@ -2277,6 +2372,9 @@ border: 2px solid rgba(255,255,255,0.5);
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">outline: none;</string>
</property>
<property name="text">
<string/>
</property>
@ -2313,6 +2411,9 @@ border: 2px solid rgba(255,255,255,0.5);
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">outline: none;</string>
</property>
<property name="text">
<string/>
</property>
@ -2350,7 +2451,8 @@ border: 2px solid rgba(255,255,255,0.5);
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(0, 0, 0, 0);</string>
<string notr="true">background-color: rgba(0, 0, 0, 0);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -2394,6 +2496,9 @@ border: 2px solid rgba(255,255,255,0.5);
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">outline: none;</string>
</property>
<property name="text">
<string/>
</property>
@ -2430,6 +2535,9 @@ border: 2px solid rgba(255,255,255,0.5);
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">outline: none;</string>
</property>
<property name="text">
<string/>
</property>
@ -2699,7 +2807,8 @@ QSlider::handle:horizontal { background: rgb(255, 255, 255); height: 52px; width
<property name="styleSheet">
<string notr="true">background-color: rgba(250, 80, 80, 0.7);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -2740,7 +2849,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgba(138, 226, 52, 0.7);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -2781,7 +2891,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgba(138, 226, 52, 0.7);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -2822,7 +2933,9 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<property name="styleSheet">
<string notr="true">background-color: rgba(233, 185, 110, 0.7);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);</string>
border: 2px solid rgba(255,255,255,0.5);
outline: none;
</string>
</property>
<property name="text">
<string/>
@ -2838,6 +2951,9 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<height>32</height>
</size>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
</item>
<item>
@ -2870,7 +2986,8 @@ border: 2px solid rgba(255,255,255,0.5);</string>
<string notr="true">background-color: rgba(186, 189, 182, 0.7);
border-radius: 4px;
border: 2px solid rgba(255,255,255,0.5);
color: rgb(255, 255, 255);</string>
color: rgb(255, 255, 255);
outline: none;</string>
</property>
<property name="text">
<string/>
@ -2984,7 +3101,8 @@ color: rgb(0, 0, 0);</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);
background-color: rgb(164, 0, 0);</string>
background-color: rgb(164, 0, 0);
outline: none;</string>
</property>
<property name="text">
<string>Muted</string>
@ -3013,7 +3131,8 @@ background-color: rgb(164, 0, 0);</string>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);
background-color: #6d6d6d;</string>
background-color: #6d6d6d;
outline: none;</string>
</property>
<property name="text">
<string>Mute</string>
@ -3039,7 +3158,8 @@ background-color: #6d6d6d;</string>
</property>
<property name="styleSheet">
<string notr="true">QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}
QSlider::handle:horizontal { background: rgb(64, 191, 191); height: 52px; width: 52px; margin: 0 0;};</string>
QSlider::handle:horizontal { background: rgb(64, 191, 191); height: 52px; width: 52px; margin: 0 0;};
outline: none;</string>
</property>
<property name="maximum">
<number>100</number>
@ -3136,7 +3256,8 @@ background-color: #6d6d6d;</string>
</property>
<property name="styleSheet">
<string notr="true">QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}
QSlider::handle:horizontal { background: rgb(64, 191, 191); height: 52px; width: 52px; margin: 0 0;};</string>
QSlider::handle:horizontal { background: rgb(64, 191, 191); height: 52px; width: 52px; margin: 0 0;};
outline: none;</string>
</property>
<property name="maximum">
<number>100</number>
@ -3245,7 +3366,8 @@ background-color: #6d6d6d;</string>
</property>
<property name="styleSheet">
<string notr="true">QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}
QSlider::handle:horizontal { background: rgb(245, 121, 0); height: 52px; width: 52px; margin: 0 0;};</string>
QSlider::handle:horizontal { background: rgb(245, 121, 0); height: 52px; width: 52px; margin: 0 0;};
outline: none;</string>
</property>
<property name="minimum">
<number>30</number>
@ -3351,7 +3473,8 @@ background-color: #6d6d6d;</string>
</property>
<property name="styleSheet">
<string notr="true">QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}
QSlider::handle:horizontal { background: rgb(173, 127, 168); height: 52px; width: 52px; margin: 0 0;};</string>
QSlider::handle:horizontal { background: rgb(173, 127, 168); height: 52px; width: 52px; margin: 0 0;};
outline: none;</string>
</property>
<property name="minimum">
<number>1</number>

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>2976</height>
<height>3106</height>
</rect>
</property>
<property name="sizePolicy">
@ -58,7 +58,9 @@ background-color: rgb(114, 159, 207);
}
QPushButton:focus {
background-color: rgb(114, 159, 207);
}</string>
outline: none;
}
</string>
</property>
<property name="text">
<string>General</string>
@ -82,6 +84,7 @@ background-color: rgb(114, 159, 207);
}
QPushButton:focus {
background-color: rgb(114, 159, 207);
outline: none;
}</string>
</property>
<property name="text">
@ -106,6 +109,7 @@ background-color: rgb(114, 159, 207);
}
QPushButton:focus {
background-color: rgb(114, 159, 207);
outline: none;
}</string>
</property>
<property name="text">
@ -130,6 +134,7 @@ background-color: rgb(114, 159, 207);
}
QPushButton:focus {
background-color: rgb(114, 159, 207);
outline: none;
}</string>
</property>
<property name="text">
@ -154,6 +159,7 @@ background-color: rgb(114, 159, 207);
}
QPushButton:focus {
background-color: rgb(114, 159, 207);
outline: none;
}</string>
</property>
<property name="text">
@ -178,6 +184,7 @@ background-color: rgb(114, 159, 207);
}
QPushButton:focus {
background-color: rgb(114, 159, 207);
outline: none;
}</string>
</property>
<property name="text">
@ -202,6 +209,7 @@ background-color: rgb(114, 159, 207);
}
QPushButton:focus {
background-color: rgb(114, 159, 207);
outline: none;
}</string>
</property>
<property name="text">
@ -226,6 +234,7 @@ background-color: rgb(114, 159, 207);
}
QPushButton:focus {
background-color: rgb(114, 159, 207);
outline: none;
}</string>
</property>
<property name="text">
@ -396,6 +405,193 @@ background-color: rgb(114, 159, 207);
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBoxMP3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>MP3 Player defaults </string>
</property>
<layout class="QFormLayout" name="formLayout_6">
<property name="horizontalSpacing">
<number>9</number>
</property>
<property name="leftMargin">
<number>2</number>
</property>
<property name="topMargin">
<number>2</number>
</property>
<property name="bottomMargin">
<number>2</number>
</property>
<item row="0" column="0">
<widget class="QPushButton" name="pushButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>140</width>
<height>24</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>140</width>
<height>24</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(85, 87, 83);
outline: none;</string>
</property>
<property name="text">
<string>Master music path</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="pathMusicFolder">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>24</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>24</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(85, 87, 83);</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="text">
<string>/media/CSSTORAGE/Music</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelSubfolder">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>140</width>
<height>24</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>140</width>
<height>24</height>
</size>
</property>
<property name="text">
<string> Subfolder (Album)</string>
</property>
</widget>
</item>
<item row="1" 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>24</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>24</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<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>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBoxAlpha">
<property name="sizePolicy">
@ -1893,7 +2089,8 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(164, 0, 0);</string>
<string notr="true">background-color: rgb(164, 0, 0);
outline: none;</string>
</property>
<property name="text">
<string>Remove all paired devices now!</string>
@ -2163,7 +2360,8 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(78, 154, 6);</string>
<string notr="true">background-color: rgb(78, 154, 6);
outline: none;</string>
</property>
<property name="text">
<string>Start</string>
@ -2179,7 +2377,8 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(164, 0, 0);</string>
<string notr="true">background-color: rgb(164, 0, 0);
outline: none;</string>
</property>
<property name="text">
<string>Stop</string>
@ -4812,7 +5011,8 @@ subcontrol-position: center left;
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(78, 154, 6);</string>
<string notr="true">background-color: rgb(78, 154, 6);
outline: none;</string>
</property>
<property name="text">
<string>Set current time now!</string>
@ -4854,7 +5054,8 @@ subcontrol-position: center left;
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(114, 159, 207);
color: rgb(85, 87, 83);</string>
color: rgb(85, 87, 83);
outline: none;</string>
</property>
<property name="text">
<string>NTP-Sync</string>
@ -5296,7 +5497,8 @@ color: rgb(85, 87, 83);</string>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(7, 123, 123);</string>
<string notr="true">background-color: rgb(7, 123, 123);
outline: none;</string>
</property>
<property name="text">
<string>Save</string>
@ -5324,7 +5526,8 @@ color: rgb(85, 87, 83);</string>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(206, 92, 0);</string>
<string notr="true">background-color: rgb(206, 92, 0);
outline: none;</string>
</property>
<property name="text">
<string>Reset to default</string>
@ -5352,7 +5555,8 @@ color: rgb(85, 87, 83);</string>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(85, 87, 83);</string>
<string notr="true">background-color: rgb(85, 87, 83);
outline: none;</string>
</property>
<property name="text">
<string>Cancel</string>