1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Built a ui for the timer panel, not functional yet

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27353 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-07-08 21:53:27 +00:00
parent 9dd5f75966
commit 73a3747bc1
15 changed files with 391 additions and 4 deletions

View file

@ -167,8 +167,19 @@ void EditorWindow::setupUI()
deviceDock->setObjectName("deviceDock");
deviceDock->setWidget(deviceConfig);
deviceDock->setFloating(true);
deviceDock->move(QPoint(x() + width() / 2, y() + height() / 2));
deviceDock->hide();
/* Positioning the timer panel */
timerDock = new QDockWidget(tr("Timer"), this);
timer = new SkinTimer(deviceConfig, timerDock);
timerDock->setObjectName("timerDock");
timerDock->setWidget(timer);
timerDock->setFloating(true);
timerDock->move(QPoint(x() + width() / 2, y() + height() / 2));
timerDock->hide();
shiftTab(-1);
}
@ -183,6 +194,8 @@ void EditorWindow::setupMenus()
this, SLOT(showPanel()));
QObject::connect(ui->actionDevice_Configuration, SIGNAL(triggered()),
deviceDock, SLOT(show()));
QObject::connect(ui->actionTimer, SIGNAL(triggered()),
timerDock, SLOT(show()));
/* Connecting the document management actions */
QObject::connect(ui->actionNew_Document, SIGNAL(triggered()),