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

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

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

revision 2423 by persson, Sun Feb 24 15:19:39 2013 UTC revision 2446 by persson, Sun Apr 28 15:40:43 2013 UTC
# Line 24  Line 24 
24    
25  #include <cmath>  #include <cmath>
26    
27    #include <glibmm/convert.h>
28  #include <gtkmm/adjustment.h>  #include <gtkmm/adjustment.h>
29  #include <gtkmm/alignment.h>  #include <gtkmm/alignment.h>
30  #include <gtkmm/box.h>  #include <gtkmm/box.h>
# Line 41  Line 42 
42  #include <gtkmm/tooltips.h>  #include <gtkmm/tooltips.h>
43  #endif  #endif
44    
45    
46    Glib::ustring gig_to_utf8(const gig::String& gig_string);
47    gig::String gig_from_utf8(const Glib::ustring& utf8_string);
48    
49    
50  class LabelWidget {  class LabelWidget {
51  public:  public:
52      Gtk::Label label;      Gtk::Label label;
# Line 282  public: Line 288  public:
288      void set_value(int32_t value);      void set_value(int32_t value);
289  };  };
290    
291    
292  class StringEntry : public LabelWidget {  class StringEntry : public LabelWidget {
293  private:  private:
294      Gtk::Entry entry;      Gtk::Entry entry;
295  public:  public:
296      StringEntry(const char* labelText);      StringEntry(const char* labelText);
297      gig::String get_value() const { return entry.get_text(); }      gig::String get_value() const;
298      void set_value(gig::String value) { entry.set_text(value); }      void set_value(const gig::String& value);
299      void set_width_chars(int n_chars) { entry.set_width_chars(n_chars); }      void set_width_chars(int n_chars) { entry.set_width_chars(n_chars); }
300  };  };
301    
# Line 300  private: Line 307  private:
307  public:  public:
308      StringEntryMultiLine(const char* labelText);      StringEntryMultiLine(const char* labelText);
309      gig::String get_value() const;      gig::String get_value() const;
310      void set_value(gig::String value);      void set_value(const gig::String& value);
311  };  };
312    
313    

Legend:
Removed from v.2423  
changed lines
  Added in v.2446

  ViewVC Help
Powered by ViewVC