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