DAS  3.1.6 - 18/09/2017
Functions | Variables
DOAS_FullProj.c File Reference

GUI for DOAS Execution modes. More...

#include <windows.h>
#include <errno.h>
#include <io.h>
#include <malloc.h>
#include <math.h>
#include <direct.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mgui.h"
#include "DOAS_FullProj.h"
#include "Bil.h"
#include "DAS_Spatram.h"
#include "dcl.h"
#include "dil.h"
#include "DOAS.h"
#include "dscud.h"
+ Include dependency graph for DOAS_FullProj.c:

Go to the source code of this file.

Functions

void BrowseCB (MOBJECT p, void *od, void *ad)
 
void BuildListCB (MOBJECT p, void *od, void *ad)
 
void ChangeFormatCB (MOBJECT p, void *od, void *ad)
 
void ChooseFormatCB (MOBJECT p, void *od, void *ad)
 
void CloseMObjCB (MOBJECT p, void *od, void *ad)
 
void ColumnFCB (MOBJECT p, void *od, void *ad)
 
void ColumnFormatCB (MOBJECT p, void *od, void *ad)
 
void CreateFileListCB (MOBJECT p, void *od, void *ad)
 
int CreateList (MOBJECT ed)
 
void D_SunCalc (void)
 Sun Calculator Callback. More...
 
int DatOrBinFormat (int mod, char *dir, char *filename)
 
void DB_FilterColumnCB (MOBJECT p, void *od, void *ad)
 
void DiffCB (MOBJECT p, void *od, void *ad)
 
int DOAS_LoadConfig (struct doas *pdoas)
 
void DOAS_Plot (int mod, int plottype, MOBJECT obj, char *text, struct doas *pdoas)
 
void DOAS_SetupPagedForm (int c, struct doas *pdoas)
 
void DOASConfigCB (MOBJECT p, void *od, void *ad)
 
void DOASProcCB (MOBJECT p, void *od, void *ad)
 
void DOASSetupCB (MOBJECT p, void *od, void *ad)
 
void DOASTogButCB (MOBJECT p, MVALUE od, void *ad)
 
void EditorCB (MOBJECT p, void *od, void *ad)
 
int EleDatOrBinFormat (int c, char *dirname, char *fname)
 
void ExitCB (MOBJECT p, void *od, void *ad)
 
void FilterCB (MOBJECT p, void *od, void *ad)
 
void FilterRawDataCB (MOBJECT p, void *od, void *ad)
 
void FixedStepCB (MOBJECT p, void *od, void *ad)
 
void FixStepCB (MOBJECT p, void *od, void *ad)
 
void FluxIndexCB (MOBJECT p, void *od, void *ad)
 
void HlpTopCB (MOBJECT p, void *od, void *ad)
 
void IoCreateCB (MOBJECT p, void *od, void *ad)
 
void IoSetupCB (MOBJECT p, void *od, void *ad)
 
void LinkSpectraCB (MOBJECT p, void *od, void *ad)
 
void LoadIoCB (MOBJECT p, void *od, void *ad)
 
MOBJECT MDCreateBuildList_Sh (int mod)
 
MOBJECT MDCreateColFor_Sh (void)
 
MOBJECT MDCreateDiff_Sh (int mod)
 
MOBJECT MDCreateDOAS_MainSh (struct doas *pdoas)
 DOAS shell. Procedure that build the shell for the DOAS main panels. More...
 
MOBJECT MDCreateDOAS_ProcSh (void)
 
MOBJECT MDCreateDOAS_SetupSh (void)
 
MOBJECT MDCreateFixed_Sh (int mod)
 
MOBJECT MDCreateFormat_Sh (int mod)
 
MOBJECT MDCreateSolPosCalc (void)
 
void PlotDOAS (MOBJECT obj)
 
void PlotDOAS_Spectra (int mod, MOBJECT obj, unsigned short plotmat[], int idx, int idy, double costx, double costy, int min, int max, int ox, int oy)
 
void RBEditListCB (MOBJECT p, void *od, void *ad)
 
void RBFormatCB (MOBJECT p, void *od, void *ad)
 
void RBListFileCB (MOBJECT p, void *od, void *ad)
 
void ResumeCB (MOBJECT p, void *od, void *ad)
 
void ShStCB (MOBJECT p, void *od, void *ad)
 
void SunCalcCB (MOBJECT p, void *od, void *ad)
 
void ViewCB (MOBJECT p, void *od, void *ad)
 
void VitesaCB (MOBJECT p, void *od, void *ad)
 
int WriteDataFile (int c, char *filed)
 
int WriteDOASConfig (void)
 

Variables

bil BIL
 
MOBJECT ColFor_Sh
 
das DAS
 
doas DOAS
 
MOBJECT DOAS_MainSh
 
MOBJECT DOAS_ProcSh
 
MOBJECT DOAS_SetupSh
 
palette DPAL
 
MOBJECT edtwf
 
flag FLAG
 
int fwstatus = 0
 
MOBJECT lblris
 
MOBJECT lblsys
 
MOBJECT lblwf
 
listf LISTF
 
MOBJECT menu
 
MOBJECT menubar
 
MOBJECT SolPosCalc
 
MOBJECT submenu
 

Detailed Description

GUI for DOAS Execution modes.

Author
Daniele Bortoli

Definition in file DOAS_FullProj.c.

Function Documentation

§ BrowseCB()

void BrowseCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 1742 of file DOAS_FullProj.c.

References FB_PREFS::allow_dir_create, FB_PREFS::allow_dir_delete, FB_PREFS::allow_dir_rename, FB_PREFS::bg_image, FB_PREFS::bg_image_file, FB_PREFS::button_font, FB_PREFS::change_cwd, FB_PREFS::close_button, FB_PREFS::create_menu, False, FB_PREFS::file_label, FB_PREFS::filter_label, FB_PREFS::font, HELV_SMALL, lblris, lblsys, MDirBrowseExt(), MObjectSetText(), FB_PREFS::ok_button, FB_PREFS::remove_menu, FB_PREFS::rename_menu, doas::RISDIR, doas::SYSDIR, FB_PREFS::transparent_tree, True, and WriteDOASConfig().

Referenced by MDCreateDOAS_MainSh().

1743 {
1744 
1745  int er = 0;
1746  FB_PREFS prefs;
1747 
1748 // MIMAGE img;
1749  prefs.allow_dir_create = True;
1750  prefs.allow_dir_delete = True;
1751  prefs.allow_dir_rename = True;
1752  prefs.change_cwd = False;
1753  prefs.allow_dir_create = True;
1754  prefs.allow_dir_rename = True;
1755  prefs.bg_image = NULL;
1756  prefs.bg_image_file = "sys\\images\\tiles\\tile2.bmp";
1757  prefs.button_font = HELV_SMALL;
1758  prefs.close_button = "CANCEL";
1759  prefs.create_menu = "CREATE";
1760  prefs.file_label = "File:";
1761  prefs.filter_label = "Filter:";
1762  prefs.font = HELV_SMALL;
1763  prefs.ok_button = "OK";
1764  prefs.remove_menu = "REMOVE";
1765  prefs.rename_menu = "RENAME";
1766  prefs.transparent_tree = False;
1767 
1768 
1769  switch((int) ad)
1770  {
1771  // DOAS System directory
1772  case 0:
1773 
1774 
1775  if(MDirBrowseExt("SELECT DOAS SYS DIRECTORY", "*.*", DOAS.SYSDIR, &prefs))
1777  er = WriteDOASConfig();
1778  break;
1779  // DOAS Results directory
1780  case 1:
1781  if(MDirBrowseExt("SELECT DOAS RESULTS DIRECTORY", "*.*",DOAS.RISDIR, &prefs))
1783  er = WriteDOASConfig();
1784  break;
1785  // Selected directory
1786  case 2:
1787  if(MDirBrowseExt("SELECT DIRECTORY", "*.*",DOAS.RISDIR, &prefs))
1788 
1789  break;
1790 
1791  }
1792 
1793 }
const char * rename_menu
Definition: Mguidefs.h:1513
char RISDIR[_MAX_PATH]
DOAS results directory.
Definition: DOASdef.h:34
const char * create_menu
Definition: Mguidefs.h:1511
const char * remove_menu
Definition: Mguidefs.h:1515
const char * close_button
Definition: Mguidefs.h:1509
char SYSDIR[_MAX_PATH]
DOAS system directory.
Definition: DOASdef.h:33
CARD8 change_cwd
Definition: Mguidefs.h:1485
MOBJECT lblsys
Definition: DOAS_FullProj.c:66
CARD8 allow_dir_create
Definition: Mguidefs.h:1487
MTFont button_font
Definition: Mguidefs.h:1501
CARD8 allow_dir_delete
Definition: Mguidefs.h:1493
MTFont font
Definition: Mguidefs.h:1499
#define False
Definition: Mguidefs.h:236
void MObjectSetText(MOBJECT obj, const char *text)
MOBJECT lblris
Definition: DOAS_FullProj.c:66
File Browser Preferences. Used by the Utility functions MFileBowserExt() and MDirBowserExt().
Definition: Mguidefs.h:1482
const char * ok_button
Definition: Mguidefs.h:1507
doas DOAS
Definition: DOAS_FullProj.c:44
CARD8 transparent_tree
Definition: Mguidefs.h:1495
#define HELV_SMALL
Definition: Mguidefs.h:881
const char * file_label
Definition: Mguidefs.h:1505
const char * bg_image_file
Definition: Mguidefs.h:1519
int MDirBrowseExt(const char *t, const char *ext, char *dname, FB_PREFS *prefs)
MIMAGE bg_image
Definition: Mguidefs.h:1517
const char * filter_label
Definition: Mguidefs.h:1503
#define True
Definition: Mguidefs.h:235
CARD8 allow_dir_rename
Definition: Mguidefs.h:1490
int WriteDOASConfig(void)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ BuildListCB()

void BuildListCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 602 of file DOAS_FullProj.c.

References MDCreateBuildList_Sh().

Referenced by MDCreateDOAS_MainSh().

603 {
604 
606 }
MOBJECT MDCreateBuildList_Sh(int mod)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ ChangeFormatCB()

void ChangeFormatCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 1398 of file DOAS_FullProj.c.

References FB_PREFS::allow_dir_create, FB_PREFS::allow_dir_delete, FB_PREFS::allow_dir_rename, FB_PREFS::bg_image, FB_PREFS::bg_image_file, FB_PREFS::button_font, FB_PREFS::change_cwd, FB_PREFS::close_button, FB_PREFS::create_menu, d_fileman::DATADIRECTORY, DatOrBinFormat(), bil::DFILEM, EleDatOrBinFormat(), False, FB_PREFS::file_label, FB_PREFS::filter_label, doas::FMMode, FB_PREFS::font, HELV_SMALL, MDirBrowseExt(), MFileBrowseExt(), FB_PREFS::ok_button, FB_PREFS::remove_menu, FB_PREFS::rename_menu, doas::SYSDIR, FB_PREFS::transparent_tree, and True.

Referenced by MDCreateFormat_Sh().

1399 {
1400 
1401  int er = 0, c = 0, d = 0;
1402  char fname[128], dirname[128];
1403 
1404 
1405  FB_PREFS prefs;
1406 
1407  prefs.allow_dir_create = True;
1408  prefs.allow_dir_delete = True;
1409  prefs.allow_dir_rename = True;
1410  prefs.change_cwd = False;
1411  prefs.allow_dir_create = True;
1412  prefs.allow_dir_rename = True;
1413  prefs.bg_image = False;
1414  prefs.bg_image_file = "";
1415  prefs.button_font = HELV_SMALL;
1416  prefs.close_button = "CANCEL";
1417  prefs.create_menu = "CREATE";
1418  prefs.file_label = "File:";
1419  prefs.filter_label = "Filter:";
1420  prefs.font = HELV_SMALL;
1421  prefs.ok_button = "OK";
1422  prefs.remove_menu = "REMOVE";
1423  prefs.rename_menu = "RENAME";
1424  prefs.transparent_tree = False;
1425 
1426  strcpy (dirname, BIL.DFILEM.DATADIRECTORY);
1427  fname[0] = '\0';
1428 
1429 
1430  c = (int) ad;
1431  d = DOAS.FMMode;
1432  switch(c)
1433  {
1434  // BIN 2 ASCII
1435  case 0:
1436  switch(d)
1437  {
1438  case 0: //Single File
1439  if(MFileBrowseExt("Select File for Binary to ASCII processing", "*.bif", fname, dirname, &prefs))
1440  {
1441  DatOrBinFormat(c, dirname, fname);
1442  break;
1443  }
1444  else
1445  break;
1446  case 1: //List of File
1447  if(MFileBrowseExt("Select List of Files for Binary to ASCII processing", "*.ele", fname, dirname, &prefs))
1448  {
1449  EleDatOrBinFormat(c, dirname, fname);
1450  break;
1451  }
1452 
1453  else
1454  break;
1455  case 2: //Directory
1456  if(MDirBrowseExt("Select Directory for Binary to ASCII processing", "*.*", DOAS.SYSDIR, &prefs))
1457 
1458 
1459  break;
1460  else
1461  break;
1462  case 3: //Drive
1463  break;
1464 
1465  }
1466 
1467  break;
1468  // ASCII 2 BIN
1469  case 1:
1470  switch(d)
1471  {
1472  case 0: //Single File
1473  if(MFileBrowseExt("Select File for ASCII to Binary processing", "*.dat", fname, dirname, &prefs))
1474  {
1475  DatOrBinFormat(c, dirname, fname);
1476  break;
1477  }
1478  else
1479  break;
1480  case 1: //List of File
1481  if(MFileBrowseExt("Select List of Files for ASCII to Binary processing", "*.ele", fname, dirname, &prefs))
1482  {
1483  EleDatOrBinFormat(c, dirname, fname);
1484  break;
1485  }
1486  else
1487  break;
1488 
1489  case 2: //Directory
1490  if(MDirBrowseExt("Select Directory for ASCII to Binary processing", "*.*", DOAS.SYSDIR, &prefs))
1491 
1492 
1493  break;
1494  else
1495  break;
1496  case 3: //Drive
1497  break;
1498 
1499  }
1500 
1501  break;
1502  }
1503 
1504 
1505 }
const char * rename_menu
Definition: Mguidefs.h:1513
const char * create_menu
Definition: Mguidefs.h:1511
const char * remove_menu
Definition: Mguidefs.h:1515
const char * close_button
Definition: Mguidefs.h:1509
char SYSDIR[_MAX_PATH]
DOAS system directory.
Definition: DOASdef.h:33
CARD8 change_cwd
Definition: Mguidefs.h:1485
CARD8 allow_dir_create
Definition: Mguidefs.h:1487
MTFont button_font
Definition: Mguidefs.h:1501
CARD8 allow_dir_delete
Definition: Mguidefs.h:1493
MTFont font
Definition: Mguidefs.h:1499
#define False
Definition: Mguidefs.h:236
char DATADIRECTORY[_MAX_PATH]
Definition: bildef.h:201
File Browser Preferences. Used by the Utility functions MFileBowserExt() and MDirBowserExt().
Definition: Mguidefs.h:1482
const char * ok_button
Definition: Mguidefs.h:1507
doas DOAS
Definition: DOAS_FullProj.c:44
CARD8 transparent_tree
Definition: Mguidefs.h:1495
d_fileman DFILEM
Definition: bildef.h:257
#define HELV_SMALL
Definition: Mguidefs.h:881
int DatOrBinFormat(int mod, char *dir, char *filename)
int EleDatOrBinFormat(int c, char *dirname, char *fname)
const char * file_label
Definition: Mguidefs.h:1505
int MFileBrowseExt(const char *t, const char *ext, char *fname, char *dname, FB_PREFS *prefs)
const char * bg_image_file
Definition: Mguidefs.h:1519
int MDirBrowseExt(const char *t, const char *ext, char *dname, FB_PREFS *prefs)
MIMAGE bg_image
Definition: Mguidefs.h:1517
const char * filter_label
Definition: Mguidefs.h:1503
#define True
Definition: Mguidefs.h:235
CARD8 allow_dir_rename
Definition: Mguidefs.h:1490
int FMMode
File manager Mode (browse files, list of file, directory, drive)
Definition: DOASdef.h:35
bil BIL
Definition: DOAS_FullProj.c:42
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ ChooseFormatCB()

void ChooseFormatCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 186 of file DOAS_FullProj.c.

References MDCreateFormat_Sh().

Referenced by MDCreateDOAS_MainSh().

187 {
188  int c = (int) ad;
189 
190  switch (c)
191  {
192  case 0:
193  MDCreateFormat_Sh(0); //BIN 2 ASCII
194  break;
195  case 1:
196  MDCreateFormat_Sh(1); //ASCII 2 BIN
197  break;
198  }
199 
200 
201 }
MOBJECT MDCreateFormat_Sh(int mod)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ CloseMObjCB()

void CloseMObjCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 226 of file DOAS_FullProj.c.

References MShellDestroy(), and MShellUnrealize().

Referenced by MDCreateBuildList_Sh(), MDCreateColFor_Sh(), MDCreateDiff_Sh(), MDCreateDOAS_ProcSh(), MDCreateDOAS_SetupSh(), MDCreateFixed_Sh(), and MDCreateFormat_Sh().

227 {
228 
229  MOBJECT c;
230  c = (MOBJECT) ad;
231 
232  MShellUnrealize(c);
233  MShellDestroy(c);
234 
235 }
void MShellUnrealize(MOBJECT obj)
void MShellDestroy(MOBJECT obj)
void * MOBJECT
Definition: Mguidefs.h:192
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ ColumnFCB()

void ColumnFCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 164 of file DOAS_FullProj.c.

References ColFor_Sh, MDCreateColFor_Sh(), and MShellRealize().

Referenced by MDCreateDOAS_MainSh().

165 {
166 
169 
170 
171 
172 }
MOBJECT ColFor_Sh
Definition: DOAS_FullProj.c:57
void MShellRealize(MOBJECT obj)
MOBJECT MDCreateColFor_Sh(void)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ ColumnFormatCB()

void ColumnFormatCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 799 of file DOAS_FullProj.c.

References DT_ColFormat(), and MMessageDialog().

Referenced by MDCreateColFor_Sh().

800 {
801 
802  int c = (int) ad;
803 
804  switch (c)
805  {
806  case 0:
807  MMessageDialog("DAS information", "The procedure is not yet implemented!!", " Ok ", NULL);
808  break;
809  case 1:
810  DT_ColFormat();
811  break;
812  }
813 
814 
815 }
int DT_ColFormat(void)
Callback for Column format.
Definition: Utils.c:431
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ CreateFileListCB()

void CreateFileListCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 419 of file DOAS_FullProj.c.

References CreateList().

Referenced by MDCreateBuildList_Sh().

420 {
421 
422  MOBJECT ed;
423 
424 
425 
426  ed = (MOBJECT) ad;
427 
428  CreateList(ed);
429 
430 
431 }
int CreateList(MOBJECT ed)
void * MOBJECT
Definition: Mguidefs.h:192
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ CreateList()

int CreateList ( MOBJECT  ed)

Definition at line 302 of file DOAS_FullProj.c.

References FB_PREFS::allow_dir_create, FB_PREFS::allow_dir_delete, FB_PREFS::allow_dir_rename, FB_PREFS::bg_image, FB_PREFS::bg_image_file, FB_PREFS::button_font, FB_PREFS::change_cwd, FB_PREFS::close_button, FB_PREFS::create_menu, d_fileman::DATADIRECTORY, delay(), bil::DFILEM, listf::edit, False, FB_PREFS::file_label, FB_PREFS::filter_label, FB_PREFS::font, HELV_SMALL, d_fileman::HOMEDIRECTORY, MDirBrowseExt(), MFileBrowseExt(), MObjectGetText(), FB_PREFS::ok_button, FB_PREFS::remove_menu, FB_PREFS::rename_menu, SBDATE, SBDIM, SBNAME, SBTYPE, listf::sortmode, listf::subdir, FB_PREFS::transparent_tree, True, and listf::type.

