Enhance usability of the Tools' Enable/Disable button.

This commit is contained in:
Hombrenatureh.510
2015-03-16 20:18:32 +01:00
parent 052935f587
commit 6be8af55e8
22 changed files with 399 additions and 278 deletions

View File

@@ -126,13 +126,16 @@ private:
Gtk::HBox *headerHBox;
bool flushEvent; /// Flag to control the weird event mechanism of Gtk (please prove me wrong!)
ExpanderBox* expBox; /// Frame that includes the child and control its visibility
Gtk::EventBox *imageEvBox; /// Enable/Disable or Open/Close arrow event box
/// Triggered on opened/closed event
bool on_toggle(GdkEventButton* event);
/// Triggered on enabled/disabled change -> will emit a toggle event to the connected objects
bool on_enabled_change(GdkEventButton* event);
/// Used to handle the colored background
bool on_enter_leave (GdkEventCrossing* event);
/// Used to handle the colored background for the whole Title
bool on_enter_leave_title (GdkEventCrossing* event);
/// Used to handle the colored background for the Enable button
bool on_enter_leave_enable (GdkEventCrossing* event);
/// Update the style of this widget, depending in the "slim" option
void updateStyle();