Bug 61757 - Show enums in the class tree
Summary: Show enums in the class tree
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: classbrowser (show other bugs)
Version: git master
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Hamish Rodda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-28 14:24 UTC by Dominik Haumann
Modified: 2013-03-31 01:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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