1// Don't modify, generated file from /home/lucius/Code/aseprite/data/widgets/new_sprite.xml
2
3#ifndef GENERATED_NEW_SPRITE_H_INCLUDED
4#define GENERATED_NEW_SPRITE_H_INCLUDED
5#pragma once
6
7#include "app/find_widget.h"
8#include "app/load_widget.h"
9#include "app/ui/button_set.h"
10#include "app/ui/expr_entry.h"
11#include "ui/box.h"
12#include "ui/button.h"
13#include "ui/combobox.h"
14#include "ui/window.h"
15
16namespace app {
17namespace gen {
18
19 class NewSprite : public ui::Window {
20 public:
21 NewSprite() : ui::Window(ui::Window::WithTitleBar) {
22 app::load_widget("new_sprite.xml", "new_sprite", this);
23 app::finder(this)
24 >> "width" >> m_width
25 >> "height" >> m_height
26 >> "color_mode" >> m_colorMode
27 >> "bg_color" >> m_bgColor
28 >> "advanced_check" >> m_advancedCheck
29 >> "advanced" >> m_advanced
30 >> "pixel_ratio" >> m_pixelRatio
31 >> "ok_button" >> m_okButton
32 ;
33 }
34
35 app::ExprEntry* width() const { return m_width; }
36 app::ExprEntry* height() const { return m_height; }
37 app::ButtonSet* colorMode() const { return m_colorMode; }
38 app::ButtonSet* bgColor() const { return m_bgColor; }
39 ui::CheckBox* advancedCheck() const { return m_advancedCheck; }
40 ui::VBox* advanced() const { return m_advanced; }
41 ui::ComboBox* pixelRatio() const { return m_pixelRatio; }
42 ui::Button* okButton() const { return m_okButton; }
43
44 private:
45 app::ExprEntry* m_width;
46 app::ExprEntry* m_height;
47 app::ButtonSet* m_colorMode;
48 app::ButtonSet* m_bgColor;
49 ui::CheckBox* m_advancedCheck;
50 ui::VBox* m_advanced;
51 ui::ComboBox* m_pixelRatio;
52 ui::Button* m_okButton;
53 };
54
55} // namespace gen
56} // namespace app
57
58#endif
59