Next: Using Smac Up: Browser Previous: Browser database

# Browser control

The browser is useful only for C, C++ and Java programmers. When used in C mode it is displayed with two subwindows (files and functions). In C++ mode (default), all subwindows appear (types, parents, children, files, methods, attributes, functions and globals).

In Java mode, functions and global variables windows are not displayed.

Loading files with C or C++ suffixes does not change the browser control mode. To change it, you must select the desired mode using the Modes menu.

In addition, ten buttons are available.

- The 'Dir/Rec' button is a toggle button to set a 'recursive' flag used during parsing directories. At start-up, if the environment variable XCORAL_PARSE_PATH is used, the recursive flag is true. In that case (Rec), the selected directories and all their subdirectories are parsed, otherwise only the files of the current directory are parsed (default).
- The 'Add' button is used to parse a selected file or directory via the file selector window, in the browser database.
- The 'Del' button is used to delete the selected file from the browser database. One file or all files can be deleted.
- The 'Decl-Impl' button is a toggle button to see Declaration or Implementation of selected methods.
- The 'Edit' button opens an edition area and loads the current selected object (same as a double click on that objet).
- The 'Close' button unmaps the browser control window and the visit window.
- The 'No pp-Prepr' button is a toggle button to indicate if the files are pre-processed before parsing. When the toggle button becomes 'Prepr' the pre-processor options are asked. See browser_set_pp() §7.3.12 page Smac function which indicates where the pre-processor is (default /lib/cpp).
- The 'Hide' button is used to hide/show some browser information.
- The 'Dump' button is used to save browser database in a file. The dump contains all showed or hiden information, including hide/show control.
- The 'Rest' button is used to restore browser database from a file.

Some additional information appear in types, methods, attributes and globals windows.

- [c/d] Constructor or destructor (method).
- [v] Virtual definition from parents (method).
- [V] First virtual definition (method).
- [L] Locally defined in current class (method, attribute).
- [d] Declared (type, method).
- [i] Implemented not inline (type, method).
- [I] Inline (method, function).
- [?] Not implemented (type, method).
- [s] Static (attribute, function, global).
- [n] Inheritance level (methods, because only one character is used, 9 is the greater displayed value of n).
- [T] Template (type, function)

In each subwindow of the browser control panel, you can type one character to move quickly to the first item starting with this character (case-sensitive).

Figure 3.1: Xcoral browser, C++ mode.

Figure 3.2: Xcoral browser, Java mode.

Next: Using Smac Up: Browser Previous: Browser database