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

#pragma once

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

namespace app {
namespace gen {

  class TimelineConf : public ui::VBox {
  public:
    TimelineConf() {
      app::load_widget("timeline_conf.xml", "timeline_conf", this);
      app::finder(this)
        >> "merge" >> m_merge
        >> "tint" >> m_tint
        >> "reset_onionskin" >> m_resetOnionskin
        >> "opacity" >> m_opacity
        >> "opacity_step" >> m_opacityStep
        >> "loop_tag" >> m_loopTag
        >> "current_layer" >> m_currentLayer
        >> "behind" >> m_behind
        >> "infront" >> m_infront
      ;
    }

    ui::RadioButton* merge() const { return m_merge; }
    ui::RadioButton* tint() const { return m_tint; }
    ui::Button* resetOnionskin() const { return m_resetOnionskin; }
    ui::Slider* opacity() const { return m_opacity; }
    ui::Slider* opacityStep() const { return m_opacityStep; }
    ui::CheckBox* loopTag() const { return m_loopTag; }
    ui::CheckBox* currentLayer() const { return m_currentLayer; }
    ui::RadioButton* behind() const { return m_behind; }
    ui::RadioButton* infront() const { return m_infront; }

  private:
    ui::RadioButton* m_merge;
    ui::RadioButton* m_tint;
    ui::Button* m_resetOnionskin;
    ui::Slider* m_opacity;
    ui::Slider* m_opacityStep;
    ui::CheckBox* m_loopTag;
    ui::CheckBox* m_currentLayer;
    ui::RadioButton* m_behind;
    ui::RadioButton* m_infront;
  };

} // namespace gen
} // namespace app
