/[svn]/gigedit/trunk/src/gigedit/dimensionmanager.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/dimensionmanager.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3364 by schoenebeck, Tue Nov 14 18:07:25 2017 UTC revision 3473 by persson, Sat Feb 16 20:35:46 2019 UTC
# Line 18  Line 18 
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
# Line 278  DimensionManager::DimensionManager() : Line 271  DimensionManager::DimensionManager() :
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);
# Line 325  DimensionManager::DimensionManager() : Line 318  DimensionManager::DimensionManager() :
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 {
# Line 353  struct _DimDef { Line 360  struct _DimDef {
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();

Legend:
Removed from v.3364  
changed lines
  Added in v.3473

  ViewVC Help
Powered by ViewVC