Default args allowed only in header (not implementation) with gcc 3.X
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3243 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
04579c0307
commit
5b75be9487
@ -68,7 +68,7 @@ BScrollBar::BScrollBar(BRect frame,const char *name,BView *target,float min,
|
|||||||
privatedata=new BScrollBarPrivateData;
|
privatedata=new BScrollBarPrivateData;
|
||||||
privatedata->thumbframe=Bounds();
|
privatedata->thumbframe=Bounds();
|
||||||
|
|
||||||
if(!fTarget)
|
if(fTarget)
|
||||||
{
|
{
|
||||||
fTargetName=new char[strlen(fTarget->Name()+1)];
|
fTargetName=new char[strlen(fTarget->Name()+1)];
|
||||||
strcpy(fTargetName,target->Name());
|
strcpy(fTargetName,target->Name());
|
||||||
@ -483,7 +483,7 @@ void BScrollBar::GetPreferredSize(float *width, float *height)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void BScrollBar::MakeFocus(bool state = true)
|
void BScrollBar::MakeFocus(bool state)
|
||||||
{
|
{
|
||||||
if(fTarget)
|
if(fTarget)
|
||||||
fTarget->MakeFocus(state);
|
fTarget->MakeFocus(state);
|
||||||
|
@ -224,7 +224,7 @@ BHandler* BStringView::ResolveSpecifier(BMessage* msg, int32 index,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
void BStringView::MakeFocus(bool state = true)
|
void BStringView::MakeFocus(bool state)
|
||||||
{
|
{
|
||||||
BView::MakeFocus(state);
|
BView::MakeFocus(state);
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ BArchivable* BTextControl::Instantiate(BMessage* data)
|
|||||||
return new BTextControl(data);
|
return new BTextControl(data);
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
status_t BTextControl::Archive(BMessage* data, bool deep = true) const
|
status_t BTextControl::Archive(BMessage* data, bool deep) const
|
||||||
{
|
{
|
||||||
// TODO: compare against original version and finish
|
// TODO: compare against original version and finish
|
||||||
status_t err = BView::Archive(data, deep);
|
status_t err = BView::Archive(data, deep);
|
||||||
@ -281,6 +281,7 @@ void BTextControl::MouseDown(BPoint where)
|
|||||||
MakeFocus(true);
|
MakeFocus(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
void BTextControl::AttachedToWindow()
|
void BTextControl::AttachedToWindow()
|
||||||
{
|
{
|
||||||
BControl::AttachedToWindow();
|
BControl::AttachedToWindow();
|
||||||
@ -295,7 +296,8 @@ void BTextControl::AttachedToWindow()
|
|||||||
ResizeTo(Bounds().Width(), h);
|
ResizeTo(Bounds().Width(), h);
|
||||||
fText->ResizeTo(fText->Bounds().Width(), h);
|
fText->ResizeTo(fText->Bounds().Width(), h);
|
||||||
}
|
}
|
||||||
void BTextControl::MakeFocus(bool state = true)
|
//------------------------------------------------------------------------------
|
||||||
|
void BTextControl::MakeFocus(bool state)
|
||||||
{
|
{
|
||||||
if (IsEnabled())
|
if (IsEnabled())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user