xref: /haiku/src/apps/drivesetup/DiskView.h (revision e6b30aee0fd7a23d6a6baab9f3718945a0cd838a)
1 /*
2  * Copyright 2007-2008 Haiku Inc. All rights reserved.
3  * Distributed under the terms of the MIT license.
4  */
5 #ifndef DISK_VIEW_H
6 #define DISK_VIEW_H
7 
8 
9 #include <DiskDevice.h>
10 #include <View.h>
11 
12 
13 class DiskView : public BView {
14 	typedef BView Inherited;
15 public:
16 								DiskView(const BRect& frame,
17 									uint32 resizeMode);
18 	virtual						~DiskView();
19 
20 	// BView interface
21 	virtual	void				Draw(BRect updateRect);
22 
23 			void				SetDiskCount(int32 count);
24 			void				SetDisk(BDiskDevice* disk,
25 									partition_id selectedPartition);
26 private:
27 			void				_UpdateLayout();
28 
29 			int32				fDiskCount;
30 			BDiskDevice*		fDisk;
31 
32 			class PartitionLayout;
33 			PartitionLayout*	fPartitionLayout;
34 };
35 
36 
37 #endif // DISK_VIEW_H
38