45 static std::shared_ptr<MainWindow>
Create();
49 std::string button1_text,
50 std::string button2_text,
66 bool Save(std::string path);
81 void UpdatePathLabel();
83 std::shared_ptr<UIVBox> mainvbox;
84 std::shared_ptr<UIHBox> toolbarbox;
85 std::shared_ptr<UIButton> addbutton;
86 std::shared_ptr<UIButton> removebutton;
87 std::shared_ptr<UISeparator> toolbar_separator1;
88 std::shared_ptr<UIButton> newbutton;
89 std::shared_ptr<UIButton> openbutton;
90 std::shared_ptr<UIButton> savebutton;
91 std::shared_ptr<UIButton> saveasbutton;
92 std::shared_ptr<UISeparator> toolbar_separator2;
93 std::shared_ptr<UIButton> allnodes;
94 std::shared_ptr<UISeparator> toolbar_separator3;
95 std::shared_ptr<UIButton> quitbutton;
96 std::shared_ptr<UILayered> layered;
97 std::shared_ptr<UIVBox> canvasbox;
98 std::shared_ptr<UIHBox> canvaspathbox;
99 std::shared_ptr<UIButton> canvaspathback;
100 std::shared_ptr<UILabel> canvaspathlabel;
101 std::shared_ptr<CanvasView> canvasview;
102 std::shared_ptr<ModuleSelector> selector;
103 std::shared_ptr<UILayered> layered_alert;
104 std::shared_ptr<UICentered> centered_alert;
105 std::shared_ptr<UIAlert> alert;
111 std::string current_file_path =
"";
112 std::string file_name =
"Unsaved file";
116 #endif // MAINWINDOW_HPP
SaveAlertReply
Definition: MainWindow.hpp:56
LateReturn ShowErrorAlert(std::string message, std::string button_text) override
LateReturn< SaveAlertReply > ShowDoYouWantToSaveAlert()
Definition: MainWindow.hpp:43
LateReturn< int > ShowSimpleAlert(std::string message, std::string button1_text, std::string button2_text, AlertType type=AlertType::NONE, Color button1_color=Theme::Get("bg-button-neutral"), Color button2_color=Theme::Get("bg-button-neutral")) override
Definition: Window.hpp:37
Definition: Alertable.hpp:26
Definition: Signal.hpp:44
void ProcessCloseEvent() override
static std::shared_ptr< MainWindow > Create()
Definition: LateReturn.hpp:35
AlertType
Definition: Alertable.hpp:42
static const Color & Get(const std::string &)
void ProcessKeyboardEvent(KeyData data) override
Definition: Utilities.hpp:157
void AskToSaveBeforeCalling(std::function< void()> f)