So this isn't very exciting but I have a minor patch against the latest CVS on the web (attached) to change the wording of the save-before-close dialog to use verbs rather than generic yes-no answers, and . I did say it wasn't exciting (but, to be fair, it is the first time I've used PyQt).

<stupid question>
I assume that compliance with the KDE look-and-feel is considered A Good Thing? Is there any good Human Interface Guidelines document for KDE? The documents I could find at http://usability.kde.org/hig/ seem to be somewhat incomplete (by contrast the Gnome documentation seems to be rather good: http://developer.gnome.org/projects/gup/hig/2.0/ - but clearly an application using e.g. a Qt filepicker is never going to look like a Gnome/Gtk application).
</stupid question>

Right, now I just need to learn more PyQt and more about Veusz and I can try to do something more substantial...

--
"Sir: "Offence" is not confined to the religious. I take offence at "Rudolph the Red-Nosed Reindeer", "Jingle Bells" and all that they stand for; at ten-gallon hats and other symbols of American aggression; at slit-eyed black veils and other symbols of the oppression of women; at First Communion veils, and other symbols of the indoctrination of children. But I do not start a riot when I encounter them, nor try to get them banned by law. I mutter through gritted teeth and turn the other way.

There is a case to be made that all of us should try to avoid giving gratuitous offence to others. But how has our secular society been conned into allowing religious offence to jump the queue and claim special privileges?"

- Richard Dawkins (The Independent, 24th December 2004)
Index: windows/mainwindow.py
===================================================================
RCS file: /cvs/veusz/veusz/windows/mainwindow.py,v
retrieving revision 1.17
diff -u -r1.17 mainwindow.py
--- windows/mainwindow.py	3 Apr 2005 17:16:53 -0000	1.17
+++ windows/mainwindow.py	12 Apr 2005 21:11:55 -0000
@@ -253,13 +253,16 @@
 
         Returns qt.QMessageBox.(Yes,No,Cancel)."""
         
-        return qt.QMessageBox("Veusz",
-                              "Document is modified. Save first?",
-                              qt.QMessageBox.Warning,
-                              qt.QMessageBox.Yes | qt.QMessageBox.Default,
-                              qt.QMessageBox.No,
-                              qt.QMessageBox.Cancel,
-                              self).exec_loop()
+        mb = qt.QMessageBox("Veusz",
+                            "Document is modified. Save first?",
+                            qt.QMessageBox.Warning,
+                            qt.QMessageBox.Yes | qt.QMessageBox.Default,
+                            qt.QMessageBox.No,
+                            qt.QMessageBox.Cancel | qt.QMessageBox.Escape,
+                            self)
+        mb.setButtonText(qt.QMessageBox.Yes, "Save")
+        mb.setButtonText(qt.QMessageBox.No, "Discard")
+        return mb.exec_loop()
 
     def close(self, alsoDelete):
         """Before closing, check whether we need to save first."""

Répondre à