Implemented Archive() and unarchiving constructor. Removed bad linefeeds.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11234 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8f8871f95b
commit
859c5ac301
@ -316,7 +316,6 @@ status_t
|
|||||||
BChannelControl::SetLimitsFor(int32 fromChannel, int32 channelCount,
|
BChannelControl::SetLimitsFor(int32 fromChannel, int32 channelCount,
|
||||||
const int32 *minimum, const int32 *maximum)
|
const int32 *minimum, const int32 *maximum)
|
||||||
{
|
{
|
||||||
|
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,11 @@ BChannelSlider::BChannelSlider(BRect area, const char *name, const char *label,
|
|||||||
BChannelSlider::BChannelSlider(BMessage *archive)
|
BChannelSlider::BChannelSlider(BMessage *archive)
|
||||||
: BChannelControl(archive)
|
: BChannelControl(archive)
|
||||||
{
|
{
|
||||||
// TODO: Implement
|
InitData();
|
||||||
|
|
||||||
|
orientation orient;
|
||||||
|
if (archive->FindInt32("_orient", (int32 *)&orient) == B_OK)
|
||||||
|
SetOrientation(orient);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -71,8 +75,11 @@ BChannelSlider::Instantiate(BMessage *archive)
|
|||||||
status_t
|
status_t
|
||||||
BChannelSlider::Archive(BMessage *into, bool deep) const
|
BChannelSlider::Archive(BMessage *into, bool deep) const
|
||||||
{
|
{
|
||||||
// TODO: Implement
|
status_t status = BChannelControl::Archive(into, deep);
|
||||||
return B_ERROR;
|
if (status == B_OK)
|
||||||
|
status = into->AddInt32("_orient", (int32)Orientation());
|
||||||
|
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -166,7 +173,6 @@ BChannelSlider::Draw(BRect updateRect)
|
|||||||
void
|
void
|
||||||
BChannelSlider::MouseDown(BPoint where)
|
BChannelSlider::MouseDown(BPoint where)
|
||||||
{
|
{
|
||||||
// TODO: Implement
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -281,7 +287,9 @@ BChannelSlider::DrawChannel(BView *into, int32 channel, BRect area, bool pressed
|
|||||||
void
|
void
|
||||||
BChannelSlider::DrawGroove(BView *into, int32 channel, BPoint topLeft, BPoint bottomRight)
|
BChannelSlider::DrawGroove(BView *into, int32 channel, BPoint topLeft, BPoint bottomRight)
|
||||||
{
|
{
|
||||||
// TODO: Implement
|
// TODO: Draw the real thing
|
||||||
|
ASSERT(into != NULL);
|
||||||
|
into->StrokeRect(BRect(topLeft, bottomRight), B_SOLID_HIGH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -318,7 +326,6 @@ BChannelSlider::DrawThumb(BView *into, int32 channel, BPoint where, bool pressed
|
|||||||
const BBitmap *
|
const BBitmap *
|
||||||
BChannelSlider::ThumbFor(int32 channel, bool pressed)
|
BChannelSlider::ThumbFor(int32 channel, bool pressed)
|
||||||
{
|
{
|
||||||
// TODO: Implement
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -439,6 +446,7 @@ BChannelSlider::UpdateFontDimens()
|
|||||||
void
|
void
|
||||||
BChannelSlider::DrawThumbs()
|
BChannelSlider::DrawThumbs()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -464,7 +472,7 @@ BChannelSlider::Redraw()
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BChannelSlider::MouseMovedCommon(BPoint , BPoint )
|
BChannelSlider::MouseMovedCommon(BPoint point, BPoint point2)
|
||||||
{
|
{
|
||||||
// TODO: Implement
|
// TODO: Implement
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user