• Aucun résultat trouvé

Using the Settings notebook

Dans le document for OS/2® (Page 68-71)

Getting around

To open the Settings notebook, choose Project I View Settings from the menu bar.

Unlike other windows in Borland C++ for OS/2, you cannot minimize the Settings notebook. You can move the notebook so that you can see the IDE desktop as you change settings in the notebook.

You can close the Settings notebook in four ways:

.. Double-click the system menu button.

II Click the system menu button and choose Close.

II Press Alt+Spacebar and choose Close.

II Press AIt+F4.

Sections in the Settings notebook are graphically represented by divider tabs on the right edge of the notebook. Subsections are denoted by divider tabs on the bottom edge of the notebook. The subsection tabs change according to which section you're currently viewing. Because some sections don't have any subsections, there are no tabs along the bottom of the notebook in these sections.

Chapter 4, Settings notebook 59

You can move from one section or subsection to another by clicking on the divider tabs on the right and bottom edges of the

note-book.

Organization

You can go to any section or subsection in the notebook by simply clicking on the proper tab. The current section (and subsection, if applicable) is highlighted and raised to the top of the notebook.

You can move from page to page by clicking on the arrows in the lower-right corner of the notebook page. These move you back one page if you click the left arrow, or forward one page if you click the right arrow. If you run out of pages in your current section or subsection, you go to the next one. Some sections also have double arrows below the notebook; these let you move through the subsection tabs.

The notebook is made up of the following sections:

• Compiler contains settings that affect the behavior of the IDE compiler.

These settings are organized into the following subsections:

• Code Generation Options contains settings that directly affect how the compiler generates code.

• C++ Options contains settings that specify how the compiler should handle C++ code.

• Optimizations contains settings that let you set certain optimizations on and off.

• Source Options contains settings that let you specify what standard your code complies with, Borland C++, ANSI C, or Kernighan &

Ritchie.

• Messages lets you control the messages output by the IDE compiler.

• Names lets you specify the names of code segments.

• Make contains settings that affect the functioning of the IDE make process.

• Target contains settings that specify the type of executable the IDE produces.

• Linker contains settings that specify how an application should be linked, including which link libraries to use and whether to include debugging information. These settings are organized into three subsections:

• Link Settings lets you specify how the linker links your project.

• Link Libraries lets you specify which libraries you want to link with your application.

• Link Warnings lets you control the warnings output by the IDE linker.

• Librarian contains settings that affect the behavior of the built-in librarian.

• Debugger Options contains settings that affect the behavior of the inte-grated debugger. These settings are organized into the following subsections:

• Debugger Options contains settings that let you specify how the Borland C++ integrated debugger performs in the IDE environment.

• Disassembly View Local Options contains settings that let you customize the appearance of the integrated debugger disassembly view.

• Variables View Local Options contains settings that let you customize the appearance of the integrated debugger variables view.

• Call Stack View Local Options contains settings that let you customize the appearance of the integrated debugger call stack view.

• Watch View Local Options contains settings that let you customize the appearance of the integrated debugger watch view.

• Evaluator View Local Options contains settings that let you customize the appearance of the integrated debugger evaluator view.

• Inspector View Local Options contains settings that let you customize the appearance of the integrated debugger inspector view.

• Memory View Local Options contains settings that let you customize the appearance of the integrated debugger memory view.

• Register View Local Options contains settings that let you customize the appearance of the integrated debugger register view.

• File And Numeric View Local Options contains settings that let you customize the appearance of the integrated debugger file and numeric processor views.

• Directories contains settings that specify paths the IDE uses to locate header files, library files, source code, and so on.

• Environment contains settings that let you modify the "look and feel" of the IDE. These settings are organized into the following subsections:

Chapter 4, Settings notebook

• Preferences contains settings that let you specify the general behavior of the IDE environment.

• Desktop lets you specify what portions of the desktop you want saved and where on the desktop you want to position the SpeedBar.

• Editor contains settings that let you tailor the behavior of the IDE editor.

• Fonts lets you specify the font size and style Borland C++ uses in its windows.

61

Changing and saving settings

• Syntax Hilite lets you customize the colors and styles used to denote syntax elements when syntax highlighting is on.

• Transfer contains a list of programs that are included on the transfer item section of the Tools menu.

When you first view the Settings notebook, certain settings are already selected. These are the default settings, which Borland C++ uses if you do not make any changes.

You can change the default settings by making the desired changes and selecting the Project I Save menu command. When the Save Options dialog box opens, make sure the Project box is checked, and press OK.

You can also set Borland C++ to automatically save your settings at the end of each programming session. Open the Settings notebook, go to the Environment section, and tum to the Preferences subsection. Turn on the Project box in the Autosave section. Now any changes you make to the set-tings are automatically saved when you exit from Borland C++ or when you exit from a project.

Specific sections and subsections in the Settings notebook are referenced here by the same notation that is used for menu choices. For example, Com-piler I Code Generation Options refers to the Code Generation Options sub-section of the Compiler sub-section. Within this chapter, we do not specify that these choices are in the Settings notebook. But we do specify when a choice is a selection from a menu bar.

Unlike the DOS and Windows versions of Borland C++, where changes in IDE settings do not take effect until you leave the Option menus, changes made in the Settings notebook take effect as soon as you make them.

With the exception of the Transfer section, each page in the notebook has an Undo button and a Default button. Pressing the Undo button on a page restores that page to the state it was in when you opened the Settings note-book. Pressing the Default button on a page restores that page to the Borland-supplied default state.

Dans le document for OS/2® (Page 68-71)