The K Desktop Environment

Next Previous Table of Contents

5. Overview

Looking at KDevelop, the user interface can be described by it's logical separation: the main window, the treeview and the output window, surrounded by the menubar, toolbars and the statusbar. This section describes the purpose of each part of the interface, starting by the windows, followed by the bars and the functions they provide.

5.1 Main Window

The Main Window has three different modes.

In the Childframe Mode KDevelop will be one big window that can contain multiple child windows. These child windows can be either editable files or the help-browser. You can switch between the files by either pressing the corresponding button in the MDI-View-Taskbar or by pressing ALT-PgUp or ALT-PgDown.

In Toplevel Mode KDevelop itself will shrink to a small window just containing the menu and the toolbars. All child windows are floating on your desktop like any KDE App.

The Tab page mode looks similar to the Childframe Mode, but will display all childwindows in a tabset.

For a description of the Editor windows functionality, see chapter Working with the Editor, and for the Helpbrowser, you should look at section Using the Documentation Browser.

5.2 The Class Browser and Fileviewers

The Class Viewer

The Class Viewer (Classes) shows the classes of your project as well as global functions and variables. Opening the tree will show all member functions and members with symbols for attributes (private, protected and public, signals and slots), so you can see the properties of members visually without switching to the header file. Selecting the class name will open the according headerfile containing the class and set the cursor to the class declaration beginning. Selecting member functions will open the implementation file and place the cursor at the function header. For elements, KDevelop will look for the header file and place the cursor at the line the element is declarated. The classviewer also provides popup-menus that offer more specified options, see The Class Browser for more detailed information.

Mind that the Class Viewer does not display generated files like those generated by moc and uic as they get removed from the distribution as well as they are not present on a clean development tree.

The Logical File Viewer

The Logical File Viewer (Groups) allows sorting files by filters in groups. Individual groups can be added by the properties entry of the project menu or by a right click on the tree items. This allows a more specialized search for files that you want to access quickly, in the first place only showing project-included files. According to their Mime-type, the files will be opened when selected. You will like the LFV for things like selecting pixmaps- this will start KIconEdit (if installed on the system) in the Tools-window and opens the chosen picture.

The Real File Viewer

The Real File Viewer (Files) shows the project directory tree with all files, so you can edit non-project files or files hidden by the LFV like configure.in and Makefiles. Popup-menus also provide functions like adding or removing files to the current project.

The Documentation Tree

The Documentation Tree (Books) displays all available HTML-based documentation that is configured as books. Selecting a book will open the first page in the Browser window. Also, a popup-menu provides personal configuration for additional HTML-based documentation packages.

5.3 Output window

The Output window is separated as well into a messages window, a stdin/stdout window and a stderr window for the following necessities:

5.4 Menubar Commands

File Management and Printing

This section covers the functions that KDevelop provides about files; accessed via the File-menu in the menubar or by the according icons in the toolbar:

Editing Files

Here, the "Edit" menu and the according icons in the toolbar are covered which provide editing files. Also the editing functions are available via a context-menu in the editor.

View Configuration

The View-Menu covers closing and opening functions for windows and commands to enable/disable the tool- and statusbar as well as to jump errors in the code.

Creating and Maintaining Projects

This section describes functions that are available in the "Project"-menu and are supposed to cover the creation and maintaining of projects

Building Projects

This section describes the Build menu that covers all actions to be done with make or actions like rebuilding the project's online help or API documentation.

Calling Tools

The Tools-menu contains by default the entries for the following programs if installed: KDbg, KIconEdit and KTranslator. These are checked by the KDevelop installation program and inserted in the given order into the menu. Invoking a tool will open the "Tools"-window and start the selected program inside this window. The Tools menu can be edited by the Tools-entry in the Options-menu; see Configuring the Tools Menu.

Changing KDevelop's settings

The Options-menu contains all entries for invoking configuration dialogs with which you can change KDevelop's default settings. Major settings like those for the editor or printing have their own entries; general settings of KDevelop's behavior can be made with the KDevelop Setup dialog.

The Window Menu

The Window menu contains a list with all currently open files. This allows a quick switch to another file you're currently working on.

Managing Bookmarks

The Bookmarks menu is intended for adding and removing bookmarks you want to set in the current editing file. As KDevelop uses two editing windows, each one configures it's bookmarks separately.

Online Help

The Help-menu contains entries for navigating in the Helpbrowser as well as entries for library and online-documentation for the most recently used cases. Accessing additional online-documentation can be achieved with the DOC-tree in the treeview automatically opened (if Autoswitch is enabled) when changing to the Documentation Browser window.

