terom@410: #ifndef GRAPHICS_CONSOLE_HH terom@410: #define GRAPHICS_CONSOLE_HH terom@410: terom@412: #include "GUI.hh" terom@412: terom@410: #include terom@410: terom@410: namespace graphics terom@410: { terom@410: terom@410: class Console : public CL_Component { terom@410: protected: terom@410: /** our list of messages */ terom@410: std::list messages; terom@410: terom@410: /** our input dialog */ terom@410: CL_InputBox input; terom@410: terom@410: public: terom@410: /** terom@410: * Construct a new console, positioned in the given area, with the given parent terom@410: */ terom@410: Console (const CL_Rect& pos, CL_Component* parent); terom@410: terom@410: private: terom@410: /** terom@410: * Calculate the position for the input box terom@410: */ terom@410: CL_Rect getInputPosition (void); terom@410: }; terom@410: terom@410: } terom@410: terom@410: #endif