5 #include FORMS_H_LOCATION
16 #ifdef SIGC_CXX_NAMESPACES
21 class MiniBuffer : public Object{
24 MiniBuffer(LyXView * o,
25 FL_Coord x, FL_Coord y, FL_Coord h, FL_Coord w);
31 void setTimer(unsigned int a) {
32 timer.setTimeout(a * 1000);
36 void Set(string const & = string(),
37 string const & = string(),
38 string const & = string(),
39 unsigned int delay_secs = 6);
41 string const GetText() const { return text; }
45 void PrepareForCommand();
46 /** allows to store and reset the contents one time. Usefull
47 for status messages like "load font" (Matthias)
57 static void ExecutingCB(FL_OBJECT * ob, long);
59 static int peek_event(FL_OBJECT *, int, FL_Coord, FL_Coord,
69 FL_OBJECT * add(int, FL_Coord, FL_Coord, FL_Coord, FL_Coord);
73 FL_OBJECT * the_buffer;
77 enum{ MAX_HISTORY = 10 };
79 mutable string history[MAX_HISTORY];
81 mutable int history_idx;
83 mutable int history_cnt;
85 void addHistory(string const & cmd) const {
88 && cmd != history[(history_cnt - 1) % MAX_HISTORY])) {
89 history[history_cnt % MAX_HISTORY] = cmd;
92 history_idx = history_cnt;
95 string const getHistory() const {
96 return history[history_idx % MAX_HISTORY];