* Copyright 2006-2007, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Stephan Aßmus <superstippi@gmx.de>
*/
#include "Manipulator.h"
#include "Observable.h"
Manipulator::Manipulator(Observable* object)
: Observer(),
fManipulatedObject(object)
{
if (fManipulatedObject)
fManipulatedObject->AddObserver(this);
}
Manipulator::~Manipulator()
{
if (fManipulatedObject)
fManipulatedObject->RemoveObserver(this);
}
void
Manipulator::Draw(BView* into, BRect updateRect)
{
}
bool
Manipulator::MouseDown(BPoint where)
{
return false;
}
void
Manipulator::MouseMoved(BPoint where)
{
}
Command*
Manipulator::MouseUp()
{
return NULL;
}
bool
Manipulator::MouseOver(BPoint where)
{
return false;
}
bool
Manipulator::DoubleClicked(BPoint where)
{
return false;
}
bool
Manipulator::ShowContextMenu(BPoint where)
{
return false;
}
bool
Manipulator::MessageReceived(BMessage* message, Command** _command)
{
return false;
}
void
Manipulator::ModifiersChanged(uint32 modifiers)
{
}
bool
Manipulator::HandleKeyDown(uint32 key, uint32 modifiers, Command** _command)
{
return false;
}
bool
Manipulator::HandleKeyUp(uint32 key, uint32 modifiers, Command** _command)
{
return false;
}
bool
Manipulator::UpdateCursor()
{
return false;
}
BRect
Manipulator::TrackingBounds(BView* withinView)
{
return Bounds();
}
void
Manipulator::AttachedToView(BView* view)
{
}
void
Manipulator::DetachedFromView(BView* view)
{
}