2 * Copyright 2005, Jérôme DUVAL. All rights reserved.
3 * Distributed under the terms of the MIT License.
10 #include "PartitionMenuItem.h"
12 PartitionMenuItem::PartitionMenuItem(const char* name
, const char* label
,
13 const char* menuLabel
, BMessage
* message
, partition_id id
)
15 BMenuItem(label
, message
),
17 fMenuLabel(strdup(menuLabel
)),
24 PartitionMenuItem::~PartitionMenuItem()
32 PartitionMenuItem::ID() const
39 PartitionMenuItem::MenuLabel() const
41 return fMenuLabel
!= NULL
? fMenuLabel
: Label();
46 PartitionMenuItem::Name() const
48 return fName
!= NULL
? fName
: Label();
53 PartitionMenuItem::SetIsValidTarget(bool isValidTarget
)
55 fIsValidTarget
= isValidTarget
;
60 PartitionMenuItem::IsValidTarget() const
62 return fIsValidTarget
;