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

#pragma once

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

namespace app {
namespace gen {

  class PaletteFromSprite : public ui::Window {
  public:
    PaletteFromSprite() : ui::Window(ui::Window::WithTitleBar) {
      app::load_widget("palette_from_sprite.xml", "palette_from_sprite", this);
      app::finder(this)
        >> "new_palette" >> m_newPalette
        >> "ncolors" >> m_ncolors
        >> "current_palette" >> m_currentPalette
        >> "current_range" >> m_currentRange
        >> "alpha_channel" >> m_alphaChannel
        >> "ok" >> m_ok
      ;
    }

    ui::RadioButton* newPalette() const { return m_newPalette; }
    ui::Entry* ncolors() const { return m_ncolors; }
    ui::RadioButton* currentPalette() const { return m_currentPalette; }
    ui::RadioButton* currentRange() const { return m_currentRange; }
    ui::CheckBox* alphaChannel() const { return m_alphaChannel; }
    ui::Button* ok() const { return m_ok; }

  private:
    ui::RadioButton* m_newPalette;
    ui::Entry* m_ncolors;
    ui::RadioButton* m_currentPalette;
    ui::RadioButton* m_currentRange;
    ui::CheckBox* m_alphaChannel;
    ui::Button* m_ok;
  };

} // namespace gen
} // namespace app
