DAS  3.1.6 - 18/09/2017
Functions | Variables
DOAS_FullProj.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

MOBJECT MDCreateDiff_Sh (int mod)
 
MOBJECT MDCreateFixed_Sh (int mod)
 
MOBJECT MDCreateFormat_Sh (int mod)
 

Variables

MOBJECT ColFor_Sh
 
MOBJECT DOAS_MainSh
 
MOBJECT DOAS_ProcSh
 
MOBJECT DOAS_SetupSh
 
MENU_ITEM id_item
 
MENU_ITEM id_menu
 
MOBJECT menu
 
MOBJECT menubar
 
MOBJECT SolPosCalc
 

Function Documentation

§ MDCreateDiff_Sh()

MOBJECT MDCreateDiff_Sh ( int  mod)

Definition at line 716 of file DOAS_FullProj.c.

References CloseMObjCB(), palette::DB_BG, palette::DB_BG_lblUP, palette::DB_BG_RButt, palette::DB_FG_lblUP, palette::DB_FG_RButt, palette::DB_UnSel, palette::DB_UnSelFG, FIXED_SMALL, FixedStepCB(), HELV_SMALL, lbl, MButtonSetOnMouseOverForegroundRGB(), MCreateEdit(), MCreateLabel(), MCreatePButton(), MCreateRButton(), MCreateRowForm(), MCreateShell(), MCreateTableForm(), MEditSetFilter(), MObjectSetBackgroundRGB(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetTransparency(), MPButtonSetCallback(), MShellRealize(), and True.

Referenced by DiffCB().

717 {
718  MOBJECT rowfrm;
719  MOBJECT sh, pb, tb, lbl, rb, ed;
720 
721  sh = MCreateShell("Differentiate File", 0);
723 
724  rowfrm = MCreateRowForm(sh);
725  MObjectSetForegroundRGB(rowfrm, 255, 255, 0);
726  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
727 
728  lbl = MCreateLabel(rowfrm, "FILTER DATA ?", HELV_SMALL);
731  MObjectSetTransparency(lbl, 0);
732 
733  tb = MCreateTableForm(rowfrm, 2);
734  MObjectSetForegroundRGB(tb, 255, 255, 0);
736  MObjectSetResize(tb, True, True);
737 
738  rb = MCreateRButton(tb, "Yes", HELV_SMALL);
741  MObjectSetTransparency(rb, 0);
742 
743  rb = MCreateRButton(tb, "No", HELV_SMALL);
746  MObjectSetTransparency(rb, 0);
747 
748  tb = MCreateTableForm(rowfrm, 2);
750 
751  lbl = MCreateLabel(tb, "Filter Windows", HELV_SMALL);
752  MObjectSetBackgroundRGB(lbl, 65, 51, 0);
753  MObjectSetForegroundRGB(lbl, 255, 255, 255);
754  MObjectSetTransparency(lbl, 0);
755 
756  ed = MCreateEdit(tb, "", 4, FIXED_SMALL);
757  MEditSetFilter(ed, 772, "");
758 // MEditSetActCallback(ed, SactedtCB, (void *) 6);
759 // MEditSetValCallback(ed, SvaledtCB, (void *) 6);
760  MObjectSetForegroundRGB(ed, 255, 255, 0);
761  MObjectSetBackgroundRGB(ed, 117, 117, 169);
762 
763  lbl = MCreateLabel(tb, "Differential Windows", HELV_SMALL);
764  MObjectSetBackgroundRGB(lbl, 65, 51, 0);
765  MObjectSetForegroundRGB(lbl, 255, 255, 255);
766  MObjectSetTransparency(lbl, 0);
767 
768  ed = MCreateEdit(tb, "", 4, FIXED_SMALL);
769  MEditSetFilter(ed, 772, "");
770 // MEditSetActCallback(ed, SactedtCB, (void *) 6);
771 // MEditSetValCallback(ed, SvaledtCB, (void *) 6);
772  MObjectSetForegroundRGB(ed, 255, 255, 0);
773  MObjectSetBackgroundRGB(ed, 117, 117, 169);
774 
775  tb = MCreateTableForm(rowfrm, 2);
777 
778 
779  pb = MCreatePButton(tb, "Execute", HELV_SMALL);
784 
785 
786  pb = MCreatePButton(tb, " Close ", HELV_SMALL);
787  MPButtonSetCallback(pb, CloseMObjCB, (void *) sh);
791 
792  MShellRealize(sh);
793 
794 
795  return 0;
796 }
short DB_BG_lblUP[3]
Background Capital Letters Labels Color UP.
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT lbl
Definition: DFileMan.c:42
void MShellRealize(MOBJECT obj)
MOBJECT MCreateEdit(MOBJECT parent, const char *text, int len, MTFont font)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
short DB_BG_RButt[3]
Background Radio Buttons.
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
#define HELV_SMALL
Definition: Mguidefs.h:881
#define FIXED_SMALL
Definition: Mguidefs.h:878
void CloseMObjCB(MOBJECT p, void *od, void *ad)
MOBJECT MCreateShell(const char *title, int flags)
short DB_BG[3]
Default Background Color.
void FixedStepCB(MOBJECT p, void *od, void *ad)
MOBJECT MCreateRButton(MOBJECT parent, const char *text, MTFont font)
short DB_FG_RButt[3]
Foreground Radio Buttons.
palette DPAL
Definition: DOAS_FullProj.c:36
void MEditSetFilter(MOBJECT edit, int filter, const char *extra_chars)
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
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
void MButtonSetOnMouseOverForegroundRGB(MOBJECT button, int r, int g, int b)
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateRowForm(MOBJECT parent)
short DB_FG_lblUP[3]
Foreground Capital Letters Labels Color UP.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ MDCreateFixed_Sh()

MOBJECT MDCreateFixed_Sh ( int  mod)

Definition at line 632 of file DOAS_FullProj.c.

References CloseMObjCB(), palette::DB_BG, palette::DB_BG_lblUP, palette::DB_FG_lblUP, palette::DB_UnSel, palette::DB_UnSelFG, FIXED_SMALL, FixedStepCB(), HELV_SMALL, lbl, MButtonSetOnMouseOverForegroundRGB(), MCreateEdit(), MCreateLabel(), MCreatePButton(), MCreateRowForm(), MCreateShell(), MCreateTableForm(), MEditSetFilter(), MObjectSetBackgroundRGB(), MObjectSetForegroundRGB(), MObjectSetTransparency(), MPButtonSetCallback(), and MShellRealize().

Referenced by FixStepCB().

633 {
634  MOBJECT rowfrm;
635  MOBJECT sh, pb, tb, lbl, ed;
636 
637  sh = MCreateShell("Fixed Step Tool", 0);
639 
640  rowfrm = MCreateRowForm(sh);
641  MObjectSetForegroundRGB(rowfrm, 255, 255, 0);
642  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
643 
644  lbl = MCreateLabel(rowfrm, "This tool allows for fixing the step\nof an inhomogeneous spectral series\nby using the interpolation procedure\nover the specified\n known points and of the desired order.", HELV_SMALL);
647  MObjectSetTransparency(lbl, 0);
648 
649 
650 
651  tb = MCreateTableForm(rowfrm, 2);
653 
654  lbl = MCreateLabel(tb, "Final Step", HELV_SMALL);
655  MObjectSetBackgroundRGB(lbl, 65, 51, 0);
656  MObjectSetForegroundRGB(lbl, 255, 255, 255);
657  MObjectSetTransparency(lbl, 0);
658 
659  ed = MCreateEdit(tb, "2", 4, FIXED_SMALL);
660  MEditSetFilter(ed, 772, "");
661 // MEditSetActCallback(ed, SactedtCB, (void *) 6);
662 // MEditSetValCallback(ed, SvaledtCB, (void *) 6);
663  MObjectSetForegroundRGB(ed, 255, 255, 0);
664  MObjectSetBackgroundRGB(ed, 117, 117, 169);
665 
666  lbl = MCreateLabel(tb, "Known Points", HELV_SMALL);
667  MObjectSetBackgroundRGB(lbl, 65, 51, 0);
668  MObjectSetForegroundRGB(lbl, 255, 255, 255);
669  MObjectSetTransparency(lbl, 0);
670 
671  ed = MCreateEdit(tb, "3", 4, FIXED_SMALL);
672 // MEditSetFilter(ed, 772, "");
673 // MEditSetActCallback(ed, SactedtCB, (void *) 6);
674 // MEditSetValCallback(ed, SvaledtCB, (void *) 6);
675  MObjectSetForegroundRGB(ed, 255, 255, 0);
676  MObjectSetBackgroundRGB(ed, 117, 117, 169);
677 
678  lbl = MCreateLabel(tb, "Regression Order", HELV_SMALL);
679  MObjectSetBackgroundRGB(lbl, 65, 51, 0);
680  MObjectSetForegroundRGB(lbl, 255, 255, 255);
681  MObjectSetTransparency(lbl, 0);
682 
683  ed = MCreateEdit(tb, "3", 4, FIXED_SMALL);
684 // MEditSetFilter(ed, 772, "");
685 // MEditSetActCallback(ed, SactedtCB, (void *) 6);
686 // MEditSetValCallback(ed, SvaledtCB, (void *) 6);
687  MObjectSetForegroundRGB(ed, 255, 255, 0);
688  MObjectSetBackgroundRGB(ed, 117, 117, 169);
689 
690  tb = MCreateTableForm(rowfrm, 2);
692 
693 
694  pb = MCreatePButton(tb, "Execute", HELV_SMALL);
699 
700 
701  pb = MCreatePButton(tb, " Close ", HELV_SMALL);
702  MPButtonSetCallback(pb, CloseMObjCB, (void *) sh);
706 
707  MShellRealize(sh);
708 
709 
710  return 0;
711 }
short DB_BG_lblUP[3]
Background Capital Letters Labels Color UP.
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT lbl
Definition: DFileMan.c:42
void MShellRealize(MOBJECT obj)
MOBJECT MCreateEdit(MOBJECT parent, const char *text, int len, MTFont font)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
#define HELV_SMALL
Definition: Mguidefs.h:881
#define FIXED_SMALL
Definition: Mguidefs.h:878
void CloseMObjCB(MOBJECT p, void *od, void *ad)
MOBJECT MCreateShell(const char *title, int flags)
short DB_BG[3]
Default Background Color.
void FixedStepCB(MOBJECT p, void *od, void *ad)
palette DPAL
Definition: DOAS_FullProj.c:36
void MEditSetFilter(MOBJECT edit, int filter, const char *extra_chars)
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
short DB_UnSelFG[3]
Unselected Buttons Colors.
short DB_UnSel[3]
Unselected Buttons Colors.
void * MOBJECT
Definition: Mguidefs.h:192
void MButtonSetOnMouseOverForegroundRGB(MOBJECT button, int r, int g, int b)
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateRowForm(MOBJECT parent)
short DB_FG_lblUP[3]
Foreground Capital Letters Labels Color UP.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ MDCreateFormat_Sh()

MOBJECT MDCreateFormat_Sh ( int  mod)

Definition at line 1548 of file DOAS_FullProj.c.

References ChangeFormatCB(), CloseMObjCB(), palette::DB_BG, palette::DB_BG_lblUP, palette::DB_BG_RButt, palette::DB_FG_lblUP, palette::DB_FG_RButt, palette::DB_UnSel, palette::DB_UnSelFG, FilterRawDataCB(), FIXED_SMALL, HELV_SMALL, lbl, MButtonSetOnMouseOverForegroundRGB(), MCreateEdit(), MCreateLabel(), MCreatePButton(), MCreateRButton(), MCreateRowForm(), MCreateShell(), MCreateTableForm(), MEditSetFilter(), MObjectSetBackgroundRGB(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetTransparency(), MObjectSetUnsensitive(), MPButtonSetCallback(), MRButtonActivate(), MShellRealize(), RBFormatCB(), and True.

Referenced by ChooseFormatCB(), and FilterCB().

1549 {
1550  MOBJECT rowfrm;
1551  MOBJECT sh, pb, tb, lbl, rb, ed;
1552 
1553  if (mod == 1) // ASCII 2 BIN
1554  sh = MCreateShell("ASCII 2 Binary Format", 0);
1555  else if (mod == 0)
1556  sh = MCreateShell("Binary 2 ASCII Format", 0);
1557  else if (mod == 2)
1558  sh = MCreateShell("Filter Raw Data", 0);
1559 
1561 
1562  rowfrm = MCreateRowForm(sh);
1563 // MObjectSetForegroundRGB(rowfrm, 255, 255, 0);
1564  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
1565 
1566  lbl = MCreateLabel(rowfrm, "SELECT FILE MODE", HELV_SMALL);
1569  MObjectSetTransparency(lbl, 0);
1570 
1571  tb = MCreateTableForm(rowfrm, 4);
1572 // MObjectSetForegroundRGB(tb, 255, 255, 0);
1574  MObjectSetResize(tb, True, True);
1575 
1576  rb = MCreateRButton(tb, "Single", HELV_SMALL);
1579  MObjectSetTransparency(rb, 0);
1580  MRButtonActivate(rb);
1581  MPButtonSetCallback(rb, RBFormatCB, (void *) 0);
1582 
1583  rb = MCreateRButton(tb, "List of...", HELV_SMALL);
1586  MObjectSetTransparency(rb, 0);
1587  MPButtonSetCallback(rb, RBFormatCB, (void *) 1);
1588 
1589  rb = MCreateRButton(tb, "Directory", HELV_SMALL);
1592  MObjectSetTransparency(rb, 0);
1593  MPButtonSetCallback(rb, RBFormatCB, (void *) 2);
1595 
1596  rb = MCreateRButton(tb, "Drive", HELV_SMALL);
1599  MObjectSetTransparency(rb, 0);
1600  MPButtonSetCallback(rb, RBFormatCB, (void *) 3);
1602 
1603  if (mod == 2)
1604  {
1605  tb = MCreateTableForm(rowfrm, 2);
1607 
1608  lbl = MCreateLabel(tb, "Filter Windows", HELV_SMALL);
1609  MObjectSetBackgroundRGB(lbl, 65, 51, 0);
1610  MObjectSetForegroundRGB(lbl, 255, 255, 255);
1611  MObjectSetTransparency(lbl, 0);
1612 
1613  ed = MCreateEdit(tb, "", 4, FIXED_SMALL);
1614  MEditSetFilter(ed, 772, "");
1615  // MEditSetActCallback(ed, SactedtCB, (void *) 6);
1616  // MEditSetValCallback(ed, SvaledtCB, (void *) 6);
1617  MObjectSetForegroundRGB(ed, 255, 255, 0);
1618  MObjectSetBackgroundRGB(ed, 117, 117, 169);
1619 
1620  }
1621  tb = MCreateTableForm(rowfrm, 2);
1623 
1624 
1625  pb = MCreatePButton(tb, "Execute", HELV_SMALL);
1626  if (mod == 1) // ASCII 2 BIN
1627  MPButtonSetCallback(pb, ChangeFormatCB, (void *)mod);
1628  else if (mod == 0)
1629  MPButtonSetCallback(pb, ChangeFormatCB, (void *)mod);
1630  else if (mod == 2)
1632 
1636 
1637  pb = MCreatePButton(tb, " Close ", HELV_SMALL);
1638  MPButtonSetCallback(pb, CloseMObjCB, (void *) sh);
1642 
1643  MShellRealize(sh);
1644 
1645 
1646  return 0;
1647 }
short DB_BG_lblUP[3]
Background Capital Letters Labels Color UP.
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT lbl
Definition: DFileMan.c:42
void MShellRealize(MOBJECT obj)
MOBJECT MCreateEdit(MOBJECT parent, const char *text, int len, MTFont font)
void MObjectSetUnsensitive(MOBJECT obj)
void RBFormatCB(MOBJECT p, void *od, void *ad)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
void ChangeFormatCB(MOBJECT p, void *od, void *ad)
short DB_BG_RButt[3]
Background Radio Buttons.
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
#define HELV_SMALL
Definition: Mguidefs.h:881
#define FIXED_SMALL
Definition: Mguidefs.h:878
void CloseMObjCB(MOBJECT p, void *od, void *ad)
void MRButtonActivate(MOBJECT o)
MOBJECT MCreateShell(const char *title, int flags)
short DB_BG[3]
Default Background Color.
MOBJECT MCreateRButton(MOBJECT parent, const char *text, MTFont font)
short DB_FG_RButt[3]
Foreground Radio Buttons.
palette DPAL
Definition: DOAS_FullProj.c:36
void MEditSetFilter(MOBJECT edit, int filter, const char *extra_chars)
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
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
void MButtonSetOnMouseOverForegroundRGB(MOBJECT button, int r, int g, int b)
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
void FilterRawDataCB(MOBJECT p, void *od, void *ad)
MOBJECT MCreateRowForm(MOBJECT parent)
short DB_FG_lblUP[3]
Foreground Capital Letters Labels Color UP.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

§ ColFor_Sh

MOBJECT ColFor_Sh

Definition at line 57 of file DOAS_FullProj.c.

Referenced by ColumnFCB().

§ DOAS_MainSh

MOBJECT DOAS_MainSh

Definition at line 58 of file DOAS_FullProj.c.

Referenced by MDCreateDOAS_MainSh().

§ DOAS_ProcSh

MOBJECT DOAS_ProcSh

Definition at line 63 of file DOAS_FullProj.c.

Referenced by DOASProcCB().

§ DOAS_SetupSh

MOBJECT DOAS_SetupSh

Definition at line 64 of file DOAS_FullProj.c.

Referenced by DOASSetupCB().

§ id_item

MENU_ITEM id_item

Definition at line 19 of file DOAS_FullProj.h.

Referenced by MDCreateDOAS_MainSh().

§ id_menu

MENU_ITEM id_menu

Definition at line 11 of file DOAS_FullProj.h.

Referenced by MDCreateDOAS_MainSh().

§ menu

MOBJECT menu

Definition at line 10 of file DOAS_FullProj.h.

§ menubar

MOBJECT menubar

Definition at line 59 of file DOAS_FullProj.c.

Referenced by MDCreateDOAS_MainSh().

§ SolPosCalc

MOBJECT SolPosCalc

Definition at line 65 of file DOAS_FullProj.c.

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