25 using namespace GtkCRN;
34 signal_button_release_event().connect(sigc::mem_fun(
this, &
Prop3::click));
41 value_changed.emit(prop);
51 void Prop3::set_image()
53 #ifdef CRN_USING_GTKMM3
57 img.set_from_icon_name(
"_Cancel", size);
60 img.set_from_icon_name(
"_OK", size);
63 img.set_from_icon_name(
"dialog-question", size);
69 img.set(Gtk::Stock::YES, size);
72 img.set(Gtk::Stock::NO, size);
75 img.set(Gtk::Stock::DIALOG_QUESTION, size);
93 throw Glib::OptionError(Glib::OptionError::BAD_VALUE,
94 Glib::ustring(
"bool Prop3::click(GdkEventButton *ev): ") +
_(
"null event."));
116 value_changed.emit(prop);
bool IsFalse() const noexcept
Is false?
bool IsTrue() const noexcept
Is true?
Prop3(Gtk::IconSize is, const crn::Prop3 &p=crn::Prop3::Unknown())
Constructor.
void set_icon_size(Gtk::IconSize is)
Sets the icon size.
bool click(GdkEventButton *ev)
Emulates a mouse button release on the image.
int GetValue() const noexcept
Returns the internal integer value.
void set_value(const crn::Prop3 &p)
Sets the value.