mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:47:44 +00:00
Calendar: Use new GML compiler
This commit is contained in:
parent
15a539a5b0
commit
14a99bb22d
10 changed files with 223 additions and 165 deletions
|
@ -11,7 +11,6 @@
|
|||
#include "EventManager.h"
|
||||
#include <LibGUI/Calendar.h>
|
||||
#include <LibGUI/Dialog.h>
|
||||
#include <LibGUI/Model.h>
|
||||
#include <LibGUI/Window.h>
|
||||
|
||||
namespace Calendar {
|
||||
|
@ -27,27 +26,12 @@ public:
|
|||
dialog->exec();
|
||||
}
|
||||
|
||||
ErrorOr<bool> add_event_to_calendar(Core::DateTime start_date_time, Core::DateTime end_date_time);
|
||||
|
||||
private:
|
||||
AddEventDialog(Core::DateTime date_time, EventManager& event_manager, Window* parent_window = nullptr);
|
||||
|
||||
ErrorOr<bool> add_event_to_calendar();
|
||||
|
||||
void update_start_date();
|
||||
void update_end_date();
|
||||
void update_duration();
|
||||
|
||||
Core::DateTime m_start_date_time;
|
||||
Core::DateTime m_end_date_time;
|
||||
EventManager& m_event_manager;
|
||||
|
||||
RefPtr<GUI::TextBox> m_start_date_box;
|
||||
RefPtr<GUI::TextBox> m_end_date_box;
|
||||
RefPtr<GUI::SpinBox> m_start_hour_box;
|
||||
RefPtr<GUI::SpinBox> m_start_minute_box;
|
||||
RefPtr<GUI::SpinBox> m_end_hour_box;
|
||||
RefPtr<GUI::SpinBox> m_end_minute_box;
|
||||
RefPtr<GUI::SpinBox> m_duration_hour_box;
|
||||
RefPtr<GUI::SpinBox> m_duration_minute_box;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue