[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    Re: couple of bugs.
From:       Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date:       2000-03-15 13:56:45
[Download RAW message or body]


On Sun, 12 Mar 2000, Sheldon Lee Wen <leewsb@uleth.ca>wrote:
> Not sure if this is a bug but:
> 3: When clicking on a class under the CV tab the header file gets loaded
> under the "header/resources" tab/window but the cpp file doesn't get
> loaded
> under the "c/c++ files" tab/window. To change to that file you have to
> switch 
> to the "LFV" tab and click on the file directly. This is REALLY
> annoying.
> 

On Sun, 12 Mar 2000, Frank Nichols <frank@theNichols.net>wrote:
> I have the same problems, and while I like kdevelop in general, I am forced
> to go back to using C-Forge because of these "bugs". I tend to jump around
> in the code a lot while working and the CV view sometimes goes to the right
> place (header if header tab is selected, or source if source tab is
> selected) and sometimes it doesn't - I find it very frustrating!
> 

Available at my stand in  the KDevelop 'bazaar' is a patch to add a 'Go to
definition' option to the Class Viewer and Class Tool menus. It still won't load
the source file when you click on the class, only when you select this new menu
option, but it should be easier than going off to the LFV tab etc.

I think the main problem here is with C++ - there is no syntax to mark the
beginning of the class definition. In Objective-C there is a '@implementation'
keyword. Hence, this patch will take you to the start of the souce file with
C++, but it will take you directly to the '@implementation' line in
Objective-C.

Copy  kdevelop-1.1gotoclassdef.patch to the directory above KDevelop-1.1

 $ cd  kdevelop-1.1
 $ patch -p1 < ../kdevelop-1.1gotoclassdef.patch
 $ make
 $ make install

-- Richard
["kdevelop-1.1gotoclassdef.patch.gz" (application/x-gzip)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic