tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / preferences / mouse / Mouse.cpp
blob17f796b3b7892b2d564ab556f18c417d9dfacfac
1 /*
2 * Copyright 2003-2009 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Jérôme Duval,
7 * Axel Dörfler (axeld@pinc-software.de)
8 * Andrew McCall (mccall@digitalparadise.co.uk)
9 */
12 #include "Mouse.h"
13 #include "MouseWindow.h"
15 #include <Alert.h>
16 #include <Screen.h>
18 #undef B_TRANSLATION_CONTEXT
19 #define B_TRANSLATION_CONTEXT "MouseApplication"
21 const char* kSignature = "application/x-vnd.Haiku-Mouse";
24 MouseApplication::MouseApplication()
26 BApplication(kSignature)
28 BRect rect(0, 0, 397, 293);
29 MouseWindow *window = new MouseWindow(rect);
30 window->Show();
34 void
35 MouseApplication::AboutRequested()
37 BAlert* alert = new BAlert("about",
38 B_TRANSLATE("...by Andrew Edward McCall"), B_TRANSLATE("Dig Deal"));
39 alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
40 alert->Go();
44 // #pragma mark -
47 int
48 main(int /*argc*/, char ** /*argv*/)
50 MouseApplication app;
51 app.Run();
53 return 0;