summaryrefslogtreecommitdiff
path: root/utils/themeeditor/editorwindow.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-04 07:57:19 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-04 07:57:19 +0000
commite174a8ad8dc531ff093894b7f930f0b9750c74eb (patch)
treee74063cb651c54a2fb3dee2632943b5950963c3b /utils/themeeditor/editorwindow.cpp
parent9616389377d169c5c23317f0695d322b8d958b09 (diff)
downloadrockbox-e174a8ad8dc531ff093894b7f930f0b9750c74eb.zip
rockbox-e174a8ad8dc531ff093894b7f930f0b9750c74eb.tar.gz
rockbox-e174a8ad8dc531ff093894b7f930f0b9750c74eb.tar.bz2
rockbox-e174a8ad8dc531ff093894b7f930f0b9750c74eb.tar.xz
Theme Editor: Began implementing tabbing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26541 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/editorwindow.cpp')
-rw-r--r--utils/themeeditor/editorwindow.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/utils/themeeditor/editorwindow.cpp b/utils/themeeditor/editorwindow.cpp
index c19178a..92d400c 100644
--- a/utils/themeeditor/editorwindow.cpp
+++ b/utils/themeeditor/editorwindow.cpp
@@ -60,6 +60,7 @@ void EditorWindow::setupUI()
/* Connecting the buttons */
QObject::connect(ui->fromTree, SIGNAL(pressed()),
this, SLOT(updateCode()));
+
}
void EditorWindow::setupMenus()
@@ -71,15 +72,17 @@ void EditorWindow::setupMenus()
this, SLOT(showPanel()));
QObject::connect(ui->actionPreview_Panel, SIGNAL(triggered()),
this, SLOT(showPanel()));
-}
-void EditorWindow::codeChanged()
-{
- ui->parseTree->expandAll();
+ /* Connecting the document opening/closing actions */
+ QObject::connect(ui->actionNew_Document, SIGNAL(triggered()),
+ this, SLOT(newTab()));
}
-void EditorWindow::updateCode()
+
+void EditorWindow::newTab()
{
+ SkinDocument* doc = new SkinDocument;
+ ui->editorTabs->addTab(doc, doc->getTitle());
}
void EditorWindow::showPanel()