1// Don't modify, generated file from /home/lucius/Code/aseprite/data/widgets/grid_settings.xml
2
3#ifndef GENERATED_GRID_SETTINGS_H_INCLUDED
4#define GENERATED_GRID_SETTINGS_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/window.h"
12
13namespace app {
14namespace gen {
15
16 class GridSettings : public ui::Window {
17 public:
18 GridSettings() : ui::Window(ui::Window::WithTitleBar) {
19 app::load_widget("grid_settings.xml", "grid_settings", this);
20 app::finder(this)
21 >> "grid_x" >> m_gridX
22 >> "grid_y" >> m_gridY
23 >> "grid_w" >> m_gridW
24 >> "grid_h" >> m_gridH
25 >> "ok" >> m_ok
26 ;
27 }
28
29 app::ExprEntry* gridX() const { return m_gridX; }
30 app::ExprEntry* gridY() const { return m_gridY; }
31 app::ExprEntry* gridW() const { return m_gridW; }
32 app::ExprEntry* gridH() const { return m_gridH; }
33 ui::Button* ok() const { return m_ok; }
34
35 private:
36 app::ExprEntry* m_gridX;
37 app::ExprEntry* m_gridY;
38 app::ExprEntry* m_gridW;
39 app::ExprEntry* m_gridH;
40 ui::Button* m_ok;
41 };
42
43} // namespace gen
44} // namespace app
45
46#endif
47