Referenced by CreateFileListCB().

303 {
304  int er = 0;
305  int c = 0;
306  char com[255], str[255], buf[4];
307 
308  char fname[128], dirname[128];
309 
310  FB_PREFS prefs;
311 
312  prefs.allow_dir_create = True;
313  prefs.allow_dir_delete = True;
314  prefs.allow_dir_rename = True;
315  prefs.change_cwd = False;
316  prefs.allow_dir_create = True;
317  prefs.allow_dir_rename = True;
318  prefs.bg_image = False;
319  prefs.bg_image_file = "";
320  prefs.button_font = HELV_SMALL;
321  prefs.close_button = "CANCEL";
322  prefs.create_menu = "CREATE";
323  prefs.file_label = "File:";
324  prefs.filter_label = "Filter:";
325  prefs.font = HELV_SMALL;
326  prefs.ok_button = "OK";
327  prefs.remove_menu = "REMOVE";
328  prefs.rename_menu = "RENAME";
329  prefs.transparent_tree = False;
330 
331  strcpy (dirname, BIL.DFILEM.DATADIRECTORY);
332  fname[0] = '\0';
333  com[0] = '\0';
334 
335 
336  MObjectGetText(ed, buf);
337  sprintf(str, "*.%s", buf);
338 
339 
340  if(MDirBrowseExt("Select Directory for Listing Files", str, dirname, &prefs))
341  {
342  sprintf(com, "dir %s", dirname);
343 
344  }
345  else
346  return 0;
347 
348  MObjectGetText(ed, buf);
349  sprintf(str, "*.%s ", buf);
350  strcat(com, str);
351 
352  c = LISTF.type;
353  switch (c)
354  {
355  case 0:
356  sprintf(str, "/b ");
357  break;
358  case 1:
359  str[0] = '\0';
360  break;
361  }
362  strcat(com, str);
363 
364  c = LISTF.sortmode;
365  switch (c)
366  {
367  case SBNAME:
368  sprintf(str, "/o:n ");
369  break;
370  case SBDATE:
371  sprintf(str, "/o:d ");
372  break;
373  case SBDIM:
374  sprintf(str, "/o:s ");
375  break;
376  case SBTYPE:
377  sprintf(str, "/o:e ");
378  break;
379  }
380  strcat(com, str);
381 
382  c = LISTF.subdir;
383  switch (c)
384  {
385  case 1:
386  sprintf(str, "/s ");
387  break;
388  case 0:
389  str[0] = '\0';
390  break;
391  }
392  strcat(com, str);
393 
394  if(MFileBrowseExt("Type Name for the list", "*.ele", fname, dirname, &prefs))
395  {
396 
397  sprintf(str, "> %s%s", dirname, fname);
398  }
399  else
400  return 0;
401 
402  strcat(com, str);
403 
404  system(com);
405 
406  delay(500);
407 
408  //Show the created list
409  if(!LISTF.edit)
410  {
411  sprintf(str,"%s\\MEDIT.EXE %s%s",BIL.DFILEM.HOMEDIRECTORY, dirname, fname);
412  er = WinExec(str, SW_SHOW);
413 
414  }
415  return 0;
416 
417 }
const char * rename_menu
Definition: Mguidefs.h:1513
const char * create_menu
Definition: Mguidefs.h:1511
const char * remove_menu
Definition: Mguidefs.h:1515
const char * close_button
Definition: Mguidefs.h:1509
#define SBNAME
Definition: DOASdef.h:9
CARD8 change_cwd
Definition: Mguidefs.h:1485
#define SBTYPE
Definition: DOASdef.h:12
CARD8 allow_dir_create
Definition: Mguidefs.h:1487
MTFont button_font
Definition: Mguidefs.h:1501
CARD8 allow_dir_delete
Definition: Mguidefs.h:1493
char HOMEDIRECTORY[_MAX_PATH]
Definition: bildef.h:200
MTFont font
Definition: Mguidefs.h:1499
#define False
Definition: Mguidefs.h:236
char DATADIRECTORY[_MAX_PATH]
Definition: bildef.h:201
int edit
Definition: DOASdef.h:56
char * MObjectGetText(MOBJECT obj, char *text)
listf LISTF
Definition: DOAS_FullProj.c:45
File Browser Preferences. Used by the Utility functions MFileBowserExt() and MDirBowserExt().
Definition: Mguidefs.h:1482
int subdir
Definition: DOASdef.h:59
const char * ok_button
Definition: Mguidefs.h:1507
CARD8 transparent_tree
Definition: Mguidefs.h:1495
d_fileman DFILEM
Definition: bildef.h:257
#define HELV_SMALL
Definition: Mguidefs.h:881
void delay(unsigned long d)
Pauses for a specified number of milliseconds. .
Definition: Dxl.c:1113
const char * file_label
Definition: Mguidefs.h:1505
int MFileBrowseExt(const char *t, const char *ext, char *fname, char *dname, FB_PREFS *prefs)
#define SBDIM
Definition: DOASdef.h:11
const char * bg_image_file
Definition: Mguidefs.h:1519
int MDirBrowseExt(const char *t, const char *ext, char *dname, FB_PREFS *prefs)
int sortmode
Definition: DOASdef.h:57
MIMAGE bg_image
Definition: Mguidefs.h:1517
const char * filter_label
Definition: Mguidefs.h:1503
#define True
Definition: Mguidefs.h:235
CARD8 allow_dir_rename
Definition: Mguidefs.h:1490
int type
Definition: DOASdef.h:58
#define SBDATE
Definition: DOASdef.h:10
bil BIL
Definition: DOAS_FullProj.c:42
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ D_SunCalc()

void D_SunCalc ( void  )

Sun Calculator Callback.

Definition at line 127 of file DOAS_FullProj.c.

References _MAX_PATH, bil::DFILEM, and d_fileman::HOMEDIRECTORY.

Referenced by MenuToolsOLP_CB(), and SunCalcCB().

128 {
129 
130  char buff[_MAX_PATH];
131 
132  sprintf(buff,"%s\\%s",BIL.DFILEM.HOMEDIRECTORY, "SolPosCalc");
133 
134  chdir(buff);
135 
136  sprintf(buff,"%s\\%s",BIL.DFILEM.HOMEDIRECTORY, "SolPosCalc\\D_solpos1.exe");
137 
138  WinExec(buff, 1);
139 
140 // sprintf(buff,"%ss",BIL.DFILEM.HOMEDIRECTORY, "SolPosCalc");
141 
142  chdir(BIL.DFILEM.HOMEDIRECTORY);
143 
144 
145 }
char HOMEDIRECTORY[_MAX_PATH]
Definition: bildef.h:200
d_fileman DFILEM
Definition: bildef.h:257
#define _MAX_PATH
Definition: Dildef.h:202
bil BIL
Definition: DOAS_FullProj.c:42
+ Here is the caller graph for this function:

§ DatOrBinFormat()

int DatOrBinFormat ( int  mod,
char *  dir,
char *  filename 
)

Definition at line 1207 of file DOAS_FullProj.c.

References _MAX_PATH, AllocUSMat(), ch, DeallocUSMat(), bil::DPLOT, IDX, IDY, d_view::ImatOrig, O_BINARY, ReadHeader_ASCII(), ReadHeader_BIN(), ReadIMG(), ReadIMG_BIN(), and WriteDataFile().

Referenced by ChangeFormatCB(), and EleDatOrBinFormat().

1208 {
1209 
1210  FILE *fs;
1211  int fn, er = 0;
1212  unsigned int l;
1213  int eofreach = 0;
1214  char fileorigin[_MAX_PATH];
1215  char filedest[_MAX_PATH];
1216  char *pdest;
1217  unsigned long info = 0;
1218  char ch[1];
1219 // char *chest = '\0';
1220 
1221 
1222 
1223  //if the second character of the 'filename' is not ':',
1224  //build the complete name (path + filename) for the origin file
1225  // else it means that a complete filename (with also the path) is furnished.
1226 
1227  sprintf(ch, "%c", filename[1]);
1228 
1229  if( strcmp(ch,":") == 0)
1230  sprintf(fileorigin,"%s", filename);
1231  else
1232  sprintf(fileorigin,"%s%s", dir, filename);
1233 
1234 
1235  l = strlen(fileorigin);
1236  pdest = _memccpy( filedest, fileorigin, '.', l );
1237  *pdest = '\0'; //
1238 
1239  //open the origin file and build the destination file
1240  switch (mod)
1241  {
1242  case 0: //BIN 2 ASCII
1243  strcat(filedest, "Dat");
1244  fn = open(fileorigin, O_RDONLY | O_BINARY, S_IREAD );
1245  if(fn < 0) return(-1);
1246  break;
1247  case 1: //Dat Ext
1248  strcat(filedest, "Bif");
1249  fs = fopen(fileorigin, "r");
1250  if(fs < 0) return 1;
1251  break;
1252  }
1253 
1254  //Init the reading of the origin file
1255  do
1256  {
1257  switch (mod)
1258  {
1259  case 0: //Bif Ext
1260  er = ReadHeader_BIN(fn);
1261  break;
1262 
1263  case 1: //dat Ext
1264  er = ReadHeader_ASCII(0, fs); //New Format (data after 10/12/03)
1265  break;
1266  }
1267 
1268  //Alloc the buffer for the data
1270 
1271  //Read image
1272  switch (mod)
1273  {
1274  case 0: //Bif Ext
1275 
1277  break;
1278 
1279  case 1: //Dat Ext
1280  ReadIMG(fs, BIL.DPLOT.ImatOrig, IDX, IDY);
1281  break;
1282  }
1283  //write data on the destination file
1284  switch (mod)
1285  {
1286  case 0: //BIN 2 ASCII
1287  WriteDataFile(mod, filedest);
1288  break;
1289  case 1: //ASCII 2 BIN
1290  WriteDataFile(mod, filedest);
1291  break;
1292  }
1293 
1294  //Dealloc the data buffer
1296 
1297  //Check for the End Of File
1298  switch (mod)
1299  {
1300  case 0: //Bif Ext
1301  eofreach = eof(fn);
1302  break;
1303 
1304  case 1: //Dat Ext
1305  eofreach = feof(fs);
1306  break;
1307  }
1308 
1309 
1310  }while(!eofreach);
1311 
1312  //Close the origin file
1313  switch (mod)
1314  {
1315  case 0: //Bif Ext
1316  close(fn);
1317  break;
1318 
1319  case 1: //Dat Ext
1320  fclose(fs);
1321  break;
1322  }
1323 
1324  return 0;
1325 }
int IDX
Number of sensible horizontal pixels.
Definition: DAS_Spat.c:118
#define O_BINARY
Definition: Dildef.h:201
Definition: Dildef.h:423
void ReadIMG(FILE *file, unsigned short *mat, int hp, int vp)
Read ASCII Image (Spectral Data only) .
Definition: Spat_Plot.c:1206
static double ch
Definition: SOLPOS.C:120
int ReadHeader_ASCII(int mod, FILE *fd)
Read ASCII Header of the measurement. .
Definition: Spat_Plot.c:1877
int WriteDataFile(int c, char *filed)
unsigned short * ImatOrig
Definition: bildef.h:180
d_view DPLOT
Definition: bildef.h:254
unsigned short * DeallocUSMat(unsigned short *mat)
Definition: Spat_Plot.c:145
int ReadHeader_BIN(int fd)
read the BINARY header of the stored spectrum
Definition: Spat_Plot.c:1798
void ReadIMG_BIN(int fd, unsigned short *mat, int hp, int vp)
read the BINARY stored spectrum
Definition: Spat_Plot.c:1166
int IDY
Number of sensible vertical pixels.
Definition: DAS_Spat.c:119
#define _MAX_PATH
Definition: Dildef.h:202
unsigned short * AllocUSMat(int hp, int vp)
Definition: Spat_Plot.c:1994
bil BIL
Definition: DOAS_FullProj.c:42
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ DB_FilterColumnCB()

void DB_FilterColumnCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 820 of file DOAS_FullProj.c.

References edtwf, tools::FlagFilter, fwstatus, lblwf, MObjectMap(), MObjectUnmap(), MRButtonGetActivationStatus(), and TOOLS.

Referenced by MDCreateColFor_Sh().

821 {
822 
823  int er = 0;
824  int c = (int) ad;
825 
826 
828 
829  if(er)
830  {
831  switch (c)
832  {
833  case 0:
834  TOOLS.FlagFilter = 0;
835  if (fwstatus)
836  {
839  fwstatus = 0;
840  }
841 
842  break;
843  case 1:
844  TOOLS.FlagFilter = 1;
845 
846  MObjectMap(lblwf);
847  MObjectMap(edtwf);
848  fwstatus = 1;
849 
850  break;
851  }
852  }
853 
854 
855 
856 }
MOBJECT edtwf
int MRButtonGetActivationStatus(MOBJECT o)
int FlagFilter
flag for filterinf
void MObjectUnmap(MOBJECT obj)
static double p
Definition: SOLPOS.C:131
int fwstatus
void MObjectMap(MOBJECT obj)
MOBJECT lblwf
tools TOOLS
Definition: CreateForms.c:81
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ DiffCB()

void DiffCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 109 of file DOAS_FullProj.c.

References MDCreateDiff_Sh().

Referenced by MDCreateDOAS_MainSh().

110 {
111 
112  MDCreateDiff_Sh(0);
113 
114 }
MOBJECT MDCreateDiff_Sh(int mod)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ DOAS_LoadConfig()

int DOAS_LoadConfig ( struct doas pdoas)

Definition at line 1699 of file DOAS_FullProj.c.

References ReadLine(), doas::RISDIR, and doas::SYSDIR.

Referenced by MDCreateDOAS_MainSh().

1700 {
1701 
1702  FILE *fs;
1703  char str[80];
1704  fs = fopen("DOAS\\DOAS.cfg", "r");
1705 
1706  if(fs == NULL) return 1;
1707 
1708  ReadLine(str, 80, fs); // ##############################################
1709  ReadLine(str, 80, fs); // # DOAS Config File #
1710  ReadLine(str, 80, fs); // ##############################################
1711  ReadLine(str, 80, fs); // #--------------------------------------------#
1712  ReadLine(str, 80, fs); // # PLEASE DO NOT MODIFY #
1713  ReadLine(str, 80, fs); // #--------------------------------------------#
1714  ReadLine(str, 80, fs); // #DOAS System Directory-----------------------#
1715  fscanf(fs, "%s\n", &pdoas->SYSDIR);
1716 
1717  ReadLine(str, 80, fs); // #DOAS Reults Directory-----------------------#
1718  fscanf(fs, "%s\n", &pdoas->RISDIR);
1719 
1720  ReadLine(str, 80, fs); // ##############################################
1721 
1722  fclose(fs);
1723 
1724  return 0;
1725 
1726 
1727 }
char RISDIR[_MAX_PATH]
DOAS results directory.
Definition: DOASdef.h:34
char SYSDIR[_MAX_PATH]
DOAS system directory.
Definition: DOASdef.h:33
void ReadLine(char *buf, int nc, FILE *f)
Read Line on a file Read one record of nc character on the file f.
Definition: Load.c:72
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ DOAS_Plot()

void DOAS_Plot ( int  mod,
int  plottype,
MOBJECT  obj,
char *  text,
struct doas pdoas 
)

Definition at line 2083 of file DOAS_FullProj.c.

