Bug 56872 - header and source file pairing in tabs and/or editor
Summary: header and source file pairing in tabs and/or editor
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-05 12:13 UTC by Steven T. Hatton
Modified: 2003-04-08 01:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven T. Hatton 2003-04-05 12:13:00 UTC
Version:           3.0.0a4 (using KDE 3.1.1)
Installed from:    SuSE
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.19-4GB

I'm fairly new to working with C++, and find the synchronization of header (.h) and source (.cpp) files to be a considerable burden.  One aspect of this is the need to switch back and forth between the two files when there are several files opened, or one of the two files defining the current class is closed.  Clearly this is not an insurmountable obstacle, but it is a significant interruption in my train of thought, and an source of error if I'm not careful to look closely to verify that I am indeed modifying the correct file.

I've noticed that, in most cases there is a source file with the same name as the class and a cpp extension, as well as header file of the same name and a .h extension.  It seems to be this lexical correspondence could be programmatically exploited so as to couple the source and header files so the associated tabs form a distinct adjacent pair. It's even conceivable that the contents of both files could be displayed in a split pane  window enabling the programmer to view both files simultaneously while editing, and to switch between the two buffers using a special key combination, etc.
Comment 1 Amilcar do Carmo Lucas 2003-04-05 15:45:43 UTC
You can use Edit > Switch header/implementation as a workaround.
It is maped to F12 key by default, but KATE (the text editor) also uses this
sortcut. So you probably have to use "Settings > Configure Shorcuts" to disable
the F12 kate action key so that it works in gideon to Switch header/implementation

Hope this helps
Amilcar 
Comment 2 Amilcar do Carmo Lucas 2003-04-05 16:10:37 UTC
My previous comment has already been reported has bug#56739 
 
Comment 3 Harald Fernengel 2003-04-08 01:26:24 UTC
F12 should work fine (after remapping the kate key), also check out the history part which lets 
you jump between files.