#include <stdlib.h>#include <stdio.h>#include <string.h>#include "iup.h"#include "iupkey.h"#include "cd.h"#include "wd.h"#include "prj.h"#include "crs.h"Gráfico de dependência de inclusões para drv.c:

Vá para o código-fonte deste arquivo.
Project driver module. | |
Each time the model or its image is manipulated on the screen, it is redisplayed to reflect the change. The actions are currently set by the user through key commands. Part of the assignment is to add menus and/or buttons to perform the actions. Revisions:
| |
| #define | ButtonPressed 1 |
| Defines mouse button pressed mode. | |
| #define | ButtonReleased 0 |
| Defines mouse button released mode. | |
| FILE * | drvOpenFile (char *mode) |
| This function prompts the user for a file name and opens the file. | |
| int | drvResize (Ihandle *cv, int width, int height) |
| Callback function for canvas resize event (see IUP documentation). | |
| int | drvRedisplay (Ihandle *cv) |
| Callback function for canvas redisplay event (see IUP documentation). | |
| int | drvMouseBt (Ihandle *cv, int b, int mode, int x, int y, char *mousecfg) |
| Callback function for mouse button event on canvas (see IUP documentation). | |
| int | drvMouseMv (Ihandle *cv, int x, int y, char *mousecfg) |
| Callback function for mouse movement event on canvas (see IUP documentation). | |
| int | drvKeyCrtl (Ihandle *dg, int key) |
| Callback function for keyboard event (see IUP documentation). | |
| int | main (int argc, char *argv[]) |
| This is the main driver of the program. | |
| Ihandle * | Omain |
| Main dialog handle. | |
| Ihandle * | Otopmsg |
| Handle to top message label. | |
| char | file_name [256] |
| String that holds the current opened file name. | |
| int | dsp_load = 1 |
| Visibility flag for member loads. | |
|
|
Defines mouse button pressed mode.
|
|
|
Defines mouse button released mode.
Definição na linha 76 do arquivo drv.c. Referenciado por drvMouseBt(). |
|
||||||||||||
|
Callback function for keyboard event (see IUP documentation). This function takes an appropriate action according to the given key that was pressed by the user and passed as a parameter.
Definição na linha 304 do arquivo drv.c. Referências CRS_NO_STEP_TO_GO, drvOpenFile(), drvRedisplay(), dsp_load, Odatascreen, Otopmsg, prjClipboard(), prjFit(), prjHelp(), prjInfo(), prjLoadDisplay(), prjNew(), prjOpenModel(), prjPanDown(), prjPanLeft(), prjPanRight(), prjPanUp(), prjPrint(), prjProcessGoThru(), prjProcessInit(), prjProcessStep(), prjQuit(), prjSaveResults(), prjZoomIn() e prjZoomOut(). Referenciado por main(). |
|
||||||||||||||||||||||||||||
|
Callback function for mouse button event on canvas (see IUP documentation).
Definição na linha 218 do arquivo drv.c. Referências ButtonReleased, CRS_FAILURE, CRS_FIXED_NODE, CRS_NO_MODEL_DEFINED, CRS_NO_STEP_TO_GO, CRS_SUCCESS, Odatascreen, Otopmsg, prjChkEmptyModel() e prjProcessNode(). Referenciado por main(). |
|
||||||||||||||||||||
|
Callback function for mouse movement event on canvas (see IUP documentation).
Definição na linha 286 do arquivo drv.c. Referenciado por main(). |
|
|
This function prompts the user for a file name and opens the file.
Definição na linha 94 do arquivo drv.c. Referências file_name. Referenciado por drvKeyCrtl(). |
|
|
Callback function for canvas redisplay event (see IUP documentation). It redisplays the model or the help message on the canvas.
Definição na linha 187 do arquivo drv.c. Referências Otopmsg, prjChkEmptyModel(), prjHelp() e prjRedisplay(). Referenciado por drvKeyCrtl() e main(). |
|
||||||||||||||||
|
Callback function for canvas resize event (see IUP documentation). It changes the visualization parameters according to the given canvas sizes.
Definição na linha 170 do arquivo drv.c. Referências prjResize(). Referenciado por main(). |
|
||||||||||||
|
This is the main driver of the program. The program launches an user interface window on the screen and waits for an user action.
Definição na linha 447 do arquivo drv.c. Referências drvKeyCrtl(), drvMouseBt(), drvMouseMv(), drvRedisplay(), drvResize(), Odatascreen, Omain, Otopmsg e prjInit(). |
|
|
Visibility flag for member loads.
Definição na linha 70 do arquivo drv.c. Referenciado por drvKeyCrtl(). |
|
|
String that holds the current opened file name.
Definição na linha 67 do arquivo drv.c. Referenciado por drvOpenFile(). |
|
|
Main dialog handle.
Definição na linha 61 do arquivo drv.c. Referenciado por main(). |
|
|
Handle to top message label.
Definição na linha 64 do arquivo drv.c. Referenciado por drvKeyCrtl(), drvMouseBt(), drvRedisplay() e main(). |
1.3.4