1/*
2 * Copyright 2006-2007, Haiku.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Stephan A��mus <superstippi@gmx.de>
7 */
8
9#include "Manipulator.h"
10
11#include "Observable.h"
12
13// constructor
14Manipulator::Manipulator(Observable* object)
15	: Observer(),
16	  fManipulatedObject(object)
17{
18	if (fManipulatedObject)
19		fManipulatedObject->AddObserver(this);
20}
21
22// destructor
23Manipulator::~Manipulator()
24{
25	if (fManipulatedObject)
26		fManipulatedObject->RemoveObserver(this);
27}
28
29// #pragma mark -
30
31// Draw
32void
33Manipulator::Draw(BView* into, BRect updateRect)
34{
35}
36
37// MouseDown
38bool
39Manipulator::MouseDown(BPoint where)
40{
41	return false;
42}
43
44// MouseMoved
45void
46Manipulator::MouseMoved(BPoint where)
47{
48}
49
50// MouseUp
51Command*
52Manipulator::MouseUp()
53{
54	return NULL;
55}
56
57// MouseOver
58bool
59Manipulator::MouseOver(BPoint where)
60{
61	return false;
62}
63
64// DoubleClicked
65bool
66Manipulator::DoubleClicked(BPoint where)
67{
68	return false;
69}
70
71// ShowContextMenu
72bool
73Manipulator::ShowContextMenu(BPoint where)
74{
75	return false;
76}
77
78// #pragma mark -
79
80bool
81Manipulator::MessageReceived(BMessage* message, Command** _command)
82{
83	return false;
84}
85
86// #pragma mark -
87
88// ModifiersChanged
89void
90Manipulator::ModifiersChanged(uint32 modifiers)
91{
92}
93
94// HandleKeyDown
95bool
96Manipulator::HandleKeyDown(uint32 key, uint32 modifiers, Command** _command)
97{
98	return false;
99}
100
101// HandleKeyUp
102bool
103Manipulator::HandleKeyUp(uint32 key, uint32 modifiers, Command** _command)
104{
105	return false;
106}
107
108// UpdateCursor
109bool
110Manipulator::UpdateCursor()
111{
112	return false;
113}
114
115// #pragma mark -
116
117// TrackingBounds
118BRect
119Manipulator::TrackingBounds(BView* withinView)
120{
121	return Bounds();
122}
123
124// AttachedToView
125void
126Manipulator::AttachedToView(BView* view)
127{
128}
129
130// DetachedFromView
131void
132Manipulator::DetachedFromView(BView* view)
133{
134}
135