22 #ifndef FIFE_GUICHAN_ADDON_COMMANDLINE_H
23 #define FIFE_GUICHAN_ADDON_COMMANDLINE_H
30 #include <boost/function.hpp>
31 #include <guichan.hpp>
37 #include "util/time/timer.h"
38 #include "gui/widgets/utf8textfield.h"
46 typedef boost::function1<void,std::string> type_callback;
56 void keyPressed(gcn::KeyEvent& keyEvent);
57 virtual void drawCaret(gcn::Graphics * graphics,
int x);
75 type_callback m_callback;
76 std::vector<std::string> m_history;
77 size_t m_history_position;
78 std::string m_cmdline;
81 Timer m_suppressBlinkTimer;