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
14class MainWindow;
15
16
17class App : public BApplication {
18public:
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
32private:
33			void				_StoreSettingsIfNeeded();
34
35			bool				fSettingsChanged;
36
37			BSize				fNamePanelSize;
38			bool				fAutoStart;
39};
40
41
42#endif // APP_H