* Cleaned up odd indentation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26410 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007, Haiku, Inc. All Rights Reserved.
|
* Copyright 2007-2008, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _POP_UP_MENU_H
|
#ifndef _POP_UP_MENU_H
|
||||||
#define _POP_UP_MENU_H
|
#define _POP_UP_MENU_H
|
||||||
|
|
||||||
|
|
||||||
#include <BeBuild.h>
|
#include <BeBuild.h>
|
||||||
#include <Menu.h>
|
#include <Menu.h>
|
||||||
|
|
||||||
|
|
||||||
class BPopUpMenu : public BMenu {
|
class BPopUpMenu : public BMenu {
|
||||||
public:
|
public:
|
||||||
BPopUpMenu(const char* title, bool radioMode = true,
|
BPopUpMenu(const char* title, bool radioMode = true,
|
||||||
@@ -20,12 +22,9 @@ class BPopUpMenu : public BMenu {
|
|||||||
static BArchivable* Instantiate(BMessage* data);
|
static BArchivable* Instantiate(BMessage* data);
|
||||||
|
|
||||||
BMenuItem* Go(BPoint where, bool autoInvoke = false,
|
BMenuItem* Go(BPoint where, bool autoInvoke = false,
|
||||||
bool keepOpen = false,
|
bool keepOpen = false, bool async = false);
|
||||||
bool async = false);
|
BMenuItem* Go(BPoint where, bool autoInvoke, bool keepOpen,
|
||||||
BMenuItem* Go(BPoint where, bool autoInvoke,
|
BRect openRect, bool async = false);
|
||||||
bool keepOpen,
|
|
||||||
BRect openRect,
|
|
||||||
bool async = false);
|
|
||||||
|
|
||||||
virtual void MessageReceived(BMessage* message);
|
virtual void MessageReceived(BMessage* message);
|
||||||
virtual void MouseDown(BPoint point);
|
virtual void MouseDown(BPoint point);
|
||||||
@@ -45,7 +44,7 @@ class BPopUpMenu : public BMenu {
|
|||||||
virtual status_t Perform(perform_code code, void* arg);
|
virtual status_t Perform(perform_code code, void* arg);
|
||||||
|
|
||||||
virtual void ResizeToPreferred();
|
virtual void ResizeToPreferred();
|
||||||
virtual void GetPreferredSize(float *width, float *height);
|
virtual void GetPreferredSize(float* _width, float* _height);
|
||||||
virtual void MakeFocus(bool state = true);
|
virtual void MakeFocus(bool state = true);
|
||||||
virtual void AllAttached();
|
virtual void AllAttached();
|
||||||
virtual void AllDetached();
|
virtual void AllDetached();
|
||||||
@@ -60,7 +59,7 @@ class BPopUpMenu : public BMenu {
|
|||||||
virtual void _ReservedPopUpMenu2();
|
virtual void _ReservedPopUpMenu2();
|
||||||
virtual void _ReservedPopUpMenu3();
|
virtual void _ReservedPopUpMenu3();
|
||||||
|
|
||||||
BPopUpMenu &operator=(const BPopUpMenu &);
|
BPopUpMenu& operator=(const BPopUpMenu& other);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BMenuItem* _Go(BPoint where, bool autoInvoke, bool startOpened,
|
BMenuItem* _Go(BPoint where, bool autoInvoke, bool startOpened,
|
||||||
@@ -69,7 +68,7 @@ class BPopUpMenu : public BMenu {
|
|||||||
bool startOpened, BRect* specialRect);
|
bool startOpened, BRect* specialRect);
|
||||||
BMenuItem* _WaitMenu(void* data);
|
BMenuItem* _WaitMenu(void* data);
|
||||||
|
|
||||||
static int32 _thread_entry(void *);
|
static int32 _thread_entry(void* data);
|
||||||
|
|
||||||
BPoint fWhere;
|
BPoint fWhere;
|
||||||
bool fUseWhere;
|
bool fUseWhere;
|
||||||
@@ -80,5 +79,4 @@ class BPopUpMenu : public BMenu {
|
|||||||
uint32 _reserved[3];
|
uint32 _reserved[3];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // _POP_UP_MENU_H
|
||||||
#endif /* _POP_UP_MENU_H */
|
|
||||||
|
|||||||
Reference in New Issue
Block a user