References BOTTOM_ALIGN, CENTER_ALIGN, doas::drwa, False, FIXED_SMALL, HELV_SMALL, lbl, doas::lblx, doas::lbly, LEFT_ALIGN, MCreateDrawArea(), MCreateLabel(), MCreateOptionEdit(), MCreateRowForm(), MCreateTableForm(), MFormSetSpacing(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetShadow(), MObjectSetTransparency(), MOptionEditGetList(), MSListAddItem(), MSListSetSortCallback(), MTableFormShowGrid(), tb1, TOP_ALIGN, True, and WS_SHADOW_IN.

Referenced by MDCreateDOAS_ProcSh().

2084  {
2085  MOBJECT lbl;
2086  MOBJECT tb0, rform0;
2087  MOBJECT tb1, rform1, rform2;
2088  MOBJECT edit0;
2089  int i, iinf, isup,c;
2090  char buff[32];
2091 
2092 
2093 
2094  c = plottype;
2095  switch(c)
2096  {
2097  case 0:
2098  iinf = 0; isup = 10;
2099  break;
2100  case 1:
2101  iinf = 10; isup = 20;
2102  break;
2103  case 2:
2104  iinf = 20; isup = 30;
2105  break;
2106  case 3:
2107  iinf = 30; isup = 40;
2108  break;
2109  case 4:
2110  iinf = 40; isup = 50;
2111  break;
2112  case 5:
2113  iinf = 50; isup = 60;
2114  break;
2115  case 6:
2116  iinf = 60; isup = 70;
2117  break;
2118  case 7:
2119  iinf = 70; isup = 80;
2120  break;
2121  }
2122 
2123  if(mod == 0)
2124  {
2125 
2126  lbl = MCreateLabel(obj, text, HELV_SMALL);
2128  MObjectSetForegroundRGB(lbl, 255, 255, 0);
2129  MObjectSetBackgroundRGB(lbl, 117, 117, 169);
2130  MObjectSetTransparency(lbl, 0);
2131  MObjectSetShadow(lbl, WS_SHADOW_IN, 1, 0);
2132  MObjectSetResize(lbl, False, False);
2133  }
2134  if(mod==1)
2135  {
2136  edit0 = MCreateOptionEdit(obj, "NO2", 5, 5, 6, FIXED_SMALL);
2137  {
2138  MOBJECT slist = MOptionEditGetList(edit0);
2139  MSListSetSortCallback(slist, strcmp);
2140  MSListAddItem(slist, "BrO", (void *)3);
2141  MSListAddItem(slist, "HCHO", (void *)4);
2142  MSListAddItem(slist, "HONO", (void *)5);
2143  MSListAddItem(slist, "NO2", (void *)0);
2144  MSListAddItem(slist, "NO3", (void *)6);
2145  MSListAddItem(slist, "O3", (void *)1);
2146  MSListAddItem(slist, "OClO", (void *)7);
2147  MSListAddItem(slist, "SO2", (void *)2);
2148  }
2149  MObjectSetForegroundRGB(edit0, 255, 255, 0);
2150  MObjectSetBackgroundRGB(edit0, 117, 117, 169);
2151 
2152  }
2153 
2154  tb0 = MCreateTableForm(obj, 2);
2155  MFormSetSpacing(tb0, 1);
2156  MTableFormShowGrid(tb0);
2157  MObjectSetResize(tb0, True, True);
2158 
2159  rform0 = MCreateRowForm(tb0);
2160  MFormSetSpacing(rform0, 1);
2161  MObjectAlign(rform0, LEFT_ALIGN, TOP_ALIGN);
2162  MObjectSetBackgroundRGB(rform0, 120, 177, 218);
2163  MObjectSetResize(rform0, False, True);
2164 
2165  for(i=iinf;i<isup;i++)
2166  {
2167  sprintf(buff,"%d", i);
2168  pdoas->lbly[i] = MCreateLabel(rform0, buff, HELV_SMALL);
2169  MObjectSetShadow(pdoas->lbly[i], WS_SHADOW_IN, 1, 0);
2170  MObjectSetResize(pdoas->lbly[i], False, False);
2171 
2172  }
2173 
2174  pdoas->drwa[c] = MCreateDrawArea(tb0, 221, 205);
2175  MObjectAlign(pdoas->drwa[c], LEFT_ALIGN, TOP_ALIGN);
2176  MObjectSetResize(pdoas->drwa[c], True, True);
2177 // MDrawAreaSetExposeCallback(pdoas->drwa[c], DOASPlotCB, NULL);
2178 
2179 
2180 
2181  rform1 = MCreateRowForm(tb0);
2182  MFormSetSpacing(rform1, 1);
2184  MObjectSetResize(rform1, False, False);
2185 
2186 
2187  rform2 = MCreateRowForm(tb0);
2188  MFormSetSpacing(rform2, 1);
2190  MObjectSetResize(rform2, True, True);
2191 
2192 
2193  tb1 = MCreateTableForm(rform2, 10);
2194  MFormSetSpacing(tb1, 1);
2195  MTableFormShowGrid(tb1);
2197  MObjectSetBackgroundRGB(tb1, 120, 177, 218);
2198 
2199 
2200  for(i=iinf;i<isup;i++)
2201  {
2202  sprintf(buff,"%d", i);
2203  pdoas->lblx[i] = MCreateLabel(tb1, buff, HELV_SMALL);
2204  MObjectSetShadow(pdoas->lblx[i], WS_SHADOW_IN, 1, 0);
2205  MObjectSetResize(pdoas->lblx[i], False, False);
2206 
2207 
2208  }
2209 
2210  }
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT lbl
Definition: DFileMan.c:42
#define WS_SHADOW_IN
Definition: Mguidefs.h:958
MOBJECT MOptionEditGetList(MOBJECT ce)
void MObjectSetShadow(MOBJECT obj, int type, int in, int out)
MOBJECT lblx[80]
Definition: DOASdef.h:36
MOBJECT lbly[80]
Definition: DOASdef.h:37
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
#define False
Definition: Mguidefs.h:236
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
MOBJECT MCreateOptionEdit(MOBJECT parent, const char *text, int len, int clip_len, int nrow, MTFont font)
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
#define CENTER_ALIGN
Definition: Mguidefs.h:917
#define HELV_SMALL
Definition: Mguidefs.h:881
#define FIXED_SMALL
Definition: Mguidefs.h:878
MOBJECT MCreateDrawArea(MOBJECT parent, int width, int height)
void MSListSetSortCallback(MOBJECT obj, STRCMP_CB cb)
void MTableFormShowGrid(MOBJECT form)
MOBJECT tb1
Definition: DFileMan.c:41
void MFormSetSpacing(MOBJECT p, int offset)
void * MOBJECT
Definition: Mguidefs.h:192
#define BOTTOM_ALIGN
Definition: Mguidefs.h:919
#define True
Definition: Mguidefs.h:235
#define LEFT_ALIGN
Definition: Mguidefs.h:915
int MSListAddItem(MOBJECT p, const char *item, void *data)
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT drwa[8]
Definition: DOASdef.h:38
MOBJECT MCreateRowForm(MOBJECT parent)
#define TOP_ALIGN
Definition: Mguidefs.h:918
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ DOAS_SetupPagedForm()

void DOAS_SetupPagedForm ( int  c,
struct doas pdoas 
)

Definition at line 2650 of file DOAS_FullProj.c.

References palette::DB_BG, False, HELV_SMALL, lbl, LEFT_ALIGN, MCreateLabel(), MCreateRButton(), MCreateRowForm(), MCreateTableForm(), MCreateTButton(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetShadow(), MObjectSetTransparency(), MPagedFormSetActivePage(), TOP_ALIGN, doas::WlTabFrm, and WS_SHADOW_OUT.

Referenced by MDCreateDOAS_SetupSh().

2651 {
2652 
2653  MOBJECT lbl, rowfrm, tb, rb, tbutt[20];
2654  int i;
2655 
2656  MPagedFormSetActivePage(pdoas->WlTabFrm, c);
2657 
2658  rowfrm = MCreateRowForm(pdoas->WlTabFrm);
2659  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2660  MObjectSetResize(rowfrm, False, False);
2661  MObjectAlign(rowfrm, LEFT_ALIGN, TOP_ALIGN);
2662 
2663 
2664  lbl = MCreateLabel(rowfrm, "Cross Section", HELV_SMALL);
2665  MObjectSetForegroundRGB(lbl, 255, 255, 0);
2666  MObjectSetBackgroundRGB(lbl, 120, 177, 218);
2667  MObjectSetTransparency(lbl, 0);
2668  MObjectSetShadow(lbl, WS_SHADOW_OUT, 1, 0);
2670 
2671  tb = MCreateTableForm(rowfrm, 2);
2672  MObjectSetForegroundRGB(tb, 255, 255, 0);
2675 
2676  rb = MCreateRButton(tb, "From File", HELV_SMALL);
2677 
2678  rb = MCreateRButton(tb, "Select", HELV_SMALL);
2679 
2680  tb = MCreateTableForm(rowfrm, 2);
2683 
2684  for (i=0;i<20;i++)
2685  {
2686  tbutt[i] = MCreateTButton(tb, " ", HELV_SMALL);
2687  MObjectSetForegroundRGB(tbutt[i], 255, 255, 0);
2688  MObjectSetBackgroundRGB(tbutt[i], 117, 117, 169);
2689  MObjectSetTransparency(tbutt[i], 0);
2690  }
2691 
2692 /* _tbutton001 = MCreateTButton(_tablefrm025, "Mie", HELV_SMALL);
2693  MObjectSetForegroundRGB(_tbutton001, 255, 255, 0);
2694  MObjectSetBackgroundRGB(_tbutton001, 117, 117, 169);
2695  MObjectSetTransparency(_tbutton001, 0);
2696 
2697  _tbutton002 = MCreateTButton(_tablefrm025, "NO2_220K", HELV_SMALL);
2698  MObjectSetForegroundRGB(_tbutton002, 255, 255, 0);
2699  MObjectSetBackgroundRGB(_tbutton002, 117, 117, 169);
2700  MObjectSetTransparency(_tbutton002, 0);
2701 
2702  _tbutton003 = MCreateTButton(_tablefrm025, "NO2_240K", HELV_SMALL);
2703  MObjectSetForegroundRGB(_tbutton003, 255, 255, 0);
2704  MObjectSetBackgroundRGB(_tbutton003, 117, 117, 169);
2705  MObjectSetTransparency(_tbutton003, 0);
2706 
2707  _tbutton004 = MCreateTButton(_tablefrm025, "NO2_260K", HELV_SMALL);
2708  MObjectSetForegroundRGB(_tbutton004, 255, 255, 0);
2709  MObjectSetBackgroundRGB(_tbutton004, 117, 117, 169);
2710  MObjectSetTransparency(_tbutton004, 0);
2711 
2712  _tbutton005 = MCreateTButton(_tablefrm025, "NO2_293K", HELV_SMALL);
2713  MObjectSetForegroundRGB(_tbutton005, 255, 255, 0);
2714  MObjectSetBackgroundRGB(_tbutton005, 117, 117, 169);
2715  MObjectSetTransparency(_tbutton005, 0);
2716 
2717  _tbutton006 = MCreateTButton(_tablefrm025, "O3_220K", HELV_SMALL);
2718  MObjectSetForegroundRGB(_tbutton006, 255, 255, 0);
2719  MObjectSetBackgroundRGB(_tbutton006, 117, 117, 169);
2720  MObjectSetTransparency(_tbutton006, 0);
2721 
2722  _tbutton007 = MCreateTButton(_tablefrm025, "O3_240K", HELV_SMALL);
2723  MObjectSetForegroundRGB(_tbutton007, 255, 255, 0);
2724  MObjectSetBackgroundRGB(_tbutton007, 117, 117, 169);
2725  MObjectSetTransparency(_tbutton007, 0);
2726 
2727  _tbutton008 = MCreateTButton(_tablefrm025, "O3_260K", HELV_SMALL);
2728  MObjectSetForegroundRGB(_tbutton008, 255, 255, 0);
2729  MObjectSetBackgroundRGB(_tbutton008, 117, 117, 169);
2730  MObjectSetTransparency(_tbutton008, 0);
2731 
2732  _tbutton009 = MCreateTButton(_tablefrm025, "O3_293K", HELV_SMALL);
2733  MObjectSetForegroundRGB(_tbutton009, 255, 255, 0);
2734  MObjectSetBackgroundRGB(_tbutton009, 117, 117, 169);
2735  MObjectSetTransparency(_tbutton009, 0);
2736 
2737  _tbutton010 = MCreateTButton(_tablefrm025, "BrO", HELV_SMALL);
2738  MObjectSetForegroundRGB(_tbutton010, 255, 255, 0);
2739  MObjectSetBackgroundRGB(_tbutton010, 117, 117, 169);
2740  MObjectSetTransparency(_tbutton010, 0);
2741 
2742  _tbutton011 = MCreateTButton(_tablefrm025, "OClO", HELV_SMALL);
2743  MObjectSetForegroundRGB(_tbutton011, 255, 255, 0);
2744  MObjectSetBackgroundRGB(_tbutton011, 117, 117, 169);
2745  MObjectSetTransparency(_tbutton011, 0);
2746 
2747  _tbutton012 = MCreateTButton(_tablefrm025, "SO2", HELV_SMALL);
2748  MObjectSetForegroundRGB(_tbutton012, 255, 255, 0);
2749  MObjectSetBackgroundRGB(_tbutton012, 117, 117, 169);
2750  MObjectSetTransparency(_tbutton012, 0);
2751 
2752  _tbutton013 = MCreateTButton(_tablefrm025, "IO", HELV_SMALL);
2753  MObjectSetForegroundRGB(_tbutton013, 255, 255, 0);
2754  MObjectSetBackgroundRGB(_tbutton013, 117, 117, 169);
2755  MObjectSetTransparency(_tbutton013, 0);
2756 
2757  _tbutton014 = MCreateTButton(_tablefrm025, "O4", HELV_SMALL);
2758  MObjectSetForegroundRGB(_tbutton014, 255, 255, 0);
2759  MObjectSetBackgroundRGB(_tbutton014, 117, 117, 169);
2760  MObjectSetTransparency(_tbutton014, 0);
2761 
2762  _tbutton015 = MCreateTButton(_tablefrm025, "H2CO", HELV_SMALL);
2763  MObjectSetForegroundRGB(_tbutton015, 255, 255, 0);
2764  MObjectSetBackgroundRGB(_tbutton015, 117, 117, 169);
2765  MObjectSetTransparency(_tbutton015, 0);
2766 
2767  _tbutton016 = MCreateTButton(_tablefrm025, "H2O", HELV_SMALL);
2768  MObjectSetForegroundRGB(_tbutton016, 255, 255, 0);
2769  MObjectSetBackgroundRGB(_tbutton016, 117, 117, 169);
2770  MObjectSetTransparency(_tbutton016, 0);
2771 
2772  _tbutton017 = MCreateTButton(_tablefrm025, "Raman", HELV_SMALL);
2773  MObjectSetForegroundRGB(_tbutton017, 255, 255, 0);
2774  MObjectSetBackgroundRGB(_tbutton017, 117, 117, 169);
2775  MObjectSetTransparency(_tbutton017, 0);
2776 
2777  _tbutton018 = MCreateTButton(_tablefrm025, "Polar", HELV_SMALL);
2778  MObjectSetForegroundRGB(_tbutton018, 255, 255, 0);
2779  MObjectSetBackgroundRGB(_tbutton018, 117, 117, 169);
2780  MObjectSetTransparency(_tbutton018, 0);
2781 
2782  _tbutton019 = MCreateTButton(_tablefrm025, "BTX", HELV_SMALL);
2783  MObjectSetForegroundRGB(_tbutton019, 255, 255, 0);
2784  MObjectSetBackgroundRGB(_tbutton019, 117, 117, 169);
2785  MObjectSetTransparency(_tbutton019, 0);
2786 */
2787 
2788  rowfrm = MCreateRowForm(pdoas->WlTabFrm);
2789  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2790  MObjectSetResize(rowfrm, False, False);
2791  MObjectAlign(rowfrm, LEFT_ALIGN, TOP_ALIGN);
2792 
2793 
2794  lbl = MCreateLabel(lbl, "DCS Convolution Method", HELV_SMALL);
2795  MObjectSetForegroundRGB(lbl, 255, 255, 0);
2796  MObjectSetBackgroundRGB(lbl, 120, 177, 218);
2797  MObjectSetTransparency(lbl, 0);
2798  MObjectSetShadow(lbl, WS_SHADOW_OUT, 1, 0);
2799 
2800  tb = MCreateTableForm(rowfrm, 2);
2801  MObjectSetForegroundRGB(tb, 255, 255, 0);
2804 
2805  rb = MCreateRButton(tb, "FFT", HELV_SMALL);
2806 
2807  rb = MCreateRButton(tb, "Calc.Function", HELV_SMALL);
2808 
2809  tb = MCreateTableForm(rowfrm, 2);
2810  MObjectSetForegroundRGB(tb, 255, 255, 0);
2813 
2814  lbl = MCreateLabel(lbl, "FFT Win.", HELV_SMALL);
2816  MObjectSetResize(lbl, False, False);
2817 /*
2818  _edit000 = MCreateEdit(_tablefrm027, "", 3, FIXED_MEDIUM);
2819  MEditSetFilter(_edit000, 260, "");
2820  MObjectAlign(_edit000, RIGHT_ALIGN, TOP_ALIGN);
2821  MObjectSetForegroundRGB(_edit000, 255, 255, 0);
2822  MObjectSetBackgroundRGB(_edit000, 117, 117, 169);
2823 
2824  rowfrm = MCreateRowForm(pdoas->WlTabFrm);
2825  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2826  MObjectSetResize(rowfrm, False, False);
2827  MObjectAlign(rowfrm, LEFT_ALIGN, TOP_ALIGN);
2828 
2829  _label182 = MCreateLabel(rowfrm, "Filter Raw Data?", HELV_SMALL);
2830  MObjectAlign(_label182, CENTER_ALIGN, TOP_ALIGN);
2831  MObjectSetBackgroundRGB(_label182, 120, 177, 218);
2832  MObjectSetTransparency(_label182, 0);
2833 
2834  _tablefrm028 = MCreateTableForm(rowfrm, 2);
2835  MObjectAlign(_tablefrm028, CENTER_ALIGN, TOP_ALIGN);
2836  MObjectSetBackgroundRGB(_tablefrm028, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2837 
2838  _rbutton008 = MCreateRButton(_tablefrm028, "Yes", HELV_SMALL);
2839 
2840  _rbutton009 = MCreateRButton(_tablefrm028, "No", HELV_SMALL);
2841 
2842  _label183 = MCreateLabel(_tablefrm028, "Filter Win", HELV_SMALL);
2843  MObjectAlign(_label183, LEFT_ALIGN, TOP_ALIGN);
2844  MObjectSetResize(_label183, False, False);
2845 
2846  _edit001 = MCreateEdit(_tablefrm028, "", 3, FIXED_SMALL);
2847  MEditSetFilter(_edit001, 4, "");
2848  MObjectAlign(_edit001, RIGHT_ALIGN, TOP_ALIGN);
2849  MObjectSetForegroundRGB(_edit001, 255, 255, 0);
2850  MObjectSetBackgroundRGB(_edit001, 117, 117, 169);
2851 
2852  _tablefrm029 = MCreateTableForm(rowfrm, 2);
2853  MObjectSetForegroundRGB(_tablefrm029, 255, 255, 0);
2854  MObjectSetBackgroundRGB(_tablefrm029, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2855 
2856  _label184 = MCreateLabel(_tablefrm029, "Win for Dif", HELV_SMALL);
2857 
2858  _edit002 = MCreateEdit(_tablefrm029, "", 3, FIXED_SMALL);
2859  MEditSetFilter(_edit002, 4, "");
2860  MObjectSetForegroundRGB(_edit002, 255, 255, 0);
2861  MObjectSetBackgroundRGB(_edit002, 117, 117, 169);
2862 
2863  rowfrm = MCreateRowForm(pdoas->WlTabFrm);
2864  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2865  MObjectSetResize(rowfrm, False, False);
2866  MObjectAlign(rowfrm, LEFT_ALIGN, TOP_ALIGN);
2867 
2868  _label185 = MCreateLabel(rowfrm, "Spectral Step [A]", HELV_SMALL);
2869  MObjectAlign(_label185, CENTER_ALIGN, TOP_ALIGN);
2870  MObjectSetBackgroundRGB(_label185, 120, 177, 218);
2871  MObjectSetTransparency(_label185, 0);
2872 
2873  _tablefrm030 = MCreateTableForm(rowfrm, 2);
2874  MObjectAlign(_tablefrm030, CENTER_ALIGN, TOP_ALIGN);
2875  MObjectSetBackgroundRGB(_tablefrm030, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2876 
2877  _rbutton010 = MCreateRButton(_tablefrm030, "1", HELV_SMALL);
2878 
2879  _rbutton011 = MCreateRButton(_tablefrm030, "2", HELV_SMALL);
2880 
2881  _rbutton012 = MCreateRButton(_tablefrm030, "3", HELV_SMALL);
2882 
2883  _rbutton013 = MCreateRButton(_tablefrm030, "4", HELV_SMALL);
2884 
2885  _rbutton014 = MCreateRButton(_tablefrm030, "5", HELV_SMALL);
2886 
2887  _rbutton015 = MCreateRButton(_tablefrm030, "10", HELV_SMALL);
2888 */
2889 
2890 }
MOBJECT WlTabFrm
Definition: DOASdef.h:46
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateTButton(MOBJECT parent, const char *text, MTFont font)
MOBJECT lbl
Definition: DFileMan.c:42
void MObjectSetShadow(MOBJECT obj, int type, int in, int out)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
#define False
Definition: Mguidefs.h:236
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
#define HELV_SMALL
Definition: Mguidefs.h:881
short DB_BG[3]
Default Background Color.
MOBJECT MCreateRButton(MOBJECT parent, const char *text, MTFont font)
palette DPAL
Definition: DOAS_FullProj.c:36
void MPagedFormSetActivePage(MOBJECT form, int page)
void * MOBJECT
Definition: Mguidefs.h:192
#define LEFT_ALIGN
Definition: Mguidefs.h:915
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateRowForm(MOBJECT parent)
#define TOP_ALIGN
Definition: Mguidefs.h:918
#define WS_SHADOW_OUT
Definition: Mguidefs.h:957
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ DOASConfigCB()

void DOASConfigCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 1795 of file DOAS_FullProj.c.

Referenced by MDCreateDOAS_MainSh().

1796 {
1797 
1798 
1799 // MDCreateBuildList_Sh(0);
1800 // ConfigCB(p, od, ad);
1801 
1802 }
+ Here is the caller graph for this function:

§ DOASProcCB()

void DOASProcCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 102 of file DOAS_FullProj.c.

References DOAS_ProcSh, MDCreateDOAS_ProcSh(), and MShellRealize().

Referenced by MDCreateDOAS_MainSh().

103 {
104 
107 
108 }
MOBJECT MDCreateDOAS_ProcSh(void)
void MShellRealize(MOBJECT obj)
MOBJECT DOAS_ProcSh
Definition: DOAS_FullProj.c:63
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ DOASSetupCB()

void DOASSetupCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 94 of file DOAS_FullProj.c.

References DOAS_SetupSh, MDCreateDOAS_SetupSh(), and MShellRealize().

Referenced by MDCreateDOAS_MainSh().

95 {
96 
99 
100 
101 }
void MShellRealize(MOBJECT obj)
MOBJECT MDCreateDOAS_SetupSh(void)
MOBJECT DOAS_SetupSh
Definition: DOAS_FullProj.c:64
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ DOASTogButCB()

void DOASTogButCB ( MOBJECT  p,
MVALUE  od,
void *  ad 
)

Definition at line 2628 of file DOAS_FullProj.c.

References MMessageDialog(), MPagedFormSetActivePage(), MTButtonGetActivationStatus(), and doas::WlTabFrm.

Referenced by MDCreateDOAS_SetupSh().

2629 {
2630 
2631  int c, er;
2632 
2633  c = (int) ad;
2634 
2636 
2637  if(er)
2638  {
2640 
2641  //MMessageDialog(" ", "Activated","ok", NULL);
2642 
2643  }
2644  else
2645  MMessageDialog(" ", "NOT Activated","ok", NULL);
2646 
2647 }
MOBJECT WlTabFrm
Definition: DOASdef.h:46
doas DOAS
Definition: DOAS_FullProj.c:44
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
static double p
Definition: SOLPOS.C:131
void MPagedFormSetActivePage(MOBJECT form, int page)
int MTButtonGetActivationStatus(MOBJECT o)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ EditorCB()

void EditorCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 1731 of file DOAS_FullProj.c.

References bil::DFILEM, and d_fileman::HOMEDIRECTORY.

Referenced by MDCreateDOAS_MainSh().

1732 {
1733  int er = 0;
1734  char str[255];
1735 
1736  sprintf(str,"%s\\MEDIT.EXE NoName.txt", BIL.DFILEM.HOMEDIRECTORY);
1737  er = WinExec(str, SW_SHOW);
1738 
1739 
1740 }
char HOMEDIRECTORY[_MAX_PATH]
Definition: bildef.h:200
d_fileman DFILEM
Definition: bildef.h:257
bil BIL
Definition: DOAS_FullProj.c:42
+ Here is the caller graph for this function:

§ EleDatOrBinFormat()

int EleDatOrBinFormat ( int  c,
char *  dirname,
char *  fname 
)

Definition at line 1328 of file DOAS_FullProj.c.

References _MAX_PATH, D_VRange(), DatOrBinFormat(), and MLoopWhileEvents().

Referenced by ChangeFormatCB().

1329 {
1330 
1331  FILE *fs;
1332  char buf[_MAX_PATH], str[64];
1333  char filedatan[64] ;
1334  int k, i, numerofile;
1335 
1336  strcpy(buf, dirname);
1337  strcat(buf, fname);
1338 
1339 // Lettura file elenco
1340  i=0;
1341  fs = fopen(buf, "r");
1342  if(fs < 0) return 1;
1343  while( !feof( fs ) )
1344  {
1345  fgets(filedatan, 80, fs);
1346  i++;
1347  }
1348  fclose(fs);
1349 
1350  numerofile = i;
1351 
1352 
1353  fs = fopen(buf, "r");
1354  if(fs < 0) return 2;
1355 
1356 
1357 
1358  //Read the file names
1359  k = 0;
1360  while( !feof( fs ) )
1361  {
1362 
1363  D_VRange(str,0, 0, 222, 235);
1364 
1365  MLoopWhileEvents(2);
1366  k++;
1367 
1368  fscanf(fs, "%s", filedatan);
1369 
1370  switch (c)
1371  {
1372  case 0: //Bif Ext
1373  sprintf(str,"%d/%d, %s -> %s", k, numerofile, filedatan, "DAT");
1374  break;
1375 
1376  case 1: //Dat Ext
1377  sprintf(str,"%d/%d, %s -> %s", k, numerofile, filedatan, "BIF");
1378  break;
1379  }
1380 
1381 
1382  // build the complete file name
1383  D_VRange(str, (long) k * 100 / numerofile, 0, 222, 235 );
1384 
1385  DatOrBinFormat(c, dirname, filedatan);
1386 
1387  D_VRange(NULL, 100, 0,0,0);
1388 
1389  }
1390 
1391 
1392  fclose(fs);
1393 
1394  return 0;
1395 }
void MLoopWhileEvents(int discard)
void D_VRange(char *str, int val, int, int g, int b)
Create and display the status bar.
Definition: Utils.c:206
int DatOrBinFormat(int mod, char *dir, char *filename)
#define _MAX_PATH
Definition: Dildef.h:202
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ ExitCB()

void ExitCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 80 of file DOAS_FullProj.c.

References MGUITerm().

Referenced by MDCreateDOAS_MainSh().

81 {
82 
83  MGUITerm();
84 
85 }
void MGUITerm(void)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ FilterCB()

void FilterCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 160 of file DOAS_FullProj.c.

References MDCreateFormat_Sh().

Referenced by MDCreateDOAS_MainSh().

161 {
163 }
MOBJECT MDCreateFormat_Sh(int mod)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ FilterRawDataCB()

void FilterRawDataCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 1540 of file DOAS_FullProj.c.

References MMessageDialog().

Referenced by MDCreateFormat_Sh().

1541 {
1542 
1543  MMessageDialog("DAS information", "The procedure is not yet implemented!!", " Ok ", NULL);
1544 
1545 }
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ FixedStepCB()

void FixedStepCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 623 of file DOAS_FullProj.c.

References MMessageDialog().

Referenced by MDCreateDiff_Sh(), and MDCreateFixed_Sh().

624 {
625 
626  MMessageDialog("DAS information", "The procedure is not yet implemented!!", " Ok ", NULL);
627 }
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ FixStepCB()

void FixStepCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 115 of file DOAS_FullProj.c.

References MDCreateFixed_Sh().

Referenced by MDCreateDOAS_MainSh().

116 {
117 
118  MDCreateFixed_Sh(0);
119 
120 }
MOBJECT MDCreateFixed_Sh(int mod)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ FluxIndexCB()

void FluxIndexCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 1818 of file DOAS_FullProj.c.

References _MAX_PATH, FB_PREFS::allow_dir_create, FB_PREFS::allow_dir_delete, FB_PREFS::allow_dir_rename, FB_PREFS::bg_image_file, FB_PREFS::button_font, FB_PREFS::change_cwd, d_fileman::DATADIRECTORY, DB_CalcFluxI(), d_fileman::DBFILENAME, bil::DFILEM, False, FB_PREFS::font, HELV_SMALL, d_fileman::HOMEDIRECTORY, MFileBrowseExt(), FB_PREFS::transparent_tree, and True.

Referenced by MDCreateDOAS_MainSh().

1819 {
1820 
1821 
1822  int er =0;
1823  char fname[128];
1824  char buff[_MAX_PATH];
1825 // int l;
1826 
1827 
1828  FB_PREFS fbp;
1829 
1830  fname[0] = '\0';
1831  buff[0] = '\0';
1832 
1833  memset (&fbp, 0, sizeof (fbp));
1834 
1835  fbp.change_cwd = True;
1836  fbp.allow_dir_create = True;
1837  fbp.allow_dir_rename = True;
1838  fbp.allow_dir_delete = True;
1839  fbp.transparent_tree = False;
1840  fbp.font = HELV_SMALL;
1841  fbp.button_font = HELV_SMALL;
1842  //Set Img file
1843  sprintf(buff, "%s\\%s", BIL.DFILEM.HOMEDIRECTORY, "sys\\Tile2.bmp" );
1844  fbp.bg_image_file =buff;
1845 
1846 
1847  er = MFileBrowseExt ("Select List File for FluxIndex Calculation", "*.ele", fname, BIL.DFILEM.DATADIRECTORY, &fbp);
1848  if(er)
1849  {
1850  sprintf(BIL.DFILEM.DBFILENAME,"%s%s",BIL.DFILEM.DATADIRECTORY, fname);
1852  }
1853 
1854 
1855 
1856 }
CARD8 change_cwd
Definition: Mguidefs.h:1485
CARD8 allow_dir_create
Definition: Mguidefs.h:1487
MTFont button_font
Definition: Mguidefs.h:1501
CARD8 allow_dir_delete
Definition: Mguidefs.h:1493
char HOMEDIRECTORY[_MAX_PATH]
Definition: bildef.h:200
MTFont font
Definition: Mguidefs.h:1499
#define False
Definition: Mguidefs.h:236
char DATADIRECTORY[_MAX_PATH]
Definition: bildef.h:201
File Browser Preferences. Used by the Utility functions MFileBowserExt() and MDirBowserExt().
Definition: Mguidefs.h:1482
CARD8 transparent_tree
Definition: Mguidefs.h:1495
d_fileman DFILEM
Definition: bildef.h:257
#define HELV_SMALL
Definition: Mguidefs.h:881
char DBFILENAME[_MAX_PATH]
Definition: bildef.h:204
int MFileBrowseExt(const char *t, const char *ext, char *fname, char *dname, FB_PREFS *prefs)
const char * bg_image_file
Definition: Mguidefs.h:1519
#define _MAX_PATH
Definition: Dildef.h:202
int DB_CalcFluxI(char *nomefile)
Definition: Utils.c:328
#define True
Definition: Mguidefs.h:235
CARD8 allow_dir_rename
Definition: Mguidefs.h:1490
bil BIL
Definition: DOAS_FullProj.c:42
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ HlpTopCB()

void HlpTopCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 204 of file DOAS_FullProj.c.

References AboutCB(), and DB_HelpCB().

Referenced by MDCreateDOAS_MainSh().

205 {
206 
207  int c;
208  c = (int) ad;
209  switch (c)
210  {
211  case 0:
212  DB_HelpCB(NULL, NULL, NULL);; //Help
213  break;
214  case 1:
215  AboutCB(NULL, NULL, 0); //About
216  break;
217  }
218 
219 }
void AboutCB(MOBJECT o, void *s, void *v)
Create the About information shell. .
Definition: About.c:39
int DB_HelpCB(MOBJECT o, void *od, void *ad)
Help Callback Create the help in the predefined WEB Browser.
Definition: DAS_Spat.c:881
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ IoCreateCB()

void IoCreateCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 90 of file DOAS_FullProj.c.

Referenced by MDCreateDOAS_MainSh().

91 {
92 
93 }
+ Here is the caller graph for this function:

§ IoSetupCB()

void IoSetupCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 86 of file DOAS_FullProj.c.

Referenced by MDCreateDOAS_MainSh().

87 {
88 
89 }
+ Here is the caller graph for this function:

§ LinkSpectraCB()

void LinkSpectraCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 179 of file DOAS_FullProj.c.

References MMessageDialog().

Referenced by MDCreateDOAS_MainSh().

180 {
181 
182  MMessageDialog("DAS information", "The procedure is not yet implemented!!", " Ok ", NULL);
183 }
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ LoadIoCB()

void LoadIoCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 2214 of file DOAS_FullProj.c.

References _MAX_PATH, FB_PREFS::allow_dir_create, FB_PREFS::allow_dir_delete, FB_PREFS::allow_dir_rename, FB_PREFS::bg_image_file, FB_PREFS::button_font, FB_PREFS::change_cwd, d_fileman::DBFILENAME, bil::DFILEM, False, FB_PREFS::font, HELV_SMALL, d_fileman::HOMEDIRECTORY, LoadIo(), MFileBrowseExt(), MGetCurrentDirectory(), FB_PREFS::transparent_tree, and True.

Referenced by MDCreateDOAS_ProcSh().

2215 {
2216 
2217 
2218  int c = (int) ad, er =0;
2219 // int l;
2220  char buff[32],str[_MAX_PATH] ;
2221  char fname[128], dirname[128];
2222 
2223  FB_PREFS fbp;
2224  strcpy (dirname, MGetCurrentDirectory ());
2225  fname[0] = '\0';
2226  memset (&fbp, 0, sizeof (fbp));
2227 
2228  fbp.change_cwd = True;
2229  fbp.allow_dir_create = True;
2230  fbp.allow_dir_rename = True;
2231  fbp.allow_dir_delete = True;
2232  fbp.transparent_tree = False;
2233  fbp.font = HELV_SMALL;
2234  fbp.button_font = HELV_SMALL;
2235  //Set Img file
2236  sprintf(str, "%s\\%s", BIL.DFILEM.HOMEDIRECTORY, "sys\\Tile2.bmp" );
2237  fbp.bg_image_file =str;
2238 
2239 
2240  switch (c)
2241  {
2242  case 0:
2243  sprintf(buff,"1234");
2244  er = MFileBrowseExt ("Select Io File", "*.*", fname, dirname, &fbp);
2245  if(er)
2246  {
2247  sprintf(BIL.DFILEM.DBFILENAME,"%s%s",dirname, fname);
2249  }
2250  break;
2251 /* case 1:
2252  break;
2253  case 2:
2254  BuildLogRatio();
2255  break;
2256 */
2257  }
2258 
2259 
2260 
2261 
2262 
2263 }
CARD8 change_cwd
Definition: Mguidefs.h:1485
CARD8 allow_dir_create
Definition: Mguidefs.h:1487
MTFont button_font
Definition: Mguidefs.h:1501
CARD8 allow_dir_delete
Definition: Mguidefs.h:1493
char HOMEDIRECTORY[_MAX_PATH]
Definition: bildef.h:200
MTFont font
Definition: Mguidefs.h:1499
#define False
Definition: Mguidefs.h:236
File Browser Preferences. Used by the Utility functions MFileBowserExt() and MDirBowserExt().
Definition: Mguidefs.h:1482
CARD8 transparent_tree
Definition: Mguidefs.h:1495
d_fileman DFILEM
Definition: bildef.h:257
#define HELV_SMALL
Definition: Mguidefs.h:881
const char * MGetCurrentDirectory(void)
char DBFILENAME[_MAX_PATH]
Definition: bildef.h:204
int MFileBrowseExt(const char *t, const char *ext, char *fname, char *dname, FB_PREFS *prefs)
const char * bg_image_file
Definition: Mguidefs.h:1519
#define _MAX_PATH
Definition: Dildef.h:202
void LoadIo(int mod, char *fname)
Definition: Spat_Plot.c:2678
#define True
Definition: Mguidefs.h:235
CARD8 allow_dir_rename
Definition: Mguidefs.h:1490
bil BIL
Definition: DOAS_FullProj.c:42
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ MDCreateBuildList_Sh()

MOBJECT MDCreateBuildList_Sh ( int  mod)

Definition at line 436 of file DOAS_FullProj.c.

References CloseMObjCB(), CreateFileListCB(), palette::DB_BG, palette::DB_BG_Albl, palette::DB_BG_lblUP, palette::DB_BG_Plbl, palette::DB_BG_RButt, palette::DB_FG_Albl, palette::DB_FG_lblUP, palette::DB_FG_Plbl, palette::DB_FG_RButt, palette::DB_UnSel, palette::DB_UnSelFG, listf::ed, FIXED_SMALL, HELV_SMALL, listf::lbl, listf::lblpass, MButtonSetOnMouseOverForegroundRGB(), MCreateEdit(), MCreateLabel(), MCreatePButton(), MCreateRButton(), MCreateRowForm(), MCreateShell(), MCreateTableForm(), MObjectSetBackgroundRGB(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetTransparency(), MPButtonSetCallback(), MRButtonActivate(), MShellRealize(), listf::pb, listf::rb, RBEditListCB(), RBListFileCB(), listf::rowfrm, listf::shell, listf::tb, and True.

Referenced by BuildListCB().

437 {
438 // MOBJECT rowfrm;
439 // MOBJECT sh, pb, tb, lbl, rb, ed;
440 
441  LISTF.shell = MCreateShell("Build File List", 0);
442 
444 
446  MObjectSetForegroundRGB(LISTF.rowfrm, 255, 255, 0);
448 
449  LISTF.lbl[0] = MCreateLabel(LISTF.rowfrm, "ORDER FOR:", HELV_SMALL);
453 
457 
458  LISTF.rb[0] = MCreateRButton(LISTF.tb[0], "Name", HELV_SMALL);
463  MPButtonSetCallback(LISTF.rb[0], RBListFileCB, (void *) 0);
464 
465  LISTF.rb[1] = MCreateRButton(LISTF.tb[0], "Date", HELV_SMALL);
469  MPButtonSetCallback(LISTF.rb[1], RBEditListCB, (void *) 1);
470 
471  LISTF.rb[2] = MCreateRButton(LISTF.tb[0], "Dimension", HELV_SMALL);
475  MPButtonSetCallback(LISTF.rb[2], RBEditListCB, (void *) 2);
476 
477  LISTF.rb[3] = MCreateRButton(LISTF.tb[0], "Type", HELV_SMALL);
481  MPButtonSetCallback(LISTF.rb[3], RBEditListCB, (void *) 3);
482 
483  LISTF.lbl[1] = MCreateLabel(LISTF.rowfrm, "FILE EXTENSION TO LIST:", HELV_SMALL);
487 
490 
491 
492  LISTF.lblpass = MCreateLabel(LISTF.tb[1], "Type it (dat, bif, *, gif...): ", HELV_SMALL);
496 
497  LISTF.ed = MCreateEdit(LISTF.tb[1], "dat", 4, FIXED_SMALL);
498  // MEditSetFilter(ed, 772, "");
499  // MEditSetActCallback(ed, SactedtCB, (void *) 6);
500  // MEditSetValCallback(ed, SvaledtCB, (void *) 6);
503 
504  LISTF.lbl[2] = MCreateLabel(LISTF.rowfrm, "LIST FILES IN SUBDIR ?", HELV_SMALL);
508 
510  MObjectSetForegroundRGB(LISTF.tb[2], 255, 255, 0);
513 
514  LISTF.rb[4] = MCreateRButton(LISTF.tb[2], "Yes", HELV_SMALL);
518  MPButtonSetCallback(LISTF.rb[4], RBEditListCB, (void *) 4);
519 
520  LISTF.rb[5] = MCreateRButton(LISTF.tb[2], "No", HELV_SMALL);
525  MPButtonSetCallback(LISTF.rb[5], RBEditListCB, (void *) 5);
526 /**********************************************************/
527 
528 
529  LISTF.lbl[3] = MCreateLabel(LISTF.rowfrm, "TYPE OF THE LIST", HELV_SMALL);
533 
535  MObjectSetForegroundRGB(LISTF.tb[3], 255, 255, 0);
538 
539  LISTF.rb[6] = MCreateRButton(LISTF.tb[3], "Compact", HELV_SMALL);
544  MPButtonSetCallback(LISTF.rb[6], RBEditListCB, (void *) 2);
545 
546  LISTF.rb[7] = MCreateRButton(LISTF.tb[3], "Detailed", HELV_SMALL);
550  MPButtonSetCallback(LISTF.rb[7], RBEditListCB, (void *) 3);
551 /**********************************************************/
552  LISTF.lbl[4] = MCreateLabel(LISTF.rowfrm, "VIEW LIST AFTER CREATION ?", HELV_SMALL);
556 
558  MObjectSetForegroundRGB(LISTF.tb[4], 255, 255, 0);
561 
562  LISTF.rb[8] = MCreateRButton(LISTF.tb[4], "Yes", HELV_SMALL);
567  MPButtonSetCallback(LISTF.rb[8], RBEditListCB, (void *) 0);
568 
569  LISTF.rb[9] = MCreateRButton(LISTF.tb[4], "No", HELV_SMALL);
573  MPButtonSetCallback(LISTF.rb[9], RBEditListCB, (void *) 1);
574 
575 /**********************************************************/
578 
579 
580  LISTF.pb[0] = MCreatePButton(LISTF.tb[5], "Execute", HELV_SMALL);
585 
586 
587  LISTF.pb[1] = MCreatePButton(LISTF.tb[5], " Close ", HELV_SMALL);
592 
594 
595 
596  return 0;
597 }
short DB_BG_lblUP[3]
Background Capital Letters Labels Color UP.
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT rb[10]
Definition: DOASdef.h:62
MOBJECT pb[2]
Definition: DOASdef.h:63
short DB_FG_Plbl[3]
Foreground PASSIVE Label Colors.
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)
MOBJECT tb[6]
Definition: DOASdef.h:64
short DB_BG_Albl[3]
Background ACTIVE Label Colors.
MOBJECT lblpass
Definition: DOASdef.h:61
short DB_BG_RButt[3]
Background Radio Buttons.
MOBJECT shell
Definition: DOASdef.h:66
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
listf LISTF
Definition: DOAS_FullProj.c:45
MOBJECT ed
Definition: DOASdef.h:67
MOBJECT rowfrm
Definition: DOASdef.h:65
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)
short DB_FG_Albl[3]
Foreground ACTIVE Label Colors.
void MRButtonActivate(MOBJECT o)
short DB_BG_Plbl[3]
Background PASSIVE Label Colors.
void CreateFileListCB(MOBJECT p, void *od, void *ad)
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.
void RBEditListCB(MOBJECT p, void *od, void *ad)
palette DPAL
Definition: DOAS_FullProj.c:36
MOBJECT lbl[5]
Definition: DOASdef.h:60
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
short DB_UnSelFG[3]
Unselected Buttons Colors.
short DB_UnSel[3]
Unselected Buttons Colors.
#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)
void RBListFileCB(MOBJECT p, void *od, void *ad)
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:

§ MDCreateColFor_Sh()

MOBJECT MDCreateColFor_Sh ( void  )

Definition at line 862 of file DOAS_FullProj.c.

References ActEditCB(), CloseMObjCB(), ColumnFormatCB(), palette::DB_BG, palette::DB_BG_lblUP, palette::DB_BG_RButt, palette::DB_FG_lblUP, palette::DB_FG_RButt, DB_FilterColumnCB(), palette::DB_UnSel, palette::DB_UnSelFG, edtwf, False, doas::FFTFilter, FIXED_SMALL, tools::FlagFilter, HELV_SMALL, lbl, lblwf, LEFT_ALIGN, MButtonSetOnMouseOverForegroundRGB(), MCreateClippedEdit(), MCreateLabel(), MCreateOptionEdit(), MCreatePButton(), MCreateRButton(), MCreateRowForm(), MCreateShell(), MCreateTabbedRowForm(), MCreateTableForm(), MEditDisableEditing(), MEditEnableAutoControlColor(), MEditSetActCallback(), MEditSetFilter(), MEditSetValCallback(), MLabelSetAlignment(), MObjectAlign(), MObjectMap(), MObjectSetBackgroundRGB(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetText(), MObjectSetTransparency(), MObjectUnmap(), MOptionEditGetList(), MPagedFormSetActivePage(), MPButtonSetCallback(), MRButtonActivate(), MSListAddItem(), MSListSetSortCallback(), p, TOOLS, TOP_ALIGN, True, and ValidateCB().

Referenced by ColumnFCB().

863 {
864  MOBJECT rowfrm, pagfrm;
865  MOBJECT _oedit000;
866  MOBJECT _oedit001;
867  MOBJECT sh, pb, tb, lbl, rb;
868  char str[32];
869  int k,*p;
870 
871 
872  sh = MCreateShell("Column Format", 0);
874 
875 
876  pagfrm = MCreateTabbedRowForm(sh, 2, FIXED_SMALL);
877  MObjectSetForegroundRGB(pagfrm, 255, 255, 255);
878  MObjectSetBackgroundRGB(pagfrm, 96, 132, 152);
879  MObjectSetResize(pagfrm, True, False);
880 
881  /* Start Activation and creation of page 0 0000000000000*/
882  /* 00000000000000000000000000000000000000000000000000000000*/
883  MPagedFormSetActivePage(pagfrm, 0);
884  MObjectSetText(pagfrm, "Advanced Mode");
885 
886 
887 
888 
889  rowfrm = MCreateRowForm(pagfrm);
890  MObjectSetForegroundRGB(rowfrm, 255, 255, 0);
891  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
892 
893  lbl = MCreateLabel(rowfrm, "SELECT FILE MODE", HELV_SMALL);
896  MObjectSetTransparency(lbl, 0);
897 
898  tb = MCreateTableForm(rowfrm, 2);
899  MObjectSetForegroundRGB(tb, 255, 255, 0);
901  MObjectSetResize(tb, True, True);
902 
903  rb = MCreateRButton(tb, "Single", HELV_SMALL);
906  MObjectSetTransparency(rb, 0);
907 
908  rb = MCreateRButton(tb, "List of...", HELV_SMALL);
911  MObjectSetTransparency(rb, 0);
912 
913  lbl = MCreateLabel(rowfrm, "Order for Wavelength ?", HELV_SMALL);
916  MObjectSetTransparency(lbl, 0);
917 
918  tb = MCreateTableForm(rowfrm, 2);
919  MObjectSetForegroundRGB(tb, 255, 255, 0);
921  MObjectSetResize(tb, True, True);
922 
923  rb = MCreateRButton(tb, "Yes", HELV_SMALL);
926  MObjectSetTransparency(rb, 0);
927 
928  rb = MCreateRButton(tb, "No", HELV_SMALL);
931  MObjectSetTransparency(rb, 0);
932 
933  tb = MCreateTableForm(rowfrm, 2);
934  MObjectSetForegroundRGB(tb, 255, 255, 0);
936  MObjectSetResize(tb, True, True);
937 
938  lbl = MCreateLabel(tb, "Select the init Wl.", HELV_SMALL);
939  MObjectSetBackgroundRGB(lbl, 120, 177, 218);
940  MObjectSetTransparency(lbl, 0);
941 
942  _oedit000 = MCreateOptionEdit(tb, "2823", 5, 5, 15, FIXED_SMALL);
943  {
944  MOBJECT slist = MOptionEditGetList(_oedit000);
945  MSListSetSortCallback(slist, strcmp);
946  MSListAddItem(slist, "2823", (void *)0);
947  MSListAddItem(slist, "3337", (void *)1);
948  MSListAddItem(slist, "3850", (void *)2);
949  MSListAddItem(slist, "4358", (void *)3);
950  MSListAddItem(slist, "4861", (void *)4);
951  MSListAddItem(slist, "5332", (void *)5);
952  MSListAddItem(slist, "5814", (void *)6);
953  MSListAddItem(slist, "6282", (void *)7);
954  MSListAddItem(slist, "6734", (void *)8);
955  MSListAddItem(slist, "7201", (void *)9);
956  MSListAddItem(slist, "7677", (void *)10);
957  MSListAddItem(slist, "8195", (void *)11);
958  MSListAddItem(slist, "8622", (void *)12);
959  MSListAddItem(slist, "9023", (void *)13);
960  MSListAddItem(slist, "9405", (void *)14);
961  }
962  MEditSetFilter(_oedit000, 260, "");
963  MEditDisableEditing(_oedit000);
964  MEditEnableAutoControlColor(_oedit000);
965  MObjectSetForegroundRGB(_oedit000, 255, 255, 0);
966  MObjectSetBackgroundRGB(_oedit000, 117, 117, 169);
967 
968  lbl = MCreateLabel(tb, "Select the end Wl.", HELV_SMALL);
969  MObjectSetBackgroundRGB(lbl, 120, 177, 218);
970  MObjectSetTransparency(lbl, 0);
971 
972  _oedit001 = MCreateOptionEdit(tb, "9405", 5, 5, 15, FIXED_SMALL);
973  {
974  MOBJECT slist = MOptionEditGetList(_oedit001);
975  MSListSetSortCallback(slist, strcmp);
976  MSListAddItem(slist, "2823", (void *)0);
977  MSListAddItem(slist, "3337", (void *)1);
978  MSListAddItem(slist, "3850", (void *)2);
979  MSListAddItem(slist, "4358", (void *)3);
980  MSListAddItem(slist, "4861", (void *)4);
981  MSListAddItem(slist, "5332", (void *)5);
982  MSListAddItem(slist, "5814", (void *)6);
983  MSListAddItem(slist, "6282", (void *)7);
984  MSListAddItem(slist, "6734", (void *)8);
985  MSListAddItem(slist, "7201", (void *)9);
986  MSListAddItem(slist, "7677", (void *)10);
987  MSListAddItem(slist, "8195", (void *)11);
988  MSListAddItem(slist, "8622", (void *)12);
989  MSListAddItem(slist, "9023", (void *)13);
990  MSListAddItem(slist, "9405", (void *)14);
991  }
992  MEditSetFilter(_oedit001, 260, "");
993  MEditDisableEditing(_oedit001);
994  MEditEnableAutoControlColor(_oedit001);
995  MObjectSetForegroundRGB(_oedit001, 255, 255, 0);
996  MObjectSetBackgroundRGB(_oedit001, 117, 117, 169);
997 
998  tb = MCreateTableForm(rowfrm, 2);
1000 
1001 
1002 
1003  pb = MCreatePButton(tb, "Execute", HELV_SMALL);
1004  MPButtonSetCallback(pb, ColumnFormatCB, (void *) 0);
1008 
1009 
1010  pb = MCreatePButton(tb, " Close ", HELV_SMALL);
1011  MPButtonSetCallback(pb, CloseMObjCB, (void *) sh);
1015 
1016  /* Start Activation and creation of page 1 0000000000000*/
1017  /* 00000000000000000000000000000000000000000000000000000000*/
1018  MPagedFormSetActivePage(pagfrm, 1);
1019  MObjectSetText(pagfrm, "Easy Mode");
1020 
1021  rowfrm = MCreateRowForm(pagfrm);
1022  MObjectSetForegroundRGB(rowfrm, 255, 255, 0);
1023  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
1024 
1025  lbl = MCreateLabel(rowfrm, "PUSH the 'Execute' Button\n and\n select the file to put in column format", HELV_SMALL);
1028  MObjectSetTransparency(lbl, 0);
1029  MObjectSetResize(lbl, True, True);
1030 
1031 /****************/
1032  lbl = MCreateLabel(rowfrm, "FILTER", FIXED_SMALL);
1034  MObjectSetForegroundRGB(lbl, 255, 255, 255);
1035  MObjectSetBackgroundRGB(lbl, 48, 20, 255);
1036  MObjectSetTransparency(lbl, 0);
1037 
1038 
1039  tb = MCreateTableForm(rowfrm, 2);
1040  MObjectSetBackgroundRGB(tb, 112, 128, 112);
1041  MObjectSetResize(tb, True, False);
1043 
1044  rb = MCreateRButton(tb, "Disabled", FIXED_SMALL);
1045  MPButtonSetCallback(rb, DB_FilterColumnCB, (void *) 0);
1047  MObjectSetForegroundRGB(rb, 255, 255, 255);
1048  //MObjectSetCompositeWidth(rb, 85);
1049  if(TOOLS.FlagFilter == 0)
1050  MRButtonActivate(rb);
1051 
1052  rb= MCreateRButton(tb, "Enabled", FIXED_SMALL);
1053  MPButtonSetCallback(rb, DB_FilterColumnCB, (void *) 1);
1055  MObjectSetForegroundRGB(rb, 255, 255, 255);
1056  //MObjectSetCompositeWidth(rb, 123);
1057  if(TOOLS.FlagFilter == 1)
1058  MRButtonActivate(rb);
1059 
1060 
1061 
1062  lblwf = MCreateLabel(tb, "Window Filter:", FIXED_SMALL);
1064  MObjectSetForegroundRGB(lblwf, 255, 255, 255);
1068 
1069 
1070  sprintf(str,"%d",DOAS.FFTFilter);
1071  edtwf = MCreateClippedEdit(tb, str, 10, 5, FIXED_SMALL);
1072  MObjectSetForegroundRGB(edtwf, 255, 255, 255);
1073  MObjectSetBackgroundRGB(edtwf, 40, 96, 72);
1074 // MObjectSetCompositeWidth(level, 35);
1076  k = 151;
1077  p = (void *) k;
1080 
1081  if(TOOLS.FlagFilter == 0)
1082  {
1085 
1086  }
1087  else
1088  {
1089  MObjectMap(lblwf);
1090  MObjectMap(edtwf);
1091  }
1092 
1093 
1094 /*****************/
1095 
1096  tb = MCreateTableForm(rowfrm, 2);
1098 
1099 
1100 
1101 
1102  pb = MCreatePButton(tb, "Execute", HELV_SMALL);
1103  MPButtonSetCallback(pb, ColumnFormatCB, (void *) 1);
1107 
1108 
1109  pb = MCreatePButton(tb, " Close ", HELV_SMALL);
1110  MPButtonSetCallback(pb, CloseMObjCB, (void *) sh);
1114 
1115 
1116  return sh;
1117 }
void MEditDisableEditing(MOBJECT edit)
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
MOBJECT MOptionEditGetList(MOBJECT ce)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
#define False
Definition: Mguidefs.h:236
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
void ActEditCB(MOBJECT edit, char *text, void *ed)
Text Application callback Apply to the variables the text typed in various text box and validated by ...
MOBJECT MCreateClippedEdit(MOBJECT parent, const char *text, int len, int clip_len, MTFont font)
MOBJECT MCreateOptionEdit(MOBJECT parent, const char *text, int len, int clip_len, int nrow, MTFont font)
void MObjectSetText(MOBJECT obj, const char *text)
MOBJECT edtwf
short DB_BG_RButt[3]
Background Radio Buttons.
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
doas DOAS
Definition: DOAS_FullProj.c:44
#define HELV_SMALL
Definition: Mguidefs.h:881
void MEditSetActCallback(MOBJECT edit, OBJ_STRING_CB cb, void *data)
#define FIXED_SMALL
Definition: Mguidefs.h:878
void CloseMObjCB(MOBJECT p, void *od, void *ad)
void ValidateCB(MOBJECT edit, EDIT_VAL *ev, void *ii)
Text Validation callback Validation callback for the text typed in different text box...
void MEditSetValCallback(MOBJECT edit, EDIT_VAL_CB cb, void *data)
void MRButtonActivate(MOBJECT o)
int FFTFilter
Fast Fourier Trasform Filter windows.
Definition: DOASdef.h:25
MOBJECT MCreateShell(const char *title, int flags)
int FlagFilter
flag for filterinf
short DB_BG[3]
Default Background Color.
MOBJECT MCreateRButton(MOBJECT parent, const char *text, MTFont font)
void MObjectUnmap(MOBJECT obj)
short DB_FG_RButt[3]
Foreground Radio Buttons.
void MSListSetSortCallback(MOBJECT obj, STRCMP_CB cb)
static double p
Definition: SOLPOS.C:131
palette DPAL
Definition: DOAS_FullProj.c:36
void MEditSetFilter(MOBJECT edit, int filter, const char *extra_chars)
void MLabelSetAlignment(MOBJECT p, int align)
void MPagedFormSetActivePage(MOBJECT form, int page)
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
#define LEFT_ALIGN
Definition: Mguidefs.h:915
int MSListAddItem(MOBJECT p, const char *item, void *data)
void MButtonSetOnMouseOverForegroundRGB(MOBJECT button, int r, int g, int b)
void MObjectMap(MOBJECT obj)
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT lblwf
MOBJECT MCreateRowForm(MOBJECT parent)
tools TOOLS
Definition: CreateForms.c:81
void MEditEnableAutoControlColor(MOBJECT edit)
#define TOP_ALIGN
Definition: Mguidefs.h:918
MOBJECT MCreateTabbedRowForm(MOBJECT parent, int npage, MTFont f)
void DB_FilterColumnCB(MOBJECT p, void *od, void *ad)
short DB_FG_lblUP[3]
Foreground Capital Letters Labels Color UP.
void ColumnFormatCB(MOBJECT p, void *od, void *ad)
+ Here is the caller graph for this function:

§ 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:

§ MDCreateDOAS_MainSh()

MOBJECT MDCreateDOAS_MainSh ( struct doas pdoas)

DOAS shell. Procedure that build the shell for the DOAS main panels.

Returns
void

Definition at line 1859 of file DOAS_FullProj.c.

References BrowseCB(), BuildListCB(), C_A, C_B, C_C, C_D, C_E, C_H, C_L, C_P, C_R, C_S, C_T, C_U, C_W, C_X, ChooseFormatCB(), ColumnFCB(), palette::DB_BG, palette::DB_BG_Albl, palette::DB_BG_Plbl, palette::DB_FG_Albl, palette::DB_FG_Plbl, DiffCB(), DOAS_LoadConfig(), DOAS_MainSh, DOASConfigCB(), DOASProcCB(), DOASSetupCB(), EditorCB(), ExitCB(), F10, doas::family, doas::fbold, FilterCB(), doas::fitalic, FixStepCB(), FluxIndexCB(), doas::font, doas::fsize, HELV_SMALL, HlpTopCB(), id_item, id_menu, IoCreateCB(), IoSetupCB(), lblris, lblsys, LEFT_ALIGN, LinkSpectraCB(), LoadDB_DispCoeff(), LoadParam(), MCreateImagePButton(), MCreateLabel(), MCreateMenu(), MCreateMenuBar(), MCreateRowForm(), MCreateShell(), MCreateSubMenu(), MCreateTableForm(), menu, menubar, MGUIQuitCB(), MLabelSetAlignment(), MLoadFont(), MMainLoop(), MMenuAddItem(), MMenuAddSeparator(), MMenuBarSetAcc(), MMenuItemSetAccel(), MObjectSetBackgroundRGB(), MObjectSetForegroundRGB(), MObjectSetPopupHelp(), MObjectSetShadow(), MObjectSetTransparency(), MPButtonSetAlignment(), MPButtonSetCallback(), MShellRealizeXY(), MShellSetWMCloseCallback(), PBTempHistoCB(), ResumeCB(), RIGHT_ALIGN, doas::RISDIR, ShStCB(), submenu, SunCalcCB(), doas::SYSDIR, TIMES_SMALL, ViewCB(), VitesaCB(), and WS_SHADOW_IN.

Referenced by BuildShell().

1860 {
1861  MOBJECT _rowform001;
1862  MOBJECT _tablefrm003;
1863  MOBJECT _label004;
1864  MOBJECT _label006;
1865  MOBJECT pb;
1866 
1867  MOBJECT menu;
1868 
1869  DOAS_LoadConfig(pdoas);
1870 
1871  // Load the dispersion coefficient for DOAS Use
1872  LoadDB_DispCoeff();
1873 
1874  LoadParam();
1875 
1876  sprintf(pdoas->family, "Arial");
1877  pdoas->fsize = 32;
1878  pdoas->fbold = 0;
1879  pdoas->fitalic = 0;
1880 
1881 
1882  pdoas->font = MLoadFont(pdoas->family, pdoas->fsize, pdoas->fbold, pdoas->fitalic);
1883 
1884 
1885  DOAS_MainSh = MCreateShell("DOAS Main Panel", 0);
1886 
1887  {
1888 /*
1889 
1890  */
1891 
1893 
1895 
1896 // menubar = MCreateMenuBar(DOAS_MainSh, pdoas->font);
1897 
1899 
1900  menu = MCreateMenu(menubar, "File");
1901  id_menu = MMenuAddItem(menu, "Load Img", (MENU_ITEM_CB) ExitCB, NULL);
1902  id_menu = MMenuAddItem(menu, "Load Ris", (MENU_ITEM_CB) ExitCB, NULL);
1903  id_menu = MMenuAddItem(menu, "Close", (MENU_ITEM_CB) ExitCB, NULL);
1904 
1905  MMenuAddSeparator(menu);
1906 
1907  id_menu = MMenuAddItem(menu, "Exit", (MENU_ITEM_CB) MGUIQuitCB, NULL);
1908  MMenuItemSetAccel(id_menu, C_X, "Ctrl+X");
1909 
1910  menu = MCreateMenu(menubar, "Analisys");
1911 
1912  id_menu = MMenuAddItem(menu, "Io", NULL, NULL);
1913  submenu = MCreateSubMenu(id_menu);
1914  id_menu = MMenuAddItem(submenu, "Setup", (MENU_ITEM_CB)IoSetupCB, 0);
1915  MMenuItemSetAccel(id_menu, C_S, "Ctrl+S");
1916  id_menu = MMenuAddItem(submenu, "Create", (MENU_ITEM_CB)IoCreateCB, 0);
1917  MMenuItemSetAccel(id_menu, C_C, "Ctrl+C");
1918 
1919  MMenuAddSeparator(menu);
1920 
1921  id_menu = MMenuAddItem(menu, "DOAS", NULL, NULL);
1922  submenu = MCreateSubMenu(id_menu);
1923  id_menu = MMenuAddItem(submenu, "Setup", (MENU_ITEM_CB)DOASSetupCB, 0);
1924  MMenuItemSetAccel(id_menu, C_S, "Ctrl+S");
1925  id_menu = MMenuAddItem(submenu, "Processing", (MENU_ITEM_CB)DOASProcCB, 0);
1926  MMenuItemSetAccel(id_menu, C_P, "Ctrl+P");
1927 
1928  menu = MCreateMenu(menubar, "Utility");
1929  id_item = MMenuAddItem(menu, "Differential", (MENU_ITEM_CB)DiffCB, 0);
1930  MMenuItemSetAccel(id_item, C_E, "Ctrl+E");
1931  id_item = MMenuAddItem(menu, "Fixed Step", (MENU_ITEM_CB)FixStepCB, 0);
1932  MMenuItemSetAccel(id_item, C_T, "Ctrl+T");
1933  id_item = MMenuAddItem(menu, "View Spectra", (MENU_ITEM_CB)ViewCB, 0);
1934  MMenuItemSetAccel(id_item, C_W, "Ctrl+W");
1935  id_item = MMenuAddItem(menu, "Sun Calculator", (MENU_ITEM_CB)SunCalcCB, 0);
1936  MMenuItemSetAccel(id_item, C_S, "Ctrl+S");
1937  id_item = MMenuAddItem(menu, "ShiftStretch", (MENU_ITEM_CB)ShStCB, 0);
1938  MMenuItemSetAccel(id_item, C_H, "Ctrl+H");
1939  id_item = MMenuAddItem(menu, "Filter Data", (MENU_ITEM_CB)FilterCB, 0);
1940  MMenuItemSetAccel(id_item, C_T, "Ctrl+T");
1941  id_item = MMenuAddItem(menu, "Column Format", (MENU_ITEM_CB)ColumnFCB, 0);
1942  MMenuItemSetAccel(id_item, C_C, "Ctrl+C");
1943  id_item = MMenuAddItem(menu, "Resume", (MENU_ITEM_CB)ResumeCB, 0);
1944  MMenuItemSetAccel(id_item, C_R, "Ctrl+R");
1945  id_item = MMenuAddItem(menu, "Link Spectra", (MENU_ITEM_CB)LinkSpectraCB, 0);
1946  MMenuItemSetAccel(id_item, C_L, "Ctrl+L");
1947 
1948  id_item = MMenuAddItem(menu, "Editor", (MENU_ITEM_CB)EditorCB, (void *) 0);
1949  MMenuItemSetAccel(id_item, C_D, "Ctrl+D");
1950 
1951  id_item = MMenuAddItem(menu, "Create List", (MENU_ITEM_CB)BuildListCB, (void *) 0);
1952  MMenuItemSetAccel(id_item, C_C, "Ctrl+C");
1953 
1954  id_item = MMenuAddItem(menu, "ASCII to Binary", (MENU_ITEM_CB)ChooseFormatCB, (void *) 1);
1955  MMenuItemSetAccel(id_item, C_A, "Ctrl+A");
1956 
1957  id_item = MMenuAddItem(menu, "Binary to ASCII ", (MENU_ITEM_CB)ChooseFormatCB, 0);
1958  MMenuItemSetAccel(id_item, C_B, "Ctrl+B");
1959 
1960  id_item = MMenuAddItem(menu, "Flux Index ", (MENU_ITEM_CB)FluxIndexCB, 0);
1961  MMenuItemSetAccel(id_item, C_U, "Ctrl+U");
1962 
1963  id_item = MMenuAddItem(menu, "Temp History ", (MENU_ITEM_CB)PBTempHistoCB, 0);
1964  MMenuItemSetAccel(id_item, C_H, "Ctrl+H");
1965 
1966  menu = MCreateMenu(menubar, "Tools");
1967  id_item = MMenuAddItem(menu, "Config", (MENU_ITEM_CB) DOASConfigCB, 0);
1968 
1969  id_item = MMenuAddItem(menu, "ViTESA", (MENU_ITEM_CB) VitesaCB, 0);
1970 
1971 
1972  menu = MCreateMenu(menubar, "Help");
1973  id_item = MMenuAddItem(menu, "Topics", (MENU_ITEM_CB) HlpTopCB, 0);
1974 
1975  id_item = MMenuAddItem(menu, "About", (MENU_ITEM_CB) HlpTopCB, (void *)1);
1976 
1977  }
1980 
1981  _rowform001 = MCreateRowForm(DOAS_MainSh);
1982  MObjectSetBackgroundRGB(_rowform001, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
1983 
1984  _tablefrm003 = MCreateTableForm(_rowform001, 3);
1985  MObjectSetBackgroundRGB(_tablefrm003, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
1986 
1987  _label004 = MCreateLabel(_tablefrm003, "DOAS Sys Directory:", HELV_SMALL);
1988  MLabelSetAlignment(_label004, LEFT_ALIGN);
1991  MObjectSetTransparency(_label004, 0);
1992 
1993 
1994  //lblsys = MCreateLabel(_tablefrm003, "..\\DOAS\\Sys\\ ", TIMES_SMALL);
1995  lblsys = MCreateLabel(_tablefrm003, pdoas->SYSDIR, TIMES_SMALL);
2001 
2002  pb = MCreateImagePButton(_tablefrm003, "sys\\fbsfold.bmp", "", "");
2003  MPButtonSetCallback(pb, BrowseCB, (void *) 0);
2004  MObjectSetPopupHelp(pb, "Change DOAS\nSystem Directory", 20, 2000);
2006 
2007  _label006 = MCreateLabel(_tablefrm003, "DOAS Results Directory:", HELV_SMALL);
2008  MLabelSetAlignment(_label006, LEFT_ALIGN);
2011  MObjectSetTransparency(_label006, 0);
2012 
2013  lblris = MCreateLabel(_tablefrm003, pdoas->RISDIR, HELV_SMALL);
2019 
2020  pb = MCreateImagePButton(_tablefrm003, "sys\\fbsfold.bmp", "", "");
2021  MPButtonSetCallback(pb, BrowseCB, (void *) 1);
2022  MObjectSetPopupHelp(pb, "Change DOAS\nResults Directory", 20, 2000);
2024 
2026 
2027 
2028 
2030 
2031  MMainLoop();
2032 
2033 
2034  return 0;
2035 }
#define RIGHT_ALIGN
Definition: Mguidefs.h:916
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
char RISDIR[_MAX_PATH]
DOAS results directory.
Definition: DOASdef.h:34
MOBJECT menubar
Definition: DOAS_FullProj.c:59
void LinkSpectraCB(MOBJECT p, void *od, void *ad)
void HlpTopCB(MOBJECT p, void *od, void *ad)
#define WS_SHADOW_IN
Definition: Mguidefs.h:958
short DB_FG_Plbl[3]
Foreground PASSIVE Label Colors.
void MMenuBarSetAcc(MOBJECT menu, int acc)
#define C_A
Definition: KEYCODES.H:283
void MObjectSetShadow(MOBJECT obj, int type, int in, int out)
#define C_H
Definition: KEYCODES.H:290
char SYSDIR[_MAX_PATH]
DOAS system directory.
Definition: DOASdef.h:33
MTFont font
Definition: DOASdef.h:43
MOBJECT lblsys
Definition: DOAS_FullProj.c:66
void ViewCB(MOBJECT p, void *od, void *ad)
void(* MENU_ITEM_CB)(MENU_ITEM item, MVALUE status, void *ad)
Definition: Mguidefs.h:1468
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
MENU_ITEM MMenuAddItem(MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad)
void SunCalcCB(MOBJECT p, void *od, void *ad)
#define F10
Definition: KEYCODES.H:346
void MMainLoop(void)
short DB_BG_Albl[3]
Background ACTIVE Label Colors.
void * MENU_ITEM
Definition: Mguidefs.h:1418
MOBJECT MCreateSubMenu(MENU_ITEM item)
#define C_T
Definition: KEYCODES.H:302
#define C_X
Definition: KEYCODES.H:306
void ColumnFCB(MOBJECT p, void *od, void *ad)
void MObjectSetPopupHelp(MOBJECT obj, const char *str, int delay, int duration)
#define TIMES_SMALL
Definition: Mguidefs.h:883
MOBJECT lblris
Definition: DOAS_FullProj.c:66
MOBJECT menu
Definition: DOAS_FullProj.c:60
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
void IoCreateCB(MOBJECT p, void *od, void *ad)
Definition: DOAS_FullProj.c:90
int fbold
Definition: DOASdef.h:40
#define C_B
Definition: KEYCODES.H:284
int fsize
Definition: DOASdef.h:42
void ExitCB(MOBJECT p, void *od, void *ad)
Definition: DOAS_FullProj.c:80
#define C_S
Definition: KEYCODES.H:301
void FixStepCB(MOBJECT p, void *od, void *ad)
#define HELV_SMALL
Definition: Mguidefs.h:881
void DiffCB(MOBJECT p, void *od, void *ad)
MTFont MLoadFont(const char *family, int h, int bold, int italic)
MENU_ITEM id_menu
Definition: DOAS_FullProj.h:11
short DB_FG_Albl[3]
Foreground ACTIVE Label Colors.
void MPButtonSetAlignment(MOBJECT p, int align)
#define C_E
Definition: KEYCODES.H:287
short DB_BG_Plbl[3]
Background PASSIVE Label Colors.
void MShellRealizeXY(MOBJECT obj, int x, int y)
#define C_L
Definition: KEYCODES.H:294
void VitesaCB(MOBJECT p, void *od, void *ad)
MOBJECT MCreateShell(const char *title, int flags)
void ShStCB(MOBJECT p, void *od, void *ad)
void ResumeCB(MOBJECT p, void *od, void *ad)
short DB_BG[3]
Default Background Color.
void BuildListCB(MOBJECT p, void *od, void *ad)
#define C_C
Definition: KEYCODES.H:285
void FluxIndexCB(MOBJECT p, void *od, void *ad)
MOBJECT submenu
Definition: DOAS_FullProj.c:61
void DOASSetupCB(MOBJECT p, void *od, void *ad)
Definition: DOAS_FullProj.c:94
void EditorCB(MOBJECT p, void *od, void *ad)
MOBJECT MCreateImagePButton(MOBJECT parent, const char *npf, const char *apf, const char *upf)
palette DPAL
Definition: DOAS_FullProj.c:36
int DOAS_LoadConfig(struct doas *pdoas)
MOBJECT DOAS_MainSh
Definition: DOAS_FullProj.c:58
#define C_R
Definition: KEYCODES.H:300
int LoadDB_DispCoeff(void)
Load dispersion parameters. Procedure that load the dispersion parameters from file {homedir}/DOAS/Di...
Definition: Load.c:234
void MLabelSetAlignment(MOBJECT p, int align)
int LoadParam(void)
Load the exe parameters. Procedure that load the parameters for CCD, Stepper Motors and Peltier from ...
Definition: Load.c:1215
#define C_U
Definition: KEYCODES.H:303
void DOASConfigCB(MOBJECT p, void *od, void *ad)
MENU_ITEM id_item
Definition: DOAS_FullProj.h:19
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
void DOASProcCB(MOBJECT p, void *od, void *ad)
#define C_P
Definition: KEYCODES.H:298
void FilterCB(MOBJECT p, void *od, void *ad)
void * MOBJECT
Definition: Mguidefs.h:192
#define LEFT_ALIGN
Definition: Mguidefs.h:915
void ChooseFormatCB(MOBJECT p, void *od, void *ad)
int fitalic
Definition: DOASdef.h:41
#define C_D
Definition: KEYCODES.H:286
MOBJECT MCreateMenuBar(MOBJECT parent, MTFont font)
void BrowseCB(MOBJECT p, void *od, void *ad)
MENU_ITEM MMenuAddSeparator(MOBJECT pd)
void MGUIQuitCB(MOBJECT shell, void *od, void *ad)
Exit MGUI Library. Procedure that close MGUI .
Definition: DAS_Spat.c:728
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
void MShellSetWMCloseCallback(MOBJECT p, WM_CLOSE_CB cb, void *a_data)
void MMenuItemSetAccel(MENU_ITEM item, int acc, const char *at)
MOBJECT MCreateRowForm(MOBJECT parent)
void PBTempHistoCB(MOBJECT o, void *a, void *v)
void IoSetupCB(MOBJECT p, void *od, void *ad)
Definition: DOAS_FullProj.c:86
char family[32]
Definition: DOASdef.h:39
#define C_W
Definition: KEYCODES.H:305
MOBJECT MCreateMenu(MOBJECT menu, const char *text)
+ Here is the caller graph for this function:

§ MDCreateDOAS_ProcSh()

MOBJECT MDCreateDOAS_ProcSh ( void  )

Definition at line 2266 of file DOAS_FullProj.c.

References CENTER_ALIGN, CloseMObjCB(), palette::DB_BG, DOAS_Plot(), F10, F_ATT_FORM, F_ATT_OBJ, False, HELV_MEDIUM, HELV_SMALL, LEFT_ALIGN, LoadIoCB(), MCreateColForm(), MCreateLabel(), MCreateMenu(), MCreateMenuBar(), MCreateRowForm(), MCreateShell(), MCreateTabbedRowForm(), MCreateTableForm(), MFormSetSpacing(), MLabelSetAlignment(), MLeftAttach(), MMenuAddItem(), MMenuBarSetAcc(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetFGColorFromParent(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetShadow(), MObjectSetText(), MObjectSetTransparency(), MPagedFormSetActivePage(), MTableFormSetColAlign(), MTableFormSetRowAlign(), MTopAttach(), PLOTIOIS, PLOTIOIS_S, PLOTRES, PLOTRES_S, PLOTSLANT, PLOTSLANT_S, PLOTVARY, PLOTVARY_S, RIGHT_ALIGN, TOP_ALIGN, True, UNDEF_ALIGN, WS_NONE, WS_SHADOW_IN, and WS_SHADOW_OUT.

Referenced by DOASProcCB().

2267 {
2268 
2269  MOBJECT sh;
2270 
2271  MOBJECT _menu000;
2272 
2273  MOBJECT _colform000;
2274  MOBJECT _rowform002;
2275  MOBJECT _rowform003;
2276  MOBJECT _rowform004;
2277  MOBJECT _rowform005;
2278  MOBJECT _rowform009;
2279  MOBJECT _rowform013;
2280  MOBJECT _rowform017;
2281  MOBJECT _rowform021;
2282  MOBJECT _rowform025;
2283  MOBJECT _rowform029;
2284  MOBJECT _rowform033;
2285  MOBJECT _rowform037;
2286 
2287 
2288  MOBJECT _tabform000;
2289 
2290  MOBJECT _tablefrm004;
2291  MOBJECT _tablefrm005;
2292  MOBJECT _tablefrm014;
2293  MOBJECT _tablefrm023;
2294 
2295 
2296  MOBJECT _label008;
2297  MOBJECT _label009;
2298  MOBJECT _label010;
2299  MOBJECT _label011;
2300  MOBJECT _label012;
2301  MOBJECT _label013;
2302  MOBJECT _label014;
2303  MOBJECT _label015;
2304  MOBJECT _label016;
2305  MOBJECT _label017;
2306  MOBJECT _label018;
2307  MOBJECT _label019;
2308  MOBJECT _label020;
2309  MOBJECT _label021;
2310  MOBJECT _label022;
2311  MOBJECT _label023;
2312 
2313 
2314  MOBJECT _label174;
2315  MOBJECT _label175;
2316  MOBJECT _label176;
2317  MOBJECT _label177;
2318  MOBJECT _label178;
2319 
2320  sh = MCreateShell("DOAS Processing", 0);
2321  MObjectSetBackgroundRGB(sh, 80, 80, 80);
2322 
2323  {
2324  MOBJECT pd;
2325  MENU_ITEM item;
2326 
2327  _menu000 = MCreateMenuBar(sh, HELV_SMALL);
2328  MMenuBarSetAcc(_menu000, F10);
2329  pd = MCreateMenu(_menu000, "File");
2330  item = MMenuAddItem(pd, "Load...", NULL, NULL);
2331 
2332  item = MMenuAddItem(pd, "Exit", (MENU_ITEM_CB) CloseMObjCB, (void *) sh);
2333 
2334 
2335 
2336  pd = MCreateMenu(_menu000, "Analisys");
2337  item = MMenuAddItem(pd, "Load Io", (MENU_ITEM_CB) LoadIoCB, (void *) 0);
2338  item = MMenuAddItem(pd, "DOAS Processing", NULL, NULL);
2339  pd = MCreateMenu(_menu000, "Utility");
2340  item = MMenuAddItem(pd, "Print", NULL, NULL);
2341  pd = MCreateMenu(_menu000, "Help");
2342  item = MMenuAddItem(pd, "Help Topics", NULL, NULL);
2343  item = MMenuAddItem(pd, "About", NULL, NULL);
2344  }
2345  MTopAttach(_menu000, F_ATT_FORM, 1, NULL);
2346  MLeftAttach(_menu000, F_ATT_FORM, 1, NULL);
2347  MObjectSetForegroundRGB(_menu000, 255, 255, 0);
2348 
2349  _rowform002 = MCreateRowForm(sh);
2350  MTopAttach(_rowform002, F_ATT_OBJ, 1, _menu000);
2351  MObjectAlign(_rowform002, CENTER_ALIGN, TOP_ALIGN);
2352  MObjectSetBackgroundRGB(_rowform002, 80, 80, 80);
2353  MObjectSetResize(_rowform002, True, True);
2354 
2355  _tablefrm004 = MCreateTableForm(_rowform002, 7);
2356  MFormSetSpacing(_tablefrm004, 1);
2357  MObjectSetBackgroundRGB(_tablefrm004, 80, 80, 80);
2358 
2359  _label008 = MCreateLabel(_tablefrm004, "Measurement Header", HELV_SMALL);
2360  MObjectSetForegroundRGB(_label008, 255, 255, 0);
2361 
2362  _colform000 = MCreateColForm(_rowform002);
2363  MFormSetSpacing(_colform000, 1);
2364  MObjectSetBackgroundRGB(_colform000, 80, 80, 80);
2365  MObjectSetResize(_colform000, True, True);
2366 
2367  _rowform003 = MCreateRowForm(_colform000);
2368  MFormSetSpacing(_rowform003, 1);
2369  MObjectAlign(_rowform003, LEFT_ALIGN, TOP_ALIGN);
2370  MObjectSetBackgroundRGB(_rowform003, 80, 80, 80);
2371  MObjectSetResize(_rowform003, False, False);
2372 
2373  _label009 = MCreateLabel(_rowform003, "Incremental\nParameters", HELV_MEDIUM);
2374  MObjectAlign(_label009, CENTER_ALIGN, TOP_ALIGN);
2375  MObjectSetForegroundRGB(_label009, 255, 255, 0);
2376  MObjectSetBackgroundRGB(_label009, 60, 140, 190);
2377  MObjectSetTransparency(_label009, 0);
2378  MObjectSetShadow(_label009, WS_SHADOW_OUT, 1, 0);
2379  MObjectSetResize(_label009, False, False);
2380 
2381  _tablefrm005 = MCreateTableForm(_rowform003, 1);
2382  MFormSetSpacing(_tablefrm005, 1);
2383  MTableFormSetColAlign(_tablefrm005, 0, LEFT_ALIGN);
2384  MObjectAlign(_tablefrm005, LEFT_ALIGN, TOP_ALIGN);
2385  MObjectSetBackgroundRGB(_tablefrm005, 80, 80, 80);
2386  MObjectSetResize(_tablefrm005, False, False);
2387 
2388  _label010 = MCreateLabel(_tablefrm005, "Iteration #:", HELV_SMALL);
2389  MObjectAlign(_label010, LEFT_ALIGN, TOP_ALIGN);
2390  MObjectSetForegroundRGB(_label010, 255, 255, 0);
2391  MObjectSetResize(_label010, False, False);
2392 
2393  _label011 = MCreateLabel(_tablefrm005, "0", HELV_SMALL);
2394  MLabelSetAlignment(_label011, RIGHT_ALIGN);
2395  MObjectAlign(_label011, RIGHT_ALIGN, TOP_ALIGN);
2396  MObjectSetForegroundRGB(_label011, 255, 255, 0);
2397  MObjectSetBackgroundRGB(_label011, 117, 117, 169);
2398  MObjectSetTransparency(_label011, 0);
2399  MObjectSetShadow(_label011, WS_SHADOW_IN, 1, 0);
2400 
2401  _label012 = MCreateLabel(_tablefrm005, "Shift:", HELV_SMALL);
2402  MObjectAlign(_label012, LEFT_ALIGN, TOP_ALIGN);
2403  MObjectSetForegroundRGB(_label012, 255, 255, 0);
2404  MObjectSetResize(_label012, False, False);
2405 
2406  _label013 = MCreateLabel(_tablefrm005, "+0.0000E+00", HELV_SMALL);
2407  MObjectSetForegroundRGB(_label013, 255, 255, 0);
2408  MObjectSetBackgroundRGB(_label013, 117, 117, 169);
2409  MObjectSetTransparency(_label013, 0);
2410  MObjectSetShadow(_label013, WS_SHADOW_IN, 1, 0);
2411  MObjectSetResize(_label013, False, False);
2412 
2413  _label014 = MCreateLabel(_tablefrm005, "Eps.Shift:", HELV_SMALL);
2414  MObjectAlign(_label014, LEFT_ALIGN, TOP_ALIGN);
2415  MObjectSetForegroundRGB(_label014, 255, 255, 0);
2416  MObjectSetResize(_label014, False, False);
2417 
2418  _label015 = MCreateLabel(_tablefrm005, "+0.0000E+00", HELV_SMALL);
2419  MObjectSetForegroundRGB(_label015, 255, 255, 0);
2420  MObjectSetBackgroundRGB(_label015, 117, 117, 169);
2421  MObjectSetTransparency(_label015, 0);
2422  MObjectSetShadow(_label015, WS_SHADOW_IN, 1, 0);
2423  MObjectSetResize(_label015, False, False);
2424 
2425  _label016 = MCreateLabel(_tablefrm005, "Stretch_0:", HELV_SMALL);
2426  MObjectSetForegroundRGB(_label016, 255, 255, 0);
2427  MObjectSetResize(_label016, False, False);
2428 
2429  _label017 = MCreateLabel(_tablefrm005, "+0.0000E+00", HELV_SMALL);
2430  MObjectSetForegroundRGB(_label017, 255, 255, 0);
2431  MObjectSetBackgroundRGB(_label017, 117, 117, 169);
2432  MObjectSetTransparency(_label017, 0);
2433  MObjectSetShadow(_label017, WS_SHADOW_IN, 1, 0);
2434  MObjectSetResize(_label017, False, False);
2435 
2436  _label018 = MCreateLabel(_tablefrm005, "Eps.Stretch_0:", HELV_SMALL);
2437  MObjectSetForegroundRGB(_label018, 255, 255, 0);
2438  MObjectSetResize(_label018, False, False);
2439 
2440  _label019 = MCreateLabel(_tablefrm005, "+0.0000E+00", HELV_SMALL);
2441  MObjectSetForegroundRGB(_label019, 255, 255, 0);
2442  MObjectSetBackgroundRGB(_label019, 117, 117, 169);
2443  MObjectSetTransparency(_label019, 0);
2444  MObjectSetShadow(_label019, WS_SHADOW_IN, 1, 0);
2445  MObjectSetResize(_label019, False, False);
2446 
2447  _label020 = MCreateLabel(_tablefrm005, "Stretch_1:", HELV_SMALL);
2448  MObjectSetForegroundRGB(_label020, 255, 255, 0);
2449  MObjectSetResize(_label020, False, False);
2450 
2451  _label021 = MCreateLabel(_tablefrm005, "+0.0000E+00", HELV_SMALL);
2452  MObjectSetForegroundRGB(_label021, 255, 255, 0);
2453  MObjectSetBackgroundRGB(_label021, 117, 117, 169);
2454  MObjectSetTransparency(_label021, 0);
2455  MObjectSetShadow(_label021, WS_SHADOW_IN, 1, 0);
2456  MObjectSetResize(_label021, False, False);
2457 
2458  _label022 = MCreateLabel(_tablefrm005, "Eps.Stretch_1:", HELV_SMALL);
2459  MObjectSetForegroundRGB(_label022, 255, 255, 0);
2460  MObjectSetResize(_label022, False, False);
2461 
2462  _label023 = MCreateLabel(_tablefrm005, "+0.0000E+00", HELV_SMALL);
2463  MObjectSetForegroundRGB(_label023, 255, 255, 0);
2464  MObjectSetBackgroundRGB(_label023, 117, 117, 169);
2465  MObjectSetTransparency(_label023, 0);
2466  MObjectSetShadow(_label023, WS_SHADOW_IN, 1, 0);
2467  MObjectSetResize(_label023, False, False);
2468 
2469  _rowform004 = MCreateRowForm(_colform000);
2470  MFormSetSpacing(_rowform004, 4);
2471  MObjectSetBackgroundRGB(_rowform004, 197, 197, 144);
2472  MObjectSetShadow(_rowform004, WS_NONE, 0, 0);
2473  MObjectSetResize(_rowform004, True, True);
2474 
2475  _tabform000 = MCreateTabbedRowForm(_rowform004, 5, HELV_SMALL);
2476  MFormSetSpacing(_tabform000, 1);
2477  MObjectAlign(_tabform000, CENTER_ALIGN, TOP_ALIGN);
2478  MObjectSetForegroundRGB(_tabform000, 255, 255, 0);
2479  MObjectSetBackgroundRGB(_tabform000, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2480  MObjectSetShadow(_tabform000, WS_SHADOW_IN, 1, 0);
2481  MObjectSetResize(_tabform000, True, True);
2482 
2483  MPagedFormSetActivePage(_tabform000, 0);
2484 
2485 
2486 /*-----------------------------------------------------*/
2487 /******** START PLOT SECTION ******************/
2488 
2489  //graph for Io/Is
2490  MObjectSetText(_tabform000, "Io_Is");
2491 
2492  _rowform005 = MCreateRowForm(_tabform000);
2493  MFormSetSpacing(_rowform005, 1);
2494  MObjectAlign(_rowform005, CENTER_ALIGN, TOP_ALIGN);
2495  MObjectSetFGColorFromParent(_rowform005, False);
2496  MObjectSetShadow(_rowform005, WS_SHADOW_IN, 1, 0);
2497  MObjectSetResize(_rowform005, True, True);
2498 
2499  DOAS_Plot(0, PLOTIOIS, _rowform005, "Io -> Blu Line; Is -> Red Line" ,&DOAS);
2500 
2501  MPagedFormSetActivePage(_tabform000, 1);
2502 
2503 
2504  MObjectSetText(_tabform000, "VarY_DCS");
2505 
2506  _rowform009 = MCreateRowForm(_tabform000);
2507  MObjectAlign(_rowform009, CENTER_ALIGN, TOP_ALIGN);
2508  MObjectSetFGColorFromParent(_rowform009, False);
2509  MObjectSetResize(_rowform009, True, True);
2510 
2511  DOAS_Plot(0, PLOTVARY, _rowform009, "VarY_DCS" ,&DOAS);
2512 
2513 
2514  MPagedFormSetActivePage(_tabform000, 2);
2515 
2516  MObjectSetText(_tabform000, "Residual");
2517 
2518  _rowform013 = MCreateRowForm(_tabform000);
2519  MObjectAlign(_rowform013, CENTER_ALIGN, TOP_ALIGN);
2520  MObjectSetFGColorFromParent(_rowform013, False);
2521  MObjectSetResize(_rowform013, True, True);
2522 
2523  DOAS_Plot(0, PLOTRES, _rowform013, "Residual" ,&DOAS);
2524 
2525 
2526  MPagedFormSetActivePage(_tabform000, 3);
2527 
2528  MObjectSetText(_tabform000, "Slant_SZA");
2529 
2530  _rowform017 = MCreateRowForm(_tabform000);
2531  MObjectAlign(_rowform017, CENTER_ALIGN, TOP_ALIGN);
2532  MObjectSetFGColorFromParent(_rowform017, False);
2533  MObjectSetResize(_rowform017, True, True);
2534 
2535  DOAS_Plot(1, PLOTSLANT, _rowform017, "Slant_SZA" ,&DOAS);
2536 
2537 
2538  MPagedFormSetActivePage(_tabform000, 4);
2539 
2540  MObjectSetText(_tabform000, "Plot All");
2541 
2542  _tablefrm014 = MCreateTableForm(_tabform000, 2);
2543  MObjectAlign(_tablefrm014, CENTER_ALIGN, TOP_ALIGN);
2544  MObjectSetFGColorFromParent(_tablefrm014, False);
2545  MObjectSetResize(_tablefrm014, True, True);
2546 
2547  _rowform021 = MCreateRowForm(_tablefrm014);
2548  MFormSetSpacing(_rowform021, 1);
2549  MObjectSetFGColorFromParent(_rowform021, False);
2550  MObjectSetShadow(_rowform021, WS_SHADOW_IN, 1, 0);
2551  MObjectSetResize(_rowform021, True, True);
2552 
2553 
2554  DOAS_Plot(0, PLOTIOIS_S, _rowform021, "Io -> Blu Line; Is -> Red Line" ,&DOAS);
2555 
2556 
2557  _rowform025 = MCreateRowForm(_tablefrm014);
2558  MObjectSetFGColorFromParent(_rowform025, False);
2559  MObjectSetShadow(_rowform025, WS_SHADOW_IN, 1, 0);
2560  MObjectSetResize(_rowform025, True, True);
2561 
2562  DOAS_Plot(0, PLOTVARY_S, _rowform025, "VarY -> Blu Line" ,&DOAS);
2563 
2564 
2565  _rowform029 = MCreateRowForm(_tablefrm014);
2566  MObjectSetFGColorFromParent(_rowform029, False);
2567  MObjectSetShadow(_rowform029, WS_SHADOW_IN, 1, 0);
2568  MObjectSetResize(_rowform029, True, True);
2569 
2570  DOAS_Plot(0, PLOTRES_S, _rowform029, "Residual" ,&DOAS);
2571 
2572 
2573  _rowform033 = MCreateRowForm(_tablefrm014);
2574  MObjectSetFGColorFromParent(_rowform033, False);
2575  MObjectSetShadow(_rowform033, WS_SHADOW_IN, 1, 0);
2576  MObjectSetResize(_rowform033, True, True);
2577 
2578  DOAS_Plot(1, PLOTSLANT_S, _rowform033, "Slant_SZA" ,&DOAS);
2579 /******** END PLOT SECTION ******************/
2580 /*-----------------------------------------------------*/
2581  MPagedFormSetActivePage(_tabform000, 0);
2582 
2583  _rowform037 = MCreateRowForm(_colform000);
2584  MFormSetSpacing(_rowform037, 1);
2585  MObjectAlign(_rowform037, LEFT_ALIGN, TOP_ALIGN);
2586  MObjectSetBackgroundRGB(_rowform037, 80, 80, 80);
2587  MObjectSetResize(_rowform037, False, False);
2588 
2589  _label174 = MCreateLabel(_rowform037, "Results", HELV_MEDIUM);
2590  MObjectAlign(_label174, CENTER_ALIGN, TOP_ALIGN);
2591  MObjectSetForegroundRGB(_label174, 255, 255, 0);
2592  MObjectSetBackgroundRGB(_label174, 60, 140, 190);
2593  MObjectSetTransparency(_label174, 0);
2594  MObjectSetShadow(_label174, WS_SHADOW_OUT, 1, 0);
2595  MObjectSetResize(_label174, False, False);
2596 
2597  _tablefrm023 = MCreateTableForm(_rowform037, 2);
2598  MTableFormSetRowAlign(_tablefrm023, 0, TOP_ALIGN);
2599  MObjectAlign(_tablefrm023, UNDEF_ALIGN, TOP_ALIGN);
2600  MObjectSetBackgroundRGB(_tablefrm023, 80, 80, 80);
2601  MObjectSetResize(_tablefrm023, False, True);
2602 
2603  _label175 = MCreateLabel(_tablefrm023, "SCD_", HELV_SMALL);
2604  MObjectAlign(_label175, LEFT_ALIGN, TOP_ALIGN);
2605  MObjectSetForegroundRGB(_label175, 255, 255, 0);
2606  MObjectSetResize(_label175, False, True);
2607 
2608  _label176 = MCreateLabel(_tablefrm023, "0.0000E+00", HELV_SMALL);
2609  MObjectAlign(_label176, RIGHT_ALIGN, TOP_ALIGN);
2610  MObjectSetForegroundRGB(_label176, 255, 255, 0);
2611  MObjectSetBackgroundRGB(_label176, 117, 117, 169);
2612  MObjectSetTransparency(_label176, 0);
2613  MObjectSetShadow(_label176, WS_SHADOW_IN, 1, 0);
2614 
2615  _label177 = MCreateLabel(_tablefrm023, "Err.", HELV_SMALL);
2616  MObjectSetForegroundRGB(_label177, 255, 255, 0);
2617 
2618  _label178 = MCreateLabel(_tablefrm023, "00.00%", HELV_SMALL);
2619  MObjectSetForegroundRGB(_label178, 255, 255, 0);
2620  MObjectSetBackgroundRGB(_label178, 117, 117, 169);
2621  MObjectSetTransparency(_label178, 0);
2622  MObjectSetShadow(_label178, WS_SHADOW_IN, 1, 0);
2623 
2624 
2625  return sh;
2626 }
#define RIGHT_ALIGN
Definition: Mguidefs.h:916
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
#define WS_NONE
Definition: Mguidefs.h:956
#define WS_SHADOW_IN
Definition: Mguidefs.h:958
void MMenuBarSetAcc(MOBJECT menu, int acc)
void MObjectSetShadow(MOBJECT obj, int type, int in, int out)
void(* MENU_ITEM_CB)(MENU_ITEM item, MVALUE status, void *ad)
Definition: Mguidefs.h:1468
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
MENU_ITEM MMenuAddItem(MOBJECT pd, const char *item, MENU_ITEM_CB cb, void *ad)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
#define F10
Definition: KEYCODES.H:346
#define False
Definition: Mguidefs.h:236
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
void * MENU_ITEM
Definition: Mguidefs.h:1418
#define PLOTRES
Definition: DOASdef.h:74
void MTableFormSetColAlign(MOBJECT form, int col, int al)
#define UNDEF_ALIGN
Definition: Mguidefs.h:920
#define PLOTIOIS_S
Definition: DOASdef.h:76
void MObjectSetText(MOBJECT obj, const char *text)
#define PLOTSLANT_S
Definition: DOASdef.h:79
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
doas DOAS
Definition: DOAS_FullProj.c:44
#define PLOTSLANT
Definition: DOASdef.h:75
#define CENTER_ALIGN
Definition: Mguidefs.h:917
void MObjectSetFGColorFromParent(MOBJECT obj, int true_false)
#define PLOTVARY_S
Definition: DOASdef.h:77
void LoadIoCB(MOBJECT p, void *od, void *ad)
#define HELV_SMALL
Definition: Mguidefs.h:881
void CloseMObjCB(MOBJECT p, void *od, void *ad)
MOBJECT MCreateColForm(MOBJECT parent)
void MLeftAttach(MOBJECT child, int att_type, int off, MOBJECT obj)
MOBJECT MCreateShell(const char *title, int flags)
short DB_BG[3]
Default Background Color.
palette DPAL
Definition: DOAS_FullProj.c:36
void MTableFormSetRowAlign(MOBJECT form, int row, int al)
#define PLOTIOIS
Definition: DOASdef.h:72
void MLabelSetAlignment(MOBJECT p, int align)
#define F_ATT_FORM
Definition: Mguidefs.h:1107
void MPagedFormSetActivePage(MOBJECT form, int page)
void MFormSetSpacing(MOBJECT p, int offset)
#define PLOTRES_S
Definition: DOASdef.h:78
#define F_ATT_OBJ
Definition: Mguidefs.h:1108
void DOAS_Plot(int mod, int plottype, MOBJECT obj, char *text, struct doas *pdoas)
void * MOBJECT
Definition: Mguidefs.h:192
#define True
Definition: Mguidefs.h:235
#define LEFT_ALIGN
Definition: Mguidefs.h:915
MOBJECT MCreateMenuBar(MOBJECT parent, MTFont font)
#define HELV_MEDIUM
Definition: Mguidefs.h:882
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateRowForm(MOBJECT parent)
void MTopAttach(MOBJECT child, int att_type, int off, MOBJECT obj)
#define TOP_ALIGN
Definition: Mguidefs.h:918
MOBJECT MCreateTabbedRowForm(MOBJECT parent, int npage, MTFont f)
#define PLOTVARY
Definition: DOASdef.h:73
MOBJECT MCreateMenu(MOBJECT menu, const char *text)
#define WS_SHADOW_OUT
Definition: Mguidefs.h:957
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ MDCreateDOAS_SetupSh()

MOBJECT MDCreateDOAS_SetupSh ( void  )

Definition at line 2893 of file DOAS_FullProj.c.

References CENTER_ALIGN, CloseMObjCB(), palette::DB_BG, DOAS_SetupPagedForm(), DOASTogButCB(), False, FIXED_SMALL, das::Gui, HELV_SMALL, lbl, LEFT_ALIGN, MCreateColForm(), MCreateLabel(), MCreatePButton(), MCreateRowForm(), MCreateShell(), MCreateTabbedColForm(), MCreateTButton(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetCompositeWidth(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetShadow(), MObjectSetText(), MObjectSetTransparency(), MPagedFormSetActivePage(), MPButtonSetCallback(), MTButtonSetCallback(), gui::PushButt, TOP_ALIGN, True, wl, pushbutt::Wl, doas::WlTabFrm, doas::WlTogButt, and WS_SHADOW_OUT.

Referenced by DOASSetupCB().

2894 {
2895 
2896  MOBJECT sh, pb, colfrm, rowfrm,lbl;
2897  int i;
2898  char buff[16];
2899 
2900 
2901 
2902 
2903  sh = MCreateShell("DOAS Setup", 0);
2904  MObjectSetBackgroundRGB(sh, 80, 80, 80);
2905  MObjectSetResize(sh, True, True);
2906 
2907  colfrm = MCreateColForm(sh);
2908  MObjectSetBackgroundRGB(colfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2910  MObjectSetResize(colfrm, True, True);
2911 
2912  rowfrm = MCreateRowForm(colfrm);
2913  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2914  MObjectSetResize(rowfrm, False, False);
2916 
2917  lbl = MCreateLabel(rowfrm, "Select the Spectral\nRange to be processed", HELV_SMALL);
2918  MObjectSetForegroundRGB(lbl, 255, 255, 0);
2919  MObjectSetBackgroundRGB(lbl, 120, 177, 218);
2920  MObjectSetTransparency(lbl, 0);
2921  MObjectSetShadow(lbl, WS_SHADOW_OUT, 1, 0);
2923 
2924 // tb = MCreateTableForm(rowfrm, 2);
2925 // MObjectSetForegroundRGB(tb, 255, 255, 0);
2926 // MObjectSetBackgroundRGB(tb, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2927 
2928  for (i=0; i<(sizeof DAS.Gui.PushButt.Wl / sizeof DAS.Gui.PushButt.Wl[0]); i++)
2929  {
2930  itoa(wl[i], buff, 10);
2931  DOAS.WlTogButt[i] = MCreateTButton(rowfrm, buff, HELV_SMALL);
2932  //DOAS.WlTogButt[i] = MCreateTButton(rowfrm, Wl_Code[i], HELV_SMALL);
2933  MObjectSetForegroundRGB(DOAS.WlTogButt[i], 255, 255, 0);
2934 // MObjectSetBackgroundRGB(tbutt, 117, 117, 169);
2939  }
2940 
2941  rowfrm = MCreateRowForm(colfrm);
2942  MObjectSetBackgroundRGB(rowfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2943  MObjectSetResize(rowfrm, True, True);
2944  MObjectAlign(rowfrm, LEFT_ALIGN, TOP_ALIGN);
2945 
2946 
2947  DOAS.WlTabFrm = MCreateTabbedColForm(rowfrm, sizeof DAS.Gui.PushButt.Wl / sizeof DAS.Gui.PushButt.Wl[0], FIXED_SMALL);
2948  MObjectSetForegroundRGB(DOAS.WlTabFrm, 255, 255, 255);
2949  MObjectSetBackgroundRGB(DOAS.WlTabFrm, 96, 132, 152);
2953 
2954 
2955  for (i=0; i<(sizeof DAS.Gui.PushButt.Wl / sizeof DAS.Gui.PushButt.Wl[0]); i++)
2956  {
2958  itoa(wl[i], buff, 10);
2959  //MObjectSetText(DOAS.WlTabFrm, Wl_Code[i]);
2960  MObjectSetText(DOAS.WlTabFrm, buff);
2962 
2963 
2965 
2966  }
2967  /* Start Activation and creation of page 0 0000000000000*/
2968  /* 00000000000000000000000000000000000000000000000000000000*/
2969 
2970 
2971 
2972 
2973  colfrm = MCreateColForm(sh);
2974  MObjectSetBackgroundRGB(colfrm, DPAL.DB_BG[0], DPAL.DB_BG[1], DPAL.DB_BG[2]);
2975  MObjectAlign(colfrm, LEFT_ALIGN, TOP_ALIGN);
2976 
2977  pb = MCreatePButton(colfrm, "Apply", HELV_SMALL);
2978  MObjectSetForegroundRGB(pb, 255, 255, 0);
2979  MObjectSetBackgroundRGB(pb, 124, 173, 71);
2980 
2981  pb = MCreatePButton(colfrm, "Store", HELV_SMALL);
2982  MObjectSetForegroundRGB(pb, 255, 255, 0);
2983  MObjectSetBackgroundRGB(pb, 124, 173, 71);
2984 
2985  pb = MCreatePButton(colfrm, "Cancel", HELV_SMALL);
2986  MPButtonSetCallback(pb, CloseMObjCB, (void *) sh);
2987  MObjectSetForegroundRGB(pb, 255, 255, 0);
2988  MObjectSetBackgroundRGB(pb, 124, 173, 71);
2989 
2990 
2991  return sh;
2992 }
MOBJECT WlTabFrm
Definition: DOASdef.h:46
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
gui Gui
Graphic User Interface Structure.
MOBJECT MCreateTButton(MOBJECT parent, const char *text, MTFont font)
MOBJECT lbl
Definition: DFileMan.c:42
void MObjectSetShadow(MOBJECT obj, int type, int in, int out)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
#define False
Definition: Mguidefs.h:236
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
MOBJECT WlTogButt[21]
Definition: DOASdef.h:44
void MObjectSetText(MOBJECT obj, const char *text)
void DOASTogButCB(MOBJECT p, MVALUE od, void *ad)
void MTButtonSetCallback(MOBJECT button, OBJ_VALUE_CB cb, void *data)
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
doas DOAS
Definition: DOAS_FullProj.c:44
#define CENTER_ALIGN
Definition: Mguidefs.h:917
#define HELV_SMALL
Definition: Mguidefs.h:881
void DOAS_SetupPagedForm(int c, struct doas *pdoas)
#define FIXED_SMALL
Definition: Mguidefs.h:878
MOBJECT MCreateTabbedColForm(MOBJECT parent, int npage, MTFont f)
MOBJECT Wl[18]
Wavelength Buttons.
void CloseMObjCB(MOBJECT p, void *od, void *ad)
MOBJECT MCreateColForm(MOBJECT parent)
pushbutt PushButt
Push buttons.
MOBJECT MCreateShell(const char *title, int flags)
short DB_BG[3]
Default Background Color.
palette DPAL
Definition: DOAS_FullProj.c:36
void(* OBJ_VALUE_CB)(MOBJECT obj, MVALUE value, void *ad)
Definition: Mguidefs.h:1458
int wl[]
WaveLength definition - for SD_Grating.
Definition: DAS_Spat.c:182
void MPagedFormSetActivePage(MOBJECT form, int page)
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
void MObjectSetCompositeWidth(MOBJECT obj, int w)
das DAS
Definition: DOAS_FullProj.c:47
void * MOBJECT
Definition: Mguidefs.h:192
#define True
Definition: Mguidefs.h:235
#define LEFT_ALIGN
Definition: Mguidefs.h:915
void MObjectSetTransparency(MOBJECT obj, CARD8 level)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateRowForm(MOBJECT parent)
#define TOP_ALIGN
Definition: Mguidefs.h:918
#define WS_SHADOW_OUT
Definition: Mguidefs.h:957
+ 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:

§ MDCreateSolPosCalc()

MOBJECT MDCreateSolPosCalc ( void  )

§ PlotDOAS()

void PlotDOAS ( MOBJECT  obj)

Definition at line 2038 of file DOAS_FullProj.c.

References MObjectRedraw().

2039 {
2040 
2041  MObjectRedraw(obj);
2042 /* if (mode)
2043  MDrawAreaSetExposeCallback(BIL.DPLOT.drawapl, DAExOnLineCB, NULL);
2044  else
2045  MDrawAreaSetExposeCallback(BIL.DPLOT.drawapl, DrawAreaExposeCB, NULL);
2046 */
2047 // MDrawAreaSetExposeCallback(obj, DrawAreaPlotCB, NULL);
2048  MObjectRedraw(obj);
2049 
2050 }
void MObjectRedraw(MOBJECT obj)
+ Here is the call graph for this function:

§ PlotDOAS_Spectra()

void PlotDOAS_Spectra ( int  mod,
MOBJECT  obj,
unsigned short  plotmat[],
int  idx,
int  idy,
double  costx,
double  costy,
int  min,
int  max,
int  ox,
int  oy 
)

Definition at line 2056 of file DOAS_FullProj.c.

2059 {
2060 
2061 //void PlotSpectrum(MOBJECT obj, MOBJECT pb[], MIMAGE mim, unsigned short plotmat[], int idx,
2062 // int idy, unsigned long pe[], double costx, double costy, int min, int max,
2063 // int ox, int oy, int bp, int hlb, int hla)
2064 
2065  int t, j;
2066  int X1, X, Y1, Y;
2067  t=2;
2068  for(j = 0; j < idx ; j++)
2069  {
2070  X = (int) (ox + (j * costx));
2071  Y = (int) (oy - abs((int)((double)(plotmat[t * idx + j] - min) / costy)));
2072  X1 = (int) (ox + (j + 1) * costx);
2073  Y1 = (int) (oy - abs((int)((double)(plotmat[t * idx + j + 1] - min) / costy)));
2074 // MDrawLine(obj, X, Y, X1, Y1, pe[t]);
2075  }
2076 
2077 
2078 
2079 }

§ RBEditListCB()

void RBEditListCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 267 of file DOAS_FullProj.c.

References listf::edit, MRButtonGetActivationStatus(), listf::subdir, and listf::type.

Referenced by MDCreateBuildList_Sh().

268 {
269  int er = 0;
270  int c = (int) ad;
271 
273 
274  if(er)
275  {
276  switch (c)
277  {
278  case 0:
279  LISTF.edit = 0;
280  break;
281  case 1:
282  LISTF.edit = 1;
283  break;
284  case 2:
285  LISTF.type = 0; // compact list
286  break;
287  case 3:
288  LISTF.type = 1; // Detailed List
289  break;
290  case 4:
291  LISTF.subdir = 1; // list files in subdir
292  break;
293  case 5:
294  LISTF.subdir = 0; // NO List files in subdir
295  break;
296 
297  }
298  }
299 
300 }
int edit
Definition: DOASdef.h:56
int MRButtonGetActivationStatus(MOBJECT o)
listf LISTF
Definition: DOAS_FullProj.c:45
int subdir
Definition: DOASdef.h:59
static double p
Definition: SOLPOS.C:131
int type
Definition: DOASdef.h:58
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ RBFormatCB()

void RBFormatCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 1507 of file DOAS_FullProj.c.

References BDIR, BDRIVE, BFILE, BFILELIST, doas::FMMode, and MRButtonGetActivationStatus().

Referenced by MDCreateFormat_Sh().

1508 {
1509  int er = 0;
1510  int c = (int) ad;
1511 
1512 
1514 
1515  if(er)
1516  {
1517  switch (c)
1518  {
1519  case 0:
1520  DOAS.FMMode = BFILE;
1521  break;
1522  case 1:
1523  DOAS.FMMode = BFILELIST;
1524  break;
1525  case 2:
1526  DOAS.FMMode = BDIR;
1527  break;
1528  case 3:
1529  DOAS.FMMode = BDRIVE;
1530  break;
1531 
1532 
1533  }
1534  }
1535 
1536 
1537 }
#define BFILE
Definition: DOASdef.h:4
#define BDRIVE
Definition: DOASdef.h:7
#define BFILELIST
Definition: DOASdef.h:5
int MRButtonGetActivationStatus(MOBJECT o)
doas DOAS
Definition: DOAS_FullProj.c:44
#define BDIR
Definition: DOASdef.h:6
static double p
Definition: SOLPOS.C:131
int FMMode
File manager Mode (browse files, list of file, directory, drive)
Definition: DOASdef.h:35
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ RBListFileCB()

void RBListFileCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 237 of file DOAS_FullProj.c.

References MRButtonGetActivationStatus(), SBDATE, SBDIM, SBNAME, SBTYPE, and listf::sortmode.

Referenced by MDCreateBuildList_Sh().

238 {
239  int er = 0;
240  int c = (int) ad;
241 
242 
244 
245  if(er)
246  {
247  switch (c)
248  {
249  case 0:
251  break;
252  case 1:
254  break;
255  case 2:
256  LISTF.sortmode = SBDIM;
257  break;
258  case 3:
260  break;
261 
262 
263  }
264  }
265 }
#define SBNAME
Definition: DOASdef.h:9
#define SBTYPE
Definition: DOASdef.h:12
int MRButtonGetActivationStatus(MOBJECT o)
listf LISTF
Definition: DOAS_FullProj.c:45
#define SBDIM
Definition: DOASdef.h:11
int sortmode
Definition: DOASdef.h:57
static double p
Definition: SOLPOS.C:131
#define SBDATE
Definition: DOASdef.h:10
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ ResumeCB()

void ResumeCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 174 of file DOAS_FullProj.c.

References MMessageDialog().

Referenced by MDCreateDOAS_MainSh().

175 {
176 
177  MMessageDialog("DAS information", "The procedure is not yet implemented!!", " Ok ", NULL);
178 }
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ ShStCB()

void ShStCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 154 of file DOAS_FullProj.c.

References MMessageDialog().

Referenced by MDCreateDOAS_MainSh().

155 {
156 
157  MMessageDialog("DAS information", "The procedure is not yet implemented!!", " Ok ", NULL);
158 
159 }
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ SunCalcCB()

void SunCalcCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 148 of file DOAS_FullProj.c.

References D_SunCalc().

Referenced by MDCreateDOAS_MainSh().

149 {
150 
151  D_SunCalc();
152 
153 }
void D_SunCalc(void)
Sun Calculator Callback.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ ViewCB()

void ViewCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 121 of file DOAS_FullProj.c.

References ViewPlot().

Referenced by MDCreateDOAS_MainSh().

122 {
123 
124  ViewPlot(0); //OffLine Plot
125 
126 }
int ViewPlot(int mod)
Create the plot shell. Procedure that build the plot shell for the data visualization.
Definition: Spat_Plot.c:3775
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ VitesaCB()

void VitesaCB ( MOBJECT  p,
void *  od,
void *  ad 
)

Definition at line 1804 of file DOAS_FullProj.c.

References MDCreatesh_vitesa(), and MShellRealize().

Referenced by MDCreateDOAS_MainSh().

1805 {
1806 
1807  MOBJECT shell;
1808  int er = 0;
1809 
1810  shell = MDCreatesh_vitesa();
1811  MShellRealize(shell);
1812 
1813 
1814 
1815 }
void MShellRealize(MOBJECT obj)
MOBJECT MDCreatesh_vitesa(void)
Definition: ViTES_1.c:295
void * MOBJECT
Definition: Mguidefs.h:192
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ WriteDataFile()

int WriteDataFile ( int  c,
char *  filed 
)

Definition at line 1119 of file DOAS_FullProj.c.

References BFILE, D_PrintBILSPH(), D_PrintBILSPH_BIN(), bil::DPLOT, doas::FMMode, IDX, IDY, d_view::ImatOrig, O_BINARY, and VRange().

Referenced by DatOrBinFormat().

1120 {
1121 
1122  int x, y, ft;
1123  FILE *fd;
1124  unsigned long info = 0;
1125 
1126  switch (c)
1127  {
1128  case 0: //BIN 2 ASCII
1129  fd = fopen(filed, "a");
1130  if(fd < 0) return 1;
1131 
1132  if (DOAS.FMMode == BFILE)
1133  VRange("Export as ASCII", 0);
1134 
1135  // Print on file the header
1136  D_PrintBILSPH(fd);
1137 
1138  for(y = 0; y < IDY; y++)
1139  {
1140  for(x = 0; x < IDX; x++)
1141  {
1142  if((x % 10) == 0)
1143  {
1144  if(y == 0 && x == 0)
1145  {
1146  }
1147  else
1148  fprintf(fd, "\n", NULL);
1149  }
1150  fprintf(fd, "%5u ", BIL.DPLOT.ImatOrig[y * IDX + x]);
1151  }
1152  if (DOAS.FMMode == BFILE)
1153  if((y % 40) == 0 && y > 0)
1154  VRange(NULL, (long) y * 100 / IDY);
1155 
1156  }
1157  fprintf(fd, "\n", NULL);
1158  fclose(fd);
1159  if (DOAS.FMMode == BFILE)
1160  VRange(NULL, 100);
1161 
1162  break;
1163  case 1: //Dat Ext
1164  ft = open(filed, O_WRONLY | O_BINARY | O_CREAT | O_APPEND, S_IWRITE);
1165  if(ft < 0) return(-1);
1166 
1167  // if(DI_FileExist(filedest))
1168  // {
1169  // er = MMessageDialog("DAS information", "The File already exist!!!. What do you want to do ?" , "Overwrite","Overwrite", "Specify different name","Cancel operation", NULL);
1170 
1171  // }
1172  if (DOAS.FMMode == BFILE)
1173  VRange("Export as Binary", 0);
1174  // Print on file the header
1175  D_PrintBILSPH_BIN(ft);
1176 
1177  for(x = 0; x < IDX; x++)
1178  {
1179  for(y = 0; y < IDY; y++)
1180  {
1181  info += write(ft, &BIL.DPLOT.ImatOrig[y * IDX + x], 2);
1182  }
1183  if (DOAS.FMMode == BFILE)
1184  if((x % 40) == 0 && x > 0)
1185  VRange(NULL, (long) x * 100 / IDX);
1186 
1187  }
1188 
1189  close(ft);
1190  if (DOAS.FMMode == BFILE)
1191  VRange(NULL, 100);
1192 
1193  break;
1194  }
1195 
1196  return 0;
1197 }
int IDX
Number of sensible horizontal pixels.
Definition: DAS_Spat.c:118
void D_PrintBILSPH_BIN(int fd)
Print on file the binary header of the measured spectrum.
Definition: Utils.c:540
#define BFILE
Definition: DOASdef.h:4
#define O_BINARY
Definition: Dildef.h:201
Definition: Dildef.h:423
doas DOAS
Definition: DOAS_FullProj.c:44
unsigned short * ImatOrig
Definition: bildef.h:180
d_view DPLOT
Definition: bildef.h:254
int IDY
Number of sensible vertical pixels.
Definition: DAS_Spat.c:119
void D_PrintBILSPH(FILE *fff)
Print Header.
Definition: Utils.c:581
C_DEF void VRange(char *str, int val)
int FMMode
File manager Mode (browse files, list of file, directory, drive)
Definition: DOASdef.h:35
bil BIL
Definition: DOAS_FullProj.c:42
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

§ WriteDOASConfig()

int WriteDOASConfig ( void  )

Definition at line 1649 of file DOAS_FullProj.c.

References MMessageDialog(), doas::RISDIR, and doas::SYSDIR.

Referenced by BrowseCB().

1650 {
1651  FILE *fs;
1652  char str[80];
1653 
1654  fs = fopen("DOAS\\DOAS.cfg", "w");
1655 
1656 
1657  if(fs == NULL)
1658  {
1659  MMessageDialog("DAS information", "Problems in opening file", " Ok ", NULL);
1660  return 1;
1661  }
1662 
1663 
1664 
1665  sprintf(str, "##############################################\n");
1666  fprintf(fs,str);
1667  sprintf(str, "# DOAS Config File #\n");
1668  fprintf(fs,str);
1669  sprintf(str, "##############################################\n");
1670  fprintf(fs,str);
1671  sprintf(str, "#--------------------------------------------#\n");
1672  fprintf(fs,str);
1673  sprintf(str, "# PLEASE DO NOT MODIFY #\n");
1674  fprintf(fs,str);
1675  sprintf(str, "#--------------------------------------------#\n");
1676  fprintf(fs,str);
1677  sprintf(str, "#DOAS System Directory-----------------------#\n");
1678  fprintf(fs,str);
1679  sprintf(str, "%s\n", DOAS.SYSDIR);
1680  fprintf(fs,str);
1681 
1682  sprintf(str, "#DOAS Results Directory-----------------------#\n");
1683  fprintf(fs,str);
1684  sprintf(str, "%s\n", DOAS.RISDIR);
1685  fprintf(fs,str);
1686 
1687 
1688 
1689  sprintf(str, "##############################################\n");
1690  fprintf(fs,str);
1691 
1692  fclose(fs);
1693 
1694  return 0;
1695 
1696 }
char RISDIR[_MAX_PATH]
DOAS results directory.
Definition: DOASdef.h:34
char SYSDIR[_MAX_PATH]
DOAS system directory.
Definition: DOASdef.h:33
doas DOAS
Definition: DOAS_FullProj.c:44
int MMessageDialog(const char *t, const char *msg, const char *btn1, const char *btn2,...)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

§ BIL

bil BIL

Definition at line 42 of file DOAS_FullProj.c.

§ ColFor_Sh

MOBJECT ColFor_Sh

Definition at line 57 of file DOAS_FullProj.c.

Referenced by ColumnFCB().

§ DAS

das DAS

Definition at line 47 of file DOAS_FullProj.c.

§ DOAS

doas DOAS

Definition at line 44 of file DOAS_FullProj.c.

§ 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().

§ DPAL

palette DPAL

Definition at line 36 of file DOAS_FullProj.c.

§ edtwf

MOBJECT edtwf

Definition at line 817 of file DOAS_FullProj.c.

Referenced by DB_FilterColumnCB(), and MDCreateColFor_Sh().

§ FLAG

flag FLAG

Definition at line 37 of file DOAS_FullProj.c.

§ fwstatus

int fwstatus = 0

Definition at line 818 of file DOAS_FullProj.c.

Referenced by DB_FilterColumnCB().

§ lblris

MOBJECT lblris

Definition at line 66 of file DOAS_FullProj.c.

Referenced by BrowseCB(), and MDCreateDOAS_MainSh().

§ lblsys

MOBJECT lblsys

Definition at line 66 of file DOAS_FullProj.c.

Referenced by BrowseCB(), and MDCreateDOAS_MainSh().

§ lblwf

MOBJECT lblwf

Definition at line 817 of file DOAS_FullProj.c.

Referenced by DB_FilterColumnCB(), and MDCreateColFor_Sh().

§ LISTF

listf LISTF

Definition at line 45 of file DOAS_FullProj.c.

§ menu

MOBJECT menu

Definition at line 60 of file DOAS_FullProj.c.

Referenced by MDCreateDOAS_MainSh(), and ViewPlot().

§ 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.

§ submenu

MOBJECT submenu

Definition at line 61 of file DOAS_FullProj.c.

Referenced by MDCreateDOAS_MainSh(), and ViewPlot().

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