Deleting Forms And Procedures; Editing Graphics - Nokia 9000 User Manual

Hide thumbs Also See for 9000:
Table of Contents

Advertisement

13.5 Deleting Forms and Procedures

The user will be able to delete forms and procedures in the main frame that are no
longer needed. This will be performed by selecting a node in the main frame window
and pressing the "Del" key or by selecting "delete" from the edit menu. The user will
then be prompted with a message box (YES, NO) asking for confirmation. YES puts
the functions in comments, NO cancels. The removal cannot be undone.
This was accomplished using the following methods:
When the delete key is pressed, the program finds the codename associated with the
node to be deleted (for example: "F1"). That codename is then used in conjunction
with a predetermined list of functions (the ones that were created when the node
was added), and then proceeds to place in comments all of those functions.
In this manner, more forms and procedures can be added without causing any
problems, and users will not lose any important algorithms that deleting the old
functions would cost them. All user created functions are left as is (not commented).

13.6 Editing Graphics

Once a graphics form is created, the user can add graphics to the form by right mouse clicking in
the tree view window and selecting Edit Graphics. A window will come up that is to be used as a
canvas for adding graphics. The graphic information is stored as meta data in the projects NGX
file, this file was created from the baseline.ngx when the project was initially created.
When the graphics are saved (i.e. the project NGX file is saved), the meta data is retrieved and
used within the GOC file for implementing the respective graphics. For example, if a rectangle
was added to the graphics window, the following code might be generated:
void projectF1ViewDraw( GstateHandle gstate )
{
/* {{projectF1 DRAW BLOCK}} */
GrDrawRect( gstate, 100, 50, 30, 10 );
/* {{END projectF1 DRAW BLOCK}} */
}
Choosing the Edit Graphics option presents the .NGX file in an editor. The Graphics menubar
option presents the several drawing options.

Advertisement

Table of Contents
loading

This manual is also suitable for:

9110

Table of Contents