diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-04 07:57:19 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-04 07:57:19 +0000 |
commit | e174a8ad8dc531ff093894b7f930f0b9750c74eb (patch) | |
tree | e74063cb651c54a2fb3dee2632943b5950963c3b /utils/themeeditor/editorwindow.cpp | |
parent | 9616389377d169c5c23317f0695d322b8d958b09 (diff) | |
download | rockbox-e174a8ad8dc531ff093894b7f930f0b9750c74eb.tar.gz rockbox-e174a8ad8dc531ff093894b7f930f0b9750c74eb.zip |
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.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/utils/themeeditor/editorwindow.cpp b/utils/themeeditor/editorwindow.cpp index c19178a51a..92d400cf78 100644 --- a/utils/themeeditor/editorwindow.cpp +++ b/utils/themeeditor/editorwindow.cpp | |||
@@ -60,6 +60,7 @@ void EditorWindow::setupUI() | |||
60 | /* Connecting the buttons */ | 60 | /* Connecting the buttons */ |
61 | QObject::connect(ui->fromTree, SIGNAL(pressed()), | 61 | QObject::connect(ui->fromTree, SIGNAL(pressed()), |
62 | this, SLOT(updateCode())); | 62 | this, SLOT(updateCode())); |
63 | |||
63 | } | 64 | } |
64 | 65 | ||
65 | void EditorWindow::setupMenus() | 66 | void EditorWindow::setupMenus() |
@@ -71,15 +72,17 @@ void EditorWindow::setupMenus() | |||
71 | this, SLOT(showPanel())); | 72 | this, SLOT(showPanel())); |
72 | QObject::connect(ui->actionPreview_Panel, SIGNAL(triggered()), | 73 | QObject::connect(ui->actionPreview_Panel, SIGNAL(triggered()), |
73 | this, SLOT(showPanel())); | 74 | this, SLOT(showPanel())); |
74 | } | ||
75 | 75 | ||
76 | void EditorWindow::codeChanged() | 76 | /* Connecting the document opening/closing actions */ |
77 | { | 77 | QObject::connect(ui->actionNew_Document, SIGNAL(triggered()), |
78 | ui->parseTree->expandAll(); | 78 | this, SLOT(newTab())); |
79 | } | 79 | } |
80 | 80 | ||
81 | void EditorWindow::updateCode() | 81 | |
82 | void EditorWindow::newTab() | ||
82 | { | 83 | { |
84 | SkinDocument* doc = new SkinDocument; | ||
85 | ui->editorTabs->addTab(doc, doc->getTitle()); | ||
83 | } | 86 | } |
84 | 87 | ||
85 | void EditorWindow::showPanel() | 88 | void EditorWindow::showPanel() |