mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 09:17:45 +00:00
CalendarSettings: Use new GML compiler
This commit is contained in:
parent
14a99bb22d
commit
63687c46ff
5 changed files with 20 additions and 16 deletions
|
@ -9,17 +9,21 @@
|
|||
|
||||
#include <LibGUI/SettingsWindow.h>
|
||||
|
||||
namespace CalendarSettings {
|
||||
|
||||
class CalendarSettingsWidget final : public GUI::SettingsWindow::Tab {
|
||||
C_OBJECT_ABSTRACT(CalendarSettingsWidget)
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<CalendarSettingsWidget>> try_create();
|
||||
static ErrorOr<NonnullRefPtr<CalendarSettingsWidget>> create();
|
||||
|
||||
virtual void apply_settings() override;
|
||||
virtual void reset_default_values() override;
|
||||
|
||||
private:
|
||||
CalendarSettingsWidget() = default;
|
||||
static ErrorOr<NonnullRefPtr<CalendarSettingsWidget>> try_create();
|
||||
|
||||
ErrorOr<void> setup();
|
||||
static constexpr Array<StringView, 2> const m_view_modes = { "Month"sv, "Year"sv };
|
||||
|
||||
|
@ -28,3 +32,5 @@ private:
|
|||
RefPtr<GUI::SpinBox> m_weekend_length_spinbox;
|
||||
RefPtr<GUI::ComboBox> m_default_view_combobox;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue