fix the cairo-fletcher-fluctuation
[ardour.git] / libs / gtkmm2ext / gtkmm2ext / prompter.h
index 8d092f6992603b2c8fa4a60971252d70530b39ff..3499479073e86e5155bef07f1186a13bdb96fb42 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __gtkmm2ext_prompter_h__
 #include <gtkmm/dialog.h>
 #include <sigc++/sigc++.h>
 
+#include "gtkmm2ext/visibility.h"
+
 namespace Gtk {
        class Window;
 }
 
 namespace Gtkmm2ext {
 
-class Prompter : public Gtk::Dialog
+class LIBGTKMM2EXT_API Prompter : public Gtk::Dialog
 
 {
   public:
@@ -53,17 +54,23 @@ class Prompter : public Gtk::Dialog
 
        void change_labels (std::string ok, std::string cancel);
 
-       void get_result (std::string &str);
+       void get_result (std::string &str, bool strip=true);
 
   protected:
        Gtk::Entry& the_entry() { return entry; }
 
+       void on_entry_changed ();
+       void on_show ();
+
   private:
        Gtk::Entry entry;
-       Gtk::VBox entryBox;
+       Gtk::HBox entryBox;
        Gtk::Label entryLabel;
-       
+       bool first_show;
+       bool can_accept_from_entry;
+
        void init ();
+       void entry_activated ();
 };
 
 } /* namespace */