Bug 83141

Summary: Creating a new class does not open the files in the editor automaticly
Product: [Applications] kdevelop Reporter: Simon Ejsing <simon>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: LO    
Version: 3.0.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Simon Ejsing 2004-06-10 09:39:13 UTC
Version:           3.0.3 (using KDE KDE 3.2.2)
Installed from:    Gentoo Packages
OS:                Linux

When I create a new class using the class wizard, I have to manualy open the generated cpp and h files. Which to me seems pointless.

When I create a new class, I'm going to edit it afterwards, so the files could just as well be opened automaticly (as when creating a new file in the editor).

I'm using Kate part editor.

(I really can't believe this havn't been reported before? However, I can't find any bugs regarding this)
Comment 1 Alexander Dymo 2004-06-19 14:02:52 UTC
This is not a bug, this is a feature. KDevelop does not open files you create.
Comment 2 Simon Ejsing 2004-06-21 08:24:19 UTC
Why did you close it?

This seems very relevant to me, and I also reported it as a feature... You say that KDevelop does not open files I create, however it does when I create a file with the "New file wizard", but it doesn't open autogenerated files.

Given the fact that two people have already voted on this (and that's not including me), it seems very unappropriate to just close it as WONTFIX...

If you still mean this is not a valid feature request close it again, but I'm reopening it.
Comment 3 Steven T. Hatton 2004-06-21 09:26:16 UTC
As one of the voters I guess I should put my $0.02 US in on this.  If the objective is to close out bugs, I say let it stay closed for the time being.  If it wasn't originally categorized as a wishlist item, and that's why it was closed.  Then I say leave it as a wishlist item.  There are far more important features that need attention - IMO.  

This (feature) is just one of the little things I find unintuitive.
Comment 4 Daniel Franke 2004-06-21 11:15:26 UTC
Another cent from the other voter: each time creating a new class using the wizard I'm surprised that the files don't pop up - I sometime spent up to 5 seconds waiting and wondering ...
Comment 5 Jeroen Dierckx 2004-06-21 15:42:34 UTC
I voted for this too, cause it is indeed very unintuitive, and it shouldn't ask more than five minutes to fix it. And it was in kdevelop before, don't know why they removed the "feature".

P.S. In my case, it's actually in the qmake manager that the new files aren't opened automatically, but I guess it's the same bug
Comment 6 Simon Ejsing 2004-06-22 09:22:32 UTC
I could fix this myself if someone could tell me how to get the partController() object from within the CppNewClassDialog::ClassGenerator::generate() method...
Comment 7 Hendrik Kueck 2004-11-27 02:08:33 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Hendrik Kueck 2004-11-27 02:13:29 UTC
I just added my vote as well. I find this one of the most annoying things in KDevelop(which I love overall!) at this point. Every time I create a new class I expect it to open in the editor, then curse and start searching it in the file  or class tree. Even after using KDevelop for a long while I cant get used to this. There really should be an option to allow for this instant opening behaviour. 

Comment 9 Jens Dagerbo 2004-11-27 15:52:09 UTC
No, there really shouldn't be an _option_. IMHO, KDevelop should simply open the newly created files. I'm pretty sure the user intends to edit them further in almost any reasonable scenario.

Maybe there is a technical reason this isn't as easy as it would seem though, I haven't checked.
Comment 10 arne anka 2005-06-27 15:17:55 UTC
today it's 2005-06-27 -- in other word a bug that's annoying, unreasonable and easy to fix stays open for over year now only because sombody thinks it should remain as default behaviour, ignoring the request to make it at least configurable (although as said befor it's not really intuitive) and thus imposing his point of view to other users.
nice.
just my 2c.
Comment 11 Amilcar do Carmo Lucas 2005-06-27 15:32:45 UTC
Arne, PLEASE provide a patch.
Comment 12 arne anka 2005-06-28 09:26:48 UTC
i'm no experienced c++programmer and i never really looked into the kdevelop code, but well, if you give me some hints were to find the code for the wizzard (and maybe how to open files with katepart) i'll try to look into next weekend.

if there's to much work and you classifiy a request thus as of minor importance, wouldn't it be better to introduce a status to reflect this?
Comment 14 Eray Ozkural 2006-01-25 22:04:38 UTC
Amilcar, I'm an old hacker of the ClassViewPart.

This behavior is contrary to the behavior of every IDE
that I know of, and it is a useless "feature", because 
99% of the time people will actually want to edit a file 
they have created. Please fix this bug, or I can fix it 
in the SVN but it's a pain to compile kdevelop (I know :D )
Comment 15 Jens Dagerbo 2006-10-17 00:53:16 UTC
Fixed in 3.4 branch.