| 1 | // Don't modify, generated file from /home/lucius/Code/aseprite/data/widgets/webp_options.xml |
|---|---|
| 2 | |
| 3 | #ifndef GENERATED_WEBP_OPTIONS_H_INCLUDED |
| 4 | #define GENERATED_WEBP_OPTIONS_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/slider.h" |
| 13 | #include "ui/window.h" |
| 14 | |
| 15 | namespace app { |
| 16 | namespace gen { |
| 17 | |
| 18 | class WebpOptions : public ui::Window { |
| 19 | public: |
| 20 | WebpOptions() : ui::Window(ui::Window::WithTitleBar) { |
| 21 | app::load_widget("webp_options.xml", "webp_options", this); |
| 22 | app::finder(this) |
| 23 | >> "loop">> m_loop |
| 24 | >> "type">> m_type |
| 25 | >> "lossless_options">> m_losslessOptions |
| 26 | >> "compression">> m_compression |
| 27 | >> "image_hint">> m_imageHint |
| 28 | >> "lossy_options">> m_lossyOptions |
| 29 | >> "quality">> m_quality |
| 30 | >> "image_preset">> m_imagePreset |
| 31 | >> "ok">> m_ok |
| 32 | ; |
| 33 | } |
| 34 | |
| 35 | ui::CheckBox* loop() const { return m_loop; } |
| 36 | ui::ComboBox* type() const { return m_type; } |
| 37 | ui::VBox* losslessOptions() const { return m_losslessOptions; } |
| 38 | ui::Slider* compression() const { return m_compression; } |
| 39 | ui::ComboBox* imageHint() const { return m_imageHint; } |
| 40 | ui::VBox* lossyOptions() const { return m_lossyOptions; } |
| 41 | ui::Slider* quality() const { return m_quality; } |
| 42 | ui::ComboBox* imagePreset() const { return m_imagePreset; } |
| 43 | ui::Button* ok() const { return m_ok; } |
| 44 | |
| 45 | private: |
| 46 | ui::CheckBox* m_loop; |
| 47 | ui::ComboBox* m_type; |
| 48 | ui::VBox* m_losslessOptions; |
| 49 | ui::Slider* m_compression; |
| 50 | ui::ComboBox* m_imageHint; |
| 51 | ui::VBox* m_lossyOptions; |
| 52 | ui::Slider* m_quality; |
| 53 | ui::ComboBox* m_imagePreset; |
| 54 | ui::Button* m_ok; |
| 55 | }; |
| 56 | |
| 57 | } // namespace gen |
| 58 | } // namespace app |
| 59 | |
| 60 | #endif |
| 61 |