From 73a3747bc1b33200207768b101bf56083416d756 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Thu, 8 Jul 2010 21:53:27 +0000 Subject: 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 --- utils/themeeditor/gui/editorwindow.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'utils/themeeditor/gui/editorwindow.cpp') diff --git a/utils/themeeditor/gui/editorwindow.cpp b/utils/themeeditor/gui/editorwindow.cpp index 169dc3f..b81e41a 100644 --- a/utils/themeeditor/gui/editorwindow.cpp +++ b/utils/themeeditor/gui/editorwindow.cpp @@ -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()), -- cgit v1.1