[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: NewClass-Dialog patch (fixes wrong paths)
From: "Stephan Diederich" <stephan.diederich () googlemail ! com>
Date: 2006-10-17 19:10:58
Message-ID: ef236d4b0610171210g157c21c2yc803dd1aa5c52b5b () mail ! gmail ! com
[Download RAW message or body]
Hi there,
currently the New-Class dialog keeps messing the paths up, as it
doesn't call "cleanDirPath" after assembling it ( projectDir +
activeDir + Filename. Especially if activeDir is something like
"../../otherDir"). Second, the dialog didn't use the path it generated
in the beginning and instead rebuilt the path at the end.
The attached patch tries to solve that problem through:
-calling QDir::cleanDirPath after assembling the path
-using exactly that assembled path to add the files to the project
(instead of creating a new)
Additionally it moves code for adding the files to the project from
"gen_implementation" to the generate() method. (this is not really
related to the problem and can be removed. It was just a bit strange
to find the code for adding the header to the project in the
gen_implementation method ;)
Patch was tested with current svn, autotools and qmake projects.
HTH,
Stephan
["new_class_fix_paths.diff.bz2" (application/x-bzip2)]
_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@barney.cs.uni-potsdam.de
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic