]> git.lyx.org Git - lyx.git/blobdiff - src/minibuffer.h
Angus insetindex patch + protect patch from Dekel
[lyx.git] / src / minibuffer.h
index 8ec74a6f7fc1e10adaeaf72295a95a760ad4c6b0..34a92e59da3959304a75359d58437cedf2f77c00 100644 (file)
@@ -16,14 +16,9 @@ class LyXView;
 class MiniBuffer {
 public:
        ///
-       MiniBuffer(LyXView *o, FL_Coord x, FL_Coord y, FL_Coord h, FL_Coord w)
-               : owner(o)
-       {
-               text = _("Welcome to LyX!");
-               shows_no_match = true;
-               history_idx = history_cnt = 0;
-               add(FL_NORMAL_INPUT, x, y, h, w);
-       }
+       MiniBuffer(LyXView * o,
+                  FL_Coord x, FL_Coord y, FL_Coord h, FL_Coord w);
+
        ///
        bool shows_no_match;
        ///
@@ -31,9 +26,9 @@ public:
                fl_set_timer(timer, a);
        }
        ///
-       void Set(string const& = string(),
-                string const& = string(),
-                string const& = string(),
+       void Set(string const & = string(),
+                string const & = string(),
+                string const & = string(),
                 int delay_secs= 6);
        /// 
        string GetText() const { return text; }
@@ -83,7 +78,7 @@ private:
         void addHistory(string const &cmd) { 
                if (history_cnt == 0 || (history_cnt>0 && cmd!= history[(history_cnt-1) % MAX_HISTORY])) {
                    history[history_cnt % MAX_HISTORY] = cmd;
-                   history_cnt++;
+                   ++history_cnt;
                }
                history_idx = history_cnt;
        }