1999-10-23 03:45:20 +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];
|
|
|
|
CString onInit;
|
|
|
|
CString onCommand;
|
|
|
|
}ACTIONSET;
|
|
|
|
|
|
|
|
typedef struct DIMENSION
|
|
|
|
{
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
}DIMENSION;
|
|
|
|
|
|
|
|
typedef struct FIELDLEN
|
|
|
|
{
|
|
|
|
int length;
|
|
|
|
int max_len;
|
|
|
|
int min_len;
|
|
|
|
}FIELDLEN;
|
|
|
|
typedef struct OPTIONS
|
|
|
|
{
|
|
|
|
char* name[25];
|
|
|
|
char* value[25];
|
|
|
|
}OPTIONS;
|
|
|
|
|
|
|
|
typedef struct WIDGET
|
|
|
|
{
|
|
|
|
CString type;
|
|
|
|
CString name;
|
2000-01-14 01:07:13 +03:00
|
|
|
CString attrib;
|
1999-10-23 03:45:20 +04:00
|
|
|
CString value;
|
2000-01-19 01:39:01 +03:00
|
|
|
CString display;
|
1999-10-23 03:45:20 +04:00
|
|
|
CString title;
|
|
|
|
CString group;
|
|
|
|
CString target;
|
|
|
|
CString description;
|
2001-11-14 03:23:13 +03:00
|
|
|
CString showinsection; // Used in the ShowSection command to show and hide widgets based on selection in a listbox.
|
1999-10-23 03:45:20 +04:00
|
|
|
POINT location;
|
|
|
|
DIMENSION size;
|
|
|
|
FIELDLEN fieldlen;
|
|
|
|
ACTIONSET action;
|
|
|
|
int numOfOptions;
|
|
|
|
OPTIONS options;
|
|
|
|
int numOfOptDesc;
|
|
|
|
OPTIONS optDesc;
|
|
|
|
CString items;
|
|
|
|
BOOL cached;
|
|
|
|
UINT widgetID;
|
|
|
|
CWnd *control;
|
|
|
|
}WIDGET;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct IMAGE
|
|
|
|
{
|
|
|
|
CString name;
|
|
|
|
CString value;
|
|
|
|
POINT location;
|
|
|
|
DIMENSION size;
|
|
|
|
HBITMAP hBitmap;
|
|
|
|
}IMAGE;
|
|
|
|
|
|
|
|
typedef struct WIZBUT
|
|
|
|
{
|
|
|
|
CString back;
|
|
|
|
CString next;
|
|
|
|
CString cancel;
|
1999-10-27 01:10:39 +04:00
|
|
|
CString help;
|
1999-10-23 03:45:20 +04:00
|
|
|
}WIZBUT;
|
|
|
|
|
|
|
|
typedef struct VARS
|
|
|
|
{
|
|
|
|
CString title;
|
|
|
|
CString caption;
|
|
|
|
CString pageName;
|
|
|
|
CString image;
|
|
|
|
CString visibility;
|
|
|
|
CString functionality;
|
|
|
|
WIZBUT *wizbut;
|
|
|
|
}VARS;
|
|
|
|
|
|
|
|
typedef struct PAGE
|
|
|
|
{
|
|
|
|
CStringArray pages;
|
|
|
|
CStringArray visibility;
|
|
|
|
}PAGE;
|
|
|
|
|
|
|
|
typedef struct CONTROLS
|
|
|
|
{
|
|
|
|
CString onNextAction;
|
|
|
|
CString onEnter;
|
|
|
|
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-11-04 23:19:27 +03:00
|
|
|
typedef int (DLLPROC)(CString parms, WIDGET *curWidget);
|
1999-10-23 03:45:20 +04:00
|
|
|
|
|
|
|
typedef struct DLLINFO
|
|
|
|
{
|
|
|
|
CString *dllName;
|
|
|
|
CString *procName;
|
|
|
|
HMODULE hDLL;
|
|
|
|
DLLPROC *procAddr;
|
|
|
|
DLLINFO *next;
|
|
|
|
} DLLINFO;
|
|
|
|
|
|
|
|
#endif //WIZARDTYPES
|