xref: /haiku/src/apps/charactermap/CharacterMap.cpp (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /*
2  * Copyright 2009, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include "CharacterMap.h"
8 
9 #include <stdlib.h>
10 
11 #include <Application.h>
12 #include <Catalog.h>
13 
14 #include "CharacterWindow.h"
15 
16 #undef B_TRANSLATION_CONTEXT
17 #define B_TRANSLATION_CONTEXT "CharacterMap"
18 
19 const char* kSignature = "application/x-vnd.Haiku-CharacterMap";
20 
21 
22 CharacterMap::CharacterMap()
23 	: BApplication(kSignature)
24 {
25 }
26 
27 
28 CharacterMap::~CharacterMap()
29 {
30 }
31 
32 
33 void
34 CharacterMap::ReadyToRun()
35 {
36 	fWindow = new CharacterWindow();
37 	fWindow->Show();
38 }
39 
40 
41 void
42 CharacterMap::RefsReceived(BMessage* message)
43 {
44 	fWindow->PostMessage(message);
45 }
46 
47 
48 void
49 CharacterMap::MessageReceived(BMessage* message)
50 {
51 	BApplication::MessageReceived(message);
52 }
53 
54 
55 //	#pragma mark -
56 
57 
58 int
59 main(int /*argc*/, char** /*argv*/)
60 {
61 	CharacterMap app;
62 	app.Run();
63 
64 	return 0;
65 }
66