#pragma once #include #include #include "projectcontainer.h" namespace Ui { class AddEventDialog; } class AddEventDialog : public QDialog { Q_OBJECT public: explicit AddEventDialog(QWidget *parent = nullptr); ~AddEventDialog(); Object::EventType eventType() const { return *m_eventType; } void accept() override; void reject() override; private: const std::unique_ptr m_ui; std::optional m_eventType; };