Bug 77307 - Code completion with object filter
Summary: Code completion with object filter
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Code completion (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-11 17:35 UTC by Miguel Tadeu
Modified: 2008-06-29 18:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example of how it yould look like (20.20 KB, image/jpeg)
2004-03-11 17:37 UTC, Miguel Tadeu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Tadeu 2004-03-11 17:35:27 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

The diference for the one we have now, is the separation of the methods/properties by object.
One example:
- You inherit a class KMyWidget from QWidget. 
- You declare a KMyWidget *myWidget
- When you do myWidget->
- Would apear a code completion list with 3 items( QObject, QWidget and KMyWidget )
- Inside each item would be the defined methods/properties for each class


An other thing that would help...a tooltip with the documentation( same comment used for documentation ) as you hilight a method/property in the list. This tooltip could also contain the method(s)/property signature as issued in 52748
Comment 1 Miguel Tadeu 2004-03-11 17:37:05 UTC
Created attachment 5172 [details]
Example of how it yould look like

Sorry about the drawing but....never was verry good at drawing ;)
Comment 2 ]X[ 2004-03-11 18:12:46 UTC
It also would be very good to see icons before the items such as :
Class
Method
Property
Signal
Slot
protected
private 
public
and so on ....

Well, my 2 cents ...
Comment 3 David Nolden 2006-05-24 05:33:23 UTC
The tooltip now is implemented in svn.
I don't think it would be very useful with that filter, because it would make the completion too complicated. Also the underlying completion-interface would not allow that right now.

Although in the case of QObject it would be useful, since that contains a bit too many attributes. :)

Realistic: I could add a filter for classes that should be excluded from the list.. like QObject
Comment 4 Hamish Rodda 2006-05-24 08:52:07 UTC
I think this should just wait until KDE 4, where the ktexteditor api covers sorting, filtering, grouping etc. in the editor component, and the application just has to pass the appropriate metadata in the completion model.
Comment 5 Andreas Pakulat 2006-12-30 16:13:51 UTC
Still valid in 3.4, but as Hamish already said this has to wait until 4.0
Comment 6 Andreas Pakulat 2008-06-29 18:21:44 UTC
we have all options at our hand in kdev4 and its working pretty well already.