xref: /haiku/src/apps/diskusage/MainWindow.h (revision 0d452c8f34013b611a54c746a71c05e28796eae2)
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 #include <Window.h>
14 
15 
16 class BVolume;
17 class ControlsView;
18 struct FileInfo;
19 class PieView;
20 
21 class MainWindow: public BWindow {
22 public:
23 								MainWindow(BRect pieRect);
24 	virtual						~MainWindow();
25 
26 	virtual	void				MessageReceived(BMessage* message);
27 	virtual	bool				QuitRequested();
28 
29 			void				SetRescanEnabled(bool enabled);
30 			BVolume*			FindDeviceFor(dev_t device,
31 									bool invoke = false);
32 
33 			void				ShowInfo(const FileInfo* info);
34 
35 private:
36 			ControlsView*		fControlsView;
37 };
38 
39 #endif // MAIN_WINDOW_H
40