git-svn-id: svn://db.shs.com.ru/pip@249 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-09-01 15:03:56 +00:00
parent bae0456042
commit 5d296fa5a5
14 changed files with 352 additions and 99 deletions

View File

@@ -0,0 +1,30 @@
#ifndef TERMINAL_TILE_H
#define TERMINAL_TILE_H
#include "piscreentile.h"
#include "pikbdlistener.h"
class TileTerminal: public PIScreenTile {
PIOBJECT_SUBCLASS(TileTerminal, PIScreenTile)
public:
TileTerminal(const PIString & n);
void setContent(const PIVector<PIVector<PIScreenTypes::Cell> > & c) {cells = c;}
EVENT(resizeRequest)
EVENT1(keyPressed, PIKbdListener::KeyEvent, k)
EVENT(closeRequest)
private:
void drawEvent(PIScreenDrawer * d);
bool keyEvent(PIKbdListener::KeyEvent key);
void resizeEvent(int w, int h);
PIVector<PIVector<PIScreenTypes::Cell> > cells;
char lastp[3];
};
#endif // TERMINAL_TILE_H