Lots of fixes, geometry calculations updated, added buffered BSlider support

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2539 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marc Flerackers
2003-01-23 14:55:18 +00:00
parent 2dc718a7e8
commit ac6f7aa850
4 changed files with 2722 additions and 2637 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+410 -404
View File
@@ -1,404 +1,410 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Copyright (c) 2001-2002, OpenBeOS // Copyright (c) 2001-2002, OpenBeOS
// //
// Permission is hereby granted, free of charge, to any person obtaining a // Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"), // copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation // to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense, // the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the // and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions: // Software is furnished to do so, subject to the following conditions:
// //
// The above copyright notice and this permission notice shall be included in // The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software. // all copies or substantial portions of the Software.
// //
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
// //
// File Name: RadioButton.cpp // File Name: RadioButton.cpp
// Author: Marc Flerackers ([email protected]) // Author: Marc Flerackers ([email protected])
// Description: BRadioButton represents a single on/off button. All // Description: BRadioButton represents a single on/off button. All
// sibling BRadioButton objects comprise a single // sibling BRadioButton objects comprise a single
// "multiple choice" control. // "multiple choice" control.
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Standard Includes ----------------------------------------------------------- // Standard Includes -----------------------------------------------------------
// System Includes ------------------------------------------------------------- // System Includes -------------------------------------------------------------
#include <RadioButton.h> #include <RadioButton.h>
#include <Errors.h> #include <Errors.h>
// Project Includes ------------------------------------------------------------ // Project Includes ------------------------------------------------------------
// Local Includes -------------------------------------------------------------- // Local Includes --------------------------------------------------------------
// Local Defines --------------------------------------------------------------- // Local Defines ---------------------------------------------------------------
// Globals --------------------------------------------------------------------- // Globals ---------------------------------------------------------------------
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
BRadioButton::BRadioButton(BRect frame, const char *name, const char *label, BRadioButton::BRadioButton(BRect frame, const char *name, const char *label,
BMessage *message, uint32 resizMask, uint32 flags) BMessage *message, uint32 resizMask, uint32 flags)
: BControl(frame, name, label, message, resizMask, flags), : BControl(frame, name, label, message, resizMask, flags),
fOutlined(false) fOutlined(false)
{ {
if (Bounds().Height() < 18.0f) if (Bounds().Height() < 18.0f)
ResizeTo(Bounds().Width(), 18.0f); ResizeTo(Bounds().Width(), 18.0f);
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
BRadioButton::BRadioButton(BMessage *archive) BRadioButton::BRadioButton(BMessage *archive)
: BControl(archive), : BControl(archive),
fOutlined(false) fOutlined(false)
{ {
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
BRadioButton::~BRadioButton() BRadioButton::~BRadioButton()
{ {
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
BArchivable *BRadioButton::Instantiate(BMessage *archive) BArchivable *BRadioButton::Instantiate(BMessage *archive)
{ {
if (validate_instantiation(archive, "BRadioButton")) if (validate_instantiation(archive, "BRadioButton"))
return new BRadioButton(archive); return new BRadioButton(archive);
else else
return NULL; return NULL;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
status_t BRadioButton::Archive(BMessage *archive, bool deep) const status_t BRadioButton::Archive(BMessage *archive, bool deep) const
{ {
return BControl::Archive(archive, deep); return BControl::Archive(archive, deep);
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void BRadioButton::Draw(BRect updateRect) void BRadioButton::Draw(BRect updateRect)
{ {
// Placeholder until sBitmaps is filled in font_height fh;
rgb_color no_tint = ui_color(B_PANEL_BACKGROUND_COLOR), GetFontHeight(&fh);
lighten1 = tint_color(no_tint, B_LIGHTEN_1_TINT),
lightenmax = tint_color(no_tint, B_LIGHTEN_MAX_TINT), // If the focus is changing, just redraw the focus indicator
darken1 = tint_color(no_tint, B_DARKEN_1_TINT), if (IsFocusChanging())
darken2 = tint_color(no_tint, B_DARKEN_2_TINT), {
darken3 = tint_color(no_tint, B_DARKEN_3_TINT), float h = 8.0f + (float)ceil(fh.ascent / 2.0f) + 2.0f;
darken4 = tint_color(no_tint, B_DARKEN_4_TINT),
darkenmax = tint_color(no_tint, B_DARKEN_MAX_TINT); if (IsFocus())
SetHighColor(ui_color(B_KEYBOARD_NAVIGATION_COLOR));
BRect rect(1.0, 3.0, 13.0, 15.0); else
SetHighColor(ui_color(B_PANEL_BACKGROUND_COLOR));
if (IsEnabled())
{ StrokeLine(BPoint(20.0f, h), BPoint(20.0f + StringWidth(Label()), h));
// Dot
if (Value() == B_CONTROL_ON) return;
{ }
rgb_color kb_color = ui_color(B_KEYBOARD_NAVIGATION_COLOR);
// Placeholder until sBitmaps is filled in
SetHighColor(tint_color(kb_color, B_DARKEN_3_TINT)); rgb_color no_tint = ui_color(B_PANEL_BACKGROUND_COLOR),
FillEllipse(rect); lighten1 = tint_color(no_tint, B_LIGHTEN_1_TINT),
SetHighColor(kb_color); lightenmax = tint_color(no_tint, B_LIGHTEN_MAX_TINT),
FillEllipse(BRect(rect.left + 3, rect.top + 3, rect.right - 4, rect.bottom - 4)); darken1 = tint_color(no_tint, B_DARKEN_1_TINT),
SetHighColor(tint_color(kb_color, B_DARKEN_3_TINT)); darken2 = tint_color(no_tint, B_DARKEN_2_TINT),
StrokeLine(BPoint(rect.right - 5, rect.bottom - 4), darken3 = tint_color(no_tint, B_DARKEN_3_TINT),
BPoint(rect.right - 4, rect.bottom - 5)); darken4 = tint_color(no_tint, B_DARKEN_4_TINT),
SetHighColor(tint_color(kb_color, B_LIGHTEN_MAX_TINT)); darkenmax = tint_color(no_tint, B_DARKEN_MAX_TINT);
StrokeLine(BPoint(rect.left + 4, rect.top + 5),
BPoint(rect.left + 5, rect.top + 4)); BRect rect(1.0, 3.0, 13.0, 15.0);
} if (IsEnabled())
else {
{ // Dot
SetHighColor(lightenmax); if (Value() == B_CONTROL_ON)
FillEllipse(rect); {
} rgb_color kb_color = ui_color(B_KEYBOARD_NAVIGATION_COLOR);
// Outer circle SetHighColor(tint_color(kb_color, B_DARKEN_3_TINT));
if (fOutlined) FillEllipse(rect);
{ SetHighColor(kb_color);
SetHighColor(darken3); FillEllipse(BRect(rect.left + 3, rect.top + 3, rect.right - 4, rect.bottom - 4));
StrokeEllipse(rect); SetHighColor(tint_color(kb_color, B_DARKEN_3_TINT));
} StrokeLine(BPoint(rect.right - 5, rect.bottom - 4),
else BPoint(rect.right - 4, rect.bottom - 5));
{ SetHighColor(tint_color(kb_color, B_LIGHTEN_MAX_TINT));
SetHighColor(darken1); StrokeLine(BPoint(rect.left + 4, rect.top + 5),
StrokeArc(rect, 45.0f, 180.0f); BPoint(rect.left + 5, rect.top + 4));
SetHighColor(lightenmax);
StrokeArc(rect, 45.0f, -180.0f); }
} else
{
rect.InsetBy(1, 1); SetHighColor(lightenmax);
FillEllipse(rect);
// Inner circle }
SetHighColor(darken3);
StrokeArc(rect, 45.0f, 180.0f); // Outer circle
StrokeLine(BPoint(rect.left + 1, rect.top + 1), if (fOutlined)
BPoint(rect.left + 1, rect.top + 1)); {
SetHighColor(no_tint); SetHighColor(darken3);
StrokeArc(rect, 45.0f, -180.0f); StrokeEllipse(rect);
StrokeLine(BPoint(rect.left + 1, rect.bottom - 1), }
BPoint(rect.left + 1, rect.bottom - 1)); else
StrokeLine(BPoint(rect.right - 1, rect.bottom - 1), {
BPoint(rect.right - 1, rect.bottom - 1)); SetHighColor(darken1);
StrokeLine(BPoint(rect.right - 1, rect.top + 1), StrokeArc(rect, 45.0f, 180.0f);
BPoint(rect.right - 1, rect.top + 1)); SetHighColor(lightenmax);
StrokeArc(rect, 45.0f, -180.0f);
// Label }
BFont font;
GetFont(&font); rect.InsetBy(1, 1);
font_height fh;
font.GetHeight(&fh); // Inner circle
SetHighColor(darken3);
SetHighColor(darkenmax); StrokeArc(rect, 45.0f, 180.0f);
DrawString(Label(), BPoint(20.0f, 8.0f + (float)ceil(fh.ascent / 2.0f))); StrokeLine(BPoint(rect.left + 1, rect.top + 1),
BPoint(rect.left + 1, rect.top + 1));
// Focus SetHighColor(no_tint);
if (IsFocus()) StrokeArc(rect, 45.0f, -180.0f);
{ StrokeLine(BPoint(rect.left + 1, rect.bottom - 1),
float h = 8.0f + (float)ceil(fh.ascent / 2.0f) + 2.0f; BPoint(rect.left + 1, rect.bottom - 1));
StrokeLine(BPoint(rect.right - 1, rect.bottom - 1),
SetHighColor(ui_color(B_KEYBOARD_NAVIGATION_COLOR)); BPoint(rect.right - 1, rect.bottom - 1));
StrokeLine(BPoint(20.0f, h), BPoint(20.0f + StringWidth(Label()), h)); StrokeLine(BPoint(rect.right - 1, rect.top + 1),
} BPoint(rect.right - 1, rect.top + 1));
}
else // Label
{ SetHighColor(darkenmax);
// Dot DrawString(Label(), BPoint(20.0f, 8.0f + (float)ceil(fh.ascent / 2.0f)));
if (Value() == B_CONTROL_ON)
{ // Focus
rgb_color kb_color = ui_color(B_KEYBOARD_NAVIGATION_COLOR); if (IsFocus())
{
SetHighColor(tint_color(kb_color, B_LIGHTEN_2_TINT)); float h = 8.0f + (float)ceil(fh.ascent / 2.0f) + 2.0f;
FillEllipse(rect);
SetHighColor(tint_color(kb_color, B_LIGHTEN_MAX_TINT)); SetHighColor(ui_color(B_KEYBOARD_NAVIGATION_COLOR));
StrokeLine(BPoint(rect.left + 4, rect.top + 5), StrokeLine(BPoint(20.0f, h), BPoint(20.0f + StringWidth(Label()), h));
BPoint(rect.left + 5, rect.top + 4)); }
SetHighColor(tint_color(kb_color, B_DARKEN_3_TINT)); }
StrokeArc(BRect(rect.left + 2, rect.top + 2, rect.right - 2, rect.bottom - 2), else
45.0f, -180.0f); {
} // Dot
else if (Value() == B_CONTROL_ON)
{ {
SetHighColor(lighten1); rgb_color kb_color = ui_color(B_KEYBOARD_NAVIGATION_COLOR);
FillEllipse(rect);
} SetHighColor(tint_color(kb_color, B_LIGHTEN_2_TINT));
FillEllipse(rect);
// Outer circle SetHighColor(tint_color(kb_color, B_LIGHTEN_MAX_TINT));
SetHighColor(no_tint); StrokeLine(BPoint(rect.left + 4, rect.top + 5),
StrokeArc(rect, 45.0f, 180.0f); BPoint(rect.left + 5, rect.top + 4));
SetHighColor(lighten1); SetHighColor(tint_color(kb_color, B_DARKEN_3_TINT));
StrokeArc(rect, 45.0f, -180.0f); StrokeArc(BRect(rect.left + 2, rect.top + 2, rect.right - 2, rect.bottom - 2),
45.0f, -180.0f);
rect.InsetBy(1, 1); }
else
// Inner circle {
SetHighColor(darken2); SetHighColor(lighten1);
StrokeArc(rect, 45.0f, 180.0f); FillEllipse(rect);
StrokeLine(BPoint(rect.left + 1, rect.top + 1), }
BPoint(rect.left + 1, rect.top + 1));
SetHighColor(no_tint); // Outer circle
StrokeArc(rect, 45.0f, -180.0f); SetHighColor(no_tint);
StrokeLine(BPoint(rect.left + 1, rect.bottom - 1), StrokeArc(rect, 45.0f, 180.0f);
BPoint(rect.left + 1, rect.bottom - 1)); SetHighColor(lighten1);
StrokeLine(BPoint(rect.right - 1, rect.bottom - 1), StrokeArc(rect, 45.0f, -180.0f);
BPoint(rect.right - 1, rect.bottom - 1));
StrokeLine(BPoint(rect.right - 1, rect.top + 1), rect.InsetBy(1, 1);
BPoint(rect.right - 1, rect.top + 1));
// Inner circle
// Label SetHighColor(darken2);
BFont font; StrokeArc(rect, 45.0f, 180.0f);
GetFont(&font); StrokeLine(BPoint(rect.left + 1, rect.top + 1),
font_height fh; BPoint(rect.left + 1, rect.top + 1));
font.GetHeight(&fh); SetHighColor(no_tint);
StrokeArc(rect, 45.0f, -180.0f);
SetHighColor(tint_color(no_tint, B_DISABLED_LABEL_TINT)); StrokeLine(BPoint(rect.left + 1, rect.bottom - 1),
DrawString(Label(), BPoint(20.0f, 8.0f + (float)ceil(fh.ascent / 2.0f))); BPoint(rect.left + 1, rect.bottom - 1));
} StrokeLine(BPoint(rect.right - 1, rect.bottom - 1),
} BPoint(rect.right - 1, rect.bottom - 1));
//------------------------------------------------------------------------------ StrokeLine(BPoint(rect.right - 1, rect.top + 1),
void BRadioButton::MouseDown(BPoint point) BPoint(rect.right - 1, rect.top + 1));
{
if (!IsEnabled()) // Label
{ SetHighColor(tint_color(no_tint, B_DISABLED_LABEL_TINT));
BControl::MouseDown(point); DrawString(Label(), BPoint(20.0f, 8.0f + (float)ceil(fh.ascent / 2.0f)));
return; }
} }
//------------------------------------------------------------------------------
SetMouseEventMask(B_POINTER_EVENTS, B_NO_POINTER_HISTORY | void BRadioButton::MouseDown(BPoint point)
B_SUSPEND_VIEW_FOCUS); {
if (!IsEnabled())
SetTracking(true); {
fOutlined = true; BControl::MouseDown(point);
Invalidate(); return;
} }
//------------------------------------------------------------------------------
void BRadioButton::AttachedToWindow() SetMouseEventMask(B_POINTER_EVENTS, B_NO_POINTER_HISTORY |
{ B_SUSPEND_VIEW_FOCUS);
BControl::AttachedToWindow();
} SetTracking(true);
//------------------------------------------------------------------------------ fOutlined = true;
void BRadioButton::KeyDown(const char *bytes, int32 numBytes) Invalidate();
{ }
BControl::KeyDown(bytes, numBytes); //------------------------------------------------------------------------------
} void BRadioButton::AttachedToWindow()
//------------------------------------------------------------------------------ {
void BRadioButton::SetValue(int32 value) BControl::AttachedToWindow();
{ }
if (BControl::Value() == value) //------------------------------------------------------------------------------
return; void BRadioButton::KeyDown(const char *bytes, int32 numBytes)
{
if (!IsTracking() && value == B_CONTROL_ON) BControl::KeyDown(bytes, numBytes);
{ }
BView *sibling; //------------------------------------------------------------------------------
void BRadioButton::SetValue(int32 value)
for (sibling = PreviousSibling(); sibling != NULL; {
sibling = sibling->PreviousSibling()) if (BControl::Value() == value)
{ return;
BRadioButton* radio = dynamic_cast<BRadioButton*>(sibling);
if (!IsTracking() && value == B_CONTROL_ON)
if (radio != NULL) {
radio->BControl::SetValue(B_CONTROL_OFF); BView *sibling;
}
for (sibling = PreviousSibling(); sibling != NULL;
for (sibling = NextSibling(); sibling != NULL; sibling = sibling->PreviousSibling())
sibling = sibling->NextSibling()) {
{ BRadioButton* radio = dynamic_cast<BRadioButton*>(sibling);
BRadioButton* radio = dynamic_cast<BRadioButton*>(sibling);
if (radio != NULL)
if (radio != NULL) radio->BControl::SetValue(B_CONTROL_OFF);
radio->BControl::SetValue(B_CONTROL_OFF); }
}
} for (sibling = NextSibling(); sibling != NULL;
sibling = sibling->NextSibling())
BControl::SetValue(value); {
} BRadioButton* radio = dynamic_cast<BRadioButton*>(sibling);
//------------------------------------------------------------------------------
void BRadioButton::GetPreferredSize(float *width, float *height) if (radio != NULL)
{ radio->BControl::SetValue(B_CONTROL_OFF);
font_height fh; }
GetFontHeight(&fh); }
*height = (float)ceil(fh.ascent + fh.descent + fh.leading) + 6.0f; BControl::SetValue(value);
*width = 22.0f + (float)ceil(StringWidth(Label())); }
} //------------------------------------------------------------------------------
//------------------------------------------------------------------------------ void BRadioButton::GetPreferredSize(float *width, float *height)
void BRadioButton::ResizeToPreferred() {
{ font_height fh;
float width, height; GetFontHeight(&fh);
GetPreferredSize(&width, &height);
BControl::ResizeTo(width, height); *height = (float)ceil(fh.ascent + fh.descent + fh.leading) + 6.0f;
} *width = 22.0f + (float)ceil(StringWidth(Label()));
//------------------------------------------------------------------------------ }
status_t BRadioButton::Invoke(BMessage *message) //------------------------------------------------------------------------------
{ void BRadioButton::ResizeToPreferred()
return BControl::Invoke(message); {
} BControl::ResizeToPreferred();
//------------------------------------------------------------------------------ }
void BRadioButton::MessageReceived(BMessage *message) //------------------------------------------------------------------------------
{ status_t BRadioButton::Invoke(BMessage *message)
BControl::MessageReceived(message); {
} return BControl::Invoke(message);
//------------------------------------------------------------------------------ }
void BRadioButton::WindowActivated(bool active) //------------------------------------------------------------------------------
{ void BRadioButton::MessageReceived(BMessage *message)
BControl::WindowActivated(active); {
} BControl::MessageReceived(message);
//------------------------------------------------------------------------------ }
void BRadioButton::MouseUp(BPoint point) //------------------------------------------------------------------------------
{ void BRadioButton::WindowActivated(bool active)
if (IsEnabled() && IsTracking()) {
{ BControl::WindowActivated(active);
fOutlined = false; }
SetTracking(false); //------------------------------------------------------------------------------
void BRadioButton::MouseUp(BPoint point)
if (Bounds().Contains(point)) {
{ if (IsEnabled() && IsTracking())
SetValue(B_CONTROL_ON); {
Invoke(); fOutlined = false;
} SetTracking(false);
}
else if (Bounds().Contains(point))
{ {
BControl::MouseUp(point); SetValue(B_CONTROL_ON);
return; Invoke();
} }
}
Invalidate(); else
} {
//------------------------------------------------------------------------------ BControl::MouseUp(point);
void BRadioButton::MouseMoved(BPoint point, uint32 transit, const BMessage *message) return;
{ }
if (IsEnabled() && IsTracking())
{ Invalidate();
if (transit == B_EXITED_VIEW) }
fOutlined = false; //------------------------------------------------------------------------------
else if (transit == B_ENTERED_VIEW) void BRadioButton::MouseMoved(BPoint point, uint32 transit, const BMessage *message)
fOutlined = true; {
if (IsEnabled() && IsTracking())
Invalidate(); {
} if (transit == B_EXITED_VIEW)
else fOutlined = false;
BView::MouseMoved(point, transit, message); else if (transit == B_ENTERED_VIEW)
} fOutlined = true;
//------------------------------------------------------------------------------
void BRadioButton::DetachedFromWindow() Invalidate();
{ }
BControl::DetachedFromWindow(); else
} BView::MouseMoved(point, transit, message);
//------------------------------------------------------------------------------ }
void BRadioButton::FrameMoved(BPoint newLocation) //------------------------------------------------------------------------------
{ void BRadioButton::DetachedFromWindow()
BControl::FrameMoved(newLocation); {
} BControl::DetachedFromWindow();
//------------------------------------------------------------------------------ }
void BRadioButton::FrameResized(float width, float height) //------------------------------------------------------------------------------
{ void BRadioButton::FrameMoved(BPoint newLocation)
BControl::FrameResized(width, height); {
} BControl::FrameMoved(newLocation);
//------------------------------------------------------------------------------ }
BHandler *BRadioButton::ResolveSpecifier(BMessage *message, int32 index, //------------------------------------------------------------------------------
BMessage *specifier, int32 what, void BRadioButton::FrameResized(float width, float height)
const char *property) {
{ BControl::FrameResized(width, height);
return ResolveSpecifier(message, index, specifier, what, property); }
} //------------------------------------------------------------------------------
//------------------------------------------------------------------------------ BHandler *BRadioButton::ResolveSpecifier(BMessage *message, int32 index,
void BRadioButton::MakeFocus(bool focused) BMessage *specifier, int32 what,
{ const char *property)
BControl::MakeFocus(); {
} return ResolveSpecifier(message, index, specifier, what, property);
//------------------------------------------------------------------------------ }
void BRadioButton::AllAttached() //------------------------------------------------------------------------------
{ void BRadioButton::MakeFocus(bool focused)
BControl::AllAttached(); {
} BControl::MakeFocus(focused);
//------------------------------------------------------------------------------ }
void BRadioButton::AllDetached() //------------------------------------------------------------------------------
{ void BRadioButton::AllAttached()
BControl::AllDetached(); {
} BControl::AllAttached();
//------------------------------------------------------------------------------ }
status_t BRadioButton::GetSupportedSuites(BMessage *message) //------------------------------------------------------------------------------
{ void BRadioButton::AllDetached()
return GetSupportedSuites(message); {
} BControl::AllDetached();
//------------------------------------------------------------------------------ }
status_t BRadioButton::Perform(perform_code d, void *arg) //------------------------------------------------------------------------------
{ status_t BRadioButton::GetSupportedSuites(BMessage *message)
return B_ERROR; {
} return GetSupportedSuites(message);
//------------------------------------------------------------------------------ }
void BRadioButton::_ReservedRadioButton1() {} //------------------------------------------------------------------------------
void BRadioButton::_ReservedRadioButton2() {} status_t BRadioButton::Perform(perform_code d, void *arg)
//------------------------------------------------------------------------------ {
BRadioButton &BRadioButton::operator=(const BRadioButton &) return B_ERROR;
{ }
return *this; //------------------------------------------------------------------------------
} void BRadioButton::_ReservedRadioButton1() {}
//------------------------------------------------------------------------------ void BRadioButton::_ReservedRadioButton2() {}
//------------------------------------------------------------------------------
/* BRadioButton &BRadioButton::operator=(const BRadioButton &)
* $Log $ {
* return *this;
* $Id $ }
* //------------------------------------------------------------------------------
*/
/*
* $Log $
*
* $Id $
*
*/
+1216 -1155
View File
File diff suppressed because it is too large Load Diff