18 |
*/ |
*/ |
19 |
|
|
20 |
#include "compat.h" |
#include "compat.h" |
|
// threads.h must be included first to be able to build with |
|
|
// G_DISABLE_DEPRECATED |
|
|
#if (GLIBMM_MAJOR_VERSION == 2 && GLIBMM_MINOR_VERSION == 31 && GLIBMM_MICRO_VERSION >= 2) || \ |
|
|
(GLIBMM_MAJOR_VERSION == 2 && GLIBMM_MINOR_VERSION > 31) || GLIBMM_MAJOR_VERSION > 2 |
|
|
#include <glibmm/threads.h> |
|
|
#endif |
|
|
|
|
21 |
#include "dimensionmanager.h" |
#include "dimensionmanager.h" |
22 |
|
|
23 |
#if HAS_GTKMM_STOCK |
#if HAS_GTKMM_STOCK |
271 |
scrolledWindow.show(); |
scrolledWindow.show(); |
272 |
vbox.pack_start(buttonBox, Gtk::PACK_SHRINK); |
vbox.pack_start(buttonBox, Gtk::PACK_SHRINK); |
273 |
buttonBox.set_layout(Gtk::BUTTONBOX_END); |
buttonBox.set_layout(Gtk::BUTTONBOX_END); |
274 |
#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) |
275 |
buttonBox.set_margin(5); |
buttonBox.set_margin(5); |
276 |
#else |
#else |
277 |
buttonBox.set_border_width(5); |
buttonBox.set_border_width(5); |
318 |
#if HAS_GTKMM_SHOW_ALL_CHILDREN |
#if HAS_GTKMM_SHOW_ALL_CHILDREN |
319 |
show_all_children(); |
show_all_children(); |
320 |
#endif |
#endif |
321 |
|
|
322 |
|
Settings::singleton()->showTooltips.get_proxy().signal_changed().connect( |
323 |
|
sigc::mem_fun(*this, &DimensionManager::on_show_tooltips_changed) |
324 |
|
); |
325 |
|
on_show_tooltips_changed(); |
326 |
|
} |
327 |
|
|
328 |
|
void DimensionManager::on_show_tooltips_changed() { |
329 |
|
const bool b = Settings::singleton()->showTooltips; |
330 |
|
|
331 |
|
treeView.set_has_tooltip(b); |
332 |
|
allRegionsCheckBox.set_has_tooltip(b); |
333 |
|
|
334 |
|
set_has_tooltip(b); |
335 |
} |
} |
336 |
|
|
337 |
bool DimensionManager::allRegions() const { |
bool DimensionManager::allRegions() const { |
360 |
}; |
}; |
361 |
typedef std::map<gig::dimension_t, _DimDef> _Dimensions; |
typedef std::map<gig::dimension_t, _DimDef> _Dimensions; |
362 |
|
|
363 |
// update all GUI elements according to current gig::Region informations |
// update all GUI elements according to current gig::Region information |
364 |
void DimensionManager::refreshManager() { |
void DimensionManager::refreshManager() { |
365 |
set_sensitive(false); |
set_sensitive(false); |
366 |
refTableModel->clear(); |
refTableModel->clear(); |