1// Don't modify, generated file from /home/lucius/Code/aseprite/data/widgets/file_selector.xml
2
3#ifndef GENERATED_FILE_SELECTOR_H_INCLUDED
4#define GENERATED_FILE_SELECTOR_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 "ui/box.h"
11#include "ui/button.h"
12#include "ui/combobox.h"
13#include "ui/window.h"
14
15namespace app {
16namespace gen {
17
18 class FileSelector : public ui::Window {
19 public:
20 FileSelector() : ui::Window(ui::Window::WithTitleBar) {
21 app::load_widget("file_selector.xml", "file_selector", this);
22 app::finder(this)
23 >> "main" >> m_main
24 >> "go_back_button" >> m_goBackButton
25 >> "go_forward_button" >> m_goForwardButton
26 >> "go_up_button" >> m_goUpButton
27 >> "new_folder_button" >> m_newFolderButton
28 >> "view_type" >> m_viewType
29 >> "location" >> m_location
30 >> "refresh_button" >> m_refreshButton
31 >> "file_view_placeholder" >> m_fileViewPlaceholder
32 >> "file_name_placeholder" >> m_fileNamePlaceholder
33 >> "file_type" >> m_fileType
34 >> "ok" >> m_ok
35 >> "cancel" >> m_cancel
36 ;
37 }
38
39 ui::VBox* main() const { return m_main; }
40 ui::Button* goBackButton() const { return m_goBackButton; }
41 ui::Button* goForwardButton() const { return m_goForwardButton; }
42 ui::Button* goUpButton() const { return m_goUpButton; }
43 ui::Button* newFolderButton() const { return m_newFolderButton; }
44 app::ButtonSet* viewType() const { return m_viewType; }
45 ui::ComboBox* location() const { return m_location; }
46 ui::Button* refreshButton() const { return m_refreshButton; }
47 ui::VBox* fileViewPlaceholder() const { return m_fileViewPlaceholder; }
48 ui::Box* fileNamePlaceholder() const { return m_fileNamePlaceholder; }
49 ui::ComboBox* fileType() const { return m_fileType; }
50 ui::Button* ok() const { return m_ok; }
51 ui::Button* cancel() const { return m_cancel; }
52
53 private:
54 ui::VBox* m_main;
55 ui::Button* m_goBackButton;
56 ui::Button* m_goForwardButton;
57 ui::Button* m_goUpButton;
58 ui::Button* m_newFolderButton;
59 app::ButtonSet* m_viewType;
60 ui::ComboBox* m_location;
61 ui::Button* m_refreshButton;
62 ui::VBox* m_fileViewPlaceholder;
63 ui::Box* m_fileNamePlaceholder;
64 ui::ComboBox* m_fileType;
65 ui::Button* m_ok;
66 ui::Button* m_cancel;
67 };
68
69} // namespace gen
70} // namespace app
71
72#endif
73