Debian Codegraph @

include/xfbbX.h

raw
1 /***********************************************************************
2 Copyright (C) 1986-2000 by
3
4 F6FBB - Jean-Paul ROUBELAT
5 [email protected]
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 Parts of code have been taken from many other softwares.
20 Thanks for the help.
21 ***********************************************************************/
22
23
24 /*
25 * Fichier des variables locales
26 */
27
28 #define ENGLISH
29
30 #ifdef __MAIN__
31 #define PUBLIC
32 #else
33 #define PUBLIC extern
34 #endif
35
36 #include <stdio.h>
37 #include <Xm/Xm.h>
38 #include <Xm/Separator.h>
39 #include <Xm/PushB.h>
40 #include <Xm/PushBG.h>
41 #include <Xm/Form.h>
42 #include <Xm/RowColumn.h>
43 #include <Xm/CascadeB.h>
44 #include <Xm/ToggleB.h>
45 #include <Xm/Label.h>
46 #include <Xm/List.h>
47 #include <Xm/ScrollBar.h>
48 #include <Xm/SelectioB.h>
49 #include <Xm/Text.h>
50 #include <Xm/TextF.h>
51 #include <Xm/MessageB.h>
52 #include <Xm/FileSB.h>
53 #include <Xm/ComboBox.h>
54
55 #define MB_OK 0x0000
56 #define MB_OKCANCEL 0x0001
57 #define MB_YESNOCANCEL 0x0003
58 #define MB_YESNO 0x0004
59
60 #define MB_ICONHAND 0x0010
61 #define MB_ICONQUESTION 0x0020
62 #define MB_ICONEXCLAMATION 0x0030
63 #define MB_ICONASTERISK 0x0040
64 #define MB_ICONINFORMATION MB_ICONASTERISK
65
66 #define FBB_MSGS 1
67 #define FBB_STATUS 2
68 #define FBB_NBCNX 4
69 #define FBB_LISTCNX 8
70 #define FBB_MONITOR 16
71 #define FBB_CONSOLE 32
72 #define FBB_CHANNEL 64
73 #define FBB_XFBBX 128
74
75 #define CONSOLE 0
76 #define MONITOR 1
77 #define ALLCHANN 2
78
79 #define MAX_CONF 4
80 #define MAXFEN 3
81
82 typedef struct
83 {
84 char name[80];
85 char mycall[80];
86 char host[80];
87 char pass[256];
88 int port;
89 int mask;
90 }
91 conf_t;
92
93 PUBLIC Display *display;
94
95 PUBLIC conf_t conf[MAX_CONF];
96 PUBLIC unsigned curconf;
97
98 PUBLIC Widget Rmt[MAX_CONF];
99 PUBLIC Widget toplevel;
100
101 PUBLIC int fenetre[MAXFEN];
102 PUBLIC int CurrentSelection;
103
104 #ifdef __cplusplus
105 extern "C"
106 {
107 #endif
108
109 /* xfbbX.c */
110 extern int close_connection (void);
111 extern int console_input (char *, int);
112 extern int init_orb (char *);
113 extern int MessageBox (int, char *, char *, int);
114 extern void Caption (int);
115 extern void LabelSetString (Widget, char *, char *);
116
117 /* xfbbXcnsl.c */
118 extern void AllChanCB (Widget, XtPointer, XtPointer);
119 extern void ConsoleCB (Widget, XtPointer, XtPointer);
120 extern void HideFbbWindow (int numero, Widget parent);
121 extern void MonitorCB (Widget, XtPointer, XtPointer);
122 extern void set_win_colors (void);
123 extern void ShowFbbWindow (int, Widget);
124 extern void sysop_end (void);
125 extern void window_init (void);
126 extern void window_write (int, char *, int, int, int);
127
128 /* xfbbXabtd.c */
129 extern int GetConfig (void);
130 extern int PutConfig (void);
131 extern void AboutDialog (Widget, XtPointer, XtPointer);
132 extern void CallsignDialog (Widget, XtPointer, XtPointer);
133 extern void CopyDialog (Widget, XtPointer, XtPointer);
134 extern void SetupDialog (Widget, XtPointer, XtPointer);
135
136 #ifdef __cplusplus
137 }
138 #endif