-
Notifications
You must be signed in to change notification settings - Fork 4
/
printing.cpp
40 lines (30 loc) · 962 Bytes
/
printing.cpp
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
/******************************************************************************
printing.cpp
Written by Glenn Bach - 1997.
******************************************************************************/
#include "PrintWidgetDir.h"
#include <jx-af/jx/JXApplication.h>
#include "../TutorialStringData.h"
#include <jx-af/jcore/jAssert.h>
static const JUtf8Byte* kAppSignature = "tut7";
/******************************************************************************
main
******************************************************************************/
int
main
(
int argc,
char* argv[]
)
{
// Create the application object - one per program
JXApplication* app =
jnew JXApplication(&argc, argv, kAppSignature, kAppSignature, kTutorialStringData);
// Create the window director
PrintWidgetDir* mainDir = jnew PrintWidgetDir(app);
// Activate the window director
mainDir->Activate();
// Start the event loop
app->Run();
return 0;
}