1/*
2 * Copyright 2001-2005, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Mark Hogben
7 *		DarkWyrm <bpmagic@columbus.rr.com>
8 *		Axel Dörfler, axeld@pinc-software.de
9 */
10
11
12#include "MainWindow.h"
13
14#include <Alert.h>
15#include <Application.h>
16#include <Catalog.h>
17#include <Locale.h>
18#include <TextView.h>
19
20#undef B_TRANSLATION_CONTEXT
21#define B_TRANSLATION_CONTEXT "main"
22
23class FontsApp : public BApplication {
24	public:
25		FontsApp();
26
27		virtual void AboutRequested();
28};
29
30
31FontsApp::FontsApp()
32	: BApplication("application/x-vnd.Haiku-Fonts")
33{
34	MainWindow *window = new MainWindow();
35	window->Show();
36}
37
38
39void
40FontsApp::AboutRequested()
41{
42	BAlert *alert = new BAlert("about", B_TRANSLATE("Fonts\n"
43		"\tCopyright 2004-2005, Haiku.\n\n"), B_TRANSLATE("OK"));
44	BTextView *view = alert->TextView();
45	BFont font;
46
47	view->SetStylable(true);
48
49	view->GetFont(&font);
50	font.SetSize(18);
51	font.SetFace(B_BOLD_FACE);
52	view->SetFontAndColor(0, 5, &font);
53
54	alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
55	alert->Go();
56}
57
58
59//	#pragma mark -
60
61
62int
63main(int, char**)
64{
65	FontsApp app;
66	app.Run();
67
68	return 0;
69}
70
71