278 |
scrolledWindow.show(); |
scrolledWindow.show(); |
279 |
vbox.pack_start(buttonBox, Gtk::PACK_SHRINK); |
vbox.pack_start(buttonBox, Gtk::PACK_SHRINK); |
280 |
buttonBox.set_layout(Gtk::BUTTONBOX_END); |
buttonBox.set_layout(Gtk::BUTTONBOX_END); |
281 |
#if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && GTKMM_MINOR_VERSION > 22) |
#if GTKMM_MAJOR_VERSION > 3 || (GTKMM_MAJOR_VERSION == 3 && GTKMM_MINOR_VERSION > 24) |
282 |
buttonBox.set_margin(5); |
buttonBox.set_margin(5); |
283 |
#else |
#else |
284 |
buttonBox.set_border_width(5); |
buttonBox.set_border_width(5); |
325 |
#if HAS_GTKMM_SHOW_ALL_CHILDREN |
#if HAS_GTKMM_SHOW_ALL_CHILDREN |
326 |
show_all_children(); |
show_all_children(); |
327 |
#endif |
#endif |
328 |
|
|
329 |
|
Settings::singleton()->showTooltips.get_proxy().signal_changed().connect( |
330 |
|
sigc::mem_fun(*this, &DimensionManager::on_show_tooltips_changed) |
331 |
|
); |
332 |
|
on_show_tooltips_changed(); |
333 |
|
} |
334 |
|
|
335 |
|
void DimensionManager::on_show_tooltips_changed() { |
336 |
|
const bool b = Settings::singleton()->showTooltips; |
337 |
|
|
338 |
|
treeView.set_has_tooltip(b); |
339 |
|
allRegionsCheckBox.set_has_tooltip(b); |
340 |
|
|
341 |
|
set_has_tooltip(b); |
342 |
} |
} |
343 |
|
|
344 |
bool DimensionManager::allRegions() const { |
bool DimensionManager::allRegions() const { |
367 |
}; |
}; |
368 |
typedef std::map<gig::dimension_t, _DimDef> _Dimensions; |
typedef std::map<gig::dimension_t, _DimDef> _Dimensions; |
369 |
|
|
370 |
// update all GUI elements according to current gig::Region informations |
// update all GUI elements according to current gig::Region information |
371 |
void DimensionManager::refreshManager() { |
void DimensionManager::refreshManager() { |
372 |
set_sensitive(false); |
set_sensitive(false); |
373 |
refTableModel->clear(); |
refTableModel->clear(); |