haiku/src/apps/installer/PartitionMenuItem.h
Stephan Aßmus 5c7514c317 Patch by idefix: Make the source items behave exactly like the target items
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
2009-07-28 17:35:51 +00:00

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_