mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-06-16 12:29:00 -04:00
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
/*
|
|
* @file SettingsMainWindow.hpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 8 lip 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
#ifndef MODULE_APPS_APPLICATION_SETTINGS_WINDOWS_SETTINGSMAINWINDOW_HPP_
|
|
#define MODULE_APPS_APPLICATION_SETTINGS_WINDOWS_SETTINGSMAINWINDOW_HPP_
|
|
|
|
#include <string>
|
|
#include <functional>
|
|
|
|
#include "AppWindow.hpp"
|
|
#include "PageLayout.hpp"
|
|
#include "gui/widgets/BottomBar.hpp"
|
|
#include "gui/widgets/Image.hpp"
|
|
#include "gui/widgets/Label.hpp"
|
|
#include "gui/widgets/TopBar.hpp"
|
|
#include "gui/widgets/Window.hpp"
|
|
|
|
namespace gui {
|
|
|
|
/*
|
|
*
|
|
*/
|
|
class SettingsMainWindow: public AppWindow {
|
|
protected:
|
|
PageLayout *body = nullptr;
|
|
void addOptionLabel(const std::string &text, std::function<bool(Item &)> activatedCallback);
|
|
|
|
public:
|
|
SettingsMainWindow( app::Application* app );
|
|
virtual ~SettingsMainWindow();
|
|
|
|
//virtual methods
|
|
void onBeforeShow( ShowMode mode, SwitchData* data ) override;
|
|
|
|
void rebuild() override;
|
|
void buildInterface() override;
|
|
void destroyInterface() override;
|
|
};
|
|
|
|
} /* namespace gui */
|
|
|
|
#endif /* MODULE_APPS_APPLICATION_SETTINGS_WINDOWS_SETTINGSMAINWINDOW_HPP_ */
|