mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-06 20:33:00 -05:00
- add DateAndTimeSettings class and dateAndTimeSettings global var (cache for storing date and time related settings), - add DateAndTimeChangeRequest messages and proper methods in app::manager::Controller for sending them, - handle DateAndTimeChangeRequest messages in ApplicationManager, - add SettingRightItem::Text case for OptionSettings to provide possibility to add text on the right side of particular option, - rename fields in db (settings_tab table): gs_time_format_12 to gs_time_format and gs_time_date_format to gs_date_format - create only main Date&Time window. Sub windows will be added in separate task.
25 lines
788 B
C++
25 lines
788 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "BaseSettingsWindow.hpp"
|
|
#include "time/time_locale.hpp"
|
|
|
|
namespace gui
|
|
{
|
|
class DateAndTimeMainWindow : public BaseSettingsWindow
|
|
{
|
|
public:
|
|
explicit DateAndTimeMainWindow(app::Application *app);
|
|
|
|
private:
|
|
auto buildOptionsList() -> std::list<Option> override;
|
|
|
|
bool automaticDateAndTimeIsOn = false;
|
|
bool automaticTimeZoneIsOn = false;
|
|
utils::time::Locale::TimeFormat timeFormat = utils::time::Locale::defaultTimeFormat;
|
|
utils::time::Locale::DateFormat dateFormat = utils::time::Locale::defaultDateFormat;
|
|
};
|
|
} // namespace gui
|