2 * Copyright 2006-2009, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
13 #define DEFAULT_ICON_SIZE 32
15 class PadView
: public BView
{
17 PadView(const char* name
);
21 virtual void Draw(BRect updateRect
);
22 virtual void MessageReceived(BMessage
* message
);
23 virtual void MouseDown(BPoint where
);
24 virtual void MouseUp(BPoint where
);
25 virtual void MouseMoved(BPoint where
, uint32 transit
,
26 const BMessage
* dragMessage
);
29 void AddButton(LaunchButton
* button
,
30 LaunchButton
* beforeButton
= NULL
);
31 bool RemoveButton(LaunchButton
* button
);
32 LaunchButton
* ButtonAt(int32 index
) const;
34 void DisplayMenu(BPoint where
,
35 LaunchButton
* button
= NULL
) const;
37 void SetOrientation(enum orientation orientation
);
38 enum orientation
Orientation() const;
40 void SetIconSize(uint32 size
);
41 uint32
IconSize() const;
43 void SetIgnoreDoubleClick(bool refuse
);
44 bool IgnoreDoubleClick() const;
47 void _NotifySettingsChanged();
52 BGroupLayout
* fButtonLayout
;