* Indentation cleanup
+alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32724 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Haiku, Inc. All Rights Reserved.
|
* Copyright 2007-2009, 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
|
||||||
@@ -12,71 +12,80 @@
|
|||||||
|
|
||||||
class BPopUpMenu : public BMenu {
|
class BPopUpMenu : public BMenu {
|
||||||
public:
|
public:
|
||||||
BPopUpMenu(const char* title, bool radioMode = true,
|
BPopUpMenu(const char* title,
|
||||||
bool autoRename = true,
|
bool radioMode = true,
|
||||||
menu_layout layout = B_ITEMS_IN_COLUMN);
|
bool autoRename = true,
|
||||||
BPopUpMenu(BMessage* data);
|
menu_layout layout = B_ITEMS_IN_COLUMN);
|
||||||
virtual ~BPopUpMenu();
|
BPopUpMenu(BMessage* data);
|
||||||
|
virtual ~BPopUpMenu();
|
||||||
|
|
||||||
virtual status_t Archive(BMessage* data, bool deep = true) const;
|
virtual status_t Archive(BMessage* archive,
|
||||||
static BArchivable* Instantiate(BMessage* data);
|
bool deep = true) const;
|
||||||
|
static BArchivable* Instantiate(BMessage* archive);
|
||||||
|
|
||||||
BMenuItem* Go(BPoint where, bool autoInvoke = false,
|
BMenuItem* Go(BPoint where, bool autoInvoke = false,
|
||||||
bool keepOpen = false, bool async = false);
|
bool keepOpen = 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 where);
|
||||||
virtual void MouseUp(BPoint point);
|
virtual void MouseUp(BPoint where);
|
||||||
virtual void MouseMoved(BPoint point, uint32 code,
|
virtual void MouseMoved(BPoint where, uint32 transit,
|
||||||
const BMessage* message);
|
const BMessage* dragMessage);
|
||||||
virtual void AttachedToWindow();
|
virtual void AttachedToWindow();
|
||||||
virtual void DetachedFromWindow();
|
virtual void DetachedFromWindow();
|
||||||
virtual void FrameMoved(BPoint newPosition);
|
virtual void FrameMoved(BPoint newPosition);
|
||||||
virtual void FrameResized(float newWidth, float newHeight);
|
virtual void FrameResized(float newWidth, float newHeight);
|
||||||
|
|
||||||
virtual BHandler* ResolveSpecifier(BMessage* message, int32 index,
|
virtual BHandler* ResolveSpecifier(BMessage* message,
|
||||||
BMessage* specifier, int32 form,
|
int32 index, BMessage* specifier,
|
||||||
const char* property);
|
int32 form, const char* property);
|
||||||
virtual status_t GetSupportedSuites(BMessage* data);
|
virtual status_t GetSupportedSuites(BMessage* data);
|
||||||
|
|
||||||
virtual status_t Perform(perform_code code, void* arg);
|
virtual status_t Perform(perform_code code, void* data);
|
||||||
|
|
||||||
virtual void ResizeToPreferred();
|
virtual void ResizeToPreferred();
|
||||||
virtual void GetPreferredSize(float* _width, float* _height);
|
virtual void GetPreferredSize(float* _width,
|
||||||
virtual void MakeFocus(bool state = true);
|
float* _height);
|
||||||
virtual void AllAttached();
|
virtual void MakeFocus(bool state = true);
|
||||||
virtual void AllDetached();
|
virtual void AllAttached();
|
||||||
|
virtual void AllDetached();
|
||||||
|
|
||||||
void SetAsyncAutoDestruct(bool state);
|
void SetAsyncAutoDestruct(bool state);
|
||||||
bool AsyncAutoDestruct() const;
|
bool AsyncAutoDestruct() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual BPoint ScreenLocation();
|
virtual BPoint ScreenLocation();
|
||||||
|
|
||||||
virtual void _ReservedPopUpMenu1();
|
virtual void _ReservedPopUpMenu1();
|
||||||
virtual void _ReservedPopUpMenu2();
|
virtual void _ReservedPopUpMenu2();
|
||||||
virtual void _ReservedPopUpMenu3();
|
virtual void _ReservedPopUpMenu3();
|
||||||
|
|
||||||
BPopUpMenu& operator=(const BPopUpMenu& other);
|
BPopUpMenu& operator=(const BPopUpMenu& other);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BMenuItem* _Go(BPoint where, bool autoInvoke, bool startOpened,
|
BMenuItem* _Go(BPoint where, bool autoInvoke,
|
||||||
BRect* specialRect, bool async);
|
bool startOpened, BRect* specialRect,
|
||||||
BMenuItem* _StartTrack(BPoint where, bool autoInvoke,
|
bool async);
|
||||||
bool startOpened, BRect* specialRect);
|
BMenuItem* _StartTrack(BPoint where, bool autoInvoke,
|
||||||
BMenuItem* _WaitMenu(void* data);
|
bool startOpened, BRect* specialRect);
|
||||||
|
BMenuItem* _WaitMenu(void* data);
|
||||||
|
|
||||||
static int32 _thread_entry(void* data);
|
static int32 _thread_entry(void* data);
|
||||||
|
|
||||||
BPoint fWhere;
|
private:
|
||||||
bool fUseWhere;
|
BPoint fWhere;
|
||||||
bool fAutoDestruct;
|
bool fUseWhere;
|
||||||
bool _fUnusedBool1;
|
bool fAutoDestruct;
|
||||||
bool _fUnusedBool2;
|
|
||||||
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