5.5 Toolbar Items

KDevelop provides quick access to a various set of commands by it's toolbars. These are the standard and the browser toolbar. Both can be en-/disabled by the according menu entries in the "View" menu; also dragged out of the main window and replaced on each side of the working area.

The Standard Toolbar

The standard toolbar provides quick access to the most recently used functions for file processing and editing as well as building your application. The buttons execute the following commands from left to right:

The Browser Toolbar

The browser toolbar is another toolbar that provides a lot of useful commands for browsing files and the documentation. The toolbar contains:

5.6 Keyboard Shortcuts

This section handles the predefined as well as the standard values for configurable keyboard commands used in the KDevelop IDE. You should see section Changing Keyboard Shortcuts for a detailed explanation how to change assigned values to commands.

Shortcuts for Text Processing

Cursor Movements


one letter to the left                           Left Arrow
one letter to the right                          Right Arrow
one word to the left                             CTRL+Left Arrow
one word to the right                            CTRL+Right Arrow
one line upwards                                 Up Arrow
one line downwards                               Down Arrow
to the beginning of the line                     POS 1
to the end of the line                           END
one page up                                      PageUp
one page down                                    PageDown
to the beginning of the current file             CTRL+PageUp
to the end of the current file                   CTRL+PageDown

Text Selections


one letter to the left                           SHIFT+Left Arrow
one letter to the right                          SHIFT+Right Arrow
one word to the left                             CTRL+SHIFT+Left Arrow
one word to the right                            CTRL+SHIFT+Right Arrow
one line upwards                                 CTRL+Up
one line downwards                               CTRL+Down
to the beginning of the current line             CTRL+POS 1
to the end of the current line                   CTRL+END
one page up                                      SHIFT+PageUp
one page down                                    SHIFT+PageDown
to the beginning of the current file             CTRL+SHIFT+PageUp
to the end of the current file                   CTRL+SHIFT+PageDown

Inserting and Copying Text, Tabulators


en/disable insertmode                            INS
copy selection to the clipboard                  CTRL+C, CTRL+INS
insert text from the clipboard                   CTRL+V, SHIFT+INS
delete current line                              CTRL+K
insert line after current line                   END, then Enter
insert line before current line                  POS 1, then Enter
undo editing step                                CTRL+Z
redo an undo step                                CTRL+Y
tabulator                                        TAB

Deleting Text


delete letter left of cursor position            Backspace
delete letter right of cursor position           Delete
delete selected text                             Select text, then Backspace or Delete

Searching Text within the Editor


open Goto Line... dialog                         CTRL+G
open Find Text dialog                            CTRL+F
repeat last search                               F3
open Search and Replace dialog                   CTRL+R

open Search in Files dialog (grep)               CTRL+ALT+F
search marked Text with Grep                     SHIFT+F2

locate next error                                F4
locate previous error                            SHIFT+F4

Searching Text with the Documentation Browser


search selected editor text in documentation     F2
search selected browser text in documentation    F2
display next search hit on the same page         F3

search selected browser text within project                      SHIFT+F2

Browser Shortcuts


previous page                                    ALT+ Left Arrow
next page                                        ALT+ Right Arrow

Managing Bookmarks


add bookmark                                     CTRL+ALT+A
clear bookmark list                              CTRL+ALT+C

Shortcuts for Toolbar Symbols


Symbol "Open File"                               CTRL+O
Symbol "Save File"                               CTRL+S
Symbol "Print File"                              CTRL+P
Symbol "Undo"                                    CTRL+Z
Symbol "Redo"                                    CTRL+Y
Symbol "Cut"                                     CTRL+X
Symbol "Copy"                                    CTRL+C
Symbol "Paste"                                   CTRL+V
Symbol "Compile File"                            CTRL+F8
Symbol "Make"                                    F8
Symbol "Execute"                                 F9
Symbol "Execute with Arguments"                  ALT+F9
Symbol "Back"                                    ALT+Left Arrow, if browser opened
Symbol "Forward"                                 ALT+Right Arrow, if browser opened
Symbol "Search Marked Text"                      F2

Window Management


Goto Next Window                                 ALT+PgUp
Goto Next Window                                 ALT+PgDown
Switch between Header/Source                     F12

Press F12 to switch between corresponding header and source files

To switch to a certain menu, press ALT plus the underlined letter in the menu title, e.g. Tools would be Alt+T

Shortcuts to Compilation Processes


Compile current sourcefile                       CTRL+F8
Build current project target                     F8
Execute target after Build process               CTRL+F9
Execute target with Arguments                    ALT+F9
Stop the current process                         F10

Next Previous Table of Contents