22 #ifndef FIFE_FIFECHAN_ADDON_CONSOLE_H 23 #define FIFE_FIFECHAN_ADDON_CONSOLE_H 29 #include <fifechan.hpp> 64 class Console :
public fcn::Container,
public fcn::ActionListener,
public fcn::FocusListener {
76 void println(
const std::string & s);
99 void toggleShowHide();
109 void execute(std::string cmd);
114 void updateCaption();
119 void updateAnimation();
123 void action(
const fcn::ActionEvent & event);
131 void removeConsoleExecuter();
143 void focusLost(
const fcn::Event& event);
virtual void onToolsClick()=0
Called when console tools button is clicked.
virtual std::string onConsoleCommand(const std::string &command)=0
Called when user has typed command to console and pressed enter.
virtual ~ConsoleExecuter()
Destructor.
Console executer is listener interface for console activity.
fcn::Button * m_toolsbutton
static const unsigned m_maxOutputRows
ConsoleExecuter * m_consoleexec
fcn::ScrollArea * m_outputscrollarea