-
Notifications
You must be signed in to change notification settings - Fork 0
/
Application.cc
40 lines (28 loc) · 1 KB
/
Application.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
-------------------------------------------------------------------------
OBJECT NAME: Application.cc
FULL NAME:
DESCRIPTION:
COPYRIGHT: University Corporation for Atmospheric Research, 1997-8
-------------------------------------------------------------------------
*/
#include "Application.h"
/* -------------------------------------------------------------------- */
Application::Application(const char APP_CLASS[], int *argc, char *argv[],
String fallback_resources[])
{
shell = XtAppInitialize(&context, APP_CLASS, NULL, 0, argc, argv,
fallback_resources, NULL, 0);
} /* END CONSTRUCTOR */
/* -------------------------------------------------------------------- */
void Application::FlushEvents()
{
while (XtAppPending(context))
XtAppProcessEvent(context, XtIMAll);
} /* END FLUSHEVENTS */
/* -------------------------------------------------------------------- */
Application::~Application()
{
XtDestroyWidget(shell);
} /* END DESTRUCTOR */
/* END APPLICATION.CC */