ultimatepp/uppdev/E011/console.h
cxl 3cd394812c Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-04 08:34:39 +00:00

31 lines
697 B
C++

#ifndef _E011_console_h_
#define _E011_console_h_
class Console : public LineEdit {
public:
virtual bool Key(dword key, int count);
virtual void LeftDouble(Point p, dword);
virtual void RightDown(Point p, dword);
virtual void Append(const String& s);
protected:
bool quiet;
bool wrap_text;
public:
Callback WhenSelect;
Callback1<Bar&> WhenBar;
Console& operator<<(const String& s) { Append(s); return *this; }
void WrapText(bool w) { wrap_text = w; }
void Put(const String& s) { Append(s); Append("\n"); }
void PutVerbose(const char *s) { Put(s); Sync(); }
typedef Console CLASSNAME;
Console();
};
#endif