Codewarrior™ Development Studio 8/16-Bit Ide User'S Guide: Revised: August 28, 2007
Codewarrior™ Development Studio 8/16-Bit Ide User'S Guide: Revised: August 28, 2007
Codewarrior™ Development Studio 8/16-Bit Ide User'S Guide: Revised: August 28, 2007
Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. CodeWarrior is a trademark or registered trademark of Freescale Semiconductor, Inc. in the United States and/or other countries. All other product or service names are the property of their respective owners. Copyright 20052007 by Freescale Semiconductor, Inc. All rights reserved. Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. Freescale Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Typical parameters that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including Typicals, must be validated for each customer application by customer's technical experts. Freescale Semiconductor does not convey any license under its patent rights nor the rights of others. Freescale Semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part.
How to Contact Us
Corporate Headquarters Freescale Semiconductor, Inc. 7700 West Parmer Lane Austin, TX 78729 U.S.A. World Wide Web Technical Support
http://www.freescale.com/codewarrior http://www.freescale.com/support
Table of Contents
I Introduction
1 8/16-Bit IDE Users Guide Overview 13
Release Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Licensing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 CodeWarriorU.com . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Manual Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Figure Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Keyboard Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
17
II Projects
3 Working with Projects 25
About Projects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Project Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Build Targets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Using the Startup Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Loading Previous Projects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Accessing Tutorials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Start Using CodeWarrior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Managing Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Custom Project Stationery. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Subprojects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Strategies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
8/16-bit IDE Users Guide
3
Table of Contents
Project Window
39
About the Project Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40 Project Window Pages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 Files Page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 Link Order Page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 Targets Page. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 File, Group, Layout, and Target Management . . . . . . . . . . . . . . . . . . . . . . . . . .46 Build-Target Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
53
Dockable Windows
59
About Dockable Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 Working with Dockable Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 Dock Bars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
Workspaces
69
III Editor
8 The CodeWarrior Editor 75
Editor Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 Editor Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 Interfaces Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 Functions Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 Markers Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 Document Settings Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 Version Control System Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 Other Editor Window Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79
Table of Contents
Path Caption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 File Modification Icon. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Text Editing Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Line and Column Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Pane Splitter Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
83
Text Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Symbol Editing Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Punctuation Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Code Completion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Code Completion Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Code Completion Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
97
Finding Interface Files, Functions, and Lines. . . . . . . . . . . . . . . . . . . . . . . . . . . 97 Finding Interface Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 Locating Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Going Back and Forward . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Using Markers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 Remove Markers Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 Symbol Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
103
Single-File Find . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Single-File Find and Replace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Multiple-File Find and Replace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 In Folders. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 In Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 In Symbolics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 In Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 Search Results Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Text-Selection Find . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 Regular-Expression Find. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Using the Find String in the Replace String . . . . . . . . . . . . . . . . . . . . . . . . 125
8/16-bit IDE Users Guide
5
Table of Contents
Remembering Sub-expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125 Comparing Files and Folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 Comparison Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 File Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .129 Folder Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132
IV Browser
12 Using the Browser 137
Browser Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137 Browser Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .138 Browser Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .140 Browser Contextual Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .140
143
Class Browser window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143 Classes pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .149 Member Functions pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .151 Data Members pane. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152 Source pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .153 Status Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .153
155
Multiple-Class Hierarchy Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .156 Single-Class Hierarchy Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .158 Browser Contents window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159 Symbols window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .161 Symbols toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .162 Symbols pane. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .162 Source pane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .162
163
Table of Contents
The New Member Function Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 The New Data Member Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
17 Linkers
181
205
IDE Preferences Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 General Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 Build Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 Concurrent Compiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 IDE Extras . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
8/16-bit IDE Users Guide
7
Table of Contents
Plugin Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .212 Shielded Folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .213 Source Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .215 Editor Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .218 Code Completion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .218 Code Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .220 Editor Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222 Font & Tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .224 Text Colors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .226
231
Target Settings Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .231 Target Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .233 Target Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .234 Access Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235 Build Extras . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238 File Mappings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240 Source Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .241 External Builds Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .242 Editor Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .244 Custom Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .244
247
A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247 B. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .249 C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .251 D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252 E. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .254 F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257 G-I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259 K-L. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .261 O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263 P . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263 R. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .264 S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265
8
Table of Contents
VII Menus
22 IDE Menus 277
Windows Menu Layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 File Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 Edit Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 View Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 Search Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 Project Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282 Window Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284 Help Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
23 Menu Commands
285
A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292 F. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296 H . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 K-L . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 M-N . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 P-Q . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301 S. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
8/16-bit IDE Users Guide
9
Table of Contents
Index
313
10
I
Introduction
This section contains these chapters: 8/16-Bit IDE Users Guide Overview CodeWarrior IDE Overview
11
12
1
8/16-Bit IDE Users Guide Overview
This chapter of the CodeWarrior Development Studio 8/16-Bit IDE Users Guide is a high-level description of documentation and training resources for learning to use the IDE. CodeWarriorU.comfree, Internet-based instruction for CodeWarrior products. Use this resource to learn more about the CodeWarrior Integrated Development Environment (IDE) and computer programming. Manual Conventionssome common typographical conventions used in this manual and other Freescale documentation.
Release Notes
Please read the release notes. They contain important last-minute additions to the documentation. The Release Notes folder is located on the CodeWarrior CD.
Licensing
Web-based licensing is available. It is a server licensing solution that generates FlexLM v8 or later based license keys automatically over the world wide web through a registration/activation process. You can register and activate permanent, node-locked license keys. Freescale products are shipped to customers with registration cards that contain a unique registration number. Products that ship with a one year annual support certificate will also have a unique registration number. The registration website can be reached by selecting the Help > Register Product menu command from the IDEs main menu. Registration from the website collects the registration code and verifies it against the correct product and gathers contact information. An email will be sent to you with the License Authorization Code and instructions. In the IDE you can select Help > License Authorization to display the License Authorization dialog box. Figure 1.1 shows the License Authorization dialog box.
13
Enter the License Authorization Code and select an ethernet address from the Node lock ID for license dropdown list, if one exists. After entering the authorization code, the CodeWarrior IDE will make an HTTP call to the Freescale licensing server with the activation code and generate the permanent license keys. The resulting license keys are automatically updated into the license.dat text file of the CodeWarrior product executing the authorization. You can also manually edit the license.dat file per instructions provided in the License_Install.txt file in the root folder of your CodeWarrior installation path. If the IDE evaluation period expires prior to activation, you will have to manually edit the license.dat file.
14
CodeWarriorU.com
CodeWarriorU.com offers a wide range of free, Internet-based courses in a wide variety of computer programming topics. Use this supplement to the CodeWarrior documentation to acquire more experience using CodeWarrior products. CodeWarriorU.com courses include: Text-based instruction Expert instructors A variety of self-assessment and study materials Interactive message boards for communicating with instructors and students CodeWarriorU offers many courses, such as: Learn Programming in C For beginning programmers. Introduction to Java For beginning and experienced programmers. Take this course to learn how to create Java software. Introduction to C++ For beginning and experienced programmers. Take this course to learn how to create C++ software. Intermediate C++ For programmers who completed the Introduction to C++ course and have basic C++ programming knowledge. Take this course to learn the foundation needed to create more sophisticated C++ software. To find out more, visit this web site: http://www.CodeWarriorU.com/
15
Manual Conventions
This section explains conventions in the 8/16-Bit IDE Users Guide.
Figure Conventions
The CodeWarrior IDE employs a virtually identical user interface across multiple hosts. For this reason, illustrations of common interface elements use images from any host. However, some interface elements are unique to a particular host. In such cases, clearly labelled images identify the specific host.
Keyboard Conventions
The CodeWarrior IDE accepts keyboard shortcuts, or key bindings, for frequently used operations. For each operation, this manual lists corresponding key bindings by platform. Hyphens separate multiple keystrokes in each key binding.
16
2
CodeWarrior IDE Overview
The CodeWarrior Integrated Development Environment (IDE) provides an efficient and flexible software-development tool suite. This chapter explains the advantages of using the CodeWarrior IDE and provides brief descriptions of the major tools that make up the IDE. This chapter contains these sections: Development Cycle CodeWarrior IDE Advantages IDE Tools Overview
Development Cycle
A software developer follows a general development process: Begin with an idea for new software Implement new idea in source code Have the IDE compile source code into machine code Have the IDE link machine code and form an executable file Correct errors (debug) Compile, link, and release a final executable file. The stages of the development cycle correspond to one or more chapters in this manual. Figure 2.1 on page 18 depicts the development cycle as a flowchart. Table 2.1 on page 19 details the different stages and their corresponding sections in this manual.
17
Start
Create
Link
No
Debug
Legend Release Start or End of the process Development Cycle stage End
Decision stage
Process flow
18
Table 2.1 Stage descriptions and related sections in the IDE Users Guide Stage
Create
Description
Create the initial project, source files, and build targets.
Related Sections
Projects Preferences and Target Settings Menus
Edit
Transform your project into working source code, organize interface elements, and correct errors. Compile the source code into machine format that operates on the target host. Link the separate compiled modules into a single binary executable file. Release for public use.
Editor Browser
Compile
Link
Release
19
Purpose
Manipulate items associated with a project
Editor
Uses color to differentiate programminglanguage keywords Allows definition of custom keywords for additional color schemes Automatically verifies parenthesis, brace, and bracket balance Allows use of menus for navigation to any function or into the header files used by the program
Search Engine
Finds a specific text string Replaces found text with substitute text Allows use of regular expressions Provides file-comparison and differencing functionality
20
Purpose
Manage and view program symbols
Build System
Uses compiler to generate object code from source code Uses linker to generate final executable file from object code Uses symbolics database to provide source-level debugging Supports DWARF (1.1 and 2.0) and the HIWAVE object file format
Debugger
21
22
II
Projects
This section contains these chapters: Working with Projects Project Window Working with Files Dockable Windows Workspaces
23
24
3
Working with Projects
This chapter explains how to work with projects in the CodeWarrior IDE. Projects organize several file types associated with a computer program: Text filesfiles that contain any kind of text. Sample text files include Read Me files and source files. Source filesfiles that contain source code only. Sample source files include C++ files and assembler files. Library filesfiles that contain special code designed to work together with a particular programming language or operating environment. Generated filesfiles created by the IDE while building or debugging the project. This chapter contains these sections: About Projects Using the Startup Dialog Box Managing Projects
25
About Projects
The IDE uses build targets and a Project Manager to organize source code and support files. This section explains both components.
Project Manager
The IDE gathers source, library, resource, and other files into a project. The Project Manager manipulates the information stored in the project. Figure 3.1 diagrams Project Manager interactions with IDE tools. Table 3.1 explains the interactions. Figure 3.1 Project Manager
Search Engine
Source Browser
Symbolics Information
The build system generates symbolics information for a program. The debugger generates a database from the symbolics information.
Editor
Compiler
Linker
Debugger
Build System
Legend
Main IDE tool Development flow
Support tool
Additional information
26
Compiler
Synchronizes a symbolics database of program functions, variables, and values with source code Coordinates internal data flow between symbolics database and source browser Determines files to include in build process
Linker
Sends compiled object code to linker for conversion to executable code Sets the link order for processing compiled object code
Debugger
Matches debugging data to source code Updates symbolics database to reflect changing values during a debug session
Build Targets
For any given build, the project manager tracks: files and libraries link order dependencies compiler, linker, and other settings The IDE stores this information in a build target. As the project changes, the project manager automatically updates the build target. The project manager also coordinates program builds, using the build-target information to call the appropriate tools in the correct order with the specified settings. For example, the project manager directs the build system to compile only those source files that rely on information in a modified file. Note that all of this operation happens automatically. The software developer does not need to remember makefile syntax or semantics, and never has to debug makefile syntax errors. The IDE simplifies the process, making it easier to develop software.
27
File #3
Object Code
Settings
Browser Data
Note that both build targets share File #1 and File #2.
File #4
Object Code
Settings
Browser Data
...
28
The CodeWarrior software starts, and immediately the Startup dialog appears (see Figure 3.3). You can create a new project at this point, or access any of the other features available from this dialog box. To prevent the Startup dialog box from appearing when you start the CodeWarrior software, uncheck the Display on Startup checkbox. The next time you start the software, only the IDE screen appears. You can still access the Startup dialog box by selecting File > Startup Dialog after starting the IDE. Figure 3.3 Startup Dialog Box
29
30
Accessing Tutorials
Click the Run Getting Started Tutorial button to access the library of tutorials available with the CodeWarrior IDE. Tutorials cover subjects such as starting a project in C, using Processor Expert, Device Initialization, and using the assembler.
Managing Projects
Use these tasks to manage projects: Create a new project Open existing project Save project Close project Inspect an open project Print an open project
31
Opening Projects
Use the IDE to open previously saved projects. CodeWarrior projects normally end in the Freescale CodeWarrior Project extension of .mcp. Open projects to add, remove, or modify files to enhance the capabilities of the final executable file. 1. Choose File > Open. 2. Find and select the project to open. 3. Click Open. The IDE opens the project and displays its Project window. NOTE The IDE prompts you for confirmation to update projects created in older CodeWarrior versions.
Saving Projects
The IDE automatically saves projects and updates project information after performing these actions: Closing the project Applying or saving a preference or target-setting option Adding, deleting, or compiling a file Editing group information Removing or compacting object code Quitting the IDE
32
Printing Projects
The Project Manager can print a complete listing of the Files, Designs, Link Order, or Targets tab currently displayed in the Project window. 1. Select the Project window. 2. Click the Files, Designs, Link Order, or Targets tab. 3. Choose File > Print. 4. Set the print options in the print dialog. 5. Print the Project window contents. The IDE prints the contents of the selected tab.
33
Closing Projects
Use the Close command to close a CodeWarrior project file at the end of a programming session. The IDE automatically saves changes to a closed project. 1. Select the Project window to close. 2. Close the project. Choose File > Close. Click the close box in the Project window. Advanced projects deal with these topics: Custom project stationerymodified project stationery tailored to advanced programming needs. Subprojectsprojects within projects. Strategiesobtaining the maximum benefit from advanced projects.
34
35
3. From the Example Projects dialog, select the project to use as a stationery base project. 4. Enter a name for the project in the Project name field. This renames the example project file. 5. Enter a location in the Location field, or click on Set to browse to the location to which to copy the project. 6. Click on Create Project. The software creates your project based on the example you selected. You can modify and use this project in whatever way you choose.
Subprojects
A subproject is a project nested inside a parent project. Subprojects organize source code for the IDE to build prior to building the parent project. For example, the IDE builds subprojects for an applications plug-ins before building the parent project for the application itself.
36
Opening Subprojects
The IDE can open a subproject from the parent Project window. Use this feature to more conveniently open the subproject. 1. Double-click the subproject in the Files view of the parent Project window. 2. The IDE opens the subproject in its own Project window.
Strategies
Projects can organize files into build targets or subprojects. Each of these structures has its own advantages. Choose the structure best suited to the programming need.
Build Targets
Build targets organize collections of files inside a project. Build targets have these advantages: Using multiple build targets inside a single project allows access to all source code for that project. Build targets organize different collections of build settings for a single project. Each project accommodates up to 255 build targets. Exception: HC08 supports only one build target.
Subprojects
Subprojects incorporate separate, standalone projects into parent projects. Subprojects have these advantages: Subprojects separate distinct parts of a complex program, such as an application and its various plug-ins.
37
38
4
Project Window
This chapter explains how to work with the Project window in the CodeWarrior IDE. The Project window provides these features: view and modify all files created for use with a computer program. manipulate files arranged by type. control the way the IDE handles files. This chapter contains these sections: About the Project Window Project Window Pages File, Group, Layout, and Target Management Build-Target Management
39
Project Window
About the Project Window
40
Project Window
About the Project Window
Icon
Explanation
Use to specify the connection to your MCU.
Click to view and edit the settings for the current build target. You can also display settings for a target selected in Targets tab. Click to check the modification dates of each project file and mark those files that need compilation. Click to compile and link all modified and manually selected (touched) project files.
Debug
Run
Click to compile and link the current build target, then run the program.
Project Inspector
Files
Click to display the Files page. This page shows a list of files in the project and their associated properties. Click to display the Link Order page. This page shows the link order of files in the current build target. Click to display the Targets page. This page shows a list of all build targets, subprojects, and target-linking information.
Link Order
Targets
41
Project Window
Project Window Pages
Files Page
The Files page shows information about individual files in a project. The Files page shows information about these file types: Text filesfiles that contain any type of text. Sample text files include Read Me files and source files. Source filesfiles that contain source code only. Sample source files include C++ files and assembler files. Library filesfiles that contain special code designed to work together with a particular programming language or operating environment. Table 4.2 explains the items in the Files page. Table 4.2 Files pageitems Item
Touch
Icon
Explanation
Indicates the touch status of each file. Click in this column to toggle touching a file. Touching a file manually selects it for compilation during the next build. Click the Touch icon to sort files by touch status. Displays a hierarchical view of the file and group names used by the project. Click the column title to sort files by name. Double-click a file to open it. Use the hierarchical controls to display and hide group contents. Displays the size, in bytes or kilobytes, of the compiled executable object code for files and groups. Click the column title to sort files by code size. Displays the size, in bytes or kilobytes, of non-executable data in the object code for files in the project. Click the column title to sort files by data size.
File
Code
Data
42
Project Window
Project Window Pages
Table 4.2 Files pageitems (continued) Item
Target
Icon
Explanation
Indicates whether each file belongs to the current build target. Click in this column to toggle inclusion status. A black dot indicates that a file is included with current build target. Click the Target icon to sort files by inclusion status. The Target column appears only when the project has more than one build target. Displays debugging status. Click in this column to toggle generation of debugging information for a file or group. Click the Debug icon to sort files by debugging status. Displays icons representing the current file status in a versioncontrol system. The Checkout Status column appears only when the project uses a version-control system to manage files. Click to display a list of files inside a group or a list of
Debug
Checkout Status
Interfaces
File Management
The project window lists all files found for all targets. If access paths are different for each target and a file with the same name exists in each path, the project window will list the occurrence of each file. For example, if two header files named example.h are used with two targets (TargetA and TargetB) and exist in separate locations for each target, you will see two entries of
43
Project Window
Project Window Pages
example.h in the project window. If both targets use the same file in one location, then a single entry will appear in the project window. Select a file in the Files tab of the project window and view the Project Inspector window to reveal the path for the selected file, and which targets use the file. You can also select a file and click the right mouse button to display a context menu. Select Open in Windows Explorer to display the path. If a black dot is present in the target column for a listed file, then it is in the current target. You can select this dot to toggle whether or not to include this file with the current target. Double-click a source file to open it in the editor. If you enable the Save project entries using relative paths option in the Target Settings panel, file locations will be stored using a relative path from the access paths defined in the Access Paths panel. If disabled, the IDE remembers project entries only by name. This can cause unexpected results if two or more files share the same name. In this case, researching for files by selecting the Project > Re-search for Files menu command could cause the IDE to find the file in a different access path. NOTE If you use source files with the same name in different locations, you should enable the Save project entries using relative paths option.
Duplicate file names can also appear in the Files tab of the project window if a file is not found on one of the access paths. This can happen if an access path has been removed from the User Paths group in the Access Paths target settings panel. When the access path is removed, a duplicate appears in the project window. The duplicate entry remains displayed until the access path is restored. If a project with several targets (for example Debug and Release target) uses the same file, that file is shown as a single entry. If you remove the access path for that file, then a duplicate entry will appear in the file list. This duplicate represents a missing file for the current target. The second file entry is still available for the other target. Restore the access path and choose Project > Re-search for Files to remove the duplicate entry in the list. The Project > Re-search for Files command speeds up builds and other project operations. The IDE caches the location of project files after finding them in the access paths. Re-search for Files forces the IDE to forget the cached locations and re-search for them in the access paths. This command is useful if you moved several files and you want the IDE to find the files in their new locations. If the Save project entries using relative paths option is enabled, the IDE does not reset the relative-path information stored with each project entry, so re-searching for files looks for source files in the same location. If the files are not there, the IDE only re-searches for header files. To force the IDE to also re-search for source files, choose the Project > Reset Project Entry Paths menu command. If the Save project entries using relative paths option is disabled, the IDE re-searches for both header files and source files.
44
Project Window
Project Window Pages
The Reset Project Entry Paths command resets the location information stored with each project entry and forces the IDE to re-search for project entries in the access paths. This command does nothing if the Save project entries using relative paths option is disabled. NOTE If the IDE is unable to locate or resolve the location of project files, a Rescued items folder will appear. The IDE tries to locate the missing files and creates new references. This can happen when project data information, access paths, or other location settings in target settings panels are missing or have been compromised, for example, if the location of a project and related data directory have changed. One way this can happen is if a project has been committed to a source repository by one person and checked out to a different location by another person and a new project data folder is created.
Explanation
To update the modification dates of files stored in a project, click the checkmark icon. Use the Synchronize Modification Dates command to update files modified outside of the CodeWarrior IDE, perhaps by a third-party editor that cannot notify the CodeWarrior IDE of changes. To update version-control status information, click the Pencil icon.
Synchronize Status
45
Project Window
File, Group, Layout, and Target Management
Targets Page
The Targets page presents information about the build targets in a project. Use this page to create, manage, or remove build targets. Different build targets can store different IDE settings. For example, two build targets can handle the same project. One build target handles debugging the software, while the other build target handles building the software for final release. Table 4.4 explains items in the Targets page. Table 4.4 Targets page items Item
Targets
Explanation
Displays all build targets and subprojects that the IDE processes to create a binary file. These icons denote build-target status: active build target
Link
46
Project Window
File, Group, Layout, and Target Management
Removing Files/Groups/Layouts/Targets
The Remove command deletes files, groups, layouts, and build targets from the Project window. Removing files from the Files tab removes them from the project itself and from all build targets that use the files. Removing a file from the Link Order, Segments, or Overlays tab only removes the file from the current build target.
Moving Files/Groups/Layouts/Targets
Reposition files, groups, layouts, or build targets in the Files, Design, Link Order, or Targets pages with the cursor. 1. Select one or more files, groups, layouts, or build targets to move with the pointer. 2. Drag the selected items to a new position in the current page, using the focus bar as a guide. 3. Release the mouse button. The IDE repositions the selected files, groups, layouts, or build targets to the new location.
47
Project Window
File, Group, Layout, and Target Management
NOTE
In the Link Order page, repositioning files changes the link order that the Make command uses to build the final executable file.
Renaming Files/Groups/Targets
The Rename command renames files, groups, or build targets in the project.
Rename files
1. Open the file to rename. 2. Choose File > Save As. 3. Type a new filename in the Name text box. 4. Click Save. The IDE saves the file under the new name. The new filename appears in the Project window. Subsequent modifications affect the renamed file, leaving the original file intact.
48
Project Window
File, Group, Layout, and Target Management
49
Project Window
Build-Target Management
Build-Target Management
These tasks help you manage build targets: Create a build target. Remove a build target. Set the default build target. Rename a build target. Configure build-target settings.
50
Project Window
Build-Target Management
51
Project Window
Build-Target Management
The linker used to combine object code and produce a binary file The pre-linker and post-linker options that further process the object code The name assigned to a build target Follow these steps to configure build-target settings. 1. Choose Edit > targetname Settings. 2. Select Target Settings from the Target Setting Panels list. 3. Specify target options as desired. 4. Save the new options The panels available in the Target Settings Panels list update to reflect the choices in the Target Settings panel.
52
5
Working with Files
This chapter explains how to work with files in the CodeWarrior IDE. Most computer programs use these file types: Text filesfiles that contain any type of text. Example text files include Read Me files and source files. Source filesfiles that contain source code only. Example source files include C++ files and assembler files.
Managing Files
These tasks manage files: Create a new file. Open an existing file. Save a file. Close a file. Print a file. Revert a file to a previously saved state.
53
TIP
Use the Customize IDE Commands window to add the New Text File menu command to the File menu. Adding this menu command reduces the process of creating a new text file to one step: select File > New Text File. See Customizing the IDE for more information about using the Customize IDE Commands window.
54
Saving Files
Use the Save command to save source files to ensure their continued existence between development sessions. Choose File > Save. NOTE If the file has no title, a save dialog appears. Type a filename and specify a location for the file, then click Save.
55
Closing Files
The Close command closes open source files. Close editor windows to close a file. 1. Select an editor window to close. 2. Close the file window. Choose File > Close, or Click the close box. NOTE The IDE displays an alert if the file is modified. The alert asks whether to save changes to the file.
56
Reverting Files
Use the Revert command to replace the current file with its previously saved version. 1. Choose File > Revert. 2. Click OK in the Revert changes to file dialog.
57
58
6
Dockable Windows
This chapter explains how to work with dockable windows in the Windows-hosted CodeWarrior IDE. Use dockable windows to do these tasks: Organizeattach, or dock, various windows to the edges of the screen for quick access. Groupdock windows of the same type to create a single window with multiple tabs, where each tab represents one of the original docked windows. NOTE The dockable windows feature is available in Multiple Document Interface (MDI) mode only. This feature is not available in Floating Document Interface (FDI) mode. Toggle the Use Multiple Document Interface option in the IDE Extras preference panel to change between these two modes.
This chapter contains these sections: About Dockable Windows Working with Dockable Windows Dock Bars
59
Dockable Windows
About Dockable Windows
Characteristics
Attached to the left, right, top, or bottom edge of the client area restricted to the client area resizable has a dock bar instead of a title bar
Floating
Rests above all docked windows and MDI child windows movable outside the client area, like a floating palette has a thin title bar does not have Minimize or Maximize buttons
MDI Child
Normal child window of the client area, when running in MDI mode restricted to the client area
Docked window
60
Dockable Windows
Working with Dockable Windows
Table 6.2 explains the difference between dockable windows and non-dockable windows. In this table, the term non-modal refers to a window that does not require your attention before allowing the IDE to proceed with other operations. Table 6.2 Differences between dockable and non-dockable windows Window Type
Dockable
Required Criteria
All of these: non-modal resizable maximizable
Sample Windows
Thread Project Component Catalog
Non-dockable
NOTE
The default setting for project windows is to dock to an edge of the client area. You can undock these windows. Compound windows that have more than one pane dock as a group. You cannot separately dock individual panes from these windows. For example, you can dock the Thread Window, but you cannot dock the Stack Crawl pane separately from the Thread Window.
61
Dockable Windows
Working with Dockable Windows
The window docks to an edge of the client area. You can resize the docked window or move it to a different edge of the client area.
Dockable Windows
Working with Dockable Windows
3. Dock subsequent windows to the same edge as the first window. Each additional docked window appears as a tab inside the first docked window. Click a tab to view its contents. The frontmost tab appears in bold font. Figure 6.2 shows two projects represented as tabs in a single docked window. Figure 6.2 Two projects in a single docked window
63
Dockable Windows
Working with Dockable Windows
Undocking a Window
Use a contextual menu to undock a window from an edge of the client area to a floating window or MDI child window. 1. Right-click the tab inside the docked window that represents the window you want to undock. A contextual menu appears. Figure 6.3 Contextual menu
2. Choose Floating or MDI Child from the contextual menu. Floatingundock the window so that it becomes a floating window MDI childundock the window so that it becomes an MDI child window of the client area The window undocks and becomes the chosen window type. Alternately, double-click the tab to undock the corresponding window to a floating window.
Floating a Window
Use a contextual menu to float a docked window or MDI child window. 1. Right-click the tab in the docked window or the title bar of the MDI child window. A contextual menu appears. 2. Choose Floating from the contextual menu. NOTE The Floating command appears in the contextual menu for floatable windows only.
The window becomes a floating window (that you can drag outside the client area). Alternately, double-click the tab in a docked window to float its corresponding window. 64
Dockable Windows
Working with Dockable Windows
Unfloating a Window
Use a contextual menu to dock a floating window or make it an MDI child window. 1. Right-click the title bar of the floating window. A contextual menu appears. 2. Choose Docked or MDI Child from the contextual menu. Dockeddock the floating window MDI childunfloat the window so that it becomes an MDI child window The window unfloats and becomes the chosen window type. Alternately, drag the floating window to an edge of the client area to dock it.
65
Dockable Windows
Dock Bars
Dock Bars
A docked window has a dock bar instead of a title bar. Use the dock bar to perform these tasks: move the docked window to a different edge of the client area collapse or expand view of the docked window close the docked window Figure 6.4 shows a dock bar. Figure 6.4 Dock Bar
66
Dockable Windows
Dock Bars
67
Dockable Windows
Dock Bars
68
7
Workspaces
This chapter explains how to work with workspaces in the CodeWarrior IDE. Use workspaces to do these tasks: Organizesave the state of all windows onscreen for later reuse Migrate across computerstransfer your workspace from one computer to another This chapter contains these sections: About Workspaces Using Workspaces
About Workspaces
A workspace stores information about the current state of the IDE. This information consists of the size, location, and the docked state (Windows) of IDE windows. If you save a workspace during an active debugging session, the workspace also stores information about the state of debugging windows. The IDE can use a default workspace, or it can use a workspace that you create. The IDE works with one workspace at a time. You can save and re-apply a workspace from one IDE session to the next.
Using Workspaces
Use menu commands to perform these workspace tasks: save a new workspace open an existing workspace close the current workspace
69
Workspaces
Using Workspaces
1. Choose Edit > Preferences. The IDE Preferences window opens. 2. Select IDE Extras in the IDE Preference Panels list. The IDE Extras preference panel appears. 3. Enable the Use default workspace option. Checkedthe IDE saves its state at the time you quit, then restores that state the next time you launch the IDE Uncheckedthe IDE always launches with the same default state: no windows visible
Saving a Workspace
Save a workspace to store information about the current state of onscreen windows, recent items, and debugging. 1. Arrange your workspace. Move windows to your favorite positions and start or finish a debugging session. 2. Choose File > Save Workspace. A Save dialog box appears. 3. Enter a name for the current workspace NOTE Add the extension .cww to the end of the workspace name, for example, myworkspace.cww. This extension helps you readily identify the workspace file. The Windows-hosted IDE requires this extension to recognize the file as a CodeWarrior workspace.
4. Save the workspace to a location on your hard disk. The IDE now uses your saved workspace. In subsequent programming sessions, you can open the workspace.
Opening a Workspace
Open a workspace to apply its settings to the IDE. 1. Choose File > Open Workspace. An Open dialog box appears.
70
Workspaces
Using Workspaces
2. Open the workspace. Use this dialog box to navigate your hard disk and select a workspace file. These files end in the .cww extension. The IDE opens the selected workspace and applies its settings.
4. Save the workspace to a location on your hard disk. The IDE saves a copy of the current workspace under the name you specified.
Closing a Workspace
Close the current workspace after you finish working with it. 1. Choose File > Close Workspace. 2. The IDE closes the current workspace. NOTE You cannot close the default workspace, however, the IDE Extras preference panel contains an option that determines whether the IDE uses the default workspace.
71
Workspaces
Using Workspaces
72
III
Editor
This section contains these chapters: The CodeWarrior Editor Editing Source Code Navigating Source Code Finding and Replacing Text
73
74
8
The CodeWarrior Editor
This chapter explains how to work with the editor in the CodeWarrior IDE. Use the editor to perform these tasks: Manage text filesthe editor includes common word-processing features for creating and editing text files. Sample text files include Read Me files and release notes. Manage source filesthe editor includes additional features for creating and editing source files. The IDE processes source files to produce a program. This chapter contains these sections: Editor Window Editor Toolbar Other Editor Window Components
75
Editor Window
Use the editor window to create and manage text files or source files. The window contains these major parts: Editor toolbar Text-editing area Line and column indicator Pane splitter controls Figure 8.1 on page 76 shows the editor window. Table 8.1 on page 77 explains the items in the editor window. Figure 8.1 Editor window
76
Icon
Explanation
Displays a list of referenced interface files or header files for the source file.
Functions Menu
Markers Menu
Displays a list of available Version Control System (VCS) commands. Choose a command to apply to the source file. Displays the complete path to the file.
Path Caption
This icon indicates a file with modifications not yet saved. Text Editing Area Line and Column Indicator Pane Splitter Controls Shows the text or source-code content of the file. Displays the current line and column number of the text-insertion cursor
77
Editor Toolbar
Use the editor toolbar to complete these tasks: Open interface and header files Find function definitions Set and clear markers Modify file formats Control syntax coloring Execute version-control operations Determine a files save state This section explains how to expand and collapse the toolbar, and how to perform each toolbar task.
Interfaces Menu
The Interfaces menu lists the source files included in the current source file. See Finding Interface Files for information on navigating source code with the Interfaces menu.
Functions Menu
The Functions menu lists the functions (routines) defined in the current file. See Locating Functions for information on navigating source code with the Functions pop-up.
Markers Menu
The Marker menu lists markers placed in the current file. Use markers to scroll to specific items in source code and find code segments by intuitive names. See Using Markers for information on navigating source code with Markers.
78
79
Path Caption
The Path caption shows the path to the active file.
The
80
81
82
9
Editing Source Code
This chapter explains how to edit source code in the CodeWarrior IDE. The IDE provides these features to help you edit source code: Select and indent textthe editor can select text by line, routine, or rectangular selection. The editor also handles text indentation. Balance punctuationthe editor can find matching pairs of parentheses, brackets, and braces. Most programming languages, such as C++, produce syntax errors for punctuation that lacks a counterpart. Complete codethe IDE can suggest ways to complete the symbols you enter in a source file This chapter contains these sections: Text Manipulation Punctuation Balancing Code Completion
Text Manipulation
Use these tasks to manipulate text files: Select text Overstrike text Use virtual space Indent text This section explains how to perform each task.
83
Lines
Follow these steps to select a line of text: Triple-click anywhere on a line, or Click the right-pointing cursor in the left margin of the line.
Multiple lines
Follow these steps to select multiple lines of text: Drag the cursor over several lines of text and release, or Position the cursor at the beginning of a selection range, then Shift-click the end of the selection range to select all text between the two points, or Drag the right-pointing cursor to select lines of text.
Entire routines
Follow these steps to select an entire routine: 1. Hold down the Shift key. 2. Choose a function name from the Function list menu.
Overstriking Text
Use the Overstrike command to toggle between text insertion and text overwriting mode when entering text. Press the Ins key to toggle overstrike mode.
84
85
Punctuation Balancing
Balance punctuation to ensure that each opening parenthesis, bracket, or brace has a corresponding closing counterpart. This section explains how to balance punctuation.
Balancing Punctuation
Use the Balance option when editing source code to make sure that every parenthesis (( )), bracket ([ ]), and brace ({ }) has a mate. 1. Position the cursor between the suspect punctuation. 2. Check for the matching punctuation. Choose Edit > Balance OR Double-click the parenthesis, bracket, or brace character to check for a matching character. From a text insertion point, the editor searches forward until it finds a parenthesis, bracket, or brace, then it searches in the opposite direction until it finds the matching punctuation. When double-clicking on a parenthesis, bracket, or brace, the editor searches in the opposite direction until it finds the matching punctuation. When it finds a match, it highlights the text between the matching characters. If the insertion point is not enclosed or if the punctuation is unbalanced, the computer beeps.
86
To toggle automatic punctuation balancing, follow these steps: 1. Select Edit > Preferences. This opens the IDE Preferences window. 2. In the IDE Preference Panels list, select Editor Settings. 3. In the Other Settings area of Editor Settings, select or clear the Balance While Typing checkbox.
87
Code Completion
Use code completion to have the IDE automatically suggest ways to complete the symbols you enter in a source file. By using code completion, you avoid referring to other files to remember available symbols. C/C++ Code Completion will function more effectively when Language Parser is selected for the Generate Browser Data From option in the Build Extras target settings panel for a project. Java Code Completion is not affected by this setting.
88
Complete Code
Alt-.
89
NOTE
To dismiss the Code Completion window after it automatically opens, press the Esc key or click outside the active editor window.
1. Choose Edit > Preferences. 2. Select the Code Completion preference panel in the IDE Preference Panels list. 3. Disable the Automatic Invocation option. Clearing this option prevents the IDE from automatically opening the Code Completion window. 4. Save your preferences. Click the Save or Apply button.
90
Icon
Explanation
Lists available variables and methods or functions along with their corresponding return types or parameters. This list changes based on the context of the insertion point in the active editor window. Icons help distinguish items in the list. Click to toggle display of Documentation pane for programming languages that support it. Drag to resize the Code Completion list and the Documentation pane. Displays summary information or documentation for the selected item in the Code Completion list. This pane appears only for programming languages that support summary information or documentation.
Documentation pane
Icon
Code Type
Method
Function
Namespace
Global Variable
None
Language Keyword
Package
Local Variable
Variable
Constant
91
Action
Select the previous item Select the next item Scroll to the previous page Scroll to the next page
6. Use the keyboard to refine the Code Completion list. The Code Completion list updates as you add or delete characters in the active editor window. Continue adding characters to narrow the list, or delete existing characters to broaden the list. Press the Backspace key to delete characters.
92
93
94
95
96
10
Navigating Source Code
This chapter explains how to navigate source code in the CodeWarrior IDE. Navigate source code to accomplish these tasks: Find specific itemsthe editor finds interface files, functions, and lines of source code. Go to a specific linethe editor can scroll to a specific line of source code. Use markersthe editor allows labelling of specific items of text. These labels, or markers, provide intuitive navigation of text. Read this chapter to learn more about typical tasks for navigating source code. This chapter contains these sections: Finding Interface Files, Functions, and Lines Going Back and Forward Using Markers Symbol Definitions
97
Locating Functions
Find functions to expedite source-code editing. Most source files contain several functions that divide a complicated task into a series of simpler tasks. The editor allows scrolling to individual functions within the current source file. This section explains how to find functions.
98
Going to a Line
Use the Goto Line command to navigate to a specific source line in an editor window if you know its number. Lines are numbered consecutively, with the first line designated as line 1. The Line Number control at the bottom of the editor window shows the line number where the text insertion point is positioned. 1. Open the Line Number window. Click the Line and Column Indicator control in bottom left corner of editor window, or Choose Search > Go To Line 2. Type a line number in the Line Number text box. 3. Click OK. NOTE If a line number does not exist, the insertion point jumps to the last line of the source file.
99
Using Markers
Markers behave like labels in the editor, identifying specific parts of source code. Use these tasks to work with markers: Add markers to a source file Navigate to a marker Remove some or all markers from a source file
Explanation
Displays a list of all markers in the current source file. Click to remove all selected markers. Click to close the Remove Markers window without applying changes. Click to close the Remove Markers window and apply changes.
Done button
100
Navigating to a Marker
Once you add a marker, you can use the Marker menu to return to it later. 1. Select the marker name from the Marker menu. 2. The editor window scrolls to display the selected marker.
101
Symbol Definitions
You can find a symbol definition in your projects source code. Supported online reference viewers include HTMLHelp for Windows. TIP You can also use the browser to look up symbol definitions.
102
11
Finding and Replacing Text
This chapter explains how to work with the find-and-replace features in the CodeWarrior IDE. This chapter contains these sections: Single-File Find Single-File Find and Replace Multiple-File Find and Replace Search Results Window Text-Selection Find Regular-Expression Find Comparing Files and Folders
Single-File Find
Use the Find window to search for text within a single file: The Find operation returns a single instance of matching text. The Find All operation returns all instances of matching text. Figure 11.1 shows the Find window. Table 11.1 on page 104 explains the items in the Find window. Figure 11.1 Find window
103
Explanation
Enter a search string. Click the arrow symbol to select a search string that you entered previously. Click to start a search operation using the string in the Find text/list box. Click to search for all matches in the active editor window. Click to close the Find window without performing a search. Check to search for whole-word matches only, ignoring matches within words. Clear to search for all matches of the search string, including matches within words.
Find button
Check to consider text case during the search. The search operation distinguishes between a capital letter and the same letter in lower case. Clear to disregard text case during the search. The search operation does not distinguish between a capital letter and the same letter in lower case.
Check to treat the search string as a regular expression. Clear to treat the search string as plain text. Check to stop a search at the end of a file and not wrap around to the beginning of the file. Clear to wrap around to the beginning of the file and continue a search. The search stops at the first match or at the current cursor position.
Search up checkbox
Check to perform a search operation back from the current selection. Clear to perform a search operation forward of the current selection
Check to search only the currently selected text and not the entire file. Clear to search the entire file.
104
Explanation
Select to search only source code in the file.
105
Explanation
Enter a search string. Click the arrow symbol to select a search string that you entered previously. Enter the replacement string. Click the arrow symbol to select a replacement string that you entered previously. Click to start a search operation using the string in the Find text/list box. Click to replace the current match with the replacement string. Click to replace all matches with the replacement string. Click to close the Find and Replace window without performing a search.
106
Explanation
Check to search for whole-word matches only, ignoring matches within words. Clear to search for all matches of the search string, including matches within words.
Check to consider text case during the search. The search operation distinguishes between a capital letter and the same letter in lower case. Clear to disregard text case during the search. The search operation does not distinguish between a capital letter and the same letter in lower case.
Check to treat the search string as a regular expression. Clear to treat the search string as plain text. Check to stop a search at the end of a file and not wrap around to the beginning of the file. Clear to wrap around to the beginning of the file and continue a search. The search stops at the first match or at the current cursor position.
Search up checkbox
Check to perform a search operation back from the current selection. Clear to perform a search operation forward of the current selection
Check to search only the currently selected text and not the entire file. Clear to search the entire file.
All text option button Code only option button Comments only option button
Select to search all text in the file. Select to search only source code in the file.
107
108
Explanation
Enter a search string. Click the arrow symbol to select a search string that you entered previously. Enter the replacement string. Click the arrow symbol to select a replacement string that you entered previously. Click to start a search operation using the string in the Find text/list box. Click to search for all matches in the selected items.
109
Explanation
Click to replace the current match with the replacement string. Click to replace all matches with the replacement string. Click to stop the current operation. Check to search for whole-word matches only, ignoring matches within words. Clear to search for all matches of the search string, including matches within words.
Check to consider text case during the search. The search operation distinguishes between a capital letter and the same letter in lower case. Clear to disregard text case during the search. The search operation does not distinguish between a capital letter and the same letter in lower case.
Regular expression checkbox All text option button Code only option button Comments only option button In Folders tab
Check to treat the search string as a regular expression. Clear to treat the search string as plain text. Select to search all text in the selected items.
Click to bring forward the In Folders page. Use this page to search specific folders in the host file system. Click to bring forward the In Projects page. Use this page to search active projects and build targets. Click to bring forward the In Symbolics page. Use this page to search files containing symbolics (debugging and browsing) information generated by the IDE. Click to bring forward the In Files page. Use this page to search files contained in custom file sets.
In Projects tab
In Symbolics tab
In Files tab
110
In Folders
Use the In Folders page to search folder contents for matching text. Figure 11.4 shows the In Folders page. Table 11.4 explains the items in the page. Figure 11.4 Find in Files windowIn Folders page
Explanation
Enter the path to the folder that you want to search. Click the arrow symbol to select a path that you entered previously. Click to open a dialog box that lets you pick the folder that you want to search. Check to search sub-folders of the selected folder. Clear to search the selected folder only, ignoring any subfolders it may contain. Enter the filename extensions of the files that you want to search. Click the arrow symbol to select a set of filename extensions. The search ignores files whose filename extensions do not appear in this text/list box.
111
112
In Projects
Use the In Projects page to search active projects and build targets for matching text. Figure 11.5 shows the In Projects page. Table 11.5 explains the items in the page. Figure 11.5 Find in Files windowIn Projects page
Explanation
Specify the projects that you want to search. Specify the build targets that you want to search. Check to search the source-code files of selected projects. Clear to ignore source-code files of selected projects. Check to search the header files of selected projects. Clear to ignore header files of selected projects. Check to search system header files. Clear to ignore system header files. Check to search sub-targets that the IDE cached for the selected build targets. Clear to ignore the sub-targets that the IDE cached for the selected build targets.
File list
This list shows files that the IDE will search. To remove a file from this list, select it and press Backspace or Delete. To open a file in this list, double-click its name.
113
114
In Symbolics
Use the In Symbolics page to search files containing symbolics information for matching text. Figure 11.6 shows the In Symbolics page. Table 11.6 explains the items in the page. Figure 11.6 Find in Files windowIn Symbolics page
Explanation
Specify the symbolics files that you want to search.
This list shows the symbolics files that the IDE will search. To remove a file from this list, select it and press Backspace or Delete. To open a file in this list, double-click its name.
115
NOTE
The IDE does not generate browser data for some files, such as libraries.
3. Click Debug > Kill. The debugging session ends. 4. Click Search > Find in Files. The Find in Files window appears. 5. Enter search text into the Find text/list box. 6. Enter replacement text into the Replace with text/list box. 7. Set general search options. 8. Set the In Symbolics page search options: a. Use the Symbolics list box to specify the symbolics files that you want to search. b. Remove symbolics files from the Symbolics list as needed. 9. Find and replace text: a. Click the Find or Find All button to search for matching text. The IDE searches the specified symbolics files until it finds a match or reaches the end of the search. A single match appears highlighted in an editor window, or multiple matches appear in a Search Results window. The IDE beeps if it does not find any matching text. b. Click the Replace or Replace All button to replace the matching text. Click the Replace button to replace the current match. Click the Replace button repeatedly to replace subsequent matches. Click the Replace All button to replace all matching text. To replace consecutive matches, click the Find button to find the first match, then repeatedly click the Replace button. To replace one match at a time, or to replace nonconsecutive matches, click the Find button to find a match, then click the Replace button as needed. TIP If you clicked the Find button to start the search, click Search > Find Next to find the next match.
116
In Files
Use the In Files page to search file sets for matching text. Figure 11.7 shows the In Files page. Table 11.7 on page 117 explains the items in the page. Figure 11.7 Find in Files windowIn Files page
Explanation
Specify the file set that you want to search. Select New File Set to create a new set. This list shows the files that the IDE will search. To remove a file from this list, select it and press Backspace or Delete. To add files to this list, click the Add Files button, or drag and drop files and folders into the list. To open a file in this list, double-click its name. Click to open a dialog box that lets you add files to the current file set. To enable this button, select from the File Set list box an existing file set or the New File Set option. Click to clear the current File Set list. To enable this button, select from the File Set list box a file set that has at least one file. Click to save the current file set under a specific name. The file set must have at least one file. The name appears in the File Set list box. To enable this button, modify the current file set or select an existing file set from the File Set list box. Click to open a dialog box that lets you remove file sets that you created previously. The removed file sets no longer appear in the File Set list box. To enable this button, select from the File Set list box an existing file set or the New File Set option.
117
118
119
Icon
Explanation
Shows the total number of search results.
Click to display complier and linker warnings in the Results pane. The text box to the right of this button shows the total number of warnings. Click to stop the search in progress.
Stop button
Results pane Source Code pane disclosure triangle Pane resize bar
Lists individual search results. Click to show or hide the Source Code pane. Drag to resize the Results and Source Code panes. Shows the source code corresponding to the selected item in the Results pane. This pane operates the same as an editor window without pane-splitter controls.
120
Text-Selection Find
After you use the Find, Find and Replace, or Find in Files windows to perform a successful search, you can use menu commands to apply the same search criteria to additional searches. This way, you do not have to open the windows again to use the same search criteria. You select text in the active editor window to define the search string.
121
Regular-Expression Find
Use regular expressions to search text according to sophisticated text-matching rules. A regular expression is a text string used as a mask for matching text in a file. To use regular expressions, select Regular expression in the Find, Find and Replace, or Find in Files windows. Certain characters are operators with special meanings in a regular expression. TIP For an in-depth description of regular expressions, refer to Mastering Regular Expressions by Jeffrey E.F. Friedl, published by OReilly & Associates, Inc.
Table 11.9 explains the regular-expression operators that the IDE recognizes.
122
Name
match any
Explanation
Matches any single printing or non-printing character except newline and null. Replaces the smallest/preceding regular expression with a sub-expression. Repeats the preceding regular expression at least once and then as many times as necessary to match the pattern. Repeats the preceding regular expression once or not at all. Refers to a specified group (a unit expression enclosed in parentheses) in the find string. The digit n identifies the nth group, from left to right, with a number from 1 to 9. Matches one of a choice of regular expressions. If this operator appears between two regular expressions, the IDE matches the largest union of strings. Matches items from the beginning of a string or following a newline character. This operator also represents a NOT operator when enclosed within brackets. Matches items from the end of a string or preceding a newline character. Defines a set of items to use as a match. The IDE does not allow empty lists. Defines an expression to be treated as a single unit elsewhere in the regular expression. Specifies a range. The range starts with the character preceding the operator and ends with the character following the operator.
\n
alternation
[...]
(...)
group
range
Table 11.10 shows various examples of using regular expressions to match particular text in a text sample.
123
Regular expression
ex [(][.]stack[)] var.
Matching text
ex (.stack) var1 var2
Sample text
sample text ADDR(.stack) cout << var1; cout << var2; cin >> cutF; cin >> cotG; information the session confusion the session surprise theVar is sagging bag lagged cout << a[2] << u9; sagging rag lagged aVal-Val; cout << "no tab"; cout << "tab";
c.t
cut cot
Repeating expressions
s*ion
ion ssion
s+ion
sion ssion
[[aeiou][0-9]
[2 u9
[^bls]ag
rag
aV -V cout cout
(l*;)$
l; ;
124
Table 11.11 Examples of using the find string in the replace string Find string
var[0-9] tgt
Replace string
my_& \&target
Matching text
var1 tgt
After replacement
my_var1 &target
Remembering Sub-expressions
Use the \n construct to recall sub-expressions from the find string in the replacement string. The digit n ranges from 1 to 9 and represents the nth sub-expression in the find string, counting from left to right. Enclose each sub-expression in parentheses. Consider these sample definitions: Find string: \#define[ \t]+(.+)[ \t]+([0-9]+); Replace string: const int \1 = \2; Sub-expression \1: (.+) Sub-expression \2: ([0-9]+) These definitions show a replacement operation that recalls two sub-expressions. Table 11.12 shows the result of applying these sample definitions to some text. Table 11.12 Remembering sub-expressions Before replacement \1 matches this text
var1 a
After replacement
125
Comparison Setup
You use the Compare Files Setup window to enter information about the files or folders that you want to compare. Figure 11.9 on page 126 shows the Compare Files Setup window. Table 11.13 on page 126 explains items in the window. Figure 11.9 Compare Files Setup window
Explanation
Click the Choose button to specify the source file or folder for the comparison, or drag and drop a file or folder into the box. Click the selector to the left of the Choose button to specify a file in an open editor window. Click the Choose button to specify the destination file or folder for the comparison, or drag and drop a file or folder into the box. Click the selector to the left of the Choose button to specify a file in an open editor window.
Destination box
126
Explanation
Check to consider text case during the compare operation. The comparison distinguishes between a capital letter and the same letter in lower case. Clear to disregard text case during the compare operation. The comparison does not distinguish between a capital letter and the same letter in lower case.
Check to consider extra spaces and tabs during the compare operation. The comparison distinguishes differences in the number of spaces and tabs in the compared files. Clear to disregard extra spaces and tabs during the compare operation. The comparison does not distinguish differences in the number of spaces and tabs in the compared files.
Check to have the Folder Compare Results window show only the differences between the compared folders. The Files in Both Folders pane stays blank. Clear to have the Folder Compare Results window show all files from the compared folders as well as the differences between those folders. The Files in Both Folders pane shows the common files between the compared folders. Check to identify differences in terms of a byte-by-byte comparison of the files. Clear to identify differences in terms of only the sizes and modification dates of the files. Click to compare the specified files or folders.
127
128
File Comparison
The IDE file-comparison feature identifies additions, changes, and deletions between two text files. In addition, this feature allows you to apply the differences in the source file to the destination file. You can also use this feature to merge changes between two versions of the same text file. Specify one version of the text file as the source file and the other version of the text file as the destination file. Then you can apply changes from the source file to the destination file. The destination file becomes the merged file. After you use the Compare Files Setup window to specify two files for comparison, click the Compare button. The File Compare Results window appears. This window shows the differences between the source file and destination file. You can apply or unapply those differences to the destination file. The File Compare Results window shows file differences in the form of highlighted portions of text. The highlighting tracks with the text as you scroll through the compared files. Figure 11.10 on page 130 shows the File Compare Results window. Table 11.14 on page 130 explains the items in the window.
129
Icon
N/A
Explanation
Shows the contents of the source file. You cannot edit the contents of this pane. Shows the contents of the destination file. You can edit the contents of this pane. Drag to resize the Source and Destination panes. Click to apply the selected Differences pane items to the destination file. Click to unapply the selected Differences pane items from the destination file. Click to undo your last text edit in the Destination pane.
Destination pane
N/A
Apply button
Unapply button
Undo button
130
Icon
Explanation
Click to redo your last text edit in the Destination pane.
Differences pane
N/A
Shows the differences between the Source pane and the Destination pane. Select an item to highlight it in the Source and Destination panes. Applied items appear in an italicized font
1. Select the items in the Differences pane that you want to apply to the destination file. 2. Click Search > Apply Difference or click the Apply button in the File Compare Results window. The Destination pane updates to reflect the differences that you applied to the destination file. The applied items in the Differences pane change to an italicized font. TIP Use the Customize IDE Commands window to assign a key binding to the Apply Difference command. This way, you can use the keyboard to apply differences.
131
Folder Comparison
The IDE folder-comparison feature identifies the differences between the contents of two folders. It reports the files in both folders, the files only in the source folder, and the files only in the destination folder. You can also use this feature to analyze the differences between two different releases of a folder of software. Specify one release of the software folder as the source folder and the other release of the software folder as the destination folder. Then you can analyze the differences between the source and destination folders. After you use the Compare Files Setup window to specify two folders for comparison, click the Compare button. The Folder Compare Results window appears and shows the differences between the source folder and destination folder. The Folder Compare Results window shows folder differences in the form of three panes. Italicized items in these panes indicate non-text files. Figure 11.11 shows the Folder Compare Results window. Table 11.15 explains the items in the window.
132
Icon
Explanation
Click to enlarge the pane to fill the window.
Click to reduce an expanded pane to its original size. Drag to resize the panes on either side of the bar.
N/A
Shows the items that are in both the source folder and the destination folder. A bullet next to an item indicates that the item content differs between the two folders. Shows the items that are in the source folder only. Shows the items that are in the destination folder only.
Files Only in Source pane Files Only in Destination pane Selected item group
N/A
N/A
N/A
Shows file and difference information for the selected item in the window panes.
133
134
IV
Browser
This section contains these chapters: Using the Browser Using Class Browser Windows Using Other Browser Windows Using Browser Wizards
135
136
12
Using the Browser
This chapter explains how to work with the browser in the CodeWarrior IDE. Use the browser to perform these tasks: Generate a browser databasethe browser stores collected symbol information in a browser database for the project. You can generate browser data from the compiler or the language parser. Collect symbol informationsymbols include functions, variables, and objects. Enable the browser to collect information about the symbols in a project. Read this chapter to learn more about typical tasks for working with the browser. This chapter contains these sections: Browser Database Browser Symbols
Browser Database
The browser database contains information about symbols in a program, which include (depending on program language) global variables, functions, classes, and type declarations, among others. Some IDE windows require that the project contain a browser database. For example, the Class Hierarchy window only displays information for a project that contains a browser database. This section explains how to configure a project to generate its browser database. NOTE Generating a browser database increases the projects size. To minimize the projects size, generate the browser database only for targets you frequently use.
137
Browser Data
Browser data contains symbolic and relationship information about the project code. The browser uses this data to access the code information. Use the Generate Browser Data From menu (Figure 12.1) in the Build Extras target settings panel to enable and disable browser data generation. This drop-down menu provides these options, which determine how the IDE generates browser data: NoneThe IDE does not generate browser data. Use None to disable browser data. Select None to generate faster compiles (with no browser features). CompilerThe Compiler generates the browser data. While it compiles more slowly, the compiler generates the most accurate browser data. Language ParserThe Code Completion plug-in associated with the projects programming language generates the browser data. Figure 12.1 Generate Browser Data From menu
138
Prefix fileSimilar to that used in the C/C++ Language Settings panel, the Prefix file contains header files that help the C/C++ Code Completion plug-in parse code. The Prefix file should only include text files (not pre-compiled header files). Macro fileContains C/C++ macro files that help the Code Completion plug-in resolve any #ifdefs found in the source code or in the header files. 4. If you selected Compiler, choose Project > Bring Up To Date or Make. The IDE generates browser data for the project. If you selected Language Parser, the IDE generates browser data in the background.
139
Browser Symbols
Navigate browser symbols to open browser views, find symbol definitions, and examine inheritance. You can navigate browser symbols in these ways: Use the Browser contextual menu to open various browser windows for a selected symbol. Double-click a symbol name in the Class Browser window to open the file that contains the declaration of that symbol. Use the class hierarchy windows to determine the ancestors or descendants of a selected symbol.
140
141
142
13
Using Class Browser Windows
This chapter explains how to work with the Class Browser windows in the CodeWarrior IDE. Use the Class Browser to perform these tasks: View browser datathe class browser collects information about the elements of a computer program. Such elements include functions, variables, and classes. The class browser displays these elements in organized lists. Show data relationshipsthe class browser shows the relationships between classes, data members, and methods. The class browser also updates the display to reflect changes in class scope. Read this chapter to learn more about typical tasks for working with Class Browser windows. This chapter contains these sections: Class Browser window Classes pane Member Functions pane Data Members pane Source pane Status Area
143
Icon
Explanation
Click to return to the preceding browser view. Click to move to the succeeding browser view. Click to open the Browser Contents window.
Go Forward button Browser Contents button Class Hierarchy button Single Class Hierarchy Window button Browser Access Filters list box
Click to open the Single-class Hierarchy window for the selected class. Select filters for displaying items in class-browser panes.
144
Icon
Explanation
Select to show inherited items in the Member Functions pane and Data Members pane. Clear to hide inherited items from these panes. Lists all classes in the project browser database. Lists all member functions defined in the currently selected class. Lists all data members defined in the selected class. Displays source code for the currently selected item. Displays various status messages and other information. Alphabetical Hierarchical Toggles the Classes display between alphabetical and hierarchical listings.
Classes pane
Status Area
Opens wizards to create new items (e.g., classes, data members, member functions). Expands the pane to the width of the full window. Collapses the pane to its original size.
Pane Expand box Pane Collapse Box Classes Pane button Class Declaration button
Lists all classes in the project browser database. Opens a window that shows declarations for all classes in the project.
145
Icon
Explanation
Opens the current source file in a new editor window. With a version control system enabled, choose the version-control command to execute on the displayed source file.
Table 13.2 Browser access filters Filter Icon Show items with this access: Public
View as implementor
Private
Protected
View as subclass
4. Select Open browser for class classname from the contextual menu. The classname is the name of the class that you selected. A Class Browser window appears.
2. In the Single- or Multi-Class Hierarchy window, double-click a class name. A Class Browser window appears.
147
This pane expands to fill the Browser window. 2. Use the enlarged pane to view data. Alternately, you can use the resize bar between the panes to enlarge each pane. 1. Rest the cursor over the resize bar. The cursor icon changes to this: 2. Hold down the mouse button. 3. Drag the resize bar to enlarge or shrink the pane.
The chosen pane collapses to its original size. 2. You can now view other panes in a Browser window. Alternately, you can use the resize bar between the panes to collapse each pane. 1. Rest the cursor over the resize bar. The cursor icon changes to this: 2. Hold down the mouse button. 3. Drag the resize bar to collapse the pane.
148
Classes pane
Use the Classes pane to perform these tasks: Create a new class Toggle viewing of classes Sort classes Figure 13.1 on page 144 shows the Classes pane. Table 13.3 explains the items in the pane. Table 13.3 Classes paneitems Item
New Item Sort Alphabetical Sort Hierarchical
Icon
Explanation
Click to create a new class using the New Class Wizard. Click to sort the Classes list in alphabetical order.
149
The IDE sorts the Classes list in alphabetical order. Click the Sort Hierarchical icon .
150
Icon
Member Identity
a static member a virtual function that can be overridden, or an override of an inherited function a member function that must be overridden in a subclass to create instances of that subclass
2. Enter the Member Function Declarations in the New Member Function window.
151
152
Source pane
Use the Source pane to view the source code that corresponds to the selected class, member function, or data member. This section explains the items in the Source pane. Figure 13.1 on page 144 shows the Source pane. Table 13.5 explains the items in the pane. For information on editing source code, see Editing Source Code. Table 13.5 Source paneitems Item
Open File
Icon
Explanation
Click to open the current source file in a new editor window.
VCS menu
Enable a version-control system in order to activate this menu. Use this menu to select and execute a version-control command on the source file.
Status Area
Use the status area to perform these tasks: Toggle viewing of the Classes pane View class declarations View classes according to public, private, or protected access Figure 13.1 on page 144 shows the status area. Table 13.6 on page 153 explains items in the status area. Table 13.6 Status areaitems Item
Show Classes Pane
Icon
Explanation
Click to display the Classes pane in the Class Browser window. Click to hide the Classes pane in the Class Browser window. Click to show the declaration of the current class.
Class Declaration
153
154
14
Using Other Browser Windows
This chapter explains how to work with the Class Hierarchy windows in the CodeWarrior IDE. Use Class Hierarchy windows to perform these tasks: View hierarchical browser datathe class hierarchy window shows a graphical representation of hierarchical structure. Object-oriented languages, such as C++ and Java, allow hierarchical relationships between classes. Analyze inheritance structurethe class hierarchy window shows the inheritance structure of classes. This structure reveals the data-handling capabilities of a particular class. Read this chapter to learn more about typical tasks for working with Class Hierarchy windows. This chapter contains these sections: Multiple-Class Hierarchy Window Single-Class Hierarchy Window Browser Contents window Symbols window
155
Icon
Explanation
Click to expand or collapse the subclasses displayed for a specific class. Click and hold on class or subclass box to display a menu. Select a class from menu to display that class. Click to toggle the lines that connect classes between diagonal and straight lines.
Ancestor menu
Line button
156
The Hierarchical window display updates to use diagonal lines. Click the Straight Line icon .
157
Click the Show Single-Class Hierarchy icon New Class Browser window Browser Contents window Multi-Class Hierarchical window A Single-Class Hierarchical window appears
in a Browser toolbar.
158
Icon
Explanation
Select the type of symbol to display in the Symbols list. Double-click a symbol name to display the source file in a new editor window that defines the symbol.
Symbols list
159
160
Symbols window
The Symbols window displays information from project browser databases. With the browser enabled, the IDE generates a browser database for a project during the build process. The Symbols window displays symbols that have multiple definitions in the browser database. For example, the window displays information about multiple versions of overridden functions in object-oriented code. Figure 14.4 on page 161 shows the Symbols window. Figure 14.4 Symbols window
161
Explanation
Provides one-click access to common browser commands and class-filtering commands. Displays a list of all symbols with multiple declarations. Displays the source code for the currently selected item.
Symbols toolbar
Most of the Symbol toolbar items are identical to those in the Class Browser window.
Symbols pane
The Symbols pane lists symbols with multiple definitions in the browser database. Select a symbol from the list to view its definition in the Source pane.
Source pane
The Source pane used in the Symbols window is identical to the one used by the Class Browser window. See Source pane for more details.
162
15
Using Browser Wizards
When you create a new class, member function, or data member in the IDE, you use browser wizards. These wizards provide the steps to help you complete the process. This chapter provides information on these wizards: The New Class Wizard The New Member Function Wizard The New Data Member Wizard NOTE Most wizard pages contain default settings. To accept all current settings in the wizard, click Finish in any screen. The wizard displays a summary of all current settings for the new project. Click Generate to accept the current settings and create the new item, or click Cancel to return to the wizard to modify settings.
163
164
4. Click Next. Figure 15.2 New Class wizardBase Class and Methods
165
166
9. Enter Targets information: Select the checkbox next to the build targets name in the list to add the class files to a specific build target. 10. Click Finish. Review the settings summary. 11. Click Generate.
167
168
5. Enter Member Function File Locations and Include Files information. 6. Click Finish. 7. Review settings summary, then click Generate.
169
170
171
172
V
Compilers and Linkers
This section contains these chapters: Compilers Linkers
173
174
16
Compilers
This chapter explains how to work with compilers in the CodeWarrior IDE. The IDE uses compilers to complete these tasks: Generate object codethe compiler translates source code into object code. Sample source code includes C++ files and Java files. Object code represents the same source instructions in a language that the computer directly understands. Flag syntax errorsthe compiler highlights source code that generates syntax errors. Syntax errors result from failing to follow valid structure in a programming language. In C++, a common syntax error is forgetting to end a statement with a semicolon. Read this chapter to learn more about typical tasks for working with compilers. This chapter contains these sections: Choosing a Compiler Compiling Projects
Choosing a Compiler
Choose a compiler to determine how the IDE interprets source code. The IDE uses a plugin compiler architecture. This architecture provides these features: Modularitythe IDE associates a specific compiler plug-in with a particular programming language or environment. For example, a compiler plug-in exists for C++ source code, and another compiler plug-in exists for Java source code. Flexibilityas new programming languages develop, the IDE can use new compiler plug-ins. The IDE associates common filename extensions with various plug-in compilers. For example, most Java files have the filename extension .java. The IDE associates these files with the Java compiler. The File Mappings panel provides control over such associations.
175
Compilers
Compiling Projects
Compiling Projects
Compile projects to process the source files that comprise a program and generate object code. The compiler flags syntax errors in the source files. Use these tasks to compile projects: Compile source files. Set the build order or link order. Update a project or its files. Create an executable file from a project. Run an application created from the project. Remove object code. This section explains how to perform each task.
176
Compilers
Compiling Projects
Updating Projects
Use the Bring Up To Date command to compile, but not link, the newly added, modified, and touched files in a project. Unlike the Make and Run commands, the Bring Up To Date command does not produce a binary file. 1. Select the project to update. 2. Choose Project > Bring Up To Date. The IDE compiles all uncompiled project files.
177
Compilers
Compiling Projects
178
Compilers
Compiling Projects
Select Compact targets to remove these items: Target data files with the .tdt extension. Browser data. Dependency information. Additional data cached by the IDE. 4. Select the method by which the IDE removes the object code. Click All Targets to remove object code from all build targets. Click Current Target to remove object code only from the active build target. The IDE removes the specified object code from the project.
179
Compilers
Compiling Projects
180
17
Linkers
This chapter explains how to work with linkers in the CodeWarrior IDE. The IDE uses linkers to complete these tasks: Combine codethe linker combines source-file object code with object code from library files and other related files. The combined code represents a complete computer program. Create a binary filethe linker processes the complete program and generates a binary file. Sample binary files include applications and shared libraries. Read this chapter to learn more about typical tasks for working with linkers. This chapter contains these sections: Choosing Linkers Linking Projects
Choosing Linkers
Choose a linker to determine the binary file type produced by the IDE. This list describes common binary files: Applicationsapplications, or executable files, represent a wide body of computer programs. Common applications include word processors, web browsers, and multimedia players. Librarieslibraries contain code for use in developing new computer programs. Libraries simplify programming tasks and enhance re-usability. Specialized filesfiles designed for highly efficient operation in a specific context. Such files usually support a particular combination of hardware and software to perform tasks. The IDE provides various linkers for software development. The Target Settings panel contains an option for selecting a linker. The IDE maps to each linker a group of recognized filename extensions. These mappings determine how the IDE interprets each file.
181
Linkers
Linking Projects
Linking Projects
Link projects to process object code and generate a binary file. Refer to the CodeWarrior Targeting documentation for more information about linkers for specific computer systems. This section explains general-purpose linker tasks.
182
VI
Preferences and Target Settings
This section contains these chapters: Customizing the IDE Working with IDE Preferences Working with Target Settings Preference and Target Settings Options
183
184
18
Customizing the IDE
The CodeWarrior IDE enables you to customize menus, toolbars, and key bindings to suit your programming preferences. Use the Customize IDE Commands window which consists of the Commands, Toolbar Items, and Key Bindings tabsto build your customizations. This chapter contains these sections: Customizing IDE Commands Customize Toolbars Customize Key Bindings
185
Explanation
Click to add a new command group to the Commands list. Click to add a new command setting within a group. Click to restore default options for the current Customize IDE Commands (Commands and Toolbar Items) lists. Click to restore the most recently saved options for the current Customize IDE Commands (Commands and Toolbar Items) lists. Click to save a file that contains commands and key bindings to use later in the Customize IDE Commands lists. Click to open a file that contains commands and key bindings to use in the current Customize IDE Commands lists. Click to save customizations to the Customize IDE Commands list.
Revert
Export
Import
Save
186
Commands Tab
Click the Commands tab at the top of the Customize IDE Commands window to display the commands view. Use this view to modify existing menu commands, and to create and remove command groups and menu commands.
187
188
189
190
Table 18.2 explains the pre-defined variables for command-line arguments. Table 18.2 Pre-defined variables in command definitions Variable
%sourceFilePath %sourceFileDir %sourceFileName %sourceLineNumber
Command-line output sourceFilePath is the frontmost editor window's full path. sourceFileDir is the frontmost editor window's directory. sourceFileName is the frontmost editor window's filename. sourceLineNumber is the line number of the insertion point in
the front window.
%sourceSelection
sourceSelection is the path to a temporary file containing the currently selected text.
191
projectFilePath is the full path of the front project window. projectFileDir is the directory of the front project window. projectFileName is the filename of the front project window. projectSelectedFiles passes the selected filenames in the
project window.
%targetFilePath
%targetFileDir
%targetFileName
%currentTargetName
%symFilePath
symFilePath is the full path to the symbolics file of the front project (can be the same as targetFile, such as CodeView). symFileDir is the full directory to the symbolics file of the front
project (can be the same as targetFile, such as CodeView)
%symFileDir
%symFileName
symFileName is the full filename to the symbolics file of the front project (can be the same as targetFile, such as CodeView)
192
193
To delete a command group or menu command, follow these steps: 1. Select the command group or menu command you wish to delete. If necessary, click the hierarchical control next to a group to expand and view its contents. 2. Click Delete. After clicking the Delete button, the selected command group or menu command disappears from the Commands list. 3. Click Save. Clicking the Save button confirms the deletion. The IDE removes deleted command groups from its menu bar. Deleted menu commands disappear from their respective command groups.
194
Customize Toolbars
You can customize your IDE toolbars to contain frequently used commands. The IDE toolbars contain a series of elements. Each element typically represents a menu command. After you click the element, the IDE executes the associated menu command. The toolbar can also contain elements that execute actions other than menu commands. Figure 18.5 Toolbar Items tab
This section explains these topics: Kinds of Toolbars Toolbar Elements Modify a Toolbar
195
Kinds of Toolbars
The CodeWarrior IDE uses two toolbar types: Main toolbarThis toolbar, also known as the floating toolbar, is always available. Window toolbarsThese toolbars appear in particular windows, such as the Project window toolbar and the Browser window toolbar. This distinction is important because you show, hide, clear, and reset the different toolbar types by using different sets of menu commands. These commands distinguish between the floating toolbar and the other window toolbars. When you change one of these toolbar types, that change applies to every instance of that toolbar type you subsequently create. For example, if you modify the toolbar in an editor window, your changes appear in all editor windows opened thereafter. Figure 18.6 Main toolbar
Toolbar Elements
A toolbar can contain these elements: Commandsbuttons that you click to execute IDE menu commands Controlsmenus, such as Document Settings, Functions, Header Files, Markers, Version Control, and Current Target Miscellaneousother elements, such as the File Dirty Indicator and File Path field Click the Toolbar Items tab at the top of the Customize IDE Commands window to display the Toolbar view. Use this view to add new elements to a toolbar.
196
Modify a Toolbar
You can modify a toolbar in these ways: Add a toolbar element Remove a toolbar element Clear all elements on a toolbar Reset a toolbar In certain circumstances there are restrictions on which elements you can add or remove from a toolbar. For example, you cannot add a second instance of an element to the toolbar. After you modify a toolbar, the changes apply to every instance of that toolbar. For example, if you customize the Project window toolbar, those changes will affect every Project window that you open, not just the toolbar in the active Project window. Your changes do not affect windows that are already open. TIP To display a ToolTip that names a toolbar element, rest the cursor over the element.
197
Reset Toolbars
Reset a toolbar to restore its default button set. On a Windows host, reset the main (floating) toolbar by selecting View > Toolbars > Reset Main Toolbar. Reset the window toolbar by selecting View > Toolbars > Reset Window Toolbar. Alternatively, you can use a contextual menu to reset the main toolbar or a window toolbar. Once you reset the toolbar, the IDE restores the default toolbar button set. On a Windows host, reset the main (floating) toolbar by right-clicking the toolbar and selecting Reset Toolbar. Reset the window toolbar by right-clicking the toolbar and selecting Reset Toolbar.
198
199
200
3. Create the key combination you would like to use for the selected command. For example, to add the key combination Ctrl-8, hold down the Ctrl key and press the 8 key, then release both keys at the same time. If you decide against the key combination that you just entered, or if you make a mistake, click Cancel in the Edit Key Binding dialog box. The IDE discards changes and returns you to the Customize IDE Commands window. 4. Click OK in the Edit Key Binding dialog box. The new key binding appears in the Key Bindings list in the Customize IDE Commands window. 5. Click Save in the Customize IDE Commands window to save your changes. The new key binding is now available for use in the IDE.
To export your custom commands and key bindings, follow these steps: 1. Click Export in the Customize IDE Commands window. After you click this button, a standard Save dialog box appears.
201
To import commands and key bindings, follow these steps: 1. Click Import in the Customize IDE Commands window. After you click this button, a standard Open dialog box appears. 2. Use the dialog box to find and open the Commands&KeyBindings.mkb file that you want to import. The IDE adds the custom commands and key bindings to the Customize IDE Commands window.
202
3. Click New Binding to display the Edit Key Bindings dialog box. 4. Type the desired Quote Key prefix. The keys you type appear in the dialog box. If you make a mistake or decide against the keys you typed, click Cancel to return to the Customize IDE Commands window. 5. Click OK in the Edit Key Binding dialog box. The new Quote Key prefix appears in the Key Bindings list.
203
204
19
Working with IDE Preferences
This chapter explains core CodeWarrior IDE preference panels and provides basic information on global- and project-level preference options. Consult the Targeting documentation for information on platform-specific preference panels. This chapter contains these sections: IDE Preferences Window General Panels Editor Panels Abbreviated descriptions appear in this chapter. See Preference and Target Settings Options for more information on preference-panel options.
205
206
Explanation
Lists preference panels, organized by group. Click the hierarchical control next to a group name to show or hide individual preference panels. Shows options for the selected item in the IDE Preference Panels list. Click to restore the default options for the current preference panel. Click to restore the most recently saved options for the current preference panel. Click to save an XML file that contains options for the current preference panel. Click to open an XML file that contains options for the current preference panel. Click to save modifications to all preference panels and close the window. Click to discard modifications to all preference panels and close the window. Click to confirm modifications to all preference panels.
Preference panel
Export Panel
Import Panel
OK
Cancel
Apply
General Panels
The General section of the IDE Preference Panels defines basic options assigned to a new project. The General preference panels available on most IDE hosts include: Build Settings Concurrent Compiles IDE Extras Plugin Settings Shielded Folders Source Trees
207
Build Settings
The Build Settings preference panel provides options for customizing various aspects of project builds, including: file actions during project builds memory usage to accelerate builds local data storage of projects stored on read-only volumes Figure 19.2 Build Settings preference panel
Explanation
Choose to always build the project before running it, never build the project before running it, or ask for the desired action. Select to automatically save the contents of all editor windows before starting a build. Select to have the IDE display a message after successfully building a project. Enter the kilobytes of memory to allocate to the stack for execution of the IDE compiler thread. Increase the size when compiling heavily optimized code. Select to specify a location to save project data if the project is on a read-only volume. Click Choose to select the location.
208
Concurrent Compiles
The Concurrent Compiles preference panel controls execution of simultaneous IDE compilation processes. The IDE lists this panel in the IDE Preference Panels list when the active compiler supports concurrency. The IDE uses concurrent compiles to compile code more efficiently. The IDE improves its use of available processor capacity by spawning multiple compile processes, which allow the operating system to perform these tasks as needed: optimize resource use use overlapped input/output For those compilers that support concurrency, concurrent compiles improve compile time on both single- and multiple-processor systems. Figure 19.3 Concurrent Compiles preference panel
Explanation
Select to have the IDE run multiple compilation processes simultaneously. Select to allow the number of concurrent compiles suggested by the IDE. Select to stipulate the number of concurrent compiles.
Recommended
User Specified
209
IDE Extras
The IDE Extras preference panel provides options for customizing various aspects of the IDE, including: menu-bar layout the number of recent projects, document files, and symbolics files to remember use of a third-party editor Figure 19.4 IDE Extras preference panel
Explanation
Choose a layout that organizes IDE menus into a typical host-platform menu bar. Restart the IDE in order for menu-bar layout changes to take effect. Enter the number of recently opened projects for the IDE to display in the Open Recent submenu. Enter zero to disable this feature. Enter the number of recently opened documents for the IDE to display in the Open Recent submenu. Enter zero to disable this feature. Enter the number of recently opened symbolics files for the IDE to display in the Open Recent submenu. Enter zero to disable this feature.
Projects
Documents
Symbolics
210
Explanation
Enter the number of recently opened workspaces for the IDE to display in the Open Recent submenu. Enter zero to disable this feature. Select to use a third-party text editor to edit source files. Enter a command-line expression that runs the desired third-party text editor. Enter a command-line expression that runs the desired third-party text editor and passes to that editor an initial line of text to display. Select to have the IDE use the Multiple Document Interface (MDI). Clear to have the IDE use the Floating Document Interface (FDI). Restart the IDE in order for interface changes to take effect. Select this option to have the IDE use the default workspace to save and restore state information. Clear this option to have the IDE always start in the same state. Displays or hides Code and Data columns in project manager.
Launch Editor
211
Plugin Settings
The Plugin Settings preference panel contains options for troubleshooting third-party IDE plug-ins. Figure 19.5 Plugin Settings preference panel
Explanation
Choose the plug-in diagnostics level the IDE generates the next time it loads plug-ins. Restart the IDE in order for diagnostic-level changes to take effect. Options are None, Errors Only, and All Info. Select to prevent the IDE from loading third-party Common Object Model (COM) plug-ins.
212
Shielded Folders
The Shielded Folder preference panel enables the IDE to ignore specified folders during project operations and find-and-compare operations. The IDE ignores folders based on matching names with regular expressions defined in the preference panel. NOTE If the Access Paths settings panel in the Target Settings window contains a path to a shielded folder, the IDE overrides the shielding and includes the folder in project operations and find-and-compare operations.
Icon
Explanation
Lists folders that match the specified regular expression. The IDE skips these folders during project operations, find-and-compare operations, or both. Enter the regular expression used to shield folders from selected operations. Select to have the IDE skip folders during project operations. A bullet appears in the corresponding column of the shielded folder list.
Regular Expression
Project operations
213
Icon
Explanation
Select to have the IDE skip folders during findand-compare operations. A bullet appears in the corresponding column of the shielded folder list. Click to add the current Regular Expression field entry to the shielded folder list. Click to replace the selected regular expression in the shielded folder list with the current Regular Expression field entry. Click to delete the selected regular expression from the shielded folder list.
Add
Change
Remove
Table 19.7 Default regular expressions in Shielded Folders panel Regular Expression
\(.*\)
Explanation
Matches folders with names that begin and end with parentheses, such as the (Project Stationery) folder. Matches folders named CVS. With this regular expression, the IDE skips Concurrent Versions System (CVS) data files. Matches the names of folders generated by the IDE that store target data information, such as a folder named MyProject_Data.
CVS
.*[_]Data
214
Source Trees
Use the Source Trees panel to add, modify, and remove source trees (root paths) used in projects. Use source trees to define common access paths and build-target outputs to promote sharing of projects across different hosts. Source trees have these scopes: Global source trees, defined in the IDE Preferences window, apply to all projects. Project source trees, defined in the Target Settings window for a particular project, apply only to files in that project. Project source trees always take precedence over global source trees. Except for the difference in scope, global and project source trees operate identically. Figure 19.7 Source Trees panel
215
Explanation
Contains the Name and Path of currently defined source trees. Enter a name for a new source tree or modify the name of a selected source tree. Choose the source-tree path type. Click to select or modify a source-tree path. Click to add a new source-tree path to the Source Tree list. Click to modify the selected source-tree name or path. Click to delete the selected source tree from the Source Tree list.
216
217
Editor Panels
The Editor section of the IDE Preference Panels list defines the editor settings assigned to a new project. The Editor preference panels available on most IDE hosts include: Code Completion Code Formatting Editor Settings Font & Tabs Text Colors
Code Completion
The Code Completion preference panel provides options for customizing the IDE codecompletion behavior, including: automatic invocation and indexing window positioning and appearance delay case sensitivity Figure 19.8 Code Completion preference panel
218
Explanation
Select to automatically open the Code Completion window to complete programming-language symbols. Clear to manually open the window. Select to have the Code Completion window follow the insertion point as you edit text. Clear to leave the window in place. Select to have the Code Completion window display obsolete items in gray text. Clear to have the window hide obsolete items. Select to have the IDE consider case when completing code. Clear to have the IDE ignore case. Enter the number of ticks to wait before opening the Code Completion window. A tick is 1/60 of a second.
Case sensitive
219
Code Formatting
The Code Formatting preference panel provides options for customizing editor codeformatting behavior, including: indenting syntax placement brace handling Figure 19.9 Code Formatting preference panel
Explanation
Check to have the editor automatically format your source code according to settings in this panel. Clear to prevent the editor from automatically formatting your code.
Language Settings
Use to specify the language type that you want to format. Your selection changes the other options in this panel to their default states for the selected language.
220
Explanation
Check to have the editor automatically insert a closing brace when you type an opening brace. The editor places the cursor between the opening brace that you typed and the closing brace that it inserts. Clear to prevent the editor from automatically inserting a closing brace when you type an opening brace.
Check to have the editor place on the next line an opening brace that you type. Clear to prevent the editor from placing on the next line an opening brace that you type.
Indent braces
Check to have the editor indent braces by one tab stop from the previous line. Clear to prevent the editor from indenting braces by one tab stop from the previous line.
Check to have the editor place else and else if text on the same line as the closing brace of the if or else if statement. Clear to prevent the editor from placing else and else if text on the same line as the closing brace of the if or else if statement.
Check to have the editor indent code by one tab stop from the braces. Clear to prevent the editor from indenting code by one tab stop from the braces.
Check to have the editor indent case statements by one tab stop inside a switch statement. Clear to prevent the editor from indenting case statements by one tab stop inside a switch statement.
Check to have the editor automatically insert the corresponding closing character when you type an opening brace, bracket, or parenthesis. The editor places the cursor between the opening character and the closing character. Clear to prevent the editor from automatically inserting the corresponding closing character when you type an opening brace, bracket, or parenthesis.
221
Editor Settings
The Editor Settings preference panel provides options for customizing the editor, including: fonts, window locations, and insertion-point positions contextual menus additional editor-window features Figure 19.10 Editor Settings preference panel
222
Explanation
Select to retain font settings for each source file. Clear to apply default font settings each time the IDE displays the source file. Select to retain the text-insertion position in each source file. Select to retain the location and dimensions of each editor window. Select to add Edit menu commands to contextual menus. Select to add Browser menu commands to contextual menus. Also select in order to use the Insert Template Commands option. Select to add Project menu commands to contextual menus.
Selection position Window position and size Edit Commands Browser Commands
Select to add VCS (Version Control System) menu commands to contextual menus. Select to flash the matching (, [, or { after typing ), ], or } in an editor window. Select to allow multiple undo and redo operations while editing text. Select to allow the C parser to recognize some non-standard function formats and avoid skipping or misinterpreting some definition styles. Select to allow drag-and-drop text editing.
Drag and drop editing Left margin click selects line Sort function popup
Select to allow selection of an entire line of text by clicking in the left margin of the editor window. Select to sort function names by alphabetical order in menus. Clear to sort function names by order of appearance in the source file. Select to allow moving the text-insertion point beyond the end of a source-code line. Entering new text automatically inserts spaces between the former end of the line and the newly entered text.
223
Explanation
Enter the number of ticks to flash a balancing punctuation character. A tick is1/60 of a second. Choose the default end-of-line format used to save files.
224
Explanation
Choose the typeface displayed in editor windows. Choose the font size displayed in editor windows. Choose the IDE script system. The script system maps keyboard keys to characters of an alphabet. Select to indent each line of selected text after pressing Tab. Clear to replace selected text with a tab character after pressing Tab. Enter the number of spaces to substitute in place of a tab character. This number applies to the Tab Inserts Spaces option. Select to automatically apply the indentation level from the previous line of text to each new line created by pressing Enter or Return. Select to insert spaces instead of a tab character after pressing Tab. The Tab Size option determines the number of inserted spaces.
Tab Size
Auto Indent
225
Text Colors
The Text Colors preference panel customizes colors applied to elements of source code displayed in editor windows, such as: default foreground and background in editor windows standard comments, keywords, and strings in source code custom-defined keywords browser symbols Default settings provide a simple scheme of at least four source-code colors. If four colors do not provide sufficient detail, modify this preference panel to create more sophisticated color schemes.
226
Explanation
Click the color swatch to display a dialog box. Use the dialog box to set the foreground color used in editor windows for text. Click the color swatch to set the background color used in editor windows. Select to apply custom colors to comments, keywords, strings, and custom keywords in text. Clear to use the Foreground color for all text. Click the color swatch to set the color used for sourcecode comments. Click the color swatch to set the color used for sourcecode language keywords. Click the color swatch to set the color used for sourcecode string literals.
Background
Comments
Keywords
Strings
227
Explanation
Click a color swatch to set the color used for the corresponding custom-keyword set. Click to add, modify, or remove keywords from the corresponding custom-keyword set. Select to apply custom colors to browser symbols in text. Clear to use the Foreground color for all text. Click the color swatch to set the color used for sourcecode classes. Click the color swatch to set the color used for sourcecode constants. Click the color swatch to set the color used for sourcecode enumerations. Click the color swatch to set the color used for sourcecode functions. Click the color swatch to set the color used for sourcecode global variables. Click the color swatch to set the color used for sourcecode macros. Click the color swatch to set the color used for sourcecode templates. Click the color swatch to set the color used for sourcecode type definitions. Click the color swatch to set the color used for other symbols not specified in the Activate Browser Coloring section.
Edit
Classes
Constants
Enums
Functions
Globals
Macros
Templates
TypeDefs
Other
229
230
20
Working with Target Settings
This chapter explains core CodeWarrior IDE target settings panels and provides basic information on target settings options for the current projects build targets. Consult the Targeting documentation for information on platform-specific target settings panels. This chapter contains these sections: Target Settings Window Target Panels Editor Panels Abbreviated descriptions appear in this chapter. See Preference and Target Settings Options for more information on target settings panel options.
231
Explanation
Lists settings panels, organized by group. Click the hierarchical control next to a group name to show or hide a list of individual settings panels. Shows options for the selected item in the Target Settings Panels list. Click to restore the default options for the current settings panel.
Click to restore the most recently saved options for the current settings panel. Click to save an XML file that contains set options for the current panel. Click to open an XML file that contains settings for the current panel.
Export Panel
Import Panel
232
Explanation
Click to save modifications to all settings panels and close the window. Click to discard modifications to all settings panels and close the window. Click to confirm modifications to all settings panels.
Apply
Target Panels
The Target group of the Target Settings Panels defines general target settings assigned to a new project. The panels available on most IDE hosts include: Target Settings Access Paths Build Extras File Mappings Source Trees
233
Target Settings
The Target Settings panel provides options for: setting the name of the current build target setting the linker, pre-linker, and post-linker for the build target specifying the project output directory for the final output file Figure 20.2 Target Settings panel
Explanation
Enter a name (26 or fewer characters) for the selected build target as it will appear in the project window. Select the linker to use on the current build target. Select the pre-linker to use on the current build target. Select the post- linker to use on the current build target. Shows the location where the IDE creates the output binary file. Click Choose to change this location. Click to select the directory in which the IDE saves the output binary file.
Choose
234
Explanation
Click to delete the current Output Directory path. Select to save project file entries using a relative path from a defined access path. This option is helpful if the project has multiple files with the same name.
Access Paths
The Access Paths settings panel defines the search paths for locating and accessing a build targets system files and header files. NOTE The Access Paths settings panel displays either User Paths or System Paths, depending on the selected radio button.
235
Explanation
Select to treat #include <...> statements the same as #include "..." statements. Select to search for dependent files in the same location as the source file. If the dependent file is not found in this location, specified User and System paths are searched. If this option is enabled, the Always Search User Paths should also be enabled. The User Paths list shows currently defined user-level access paths searched by #include "..." statements. The System Paths list shows currently defined system-level access paths searched by #include <...> statements. Click to restore the default user- and system-level access paths. Choose the host platforms that can use the selected access path.
User Paths
System Paths
Click to add a user- or system-level access path. Click to modify the selected user- or system-level access path. Click to remove the selected user- or system-level access path.
236
Icon
Explanation
A checkmark icon indicates an active access path that the IDE searches. No checkmark icon indicates an inactive access path that the IDE does not search.
Recursive search
A folder icon indicates that the IDE recursively searches subdirectories of the access path. No folder icon indicates that the IDE does not recursively search the access path.
Access path
Shows the full access path to the selected directory. Access paths have these types: Absolutethe complete path, from the root level of the hard drive to the directory, including all intermediate directories Projectthe path from the project file relative to the designated directory CodeWarriorthe path from the CodeWarrior IDE relative to the designated directory Systemthe path from the operating systems base directory relative to the designated directory Source treethe path from a user-defined source tree relative to the designated directory
237
Build Extras
The Build Extras settings panel contains options that define how the CodeWarrior IDE builds a project. Figure 20.4 Build Extras settings panel
238
Explanation
Select to have the IDE cache modification date information and use that information each time it builds a target. Builds are faster if file modification dates are cached. Note that it is recommended to uncheck this option if you are using an external editor or using mounted directories. For one-time changes to files (for example, those updated by a VCS tool outside of the IDE or editing a file with an external editor), you should check the modification date by clicking the Synchronize Modification Dates button in the project window toolbar.
Cache Subprojects Generate Browser Data From Dump internal browse information after compile Prefix file
Select to improve multi-project updating and linking speed. Choose whether the IDE generates browser data for the project, and the method by which the IDE generates that data. Select to have the IDE dump raw browser information for viewing. This option appears after selecting Compiler from the Generate Browser Data From pop-up menu. Enter the path to your projects prefix file. This options appears after selecting Language Parser from the Generate Browser Data From pop-up menu. Enter the path to your projects macro file. This options appears after selecting Language Parser from the Generate Browser Data From pop-up menu. Click Browse to select the external debugger application. Alternatively, enter the path to the external debugger. Enter any program arguments to pass to the external debugger when the IDE transfers control. Click Browse to select an initial directory for the external debugger. Alternatively, enter the path to the initial directory.
Macro file
Application
Arguments
Initial directory
239
File Mappings
The File Mappings settings panel associates filename extensions with a CodeWarrior plug-in compiler. These associations determine whether the IDE recognizes a source file by its filename extension or file type. Use the settings panel to add, change, and remove file mappings. Figure 20.5 File Mappings settings panel
Icon
Explanation
Displays a list of currently defined mappings between filename extensions and plug-in compilers. Enter a file type (such as TEXT) for the file mapping. Alternatively, click Choose to set the file type by selecting an example file. This file type also appears in the corresponding column of the File Mappings list. Enter the filename extension (such as .cpp) for the file mapping. This filename extension also appears in the corresponding column of the File Mappings list. A bullet in this column denotes a resource file. The IDE includes these resource files when building the final output file. Use the Flags context menu to toggle this flag.
Extension
240
Icon
Explanation
A bullet in this column denotes a launchable file. The IDE opens launchable files with the application that created them. Double-click launchable files from the Project window. Use the Flags context menu to toggle this flag. A bullet in this column denotes a precompiled file. The IDE builds precompiled files before building other files. Toggle this flag using the Flags context menu. A bullet in this column denotes a file ignored by the compiler during builds. For example, use this option to ignore text (.txt) files or document (.doc) files. Use the Flags context menu to toggle this flag. Choose the plug-in compiler to associate with the selected file mapping from this list. This compiler selection also appears in the corresponding column of the File Mappings list. Choose the desired flags for the selected file mapping from this context menu. A checkmark indicates an active flag. Bullets appear in the corresponding columns of the File Mappings list to reflect flag states. Choose the desired language to associate with the selected file mapping from this list. The IDE applies the appropriate syntax coloring for the selected language. Click to add the current File Type, Extension, Flags, Compiler, and Edit Language entries to the File Mappings list. Click to change the selected item in the File Mappings list to reflect the current File Type, Extension, Flags, Compiler, and Edit Language entries. Click to remove the selected item in the File Mappings list.
Compiler
Flags
Edit Language
Add
Change
Remove
Source Trees
The Source Trees settings panel in the Target Settings window defines project-specific root paths. These project-specific paths override the global root paths defined in the Source Trees preference panel of the IDE Preferences window. Refer to Source Trees for information on adding, changing, or removing paths.
241
242
243
Editor Panels
The Editor group of the Target Settings Panels provides a single core panel for configuring custom keywords within a project.
Custom Keywords
The Custom Keywords panel configures as many as four keyword sets, each with a list of keywords and syntax coloring for a project. These project-specific settings supersede the global settings defined in the Text Colors preference panel of the IDE Preferences window. Figure 20.8 Custom Keywords settings panel
Explanation
Click a color swatch to set the color used for the corresponding custom-keyword set.
Click to add, modify, or remove keywords from the corresponding custom-keyword set.
245
246
21
Preference and Target Settings Options
Use this chapter to look up CodeWarrior IDE preference panel or target setting options and learn more about their capabilities. Option names are arranged in alphabetical order. NOTE This chapter covers options for the core IDE preference or target setting panels described in this manual.
Add Default
Click this button to restore the default user path or system path to the Access Paths panel.
247
Application
In this field enter the path to the external debugger that the IDE uses in place of the CodeWarrior debugger. Alternatively, click Browse to open a dialog box. Use the dialog box to select the external debugger.
Arguments
In this field enter command-line arguments to pass to the external debugger at the beginning of a debugging session.
Auto Indent
Select this option to apply automatically the same indentation as the previous line for each new line of text created by pressing Enter or Return. Clear the option to always return to the left margin for each new line of text.
248
Automatic Invocation
Select this option to have the Code Completion window automatically open after typing specific programming-language characters in the active editor window. Clear the option to manually open the Code Completion window. The specific characters that trigger opening of the Code Completion window depend on the programming language that you use. For example, typing a period after a Java class opens the Code Completion window, allowing you to complete the class invocation. You can change the time it takes for the Code Completion window to appear after you type a trigger character. If you perform any activity during this delay time, the Code Completion window is canceled. See also: Code Completion Delay
Background
Click this color swatch to configure the background color of editor windows.
249
Browser Commands
Select this option to add Browser menu commands to contextual menus. Clear the option to remove commands from the contextual menus.
Browser Path
In this field enter a path to the browser to use for viewing IDE online help. The Netscape Navigator browser is the default application. The PATH environment variable specifies the path to the browser. To change the default setting, or if the IDE cannot find Netscape Navigator, in the Browser Path field enter a path to an alternate browser. Alternatively, click Set to select the path.
250
Case sensitive
Select this option to have the IDE consider case when completing code. Clear the option to have the IDE ignore case. The IDE can determine possible symbol matches according to case. For example, if you clear the Case sensitive option and type str in the active editor window, the IDE displays both string and String as possible matches. Selecting the option causes the IDE to display only string as a possible match.
Comments
Select the Activate Syntax Coloring option in order to configure this option. Use this option to configure the color of C, C++, and Java comments displayed in editor windows. The IDE then uses the chosen color for comments placed between /* and */ or from // to the end of a line. Click the color swatch next to Comments to set the color.
Compiler
Choose from this list pop-up the desired compiler for the selected File Type in the File Mappings list. Select None to not associate the selected file type with any compiler.
251
252
Do nothing
Select this option to leave all windows in place during a debugging session.
Documents
In this field enter the number of recent documents to display in the Open Recent submenu.
253
Edit Commands
Select this option to add Edit menu commands to IDE contextual menus. Clear the option to remove the commands from the contextual menus.
Edit Language
Choose from this pop-up menu the programming language to associate with the selected file mapping. The selected language determines the syntax-color scheme. For example, choose C/C++ to apply the appropriate syntax-color scheme for C or C++ programminglanguage components.
Environment Settings
Use this section to specify environment variables to pass to your program as part of the environment parameter in your programs main() function, or as part of environment calls. These environment variables are only available to the target program. When your program terminates, the settings are no longer available. NOTE The Environment Settings section appears only when you develop code for a Windows build target. The section does not appear for any other build target.
254
Export Panel
Click this button to save to an Extensible Markup Language (XML) file the current state of the active preference or settings panel.
Extension
In this field enter a filename extension, such as the .c or .h, for a selected File Type in the File Mappings list. Table 21.1 on page 255 lists default filename extensions. Table 21.1 Default filename extensions Type
Minimum CodeWarrior Installation
Extension
.iSYM .mch .mcp .SYM
Explanation
CodeWarrior Intel Symbols CodeWarrior Precompiled Header CodeWarrior Project File CodeWarrior Mac OS 68K Debug Symbols CodeWarrior Mac OS PPC Debug Symbols CodeWarrior Debug Preferences Exported Symbol File CodeWarrior Link Map CodeWarrior Link Map Assembly Source File Assembly Source File CodeWarrior Disassembled File
.xSYM
255
Extension
.c++ .cc .hh .hpp .i .icc .m .mm
Explanation
C++ Source File C++ Source File C++ Header File C++ Header File C Inline Source File C++ Inline Source File Object C Source File Object C++ Source File C Source File C++ Source File C++ Source File C and C++ Header File Java Class File Java Archive File Java Source File Java Source File Java Import Mapping Dump Java Constructor File Java Manifest File
.c .cp .cpp .h
Default Java
Java
256
Extension
.a .lib .o .o
Explanation
(Static) Archive Library Library File Object File Object (Relocatable) Library or Kernel Module Object File Precompiled Header Source File Precompiled Header Source File
Factory Settings
Click this button to change all modified options to their default values in the current preference or settings panel.
Failure
Choose from this pop-up menu a sound to play after a Bring Up To Date or Make operation fails.
File Type
Enter in this field the four-character file type for the selected file mapping in the File Mappings list.
257
Font
Choose from the Font options the typeface to use for displaying text in editor windows. This setting behaves in two different ways, depending on the current IDE state: No editor windows openthe setting modifies the default font. All editor windows take on the default font. Editor windows openthe setting modifies the font displayed in the frontmost editor window only. Other editor windows remain unaffected. The default font remains unchanged.
Font preferences
Select the Font preferences option to remember font settings for each file in a project. Clear the option to use the default font settings every time the IDE opens each file. The Font & Tabs preference panel defines the default settings.
Foreground
Use the Foreground option to configure the color of any text not affected by the Activate Syntax Coloring or Activate Browser Coloring options. Click the color swatch to change the current color.
258
G-I
Grid Size X
In the Grid Size X field enter the number of pixels to space between markings on the xaxis of the Layout Editor grid.
Grid Size Y
In the Grid Size Y field enter the number of pixels to space between markings on the yaxis of the Layout Editor grid.
259
Host Flags
The Host Flags list pop-up defines the host platforms which can use the selected access path. The settings include: Noneno host can use this access path. Allall hosts can use this access path. Windowsonly use this path for Windows build targets.
Import Panel
Click Import Panel to load the contents of a previously saved Extensible Markup Language (XML) file into the active preference or settings panel.
Initial directory
In this field enter the initial directory for use with the external debugger. Alternatively, click Browse to open a dialog box. Use the dialog box to select the initial directory.
260
K-L
Keywords
Use the Keywords option to configure the color of C, C++, and Java programming languages keywords displayed in editor windows when the Activate Syntax Coloring option is enabled. Coloring does not include macros, types, variables defined by system interface files, or variables defined in source code. Click the color swatch next to Keywords to set the color.
Launch Editor
Enter in the Launch Editor field a command-line expression that specifies the third-party text editor that the CodeWarrior IDE runs to edit text files. The IDE expands the %file variable of the command-line expression into the full file path. For example, to run the Emacs text editor to edit text files, enter this command-line expression: runemacs %file Consult the documentation provided with the third-party text editor for more information about using command lines.
261
Level
Choose from the Level options the amount of information reported for IDE plug-ins in development. This information is useful for diagnosing plug-in behavior or for viewing information about the properties of installed plug-ins. Choose one of these levels of plug-in diagnostic information: None (default)The IDE does not activate plug-in diagnostics or produce output. Errors OnlyThe IDE reports problems encountered while loading plug-ins. These problems appear in a new text file after the IDE starts up. All InfoThe IDE reports information for each installed plug-in, such as problems with plug-in loading, optional plug-in information, and plug-in properties. This information appears in a new text file after the IDE starts up. The text file also contains a complete list of installed plug-ins and their associated preference panels, compilers, and linkers. The IDE allows saving and printing the text file. Use the file as an error reference for troubleshooting plug-ins. The text file also provides suggestions for correcting general plug-in errors.
262
Linker
Use the Linker option menu to select the linker to use with the project. The choices available are always dependent on the plug-in linkers that are available to the CodeWarrior IDE. To learn more about the linkers, see the appropriate Targeting manual.
Output Directory
Use the Output Directory caption to show the location the IDE places a final linked output file. The default location is the directory that contains your project file. Select Choose to specify the location path.
Post-linker
Use the Post-linker option to select a post-linker that performs additional work (such as format conversion) on the final executable file. For more information see the appropriate Targeting manual.
263
Pre-linker
Use the Pre-linker option to select a pre-linker that performs additional work on the object code in a project. This work takes place before the IDE links the object code into the final executable file. For more information about the pre-linkers available, see the build targets Targeting manual.
Projects
Enter the number of recent projects to display in the Open Recent submenu.
Project Commands
Select the Project Commands option to add Project menu commands to contextual menus. Clear the option to remove the commands from the contextual menus.
Project operations
A bullet in the Project operations column, whose label appears at left, indicates that the IDE ignores matching folders for project operations. Such operations include dragging a folder into the Project window, building a project, or searching access paths after choosing File > Open.
Recommended
Select the Recommended option to allow the number of concurrent compiles suggested by the IDE. This suggestion takes into account the number of active Central Processing Units (CPUs) on the host computer.
Regular Expression
Enter in the Regular Expression field a text pattern to match against folder names. The IDE excludes matching folders and their contents from selected project operations or findand-compare operations.
264
Revert Panel
Click Revert Panel to revert all modified options in the current preference or settings panel to the values present when the panel was originally opened.
265
Script
Choose from the Scripts options the script system (language) used to display text in editor windows. This setting behaves in two different ways, depending on the current IDE state: No editor windows openthe setting modifies the default script system. All editor windows take on the default script system. Editor windows openthe setting modifies the script system displayed in the frontmost editor window only. Other editor windows remain unaffected. The default script system remains unchanged.
Selection position
Select the Selection position option to remember these items for each editor window: visible text insertion-point location selected text Clear the option to open each editor window according to default settings and place the insertion point at the first line of text. NOTE The IDE must be able to write to the file in order to remember selection position.
266
Size
Choose from the Size options the font size used to display text in editor windows. This setting behaves in two different ways, depending on the current IDE state: No editor windows openthe setting modifies the default font size. All editor windows take on the default font size. Editor windows openthe setting modifies the font size displayed in the frontmost editor window only. Other editor windows remain unaffected. The default font size remains unchanged.
Strings
Use the Strings option to configure the color of anything that is not a comment, keyword, or custom keyword and displayed in editor windows when the Activate Syntax Coloring option is enabled. Sample strings include literal values, variable names, routine names, and type names. Click the color swatch next to Strings to set the color.
267
Success
Choose from the Success options a sound to play after a Bring Up To Date or Make operation succeeds.
Symbolics
Enter the number of recent symbolics files to display in the Open Recent submenu.
System Paths
Click the System Paths radio button to display the System Paths pane in the Access Paths preference panel.
Tab Size
Enter in the Tab Size field the number of spaces to substitute in place of a tab character in text. This number applies to the Tab Inserts Spaces option.
268
Target Name
Use the Target Name text box to set or modify the name of the current build target. This name appears in the Targets view in the Project window. This name is not the name assigned to the final output file, that is set in the Linker panel for the build target.
Type
Choose from the Type options the desired source-tree path type: Absolute PathThis source-tree type is based on a file path. Environment VariableThis source-tree type is based on an existing environmentvariable definition. Registry KeyThis source-tree type is based on an existing Windows registry key entry.
269
270
User Paths
Click this radio button to display the User Paths pane in the Access Paths preference panel.
271
User Specified
Select the User Specified option to stipulate the number of concurrent compiles to allow in the IDE. Enter the desired number in the text box beside the option. NOTE The IDE accommodates a maximum of 1024 concurrent compiles. However, there is a point where the host system becomes compute-bound, and allowing more processes only adds overhead. For a single-processor system, the practical limit is approximately 12 concurrent compiles.
Value
The Value text box defines the value of the variable defined in the Variable text box that will be passed to a host application when control is transferred to it by the IDE.
Variable
The Variable text box defines the name of a variable to be passed to a host application when control is transferred to it by the IDE.
VCS Commands
Select the VCS Commands option to add VCS menu commands to contextual menus. Clear the option to remove the commands from the contextual menus. Refer to the documentation that came with the version control system to learn about using it with the CodeWarrior IDE.
W-Z
272
Working Directory
Enter the path to the default directory to which the current project has access.
Workspaces
Enter the number of recent workspace files to display in the Open Recent submenu.
273
274
VII
Menus
This section contains these chapters: IDE Menus Menu Commands
275
276
22
IDE Menus
This chapter provides an overview of CodeWarrior IDE menus and their commands. This chapter lists the IDE menus under each menu layout. For each menu, a table shows this information: Menu commandthe name of each command in the menu. Descriptiona short description of each command. This chapter has these sections: Windows Menu Layout
File Menu
The File menu contains commands for opening, creating, saving, closing, and printing source files and projects. The File menu also provides different methods for saving edited files. Table 22.1 File menu commands Menu command
New Text File New
Explanation
Creates new empty text file. Creates new projects using the New Project wizard or project stationery files. Opens source and project files for editing and project modification operations. Opens the file specified in the Find and Open File dialog or from the selected text in the active window. Closes the active window.
Open
Close
277
IDE Menus
Windows Menu Layout
Table 22.1 File menu commands (continued) Menu command
Save Save All Save As
Explanation
Saves the active file using the editor windows filename. Saves all open editor windows. Saves a copy of the active file under a new name and closes the original file. Saves a copy of the active file without closing the file. Discards all changes made to the active file since the last save operation. Opens a workspace that you previously saved. Closes the current workspace. (You cannot close the default workspace.) Saves the current state of onscreen windows, recent items, and debugging. Saves an existing workspace under a different name. Imports the components from another catalog into the current catalog. Closes the current catalog and its associated Catalog Components window and Component Palette. Imports a project file previously saved in extensible markup language format (XML) and converts it into project file format. Exports the active project file to disk in extensible markup language (XML) format. Displays the Page Setup dialog for setting paper size, orientation, and other printer options. Displays the Print dialog for printing active files, and the contents of Project, Message, and Errors & Warning window contents. Displays a submenu of recently opened files and projects that can be opened in the IDE. Quits the CodeWarrior IDE.
Save Workspace
Close Catalog
Import Project
Export Project
Page Setup
Open Recent
Exit
278
IDE Menus
Windows Menu Layout
Edit Menu
The Edit menu contains all customary editing commands, along with some CodeWarrior additions. This menu also includes commands that open the Preferences and Target Settings windows. Table 22.2 Edit menu commands Menu command
Undo
Explanation
Undoes the last cut, paste, clear, or typing operation. If you cannot undo the action, this command changes to Cant Undo.
Redo
Redoes the action of the last Undo operation. If you cannot redo the action, this command changes to Cant Redo.
Cut
Removes the selected text and places a copy of it on the Clipboard. Copies the selected text and places a copy of it on the Clipboard. Places the contents of the Clipboard at current insertion point or replaces the selected text. Removes the selected text without placing a copy on the Clipboard. Selects all text in current editor window or text box for cut, copy, paste, clear, or typing operations. Selects text between the nearest set of parenthesis, braces, or brackets. Moves selected text one tab stop to the left. Moves selected text one tab stop to the right. Shortcut for selecting the previous item that appears in the Code Completion window. Shortcut for selecting the next item that appears in the Code Completion window. Opens the Code Completion window.
Copy
Paste
Delete
Select All
Balance
Complete Code
279
IDE Menus
Windows Menu Layout
Table 22.2 Edit menu commands (continued) Menu command
Preferences
Explanation
Opens the IDE Preferences window where you can set general IDE, editor, and layout options. Opens the projects Target Settings window where you can set target, language, code generation, linker, and editor options.
Target Settings (the name changes, based on the name of the active build target) Version Control Settings
Opens the VCS Settings window to enable activation of a version control system and its relevant settings. Opens the Customize IDE Commands window where you can create, modify, remove menus, menu commands, and key bindings.
View Menu
The View menu contains commands for viewing toolbars, the class browser, the Message window, and other windows. Table 22.3 View menu commands Menu command
Toolbars
Explanation
Use the Toolbars menu to show, hide, reset, and clear window and main toolbars. Opens or brings to the front a Project Inspector window. Opens or brings to the front a Browser Contents window. Opens or brings to the front a New Class Browser window. Opens or brings to the front a Class Hierarchy window.
Class Hierarchy or Class Hierarchy Window Build Progress or Build Progress Window Errors & Warnings or Errors & Warnings Window
280
IDE Menus
Windows Menu Layout
Table 22.3 View menu commands (continued) Menu command
Processes or Processes Window Expressions or Expressions Window Global Variables or Global Variables Window
Explanation
Opens or brings to the front a Processes window.
Opens or brings to the front an Expressions window. Use to view, create, modify, and remove expressions. Opens or brings to the front a Global Variables window.
Search Menu
The Search menu contains commands for finding text, replacing text, comparing files, and navigating code. Table 22.4 Search menu commands Menu command
Find
Explanation
Opens the Find and Replace window for performing searches in the active editor window. Opens the Find and Replace window for replacing text in the active editor window. Opens the Find in Files window for performing searches in the active editor window. Finds the next occurrence of the find string in the active editor window. Finds the next occurrence of the find string in the next file listed in the Find windows File Set. Replaces the Find text box string with the selected text. Finds the next occurrence of the selected text in the active editor window. Replaces the replace string in the Replace text box with the selected text. Replaces the selected text with the Replace text box string, then performs a Find Next operation.
Replace
Find in Files
Find Next
Replace Selection
281
IDE Menus
Windows Menu Layout
Table 22.4 Search menu commands (continued) Menu command
Replace All
Explanation
Finds all matches of the Find text box string and replaces them with the Replace text box string. Searches for definition of the routine name selected in the active editor window using the projects source files. Returns to the previous CodeWarrior browser view. Moves to the next CodeWarrior browser view. Opens the Go To Line dialog where you can specify by line number where to position the text insertion point. Opens the Compare Files Setup window where you can choose to compare folders or files and merge their contents. Adds, removes, or changes the selected text in the destination file to match the selected text in the source file. Reverses the modifications made to the destination file by the Apply Difference command.
Find Definition
Compare Files
Apply Difference
Unapply Difference
Project Menu
The Project menu contains commands for manipulating files, handling libraries, compiling projects, building projects, and linking projects. Table 22.5 Project menu commands Menu command
Add Window Add Files
Explanation
Adds the active window to the project. Opens a dialog box that you can use to add multiple files to the active project. Opens the Create Group dialog box that you can use to add a new file group to the active project. The new file group appears below the selected file or group. Opens the Create Target dialog box that you can use to add a new build target to the active project. The new build target appears below the selected build target.
Create Group
Create Target
282
IDE Menus
Windows Menu Layout
Table 22.5 Project menu commands (continued) Menu command
Check Syntax
Explanation
Checks the active editor window or selected files in the project window for compilation errors. Preprocesses the active editor window or selected files in the project window and displays results in a new editor window. Precompiles the active editor window or selected files in the project window and stores results in a new header file. Compiles the active editor window or selected files in the project window. Disassembles the active editor window or selected files in the project window and displays results in a new editor window. Compiles all marked or modified files in the current build target of the active project. Compiles and links all marked or modified files in the current build target of the active project, saving the executable file. Stops the current compile and linking operation and cancels the remainder of the build process. Removes object code from one or more build targets in the project. Resets the cached locations of source files using the project access paths, and stores them for faster builds and project operations. Resets the location of all source files in the active project using the project access paths. Updates the modification dates of all source files in the active project. Compiles and links all marked or modified files in the current build target of the active window, then runs the built executable file. Uses the Set Default Project menu to choose the default project when more than one project is open in the IDE. Uses the Set Default Target menu to choose the default build target when more than one build target is present in the project file.
Preprocess
Precompile
Compile
Disassemble
Bring Up To Date
Make
Stop Build
283
IDE Menus
Windows Menu Layout
Window Menu
The Window menu contains commands that manipulate IDE windows. The menu lists the names of all open file and project windows. A checkmark appears beside the active window, and an underline indicates a modified and unsaved file. Table 22.6 Window menu commands Menu command
Close Close All Cascade
Explanation
Closes the active window. Closes all non-project windows. Arranges all editor windows so that only the title bar is visible. Tiles all editor windows horizontally on the screen so none overlap. Tiles all editor windows vertically on the screen so none overlap. Saves the active browser windows settings and applies it to other browser windows as they are opened.
Tile Horizontally
Tile Vertically
Help Menu
The Help menu contains commands for accessing the IDEs online help. Table 22.7 Help menu commands Menu command
CodeWarrior Help
Explanation
Launches a help viewer to display the online help. Click on a link to view a specific IDE topic. Launches a help viewer to display a glossary of common terms used in the CodeWarrior help and manuals. Launches a help viewer to a page for searching the CodeWarrior help and manuals. Launches a browser and automatically points you to the Freescale web site. Displays the CodeWarrior IDE version and build number information.
Index
Search
Freescale Website
284
23
Menu Commands
This section presents an alphabetical listing of all available menu commands in the CodeWarrior IDE. Menu commands that appear only on certain host platforms are documented. A menu command that has no host information is available on all hosts. Use this listing as a reference to find information about a specific menu command.
Add Files
The Add Files command opens a dialog which allows one or more files to be added to the project.
Add Window
The Add Window command adds the file in the active Editor window to the open project. The name of the menu command changes, based on the name of the active window. For example, if the name of the active window is MyFile, the name of the menu command changes to Add MyFile to Project.
285
Menu Commands
Align
Reveals the Align submenu with component alignment commands like Right Edges, Vertical Centers, and others. See also: Bottom Edges Horizontal Center Left Edges Right Edges To Grid Top Edges Vertical Center
All Exceptions
The All Exceptions command of the Java submenu tells the debugger to break every time an exception occurs. This behavior includes exceptions thrown by the virtual machine, your own classes, the debugger, classes in classes.zip, and so on. Java programs throw many exceptions in the normal course of execution, so catching all exceptions causes the debugger to break often.
Apply Difference
The Apply Difference command applies the selected difference from the source file into the destination file.
286
Menu Commands
Balance
The Balance command selects all text starting at the current insertion point and enclosed in parentheses (), brackets [], or braces {},
Bottom Edges
The Bottom Edges command of the Align submenu aligns the bottom edges of the selected components.
Break
The Break command temporarily suspends execution of the target program and returns control to the debugger. See also: Stop.
Bring To Front
The Bring To Front command moves the selected objects so that they are displayed in front of all other objects.
Bring Up To Date
The Bring Up To Date command updates the current build target in the active project by compiling all of the build targets modified and touched files.
287
Menu Commands
Browser Contents
The Browser Contents command opens the Browser Contents window. This command is not available if the Enable Browser option is not activated.
Cascade
The Cascade command arranges open editor windows one on top of another, with their window titles visible.
Check Syntax
The Check Syntax command checks the syntax of the source file in the active Editor window or the selected files in the open project window. If the IDE detects one or more errors, a Message window appears and shows information about the errors. The Check Syntax command is not available if the active Editor window is empty or no project file is open. Check Syntax does not generate object code. Press Esc key to abort the syntax-checking process.
Class Browser
The Class Browser command opens a Class Browser window. This command is unavailable if the Enable Browser option is not enabled.
288
Menu Commands
Clear
The Clear command removes the selected text. This menu command is equivalent to pressing the Backspace or Delete key.
Close
The Close command closes the active window.
Close All
The Close All command closes all open windows of a certain type. The name of this menu command changes, based on the type of item selected. For example, select one of several open editor windows, the menu command changes its name to Close All Editor Documents.
Close Catalog
The Close Catalog command closes the current catalog and removes the catalog from the Component Catalog window and the Component Palette.
289
Menu Commands
Close Workspace
This command closes the current workspace. You cannot close the default workspace, but you can choose whether to use it by toggling the Use default workspace option in the IDE Extras preference panel.
Complete Code
The Complete Code command opens the Code Completion window. Use this window to help you automatically complete programming-language symbols as you type them in the active editor window.
CodeWarrior Glossary
The CodeWarrior Glossary command opens and displays a list of vocabulary terms used by the CodeWarrior manuals and online help.
CodeWarrior Help
This command opens the online help for the CodeWarrior IDE.
Collapse Window
The Collapse Window command collapses the active window so that only its title is visible.
Compare Files
The Compare Files command opens the Compare Files Setup window. Use it to choose two files or folders for comparison and merging. After choosing the items, a comparison window appears that shows differences between the items.
290
Menu Commands
Compile
The Compile command compiles selected source files into binary files. The IDE compiles source files that are: part of the current project and open in the active Editor window, or selected files, segments, or groups in a project window.
Copy
The Copy command copies selected text to the system Clipboard. If the Message Window is active, the Copy command copies all text in the Message Window to the Clipboard.
Copy to Expression
The Copy to Expression command copies the variable selected in the active pane to the Expressions window.
Create Design
This command creates a new design in the current project. The new design appears in the Design tab of the project window. You cannot create a design if each build target in the project already belongs to a design.
Create Group
The Create Group command creates a new group in the current project. This command is active when the Files view is visible in the project window.
Create Target
The Create Target command creates a new build target in the current project. This command is active when the Targets view is visible in the project window.
Cut
The Cut command copies the selected text to the system Clipboard, replacing the previous Clipboard contents, and removes it from the current document or text box.
291
Menu Commands
Delete
The Delete command removes selected text without placing it on the system clipboard. This menu command is equivalent to pressing the Backspace or Delete key.
Disassemble
The Disassemble command disassembles the compiled source files selected in the project window. After disassembling a file, the IDE creates a .dump file that contains the files object code. The .dump file appears in a new window after the IDE completes the disassembly process.
Display Grid
The Display Grid command toggles the visibility of grid lines in the layout window. When checked, the grid lines appear, otherwise, no grid is visible.
Menu Commands
Exit
The Exit command exits the CodeWarrior IDE immediately, provided that: all changes to the open editor files are already saved, or the open editor files are not changed. If a Project window is open, the IDE saves all changes to the project file before exiting. If an Editor window is open and changes are not saved, the CodeWarrior IDE asks if you want to save your changes before exiting.
Expand Window
The Expand Window command expands a collapsed window (a window with only its title visible). Only available when a collapsed window is currently active.
Export Project
The Export Project command exports a CodeWarrior project to a file in XML format. The IDE prompts for a name and location to save the new XML file.
Find
The Find command opens the Find and Replace window to perform find operations within the active file.
293
Menu Commands
Find Definition
The Find Definition command searches for the definition of the selected routine name in the active window. Searching occurs in the source files belonging to the open project. If the IDE finds the definition, the source file that contains the definition appears in an Editor window, and the routine name appears highlighted. If the IDE finds more than one definition, a Message window appears warning of multiple definitions. If the IDE does not find a definition, a system beep sounds. NOTE Select the Activate Browser option in the Build Extras target settings panel and re-compile the project in order to use the Find Definition command.
Find in Files
The Find in Files command opens the Find in Files window. This window allows you to perform find-and-replace operations across multiple files using specified search criteria.
Find Next
The Find Next command searches for the next occurrence of the Find text box string in the active window.
294
Menu Commands
Find Previous
The Find Previous command searches for the previous occurrence of the user defined string in the active window.
Find Reference
The Find Reference command searches for the definition of the selected routine name in the active Editor window, using the online help system specified in the IDE Extras preference panel. If the IDE does not find a definition, a system beep sounds.
Find Selection
The Find Selection command searches for the next occurrence of the selected text in the active Editor window.
295
Menu Commands
Go Back
The Go Back command returns to the previous view in the CodeWarrior browser.
Go Forward
The Go Forward command moves to the next view in the CodeWarrior Browser (after you select Go Back command to return to previous view).
Go to Line
The Go to Line command opens the Line Number dialog box. Enter a specific line number to move the text-insertion point. If the line number specified exceeds the number of lines in the file, the text-insertion point moves to the last line in the file.
296
Menu Commands
Horizontal Center
The Horizontal Center command of the Align submenu aligns the horizontal centers of the selected components.
Import Components
The Import Components command imports components from another catalog for use with the current catalog.
Import Project
The Import Project command imports project files previously saved in a XML file with the Export Project command.
297
Menu Commands
K-L
Left Edges
The Left Edges command of the Align submenu aligns the left edges of the selected components.
M-N
Make
The Make command builds the selected project by compiling and linking its modified and touched files. The results of a successful build depends on the selected project type.
Maximize Window
Windows equivalent of Expand Window. See also: Expand Window
Freescale Website
The Freescale Website command launches a web browser and displays the Freescale web site.
Minimize Window
Windows equivalent of Collapse Window. See also: Collapse Window
New
The New command opens the New window. Use the New window to create new projects, files, components, and objects.
298
Menu Commands
New Class
The New Class command opens the New Class wizard. Use this wizard to help create new classes in a project.
New Event
The New Event command opens the New Event window. Use this window to help create new events for a selected class in a project.
New Method
The New Method command opens the New Method window. Use this window to create a new method for a selected class in a project.
New Property
The New Property command opens the New Property window. Use this window to create a new property for a selected class in a project.
299
Menu Commands
Open
The Open command opens an existing project or source file.
Open Recent
The Open Recent menu item reveals a submenu of recently opened projects and files. Choose a file from the submenu to open that item. If two or more files in the submenu have identical names, the submenu shows the full paths to those files in order to distinguish between them.
Open Workspace
This command opens a workspace file that you previously saved.
P-Q
Page Setup
The Page Setup command sets the options used for printing CodeWarrior IDE files.
300
Menu Commands
Paste
The Paste command replaces the selected text with contents of the system clipboard into the active Editor window or text box. If no text is selected, the IDE places the clipboard contents at the text-insertion point. The Paste command is unavailable if the Message window is active.
Precompile
The Precompile command precompiles the text file in the active Editor window into a precompiled header file.
Preferences
The Preferences command opens the IDE Preferences window. Use this window to change the global preferences used by the CodeWarrior IDE.
Preprocess
This command preprocesses selected source files in any language that has a preprocessor, such as C, C++, and Java.
Print
The Print command prints CodeWarrior IDE files, as well as Project, Message, and Errors and Warnings window contents.
Project Inspector
Opens the Project Inspector window so that you can view information about your project. You can also use this window to manipulate file-specific information.
Redo
After undoing an operation, you can redo it. For example, after choosing the Undo Typing command to remove some text that you typed, you can choose Redo Typing to override the undo and restore the text.
301
Menu Commands
You can enable the Use multiple undo option in the Editor Settings preference panel to allow greater flexibility with regard to Undo and Redo operations. After enabling this option, you can choose Undo multiple times to undo multiple actions, and you can Redo multiple times to redo multiple actions.
Replace
The Replace command opens the Find and Replace dialog box. Use this dialog box to perform find-and-replace operations within the active file.
Replace All
The Replace All command finds all occurrences of the Find string and replaces them with the Replace string. If no text is selected in the active Editor window and there is no text in the Find text box, the IDE dims this menu command.
302
Menu Commands
Replace Selection
The Replace Selection command substitutes the selected text in the active window with the text in the Replace text box of the Find window. If no text is selected in the active Editor window, the IDE grays out the menu command. This menu command replaces one instance of a text string without having to open the Find window. Suppose that you replaced all occurrences of the variable icount with jcount. While scrolling through your source code, you notice an instance of the variable icount misspelled as icont. To replace this misspelled variable with jcount, select icont and the Replace Selection menu command.
303
Menu Commands
Reset
The Reset command resets the program and returns control to the IDE.
Resize
The Resize command reveals the Resize submenu. See also: To Largest Height To Largest Width To Smallest Height To Smallest Width
Restart
The Restart command terminates the current debugging session, then starts a new debugging session.
304
Menu Commands
Restore Window
The Restore Window command restores a minimized window (a window reduced to an item in the task bar).
Revert
The Revert command restores the last saved version of the active Editor window.
Right Edges
The Right Edges command of the Align submenu aligns the right edges of the selected components.
Save
The Save command saves the contents of the active window to disk.
Save A Copy As
The Save A Copy As command saves the active window to a separate file. This command operates in different ways, depending on the active window.
Save All
The Save All command saves all currently open editor files.
Save As
The Save As command saves the contents of the active window to disk under a different name.
305
Menu Commands
Save Workspace
This command saves the current state of onscreen windows and recent items. Use the dialog box that appears to name the workspace and navigate to a location in which to store the workspace file.
Save Workspace As
This command saves a copy of an existing workspace. Use this command to save the workspace under a different name.
Select All
The Select All command selects all text in the active window or text box. This command is usually used in conjunction with other Edit menu commands such as Cut, Copy, and Clear.
Send To Back
The Send To Back command moves the selected window behind all other windows.
Shift Left
The Shift Left command shifts the selected source code one tab to the left. The amount of shift is controlled by the Tab Size option.
Shift Right
The Shift Right command shifts the selected source code one tab to the right. The amount of shift is controlled by the Tab Size option.
306
Menu Commands
Show Types
The Show Types command displays the data types of all local and global variables that appear in the active variable pane or variable window.
Stop
This command temporarily suspends execution of the target program.
Stop Build
The Stop Build command halts the build currently in progress.
Switch to Monitor
This command transfers control from the CodeWarrior debugger to an external third-party debugger.
307
Menu Commands
T-U
Target Settings
The Target Settings command displays the Target Settings window. This window contains settings panels used by the active build target. The name of the menu command changes, based on the name of the current build target. For example, if the name of the current build target is ReleaseTarget, the name of the menu command changes to ReleaseTarget Settings.
308
Menu Commands
Tile Horizontally
This command arranges open editor windows horizontally so that none overlap. Figure 23.2 Tile horizontallyexample
Tile Vertically
This command resizes open editor windows vertically and arranges them so that none overlap. Figure 23.3 Tile verticallyexample
To Grid
The To Grid command of the Align submenu aligns selected components to a grid in the layout. You can display or hide the on screen grid.
To Largest Height
The To Largest Height command of the Resize submenu resizes the selected components to match the height of the component with the largest height.
309
Menu Commands
To Largest Width
The To Largest Width command of the Resize submenu resizes the selected components to match the width of the component with the largest width.
Toolbars
The Toolbars command reveals the Toolbars submenu. See also: Show Window Toolbar Hide Window Toolbar Reset Window Toolbar Clear Window Toolbar Show Main Toolbar Hide Main Toolbar Reset Main Toolbar Clear Main Toolbar Hide Floating Toolbar Show Floating Toolbar Reset Floating Toolbar Clear Floating Toolbar
Top Edges
The Top Edges command of the Align submenu aligns the top edges of the selected components.
To Smallest Height
The To Smallest Height command of the Resize submenu resizes the selected components to match the height of the component with the smallest height.
To Smallest Width
The To Smallest Width command of the Resize submenu resizes selected components to match the width of the component with the smallest width.
310
Menu Commands
Unapply Difference
The Unapply Difference command reverses the action of the Apply Difference command in a file-comparison window.
Undo
The Undo command reverses the last action. The name of this menu command changes based upon the editor settings as well as the most recent action. For example, after typing text in an open Editor window, the Undo command changes its name to Undo Typing. Choose the Undo Typing command to remove the typed text. By default, only one undo or redo action is allowed. If the Use multiple undo option is enabled, undo and redo can act upon multiple actions.
Ungroup
The Ungroup command separates a selected group so that you can move each component independently.
V-Z
Vertical Center
The Vertical Center command of the Align submenu aligns the vertical centers of the selected components.
View As Default
The View As Default command displays the selected variable in its default format, based on the variables type.
311
Menu Commands
View As Hexadecimal
The View As Hexadecimal command displays the selected variable as a hexadecimal value.
View Disassembly
This command changes the data view to show language disassembly.
View Memory
The View Memory command displays the contents of memory as a hexadecimal/ASCII character dump.
View Memory As
The View Memory As command displays the memory that a selected variable occupies or the memory to which a selected register points.
View Mixed
This command changes the data view to show source code intermixed with assembly code.
View Source
This command changes the data view to show source code.
View Variable
The View Variable command creates a separate window to display a selected variable.
Zoom Window
The Zoom Window command expands the active window to its previously set size. Choose Zoom Window a second time to return the window to its original size.
312
Index
Symbols
.*[_]Data 214 \(.*\) 214 Add Files Button 117 Menu command 285 Add Gray background behind IDE 270 Add source trees 216 Add Window menu command 285 Advanced topics for projects 34 Align submenu 286, 287, 297, 298, 305, 309, 310, 311 Horizontal Center command 297 Left Edges command 298 Vertical Center command 305, 309, 310, 311 All Exceptions command 286 All Info option, in Plug-in Diagnostics 262 All Text option button 104, 107, 110 Alphabetical sorting of Functions list pop-up 98, 99 Always Search User Paths option 248 Ancestor pop-up 156 Anchor Floating Toolbar command 286 Appears in Menus 188 Appears in Menus 187 Appears in Menus checkbox 121 Application field 248 Apply button 130 Apply Difference command 131, 286, 311 Arguments field 248 Assigning Quote Key prefix 203 Attempt To Use Dynamic Type of C++, Object Pascal and SOM Objects option 248 Auto Indent option 248 Auto Repeat command 187 Auto Target Libraries option 248 Auto-complete code 88 Automatic Invocation option 249
A
About CodeWarrior menu command 285 Dockable windows 59 Files page in Project window 42 Markers 100 Projects 25 Workspaces 69 Absolute Path option in Source Trees preference panel 269 in Type list box 269 Abstract, icon for 151 Access Filter display 153 Access Paths Settings panel 213, 235 Columns Recursive Search 237 Search Status 237 Options Add 236 Add Default 236 Always Search User Paths 236 Change 236 Host Flags 236 Remove 236 System Paths 268 User Paths 271 Action option 187 Activate Automatic code completion 88 Activate Browser Coloring option 247 in Text Colors panel 258 Activate Browser Option in Build Extras panel 294 Activate Syntax Coloring option 247, 251 in Text Colors panel 258, 261, 267 Add button 236 Add Default button 247
B
Background option 249 Background, desktop Removing from behind IDE 270 313
Seeing behind IDE 270 Balance Flash Delay option 249 Editor Settings panel 250 Balance menu command 287 Balance punctuation 86 Toggling 87 Balance While Typing option 249, 250 Balloon Help 254 Base Classes field 166 Bottom Edges command 287 Boxes Destination 126 Pane Collapse 133 Pane Expand 133 Source 126 Break menu command 287 Break on C++ Exception menu command 287 Break on Java Exceptions command 287 Bring To Front menu command 287 Bring Up To Date menu command 49, 257, 287 Browse button 111 Browser Access Filters 144 Activate Coloring 228 Activate Coloring option 258 Class Browser window 143 Classes pane 149 Collapsing panes 148 Commands 223 Commands option 250 Editor Settings panel 260 Creating New classes 149, 164 New data members 170 New member functions 168, 170 Database defined 137 Expanding panes 148 Hierarchy windows 157 Member Functions pane 151 Menu 250 Navigating data 140 Overview 21 Path option 250 Printing class hierarchies 157
Purpose of 137 Setting options 137 Source pane 153 Status area 153 Viewing data by contents 160 Viewing data by inheritance 157 Wizard 163 Working with 137 Browser Contents 144 Command 288 Browser Contents Window 159 Symbols list 159 Build Before Running option 250 Build Extras panel options Initial Directory field 260 Use modification date caching 270 Build Extras settings panel 238, 239 Options Application 239 Arguments 239 Cache Subprojects 239 Dump internal browse information after compile 239 Generate Browser Data From 239 Initial directory 239 Build Extras target settings panel 294 Build Progress menu command 288 Build Progress Window menu command 288 Build Settings panel options Include file cache 260 Play sound after Bring Up To Date & Make 263 Save open files before build 265 Show message after building up-to-date project 267 Success 268 Use Local Project Data Storage 270 Build Settings preference panel 208 Options Build before running 208 Compiler thread stack 208 Save open files before build 208 Show message after building up-to-date project 208
314
Use Local Project Data Storage 208 Build system overview 21 Build targets 27 Configuring 51 Creating 50 Management 46 Managing 50 Moving 47 Removing 47, 50 Renaming 48, 51 Setting default 51 Strategies for 37 Buttons Add 236 Add Default 247 Add Files 117 Apply 130 Browse 111 Cancel 104, 106 Change 236 Clear List 117 Compare 127 Delete 194 Edit 228 Export 201 Export Panel 255 Factory Settings 257 Find 104, 106, 109 Find All 104, 109 Import 202 Installed Products 285 New Binding 201 Next Result 120 Previous Result 120 Redo 131 Remove 236 Remove a Set 117 Replace 106, 110 Replace All 106, 110 Resetting in toolbars 198 Save 194 Save this Set 117 Stop 110, 120 Unapply 130
C
Caching #include files 260 Precompiled headers 260 Cant Redo menu command 279 Cant Undo menu command 279 Cancel button 104, 106 Cancel button, in Remove Markers window 100 Cascade menu command 288 Case sensitive Checkbox 104, 107, 110, 127 Option 251 Change button 236 Changing Find strings 122 Line views in a hierarchical window 157 Source trees 217 Check Syntax command 288 Checkbox Appears in Menus 121 Case sensitive 104, 107, 110, 127 Compare Text File Contents 127 Ignore extra space 127 Match whole word 104, 107, 110 Numeric Keypad Bindings 200 Only show different files 127 Project headers 113 Project sources 113 Regular expression 104, 107, 110 Search cached sub-targets 113 Search selection only 104, 107 Search sub-folders 111 Search up 104, 107 Stop at end of file 104, 107 System headers 113 Checkout Status column in Files view of Project window 43 Child windows, defined 59 Choosing a default project 33 315
Linkers 181 One character from many in regular expressions 124 Class Creating 149, 164 Data viewing from hierarchy windows 147 Declaration 153 Hierarchy 144 Hierarchy menu command 288 Hierarchy Window menu command 288 Hierarchy windows Purpose of 155 Working with 155 Class Browser Menu command 288 Purpose of windows 143 Working with windows 143 Class Browser window 143 Classes pane 145 Data members Pane 145 Member Functions pane 145 Status area 145 Classes Hiding pane for 150 Option 228 Showing pane for 150 Sorting list of 150 Classes pane 149 in Class Browser window 145 classes.zip 286 Clear Floating Toolbar command in Toolbar submenu 289 Clear List button 117 Clear Main Toolbar menu command 289 Clear menu command 289 Clear Window Toolbar command in Toolbar submenu 289 Client area, defined 59 Clone Existing Target option 50 Close Command 34, 56 Menu command 289 Projects 34
Close All Command 56 Menu command 289 Close All Editor Documents menu command 289 Close Catalog menu command 289 Close Workspace menu command 290 Closing All files 56 Dockable windows 67 Files 56 Workspaces 71 Code Adding markers to 101 Completing 88 Locating 97 Navigating 97 Code column in Files view of Project window 42 Code Completion 88 Activating automatic behavior 88 Configuration 88 Deactivating automatic behavior 89 Delay option 251 for data members 93 for parameter lists 94 Navigating window 92 Preference panel 218 Options Automatic Invocation 219 Case sensitive 219 Code Completion Delay 219 Display deprecated items 219 Window follows insertion point 219 Selecting items 93 Triggering by keyboard 89 Triggering from IDE menu bar 89 Window 90 Code Formatting preference panel 220 Options Close Braces, Brackets, and Parentheses 221 Format Braces 221 Indent Braces 221
316
Indent Case Within Switch Statement 221 Indent Code Within Braces 221 Language Settings 220 Place Else On Same Line As Closing Brace 221 Place Opening Brace On Separate Line 221 Use Automatic Code Formatting 220 Code Only option button 105, 107, 110 CodeWarrior Glossary command 290 Help menu command 290 Menu reference 277 Overview 17 CodeWarrior IDE Edit menu 279 File menu 277 Help menu 284 Project menu 282 Search menu 281 Window menu 280, 284 CodeWarriorU.com 15 Collapse Browser panes 148 Dockable windows 66 Non-debugging Windows option 251 Window menu command 290 COM 252 Command Actions Arguments 189 Defining (Windows) 189 Directory 189 Execute 189 Command Group 194 Delete 194 Commands 150 About CodeWarrior 285 Add Files 285 Add Window 285 Apply Difference 131, 286 Balance 287 Bottom Edges 287 Break 287
Break On C++ Exception 287 Break on Java Exceptions 287 Bring To Front 287 Bring Up To Date 287 Browser Contents 144, 288 Build Progress 288 Build Progress Window 288 Cant Redo 279 Cant Undo 279 Cascade 288 Check Syntax 288 Class Browser 288 Class Declaration 153 Class Hierarchy 144, 288 Class Hierarchy Window 288 Clear 289 Clear Main Toolbar 289 Close 34, 289 Close All 289 Close All Editor Documents 289 Close Catalog 289 Close Workspace 290 CodeWarrior Glossary 290 CodeWarrior Help 290 Collapse Window 290 Commands & Key Bindings 290 Compare Files 127, 290 Compile 291 Complete Code 290 Copy 291 Copy To Expression 291 Create Design 291 Create Group 291 Create Target 291 Cut 291 Delete 292 Diagonal Line 157 Disassemble 292 Display Grid 292 Enter Find String 122, 292 Enter Replace String 292 Errors and Warnings 292 Errors and Warnings Window 292 Exit 293
317
Expand Window 293 Export Project 34, 293, 297 Find 105, 293 Find and Open Filename 295 Find and Open File 295 Find And Replace 295 Find Definition 294 Find Definition & Reference 294 Find In Files 294 Find In Next File 294 Find In Previous File 294 Find Next 121, 294 Find Previous 121, 295 Find Previous Selection 295 Find Reference 295 Find Selection 122, 295 Freescale Website 298 Get Next Completion 296 Get Previous Completion 296 Go Back 144, 296 Go Forward 144, 296 Go To Line 296 Hide Classes 150 Hide Classes pane 153 Hide Window Toolbar 297 Import 202 Import Components 297 Import Project 34, 297 Make 298 Maximize Window 298 Minimize Window 298 Modify 187 New 298 New Class 299 New Class Browser 299 New Data Member 299 New Event 299 New Event Set 299 New Item 149 New Member Function 299 New Method 299 New Property 299 New Text File 300 Open 300
Open File 153 Open Recent 300 Open Scripts Folder 300 Open Workspace 300 Page Setup 300 Pane Collapse 148 Pane Expand 148 Precompile 301 Preferences 301 Print 301 Project Inspector 33 Redo 301 Refresh All Data 302 Remove Object Code 302 Remove Object Code & Compact 302 Remove Toolbar Item 198 Replace 108, 302, 303 Replace All 302 Replace and Find Next 303 Revert 305 Save Default Window 305 Save Workspace 306 Save Workspace As 306 Select All 306 Send To Back 306 Set Default Project 33, 306 Set Default Target 306 Shift Right 306 Show Classes 150 Show Classes pane 153 Show Inherited 145 Show private 146 Show protected 146 Show public 146 Show Types 307 Show Window Toolbar 297 Single Class Hierarchy Window 144 Sort Alphabetical 149, 150 Sort Hierarchical 149 Stack Editor Windows 307 Stop Build 307 Straight Line 157 Switch To Monitor 307 Synchronize Modification Dates 307
318
Unapply Difference 131 View as implementor 146 View as subclass 146 View As Unsigned Decimal 311, 312 View as user 146 View Disassembly 312 View Mixed 312 View Source 312 View Variable 312 Zoom Window 312 Commands & Key Bindings menu command 290 Commands tab 185, 187, 199 Commands&KeyBindings.mkb file 202 Comments Only option button 105, 107, 110 Comments option 251 Compare button 127 Compare Files Command 127 Menu command 290 Setup window 126 Case Sensitive checkbox 127 Compare button 127 Compare Text File Contents checkbox 127 Destination box 126 Ignore Extra Space checkbox 127 Only Show Different Files checkbox 127 Source box 126 Compare Text File Contents checkbox 127 Comparing files Differences, applying 131 Differences, unapplying 131 Explained 129 Overview 126 Setup 126, 127 Comparing folders Examining results 134 Explained 132 Overview 126 Setup 126, 128 Comparison Destination item 126 Source item 126
Compile menu command 291 Compiler Avoiding crashes 252 Option 251 Option, in Generate Browser Data From menu 259 Thread stack and avoiding compiler crashes 252 Thread Stack field 252 Complete Code menu command 290 Completing code 88 Component Object Model (COM) 252 Concurrent Compiles option 264 Concurrent Compiles panel options Use Concurrent Compiles 264 User Specified 272 Concurrent Compiles preference panel 209 Recommended 209 Use Concurrent Compiles 209 User Specified 209 Configuring Build targets 51 Code completion 88 Targets 51 Confirm Invalid File Modification Dates When Debugging option 252 Constants option 228 Context Popup Delay option 252 Contextual menus Using to dock a window 62 Conventions Figures 16 for manual 16 Keyboard shortcuts 16 Copy menu command 291 Copy To Expression command 291 Create Build targets 50 Custom project stationery 35 Design menu command 291 Files (Windows) 53 Group menu command 291 Member functions 151 New classes 149, 164
319
New data member 152, 170 New data members 170 New member function 168 New member functions 168 Projects using stationery 31 Subprojects 36 Target command 50 Target menu command 291 Targets 50 Cross-platform migration, and opening projects 32 Current Target List pop-up 41 Menu 198 Custom project stationery 35 Customize IDE Commands window 121, 185, 199, 200 Action 187 Appears in Menus 187, 188 Appears in Menus checkbox 121 Auto Repeat 187 Key Bindings 187 Name field 187 New Binding 187 New Group 188 Numeric Keypad Bindings checkbox 203 Cut command 291 CVS 214
D
Data column in Files view of Project window 42 Data members Completing code 93 Creating 152, 170 Identifier icons 151 Pane 152 in Class Browser window 145 Database navigation for browser 140 Deactivating automatic code completion 89 Debug column in Files view of Project window 43 Debug command 49 Debugger Overview 21 320
Declaration File field 165 Default Filename extensions 255 Projects 33 Size and position of windows, setting 305 Target, setting 51 Workspace Definition of 69 Option 269 Using 69 Definition of child windows 59 of client area 59 of default workspace 69 of docking 59 of IDE 13 of non-modal 61 of project 26 of regular expression 122 of symbols 102 of touch 42 of workspace 69 Delete menu command 292 Design view 33, 47 Desktop background Removing from behind IDE 270 Seeing behind IDE 270 Destination Box 126 Item, for comparison 126 Pane 130 Development-process cycle for software 17 Diagnostics Disabling for plug-ins 285 Enabling for plug-ins 285 Diagonal Line 157 Differences pane 131 Disable Plug-in diagnostics 285 Disable Third Party COM Plugins option 252 Disassemble menu command 292 Disclosure triangles Source Code pane 120 Display Deprecated Items option 253 Display Grid menu command 292 DLL 248
Do Nothing option 253 Do Nothing To Project Windows option 253 Dock bars 66 Dockable windows 59 About 59 Closing 67 Collapsing 66 Dock bars 66 Expanding 66 Moving 67 Suppressing 65 Turning off 65 Types 60 Working with 61 Docking a window 62 Defined 59 Window by using drag and drop 62 Windows of the same kind 62 Document Settings list pop-up 79 Documents option IDE Extras panel 253 Done button, in Remove Markers window 100 Drag and drop Editing option 253 Using to dock a window 62 Dump Internal Browse Information After Compile option 253 Dump memory 312
E
Edit Button 228 Menu 254, 279 Edit Commands option 254 Edit Language option 254 Editing Source code 83 Symbols, shortcuts for 86 Editor 75 Overview 20 Third-party support 271 Editor section, of IDE preference panels 218 Editor Settings panel
Options Balance Flash Delay 250 Browser Commands 260 Font Preferences 258 Insert Template Commands 260 Left margin click selects line 262 Project Commands 264 Relaxed C popup parsing 265 Selection position 266 Sort function popup 267 Use multiple undo 271 VCS Commands 272 Window position and size 273 Editor Settings preference panel 222 Options Balance Flash Delay 224 Balance while typing 223 Browser Commands 223 Default file format 224 Drag and drop editing 223 Edit Commands 223 Enable Virtual Space 223 Font preferences 223 Left margin click selects line 223 Project Commands 223 Relaxed C popup parsing 223 Selection position 223 Sort function popup 223 Use multiple undo 223 VCS Commands 223 Window position and size 223 Editor toolbar 78 Editor window 76 Adding panes to 80 Collapsing toolbar in 78 Expanding toolbar in 78 Line and column indicator 80 Other 79 Pane splitter controls 80 Removing panes from 81 Resizing panes 81 Selecting text in 83 Text editing area 80 Emacs text editor 261, 262
321
Empty Target option 50 Enable Automatic Toolbar Help option 254 Enable Browser option 288 Enable Virtual Space option 254 Enabling plug-in diagnostics 285 Enlarging panes, in browser 148 Enter Find String Command 122 Menu command 292 Enter Replace String menu command 292 Enums option 228 Environment Settings option 254 Environment Variable option in Type pop-up menu 269 of Source Trees preference panel 269 Errors and Warnings menu command 292 Errors and Warnings Window menu command 292 Errors Only option of Plug-in Diagnostics 262 Exceptions In Targeted Classes command in Java Exceptions submenu 293 Exit menu command 293 Expand Window menu command 293 Expanding Browser panes 148 Dockable windows 66 Export 201 Export Panel button 186, 207, 255 Export Project Command 34 Menu command 293, 297 to XML files 34 Extension field 255 External Editor Option 269 Support 271
F
Factory Settings button 257 Failure option 257 FDI 211, 270 and dockable windows 59 Fields 322
Application 248 Arguments 248 Base Classes 166 Compiler thread stack 252 Declaration File 165 Extension 255 File Type 257 Relative to class 165 Figure conventions 16 File Column in Files view of Project window 42 %file command-line string 261 File Commands&KeyBindings.mkb 202 File Compare Results window 129 Apply button 130 Destination pane 130 Differences pane 131 Pane resize bar 130 Redo button 131 Source pane 130 Unapply button 130 Undo button 130 File list 113 File Management 46 File Mappings list 251 File Mappings Settings panel 240 Options Add 241 Change 241 Compiler 241 Edit Language 241 Extension 240 File Mappings list 240 File Type 240 Flags 241 Ignored By Make flag 241 Launchable flag 241 Precompiled File flag 241 Remove 241 Resource File flag 240 File menu 277 File Modification icon 80 File Paths, viewing 43 File Set list 117
Box 117 File Type Field 257 Option 251 Filename extensions, default settings 255 Files Close all 56 Closing 56 Comparing 129 Creating (Windows) 53 Destination (for a comparison) 126 Inspecting 33 Moving 47 Opening 54 Print selections 57 Printing 56 Renaming 48 Replacing text in 108 Reverting 57 Save all 55 Saving 55 Saving copies 55 Searching (multiple) 118 Searching (single) 105 Source (for a comparison) 126 Tasks for managing 53 Touching 49 Touching all 49 Untouching 49 Untouching all 49 Working with 53 Files In Both Folders pane 133 Files Only In Destination pane 133 Files Only In Source pane 133 Files page, about 42 Files tab 47 Files view 33, 47, 49 Checkout Status column 43 Code column 42 Data column 42 Debug column 43 File column 42 Interfaces list pop-up 43 Sort Order button 43
Target column 43 Touch column 42 Find Button 104, 106, 109 by text selection 121 Command 293 Menu command 105 Single-file 103 Text/list box 109 Find All button 104, 109 Find and compare operations option Shielded Folders panel 258 Find and Open Filename menu command 295 Find and Open File Menu command 295 Find and Replace Menu command 295 Multiple-file 109 Single-file 106 Find and Replace window All Text option button 107 Cancel button 106 Case Sensitive checkbox 107 Code Only option button 107 Comments Only option button 107 Find button 106 Find text/list box 106 Match Whole Word checkbox 107 Regular Expression checkbox 107 Replace All button 106 Replace button 106 Replace With text/list box 106 Search Selection Only checkbox 107 Search Up checkbox 107 Stop At End Of File checkbox 107 Find Definition & Reference menu command 294 Find Definition menu command 294 Find In Files menu command 294 Find in Files window All Text option button 110 Case Sensitive checkbox 110 Code Only option button 110 Comments Only option button 110 Find All button 109
323
Find button 109 Find text/list box 109 In Files page 117, 118 Add Files button 117 Clear List button 117 File Set list 117 File Set list box 117 Remove A Set button 117 Save this Set button 117 In Files tab 110 In Folders page 111, 112 Browse button 111 By Type text/list box 111 Search In text/list box 111 Search Sub-Folders checkbox 111 In Folders tab 110 In Projects page 113, 114 File list 113 Project Headers checkbox 113 Project list box 113 Project Sources checkbox 113 Search Cached Sub-Targets checkbox 113 System Headers checkbox 113 Target list box 113 In Projects tab 110 In Symbolics page 115 Symbolics list 115 Symbolics list box 115 In Symbolics tab 110 Match Whole Word checkbox 110 Regular Expression checkbox 110 Replace All button 110 Replace button 110 Replace With text/list box 109 Stop button 110 Find In Next File menu command 294 Find In Previous File menu command 294 Find Next Command 121 Menu command 294 Using 121 Find Previous Command 121
Enabling in the Customize IDE Commands window 121 Menu command 295 Using 121 Find Previous Selection menu command 295 Find Reference Menu command 295 using option IDE Extras panel 258 Find Selection Command 122 Menu command 295 Find symbols with prefix 86 with substring 86 Find Text/list box 104, 106 Find window All Text option button 104 Cancel button 104 Case Sensitive checkbox 104 Code Only option button 105 Comments Only option button 105 Find All button 104 Find button 104 Find text/list box 104 Match Whole Word checkbox 104 Regular Expression checkbox 104 Search Selection Only checkbox 104 Search Up checkbox 104 Stop At End Of File checkbox 104 Finding text Overview 103 Flags pop-up menu 241 Ignored By Make flag 241 Launchable flag 241 Precompiled File flag 241 Resource File flag 240 Floating a window 64 Floating Document Interface (FDI) 211, 270 Floating window type 60 Focus bar 47 Folder Compare Results window 132 Files In Both Folders pane 133 Files Only In Destination pane 133
324
Files Only In Source pane 133 Pane Collapse box 133 Pane Expand box 133 Pane resize bar 133 Selected Item group 133 Folders Comparing 132 Searching (multiple) 112 Font & Tabs panel 226 Options Font 258 Scripts 266 Size 267 Tab indents selection 268 Tab Inserts Spaces 268 Tab Size 268 Font & Tabs preference panel 224, 226 Options Auto Indent 225 Font 225 Script 225 Size 225 Tab indents selection 225 Tab Inserts Spaces 225 Tab Size 225 Font option Font & Tabs panel 258 Font Preferences option Editor Settings panel 258 Font Settings 225 Foreground option Text Colors panel 258 Freescale Website command 298 Functions Creating new member 151 List pop-up 78 Sorting alphabetically 98, 99 List pop-up, using 98 Locating 97, 98 New Data Member 152 Option 228
Generate Browser Data From option 259 Compiler 259 Language Parser 259 Language Parser, Macro file 259 Language Parser, Prefix file 259 None 259 Generate Constructor and Destructor 166 Get Next Completion menu command 296 Get next symbol 86 Get Previous Completion menu command 296 Get previous symbol 86 Globals option 228 Go Back 144 Menu command 296 Go Forward 144 Menu command 296 Go To Line menu command 296 Going Back 99 Going Forward 99 Going to a particular line 99 Gray background Adding behind IDE. 270 Removing from behind IDE 270 Grid Size X option Layout Editor panel 259 Grid Size Y option Layout Editor panel 259 Grouping regular expressions 124 Groups Management 46 Moving 47 Removing 47 Renaming 48 Selected Item 133 Touching 49 Touching all 49 Untouching 49 Untouching all 49
H
Headers Caching precompiled headers 260 Help menu 284 Hide Classes 150 325
G
General section, of IDE preference panels 207
Pane 150, 153 Hide Floating Toolbar command 297 Hide Main Toolbar command in Toolbar submenu 297 Hide Window Toolbar command 297 Hierarchy Control 156 Hierarchy windows 157 Changing line views 157 Multi-Class 156 Single-Class 158 Using to view class data 147 Horizontal Center command 297 HTMLHelp (Windows) 102
I
Icons File modification 80 for data members 151 for member functions 151 IDE and threading 252 Code Completion window 90 Defined 13 Editing source code 83 Editor 75 Linkers 181 Menu reference 277 Preferences, working with 205 Project manager and build targets 26 Target settings, working with 231 Tools overview 20 Users Guide overview 13 Workspace 69 IDE Edit menu 279 IDE Extras panel Options Documents 253 Find Reference using 258 Launch Editor 261 Launch Editor w Line # 262 Projects 264 Symbolics 268 Use Default Workspace 269 Use External Editor 269 326
Use Multiple Document Interface 270 Use Script menu 271 Use ToolServer menu 271 Workspaces 273 Zoom windows to full screen 273 IDE Extras preference panel 210 Options Documents 210 Launch Editor 211 Launch Editor w Line # 211 Menu bar layout 210 Projects 210 Recent symbolics 210, 211 Use Default workspace 211 Use Multiple Document Interface 211 Use Third Party Editor 211 Use Third Party Editor option 271 IDE File menu 277 IDE Help menu 284 IDE Preference Panels Font & Tabs 226 Font Settings 225 List 207 IDE preferences Activate Browser Coloring 228 Activate Syntax Coloring 227 Add 214, 216 Auto Indent 225 Automatic Invocation 219 Background 227 Balance Flash Delay 224 Balance while typing 223 Browser Commands 223 Build before running 208 Case sensitive 219 Change 214, 216 Choose 216 Classes 228 Close Braces, Brackets, and Parentheses 221 Code Completion Delay 219 Comments 227 Compiler thread stack 208 Constants 228 Default file format 224
Disable third-party COM plug-ins 212 Display deprecated items 219 Documents 210 Drag and drop editing 223 Edit 228 Edit Commands 223 Enable Virtual Space 223 Enums 228 Find and compare operations 214 Font 225 Font preferences 223 Foreground 227 Format Braces 221 Functions 228 Globals 228 Indent Braces 221 Indent Case Within Switch Statement 221 Indent Code Within Braces 221 Keywords 227 Language Settings 220 Launch Editor 211 Launch Editor w Line # 211 Left margin click selects line 223 Level 212 Macros 228 Menu bar layout 210 Name 216 Other 228 Place Else On Same Line As Closing Brace 221 Place Opening Brace On Separate Line 221 Project Commands 223 Project operations 213 Projects 210 Recent symbolics 210, 211 Recommended 209 Regular Expression 213 Relaxed C popup parsing 223 Remove 214, 216 Save open files before build 208 Script 225 Selection position 223 Set 1, Set 2, Set 3, Set 4 228 Shielded folder list 213
Show message after building up-to-date project 208 Size 225 Sort function popup 223 Source Tree list 216 Strings 227 Tab indents selection 225 Tab Inserts Spaces 225 Tab Size 225 Templates 228 Type 216 TypeDefs 228 Use Automatic Code Formatting 220 Use Concurrent Compiles 209 Use Default workspace 211 Use Local Project Data Storage 208 Use Multiple Document Interface 211 Use multiple undo 223 Use Third Party Editor 211 User Specified 209 VCS Commands 223 Window follows insertion point 219 Window position and size 223 IDE Preferences window 186, 206, 207 Apply button 207 Cancel button 207 Factory Settings button 186, 207 IDE Preference Panels list 207 Import Panel 260 Import Panel button 186, 207 OK button 207 Revert Panel button 186, 207 Save button 186 IDE Project menu 282 IDE Search menu 281 IDE Window menu 280, 284 Ignore Extra Space checkbox 127 Ignored By Make File flag 241 Import Button 202 Commands 202 Import Components menu command 297 Import Panel 260 Import Project
327
Command 34 Menu command 297 Import Projects saved as XML files 34 In Files Page 117, 118 Tab 110 In Folders Page 111, 112 Tab 110 In Projects Page 113, 114 Tab 110 In Symbolics Page 115 Tab 110 Include file cache option Build Settings panel 260 Include files 167, 169 #include files, caching 260 Indenting Text blocks 85 Initial Directory field Build Extras panel 260 Initializer 170 Insert Template Commands option Editor Settings panel 260 Inspecting Project files 33 Installed Products button 285 Integrated Development Environment (IDE) 13 Interface files Locating 97 Interface menu 49 Interfaces list pop-up 78 in Files view of Project window 43 Using 98
K
Key bindings 102, 185, 187 Add 200 Customize 199 Keyboard conventions 16 Keyboard shortcuts Find symbols with prefix 86 Find symbols with substring 86 Get next symbol 86 Get previous symbol 86 Keys, Quote Key prefix 202 Keywords Adding to a keyword set 244 Removing from a keyword set 245 Keywords option Text Colors panel 261
L
Language Parser option, in Generate Browser Data From menu 259 Launch Editor option IDE Extras panel 261 Launch Editor w Line # option IDE Extras panel 262 Launchable flag 241 Layout Editor panel Options Grid Size X 259 Grid Size Y 259 Layout management 46 Layouts Moving 47 Removing 47 Renaming 48 Left Edges command 298 Left margin click selects line option Editor Settings panel 262 Level option Plug-in Settings panel 262 Line and column indicator, in editor window 80 Display 156 Going to in source code 99
J
Java Exceptions submenu All Exceptions command 286 Exceptions In Targeted Classes command 293 Java submenu 286, 293
328
%line command-line string 262 Lines Selecting 84 Selecting multiple 84 Selecting rectangular portions of 84 Link maps, generating for projects 182 Link Order Page 45 Tab 47 View 33, 47, 48 Linker option Target Settings panel 263 Linkers 181 Choosing 181 Linking projects 182 List boxes File Set 117 Project 113 Symbolics 115 Target 113 List menus Document settings 79 Functions 78 Interfaces 78 Markers 78 VCS 79 List pop-ups Ancestor 156 Browser Access Filters 144 Current Target 41 Document settings 79 Functions 78 Interfaces 78 Markers 78 Symbols 159 VCS 146 Lists File 113 File Mappings 251 File Set 117 Symbolics 115 Local Project Data Storage option 270 Locating Functions 97, 98
M
Macro file option, in Generate Browser Data From menu 259 Macros option 228 Make Command 48, 49 Menu command 298 Option 257 Toolbar button 41 Managing Build targets 50 Files, tasks 53 Projects 31 Targets 50 Manual conventions 16 Markers 100 Adding to a source file 101 Navigating to 101 Removing all from source files 101 Removing from source files 101 Markers list pop-up 78 Markers list, in Remove Markers window 100 Match Whole Word checkbox 104, 107, 110 Matching Any character with regular expressions 124 Replace strings to find strings with regular expressions 125 with simple regular expressions 124 Maximize Window menu command 298 .mcp 32 MDI 211, 270 and dockable windows 59 Making a window an MDI child 65 Member Function Declaration 168 Member functions Creating 151, 168 Identifier icons 151 Member Functions pane 151 in Class Browser window 145 Memory dump 312 329
Menu commands About CodeWarrior 285 Add Files 285 Add Window 285 Apply Difference 131, 286 Balance 287 Bottom Edges 287 Break 287 Break On C++ Exception 287 Break on Java Exceptions 287 Bring To Front 287 Bring Up To Date 287 Browser Contents 288 Build Progress 288 Build Progress Window 288 Cant Redo 279 Cant Undo 279 Cascade 288 Check Syntax 288 Class Browser 288 Class Hierarchy 288 Class Hierarchy Window 288 Clear 289 Close 289 Close All 289 Close All Editor Documents 289 Close Catalog 289 Close Workspace 290 CodeWarrior Help 290 Collapse Window 290 Commands & Key Bindings 290 Compare Files 127, 290 Compile 291 Complete Code 290 Copy 291 Copy To Expression 291 Create Design 291 Create Group 291 Create Target 291 Delete 292 Disassemble 292 Display Grid 292 Enter Find String 122, 292 Enter Replace String 292
Errors and Warnings 292 Errors and Warnings Window 292 Exit 293 Expand Window 293 Export Project 293, 297 Find 105, 293 Find and Open Filename 295 Find and Open File 295 Find And Replace 295 Find Definition 294 Find Definition & Reference 294 Find In Files 294 Find In Next File 294 Find In Previous File 294 Find Next 121, 294 Find Previous 121, 295 Find Previous Selection 295 Find Reference 295 Find Selection 122, 295 Freescale Website 298 Get Next Completion 296 Get Previous Completion 296 Go Back 296 Go Forward 296 Go To Line 296 Hide Window Toolbar 297 Import Components 297 Import Project 297 Make 298 Maximize Window 298 Minimize Window 298 New 298 New Class 299 New Class Browser 299 New Data Member 299 New Event 299 New Event Set 299 New Member Function 299 New Method 299 New Property 299 New Text File 300 Open 300 Open Recent 300 Open Scripts Folder 300
330
Open Workspace 300 Page Setup 300 Precompile 301 Preferences 301 Print 301 Redo 301 Refresh All Data 302 Remove Object Code 302 Remove Object Code & Compact 302 Remove Toolbar Item 198 Replace 108, 302, 303 Replace All 302 Replace and Find Next 303 Revert 305 Save Default Window 305 Save Workspace 306 Save Workspace As 306 Select All 306 Send To Back 306 Set Default Project 306 Set Default Target 306 Shift Right 306 Show Types 307 Show Window Toolbar 297 Stack Editor Windows 307 Stop Build 307 Switch To Monitor 307 Synchronize Modification Dates 307 Unapply Difference 131 View As Unsigned Decimal 311, 312 View Disassembly 312 View Mixed 312 View Source 312 View Variable 312 Zoom Window 312 Menu layouts, Windows 277 Menu reference for IDE 277 Menus Browser Access Filters 144 Current Target 198 Search 102 VCS 153 Minimize Window menu command 298 Modification date caching option 270
Moving Build targets 47 Dockable windows 67 Files 47 Groups 47 Layouts 47 Targets 47 Multi-Class Hierarchy window 156 Difference from Single-Class Hierarchy window 158 Multiple Files, searching 118 Folders, searching 112 Projects, searching 114 Redo 302 Symbolics files, searching 115 Undo 302 Undo option 311 Undo option in Editor Settings panel 271 Multiple Document Interface (MDI) 211, 270 Multiple Document Interface option 59, 270 turning off 211 turning on 211 Multiple-file Find and Replace window 109
N
Name field 187 Navigating Browser data 140 Code Completion window 92 Source code 97 to markers 101 New Command 53, 188 Command Group, Creating 188 Item 149 Menu command 298 New Binding 187, 201 New C++ Class window 165 Data Member window 170 Member Function window 168 New Class Menu command 299 331
Wizard 149, 164 New Class Browser menu command 299 New Data Member 152, 168, 170 Creating 170 Menu command 299 Wizard 152, 170 New Event menu command 299 New Event Set menu command 299 New Group 188 New Member Functions Creating 168 Menu command 299 Wizard 151, 168 New Menu Command, Creating 188, 193 New Method menu command 299 New Property menu command 299 New Text File menu command 300 Next Result button 120 None option in Generate Browser Data From menu 259 of Plug-in Diagnostics 262 Non-modal, defined 61 Notes for latest release 13 Numeric Keypad Bindings 200 Numeric Keypad Bindings checkbox of Customize IDE Commands window 203
O
Only Show Different Files checkbox 127 Open Command 54 Menu command 300 Single-class hierarchical window 158 Open File 153 Open Recent menu command 300 Open Scripts Folder menu command 300 Open Workspace menu command 300 Opening 162 Files 54 Last project (default workspace) 269 Last project, preventing (default workspace) 269 Projects 32 Projects from other hosts 32 332
Recent workspace 72 Subprojects 37 Symbols window 162 Workspaces 70 Option buttons All text 104, 107, 110 Code Only 105, 107, 110 Comments Only 105, 107, 110 Options Access Paths settings panel 213, 235 Activate Browser 294 Activate Browser Coloring 247 Activate Syntax Coloring 247, 251 Add Default 247 Always Search User Paths 248 Application 248 Arguments 248 Attempt to use dynamic type of C++, Object Pascal and SOM objects 248 Auto Indent 248 Auto Target Libraries 248 Automatic Invocation 249 Background 249 Balance Flash Delay 249 Balance while typing 249, 250 Bring Up To Date 257 Browser Commands 250 Browser Path 250 Build before running 250 Build Extras settings panel 238 Build Settings preference panel 208 Case Sensitive 251 Classes 228 Code Completion Preference panel 218 Code Completion Delay 251 Code Formatting preference panel 220 Collapse non-debugging windows 251 Comments 251 Compiler 251 Compiler thread stack 252 Concurrent Compiles preference panel 209 Confirm invalid file modification dates when debugging 252
Constants 228 Context popup delay 252 Disable third party COM plugins 252 Display Deprecated Items 253 Do nothing 253 Do nothing to project windows 253 Drag and drop editing 253 Dump internal browse information after compile 253 Edit Commands 254 Edit Language 254 Editor preference panels 218 Editor Settings preference panel 222 Enable automatic Toolbar help 254 Enable Virtual Space 254 Enums 228 Environment Settings 254 Failure 257 File Mappings settings panel 240 File Type 251 Font & Tabs preference panel 224, 226 Functions 228 General preference panels 207 Generate Browser Data From 259 Globals 228 IDE Extras preference panel 210 Import Panel 260 Macros 228 Make 257 Other 228 Plug-in Settings preference panel 212 Set 1, Set 2, Set 3, Set 4 228 Setting for browser 137 Shielded Folders preference panel 213 Source Trees preference panel 215 Target Settings panel 234 Templates 228 TypeDefs 228 Use modification date caching 239 Use Multiple Document Interface 59 Window Follows Insertion Point 272 Other editor windows 79 Other option 228 Output Directory option
Target Settings panel 263 Overlays tab 47 Overstrike 84 Overstriking text (Windows) 84 Overtype 84 Overview of Browser 21 of build system 21 of CodeWarrior 17 of debugger 21 of editor 20 of IDE project manager and build targets 26 of IDE tools 20 of IDE Users Guide 13 of project manager 20 of search engine 20
P
Page Setup command 300 Pages In Files 117 In Folders 111 in project window 42 In Projects 113 In Symbolics 115 Pane Collapse 148 Pane Collapse box 133 Pane Expand 148 Pane Expand box 133 Pane resize bar 120, 130, 133 in File Compare Results window 130 in Folder Compare Results window 133 Pane splitter controls, in editor window 80 Panes Adding to editor window 80 Destination 130 Differences 131 Files in Both Folders 133 Files Only in Destination 133 Files Only in Source 133 Removing from editor window 81 Resizing in an editor window 81 Results 120 Source 130 333
Source Code 120 Parameter lists, Completing code 94 Path caption 80 Play sound after Bring Up To Date & Make option Build Settings panel 263 Plug-in Diagnostics All Info option 262 Disabling 285 Enabling 285 Errors Only option 262 None option 262 Plug-in Settings panel Options Level 262 Plug-in Settings preference panel 212 Options Disable third-party COM plug-ins 212 Level 212 Plug-ins Saving information about those installed in IDE 285 Viewing those installed in IDE 285 Pop-up menus Document settings 79 Functions 78 Interfaces 78 Markers 78 VCS 79 Pop-ups Ancestor 156 Browser Access Filters 144 Symbols 159 VCS 146 Post-linker option Target Settings panel 263 Precompile menu command 301 Precompiled File flag 241 Precompiled headers Caching 260 Preference panels Build Settings 208 Code Completion 218 Code Formatting 220
Concurrent Compiles 209 Editor Settings 222 Font & Tabs 224, 226 IDE Extras 210 Plug-in Settings 212 Reverting 265 Shielded Folders 213 Source Trees 215 Preferences Activate Browser Coloring 228 Activate Syntax Coloring 227 Add 214, 216 Apply button 207 Auto Indent 225 Automatic Invocation 219 Background 227 Balance Flash Delay 224 Balance while typing 223 Browser Commands 223 Build before running 208 Cancel button 207 Case sensitive 219 Change 214, 216 Choose 216 Classes 228 Close Braces, Brackets, and Parentheses 221 Code Completion Delay 219 Comments 227 Compiler thread stack 208 Constants 228 Default file format 224 Disable third-party COM plug-ins 212 Display deprecated items 219 Documents 210 Drag and drop editing 223 Edit 228 Edit Commands 223 Editor 218 Enable Virtual Space 223 Enums 228 Export Panel button 186, 207 Factory Settings button 186, 207 Find and compare operations 214 Font 225
334
Font preferences 223 for IDE 205 Foreground 227 Format Braces 221 Functions 228 General 207 Globals 228 IDE Preference Panels list 207 IDE window 206 Import Panel button 186, 207 Indent Braces 221 Indent Case Within Switch Statement 221 Indent Code Within Braces 221 Keywords 227 Language Settings 220 Launch Editor 211 Launch Editor w Line # 211 Left margin click selects line 223 Level 212 Macros 228 Menu bar layout 210 Menu command 301 Name 216 OK button 207 Other 228 Place Else On Same Line As Closing Brace 221 Place Opening Brace On Separate Line 221 Project Commands 223 Project operations 213 Projects 210 Recent symbolics 210, 211 Recommended 209 Regular Expression 213 Relaxed C popup parsing 223 Remove 214, 216 Revert Panel button 186, 207 Save button 186 Save open files before build 208 Script 225 Selection position 223 Set 1, Set 2, Set 3, Set 4 228 Shielded folder list 213
Show message after building up-to-date project 208 Size 225 Sort function popup 223 Source Tree list 216 Strings 227 Tab indents selection 225 Tab Inserts Spaces 225 Tab Size 225 Templates 228 Type 216 TypeDefs 228 Use Automatic Code Formatting 220 Use Concurrent Compiles 209 Use Default workspace 211 Use Local Project Data Storage 208 Use Multiple Document Interface 211 Use multiple undo 223 Use Third Party Editor 211 User Specified 209 VCS Commands 223 Window follows insertion point 219 Window position and size 223 Prefix file option, in Generate Browser Data From menu 259 Prefix keys Quote Key 202 Pre-linker option Target Settings panel 264 Previous Result button 120 Print Command 56, 57, 301 File selections 57 Printing Class hierarchies 157 Files 56 Projects 33 Process cycle of software development 17 Products Saving information about those installed in IDE 285 Viewing those installed in IDE 285 Project Commands option
335
Editor Settings panel 264 Project data folder 270 Project Headers checkbox 113 Project Inspector command 33 Project list box 113 Project manager 26 Overview 20 Project menu 264, 282 Remove Object Code command 283 Stop Build command 283 Project operations option Shielded Folders panel 264 Project Sources checkbox 113 Project stationery Creating 35 Custom 35 Project window 39 About 40 About Files page 42 Current Target list pop-up 41 Files view Checkout Status column 43 Code column 42 Data column 42 Debug column 43 File column 42 Interfaces list pop-up 43 Sort Order button 43 Target column 43 Touch column 42 Link Order page 45 Make toolbar button 41 Pages 42 Synchronize Modification Dates toolbar button 41 Target Settings Toolbar button 41 Targets page 46 Project, defined 26 Projects About subprojects 36 Advanced topics 34 Choosing default 33 Closing 34
Creating custom stationery 35 Creating subprojects 36 Creating using stationery 31 Data folder 270 Exporting to XML files 34 Generating link maps for 182 Import XML versions of 34 Inspecting files 33 Linking 182 Managing 31 Opening 32 Opening from other hosts 32 Printing 33 Project window 39 Project window pages 42 Project window, about 40 Reopening last one used (default workspace) 269 Reopening last one used, preventing (default workspace) 269 Saving 32 Searching (multiple) 114 Strategies for 37 Subprojects, strategies for 37 Working with 25 Projects option IDE Extras panel 264 Punctuation balancing 86 Toggling 87 Pure virtual Icon for 151 Purpose of Browser Contents window 159 of Classes pane in browser 149 of Data Members pane 152 of Member functions pane 151 of Multi-Class Hierarchy window 156 of Single-Class Hierarchy window 158 of Source pane 153 of status area in browser 153 of Symbols window 161
Q
Quote Key prefix 202
336
Assigning 203
R
Recursive Search column, in Access Paths panel 237 Redo Button 131 Menu command 301 Reference information for IDE menus 277 Refresh All Data menu command 302 Registry Key option of Source Trees preference panel 269 Registry Key option, in Type pop-up menu 269 Regular Expression checkbox 104, 107, 110 Regular Expression option Shielded Folders panel 264 Regular expressions 122 .*[_]Data 214 \(.*\) 214 Choosing one character from many 124 CVS 214 Defined 122 Grouping 124 Matching any character 124 Matching simple expressions 124 Using the find string in the replace string 125 Relative to class field 165 Relaxed C popup parsing option Editor Settings panel 265 Release notes 13 Remembering last project (default workspace) 269 Turning off (default workspace) 269 Remove Button 236 Button, in Remove Markers window 100 Command 47 Remove A Set button 117 Remove Markers window 100 Cancel button 100 Done button 100 Markers list 100 Remove button 100
Remove Object Code & Compact menu command 302 Remove Object Code menu command 302 Remove Toolbar Item 198 Removing Build targets 47, 50 Desktop background from behind IDE 270 Files 47 Gray background from behind IDE 270 Groups 47 Layouts 47 Source trees 217 Targets 47, 50 Rename command 48, 51 Renaming Build targets 48, 51 Files 48 Groups 48 Layouts 48 Targets 48, 51 Reopening last project used in default workspace 269 Suppressing in the default workspace 269 Replace Button 106, 110 Command 108 Menu command 302, 303 Replace All Button 106, 110 Menu command 302 Replace and Find Next menu command 303 Replace and Find Previous command 303 Replace With text/list box 106, 109 Replacing Text in a single file 108 Text, overview 103 Reset Window Toolbar command in Toolbar submenu 45, 304 Resetting Toolbars 198 Resize bars Pane 120 Resize submenu To Smallest Height command 310
337
To Smallest Width command 310 Resizing panes in an editor window 81 Resource File flag 240 Restore Window command (Windows) 305 Result Count text box 120 Results of multi-item search 119 Pane 120 Revert command 57 Revert menu command 305 Reverting Files 57 Preference panels 265 Settings panels 265 Revision control 272 Routine, selecting entirely 84 Run command 49 Runtime Settings panel Options Working Directory 273
S
Save a Copy As command 55 Save All command 55 Save command 55 Save Default Window menu command 305 Save open files before build option Build Settings panel 265 Save project entries using relative paths option Target Settings panel 44, 266 Save this Set button 117 Save Workspace As menu command 306 Save Workspace menu command 306 Saving All files 55 Copy of workspace 71 File copies 55 Files 55 Information about installed plug-ins 285 Information about installed products 285 Projects 32 Workspaces 70 Script menu option 271 338
(Scripts) folder 300 Scripts option Font & Tabs panel 266 Search Single characters with regular expressions 124 Using finds strings in replace strings with regular expressions 125 Search Cached Sub-Targets checkbox 113 Search Criteria text box 120 Search engine Overview 20 Search In text/list box 111 Search menu 102, 281 Search Results window 119 Next Result button 120 Pane resize bar 120 Previous Result button 120 Result Count text box 120 Results pane 120 Search Criteria text box 120 Setting default size and position of 305 Source Code pane 120 Source Code Pane disclosure triangle 120 Stop button 120 Warnings button 120 Search Selection Only checkbox 104, 107 Search Status column, in Access Paths panel 237 Search Sub-Folders checkbox 111 Search Up checkbox 104, 107 Searching Choosing one character from many in regular expressions 124 Grouping regular expressions 124 Multiple files 118 Multiple folders 112 Multiple projects 114 Multiple symbolics files 115 Single characters with regular expressions 124 Single files 105 Using finds strings in replace strings with regular expressions 125 Using regular expressions 122
with simple regular expressions 124 Seeing desktop background behind IDE 270 Segments tab 47 Select All menu command 306 Selected Item group 133 Selecting Code Completion window items 93 Entire routines 84 Lines 84 Multiple lines 84 Rectangular portions of lines 84 Text in editor windows 83 Selection position option Editor Settings panel 266 Selections Searching (text) 122 Send To Back menu command 306 Set 1, Set 2, Set 3, Set 4 228 Set Default Project Command 33 Menu command 306 Set Default Target menu command 306 Setting Browser options 137 Default size and position of windows 305 Settings Add 216, 236, 241 Add Default 236 Always Search User Paths 236 Application 239 Apply button 233 Arguments 239 Cache subprojects 239 Cancel button 233 Change 216, 236, 241 Choose 216, 234 Clear 235 Compiler 241 Dump internal browse information after compile 239 Edit Language 241 Export Panel button 232 Extension 240 Factory Settings button 232
File Mappings list 240 File Type 240 Flags 241 Generate Browser Data From 239 Host Flags 236 IDE window 231 Ignored By Make flag 241 Import Panel button 232 Initial directory 239 Launchable flag 241 Linker 234 Name 216 OK button 233 Output Directory 234 Post-linker 234 Precompiled File flag 241 Pre-linker 234 Remove 216, 236, 241 Resource File flag 240 Revert Panel button 232 Save project entries using relative paths 235 Source Tree list 216 Target Name 234 Target Settings Panels list 232 Type 216 Use modification date caching 239 Settings panels Access Paths 213, 235 Build Extras 238, 294 File Mappings 240 Reverting 265 Source Trees 215 Target Settings 234 Setup Code completion 88 Shielded Folders panel Options Find and compare operations 258 Project operations 264 Regular Expression 264 Shielded Folders preference panel 213 Options Add 214 Change 214
339
Find and compare operations 214 Project operations 213 Regular Expression 213 Remove 214 Shielded folder list 213 Shift Right menu command 306 Shortcut conventions 16 Show Classes pane 150 Show Classes 150 Pane 150, 153 Show Floating Toolbar Command 297 Command in Toolbar submenu 307 Show Inherited 145 Show Main Toolbar Command 297 Command in Toolbar submenu 307 Show message after building up-to-date project option Build Settings panel 267 Show private 146 Show protected 146 Show public 146 Show Types menu command 307 Show Window Toolbar Command 297 Command in Toolbar submenu 307 Shrink panes in browser 148 Single Class Hierarchy Window 144 Single files, searching 105 Single-class hierarchical window Opening 158 Single-Class Hierarchy window 158 Difference from Multi-Class Hierarchy window 158 Single-file Find and Replace window 106 Single-file Find window 103 Size option Font & Tabs panel 267 Software Development process cycle 17 Sort Alphabetical 149, 150 Sort function popup option
Editor Settings panel 267 Sort Hierarchical 149, 150 Sort Order button in Files view of Project window 43 Sorting Classes list 150 Functions list pop-up (alphabetically) 98, 99 Source box 126 Source code Editing 83 Going to a particular line 99 Locating 97 Navigating 97 Source Code pane 120 Source Code Pane disclosure triangle 120 Source files Adding markers to 101 Removing all markers from 101 Removing markers from 101 Source item, for comparison 126 Source pane 130, 153 in Symbols window 162 Source relative includes 267 Source trees Adding 216 Changing 217 Removing 217 Source Trees panel Options Add 216 Change 216 Choose 216 Name 216 Remove 216 Source Tree list 216 Type 216, 269 Source Trees preference panel 215 Absolute Path option 269 Environment Variable option 269 Registry Key option 269 Source Trees settings panel 215 Stack Editor Windows menu command 307 Static, Icon for 151 Stationery
340
Creating for projects 35 Creating projects 31 Custom 35 Status area 153 in Class Browser window 145 Stop At End Of File checkbox 104, 107 Stop Build menu command 307 Stop button 110, 120 Stop command 307 Straight Line 157 Strategies for build targets 37 for projects 37 for subprojects 37 Strings option Text Colors panel 267 Submenus Align 286, 287 Subproject, defined 36 Subprojects Creating 36 Opening 37 Strategies for 37 Success option Build Settings panel 268 Switch To Monitor menu command 307 Symbol definitions 102 Symbol definitions, looking up 102 Symbol implementations Viewing all 162 Symbol-editing shortcuts 86 Symbolics files Searching (multiple) 115 Symbolics list (box) 115 Symbolics option IDE Extras panel 268 Symbols Shortcuts for editing 86 Viewing all implementations 162 Symbols list in Browser Contents window 159 Symbols pane 162 Symbols pop-up 159 Symbols window 161, 162
Source pane 162 Symbols pane 162 Toolbar 162 Synchronize Modification Dates command 45 Synchronize Modification Dates menu command 307 Synchronize Modification Dates toolbar button 41 System Headers checkbox 113 System Paths list Recursive Search column 237 Search Status column 237 System Paths option Access Paths panel 268
T
Tabs Font & Tabs panel 268 In Files 110 In Folders 110 In Projects 110 In Symbolics 110 Target column in Files view of Project window 43 Target list box 113 Target management 46 Target Name option Target Settings panel 269 Target settings Add 216, 236, 241 Add Default 236 Always Search User Paths 236 Application 239 Apply button 233 Arguments 239 Cache subprojects 239 Cancel button 233 Change 216, 236, 241 Choose 216, 234 Clear 235 Command 308 Compiler 241 Dump internal browse information after compile 239 341
Edit Language 241 Export Panel button 232 Extension 240 Factory Settings button 232 File Mappings list 240 File Type 240 Flags 241 for IDE 231 Generate Browser Data From 239 Host Flags 236 Ignored By Make flag 241 Import Panel button 232 Initial directory 239 Launchable flag 241 Linker 234 Name 216 OK button 233 Output Directory 234 Panel 51, 234 Panel options Choose 234 Clear 235 Linker 263 Output Directory 234, 263 Post-linker 263 Pre-linker 264 Save project entries using relative paths 44, 235, 266 Target Name 234, 269 Panels list 232 Post-linker 234 Precompiled File flag 241 Pre-linker 234 Remove 216, 236, 241 Resource File flag 240 Revert Panel button 232 Save project entries using relative paths 235 Source Tree list 216 Source Trees 215 Target Name 234 Target Settings Panels list 232 Toolbar button 41 Type 216 Use modification date caching 239
Window 231 Apply button 233 Cancel button 233 Export Panel button 232 Factory Settings button 232 Import Panel button 232 OK button 233 Opening 233 Revert Panel button 232 Target settings Panels list 232 Target settings panel Options Linker 234 Post-linker 234 Pre-linker 234 Target settings panels Access Paths 235 Build Extras 238, 294 File Mappings 240 Target Settings 234 Targets 27 Configuring 51 Creating 50 Files 47 Managing 50 Moving 47 Removing 47, 50 Renaming 48, 51 Setting default 51 Strategies for 37 Targets page 46 Targets tab 51 Targets view 33, 47, 50 Tasks Activating automatic code completion 88 Adding a keyword to a keyword set 244 Adding markers to a source file 101 Adding panes to an editor window 80 Adding source trees 216 Adding subprojects to a project 36 Alphabetizing Functions list pop-up order 98, 99 Applying file differences 131
342
Balancing punctuation 86 Changing line views in a hierarchical window 157 Changing source trees 217 Changing the find string 122 Choosing a default project 33 Choosing files to compare 127 Choosing folders to compare 128 Closing a docked window 67 Closing a workspace 71 Closing projects 34 Collapsing a docked window 66 Collapsing browser panes 148 Collapsing the editor window toolbar 78 Completing code for data members 93 Completing code for parameter lists 94 Creating a new class 149, 164 Creating a new data member 152, 170 Creating a new member function 151, 168 Creating custom project stationery 35 Creating new projects using project stationery 31 Deactivating automatic code completion 89 Docking a window by using a contextual menu 62 Docking a window by using drag and drop 62 Docking windows of the same kind 62 Examining items in the Folder Compare Results window 134 Expanding a docked window 66 Expanding browser panes 148 Expanding the editor window toolbar 78 Exporting projects to XML files 34 Floating a window 64 for managing files 53 Generating project link maps 182 Going to a particular line 99 Hiding the classes pane 150 Import projects saved as XML files 34 Indenting text blocks 85 Looking up symbol definitions 102 Making a window an MDI child 65 Moving a docked window 67
Navigating browser data 140 Navigating Code Completion window 92 Navigating to a marker 101 Opening a recent workspace 72 Opening a single-class hierarchical window 158 Opening a workspace 70 Opening projects 32 Opening projects created on other hosts 32 Opening subprojects 37 Opening the symbols window 162 Opening the Target Settings window 233 Overstriking text (Windows) 84 Printing class hierarchies 157 Printing projects 33 Removing a keyword from a keyword set 245 Removing a marker from a source file 101 Removing all markers from a source file 101 Removing panes from an editor window 81 Removing source trees 217 Replacing text in a single file 108 Resizing panes in an editor window 81 Saving a copy of a workspace 71 Saving a workspace 70 Saving projects 32 Searching a single file 105 Searching for text across multiple files 118 Searching for text across multiple folders 112 Searching for text across multiple projects 114 Searching for text across multiple symbolics files 115 Searching with a text selection 122 Selecting entire routines 84 Selecting item in Code Completion window 93 Selecting lines 84 Selecting multiple lines 84 Selecting rectangular portions of lines 84 Selecting text in editor windows 83 Showing the classes pane 150 Sorting the classes list 150
343
Suppressing dockable windows 65 Toggling automatic punctuation balancing 87 Triggering code completion by keyboard 89 Triggering code completion from IDE menu bar 89 Unapplying file differences 131 Undocking a window 64 Unfloating a window 65 Unindenting text blocks 85 Using the default workspace 69 Using the Find Next command 121 Using the Find Previous command 121 Using the Functions list pop-up 98 Using the Interfaces list pop-up 98 Using the VCS pop-up 79 Using virtual space 85 Viewing a file path 43 Viewing browser data by contents 160 Viewing browser data by inheritance 157 Viewing class data from hierarchy windows 147 Templates option 228 Text Changing a find string 122 Find by selecting 121 Finding 103 Overstriking (Windows) 84 Replacing 103 Searching with a selection 122 Text blocks Indenting 85 Unindenting 85 Text boxes Result Count 120 Search Criteria 120 Text Colors panel Options Activate Browser Coloring 258 Activate Syntax Coloring 258, 261, 267 Foreground 258 Keywords 261 Strings 267 Text Colors preference panel
Options Activate Browser Coloring 228 Activate Syntax Coloring 227 Background 227 Classes 228 Comments 227 Constants 228 Edit 228 Enums 228 Foreground 227 Functions 228 Globals 228 Keywords 227 Macros 228 Other 228 Set 1, Set 2, Set 3, Set 4 228 Strings 227 Templates 228 TypeDefs 228 Text editing area, in editor window 80 Text/list boxes By Type 111 Find 104, 106, 109 Replace With 106, 109 Search in 111 Text-selection Find 121 Third Party Editor option 271 Third-party Editor support 271 Text editors Emacs 261, 262 Threading in IDE 252 __throw() 287 Tile Editor Windows command 308 Editor Windows Vertically command 308 Horizontally command 309 Vertically command 309 To Smallest Height command in Resize submenu 310 To Smallest Width command in Resize submenu 310 Toolbar (Editor Window) Elements
344
Document Settings 198 File Dirty Indicator 198 File Path field 198 Functions 198 Header Files 198 Markers 198 Version Control Menus 198 Add element 197 Buttons Browser Contents 144 Class Hierarchy 144 Go Back 144 Go Forward 144 Make 41 Single Class Hierarchy Window 144 Synchronize Modification Dates 41 Target Settings 41 Clear Elements 198 Collapsing in editor window 78 Customize 195 Editor 78 Elements 195, 196 Expanding in editor window 78 for Symbols window 162 Icons 197 Instances of 196 Items 185, 197 Main (floating) 196 Modify 197 Project and Window 196 Remove single element 197 Resetting 198 Submenu Anchor Floating Toolbar command 286 Clear Floating Toolbar command 289 Clear Main Toolbar command 289 Clear Window Toolbar command 289 Hide Floating Toolbar command 297 Hide Main Toolbar command 297 Reset Window Toolbar command 45, 304 Show Floating Toolbar command 297, 307
Show Main Toolbar command 297, 307 Show Window Toolbar command 307 Toolbar Items tab 196 Types 196 Tools Browser 21 Build system 21 Debugger 21 Editor 20 Project manager 20 Search engine 20 ToolServer menu 271 ToolServer menu option IDE Extras panel 271 ToolTip 197 Touch Column 49 in Files view of Project window 42 Command 49 Defined 42 Touching All files 49 All groups 49 Files 49 Groups 49 Triggering Code completion by keyboard 89 Code completion from IDE menu bar 89 Type List box Absolute Path option 269 Option Source Trees panel 269 Pop-up menu Environment Variable option 269 Registry Key option 269 TypeDefs option 228
U
Unanchor Floating Toolbar command 311 Unapply button 130 Unapply Difference command 131, 311 Undo button 130 345
Undo command 311 Undocking windows 64 Unfloating Windows 65 Ungroup command 311 Unindenting text blocks 85 Untouch command 49 Untouching a file 49 a group 49 All files 49 All groups 49 User Paths list Recursive Search column 237 Search Status column 237 User Paths option 271 User Specified option 272 Using Find Next command 121 Find Previous command 121 Functions list pop-up 98 Interfaces list pop-up 98 VCS pop-up 79 Virtual space 85
as user 146 Disassembly menu command 312 File paths 43 Memory As command 312 Memory command 312 Mixed menu command 312 Source menu command 312 Variable menu command 312 Viewing All symbol implementations 162 Browser data by contents 160 Browser data by inheritance 157 Installed plug-ins 285 Installed products 285 Virtual Icon for 151 Space, using 85
W
Warnings button 120 Window Browser Contents 159 Class Browser 143 Code Completion 90 Compare Files Setup 126 Customize IDE Commands 121, 199 Dock bars in dockable windows 66 Dockable 59 Dockable, about 59 Dockable, working with 61 Docking the same kind of 62 Docking with a contextual menu 62 Docking with drag and drop 62 Editor 76 Editor, other 79 File Compare Results 129 Find (single-file) 103 Find and Replace (multiple-file) 109 Find and Replace (single-file) 106 Floating 64 Folder Compare Results 132 Hierarchy 157 IDE Preferences 206 Making MDI children of 65
V
VCS 79 Commands Options Editor Settings panel 272 List pop-up 146 Menu 153, 272 Pop-up 79 Using 79 Version Control 272 Control Settings command 311 Control System (VCS) 79 Vertical Center command in Align submenu 305, 309, 310, 311 View as implementor 146 as subclass 146 As Unsigned Decimal menu command 311, 312 346
New C++ Class 165 New C++ Data Member 170 New C++ Member Function 168 Project window 39 Remembering size and position of 305 Remove Markers 100 Saving default size and position of 305 Search results 119 Target settings 231 Types Floating 60 Undocking 64 Unfloating 65 Window Follows Insertion Point option 272 Window menu 280, 284 Restore Window command (Windows) 305 Window position and size option Editor Settings panel 273 Window types Docked 60 MDI child 60 Windows Creating files 53 Dockable, turning off 65 Windows menu layout 277 Wizards Browser 163 New Class 149, 164 New Data Member 152, 170 New Member Function 168 New Member Functions 151 Working Directory option Runtime Settings panel 273 Working with Browser 137 Class Browser windows 143 Class hierarchy windows 155 Dockable windows 61 Files 53 IDE preferences 205 IDE target settings 231 Projects 25 Workspace 69 About 69
Closing 71 Defined 69 Opening 70 Opening recent 72 Saving 70 Saving copies of 71 Using default 69 Workspaces option IDE Extras panel 273
X
XML Exporting projects 34 Importing projects 34
Z
Zoom Window menu command 312 Zoom windows to full screen option IDE Extras panel 273
347
348