7 #include <boost/signals/signal0.hpp>
8 #include <boost/signals/signal1.hpp>
9 #include <boost/signals/trackable.hpp>
13 #include FORMS_H_LOCATION
24 class MiniBuffer : public boost::signals::trackable {
32 MiniBuffer(LyXView * o,
33 FL_Coord x, FL_Coord y, FL_Coord h, FL_Coord w);
42 void addSet(string const &,
43 string const & = string());
46 void message(string const & str);
48 void messagePush(string const & str);
52 /** Makes the minibuffer wait for a string to be inserted.
53 Waits for a string to be inserted into the minibuffer, when
54 the string has been inserted the signal stringReady is
57 void getString(State space,
58 std::vector<string> const & completion,
59 std::vector<string> & history);
63 int peek_event(FL_OBJECT *, int, int);
65 boost::signal1<void, string const &> stringReady;
67 //boost::signal0<void> escape;
69 boost::signal0<void> timeout;
80 void stored_set(string const &);
81 /// set the minibuffer content if str non-empty
82 void set_complete_input(string const &);
83 /// append c to the current contents
84 void append_char(char c);
85 /// set the minibuffer content
86 void set_input(string const &);
100 FL_OBJECT * add(int, FL_Coord, FL_Coord, FL_Coord, FL_Coord);
104 Timeout * stored_timer;
105 /// the dropdown menu
106 DropDown * dropdown_;
108 FL_OBJECT * the_buffer;
110 std::vector<string> completion_;
112 std::vector<string> * history_;
114 std::vector<string>::iterator hist_iter;