mirror of
https://review.haiku-os.org/haiku
synced 2025-02-21 04:58:56 +01:00
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38205 a95241bf-73f2-0310-859d-f6bbb57e9c96
45 lines
632 B
C++
45 lines
632 B
C++
/*
|
|
* Copyright 2008 Haiku.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Fredrik Modéen fredrik@modeen.se
|
|
*/
|
|
|
|
#include "PortItem.h"
|
|
|
|
PortItem::PortItem(const char* label)
|
|
:BStringItem(label)
|
|
{}
|
|
|
|
|
|
PortItem::~PortItem()
|
|
{}
|
|
|
|
void
|
|
PortItem::DrawItem(BView *owner, BRect frame, bool complete)
|
|
{
|
|
BStringItem::DrawItem(owner, frame, complete);
|
|
}
|
|
|
|
BString
|
|
PortItem::GetOldJoystickName()
|
|
{
|
|
return fOldSelectedJoystick;
|
|
}
|
|
|
|
|
|
BString
|
|
PortItem::GetJoystickName()
|
|
{
|
|
return fSelectedJoystick;
|
|
}
|
|
|
|
|
|
void
|
|
PortItem::SetJoystickName(BString str)
|
|
{
|
|
fOldSelectedJoystick = fSelectedJoystick;
|
|
fSelectedJoystick = str;
|
|
}
|