Try to split the tracking function into smaller ones. Please bear with
me for the absolutely UGLY names. Also, if someone can suggest better ones... I seem not to have introduced any new bug. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19476 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -191,6 +191,10 @@ virtual void _ReservedMenu6();
|
||||
bool _show(bool selectFirstItem = false);
|
||||
void _hide();
|
||||
BMenuItem *_track(int *action, bigtime_t trackTime, long start = -1);
|
||||
|
||||
void _UpdateStateOpenSelect(BMenuItem *item, bigtime_t &openTime, bigtime_t &closeTime);
|
||||
void _UpdateStateClose(BMenuItem *item, const BPoint &where, const uint32 &buttons);
|
||||
|
||||
bool _AddItem(BMenuItem *item, int32 index);
|
||||
bool RemoveItems(int32 index,
|
||||
int32 count,
|
||||
@@ -236,8 +240,11 @@ virtual void _ReservedMenu6();
|
||||
bool IsStickyPrefOn();
|
||||
void RedrawAfterSticky(BRect bounds);
|
||||
bool OkToProceed(BMenuItem *);
|
||||
|
||||
bool CustomTrackingWantsToQuit();
|
||||
|
||||
void QuitTracking();
|
||||
|
||||
|
||||
status_t ParseMsg(BMessage *msg, int32 *sindex, BMessage *spec,
|
||||
int32 *form, const char **prop,
|
||||
|
||||
Reference in New Issue
Block a user