137ec4f04SAxel Dörfler/*
2e8f87badSFredrik Modeen * Copyright 2003-2009 Haiku Inc. All rights reserved.
337ec4f04SAxel Dörfler * Distributed under the terms of the MIT License.
437ec4f04SAxel Dörfler *
537ec4f04SAxel Dörfler * Authors:
6e8f87badSFredrik Modeen *		J��r��me Duval,
737ec4f04SAxel Dörfler *		Axel D��rfler (axeld@pinc-software.de)
8e8f87badSFredrik Modeen *		Andrew McCall (mccall@digitalparadise.co.uk)
937ec4f04SAxel Dörfler */
1052a38012Sejakowatz
1152a38012Sejakowatz
1252a38012Sejakowatz#include "Mouse.h"
1352a38012Sejakowatz#include "MouseWindow.h"
1452a38012Sejakowatz
1537ec4f04SAxel Dörfler#include <Alert.h>
1637ec4f04SAxel Dörfler#include <Screen.h>
1737ec4f04SAxel Dörfler
18546208a5SOliver Tappe#undef B_TRANSLATION_CONTEXT
19546208a5SOliver Tappe#define B_TRANSLATION_CONTEXT "MouseApplication"
2052a38012Sejakowatz
2137ec4f04SAxel Dörflerconst char* kSignature = "application/x-vnd.Haiku-Mouse";
2252a38012Sejakowatz
2352a38012Sejakowatz
2452a38012SejakowatzMouseApplication::MouseApplication()
25e8f87badSFredrik Modeen	:
2649039b4eSMatt Madia	BApplication(kSignature)
2752a38012Sejakowatz{
28357ef4edSJérôme Duval	BRect rect(0, 0, 397, 293);
29357ef4edSJérôme Duval	MouseWindow *window = new MouseWindow(rect);
30357ef4edSJérôme Duval	window->Show();
3152a38012Sejakowatz}
3252a38012Sejakowatz
3352a38012Sejakowatz
3452a38012Sejakowatzvoid
3537ec4f04SAxel DörflerMouseApplication::AboutRequested()
3652a38012Sejakowatz{
37aed35104SHumdinger	BAlert* alert = new BAlert("about",
38aed35104SHumdinger		B_TRANSLATE("...by Andrew Edward McCall"), B_TRANSLATE("Dig Deal"));
39aed35104SHumdinger	alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
40aed35104SHumdinger	alert->Go();
4152a38012Sejakowatz}
427ad05b50SAxel Dörfler
437ad05b50SAxel Dörfler
447ad05b50SAxel Dörfler//	#pragma mark -
457ad05b50SAxel Dörfler
467ad05b50SAxel Dörfler
477ad05b50SAxel Dörflerint
48be8fa2fbSAdrien Destuguesmain(int /*argc*/, char ** /*argv*/)
497ad05b50SAxel Dörfler{
507ad05b50SAxel Dörfler	MouseApplication app;
517ad05b50SAxel Dörfler	app.Run();
527ad05b50SAxel Dörfler
537ad05b50SAxel Dörfler	return 0;
547ad05b50SAxel Dörfler}
55