// Don't modify, generated file from /build/libresprite/src/libresprite/data/widgets/webp_options.xml

#pragma once

#include "app/find_widget.h"
#include "app/load_widget.h"
#include "ui/ui.h"

namespace app {
namespace gen {

  class WebpOptions : public ui::Window {
  public:
    WebpOptions() : ui::Window(ui::Window::WithTitleBar) {
      app::load_widget("webp_options.xml", "webp_options", this);
      app::finder(this)
        >> "lossless" >> m_lossless
        >> "compression" >> m_compression
        >> "image_hint" >> m_imageHint
        >> "lossy" >> m_lossy
        >> "quality" >> m_quality
        >> "image_preset" >> m_imagePreset
        >> "ok" >> m_ok
      ;
    }

    ui::RadioButton* lossless() const { return m_lossless; }
    ui::Slider* compression() const { return m_compression; }
    ui::ComboBox* imageHint() const { return m_imageHint; }
    ui::RadioButton* lossy() const { return m_lossy; }
    ui::Slider* quality() const { return m_quality; }
    ui::ComboBox* imagePreset() const { return m_imagePreset; }
    ui::Button* ok() const { return m_ok; }

  private:
    ui::RadioButton* m_lossless;
    ui::Slider* m_compression;
    ui::ComboBox* m_imageHint;
    ui::RadioButton* m_lossy;
    ui::Slider* m_quality;
    ui::ComboBox* m_imagePreset;
    ui::Button* m_ok;
  };

} // namespace gen
} // namespace app
