xref: /haiku/src/apps/icon-o-matic/generic/gui/stateview/Manipulator.cpp (revision 1d9d47fc72028bb71b5f232a877231e59cfe2438)
1 /*
2  * Copyright 2006, 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
14 Manipulator::Manipulator(Observable* object)
15 	: Observer(),
16 	  fManipulatedObject(object)
17 {
18 	if (fManipulatedObject)
19 		fManipulatedObject->AddObserver(this);
20 }
21 
22 // destructor
23 Manipulator::~Manipulator()
24 {
25 	if (fManipulatedObject)
26 		fManipulatedObject->RemoveObserver(this);
27 }
28 
29 // #pragma mark -
30 
31 // Draw
32 void
33 Manipulator::Draw(BView* into, BRect updateRect)
34 {
35 }
36 
37 // MouseDown
38 bool
39 Manipulator::MouseDown(BPoint where)
40 {
41 	return false;
42 }
43 
44 // MouseMoved
45 void
46 Manipulator::MouseMoved(BPoint where)
47 {
48 }
49 
50 // MouseUp
51 Command*
52 Manipulator::MouseUp()
53 {
54 	return NULL;
55 }
56 
57 // MouseOver
58 bool
59 Manipulator::MouseOver(BPoint where)
60 {
61 	return false;
62 }
63 
64 // DoubleClicked
65 bool
66 Manipulator::DoubleClicked(BPoint where)
67 {
68 	return false;
69 }
70 
71 // #pragma mark -
72 
73 bool
74 Manipulator::MessageReceived(BMessage* message, Command** _command)
75 {
76 	return false;
77 }
78 
79 // #pragma mark -
80 
81 // ModifiersChanged
82 void
83 Manipulator::ModifiersChanged(uint32 modifiers)
84 {
85 }
86 
87 // HandleKeyDown
88 bool
89 Manipulator::HandleKeyDown(uint32 key, uint32 modifiers, Command** _command)
90 {
91 	return false;
92 }
93 
94 // HandleKeyUp
95 bool
96 Manipulator::HandleKeyUp(uint32 key, uint32 modifiers, Command** _command)
97 {
98 	return false;
99 }
100 
101 // UpdateCursor
102 void
103 Manipulator::UpdateCursor()
104 {
105 }
106 
107 // #pragma mark -
108 
109 // TrackingBounds
110 BRect
111 Manipulator::TrackingBounds(BView* withinView)
112 {
113 	return Bounds();
114 }
115 
116 // AttachedToView
117 void
118 Manipulator::AttachedToView(BView* view)
119 {
120 }
121 
122 // DetachedFromView
123 void
124 Manipulator::DetachedFromView(BView* view)
125 {
126 }
127