5 #include <sigc++/signal_system.h>
8 #include FORMS_H_LOCATION
10 #include "frontends/Timeout.h"
20 class MiniBuffer : public SigC::Object {
28 MiniBuffer(LyXView * o,
29 FL_Coord x, FL_Coord y, FL_Coord h, FL_Coord w);
38 void addSet(string const &,
39 string const & = string());
42 void message(string const & str);
44 void messagePush(string const & str);
48 /** Makes the minibuffer wait for a string to be inserted.
49 Waits for a string to be inserted into the minibuffer, when
50 the string has been inserted the signal stringReady is
53 void getString(State space,
54 std::vector<string> const & completion,
55 std::vector<string> & history);
59 int peek_event(FL_OBJECT *, int, int);
61 SigC::Signal1<void, string const &> stringReady;
63 //SigC::Signal0<void> escape;
65 SigC::Signal0<void> timeout;
76 void stored_set(string const &);
77 /// set the minibuffer content if str non-empty
78 void set_complete_input(string const &);
79 /// set the minibuffer content
80 void set_input(string const &);
94 FL_OBJECT * add(int, FL_Coord, FL_Coord, FL_Coord, FL_Coord);
100 DropDown * dropdown_;
102 FL_OBJECT * the_buffer;
104 std::vector<string> completion_;
106 std::vector<string> * history_;
108 std::vector<string>::iterator hist_iter;