improved size to string formating for GB and TB git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14531 a95241bf-73f2-0310-859d-f6bbb57e9c96
30 lines
776 B
C++
30 lines
776 B
C++
/*
|
|
* Copyright 2005, Jérôme DUVAL. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
#ifndef __PARTITIONMENUITEM_H_
|
|
#define __PARTITIONMENUITEM_H_
|
|
|
|
#include <MenuItem.h>
|
|
#include <Partition.h>
|
|
|
|
const uint32 SRC_PARTITION = 'iSPT';
|
|
const uint32 TARGET_PARTITION = 'iTPT';
|
|
|
|
class PartitionMenuItem : public BMenuItem {
|
|
public:
|
|
PartitionMenuItem(const char *name, const char *label,
|
|
const char* menuLabel, BMessage *msg, partition_id id);
|
|
~PartitionMenuItem();
|
|
partition_id ID() const { return fID; };
|
|
const char *MenuLabel() { return fMenuLabel ? fMenuLabel : Label(); };
|
|
const char *Name() { return fName ? fName : Label(); };
|
|
private:
|
|
partition_id fID;
|
|
char *fMenuLabel;
|
|
char *fName;
|
|
};
|
|
|
|
#endif /* __PARTITIONMENUITEM_H_ */
|