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> |
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; |
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 |
|
|
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 |
|
|