19 #define IsEven(a) (!((a)&1)) 27 const char *
hvitesa[] = {{
"Autoranging for optimal exposure time"},
28 {
"Averaged measurements"},
29 {
"Re-start the execution of the PRG file"},
30 {
"Auto calibration with HG Lamp (hg line at 4358A on pix 512)"},
31 {
"Performs a DARK Measurement (shutter closed)"},
32 {
"Set the exposure time"},
33 {
"Set the filter position (0 - 6)"},
34 {
"Performs a LIGHT Measurement (shutter opened)"},
35 {
"Home for Filter Wheel"},
37 {
"Home for Input Mirror"},
40 {
"Text after this command is displayed in the Status label"},
41 {
"Performs a measurement setting Mirror, Grating, Filter, TExp, Saving mode..."},
42 {
"Set Input Mirror position "},
47 {
"Text after this command is a comment"},
48 {
"Save the measurement in the predefined file"},
49 {
"Stop the program execution for xx millisec"},
50 {
"Set the Grating position"},
51 {
"Stop the execution of the PRG File"}};
74 sprintf (str,
"Pos: %4d X: %3d Y: %3d", ec->
pos, ec->
pos_x, ec->
pos_y);
106 sprintf(buff,
"%s\n",
"AUTORNG");
118 sprintf(buff,
"%s\n",
"BEGIN");
129 sprintf(buff,
"%s\n",
"CALIBRA");
150 sprintf(buff,
"%s\n",
"H_FILTER");
159 sprintf(buff,
"%s\n",
"H_GRAT");
169 sprintf(buff,
"%s\n",
"H_MIRROR");
178 sprintf(buff,
"%s\n",
"HG_OFF");
187 sprintf(buff,
"%s\n",
"HG_ON");
196 sprintf(buff,
"%s\n",
"LABEL");
211 sprintf(buff,
"%s\n",
"PLOT");
220 sprintf(buff,
"%s\n",
"QJ_OFF");
229 sprintf(buff,
"%s\n",
"QJ_ON");
241 sprintf(buff,
"%s\n",
"REM");
250 sprintf(buff,
"%s\n",
"SAVE");
265 sprintf(buff,
"%s\n",
"XEND");
495 while ((!er) & (ch != 10))
void MEditDisableEditing(MOBJECT edit)
void VIKeyCom_CB(MOBJECT p, void *od, void *ad)
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
short DB_FG_Plbl[3]
Foreground PASSIVE Label Colors.
void MSelectObject(MOBJECT f)
MOBJECT MCreateEdit(MOBJECT parent, const char *text, int len, MTFont font)
void SelKeywCB(MOBJECT edit, EDIT_CURS *pedc, void *ad)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
Cursor Position for the Edit Object.
short DB_BG_Albl[3]
Background ACTIVE Label Colors.
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
MOBJECT MCreateScrolledMLEdit(MOBJECT parent, const char *text, int width, int height, MTFont font)
void MObjectSetText(MOBJECT obj, const char *text)
void * MObjectGetUserData(MOBJECT obj)
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
void FlushCR_EOF(FILE *f)
void MLNewValueCB(MOBJECT edit, char *new_value, void *label)
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
void MEditSetCursorPosCallback(MOBJECT edit, EDIT_CURS_CB cb, void *data)
void MObjectSetFGColorFromParent(MOBJECT obj, int true_false)
void MEditSetNewValueCallback(MOBJECT edit, OBJ_STRING_CB cb, void *data)
MOBJECT pbkw[50]
Command buttons.
short DB_FG_Albl[3]
Foreground ACTIVE Label Colors.
MOBJECT MCreateColForm(MOBJECT parent)
short DB_BG_Plbl[3]
Background PASSIVE Label Colors.
void MEditChangeText(MOBJECT edit, int off, int len, const char *new_t, int chg_len)
MOBJECT MDCreatesh_vitesa(void)
MOBJECT MCreateShell(const char *title, int flags)
short DB_BG[3]
Default Background Color.
void MTableFormShowGrid(MOBJECT form)
void MObjectSetUserData(MOBJECT obj, void *ud)
void MEditSetFilter(MOBJECT edit, int filter, const char *extra_chars)
MOBJECT MCreateSpinEdit(MOBJECT parent, const char *text, int len, int clip_len, MTFont font, OBJ_VALUE_CB cb, void *cd)
void MFormSetSpacing(MOBJECT p, int offset)
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
void MLCursorPositionCB(MOBJECT edit, EDIT_CURS *ec, void *lbl)
void MObjectSetCompositeWidth(MOBJECT obj, int w)
short DB_UnSelFG[3]
Unselected Buttons Colors.
short DB_UnSel[3]
Unselected Buttons Colors.
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateRowForm(MOBJECT parent)
void MEditEnableAutoControlColor(MOBJECT edit)