remove color parser / update Window, Scrollpad class and related stuff
This commit is contained in:
@@ -22,28 +22,50 @@
|
||||
#define HAVE_SCROLLPAD_H
|
||||
|
||||
#include "window.h"
|
||||
#include "strbuffer.h"
|
||||
|
||||
class Scrollpad: public Window
|
||||
{
|
||||
public:
|
||||
Scrollpad(int, int, int, int, const string &, Color, Border);
|
||||
Scrollpad(size_t, size_t, size_t, size_t, const std::string &, Color, Border);
|
||||
Scrollpad(const Scrollpad &);
|
||||
virtual ~Scrollpad() {}
|
||||
virtual void Add(string);
|
||||
virtual void Refresh(bool = 0);
|
||||
virtual void Go(Where);
|
||||
virtual void Resize(int, int);
|
||||
virtual void Clear(bool clear_screen = 1);
|
||||
virtual Window * Clone() const { return new Scrollpad(*this); }
|
||||
virtual Window * EmptyClone() const;
|
||||
virtual ~Scrollpad() { }
|
||||
|
||||
void Flush();
|
||||
std::basic_string<my_char_t> Content() { return itsBuffer.Str(); }
|
||||
|
||||
virtual void Refresh();
|
||||
virtual void Scroll(Where);
|
||||
|
||||
virtual void MoveTo(size_t, size_t);
|
||||
virtual void Resize(size_t, size_t);
|
||||
virtual void Clear(bool = 1);
|
||||
|
||||
template <class T> Scrollpad &operator<<(const T &t)
|
||||
{
|
||||
itsBuffer << t;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Scrollpad &operator<<(std::ostream &(*os)(std::ostream &));
|
||||
|
||||
# ifdef _UTF8
|
||||
Scrollpad &operator<<(const char *s);
|
||||
Scrollpad &operator<<(const std::string &s);
|
||||
# endif // _UTF8
|
||||
|
||||
virtual Scrollpad *Clone() const { return new Scrollpad(*this); }
|
||||
virtual Scrollpad *EmptyClone() const;
|
||||
|
||||
protected:
|
||||
virtual void Recreate();
|
||||
string itsContent;
|
||||
string itsRawContent;
|
||||
|
||||
basic_buffer<my_char_t> itsBuffer;
|
||||
|
||||
int itsBeginning;
|
||||
int itsRealHeight;
|
||||
int itsXPos;
|
||||
|
||||
size_t itsRealHeight;
|
||||
size_t itsXPos;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user