1 | // Don't modify, generated file from /home/lucius/Code/aseprite/data/widgets/import_sprite_sheet.xml |
---|---|
2 | |
3 | #ifndef GENERATED_IMPORT_SPRITE_SHEET_H_INCLUDED |
4 | #define GENERATED_IMPORT_SPRITE_SHEET_H_INCLUDED |
5 | #pragma once |
6 | |
7 | #include "app/find_widget.h" |
8 | #include "app/load_widget.h" |
9 | #include "app/ui/expr_entry.h" |
10 | #include "ui/button.h" |
11 | #include "ui/combobox.h" |
12 | #include "ui/label.h" |
13 | #include "ui/window.h" |
14 | |
15 | namespace app { |
16 | namespace gen { |
17 | |
18 | class ImportSpriteSheet : public ui::Window { |
19 | public: |
20 | ImportSpriteSheet() : ui::Window(ui::Window::WithTitleBar) { |
21 | app::load_widget("import_sprite_sheet.xml", "import_sprite_sheet", this); |
22 | app::finder(this) |
23 | >> "select_file">> m_selectFile |
24 | >> "sheet_type">> m_sheetType |
25 | >> "x">> m_x |
26 | >> "y">> m_y |
27 | >> "width">> m_width |
28 | >> "height">> m_height |
29 | >> "padding_enabled">> m_paddingEnabled |
30 | >> "horizontal_padding_label">> m_horizontalPaddingLabel |
31 | >> "horizontal_padding">> m_horizontalPadding |
32 | >> "vertical_padding_label">> m_verticalPaddingLabel |
33 | >> "vertical_padding">> m_verticalPadding |
34 | >> "partial_tiles">> m_partialTiles |
35 | >> "import">> m_import |
36 | >> "cancel">> m_cancel |
37 | ; |
38 | } |
39 | |
40 | ui::Button* selectFile() const { return m_selectFile; } |
41 | ui::ComboBox* sheetType() const { return m_sheetType; } |
42 | app::ExprEntry* x() const { return m_x; } |
43 | app::ExprEntry* y() const { return m_y; } |
44 | app::ExprEntry* width() const { return m_width; } |
45 | app::ExprEntry* height() const { return m_height; } |
46 | ui::CheckBox* paddingEnabled() const { return m_paddingEnabled; } |
47 | ui::Label* horizontalPaddingLabel() const { return m_horizontalPaddingLabel; } |
48 | app::ExprEntry* horizontalPadding() const { return m_horizontalPadding; } |
49 | ui::Label* verticalPaddingLabel() const { return m_verticalPaddingLabel; } |
50 | app::ExprEntry* verticalPadding() const { return m_verticalPadding; } |
51 | ui::CheckBox* partialTiles() const { return m_partialTiles; } |
52 | ui::Button* import() const { return m_import; } |
53 | ui::Button* cancel() const { return m_cancel; } |
54 | |
55 | private: |
56 | ui::Button* m_selectFile; |
57 | ui::ComboBox* m_sheetType; |
58 | app::ExprEntry* m_x; |
59 | app::ExprEntry* m_y; |
60 | app::ExprEntry* m_width; |
61 | app::ExprEntry* m_height; |
62 | ui::CheckBox* m_paddingEnabled; |
63 | ui::Label* m_horizontalPaddingLabel; |
64 | app::ExprEntry* m_horizontalPadding; |
65 | ui::Label* m_verticalPaddingLabel; |
66 | app::ExprEntry* m_verticalPadding; |
67 | ui::CheckBox* m_partialTiles; |
68 | ui::Button* m_import; |
69 | ui::Button* m_cancel; |
70 | }; |
71 | |
72 | } // namespace gen |
73 | } // namespace app |
74 | |
75 | #endif |
76 |