Feature #2119 2006-04-07 17:49

squizzz

swap header/source enchancement

Behaviour when "swap header/source" is triggered, but there is no corresponding file to be opened (e.g no "foo.h" while triggering swap on "foo.cpp").

Current behaviour: nothing happens.

Proposed behaviour:

If there is no corresponding file in project, but it is available on disk (within corresponding location) ask whether to add corresponding file to a project. If "yes" - file is added to the project and swap operation is executed (new file becomes currently edited file one). If "no" - nothing happens.

In case there is no corresponding file on disk ask if blank new one (with corresponding name) should be created. If "yes" - create one and add to the project. If "no" - nothing happens.

I guess there might be some problems with different file extensions (header might be *.h, *.hpp, *.hxx, there are other file types than C/C++ ones, etc) to handle this in a complex way, but even for just most popular "cpp/h" combo it would be great.

Thank you.

Category
Interface
Status
Closed
Close date
2006-05-16 11:22
Assigned to
 
dermeister 2006-04-08 18:13

Patch #985 implements this feature request.

squizzz 2006-04-08 19:40

Whoa... That was fast!

Thank you very much. :)

fuskyb 2006-04-24 20:34

How about a button for it too?

mandrav 2006-05-16 11:22

This feature has been implemented in SVN. Thank you.