xref: /haiku/src/apps/launchbox/App.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /*
2  * Copyright 2006-2011, Stephan Aßmus <superstippi@gmx.de>.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 #ifndef APP_H
6 #define APP_H
7 
8 
9 #include <Application.h>
10 #include <List.h>
11 #include <Size.h>
12 
13 
14 class MainWindow;
15 
16 
17 class App : public BApplication {
18 public:
19 								App();
20 	virtual						~App();
21 
22 	virtual	bool				QuitRequested();
23 	virtual	void				ReadyToRun();
24 	virtual	void				MessageReceived(BMessage* message);
25 	virtual	void				Pulse();
26 
27 			void				SetNamePanelSize(const BSize& size);
28 			BSize				NamePanelSize();
29 			void				ToggleAutoStart();
30 			bool				AutoStart() { return fAutoStart; }
31 
32 private:
33 			void				_StoreSettingsIfNeeded();
34 
35 			bool				fSettingsChanged;
36 
37 			BSize				fNamePanelSize;
38 			bool				fAutoStart;
39 };
40 
41 
42 #endif // APP_H