More style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30305 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,11 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006, Haiku.
|
* Copyright 2006 - 2009, Stephan Aßmus <[email protected]>
|
||||||
* Distributed under the terms of the MIT License.
|
* All rights reserved. Distributed under the terms of the MIT License.
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Stephan Aßmus <[email protected]>
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PAD_VIEW_H
|
#ifndef PAD_VIEW_H
|
||||||
#define PAD_VIEW_H
|
#define PAD_VIEW_H
|
||||||
|
|
||||||
@@ -17,7 +13,7 @@ class LaunchButton;
|
|||||||
#define DEFAULT_ICON_SIZE 32
|
#define DEFAULT_ICON_SIZE 32
|
||||||
|
|
||||||
class PadView : public BView {
|
class PadView : public BView {
|
||||||
public:
|
public:
|
||||||
PadView(const char* name);
|
PadView(const char* name);
|
||||||
virtual ~PadView();
|
virtual ~PadView();
|
||||||
|
|
||||||
@@ -27,16 +23,16 @@ class PadView : public BView {
|
|||||||
virtual void MouseDown(BPoint where);
|
virtual void MouseDown(BPoint where);
|
||||||
virtual void MouseUp(BPoint where);
|
virtual void MouseUp(BPoint where);
|
||||||
virtual void MouseMoved(BPoint where, uint32 transit,
|
virtual void MouseMoved(BPoint where, uint32 transit,
|
||||||
const BMessage* dragMessage);
|
const BMessage* dragMessage);
|
||||||
|
|
||||||
// PadView
|
// PadView
|
||||||
void AddButton(LaunchButton* button,
|
void AddButton(LaunchButton* button,
|
||||||
LaunchButton* beforeButton = NULL);
|
LaunchButton* beforeButton = NULL);
|
||||||
bool RemoveButton(LaunchButton* button);
|
bool RemoveButton(LaunchButton* button);
|
||||||
LaunchButton* ButtonAt(int32 index) const;
|
LaunchButton* ButtonAt(int32 index) const;
|
||||||
|
|
||||||
void DisplayMenu(BPoint where,
|
void DisplayMenu(BPoint where,
|
||||||
LaunchButton* button = NULL) const;
|
LaunchButton* button = NULL) const;
|
||||||
|
|
||||||
void SetOrientation(enum orientation orientation);
|
void SetOrientation(enum orientation orientation);
|
||||||
enum orientation Orientation() const;
|
enum orientation Orientation() const;
|
||||||
@@ -44,7 +40,7 @@ class PadView : public BView {
|
|||||||
void SetIconSize(uint32 size);
|
void SetIconSize(uint32 size);
|
||||||
uint32 IconSize() const;
|
uint32 IconSize() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BPoint fDragOffset;
|
BPoint fDragOffset;
|
||||||
bool fDragging;
|
bool fDragging;
|
||||||
bigtime_t fClickTime;
|
bigtime_t fClickTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user