| 2 |
#define _WIDGET_PLACE_HH_ |
#define _WIDGET_PLACE_HH_ |
| 3 |
|
|
| 4 |
#include <gtk--/optionmenu.h> |
#include <gtk--/optionmenu.h> |
| 5 |
|
#include <gtk--/menuitem.h> |
| 6 |
|
#include <gtk--/entry.h> |
| 7 |
|
|
| 8 |
#include <string> |
#include <string> |
| 9 |
|
|
| 10 |
class WidgetPlace : public Gtk::OptionMenu |
class WidgetPlace : public Gtk::OptionMenu |
| 11 |
{ |
{ |
| 12 |
public: |
public: |
| 13 |
|
WidgetPlace(void); |
| 14 |
void set_text(std::string const &values); |
void set_text(std::string const &values); |
| 15 |
void clear(void); |
void clear(void); |
| 16 |
|
Gtk::Entry * getEntryWidget(void); |
| 17 |
|
private: |
| 18 |
|
class WidgetEntryPlace : public Gtk::MenuItem |
| 19 |
|
{ |
| 20 |
|
public: |
| 21 |
|
WidgetEntryPlace(void); |
| 22 |
|
void set_text(std::string const &value); |
| 23 |
|
Gtk::Entry * getEntryWidget(void); |
| 24 |
|
private: |
| 25 |
|
Gtk::Entry * _entry; |
| 26 |
|
}; |
| 27 |
|
WidgetEntryPlace * _entry_place; |
| 28 |
|
int on_Place_clicked(GdkEventFocus*); |
| 29 |
|
std::string _value; |
| 30 |
}; |
}; |
| 31 |
|
|
| 32 |
#endif |
#endif |