1// Don't modify, generated file from /home/lucius/Code/aseprite/data/widgets/sprite_properties.xml
2
3#ifndef GENERATED_SPRITE_PROPERTIES_H_INCLUDED
4#define GENERATED_SPRITE_PROPERTIES_H_INCLUDED
5#pragma once
6
7#include "app/find_widget.h"
8#include "app/load_widget.h"
9#include "ui/box.h"
10#include "ui/button.h"
11#include "ui/combobox.h"
12#include "ui/entry.h"
13#include "ui/grid.h"
14#include "ui/label.h"
15#include "ui/window.h"
16
17namespace app {
18namespace gen {
19
20 class SpriteProperties : public ui::Window {
21 public:
22 SpriteProperties() : ui::Window(ui::Window::WithTitleBar) {
23 app::load_widget("sprite_properties.xml", "sprite_properties", this);
24 app::finder(this)
25 >> "properties_grid" >> m_propertiesGrid
26 >> "name" >> m_name
27 >> "user_data" >> m_userData
28 >> "type" >> m_type
29 >> "size" >> m_size
30 >> "frames" >> m_frames
31 >> "transparent_color_placeholder" >> m_transparentColorPlaceholder
32 >> "pixel_ratio" >> m_pixelRatio
33 >> "color_profile" >> m_colorProfile
34 >> "assign_color_profile" >> m_assignColorProfile
35 >> "convert_color_profile" >> m_convertColorProfile
36 >> "ok" >> m_ok
37 >> "cancel" >> m_cancel
38 ;
39 }
40
41 ui::Grid* propertiesGrid() const { return m_propertiesGrid; }
42 ui::Entry* name() const { return m_name; }
43 ui::Button* userData() const { return m_userData; }
44 ui::Label* type() const { return m_type; }
45 ui::Label* size() const { return m_size; }
46 ui::Label* frames() const { return m_frames; }
47 ui::HBox* transparentColorPlaceholder() const { return m_transparentColorPlaceholder; }
48 ui::ComboBox* pixelRatio() const { return m_pixelRatio; }
49 ui::ComboBox* colorProfile() const { return m_colorProfile; }
50 ui::Button* assignColorProfile() const { return m_assignColorProfile; }
51 ui::Button* convertColorProfile() const { return m_convertColorProfile; }
52 ui::Button* ok() const { return m_ok; }
53 ui::Button* cancel() const { return m_cancel; }
54
55 private:
56 ui::Grid* m_propertiesGrid;
57 ui::Entry* m_name;
58 ui::Button* m_userData;
59 ui::Label* m_type;
60 ui::Label* m_size;
61 ui::Label* m_frames;
62 ui::HBox* m_transparentColorPlaceholder;
63 ui::ComboBox* m_pixelRatio;
64 ui::ComboBox* m_colorProfile;
65 ui::Button* m_assignColorProfile;
66 ui::Button* m_convertColorProfile;
67 ui::Button* m_ok;
68 ui::Button* m_cancel;
69 };
70
71} // namespace gen
72} // namespace app
73
74#endif
75