/[svn]/gigedit/trunk/src/paramedit.h
ViewVC logotype

Diff of /gigedit/trunk/src/paramedit.h

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

revision 1152 by persson, Sat Mar 31 09:33:40 2007 UTC revision 1153 by schoenebeck, Mon Apr 9 21:05:01 2007 UTC
# Line 29  Line 29 
29  #include <gtkmm/label.h>  #include <gtkmm/label.h>
30  #include <gtkmm/scale.h>  #include <gtkmm/scale.h>
31  #include <gtkmm/spinbutton.h>  #include <gtkmm/spinbutton.h>
32    #include <gtkmm/tooltips.h>
33    
34  extern bool update_gui;  extern bool update_gui;
35    
# Line 39  public: Line 40  public:
40    
41      LabelWidget(char* labelText, Gtk::Widget& widget);      LabelWidget(char* labelText, Gtk::Widget& widget);
42      void set_sensitive(bool sensitive = true);      void set_sensitive(bool sensitive = true);
43    protected:
44        Gtk::Tooltips tooltips;
45  };  };
46    
47  class NumEntry : public LabelWidget {  class NumEntry : public LabelWidget {
# Line 59  public: Line 62  public:
62      double get_value() const {      double get_value() const {
63          return spinbutton.get_value();          return spinbutton.get_value();
64      }      }
65        void set_tip(const Glib::ustring& tip_text) {
66            tooltips.set_tip(spinbutton, tip_text);
67        }
68  };  };
69    
70  class NumEntryGain : public NumEntry {  class NumEntryGain : public NumEntry {
# Line 218  public: Line 224  public:
224          return checkbutton.signal_toggled();          return checkbutton.signal_toggled();
225      }      }
226      void set_ptr(bool* ptr);      void set_ptr(bool* ptr);
227        void set_tip(const Glib::ustring& tip_text) {
228            tooltips.set_tip(checkbutton, tip_text);
229        }
230  };  };
231    
232    

Legend:
Removed from v.1152  
changed lines
  Added in v.1153

  ViewVC Help
Powered by ViewVC