Application
|
glg
|
|
This directory contains all the project information
stored/retrieved by GLG. All files are text files and
therefore can be edited if needed.
|
|
glg
|
|
Contain the list of modules (Window, Menu, etc.) along with some properties
associated with these modules.
|
styles
|
|
Contain the definition of the styles defined and used with this project.
|
window1.glg
|
|
Contain the definition of the 1st module (a Window, named
‘window1’).
|
menu1.glg
|
|
Contain the definition of the 2nd module (a Menu, named
‘menu1’).
|
obj
|
|
This directory contains the Makefile. You should compile the project
from this directory (apply for a ‘C’ project):
(i.e.: cd app/obj ; make)
|
|
Makefile
|
|
Makefile, ready to go.
|
src
|
|
This directory contains the source of the application. Some of
the files are generated by GLG (and therefore must not be
changed), and some of the files are yours.
|
|
startup.c
|
|
The startup(argc argv) is called from the main(), and can be customized.
Note
that the startup() function is called before any opening of windows modules
(for the one that are opened automatically).
|
xx.c
|
In our small example, we have created some callback functions (signal),
and
we choose to store them into this file. Each callback function can be
stored
in any file.
|
|
xpm
|
|
This sub-directory should contain the bitmaps (.xpm format only)
that you are using into your project. Note that you can create
sub-directories if you want.
|
|
|
abc.xpm
|
In our example, we used a bitmap, and the .xpm definition of the bitmap
has
to sit into this directory (only used at compilation time).
|
|
glg
|
|
This sub-directory contain the generated source code for each of
your modules (Windows, Menus, etc.). Callbacks (signals) are not
defined into this directory. None of these files into this directory
should be modified (custom changes would be overwritten by GLG
at next code generation).
|
|
main.c
|
Contain the main() function, and also some few functions that used
internally
by the code generated by GLG.
|
main.h
|
Contain some extern definitions.
|
syles.c
|
C-code that defines the styles used by the project. Note that all styles
are
defined as global, and not static.
|
styles.h
|
Contain the extern definitions for the styles.
|
modules.h
|
Contain the prototypes of all modules (there is a C function associated
for
each module).
|
window1.c
|
C-code for the definition of the 1st module (Window).
|
window1.h
|
#defined for all global widgets defined into the 1st module.
|
menu1.c
|
C-code for the definition of the 2nd module (Menu).
|
menu1.h
|
#defined for all global widgets defined into the 1st module.
|
|
|
|
|
|
|