diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-06 01:51:23 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-06 01:51:23 +0000 |
commit | bc9b353c3e6f44d61fea7b352ccca915ef62a5d8 (patch) | |
tree | eef725a502346abbb48079333f3fa348e7a8a369 | |
parent | 5e412b37578c8766514560ea40f043dfe87d4335 (diff) | |
download | rockbox-bc9b353c3e6f44d61fea7b352ccca915ef62a5d8.tar.gz 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.ui | 7 | ||||
-rw-r--r-- | utils/themeeditor/skindocument.cpp | 17 |
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 @@ | |||
272 | </property> | 272 | </property> |
273 | </action> | 273 | </action> |
274 | </widget> | 274 | </widget> |
275 | <tabstops> | ||
276 | <tabstop>fileTree</tabstop> | ||
277 | <tabstop>skinPreview</tabstop> | ||
278 | <tabstop>parseTree</tabstop> | ||
279 | <tabstop>fromTree</tabstop> | ||
280 | <tabstop>editorTabs</tabstop> | ||
281 | </tabstops> | ||
275 | <resources> | 282 | <resources> |
276 | <include location="resources.qrc"/> | 283 | <include location="resources.qrc"/> |
277 | </resources> | 284 | </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() | |||
54 | { | 54 | { |
55 | /* Spawning the "Are you sure?" dialog */ | 55 | /* Spawning the "Are you sure?" dialog */ |
56 | QMessageBox confirm(this); | 56 | QMessageBox confirm(this); |
57 | confirm.setWindowTitle(tr("Confirm Close")); | ||
57 | confirm.setText(title + tr(" has been modified.")); | 58 | confirm.setText(title + tr(" has been modified.")); |
58 | confirm.setInformativeText(tr("Do you want to save your changes?")); | 59 | confirm.setInformativeText(tr("Do you want to save your changes?")); |
59 | confirm.setStandardButtons(QMessageBox::Save | QMessageBox::Discard | 60 | confirm.setStandardButtons(QMessageBox::Save | QMessageBox::Discard |
@@ -109,21 +110,9 @@ void SkinDocument::codeChanged() | |||
109 | model->changeTree(editor->document()->toPlainText().toAscii()); | 110 | model->changeTree(editor->document()->toPlainText().toAscii()); |
110 | 111 | ||
111 | if(editor->document()->toPlainText() != saved) | 112 | if(editor->document()->toPlainText() != saved) |
112 | { | 113 | emit titleChanged(title + QChar('*')); |
113 | if(title.length() > 0 && title[title.length() - 1] != '*') | ||
114 | { | ||
115 | title.append('*'); | ||
116 | emit titleChanged(title); | ||
117 | } | ||
118 | } | ||
119 | else | 114 | else |
120 | { | 115 | emit titleChanged(title); |
121 | if(title.length() > 0 && title[title.length() - 1] == '*') | ||
122 | { | ||
123 | title.chop(1); | ||
124 | emit titleChanged(title); | ||
125 | } | ||
126 | } | ||
127 | } | 116 | } |
128 | 117 | ||
129 | void SkinDocument::save() | 118 | void SkinDocument::save() |