[rkward-cvs] SF.net SVN: rkward: [1041] trunk/rkward/rkward/misc

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Jan 2 12:54:57 UTC 2007


Revision: 1041
          http://svn.sourceforge.net/rkward/?rev=1041&view=rev
Author:   tfry
Date:     2007-01-02 04:54:57 -0800 (Tue, 02 Jan 2007)

Log Message:
-----------
krazy fixes

Modified Paths:
--------------
    trunk/rkward/rkward/misc/multistringselector.h
    trunk/rkward/rkward/misc/rkcanceldialog.h
    trunk/rkward/rkward/misc/rkobjectlistview.h
    trunk/rkward/rkward/misc/rksaveobjectchooser.cpp
    trunk/rkward/rkward/misc/rksaveobjectchooser.h
    trunk/rkward/rkward/misc/xmlhelper.h

Modified: trunk/rkward/rkward/misc/multistringselector.h
===================================================================
--- trunk/rkward/rkward/misc/multistringselector.h	2007-01-02 12:46:43 UTC (rev 1040)
+++ trunk/rkward/rkward/misc/multistringselector.h	2007-01-02 12:54:57 UTC (rev 1041)
@@ -32,7 +32,7 @@
 class MultiStringSelector : public QWidget {
 Q_OBJECT
 public:
-	MultiStringSelector (const QString& label, QWidget* parent = 0);
+	explicit MultiStringSelector (const QString& label, QWidget* parent = 0);
 
 	~MultiStringSelector ();
 

Modified: trunk/rkward/rkward/misc/rkcanceldialog.h
===================================================================
--- trunk/rkward/rkward/misc/rkcanceldialog.h	2007-01-02 12:46:43 UTC (rev 1040)
+++ trunk/rkward/rkward/misc/rkcanceldialog.h	2007-01-02 12:54:57 UTC (rev 1041)
@@ -22,8 +22,8 @@
 class RCommand;
 
 /**
-A simple modal dialog which can be shown during a lengthy operation (which has to be carried out synchronously) and allows the user to cancel said operation. Connect a signal to the complete ()-slot to signal the operation is done. Returns QDialog::Accepted if succesful or QDialog::rejected, if the user pressed cancel before the operation was completed.
-If you specify an associated_commands in the constructor, RKCanceldialog, if cancelled, will also take care of cancelling that RCommand.
+A simple modal dialog which can be shown during a lengthy operation (which has to be carried out synchronously) and allows the user to cancel said operation. Connect a signal to the complete ()-slot to signal the operation is done. Returns QDialog::Accepted if successful or QDialog::rejected, if the user pressed cancel before the operation was completed.
+If you specify an associated_commands in the constructor, RKCanceldialog, if cancelled, will also take care of canceling that RCommand.
 Use the static member showCancelDialog () to make it a single-liner.
 @author Thomas Friedrichsmeier
 */

Modified: trunk/rkward/rkward/misc/rkobjectlistview.h
===================================================================
--- trunk/rkward/rkward/misc/rkobjectlistview.h	2007-01-02 12:46:43 UTC (rev 1040)
+++ trunk/rkward/rkward/misc/rkobjectlistview.h	2007-01-02 12:54:57 UTC (rev 1041)
@@ -36,7 +36,7 @@
 class RKObjectListView : public QListView {
 	Q_OBJECT
 public:
-	RKObjectListView (QWidget *parent);
+	explicit RKObjectListView (QWidget *parent);
 	
 	~RKObjectListView ();
 

Modified: trunk/rkward/rkward/misc/rksaveobjectchooser.cpp
===================================================================
--- trunk/rkward/rkward/misc/rksaveobjectchooser.cpp	2007-01-02 12:46:43 UTC (rev 1040)
+++ trunk/rkward/rkward/misc/rksaveobjectchooser.cpp	2007-01-02 12:54:57 UTC (rev 1041)
@@ -28,7 +28,7 @@
 
 #include "../debug.h"
 
-RKSaveObjectChooser::RKSaveObjectChooser (QWidget *parent, bool allow_overwrite, const QString &initial, QString prompt) : QWidget (parent) {
+RKSaveObjectChooser::RKSaveObjectChooser (QWidget *parent, bool allow_overwrite, const QString &initial, const QString &prompt) : QWidget (parent) {
 	RK_TRACE (MISC);
 
 	RKSaveObjectChooser::allow_overwrite = allow_overwrite;
@@ -37,8 +37,7 @@
 
 	QVBoxLayout *layout = new QVBoxLayout (this);
 
-	if (prompt.isNull ()) prompt = i18n ("Object name to save to");
-	QLabel *label = new QLabel (prompt, this);
+	QLabel *label = new QLabel (prompt.isNull () ? i18n ("Object name to save to") : prompt, this);
 	layout->addWidget (label);
 
 	name_edit = new QLineEdit (this);

Modified: trunk/rkward/rkward/misc/rksaveobjectchooser.h
===================================================================
--- trunk/rkward/rkward/misc/rksaveobjectchooser.h	2007-01-02 12:46:43 UTC (rev 1040)
+++ trunk/rkward/rkward/misc/rksaveobjectchooser.h	2007-01-02 12:54:57 UTC (rev 1041)
@@ -28,7 +28,7 @@
 class RKSaveObjectChooser : public QWidget {
 	Q_OBJECT
 public:
-	RKSaveObjectChooser (QWidget *parent, bool allow_overwrite, const QString &initial, QString prompt = QString::null);
+	RKSaveObjectChooser (QWidget *parent, bool allow_overwrite, const QString &initial, const QString &prompt = QString::null);
 	~RKSaveObjectChooser ();
 
 	QString validizedSelectedObjectName ();

Modified: trunk/rkward/rkward/misc/xmlhelper.h
===================================================================
--- trunk/rkward/rkward/misc/xmlhelper.h	2007-01-02 12:46:43 UTC (rev 1040)
+++ trunk/rkward/rkward/misc/xmlhelper.h	2007-01-02 12:54:57 UTC (rev 1041)
@@ -54,7 +54,7 @@
 @param parent the element whose children to return
 @param name the tag-name to look for (if none given, will return all children)
 @param debug_level level of debug message to generate in case of failure
- at returns a list of child elements (you'll have to call toElement () on the list items), in the order of occurence in the XML file */
+ at returns a list of child elements (you'll have to call toElement () on the list items), in the order of occurrence in the XML file */
 	XMLChildList getChildElements (const QDomElement &parent, const QString &name, int debug_level);
 
 /** like getChildElements, but tries to retrieve exactly one element. Throws an error, if no such element, or more than one such element was found.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list