22 #ifndef GtkCRNScaleAction_HEADER
23 #define GtkCRNScaleAction_HEADER
25 #include <libgtkcrnmm_config.h>
28 #ifndef CRN_USING_GTKMM3
42 static Glib::RefPtr<ScaleAction>
create();
44 static Glib::RefPtr<ScaleAction>
create(
const Glib::ustring& name,
const Glib::ustring& label = Glib::ustring(),
const Glib::ustring& tooltip = Glib::ustring());
46 static Glib::RefPtr<ScaleAction>
create(
const Glib::ustring& name,
const Gtk::StockID& stock_id,
const Glib::ustring& label = Glib::ustring(),
const Glib::ustring& tooltip = Glib::ustring());
48 static Glib::RefPtr<ScaleAction>
create_with_icon_name(
const Glib::ustring& name,
const Glib::ustring& icon_name,
const Glib::ustring& label,
const Glib::ustring& tooltip);
53 void set_icons(
const Glib::StringArrayHandle& icons);
63 ScaleAction(
const Glib::ustring& name,
const Gtk::StockID& stock_id = Gtk::StockID(),
const Glib::ustring& label = Glib::ustring(),
const Glib::ustring& tooltip = Glib::ustring());
64 ScaleAction(
const Glib::ustring& name,
const Glib::ustring& icon_name,
const Glib::ustring& label = Glib::ustring(),
const Glib::ustring& tooltip = Glib::ustring());
void set_icons(const Glib::StringArrayHandle &icons)
Sets the icons to display depending of the value of the scale.
static Glib::RefPtr< ScaleAction > create()
Creates a blank ScaleAction.
static Glib::RefPtr< ScaleAction > create_with_icon_name(const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label, const Glib::ustring &tooltip)
Creates a ScaleAction.
virtual ~ScaleAction() override
Destructor.
virtual Gtk::Widget * create_tool_item_vfunc() override
A proxy action for a scale widget.
virtual Gtk::Widget * create_menu_item_vfunc() override
std::vector< Glib::ustring > iconlist
Glib::SignalProxy0< void > signal_changed()
Signals when the value was changed. Connect to void on_value_changed();.
Gtk::Adjustment & get_adjustment()
Gets the Adjustment object to configure the scale.