1//--------------------------------------------------------------------
2//
3//	MenuApp.cpp
4//
5//	Written by: Owen Smith
6//
7//--------------------------------------------------------------------
8
9/*
10	Copyright 1999, Be Incorporated.   All Rights Reserved.
11	This file may be used under the terms of the Be Sample Code License.
12*/
13
14#include <Alert.h>
15
16#include "constants.h"
17#include "MenuApp.h"
18#include "MenuWindow.h"
19
20//====================================================================
21//	MenuApp Implementation
22
23
24
25//--------------------------------------------------------------------
26//	MenuApp constructors, destructors, operators
27
28MenuApp::MenuApp()
29	: BApplication(STR_APP_SIG)
30{
31	// empty
32}
33
34
35
36//--------------------------------------------------------------------
37//	MenuApp virtual function overrides
38
39void MenuApp::AboutRequested(void)
40{
41	BAlert* aboutBox = new BAlert(STR_ABOUT_TITLE,
42		STR_ABOUT_DESC, STR_ABOUT_BUTTON);
43	aboutBox->Go();
44}
45
46void MenuApp::ReadyToRun(void)
47{
48	MenuWindow* pWin = new MenuWindow(STR_APP_NAME);
49	pWin->Show();
50}
51