One of the best ways to find your way around your source code is using the Source Navigator. The source navigator parses the active project's source code and organizes classes, functions, and variables in various ways.
Source navigator user interface
The Source Navigator window is divided into a tool bar and the main breakpoint display.
Source Navigator tool bar
Button | Description |
![]() |
Sorts the objects alphabetically. |
![]() |
Sorts the objects by type. |
![]() |
Sorts the objects by access (public, protected, private). |
![]() |
Groups objects by type (functions, classes, structures, variables). |
![]() |
Move the cursor to the statement where the object is defined. |
![]() |
Move the cursor to the statement where the object is declared. If more than one declaration exists, an arbitrary one is chosen. |
![]() |
Manually re-parses any changed files in the project. |
Source navigator display
The main part of the Source Navigator window an overview of the functions, classes, and variables of your application.
CrossStudio displays these icons to the left of each object:
Icon | Description |
![]() |
Structure or namespace A C or C++ structure or a C++ namespace. |
![]() |
C++ class A C++ class. |
![]() |
Private function A C++ member function that is declared private or a function that is declared with static linkage. |
![]() |
Protected function A C++ member function that is declared protected. |
![]() |
Public function A C++ member function that is declared public or a function that is declared with extern linkage. |
![]() |
Private variable A C++ member variable that is declared private or a variable declared with static linkage. |
![]() |
Protected variable A C++ member variable that is declared protected. |
![]() |
Public variable A C++ member variable that is declared public or a variable that is declared with extern linkage. |
Showing the Source Navigator window
To display the Source Navigator window if it is hidden, do one of the following:
- From the View menu, click Source Navigator.
—or—
- Type Ctrl+Alt+N.
—or—
- Right click the tool bar area to display the View menu.
- From the popup menu, click Source Navigator.
Using the source navigator
Parsing source files manually
To parse source files manually, do one of the following:
- From the Tools menu, click Source Navigator then Refresh.
—or—
- On the Source Navigator tool bar, click Refresh.
CrossStudio re-parses any changed files and updates the source navigator display with the changes. Progress information and any errors are sent to the Source Navigator Log in the Output window when parsing.
Grouping objects by type
You can group object by their type, that is whether they are classes, functions, namespaces, structures, or variables. Each object is placed into a folder according to its type
To group objects in the source browser by type, do one of the following:
- From the Tools menu, click Source Navigator then Group By Type.
—or—
- On the Source Navigator tool bar, click the arrow to the right of the Cycle Grouping button.
- From the dropdown menu, click Group By Type.