Tracker: Style fixes to NavMenu.h

Pointer style, whitespace.

Convert TrackingHookData from a class to a struct (all members public)
This commit is contained in:
John Scipione 2014-07-22 22:23:02 -04:00
parent 2660268936
commit 0cf10e9dce

View File

@ -49,6 +49,7 @@ All rights reserved.
template<class T> class BObjectList;
class BMenuItem;
namespace BPrivate {
class Model;
@ -57,8 +58,7 @@ class ModelMenuItem;
class EntryListBase;
class TrackingHookData {
public:
struct TrackingHookData {
TrackingHookData()
:
fTrackingHook(NULL),
@ -101,7 +101,8 @@ class BNavMenu : public BSlowMenu {
void AddNavDir(const Model* model, uint32 what, BHandler* target,
bool populateSubmenu);
void AddNavParentDir(const char *name, const Model *model, uint32 what, BHandler *target);
void AddNavParentDir(const char* name, const Model* model, uint32 what,
BHandler* target);
void AddNavParentDir(const Model* model, uint32 what, BHandler* target);
void SetShowParent(bool show);
@ -110,9 +111,9 @@ class BNavMenu : public BSlowMenu {
static int CompareFolderNamesFirstOne(const BMenuItem*, const BMenuItem*);
static int CompareOne(const BMenuItem*, const BMenuItem*);
static ModelMenuItem *NewModelItem(Model *, const BMessage *, const BMessenger &,
bool suppressFolderHierarchy=false, BContainerWindow * = NULL,
const BObjectList<BString> *typeslist = NULL,
static ModelMenuItem* NewModelItem(Model*, const BMessage*,
const BMessenger&, bool suppressFolderHierarchy = false,
BContainerWindow* = NULL, const BObjectList<BString>* typeslist = NULL,
TrackingHookData* hook = NULL);
TrackingHookData* InitTrackingHook(bool (*hookfunction)(BMenu*, void*),
@ -165,4 +166,5 @@ _IMPEXP_TRACKER void SpringLoadedFolderCacheDragData(const BMessage *incoming,
using namespace BPrivate;
#endif // NAV_MENU_H