TilePICoutix

git-svn-id: svn://db.shs.com.ru/pip@45 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-03-30 11:23:13 +00:00
parent 595543bea9
commit 0cb2b20d2e
11 changed files with 75 additions and 19 deletions

View File

@@ -55,25 +55,29 @@ public:
screen.rootTile()->addTile(center);
PIScreenTile * mt = tmenu = menuTile();
mt->show(); mt->name = "main menu";
mt->show(); mt->name() = "main menu";
center->addTile(mt); mtiles << mt;
mt = tinfo = infoTile();
mt->hide(); mt->name = "local info";
mt->hide(); mt->name() = "local info";
center->addTile(mt); mtiles << mt;
mt = tfm = file_manager.tile();
mt->hide(); mt->name = "file manager";
mt->hide(); mt->name() = "file manager";
center->addTile(mt); mtiles << mt;
mt = tdaemon = daemon_.tile();
mt->hide(); mt->name = "daemon";
mt->hide(); mt->name() = "daemon";
center->addTile(mt); mtiles << mt;
mt = tpeer = peerTile();
mt->hide(); mt->name = "peer info";
mt->hide(); mt->name() = "peer info";
center->addTile(mt); mtiles << mt;
TilePICout * outt = new TilePICout();
outt->size_policy = PIScreenTypes::Expanding;
screen.rootTile()->addTile(outt);
CONNECTU(&screen, tileEvent, this, tileEvent)
CONNECTU(&screen, keyPressed, this, keyEvent)
CONNECTU(&file_manager, menuRequest, this, menuRequest)