From f3491e97d0d96f8df8a3c5a16efdef19c0796770 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Sun, 6 Jun 2010 03:35:40 +0000 Subject: Theme Editor: Began working on open document functionality (still incomplete), fixed a nested conditional parsing bug in the parser, and fixed segfault-on-codegen-from-empty-tree bug git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26609 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/editorwindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'utils/themeeditor/editorwindow.cpp') diff --git a/utils/themeeditor/editorwindow.cpp b/utils/themeeditor/editorwindow.cpp index bc66fec..dfc4b59 100644 --- a/utils/themeeditor/editorwindow.cpp +++ b/utils/themeeditor/editorwindow.cpp @@ -25,6 +25,7 @@ #include #include #include +#include EditorWindow::EditorWindow(QWidget *parent) : QMainWindow(parent), @@ -183,6 +184,17 @@ void EditorWindow::saveCurrentAs() dynamic_cast(ui->editorTabs->currentWidget())->saveAs(); } +void EditorWindow::openFile() +{ + QStringList fileNames; + QSettings settings; + + settings.beginGroup("SkinDocument"); + QString directory = settings.value("defaultDirectory", "").toString(); + fileNames = QFileDialog::getOpenFileNames(this, tr("Open Files"), directory, + SkinDocument::fileFilter()); +} + void EditorWindow::tabTitleChanged(QString title) { -- cgit v1.1