UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pep_views.H
1 /* pep_views.H */
2 /* $Id: pep_views.H,v 1.17 2007/05/16 07:40:44 ibadm Exp $ */
3 #ifndef __pep_views_H
4 #define __pep_views_H
5 
6 #include <mix/Exceptions.h>
7 #include <mix/WidgetAr.H>
8 #include <csi/param.H>
9 #include <ldb/dbnamedefs.h>
10 #include <zm/UrcDB1.hpp>
11 #include <csi/pep_utils.H>
12 
13 
18 class ParView_void : public ParView
19 {
20 public:
21 
22  ParView_void (Protocol* protocol, const char* pname, Widget wParent);
23 
24  virtual void view_publish ();
25  virtual void view_absorb ();
26 };
27 ParView* ParViewInit_void (Protocol* protocol,
28  const char* pname,
29  Widget wParent);
30 
31 
36 class ParView_hsep : public ParView_void
37 {
38 protected:
39 
40  Widget sep;
41 
42 public:
43 
44  ParView_hsep (Protocol* protocol, const char* pname, Widget wParent);
45 };
46 ParView* ParViewInit_hsep (Protocol* protocol,
47  const char* pname,
48  Widget wParent);
49 
50 
51 #define TEXT_FIELD_WIDTH 12
52 #define AR1_TEXT_FIELD_WIDTH 25
53 #define STRING_FIELD_WIDTH 30
54 
60 {
61 protected:
62 
63  Widget label;
64 
66  pepNamedValues optargs;
67 
68 public:
69 
70  ParView_title (Protocol* protocol, const char* pname, Widget wParent);
71 };
72 ParView* ParViewInit_title (Protocol* protocol,
73  const char* pname,
74  Widget wParent);
75 
81 class ParView_TextField : public ParView
82 {
83 protected:
84 
85  Widget label, textfield;
86 
88  pepNamedValues optargs;
89 
90 public:
91 
92  ParView_TextField (Protocol* protocol, const char* pname,
93  Widget wParent, int tf_width = TEXT_FIELD_WIDTH);
94 
95  static void
96  activate_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
97  static void
98  preselect_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
99  static void
100  unselect_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
101 };
102 
103 
109 {
110 public:
111 
112  ParView_int (Protocol* protocol, const char* pname,
113  Widget wParent);
114 
115  virtual void view_publish ();
116  virtual void view_absorb ();
117 };
118 ParView* ParViewInit_int (Protocol* protocol,
119  const char* pname,
120  Widget wParent);
121 
122 
128 {
129 public:
130 
131  ParView_float (Protocol* protocol, const char* pname,
132  Widget wParent);
133 
134  virtual void view_publish ();
135  virtual void view_absorb ();
136 };
137 ParView* ParViewInit_float (Protocol* protocol,
138  const char* pname,
139  Widget wParent);
140 
141 
147 {
148 public:
149 
150  ParView_float_ar1 (Protocol* protocol, const char* pname,
151  Widget wParent);
152 
153  virtual void view_publish ();
154  virtual void view_absorb ();
155 };
156 ParView* ParViewInit_float_ar1 (Protocol* protocol,
157  const char* pname,
158  Widget wParent);
159 
160 
166 {
167 public:
168 
169  ParView_int_ar1 (Protocol* protocol, const char* pname,
170  Widget wParent);
171 
172  virtual void view_publish ();
173  virtual void view_absorb ();
174 };
175 ParView* ParViewInit_int_ar1 (Protocol* protocol,
176  const char* pname,
177  Widget wParent);
178 
179 
185 {
186 public:
187 
188  ParView_string (Protocol* protocol, const char* pname,
189  Widget wParent);
190 
191  virtual void view_publish ();
192  virtual void view_absorb ();
193 };
194 ParView* ParViewInit_string (Protocol* protocol,
195  const char* pname,
196  Widget wParent);
197 
198 
205 {
206 protected:
207 
208  Widget label, text2field1, text2field2;
209 
211  pepNamedValues optargs;
212 
213 public:
214 
215  ParView_Text2Fields (Protocol* protocol, const char* pname,
216  Widget wParent, int tf_width = TEXT_FIELD_WIDTH);
217 
218  static void
219  activate_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
220  static void
221  preselect_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
222  static void
223  unselect_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
224 };
225 
226 
232 {
233 public:
234 
235  ParView_int2 (Protocol* protocol, const char* pname, Widget wParent);
236 
237  virtual void view_publish ();
238  virtual void view_absorb ();
239 };
240 ParView* ParViewInit_int2 (Protocol* protocol,
241  const char* pname,
242  Widget wParent);
243 
244 
250 {
251 public:
252 
253  ParView_float2 (Protocol* protocol, const char* pname, Widget wParent);
254 
255  virtual void view_publish ();
256  virtual void view_absorb ();
257 };
258 ParView* ParViewInit_float2 (Protocol* protocol,
259  const char* pname,
260  Widget wParent);
261 
262 
267 class ParView_progress : public ParView
268 {
269 protected:
270 
271  Widget label, scroller;
272 
273 public:
274 
275  ParView_progress (Protocol* protocol, const char* pname, Widget wParent);
276 
277  virtual void view_publish ();
278  virtual void view_absorb ();
279 
280  static void
281  keep_position_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
282 };
283 ParView* ParViewInit_progress (Protocol* protocol,
284  const char* pname,
285  Widget wParent);
286 
287 
293 class ParView_selector : public ParView
294 {
295 protected:
296 
297  Widget label, select_button, view_button, clear_button, textfield;
298 
299 public:
300 
301  ParView_selector (Protocol* protocol, const char* pname, Widget wParent);
302 
303  virtual ~ParView_selector ();
304 
305  virtual void view_publish ();
306  virtual void view_absorb ();
307 
309  virtual void start_client ();
310 
312  virtual void finish_client ();
313 
314  enum{ /* means "..." type */
327  } dialog_type;
328 
330  pepNamedValues optargs;
331 
333  struct {
334  char *defdir;
336 
339 
341  char nmod[5];
342 
344  char path[PATH_MAX+1];
345 
348 
350  void get_dbname (dbNameStruct& dbns);
351 
352  static void
353  select_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
354 
355  static void
356  view_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
357 
358  static void
359  clear_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
360 
361  static void
362  verify_nmod_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
363 
364 };
365 ParView* ParViewInit_selector (Protocol* protocol,
366  const char* pname,
367  Widget wParent);
368 
369 
374 class ParView_logic : public ParView
375 {
376 protected:
377 
378  Widget label, true_button, false_button, rowcolumn;
379 
380 public:
381 
382  ParView_logic (Protocol* protocol, const char* pname, Widget wParent);
383 
384  virtual void view_publish ();
385  virtual void view_absorb ();
386 
387  enum{ /* means "..." type */
392  } dialog_type;
393 
394  static void
395  changed_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
396 };
397 ParView* ParViewInit_logic (Protocol* protocol,
398  const char* pname,
399  Widget wParent);
400 
401 
406 #define PtrAr LabelAr
407 #define PtrType char*
408 #include <mix/PtrAr.H>
409 
410 class ParView_enum : public ParView
411 {
412 protected:
413 
414  LabelAr lar;
415  WidgetAr options;
416  Widget label, option_menu, options_list;
417 
418 public:
419 
420  ParView_enum (Protocol* protocol, const char* pname, Widget wParent);
421  virtual ~ParView_enum ();
422 
423  virtual void view_publish ();
424  virtual void view_absorb ();
425 
426  static void
427  changed_cb (Widget w, XtPointer pUserData, XtPointer pCallData);
428 };
429 ParView* ParViewInit_enum (Protocol* protocol,
430  const char* pname,
431  Widget wParent);
432 
433 
434 
440 {
441 public:
442 
443  ParView_double (Protocol* protocol, const char* pname,
444  Widget wParent);
445 
446  virtual void view_publish ();
447  virtual void view_absorb ();
448 };
449 ParView* ParViewInit_double (Protocol* protocol,
450  const char* pname,
451  Widget wParent);
452 
453 
459 {
460 public:
461 
462  ParView_double2 (Protocol* protocol, const char* pname, Widget wParent);
463 
464  virtual void view_publish ();
465  virtual void view_absorb ();
466 };
467 ParView* ParViewInit_double2 (Protocol* protocol,
468  const char* pname,
469  Widget wParent);
470 
471 
477 {
478 public:
479 
480  ParView_double_ar1 (Protocol* protocol, const char* pname,
481  Widget wParent);
482 
483  virtual void view_publish ();
484  virtual void view_absorb ();
485 };
486 ParView* ParViewInit_double_ar1 (Protocol* protocol,
487  const char* pname,
488  Widget wParent);
489 
490 
491 #endif /* pep_views.H */
Definition: pep_views.H:324
virtual void start_client()
virtual void view_publish()
Definition: pep_views.H:476
Definition: pep_views.H:249
virtual void view_absorb()
Definition: pep_views.H:18
Definition: pep_views.H:458
virtual void view_absorb()
Definition: pep_views.H:321
Definition: pep_views.H:146
Definition: pep_views.H:388
virtual void view_publish()
Definition: dbnamedefs.h:67
Definition: UrcDB1.hpp:136
Definition: pep_views.H:81
struct ParView_selector::@2 filename_options
virtual void view_publish()
Definition: pep_views.H:325
dbItem dbitem
Definition: pep_views.H:338
virtual void view_absorb()
pepNamedValues optargs
Definition: pep_views.H:330
virtual void view_absorb()
virtual void view_absorb()
pepNamedValues optargs
Definition: pep_views.H:211
virtual void view_absorb()
virtual void view_publish()
virtual void view_absorb()
virtual void view_publish()
char nmod[5]
Definition: pep_views.H:341
Definition: pep_views.H:318
Definition: pep_views.H:317
virtual void view_publish()
virtual void view_publish()
virtual void view_absorb()
virtual void view_publish()
virtual void view_publish()
virtual void view_publish()
Definition: pep_views.H:374
virtual void view_absorb()
virtual void view_absorb()
pepNamedValues optargs
Definition: pep_views.H:88
virtual void view_absorb()
virtual void finish_client()
virtual void view_absorb()
Definition: pep_views.H:319
Definition: pep_views.H:315
virtual void view_publish()
Definition: pep_views.H:316
Definition: pep_views.H:390
virtual void view_publish()
virtual void view_publish()
pepNamedValues optargs
Definition: pep_views.H:66
Definition: pep_views.H:389
virtual void view_publish()
Definition: pep_views.H:293
virtual void view_absorb()
UrcDB1Client * urcdb1_client
Definition: pep_views.H:347
Definition: pep_views.H:410
Definition: pep_views.H:231
Definition: pep_views.H:267
Definition: pep.H:23
Definition: param.H:85
Definition: pep_views.H:36
Definition: pep_views.H:165
Definition: pep_views.H:320
Definition: pep_views.H:127
Definition: pep_views.H:204
char path[PATH_MAX+1]
Definition: pep_views.H:344
Definition: pep_views.H:184
virtual void view_publish()
Definition: pep_views.H:322
virtual void view_absorb()
char * defdir
Definition: pep_views.H:334
Definition: dbnamedefs.h:85
Definition: pep_views.H:59
Definition: pep_views.H:323
Definition: pep_views.H:439
Definition: pep_views.H:108
virtual void view_absorb()
void get_dbname(dbNameStruct &dbns)