mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:47:36 +00:00
Calendar: Add ability to view events
This commit is contained in:
parent
0d41f6cf89
commit
433fe3dc26
7 changed files with 179 additions and 1 deletions
29
Userland/Applications/Calendar/ViewEventWidget.h
Normal file
29
Userland/Applications/Calendar/ViewEventWidget.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Sanil Gupta <sanilg566@gmail.com>.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ViewEventDialog.h"
|
||||
#include <LibGUI/Calendar.h>
|
||||
#include <LibGUI/Dialog.h>
|
||||
#include <LibGUI/Model.h>
|
||||
#include <LibGUI/Window.h>
|
||||
|
||||
namespace Calendar {
|
||||
|
||||
class ViewEventWidget final : public GUI::Widget {
|
||||
C_OBJECT(ViewEventWidget);
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<ViewEventWidget>> create(ViewEventDialog*, Vector<Event>& events);
|
||||
virtual ~ViewEventWidget() override = default;
|
||||
|
||||
private:
|
||||
ViewEventWidget() = default;
|
||||
static ErrorOr<NonnullRefPtr<ViewEventWidget>> try_create();
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue