1/*****************************************************************************
2  FILE           : $Source: /projects/higgs1/SNNS/CVS/SNNS/xgui/sources/ui_mainP.ph,v $
3  SHORTNAME      : mainP.ph
4  SNNS VERSION   : 4.2
5
6  PURPOSE        : Header file of correspondent '.c' file
7  NOTES          :
8
9  AUTHOR         : Tilman Sommer
10  DATE           : 1.4.1990
11
12  CHANGED BY     : Guenter Mamier
13  RCS VERSION    : $Revision: 2.13 $
14  LAST CHANGE    : $Date: 1998/02/25 15:22:20 $
15
16    Copyright (c) 1990-1995  SNNS Group, IPVR, Univ. Stuttgart, FRG
17    Copyright (c) 1996-1998  SNNS Group, WSI, Univ. Tuebingen, FRG
18
19******************************************************************************/
20
21
22#ifndef _UI_MAINP_DEFINED_
23#define _UI_MAINP_DEFINED_
24
25
26/* begin global definition section */
27
28
29void ui_xCreateGC (Window);
30void ui_printMessage (char *);
31void ui_displayDone (Widget, struct Ui_DisplayType *, caddr_t);
32void ui_popupDone (Widget, int, caddr_t);
33void ui_popupWeights (Widget, caddr_t, caddr_t);
34void ui_editPopup (Widget, struct SimpleListType *, caddr_t);
35void ui_editSitePopup (Widget, struct SimpleListType *, caddr_t);
36void ui_listPopup (struct SimpleListType *, Position, Position);
37void ui_displayFilePanel (Widget, Widget, caddr_t);
38void ui_displayLayerPanel (Position, Position);
39void ui_displayGraphic (Widget, struct Ui_DisplayType *, caddr_t);
40void ui_displayControl (Widget, caddr_t, caddr_t);
41void ui_displayInfo (Widget, caddr_t, caddr_t);
42void ui_displayText (Widget, caddr_t, caddr_t);
43void ui_displayHelp (char *);
44void ui_guiQuit (Widget, XtPointer, XtPointer);
45void ui_guiDoQuit (Widget, XtPointer, XtPointer);
46void ui_loadFileFromCommandLine (void);
47void ui_parseCmdLine (int, char *[]);
48
49
50	/* Handles of popup shells. Used by ui_popupDone() */
51Widget ui_popControl, ui_popInfo, ui_popResult;
52
53	/* message widget in the control panel */
54Widget ui_controlMessageWidget;
55
56	/* widgets of jog/random weights panel */
57Widget  ui_highLimitWidget, ui_lowLimitWidget, ui_correlationLimitWidget;
58
59	/* widget of message displayed when the
60	bubble of a slider in the setup panel was moved */
61Widget  ui_setupSliderMessage;
62
63
64
65
66
67GC             ui_gc;         /* xgui graphic context */
68XFontStruct   *ui_fontStruct;
69int            ui_screen;     /* X screen */
70
71
72
73
74	/* display for with the setup panel was displayed */
75struct Ui_DisplayType  *ui_set_displayPtr; /* for xgui */
76
77Display       *ui_display;    /* for X */
78
79Widget  ui_toplevel;
80Widget  ui_message;  /* message in the manager panel */
81
82	/* shell widgets of info, control, setup and file panel */
83Widget  ui_infoPanel, ui_setupPanel;
84	/* widgets in the setup panel */
85Widget  ui_set_gridWidthWidget, ui_set_originXWidget;
86Widget  ui_set_originYWidget;
87Widget  ui_set_subnetWidget;
88Widget  ui_set_zWidget;
89
90	/* panel created yes or no */
91Bool    ui_setupIsCreated;
92
93	/* data displayed in the file panel */
94char    ui_edit_actFuncName[MAX_NAME_LENGTH];
95char    ui_edit_outFuncName[MAX_NAME_LENGTH];
96char    ui_edit_FTypeName[MAX_NAME_LENGTH];
97
98XGCValues      ui_gcValues;   /* initial gc values */
99
100
101/* end global definition section */
102
103/* begin private definition section */
104
105
106static void ui_textLook (Widget, XtPointer, XtPointer);
107static void ui_textMore (Widget, XtPointer, XtPointer);
108static void ui_textKey (Widget, char *);
109static void ui_textTopics (Widget, Widget, caddr_t);
110static void ui_showHelpMsg (char *);
111static void ui_refresh (Widget, struct Ui_DisplayType *, XEvent *);
112static void ui_popupSetup (Widget, struct Ui_DisplayType *, caddr_t);
113static void ui_listPopupDone (Widget, struct SimpleListType *, caddr_t);
114static void ui_helpDone (Widget, struct HelpType*, caddr_t);
115static void ui_editPopupDone (Widget, struct SimpleListType *, caddr_t);
116static int ui_chkFileName (char *, char *);
117static void ui_jog_on(Widget w, caddr_t client_data, caddr_t call_data);
118static void ui_jog_toggle_correlation(Widget w, caddr_t client_data, caddr_t call_data);
119
120#ifdef _UNUSED_FUNCTIONS_
121
122static void ui_syntax (XtAppContext, char *);
123
124#endif /* _UNUSED_FUNCTIONS */
125
126	/* Needed for textlook, textmore and textkey */
127static off_t ui_lengthOfHelp;
128
129static Bool  ui_filePannelPoppedUp = FALSE;  /* indicates that the file pannel
130                                         is popped up */
131static char ui_dfontName[255];
132	/* names of possible fonts  */
133#define noOfFontNames 8
134static Bool  ui_helpOk = FALSE;   /* indicates that help.hdoc is ok */
135	/* list and free list of help windows */
136static struct HelpType *ui_help_listPtr     = NULL;
137static struct HelpType *ui_help_freeListPtr = NULL;
138	/* load from command line */
139static Bool ui_loadNetbyInit = FALSE;
140static Bool ui_loadPatbyInit = FALSE;
141static Bool ui_loadCfgbyInit = FALSE;
142static Bool  ui_noOfHelpsUp = 0;   /* number of help windows created */
143	/* Handles of popup shells. Used by ui_popupDone() */
144static Widget ui_popDummy, ui_popSetup, ui_popFile, ui_popEdit, ui_popWeights,
145       ui_popCanvas, ui_popList, ui_popLayer, ui_popInit;
146static Bool  ui_pop_exit = FALSE;  /* used, when popup window has its own
147			       event dispatching loop */
148	/* frame widgets (form) of setup and file panel */
149static Widget ui_setupBox, ui_fileBox;
150	/* true if font specified in command line */
151static Bool hasCmdlineFont = FALSE;
152
153
154/* end private definition section */
155
156
157#endif /* _UI_MAINP_DEFINED_ */
158
159
160/* end of file */
161/* lines: 48 */
162