xref: /haiku/src/apps/deskcalc/CalcWindow.h (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1 /*
2  * Copyright 2006 Haiku, Inc. All Rights Reserved.
3  * Copyright 1997, 1998 R3 Software Ltd. All Rights Reserved.
4  * Distributed under the terms of the MIT License.
5  *
6  * Authors:
7  *		Stephan Aßmus, superstippi@gmx.de
8  *		Timothy Wayper, timmy@wunderbear.com
9  */
10 #ifndef _CALC_WINDOW_H
11 #define _CALC_WINDOW_H
12 
13 
14 #include <Window.h>
15 
16 
17 class CalcView;
18 
19 class CalcWindow : public BWindow {
20  public:
21 								CalcWindow(BRect frame, BMessage* settings);
22 	virtual						~CalcWindow();
23 
24 	virtual	void				MessageReceived(BMessage* message);
25 	virtual	void				Show();
26 	virtual	bool				QuitRequested();
27 
28 			status_t			SaveSettings(BMessage* archive) const;
29 
30 			void				SetFrame(BRect frame,
31 									bool forceCenter = false);
32 
33 			CalcView*			View() const { return fCalcView; };
34 
35  private:
36 			CalcView*			fCalcView;
37 };
38 
39 #endif // _CALC_WINDOW_H
40