code completion help...
christopher j bottaro
cjb at cs.utexas.edu
Fri Feb 2 14:29:13 GMT 2001
hello,
i've been writing some code to do code completion in kdevelop, but i've run
into some gui problems.
so far it works like this, take for instance you got in your cpp editor view
the following code:
void CClassParser::emptyStack()
{
while( !lexemStack.isEmpty() )
delete lexemStack.pop();
}
and then you type...
void CClassParser::emptyStack()
{
while( !lexemStack.isEmpty() )
delete lexemStack.pop();
store->
}
well, a little QListBox appears filled with all the methods declared in
CClassStore (store's type). my prob is i want to list box to appear directly
under the cursor, not in the upperleft corner of the CEditWidget. i can't
figure it out. i tried grabbing XPos and YPos from kWriteView, but
appearently they don't refer to where the cursor is.
also, how can i set the QListBox to:
1) have a frame (without a titlebar, close box, i.e. not a top level widget)
2) be resizable
3) not make the kWriteView lose focus when you click on an item in the list
box. to elaborate, i don't want the cursor to disappear from the editor
widget when i highlight an item in the listbox with the mouse.
thanks so much for the help. maybe if (i ever) finish this and its quality
is usable, i can submit it for review and i can be put in a future release of
kdevelop?
so far its pretty fast at determining what scope the cursor is in and
populating and displaying the listbox after typing "." or "->".
christopher
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list