@@ -46,7 +46,7 @@ All rights reserved.
4646#include " SlowMenu.h"
4747
4848
49- template <class T > class BObjectList ;
49+ template <class T , bool O > class BObjectList ;
5050class BMenuItem ;
5151
5252namespace BPrivate {
@@ -75,9 +75,9 @@ class TrackingHookData {
7575class BNavMenu : public BSlowMenu {
7676 public:
7777 BNavMenu (const char * title, uint32 message, const BHandler *,
78- BWindow * parentWindow = NULL , const BObjectList<BString> * list = NULL );
78+ BWindow* parentWindow = NULL , const BStringList* list = NULL );
7979 BNavMenu (const char * title, uint32 message, const BMessenger &,
80- BWindow * parentWindow = NULL , const BObjectList<BString> * list = NULL );
80+ BWindow* parentWindow = NULL , const BStringList* list = NULL );
8181 // parentWindow, if specified, will be closed if nav menu item invoked
8282 // with option held down
8383
@@ -95,8 +95,8 @@ class BNavMenu : public BSlowMenu {
9595 void SetTarget (const BMessenger &);
9696 BMessenger Target ();
9797
98- void SetTypesList (const BObjectList<BString> * list);
99- const BObjectList<BString> * TypesList () const ;
98+ void SetTypesList (const BStringList* list);
99+ const BStringList* TypesList () const ;
100100
101101 void AddNavDir (const Model *model, uint32 what, BHandler *target,
102102 bool populateSubmenu);
@@ -110,10 +110,10 @@ class BNavMenu : public BSlowMenu {
110110 static int CompareFolderNamesFirstOne (const BMenuItem *, const BMenuItem *);
111111 static int CompareOne (const BMenuItem *, const BMenuItem *);
112112
113- static ModelMenuItem * NewModelItem (Model *, const BMessage *, const BMessenger & ,
114- bool suppressFolderHierarchy= false , BContainerWindow * = NULL ,
115- const BObjectList<BString> * typeslist = NULL ,
116- TrackingHookData * hook = NULL );
113+ static ModelMenuItem* NewModelItem (Model*, const BMessage* ,
114+ const BMessenger&, bool suppressFolderHierarchy = false ,
115+ BContainerWindow* = NULL , const BStringList* typeslist = NULL ,
116+ TrackingHookData* hook = NULL );
117117
118118 TrackingHookData *InitTrackingHook (bool (*hookfunction)(BMenu *, void *),
119119 const BMessenger *target, const BMessage *dragMessage);
@@ -137,11 +137,11 @@ class BNavMenu : public BSlowMenu {
137137
138138 // menu building state
139139 uint8 fFlags ;
140- BObjectList<BMenuItem> * fItemList ;
140+ BObjectList<BMenuItem, false >* fItemList ;
141141 EntryListBase *fContainer ;
142142 bool fIteratingDesktop ;
143143
144- const BObjectList<BString> * fTypesList ;
144+ BStringList* fTypesList ;
145145
146146 TrackingHookData fTrackingHook ;
147147};
@@ -154,11 +154,11 @@ class BNavMenu : public BSlowMenu {
154154bool SpringLoadedFolderCompareMessages (const BMessage *incoming,
155155 const BMessage *dragmessage);
156156void SpringLoadedFolderSetMenuStates (const BMenu *menu,
157- const BObjectList<BString> *typeslist);
157+ const BStringList *typeslist);
158158void SpringLoadedFolderAddUniqueTypeToList (entry_ref *ref,
159- BObjectList<BString> *typeslist);
159+ BStringList *typeslist);
160160void SpringLoadedFolderCacheDragData (const BMessage *incoming,
161- BMessage **, BObjectList<BString> **typeslist);
161+ BMessage **, BStringList **typeslist);
162162
163163} // namespace BPrivate
164164
0 commit comments