summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-06 01:51:23 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-06 01:51:23 +0000
commitbc9b353c3e6f44d61fea7b352ccca915ef62a5d8 (patch)
treeeef725a502346abbb48079333f3fa348e7a8a369
parent5e412b37578c8766514560ea40f043dfe87d4335 (diff)
downloadrockbox-bc9b353c3e6f44d61fea7b352ccca915ef62a5d8.tar.gz
rockbox-bc9b353c3e6f44d61fea7b352ccca915ef62a5d8.tar.bz2
rockbox-bc9b353c3e6f44d61fea7b352ccca915ef62a5d8.zip
Theme Editor: Altered the SkinDocument class' handling of tab titles and added a title to the confirm close dialog box, changed tab order in the EditorWindow class
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26607 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--utils/themeeditor/editorwindow.ui7
-rw-r--r--utils/themeeditor/skindocument.cpp17
2 files changed, 10 insertions, 14 deletions
diff --git a/utils/themeeditor/editorwindow.ui b/utils/themeeditor/editorwindow.ui
index 21152dad75..b5e6c9d228 100644
--- a/utils/themeeditor/editorwindow.ui
+++ b/utils/themeeditor/editorwindow.ui
@@ -272,6 +272,13 @@
</property>
</action>
</widget>
+ <tabstops>
+ <tabstop>fileTree</tabstop>
+ <tabstop>skinPreview</tabstop>
+ <tabstop>parseTree</tabstop>
+ <tabstop>fromTree</tabstop>
+ <tabstop>editorTabs</tabstop>
+ </tabstops>
<resources>
<include location="resources.qrc"/>
</resources>
diff --git a/utils/themeeditor/skindocument.cpp b/utils/themeeditor/skindocument.cpp
index 3fb7d4871b..aada24daac 100644
--- a/utils/themeeditor/skindocument.cpp
+++ b/utils/themeeditor/skindocument.cpp
@@ -54,6 +54,7 @@ bool SkinDocument::requestClose()
{
/* Spawning the "Are you sure?" dialog */
QMessageBox confirm(this);
+ confirm.setWindowTitle(tr("Confirm Close"));
confirm.setText(title + tr(" has been modified."));
confirm.setInformativeText(tr("Do you want to save your changes?"));
confirm.setStandardButtons(QMessageBox::Save | QMessageBox::Discard
@@ -109,21 +110,9 @@ void SkinDocument::codeChanged()
model->changeTree(editor->document()->toPlainText().toAscii());
if(editor->document()->toPlainText() != saved)
- {
- if(title.length() > 0 && title[title.length() - 1] != '*')
- {
- title.append('*');
- emit titleChanged(title);
- }
- }
+ emit titleChanged(title + QChar('*'));
else
- {
- if(title.length() > 0 && title[title.length() - 1] == '*')
- {
- title.chop(1);
- emit titleChanged(title);
- }
- }
+ emit titleChanged(title);
}
void SkinDocument::save()