mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-26 15:00:37 -05:00
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
/*
|
|
* @file NotesMainWindow.hpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 31 lip 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
#ifndef MODULE_APPS_APPLICATION_NOTES_WINDOWS_NOTESMAINWINDOW_HPP_
|
|
#define MODULE_APPS_APPLICATION_NOTES_WINDOWS_NOTESMAINWINDOW_HPP_
|
|
|
|
#include <string>
|
|
#include <functional>
|
|
|
|
#include "AppWindow.hpp"
|
|
#include "gui/widgets/Label.hpp"
|
|
#include "gui/widgets/Image.hpp"
|
|
#include "gui/widgets/Window.hpp"
|
|
#include "gui/widgets/BottomBar.hpp"
|
|
#include "gui/widgets/TopBar.hpp"
|
|
#include "gui/widgets/ListView.hpp"
|
|
|
|
#include "../NotesModel.hpp"
|
|
|
|
namespace gui {
|
|
|
|
class NotesMainWindow: public AppWindow {
|
|
NotesModel* notesModel = nullptr;
|
|
gui::ListView* list = nullptr;
|
|
Label* title = nullptr;
|
|
public:
|
|
NotesMainWindow( app::Application* app );
|
|
virtual ~NotesMainWindow();
|
|
|
|
//virtual methods
|
|
bool onInput( const InputEvent& inputEvent ) override;
|
|
void onBeforeShow( ShowMode mode, SwitchData* data ) override;
|
|
|
|
|
|
void rebuild() override;
|
|
void buildInterface() override;
|
|
void destroyInterface() override;
|
|
bool onDatabaseMessage( sys::Message* msg ) override;
|
|
};
|
|
|
|
} /* namespace gui */
|
|
|
|
#endif /* MODULE_APPS_APPLICATION_NOTES_WINDOWS_NOTESMAINWINDOW_HPP_ */
|