ebmDevMag.com home
ebm Developer's Magazine
links

developer's mag
main page

article
part 1
part 2
part 3
part 4
part 5
part 6


2 - Source Layout

The editor is made up of 7 source files, four of which are also Borland Builder VCL files. Of that, three of them are support dialogs only (text editing, about box, output settings), and the fourth is the main form itself. Of the remaining three, two of them comprise the core classes used in the editor.

If you were to sum up the purpose of the main form, it would be to manage the handling of an array of CBaseObject objects (see OBJCREAT.CPP). This array contains the data on every ebm form object you see, including the ebm form itself. The editor program handles saving, loading, displaying, and movement/editing by means of event handlers. Borland Builder provides function handlers for events such as a mouse button press, double click, and key pressing. By monitoring these, CBaseObject objects are created and deleted, moved around, changed by editing, saved and loaded, and so forth.

This is all done by the program 'talking' to the CFormGroup object (see FORMGRP.CPP), which manages the array (and on occasion provides a specific CBaseObject pointer for finer-grained control). This object wraps the array, and helps manage/protect it - creating, accessing, etc.

Previous Section
Next Section

Copyright © 2001-2006 ebmDevMag.com - Legal Notice