xref: /haiku/src/apps/poorman/PoorManApplication.cpp (revision 4f00613311d0bd6b70fa82ce19931c41f071ea4e)
1 /* PoorManApplication.cpp
2  *
3  *	Philip Harrison
4  *	Started: 4/25/2004
5  *	Version: 0.1
6  */
7 
8 #include <Alert.h>
9 
10 #include "constants.h"
11 #include "PoorManView.h"
12 #include "PoorManApplication.h"
13 
14 
15 PoorManApplication::PoorManApplication()
16 	: BApplication(STR_APP_SIG),
17 	  status(false), hits(0)
18 {
19 	// -------------------------------------------
20 	// Main Window
21 	//PoorManView		* mainView;
22 	BRect			  mainRect;
23 
24 	mainRect.Set(30.0f, 30.0f, 355.0f, 185.0f);
25 	mainWindow = new PoorManWindow(mainRect);
26 
27 	//mainRect.OffsetTo(B_ORIGIN);
28 	//mainView = new PoorManView(mainRect, STR_APP_NAME);
29 	//mainView->SetViewColor(216,216,216,255);
30 
31 	mainWindow->Show();
32 }
33 
34 void
35 PoorManApplication::AboutRequested()
36 {
37 	BAlert* aboutBox = new BAlert(STR_ABOUT_TITLE,
38 		STR_ABOUT_DESC, STR_ABOUT_BUTTON);
39 	aboutBox->Go();
40 }
41