From e174a8ad8dc531ff093894b7f930f0b9750c74eb Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Fri, 4 Jun 2010 07:57:19 +0000 Subject: Theme Editor: Began implementing tabbing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26541 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/editorwindow.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'utils/themeeditor/editorwindow.cpp') 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() -- cgit v1.1