1// Don't modify, generated file from /home/lucius/Code/aseprite/data/widgets/canvas_size.xml
2
3#ifndef GENERATED_CANVAS_SIZE_H_INCLUDED
4#define GENERATED_CANVAS_SIZE_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/button.h"
12#include "ui/window.h"
13
14namespace app {
15namespace gen {
16
17 class CanvasSize : public ui::Window {
18 public:
19 CanvasSize() : ui::Window(ui::Window::WithTitleBar) {
20 app::load_widget("canvas_size.xml", "canvas_size", this);
21 app::finder(this)
22 >> "width" >> m_width
23 >> "height" >> m_height
24 >> "dir" >> m_dir
25 >> "left" >> m_left
26 >> "top" >> m_top
27 >> "right" >> m_right
28 >> "bottom" >> m_bottom
29 >> "trim" >> m_trim
30 >> "ok" >> m_ok
31 ;
32 }
33
34 app::ExprEntry* width() const { return m_width; }
35 app::ExprEntry* height() const { return m_height; }
36 app::ButtonSet* dir() const { return m_dir; }
37 app::ExprEntry* left() const { return m_left; }
38 app::ExprEntry* top() const { return m_top; }
39 app::ExprEntry* right() const { return m_right; }
40 app::ExprEntry* bottom() const { return m_bottom; }
41 ui::CheckBox* trim() const { return m_trim; }
42 ui::Button* ok() const { return m_ok; }
43
44 private:
45 app::ExprEntry* m_width;
46 app::ExprEntry* m_height;
47 app::ButtonSet* m_dir;
48 app::ExprEntry* m_left;
49 app::ExprEntry* m_top;
50 app::ExprEntry* m_right;
51 app::ExprEntry* m_bottom;
52 ui::CheckBox* m_trim;
53 ui::Button* m_ok;
54 };
55
56} // namespace gen
57} // namespace app
58
59#endif
60