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