UNIVERS
15.3
UNIVERS base processing software API
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
zm
qvfcdefs.h
1
/* qvfcdefs.h */
2
/* $Id: qvfcdefs.h,v 1.30 2005/05/16 10:57:40 vlad Exp $ */
3
#ifndef __qvfcdefs_h
4
#define __qvfcdefs_h
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
/* __cplusplus */
9
10
11
#include <Xm/Xm.h>
12
13
14
/*
15
* XToolkit objects naming.
16
*/
17
18
#define QfKING_NAME "QfKing"
19
#define QfMASTER_NAME "QfMaster"
20
#define QfFORM_NAME "QfForm"
21
#define QfINPUT_FORM_NAME "QfInputForm"
22
#define QfFRAME_NAME "QfFrame"
23
#define QfLABEL_NAME "QfLabel"
24
#define QfTITLE_NAME "QfTitle"
25
#define QfINPUT_FIELD_NAME "QfInputField"
26
#define QfSEPARATOR_NAME "QfSeparator"
27
#define QfTRIGGER_NAME "QfTrigger"
28
#define QfBUTTON_NAME "QfButton"
29
#define QfDIALOG_NAME "QfDialog"
30
#define QfPROGRESS_NAME "QfProgress"
31
#define QfOPTIONS_NAME "QfOptions"
32
#define QfTAB_NAME "QfTab"
33
#define QfACTIONS_NAME "QfActions"
34
#define QfGRID_NAME "QfGrid"
35
#define QfSCALER_NAME "QfScaler"
36
#define QfICON_NAME "QfIcon"
37
#define QfCOLOR_NAME "QfColor"
38
#define QfPALETTE_NAME "QfPalette"
39
#define QfARROW_NAME "QfArrow"
40
#define QfZTMAIN_NAME "QfZtMain"
41
42
43
/*
44
* Fallback parameters of XToolkit objects.
45
*/
46
47
#define QfKING_MARGIN 5
48
#define QfMASTER_MARGIN 2
49
#define QfFORM_MARGIN 0
50
#define QfTEXT_FIELD_WIDTH 20
51
#define QfNUMERIC_FIELD_WIDTH 8
52
#define QfNUMERIC_FIELD_LENGTH 25
53
#define QfNUMERIC_SCALE_HEIGHT 15
54
#define QfINDENT 10
55
#define QfNUMVECTOR_FIELD_WIDTH 8
56
#define QfNUMVECTOR_FIELD_LENGTH 25
57
58
59
/*
60
* Quick form objects tuning types and defs.
61
*/
62
63
/* Number of events to process in one call of QfCastle::process_events() */
64
#define QfEVENTS_QUANT 30
65
66
/* Default formatting strings for different types of progress
67
variable. */
68
#define QfPROGRESS_FMT "%12.2g"
69
70
71
/* General type. */
72
typedef
enum
73
{
74
QfBrickType,
/* visualized and managable */
75
QfBuildingType,
/* visualized, managable and manager */
76
QfParamType
/* not visualized */
77
78
} QfType;
79
80
/* Parameter type. */
81
typedef
enum
82
{
83
QpResizable
/* resize next brick in QfBarrak and QfTower */
84
85
} QfParamId;
86
87
/* Type of visual form work completion. */
88
typedef
enum
89
{
90
QfUNKNOWN,
/* visual form is still active (or inactive) */
91
QfAPPLY,
92
QfCANCEL
93
94
} QfCompletion;
95
96
/* Building's decoration. */
97
typedef
enum
98
{
99
QfDECOR_NONE,
100
QfDECOR_FRAME,
101
QfDECOR_SHADOW_IN,
102
QfDECOR_SHADOW_OUT
103
104
} QfDecoration;
105
106
/* Window placement depending on parent window */
107
typedef
enum
108
{
109
QfWINPLACE_DEFAULT,
110
QfWINPLACE_EAST_NORD,
111
QfWINPLACE_WEST_NORD,
112
QfWINPLACE_EAST_SOUTH,
113
QfWINPLACE_WEST_SOUTH,
114
QfWINPLACE_CENTERED
115
116
} QfWindowPlacement;
117
118
/* Flags for QfText object */
119
#define QfT_SCROLLED (1<<0)
/* text in scrolled window */
120
#define QfT_VIEWONLY (1<<1)
/* if can't be edited */
121
122
/* Action button ids. */
123
typedef
enum
124
{
125
QfA_OK = 0,
126
QfA_APPLY,
127
QfA_RUN,
128
QfA_UNDO,
129
QfA_HELP,
130
QfA_STOP,
131
QfA_CANCEL,
132
QfA_CLOSE,
133
134
QfA_ButtonsNumber
/* count of defined action buttons */
135
136
} QfActionButtonId;
137
138
/* Action button ids for actions mask type. */
139
#define QfAM_OK (1<<QfA_OK)
140
#define QfAM_APPLY (1<<QfA_APPLY)
141
#define QfAM_RUN (1<<QfA_RUN)
142
#define QfAM_UNDO (1<<QfA_UNDO)
143
#define QfAM_HELP (1<<QfA_HELP)
144
#define QfAM_STOP (1<<QfA_STOP)
145
#define QfAM_CANCEL (1<<QfA_CANCEL)
146
#define QfAM_CLOSE (1<<QfA_CLOSE)
147
148
/* Define set of buttons in dialog. */
149
typedef
int
QfActionsMask;
150
151
/* Action procedure prototype. */
152
typedef
void (*QfActionProc)(
void
* pUserData);
153
154
/* For selection of existing data or selecting+entering new */
155
#define QfDATA_SELECT 1
156
#define QfDATA_ENTER 2
157
158
/* Radio active object is on (or off) if state is active */
159
#define QfSTATE_MEANS_ON 0
160
#define QfSTATE_MEANS_OFF 1
161
/* Radio active object is enabled (or disabled) if state is active */
162
#define QfSTATE_SENSITIVE 2
163
#define QfSTATE_UNSENSITIVE 3
164
165
/* Numeric input field options (ORed) */
166
#define QfNFM_SCALER (1<<0)
167
#define QfNFM_ALLOW_INF (1<<1)
168
169
170
#ifdef __cplusplus
171
};
172
#endif
/* __cplusplus */
173
174
#endif
/* qvfcdefs.h */
Generated by
1.8.5