Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > contrib-release-debug > by-pkgid > 69710aa523c75aae90cbd19e022a4e3b > files > 34

centerim-debug-4.22.10-1mdv2011.0.i586.rpm

#ifndef __KONST_UI_TEXT_H_
#define __KONST_UI_TEXT_H_

#include <vector>

#include "conf.h"
#include "conscommon.h"
#include "abstractui.h"

__KTOOL_BEGIN_NAMESPACE

class textbrowser: public abstractuicontrol {
    protected:
	int ncolor, line, endline;
	vector<string> lines;
	string buf;

	void draw(int line);
	
    public:
	int (*otherkeys)(textbrowser &caller, int k);
	void (*idle)(textbrowser &caller);
	
	textbrowser(int nx1, int ny1, int nx2, int ny2, int clr);
	textbrowser(int clr = 0);
	virtual ~textbrowser();

	void setcolor(int clr);
	void setcoords(int nx1, int ny1, int nx2, int ny2);
	void redraw();
	void move(int k);

	int open();

	bool empty();
	void setbuf(const string &p);
};

__KTOOL_END_NAMESPACE

#ifdef __KTOOL_USE_NAMESPACES

using ktool::textbrowser;

#endif

#endif