1 /*
2  *  main -   main for mxascii
3  *
4  *  RCS:
5  *      $Revision$
6  *      $Date$
7  *
8  *  Description:
9  *      mxascii talks to diskmond to a specific port and displays
10  *      the disk usage graphically
11  *
12  *  Input Parameters:
13  *      type    identifier  description
14  *
15  *      text
16  *
17  *  Output Parameters:
18  *      type    identifier  description
19  *
20  *      text
21  *
22  *  Return Values:
23  *      value   description
24  *
25  *  Side Effects:
26  *      text
27  *
28  *  Limitations and Comments:
29  *      text
30  *
31  *  Development History:
32  *      who                  when       why
33  *      MA_Muquit@fccc.edu   Jun-18-96  first cut
34  */
35 
36 #include <xhead.h>
37 #define INCLUDED_FROM_MAIN
38 #include <mxascii.h>
39 
40 /*
41 ** fallback resources
42 */
43 static char *app_defaults[]=
44 {
45 #include "appdef.h"
46 NULL
47 };
48 
main(int argc,char ** argv)49 int main(int argc,char **argv)
50 {
51     XtAppContext
52         app;
53 
54     int
55         i;
56 
57     /*
58     ** initialize globals --starts
59     */
60     GtoplevelW=(Widget) NULL;
61     GmainwW=(Widget) NULL;
62 
63     for (i=0; i < 6; i++)
64     {
65         Gvalue_labelW[i] = (Widget) NULL;
66         Gascii_labelW[i] = (Widget) NULL;
67     }
68 
69     for (i=0; i < 3; i++)
70         Gtoggle_menuW[i] = (Widget) NULL;
71 
72     /*
73     Gleft_label_1W = (Widget) NULL;
74     Gleft_label_2W = (Widget) NULL;
75     Gmiddle_label_1W = (Widget) NULL;
76     Gmiddle_label_2W = (Widget) NULL;
77     Glast_label_1W = (Widget) NULL;
78     Glast_label_2W = (Widget) NULL;
79     */
80 
81 
82 
83     /*
84     ** initialize globals --ends
85     */
86 
87     /*
88     ** create toplevel widget
89     */
90 
91     GtoplevelW=XtVaAppInitialize(&app,"MXascii",
92         NULL,0,&argc,argv,app_defaults,NULL);
93 
94     XtVaSetValues(GtoplevelW,
95         XmNallowShellResize, True,
96         NULL);
97 
98     /*
99     ** create the table
100     */
101     MakeTable ();
102 
103     /*
104     ** create the user interface
105     */
106     CreateUserInterface (GtoplevelW);
107     CreateAboutD (GtoplevelW);
108 
109 
110     SetCb ((Widget) NULL,(XtPointer) 0,(XtPointer) NULL);
111     XtRealizeWidget(GtoplevelW);
112 
113     XtAppMainLoop(app);
114     return (0);
115 }
116