1 /*********************************************************************/
2 /*  bibView: Administration of BibTeX-Databases                      */
3 /*           (Verwaltung von BibTeX-Literaturdatenbanken)            */
4 /*                                                                   */
5 /*  Module:  ComboBoP.h                                              */
6 /*                                                                   */
7 /*             - Combo Box Widget                                    */
8 /*               Text widget with selection list                     */
9 /*                                                                   */
10 /*  Author:  Holger Martin,  martinh@informatik.tu-muenchen.de       */
11 /*           Peter M. Urban, urban@informatik.tu-muenchen.de         */
12 /*                                                                   */
13 /*  History:                                                         */
14 /*    11.22.91  HM   created                                         */
15 /*                                                                   */
16 /*  Copyright 1991 Martin, Urban                                     */
17 /*    See ./Copyright for complete rights and liability information. */
18 /*                                                                   */
19 /*********************************************************************/
20 
21 
22 #ifndef ComboBoxP_h
23 #define ComboBoxP_h
24 
25 #include "ComboBo.h"
26 
27 #define XtCSelectMenu "SelectMenu"
28 #define XtCShowDotFiles "ShowDotFiles"
29 #define XtCBellLevel "BellLevel"
30 #define XtCName "Name"           /* NEU: Label fuer Eingabefeld */
31 #define XtCRcList "RcList"       /* NEU: LISTE */
32 
33 
34 typedef struct {
35     /* resources */
36     XtCallbackList      select_callback;
37     String              select_menu;
38     XtCallbackList      cancel_callback;
39     Dimension           margin;
40     int                 number_rows;
41     Boolean             show_dot_files;
42     int                 bell_level;
43     String              name;        /* NEU */
44     RcListNode          *rclist;     /* NEU */
45 
46     /* private data */
47     Widget              viewport_widget;
48     Widget              list_widget;
49     Widget		filename_widget;
50     Widget              select_widget;
51     Widget              path_widget;
52     Widget		cancel_widget;
53     Widget              name_widget;    /* NEU */
54     Widget              shell_widget;
55     String              *listList;
56     char                currentDir[MAXPATHLEN];
57     Boolean             watchingChanges;
58     ComboBoxStruct nomination;
59 } ComboBoxPart;
60 
61 typedef struct _ComboBoxRec {
62     CorePart		core;
63     ComboBoxPart	comboBox;
64 } ComboBoxRec;
65 
66 typedef struct {
67     XtPointer		extension;
68 } ComboBoxClassPart;
69 
70 typedef struct _ComboBoxClassRec {
71     CoreClassPart	        core_class;
72     ComboBoxClassPart	comboBox_class;
73 } ComboBoxClassRec, *ComboBoxClass;
74 
75 extern ComboBoxClassRec comboBoxClassRec;
76 
77 #endif /* ComboBoxP_h */
78 
79