#include <kurl.h>
+class KFileItem;
+class KFileItemList;
class KLineEdit;
/**
Q_OBJECT
public:
- explicit RenameDialog(const KUrl::List& items);
+ explicit RenameDialog(QWidget *parent, const KFileItemList& items);
virtual ~RenameDialog();
/**
* is part of the returned string. If the returned string is empty,
* then RenameDialog::errorString() should be used to show the reason
* of having an empty string (e. g. if the # character has
- * been deleted by the user, although more then one item should be
+ * been deleted by the user, although more than one item should be
* renamed).
*/
const QString& newName() const
protected slots:
virtual void slotButtonClicked(int button);
-private:
- /**
- * Returns the extension string for a filename, which contains all
- * file extensions. Version numbers like in "cmake-2.4.5" don't count
- * as file extension. If the version numbers follow after a valid extension, they
- * are part of the extension string.
- *
- * Examples (name -> extension string):
- * "Image.gif" -> ".gif"
- * "package.tar.gz" -> ".tar.gz"
- * "cmake-2.4.5" -> ""
- * "Image.1.12.gif" -> ".gif"
- * "Image.tar.1.12.gz" -> ".tar.1.12.gz"
- */
- static QString extensionString(const QString& name);
-
private:
bool m_renameOneItem;
KLineEdit* m_lineEdit;