* 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,84 +1,82 @@
|
|||||||
/*
|
/*
|
||||||
* 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,
|
||||||
bool autoRename = true,
|
bool autoRename = true,
|
||||||
menu_layout layout = B_ITEMS_IN_COLUMN);
|
menu_layout layout = B_ITEMS_IN_COLUMN);
|
||||||
BPopUpMenu(BMessage *data);
|
BPopUpMenu(BMessage* data);
|
||||||
virtual ~BPopUpMenu();
|
virtual ~BPopUpMenu();
|
||||||
|
|
||||||
virtual status_t Archive(BMessage *data, bool deep = true) const;
|
|
||||||
static BArchivable* Instantiate(BMessage *data);
|
|
||||||
|
|
||||||
BMenuItem* Go(BPoint where, bool autoInvoke = false,
|
virtual status_t Archive(BMessage* data, bool deep = true) const;
|
||||||
bool keepOpen = false,
|
static BArchivable* Instantiate(BMessage* data);
|
||||||
bool async = false);
|
|
||||||
BMenuItem* Go(BPoint where, bool autoInvoke,
|
|
||||||
bool keepOpen,
|
|
||||||
BRect openRect,
|
|
||||||
bool async = false);
|
|
||||||
|
|
||||||
virtual void MessageReceived(BMessage *message);
|
BMenuItem* Go(BPoint where, bool autoInvoke = false,
|
||||||
virtual void MouseDown(BPoint point);
|
bool keepOpen = false, bool async = false);
|
||||||
virtual void MouseUp(BPoint point);
|
BMenuItem* Go(BPoint where, bool autoInvoke, bool keepOpen,
|
||||||
virtual void MouseMoved(BPoint point, uint32 code,
|
BRect openRect, bool async = false);
|
||||||
const BMessage *message);
|
|
||||||
virtual void AttachedToWindow();
|
|
||||||
virtual void DetachedFromWindow();
|
|
||||||
virtual void FrameMoved(BPoint newPosition);
|
|
||||||
virtual void FrameResized(float newWidth, float newHeight);
|
|
||||||
|
|
||||||
virtual BHandler* ResolveSpecifier(BMessage *message, int32 index,
|
virtual void MessageReceived(BMessage* message);
|
||||||
BMessage *specifier, int32 form,
|
virtual void MouseDown(BPoint point);
|
||||||
const char *property);
|
virtual void MouseUp(BPoint point);
|
||||||
virtual status_t GetSupportedSuites(BMessage *data);
|
virtual void MouseMoved(BPoint point, uint32 code,
|
||||||
|
const BMessage* message);
|
||||||
|
virtual void AttachedToWindow();
|
||||||
|
virtual void DetachedFromWindow();
|
||||||
|
virtual void FrameMoved(BPoint newPosition);
|
||||||
|
virtual void FrameResized(float newWidth, float newHeight);
|
||||||
|
|
||||||
virtual status_t Perform(perform_code code, void *arg);
|
virtual BHandler* ResolveSpecifier(BMessage* message, int32 index,
|
||||||
|
BMessage* specifier, int32 form,
|
||||||
|
const char* property);
|
||||||
|
virtual status_t GetSupportedSuites(BMessage* data);
|
||||||
|
|
||||||
virtual void ResizeToPreferred();
|
virtual status_t Perform(perform_code code, void* arg);
|
||||||
virtual void GetPreferredSize(float *width, float *height);
|
|
||||||
virtual void MakeFocus(bool state = true);
|
|
||||||
virtual void AllAttached();
|
|
||||||
virtual void AllDetached();
|
|
||||||
|
|
||||||
void SetAsyncAutoDestruct(bool state);
|
virtual void ResizeToPreferred();
|
||||||
bool AsyncAutoDestruct() const;
|
virtual void GetPreferredSize(float* _width, float* _height);
|
||||||
|
virtual void MakeFocus(bool state = true);
|
||||||
|
virtual void AllAttached();
|
||||||
|
virtual void AllDetached();
|
||||||
|
|
||||||
protected:
|
void SetAsyncAutoDestruct(bool state);
|
||||||
virtual BPoint ScreenLocation();
|
bool AsyncAutoDestruct() const;
|
||||||
|
|
||||||
virtual void _ReservedPopUpMenu1();
|
protected:
|
||||||
virtual void _ReservedPopUpMenu2();
|
virtual BPoint ScreenLocation();
|
||||||
virtual void _ReservedPopUpMenu3();
|
|
||||||
|
|
||||||
BPopUpMenu &operator=(const BPopUpMenu &);
|
virtual void _ReservedPopUpMenu1();
|
||||||
|
virtual void _ReservedPopUpMenu2();
|
||||||
|
virtual void _ReservedPopUpMenu3();
|
||||||
|
|
||||||
private:
|
BPopUpMenu& operator=(const BPopUpMenu& other);
|
||||||
BMenuItem *_Go(BPoint where, bool autoInvoke, bool startOpened,
|
|
||||||
BRect *specialRect, bool async);
|
|
||||||
BMenuItem *_StartTrack(BPoint where, bool autoInvoke,
|
|
||||||
bool startOpened, BRect *specialRect);
|
|
||||||
BMenuItem *_WaitMenu(void *data);
|
|
||||||
|
|
||||||
static int32 _thread_entry(void *);
|
private:
|
||||||
|
BMenuItem* _Go(BPoint where, bool autoInvoke, bool startOpened,
|
||||||
|
BRect* specialRect, bool async);
|
||||||
|
BMenuItem* _StartTrack(BPoint where, bool autoInvoke,
|
||||||
|
bool startOpened, BRect* specialRect);
|
||||||
|
BMenuItem* _WaitMenu(void* data);
|
||||||
|
|
||||||
BPoint fWhere;
|
static int32 _thread_entry(void* data);
|
||||||
bool fUseWhere;
|
|
||||||
bool fAutoDestruct;
|
BPoint fWhere;
|
||||||
bool _fUnusedBool1;
|
bool fUseWhere;
|
||||||
bool _fUnusedBool2;
|
bool fAutoDestruct;
|
||||||
thread_id fTrackThread;
|
bool _fUnusedBool1;
|
||||||
uint32 _reserved[3];
|
bool _fUnusedBool2;
|
||||||
|
thread_id fTrackThread;
|
||||||
|
uint32 _reserved[3];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // _POP_UP_MENU_H
|
||||||
#endif /* _POP_UP_MENU_H */
|
|
||||||
|
|||||||
Reference in New Issue
Block a user