Page 1 of 2
Tagging Feature : Doesn't Show Base Class Member
Posted: Thu Jul 22, 2010 8:04 pm
by aprilmot
Hi,
I have a base class and a derived class header files. Both the header files are in the same location which is added to the include path of tagging feature. I created an object of Derived Class, now when I place . after the derived class object only the member of Derived class are displayed, the base class members which are also applicable for Derived class object are not displayed.
Could you please let me know how to resolve this issue.
Re: Tagging Feature : Doesn't Show Base Class Member
Posted: Thu Jul 22, 2010 10:19 pm
by aprilmot
To be more specific on the problem.
I am learning FLTK Programming:
I am using CodeLite for learning FLTK.
I created a workspace and project with Tag setting of the workspace including the FLTK Folder.
Now when I write "box->" in the below mentioned program I am getting only member variables of Fl_Box class whereas I expect the member variables/functions of the base class Fl_Widget(Fl_Widget is the base class of Fl_Box) should also be displayed.
Is this possible in CodeLite.
If so is there any setting I have to do.
Code: Select all
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
int main(int argc, char **argv) {
Fl_Window *window = new Fl_Window(300,180);
Fl_Box *box = new Fl_Box(20,40,260,100,"Hello, World!");
box->box(FL_UP_BOX);
box->labelsize(36);
box->labelfont(FL_BOLD+FL_ITALIC);
box->labeltype(FL_SHADOW_LABEL);
window->end();
window->show(argc, argv);
return Fl::run();
}
Thank you
Dinesh
Re: Tagging Feature : Doesn't Show Base Class Member
Posted: Thu Jul 22, 2010 11:34 pm
by eranif
aprilmot wrote:Is this possible in CodeLite.
Yes it is possible and this is how it supposed to work.
Its probably an miss-configuration issue.
I will try and have a look it later on
Eran
Re: Tagging Feature : Doesn't Show Base Class Member
Posted: Sun Jul 25, 2010 6:03 pm
by aprilmot
Hi Eran,
Thank you, Please let me know if you need any settings or log files.
Thank you
Aprilmot
Re: Tagging Feature : Doesn't Show Base Class Member
Posted: Sun Jul 25, 2010 6:54 pm
by eranif
aprilmot wrote:I created a workspace and project with Tag setting of the workspace including the FLTK Folder
I downloaded and gave it a try, it looks like it is working for me (I can see Widget members)
I added 2 directories to the include paths of the parser:
C:\Users\eran\src\fltk-2.0.x-r7680
and
C:\Users\eran\src\fltk-2.0.x-r7680\fltk\compat
Where 'C:\Users\eran\src\fltk-2.0.x-r7680' is the directory where I installed FLTK
In addition, add:
to the 'settings -> tags settings -> advanced' tokens page
and perform full retag of the workspace
Eran
Re: Tagging Feature : Doesn't Show Base Class Member
Posted: Sun Jul 25, 2010 7:32 pm
by aprilmot
Hello Eran,
Thank you very much for your valuable time.
I tried the steps you have mentioned but unsuccessful.
I have attached the screen shot and the project workspace.
My OS is Windows XP
CodeLite Version : v.2.5.3.4075
FLTK : Version 1.3.
Codelite Installed location : D:\IDE\CodeLite
FLTK : D:\IDE\FLTK13
Sorry if I am disturbing you too much, I would like to setup my codelite properly so that the base member functions/variables are also displayed on the derived object.
Thank you very much.
Aprilmot
Re: Tagging Feature : Doesn't Show Base Class Member
Posted: Fri Aug 06, 2010 9:33 pm
by aprilmot
Dear Eran,
Sorry If I am disturbing you with this problem. I tried with the latest version V2.6.0 .4189 but still have this problem . I have attached the zipped workspace in the previous post. Could you please check and let me know if my configuration is not correct.
Thank you in Advance for your help.
Regards
Aprilmot
Re: Tagging Feature : Doesn't Show Base Class Member
Posted: Sat Aug 07, 2010 4:41 pm
by eranif
I downloaded FLTK 1.3 API, and in order to make code-completion to work as expected, you should
add the following paths to your parser search path (from: settings -> tags settings -> include files):
D:\IDE\FLTK13
AND
D:\IDE\FLTK13\FL
fltk.png
Eran
Re: Tagging Feature : Doesn't Show Base Class Member
Posted: Sat Oct 02, 2010 10:09 am
by aprilmot
Hello Iran,
I have installed the latest version 2.7 on Ubuntu 10.04(Lucid). Now Codelite shows the base class members also.
But when I place the mouse over the variables I expect the tool to show the data type of the variable. But now it is showing one small square box only.
I have enabled the showtip in the taggings setting, but still not able to get the data type of variables.
Regards
Aprilmot
Re: Tagging Feature : Doesn't Show Base Class Member
Posted: Sat Oct 02, 2010 10:56 am
by eranif
There is a small bug:
A tip for local variables is not supported yet - it should however, show tip for classes, members etc
Eran