[appwizard] Project name

Dominik Haumann dhdev at gmx.de
Thu Sep 18 17:11:03 UTC 2003


Hi there,

with the old version I could write things like ¹²³¼½½¬ as a project name!
I changed
-    QRegExp appname_regexp ("\\w+"); //Unicode version.
+    QRegExp appname_regexp ("[a-zA-Z][a-zA-Z0-9_]*");
now it works great.
Then I found this contradiction in kdevelop/doc/api/html/HighPriTasks.html:
    "Project name should be able to contain spaces."
What now? :)
I think this leads to complications because we have many different managers
and they all have to deal with it right! And classnames cannot have spaces
in a name.
The only thing we can do is to remove spaces like
"My 1 project" -> "My1Project" for the classnames...

I think we should remove this in the high priority task list.
Without spaces its much easier/better imho!

--
Dominik

Index: appwizarddlg.cpp
===================================================================
RCS file: /home/kde/kdevelop/parts/appwizard/appwizarddlg.cpp,v
retrieving revision 1.54
diff -u -p -r1.54 appwizarddlg.cpp
--- appwizarddlg.cpp    9 Sep 2003 20:44:01 -0000       1.54
+++ appwizarddlg.cpp    18 Sep 2003 15:02:07 -0000
@@ -178,7 +178,7 @@ AppWizardDialog::AppWizardDialog(AppWiza
 //    QRegExp appname_regexp ("[a-zA-Z][a-zA-Z0-9_]*"); //Non-Unicode version
     /* appname will start with a letter, and will contain letters,
        digits or underscores. */
-    QRegExp appname_regexp ("\\w+"); //Unicode version.
+    QRegExp appname_regexp ("[a-zA-Z][a-zA-Z0-9_]*");
     // How about names like "__" or "123" for project name? Are they legal?
     QRegExpValidator *appname_edit_validator;
     appname_edit_validator = new QRegExpValidator (appname_regexp,




More information about the KDevelop-devel mailing list