Bug 2832

Summary: Allow to delete classes and change project
Product: [Applications] kdevelop Reporter: Unknown <null>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: CONFIRMED ---    
Severity: wishlist CC: AArzamasov, esigra, greatbunzinni, justacec
Priority: NOR    
Version: 4.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Axel Pauli 2000-03-13 08:35:52 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: kdevelop
Version: 1.1
Severity: wishlist

Bugreport ID : 10:0712.03.00

Originator      : Axel Pauli
E-Mail          : Axel.Pauli@alcatel.de

Subject : deletion of a class in class browser is missing

Error Class     : change-request
Error Location  : I don´t know
Priority        : low
Bug Description ---------------------------

I want to remove a whole class from the class browser but I found no
possibility to do that.

How to repeat the error -------------------



Bugfix or Workaround ----------------------

When I remove the content in the source and header file it seems
that the class browser will ignore than this class.

System Information ------------------------

KDevelop version        : 1.1
KDE version             :
QT version              :
OS/Distribution         : Suse 6.3
Compiler                : g++

misc :
Comment 1 Justace Clutter 2003-08-06 05:17:39 UTC
I am using kdevelop 3.0.0a4 and was looking for thie same functionality
Comment 2 Russell Miller 2004-02-06 19:54:28 UTC
This bug is about four years old, is there any progress on addressing it?

Thanks.
Comment 3 Becheru Petru-Ioan 2004-12-24 08:18:02 UTC
If u want this then more people need to vote for it ;)
Comment 4 Becheru Petru-Ioan 2005-01-04 13:22:37 UTC
hey man this wish is 5(five) years old!! it is easy to implement (when u delete a class its definition should be deleted and the implementation of its methods should be deleted).A usefull think will a be check in the project to see if we declared somewhere a variable of this class and give an warning before deletion
Comment 5 Amilcar do Carmo Lucas 2005-01-09 19:23:05 UTC
> it is easy to implement
If it is so easy to implement, why don't you help us out and implement it ???
Comment 6 Jonas Jacobi 2005-01-09 23:55:14 UTC
Well it is easy to a certain extent. Just the deletion of all declaration/definition stuff can be done(as long as the parser got nothing wrong. if there are syntaxerrors somewhere, you will get wrong results) but then you have to decide what to do with the files etc.
Comment 7 Martin Weis 2006-05-03 11:50:46 UTC
Here is how to deregister a class:

You may delete the files and additionally you should check your automake-settings and delete the entry for the class file, otherwise you will get an error (no rule to make target class.cpp). That should do it.
Comment 8 Tristan Hoffmann 2008-03-20 21:24:45 UTC
So can this be closed with the solution from comment #7 ?
Comment 9 Andreas Pakulat 2008-06-29 15:06:30 UTC
Making this a bit more general, its basically about support for deleting a class from anywhere in the IDE and the IDE adapting the source files and eventually also the buildsystem.
Comment 10 Andreas Pakulat 2008-06-30 23:37:05 UTC
*** Bug 131486 has been marked as a duplicate of this bug. ***