DAS  3.1.6 - 18/09/2017
Functions | Variables
ViTES_1.h File Reference
#include "vitesdef.h"
+ Include dependency graph for ViTES_1.h:

Go to the source code of this file.

Functions

MOBJECT MDCreatesh_vitesa (void)
 

Variables

struct vites VITES
 

Function Documentation

§ MDCreatesh_vitesa()

MOBJECT MDCreatesh_vitesa ( void  )

Definition at line 295 of file ViTES_1.c.

References CENTER_ALIGN, palette::DB_BG, palette::DB_BG_Albl, palette::DB_BG_Plbl, palette::DB_FG_Albl, palette::DB_FG_Plbl, palette::DB_UnSel, palette::DB_UnSelFG, DPAL, vites::edit, False, FIXED_SMALL, HELV_SMALL, KeyCode, lbl, lbl_cur, LEFT_ALIGN, MCreateColForm(), MCreateEdit(), MCreateLabel(), MCreatePButton(), MCreateRowForm(), MCreateScrolledMLEdit(), MCreateShell(), MCreateSpinEdit(), MCreateTableForm(), MEditDisableEditing(), MEditEnableAutoControlColor(), MEditSetCursorPosCallback(), MEditSetFilter(), MEditSetNewValueCallback(), MFormSetSpacing(), MLCursorPositionCB(), MLNewValueCB(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetCompositeWidth(), MObjectSetFGColorFromParent(), MObjectSetForegroundRGB(), MObjectSetResize(), MPButtonSetCallback(), MTableFormShowGrid(), vites::pbkw, sh_vitesa, TOP_ALIGN, True, VIKeyCom_CB(), and VITES.

296 {
297  MOBJECT _colform000;
298  MOBJECT _rowform000;
299 // MOBJECT _label000;
300  MOBJECT _tablefrm000;
301 // MOBJECT _label001;
302 // MOBJECT _sedit000;
303  MOBJECT _rowform001;
304  MOBJECT _rowform002;
305  MOBJECT _tablefrm001;
306  MOBJECT _tablefrm002;
307  MOBJECT _label002;
308  MOBJECT _label003;
309  MOBJECT _label004;
310  MOBJECT _label005;
311  MOBJECT _label006;
312  MOBJECT _label007;
313  MOBJECT _label008;
314  MOBJECT _label009;
315  MOBJECT _label010;
316  MOBJECT _label011;
317  MOBJECT _spinedit000;
318  MOBJECT _spinedit001;
319  MOBJECT _spinedit002;
320  MOBJECT _spinedit003;
321  MOBJECT _edit000;
322  MOBJECT _spinedit004;
323  MOBJECT _spinedit005;
324  MOBJECT _spinedit006;
325  MOBJECT _pbutton012;
326  MOBJECT _tablefrm003;
327  MOBJECT _pbutton013;
328  MOBJECT _pbutton014;
329  MOBJECT _pbutton015;
330  MOBJECT lbl;
331 // MOBJECT lbl_cur;
332 
333  int i;
334 // char buff[64];
335 
336 // VITES.epos = 0;
337 // VITES.ex = 0;
338 // VITES.ey = 0;
339 
340  sh_vitesa = MCreateShell("ViTESA-Visual Table Editor for Spectrometer Activity", 0);
342 
343  _colform000 = MCreateColForm(sh_vitesa);
344 
345  _rowform000 = MCreateRowForm(_colform000);
346  MObjectAlign(_rowform000, LEFT_ALIGN, TOP_ALIGN);
347  MObjectSetResize(_rowform000, False, False);
348  MObjectSetBackgroundRGB(_rowform000, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
349 
350  lbl = MCreateLabel(_rowform000, "KeyWords", HELV_SMALL);
354 
355 
356 
357  _tablefrm000 = MCreateTableForm(_rowform000, 4);
358  MObjectSetBackgroundRGB(_tablefrm000, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
359 
360  for(i=0;i<43;i++)
361  {
362  //sprintf(buff,"%s",VITES.keyw[i]);
363  VITES.pbkw[i] = MCreatePButton(_tablefrm000, KeyCode[i], HELV_SMALL);
364  MPButtonSetCallback(VITES.pbkw[i], VIKeyCom_CB, (void *) i);
368  //MObjectSetPopupHelp(VITES.pbkw[i],hvitesa[i] , 200, 5000);
369 
370  }
371  _rowform001 = MCreateRowForm(_colform000);
372  MObjectSetBackgroundRGB(_rowform001, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
373  MObjectSetResize(_rowform001, True, True);
374 
375  lbl = MCreateLabel(_rowform001, "File: NoName.PRG", HELV_SMALL);
380 
381  lbl_cur = MCreateLabel(_rowform001, " ", HELV_SMALL);
386 
387  VITES.edit = MCreateScrolledMLEdit(_rowform001, "", 98, 10, FIXED_SMALL);
393 
394 
395 
396 
397  _rowform002 = MCreateRowForm(sh_vitesa);
398  MFormSetSpacing(_rowform002, 1);
399  MObjectAlign(_rowform002, CENTER_ALIGN, CENTER_ALIGN);
400  MObjectSetResize(_rowform002, False, False);
401  MObjectSetBackgroundRGB(_rowform002, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
403 
404  _tablefrm001 = MCreateTableForm(_rowform002, 2);
405  MFormSetSpacing(_tablefrm001, 1);
406  MObjectSetResize(_tablefrm001, False, False);
407  MObjectSetBackgroundRGB(_tablefrm001, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
409 
410  _tablefrm002 = MCreateTableForm(_tablefrm001, 9);
411  MFormSetSpacing(_tablefrm002, 1);
412  MTableFormShowGrid(_tablefrm002);
413  MObjectSetBackgroundRGB(_tablefrm002, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
415 
416 
417  _label002 = MCreateLabel(_tablefrm002, "KeyWord", HELV_SMALL);
418 
419  _label003 = MCreateLabel(_tablefrm002, "Mirror", HELV_SMALL);
420 
421  _label004 = MCreateLabel(_tablefrm002, "Grating", HELV_SMALL);
422 
423  _label005 = MCreateLabel(_tablefrm002, "Filter", HELV_SMALL);
424 
425  _label006 = MCreateLabel(_tablefrm002, "AutoRange", HELV_SMALL);
426 
427  _label007 = MCreateLabel(_tablefrm002, "Texp(sec)", HELV_SMALL);
428 
429  _label008 = MCreateLabel(_tablefrm002, "MeasType", HELV_SMALL);
430 
431  _label009 = MCreateLabel(_tablefrm002, "Save", HELV_SMALL);
432 
433  _label010 = MCreateLabel(_tablefrm002, "Plot", HELV_SMALL);
434 
435  _label011 = MCreateLabel(_tablefrm002, "MEASURE", FIXED_SMALL);
436 
437  _spinedit000 = MCreateSpinEdit(_tablefrm002, "Zenith", 7, 7, FIXED_SMALL, NULL, NULL);
438  MEditDisableEditing(_spinedit000);
439 
440  _spinedit001 = MCreateSpinEdit(_tablefrm002, "4358", 5, 5, FIXED_SMALL, NULL, NULL);
441  MEditDisableEditing(_spinedit001);
442 
443  _spinedit002 = MCreateSpinEdit(_tablefrm002, "NULL", 4, 4, FIXED_SMALL, NULL, NULL);
444  MEditDisableEditing(_spinedit002);
445 
446  _spinedit003 = MCreateSpinEdit(_tablefrm002, "Yes", 4, 4, FIXED_SMALL, NULL, NULL);
447  MEditDisableEditing(_spinedit003);
448  MEditEnableAutoControlColor(_spinedit003);
449 
450  _edit000 = MCreateEdit(_tablefrm002, "0.5", 6, FIXED_SMALL);
451  MEditSetFilter(_edit000, 772, "");
452 
453  _spinedit004 = MCreateSpinEdit(_tablefrm002, "Light", 5, 5, FIXED_SMALL, NULL, NULL);
454  MObjectSetFGColorFromParent(_spinedit004, False);
455 
456  _spinedit005 = MCreateSpinEdit(_tablefrm002, "Yes", 4, 4, FIXED_SMALL, NULL, NULL);
457  MObjectSetFGColorFromParent(_spinedit005, False);
458 
459  _spinedit006 = MCreateSpinEdit(_tablefrm002, "Yes", 4, 4, FIXED_SMALL, NULL, NULL);
460  MEditDisableEditing(_spinedit006);
461  MEditEnableAutoControlColor(_spinedit006);
462 
463  _pbutton012 = MCreatePButton(_tablefrm001, "Add Command", HELV_SMALL);
466 
467  _tablefrm003 = MCreateTableForm(_rowform002, 3);
468  MObjectSetFGColorFromParent(_tablefrm003, False);
469  MObjectSetBackgroundRGB(_tablefrm003, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
471 
472  _pbutton013 = MCreatePButton(_tablefrm003, "Open...", HELV_SMALL);
475 
476  _pbutton014 = MCreatePButton(_tablefrm003, "Save as...", HELV_SMALL);
479 
480  _pbutton015 = MCreatePButton(_tablefrm003, "Close", HELV_SMALL);
483 
484 
485  return sh_vitesa;
486 }
void MEditDisableEditing(MOBJECT edit)
void VIKeyCom_CB(MOBJECT p, void *od, void *ad)
Definition: ViTES_1.c:279
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT lbl
Definition: DFileMan.c:42
short DB_FG_Plbl[3]
Foreground PASSIVE Label Colors.
MOBJECT MCreateEdit(MOBJECT parent, const char *text, int len, MTFont font)
MOBJECT lbl_cur
Definition: ViTES_1.c:20
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
short DB_BG_Albl[3]
Background ACTIVE Label Colors.
#define False
Definition: Mguidefs.h:236
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
const char * KeyCode[]
Definition: DAS_Spat.c:164
MOBJECT MCreateScrolledMLEdit(MOBJECT parent, const char *text, int width, int height, MTFont font)
palette DPAL
Definition: 2DPlot.c:27
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
struct vites VITES
Definition: ViTES_1.c:22
void MLNewValueCB(MOBJECT edit, char *new_value, void *label)
Definition: ViTES_1.c:86
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
void MEditSetCursorPosCallback(MOBJECT edit, EDIT_CURS_CB cb, void *data)
#define CENTER_ALIGN
Definition: Mguidefs.h:917
void MObjectSetFGColorFromParent(MOBJECT obj, int true_false)
void MEditSetNewValueCallback(MOBJECT edit, OBJ_STRING_CB cb, void *data)
#define HELV_SMALL
Definition: Mguidefs.h:881
#define FIXED_SMALL
Definition: Mguidefs.h:878
MOBJECT pbkw[50]
Command buttons.
Definition: vitesdef.h:3
short DB_FG_Albl[3]
Foreground ACTIVE Label Colors.
MOBJECT MCreateColForm(MOBJECT parent)
MOBJECT sh_vitesa
Definition: ViTES_1.c:21
short DB_BG_Plbl[3]
Background PASSIVE Label Colors.
MOBJECT MCreateShell(const char *title, int flags)
short DB_BG[3]
Default Background Color.
void MTableFormShowGrid(MOBJECT form)
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)
Definition: ViTES_1.c:70
void MObjectSetCompositeWidth(MOBJECT obj, int w)
short DB_UnSelFG[3]
Unselected Buttons Colors.
short DB_UnSel[3]
Unselected Buttons Colors.
void * MOBJECT
Definition: Mguidefs.h:192
#define True
Definition: Mguidefs.h:235
#define LEFT_ALIGN
Definition: Mguidefs.h:915
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateRowForm(MOBJECT parent)
void MEditEnableAutoControlColor(MOBJECT edit)
#define TOP_ALIGN
Definition: Mguidefs.h:918
MOBJECT edit
Definition: vitesdef.h:5
+ Here is the call graph for this function:

Variable Documentation

§ VITES

struct vites VITES

Definition at line 22 of file ViTES_1.c.

Referenced by MDCreatesh_vitesa(), and VIKeyCom_CB().

______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:46:26 for DAS - Rel. 3.1.6 - 18/09/2017.