X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Fsettingswidget.h;h=75bb383bf0f8b867fc1f3c689abf4999aa9b37d7;hb=09f2f0036f122e49aa49e6c446d723850192a725;hp=15b24bd11bfbd520093042379ecb50e4a637d72e;hpb=ca3605ea664834acdf712e691be8f0358b1c6b6f;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/settingswidget.h b/HomeScreen/src/settingswidget.h index 15b24bd..75bb383 100644 --- a/HomeScreen/src/settingswidget.h +++ b/HomeScreen/src/settingswidget.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,9 +19,6 @@ #include #include -#include "../interfaces/daynightmode.h" -#include "daynightmode_proxy.h" - namespace Ui { class SettingsWidget; @@ -34,24 +31,22 @@ class SettingsWidget : public QWidget public: explicit SettingsWidget(QWidget *parent = 0); ~SettingsWidget(); - -// day/night mode -public Q_SLOTS: - void dayNightModeSlot(int mode); +public slots: + void updateColorScheme(); protected: // called when the translator loaded a new language set void changeEvent(QEvent* event); private slots: - void on_comboBoxLanguage_currentIndexChanged(const QString &); + void on_comboBox_language_currentIndexChanged(const QString &); + void on_comboBox_colorScheme_currentIndexChanged(const QString &); + +signals: + void colorSchemeChanged(void); private: Ui::SettingsWidget *mp_ui; - - SystemDayNight::eDayNightMode m_dayNightMode; - org::agl::daynightmode *mp_dayNightModeProxy; - QTranslator *mp_translator; };