1 | // Don't modify, generated file from /home/lucius/Code/aseprite/data/widgets/palette_from_sprite.xml |
---|---|
2 | |
3 | #ifndef GENERATED_PALETTE_FROM_SPRITE_H_INCLUDED |
4 | #define GENERATED_PALETTE_FROM_SPRITE_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/box.h" |
11 | #include "ui/button.h" |
12 | #include "ui/window.h" |
13 | |
14 | namespace app { |
15 | namespace gen { |
16 | |
17 | class PaletteFromSprite : public ui::Window { |
18 | public: |
19 | PaletteFromSprite() : ui::Window(ui::Window::WithTitleBar) { |
20 | app::load_widget("palette_from_sprite.xml", "palette_from_sprite", this); |
21 | app::finder(this) |
22 | >> "new_palette">> m_newPalette |
23 | >> "ncolors">> m_ncolors |
24 | >> "current_palette">> m_currentPalette |
25 | >> "current_range">> m_currentRange |
26 | >> "alpha_channel">> m_alphaChannel |
27 | >> "advanced_check">> m_advancedCheck |
28 | >> "advanced">> m_advanced |
29 | >> "rgbmap_algorithm_placeholder">> m_rgbmapAlgorithmPlaceholder |
30 | >> "ok">> m_ok |
31 | ; |
32 | } |
33 | |
34 | ui::RadioButton* newPalette() const { return m_newPalette; } |
35 | app::ExprEntry* ncolors() const { return m_ncolors; } |
36 | ui::RadioButton* currentPalette() const { return m_currentPalette; } |
37 | ui::RadioButton* currentRange() const { return m_currentRange; } |
38 | ui::CheckBox* alphaChannel() const { return m_alphaChannel; } |
39 | ui::CheckBox* advancedCheck() const { return m_advancedCheck; } |
40 | ui::HBox* advanced() const { return m_advanced; } |
41 | ui::HBox* rgbmapAlgorithmPlaceholder() const { return m_rgbmapAlgorithmPlaceholder; } |
42 | ui::Button* ok() const { return m_ok; } |
43 | |
44 | private: |
45 | ui::RadioButton* m_newPalette; |
46 | app::ExprEntry* m_ncolors; |
47 | ui::RadioButton* m_currentPalette; |
48 | ui::RadioButton* m_currentRange; |
49 | ui::CheckBox* m_alphaChannel; |
50 | ui::CheckBox* m_advancedCheck; |
51 | ui::HBox* m_advanced; |
52 | ui::HBox* m_rgbmapAlgorithmPlaceholder; |
53 | ui::Button* m_ok; |
54 | }; |
55 | |
56 | } // namespace gen |
57 | } // namespace app |
58 | |
59 | #endif |
60 |