20 #ifndef __gtkmm2ext_prompter_h__
21 #define __gtkmm2ext_prompter_h__
24 #include <gtkmm/box.h>
25 #include <gtkmm/entry.h>
26 #include <gtkmm/label.h>
27 #include <gtkmm/dialog.h>
28 #include <sigc++/sigc++.h>
43 Prompter (Gtk::Window& parent,
bool modal =
false);
47 entryLabel.set_label (prompt);
52 entry.select_region (0, entry.get_text_length());
55 void change_labels (std::string ok, std::string cancel);
57 void get_result (std::string &str,
bool strip=
true);
62 void on_entry_changed ();
73 void entry_activated ();
void set_initial_text(std::string txt)
void set_prompt(std::string prompt)
bool can_accept_from_entry
LIBGTKMM2EXT_API void init(const char *)