1 | #include <Mrm/MrmAppl.h> /* Motif Toolkit and MRM */
|
---|
2 | #include <Xm/Xm.h>
|
---|
3 | #include <Xm/RowColumn.h>
|
---|
4 | #include <Xm/MainW.h>
|
---|
5 | #include <Xm/Form.h>
|
---|
6 | #include <Xm/Label.h>
|
---|
7 | #include <Xm/ScrolledW.h>
|
---|
8 | #include <Xm/Separator.h>
|
---|
9 | #include <Xm/CascadeB.h>
|
---|
10 | #include <Xm/PushB.h>
|
---|
11 | #include <Xm/SelectioB.h>
|
---|
12 | #include <Xm/FileSB.h>
|
---|
13 | #include <Xm/MessageB.h>
|
---|
14 | #include <Xm/Text.h>
|
---|
15 | #include <Xm/List.h>
|
---|
16 | #include <dui_colors.h>
|
---|
17 | /* VUIT routines for the user to call */
|
---|
18 | void s_error();
|
---|
19 | /*
|
---|
20 | #define LABEL_FONT "-*-NEW CENTURY SCHOOLBOOK-BOLD-R-*--*-140-*-*-*-*-ISO8859-1"
|
---|
21 | #define DEFAULT_FONT "-*-TIMES-BOLD-R-*--*-120-*-*-*-*-ISO8859-1"
|
---|
22 |
|
---|
23 | #define MENU_FONT "-*-TIMES-BOLD-R-*--*-120-*-*-*-*-ISO8859-1"
|
---|
24 | */
|
---|
25 | #define LABEL_FONT "-*-HELVETICA-BOLD-R-*--*-120-*-*-*-*-ISO8859-1"
|
---|
26 |
|
---|
27 | #define DEFAULT_FONT "-*-HELVETICA-BOLD-R-*--*-100-*-*-*-*-ISO8859-1"
|
---|
28 |
|
---|
29 | #define MENU_FONT "-*-COURIER-BOLD-R-*--*-100-*-*-*-*-ISO8859-1"
|
---|
30 |
|
---|
31 | #define SERVER_FONT "-*-TIMES-BOLD-R-*--*-100-*-*-*-*-ISO8859-1"
|
---|
32 |
|
---|
33 | typedef enum { DID_SERVICES, DID_CLIENTS, DID_SEL_NODE, DID_SEL_SERVICE,
|
---|
34 | DID_KILL_ALL, DID_SERVICE, DID_COMMAND, MAX_POP_UPS } POPUPS;
|
---|
35 |
|
---|
36 | /* Motif Global variables */
|
---|
37 | Display *display; /* Display variable */
|
---|
38 | XtAppContext app_context; /* application context */
|
---|
39 | Widget toplevel_widget; /* Root widget ID of application */
|
---|
40 | MrmHierarchy s_MrmHierarchy; /* MRM database hierarchy ID */
|
---|
41 |
|
---|
42 | typedef struct item{
|
---|
43 | struct item *next;
|
---|
44 | DNS_SERVER_INFO server;
|
---|
45 | DNS_SERVICE_INFO *service_ptr;
|
---|
46 | char name[132];
|
---|
47 | Widget button_id;
|
---|
48 | Widget pop_widget_id[2];
|
---|
49 | /*
|
---|
50 | int popping;
|
---|
51 | */
|
---|
52 | int busy;
|
---|
53 | }SERVER;
|
---|
54 |
|
---|
55 | SERVER *Server_head = (SERVER *)0;
|
---|
56 |
|
---|
57 | Widget Matrix_id[2] = {0, 0};
|
---|
58 | int Curr_matrix;
|
---|
59 | Widget Label_id = 0;
|
---|
60 | Widget Content_label_id = 0;
|
---|
61 | Widget Window_id = 0;
|
---|
62 | Widget pop_widget_id[MAX_POP_UPS] = {0,0,0,0,0,0,0};
|
---|
63 | Widget No_link_button_id;
|
---|
64 |
|
---|
65 | XmString create_str();
|
---|
66 | XmFontList util_get_font();
|
---|
67 |
|
---|
68 | Widget create_selection_dialog();
|
---|
69 | Widget create_file_selection_dialog();
|
---|
70 | Widget create_prompt_dialog();
|
---|
71 | Widget create_question_dialog();
|
---|
72 | Widget create_service_dialog();
|
---|
73 | Widget create_server_dialog();
|
---|
74 | Widget create_client_dialog();
|
---|
75 | Widget create_node_selection();
|
---|
76 | Widget create_service_selection();
|
---|
77 | Widget create_kill_confirmation();
|
---|
78 | Widget create_send_command();
|
---|
79 | Widget create_push_button();
|
---|
80 | Widget put_popup();
|
---|
81 | Widget put_selection();
|
---|
82 |
|
---|
83 | Widget gui_toplevel();
|
---|
84 | Widget gui_initialize();
|
---|
85 | void gui_create_main_menu();
|
---|
86 | void gui_create_main_window();
|
---|
87 |
|
---|
88 |
|
---|
89 |
|
---|
90 |
|
---|
91 |
|
---|
92 |
|
---|
93 |
|
---|
94 |
|
---|
95 |
|
---|