1999-09-30 04:36:54 +04:00
|
|
|
#ifndef WIZARDTYPES
|
|
|
|
#define WIZARDTYPES
|
|
|
|
|
|
|
|
#define MIN_SIZE 256
|
|
|
|
#define MID_SIZE 512
|
|
|
|
#define MAX_SIZE 1024
|
|
|
|
#define EXTD_MAX_SIZE 10240
|
|
|
|
|
|
|
|
// Some global structures
|
|
|
|
typedef struct NVPAIR
|
|
|
|
{
|
|
|
|
char name[MID_SIZE];
|
|
|
|
char value[MID_SIZE];
|
|
|
|
char options[MAX_SIZE];
|
|
|
|
char type[MID_SIZE];
|
|
|
|
}NVPAIR;
|
|
|
|
|
|
|
|
typedef struct ACTIONSET
|
|
|
|
{
|
|
|
|
CString event;
|
|
|
|
CString dll;
|
|
|
|
CString function;
|
|
|
|
char parameters[MAX_SIZE];
|
1999-10-19 05:30:18 +04:00
|
|
|
CString onInit;
|
|
|
|
CString onCommand;
|
1999-09-30 04:36:54 +04:00
|
|
|
}ACTIONSET;
|
|
|
|
|
|
|
|
typedef struct DIMENSION
|
|
|
|
{
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
}DIMENSION;
|
|
|
|
|
1999-10-06 05:32:00 +04:00
|
|
|
typedef struct FIELDLEN
|
|
|
|
{
|
|
|
|
int length;
|
|
|
|
int max_len;
|
|
|
|
int min_len;
|
|
|
|
}FIELDLEN;
|
1999-09-30 04:36:54 +04:00
|
|
|
typedef struct OPTIONS
|
|
|
|
{
|
|
|
|
char* name[25];
|
|
|
|
char* value[25];
|
|
|
|
}OPTIONS;
|
|
|
|
|
|
|
|
typedef struct WIDGET
|
|
|
|
{
|
|
|
|
CString type;
|
|
|
|
CString name;
|
|
|
|
CString value;
|
|
|
|
CString title;
|
|
|
|
CString group;
|
|
|
|
CString target;
|
|
|
|
CString description;
|
|
|
|
POINT location;
|
|
|
|
DIMENSION size;
|
1999-10-06 05:32:00 +04:00
|
|
|
FIELDLEN fieldlen;
|
1999-09-30 04:36:54 +04:00
|
|
|
ACTIONSET action;
|
|
|
|
int numOfOptions;
|
|
|
|
OPTIONS options;
|
1999-10-20 00:30:18 +04:00
|
|
|
int numOfOptDesc;
|
|
|
|
OPTIONS optDesc;
|
1999-09-30 04:36:54 +04:00
|
|
|
CString items;
|
|
|
|
BOOL cached;
|
1999-10-19 06:41:48 +04:00
|
|
|
UINT widgetID;
|
1999-09-30 04:36:54 +04:00
|
|
|
CWnd *control;
|
|
|
|
}WIDGET;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct IMAGE
|
|
|
|
{
|
|
|
|
CString name;
|
|
|
|
CString value;
|
|
|
|
POINT location;
|
|
|
|
DIMENSION size;
|
|
|
|
HBITMAP hBitmap;
|
|
|
|
}IMAGE;
|
|
|
|
|
1999-10-16 04:16:36 +04:00
|
|
|
typedef struct WIZBUT
|
|
|
|
{
|
|
|
|
CString back;
|
|
|
|
CString next;
|
|
|
|
CString cancel;
|
1999-10-27 01:10:39 +04:00
|
|
|
CString help;
|
1999-10-16 04:16:36 +04:00
|
|
|
}WIZBUT;
|
|
|
|
|
1999-09-30 04:36:54 +04:00
|
|
|
typedef struct VARS
|
|
|
|
{
|
|
|
|
CString title;
|
|
|
|
CString caption;
|
|
|
|
CString pageName;
|
|
|
|
CString image;
|
|
|
|
CString visibility;
|
|
|
|
CString functionality;
|
1999-10-16 04:16:36 +04:00
|
|
|
WIZBUT *wizbut;
|
1999-09-30 04:36:54 +04:00
|
|
|
}VARS;
|
|
|
|
|
|
|
|
typedef struct PAGE
|
|
|
|
{
|
|
|
|
CStringArray pages;
|
|
|
|
CStringArray visibility;
|
|
|
|
}PAGE;
|
|
|
|
|
|
|
|
typedef struct CONTROLS
|
|
|
|
{
|
|
|
|
CString onNextAction;
|
1999-09-30 04:52:10 +04:00
|
|
|
CString onEnter;
|
1999-09-30 04:36:54 +04:00
|
|
|
CString helpFile;
|
|
|
|
}CONTROLS;
|
|
|
|
|
|
|
|
typedef struct WIDGETGROUPS
|
|
|
|
{
|
|
|
|
CString groupName;
|
|
|
|
CString widgets;
|
|
|
|
}WIDGETGROUPS;
|
|
|
|
|
|
|
|
typedef struct NODE
|
|
|
|
{
|
|
|
|
NODE *parent;
|
|
|
|
NODE **childNodes;
|
|
|
|
int numChildNodes;
|
|
|
|
int currNodeIndex;
|
|
|
|
VARS *localVars;
|
|
|
|
PAGE *subPages;
|
|
|
|
CONTROLS *navControls;
|
|
|
|
WIDGET** pageWidgets;
|
|
|
|
int numWidgets;
|
|
|
|
int currWidgetIndex;
|
|
|
|
int pageBaseIndex;
|
|
|
|
IMAGE **images;
|
|
|
|
int numImages;
|
|
|
|
BOOL nodeBuilt;
|
|
|
|
BOOL isWidgetsSorted;
|
|
|
|
}NODE;
|
|
|
|
|
1999-10-13 04:01:10 +04:00
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
|
|
|
typedef int (DLLPROC)(CString parms);
|
|
|
|
|
|
|
|
typedef struct DLLINFO
|
|
|
|
{
|
1999-10-27 01:10:39 +04:00
|
|
|
CString *dllName;
|
|
|
|
CString *procName;
|
1999-10-13 04:01:10 +04:00
|
|
|
HMODULE hDLL;
|
|
|
|
DLLPROC *procAddr;
|
|
|
|
DLLINFO *next;
|
|
|
|
} DLLINFO;
|
|
|
|
|
1999-09-30 04:36:54 +04:00
|
|
|
#endif //WIZARDTYPES
|