Bug 61757

Summary: Show enums in the class tree
Product: [Developer tools] kdevplatform Reporter: Dominik Haumann <haladrim>
Component: classbrowserAssignee: Hamish Rodda <rodda>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist CC: esigra, jr
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dominik Haumann 2003-07-28 14:24:58 UTC
Version:           3.0.0a5 (using KDE 3.1.9)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB-athlon

Hi,

if I define an enum in a class every entry is listet in the class as a member.
In principal that is corrct but its a mess when you have a big enum.
And enums usually /contain/ >= 5 entries.

So I think it would be much better to make a new subtree ("+") for an enum (as it is already with a struct).
(Btw. thats logic, too: a struct is a new type and an enum is one, too. in a way)

Thanks a lot,
Dominik Haumann, hala in irc
Comment 1 Daniel Franke 2004-02-02 20:37:38 UTC
I was also stunned by this behaviour. A sublist would really be preferable.
Comment 2 Oliver Kellogg 2004-08-20 07:58:27 UTC
In C++, enum types are very weak, i.e. enum literals are flattened out
as untyped constants.
Other languages (such as Pascal, Ada, and Java-1.5) do strict type
checking on enum literals.

The suggested change is a prerequisite for making Kdevelop less
C++ specific.
BTW, UML renders enum types this way too (Umbrello.)
Comment 3 Andreas Pakulat 2008-06-29 16:42:59 UTC
Hamish, whats the state of this in KDev4? I can't seem to get the class browser to show reasonable data for the current file, so I can't check wether this is fixed or not.
Comment 4 Hamish Rodda 2008-06-30 13:21:20 UTC
At the moment, kdev4 doesn't even show enums (iiuc).  So it's TODO anyway, and providing it in a subtree sounds like the way to go.
Comment 5 Aleix Pol 2013-03-31 01:29:57 UTC
moving to kdevplatform's classbrowser