#include "debug.h"
#include "gettext.h"
#include "LyXAction.h"
+#include "BufferView.h"
+#include "buffer.h"
+
+using std::endl;
extern bool keyseqUncomplete();
extern string keyseqOptions(int l= 190);
extern string keyseqStr(int l= 190);
extern LyXAction lyxaction;
+MiniBuffer::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);
+}
+
void MiniBuffer::TimerCB(FL_OBJECT * ob, long)
{
MiniBuffer * obj = static_cast<MiniBuffer*>(ob->u_vdata);
void MiniBuffer::ExecCommand()
{
- text.clear();
+ text.erase();
fl_set_input(the_buffer, "");
fl_set_focus_object(owner->getForm(), the_buffer);
}
{
if (!text_stored.empty()){
Set(text_stored);
- text_stored.clear();
+ text_stored.erase();
}
}