mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 02:35:03 +01:00
5c7514c317
with regards to the label & style cleanup. Thanks a lot! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31854 a95241bf-73f2-0310-859d-f6bbb57e9c96
38 lines
850 B
C++
38 lines
850 B
C++
/*
|
|
* Copyright 2005, Jérôme DUVAL. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef PARTITION_MENU_ITEM_H
|
|
#define PARTITION_MENU_ITEM_H
|
|
|
|
#include <MenuItem.h>
|
|
#include <Partition.h>
|
|
|
|
|
|
const uint32 SOURCE_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);
|
|
virtual ~PartitionMenuItem();
|
|
|
|
partition_id ID() const;
|
|
const char* MenuLabel() const;
|
|
const char* Name() const;
|
|
|
|
void SetIsValidTarget(bool isValidTarget);
|
|
bool IsValidTarget() const;
|
|
|
|
private:
|
|
partition_id fID;
|
|
char* fMenuLabel;
|
|
char* fName;
|
|
bool fIsValidTarget;
|
|
};
|
|
|
|
#endif // PARTITION_MENU_ITEM_H_
|