xref: /haiku/src/apps/diskusage/ControlsView.h (revision 675ffabd70492a962f8c0288a32208c22ce5de18)
1 /*
2  * Copyright (c) 2008 Stephan Aßmus <superstippi@gmx.de>. All rights reserved.
3  * Distributed under the terms of the MIT/X11 license.
4  *
5  * Copyright (c) 1999 Mike Steed. You are free to use and distribute this software
6  * as long as it is accompanied by it's documentation and this copyright notice.
7  * The software comes with no warranty, etc.
8  */
9 #ifndef CONTROLS_VIEW_H
10 #define CONTROLS_VIEW_H
11 
12 
13 #include <Button.h>
14 #include <View.h>
15 
16 
17 class BVolume;
18 
19 class ControlsView: public BView {
20 public:
21 								ControlsView(BRect r);
22 	virtual						~ControlsView();
23 
24 			void				SetRescanEnabled(bool enable)
25 									{ fRescanButton->SetEnabled(enable); }
26 
27 			BVolume*			FindDeviceFor(dev_t device,
28 									bool invoke = false);
29 
30 private:
31 			class				VolumePopup;
32 
33 			VolumePopup*		fVolumePopup;
34 			BButton*			fRescanButton;
35 };
36 
37 
38 #endif // CONTROLS_VIEW_H
39