1 | // Don't modify, generated file from /home/lucius/Code/aseprite/data/widgets/new_folder_window.xml |
---|---|
2 | |
3 | #ifndef GENERATED_NEW_FOLDER_WINDOW_H_INCLUDED |
4 | #define GENERATED_NEW_FOLDER_WINDOW_H_INCLUDED |
5 | #pragma once |
6 | |
7 | #include "app/find_widget.h" |
8 | #include "app/load_widget.h" |
9 | #include "ui/button.h" |
10 | #include "ui/entry.h" |
11 | #include "ui/window.h" |
12 | |
13 | namespace app { |
14 | namespace gen { |
15 | |
16 | class NewFolderWindow : public ui::Window { |
17 | public: |
18 | NewFolderWindow() : ui::Window(ui::Window::WithTitleBar) { |
19 | app::load_widget("new_folder_window.xml", "new_folder_window", this); |
20 | app::finder(this) |
21 | >> "name">> m_name |
22 | >> "ok">> m_ok |
23 | >> "cancel">> m_cancel |
24 | ; |
25 | } |
26 | |
27 | ui::Entry* name() const { return m_name; } |
28 | ui::Button* ok() const { return m_ok; } |
29 | ui::Button* cancel() const { return m_cancel; } |
30 | |
31 | private: |
32 | ui::Entry* m_name; |
33 | ui::Button* m_ok; |
34 | ui::Button* m_cancel; |
35 | }; |
36 | |
37 | } // namespace gen |
38 | } // namespace app |
39 | |
40 | #endif |
41 |