xref: /haiku/src/apps/diskusage/MainWindow.h (revision e7d5c75dce28921de0dc981ed840205a67a0c0e5)
1 /*
2  * Copyright (c) 2008 Stephan Aßmus <superstippi@gmx.de>.
3  * Copyright (c) 2009 Philippe Saint-Pierre, stpere@gmail.com
4  * All rights reserved. Distributed under the terms of the MIT license.
5  *
6  * Copyright (c) 1999 Mike Steed. You are free to use and distribute this software
7  * as long as it is accompanied by it's documentation and this copyright notice.
8  * The software comes with no warranty, etc.
9  */
10 #ifndef MAIN_WINDOW_H
11 #define MAIN_WINDOW_H
12 
13 
14 #include <Window.h>
15 
16 
17 class BVolume;
18 class ControlsView;
19 struct FileInfo;
20 class PieView;
21 class StatusView;
22 
23 
24 class MainWindow: public BWindow {
25 public:
26 								MainWindow(BRect pieRect);
27 	virtual						~MainWindow();
28 
29 	virtual	void				MessageReceived(BMessage* message);
30 	virtual	bool				QuitRequested();
31 
32 			void				ShowInfo(const FileInfo* info);
33 			void				SetRescanEnabled(bool enabled);
34 			BVolume*			FindDeviceFor(dev_t device,
35 									bool invoke = false);
36 
37 private:
38 			ControlsView*		fControlsView;
39 			PieView*			fPieView;
40 			StatusView*			fStatusView;
41 };
42 
43 #endif // MAIN_WINDOW_H
44