BNavMenu::BNavMenu(const char *title, uint32 message, const BMessenger &messenger, BWindow *parentWindow, const BObjectList<BString> *list) : BSlowMenu(title), fMessage(message), fMessenger(messenger), fParentWindow(parentWindow), fFlags(0), fItemList(0), fContainer(0), fTypesList(list) { InitIconPreloader(); SetFont(be_plain_font); // add the parent window to the invocation message so that it // can be closed if option modifier held down during invocation BContainerWindow *originatingWindow = dynamic_cast<BContainerWindow *>(fParentWindow); if (originatingWindow) fMessage.AddData("nodeRefsToClose", B_RAW_TYPE, originatingWindow->TargetModel()->NodeRef(), sizeof (node_ref)); // too long to have triggers SetTriggersEnabled(false); }
BSlowContextMenu::BSlowContextMenu(const char *title) : BPopUpMenu(title, false, false), fMenuBuilt(false), fMessage(B_REFS_RECEIVED), fParentWindow(NULL), fItemList(NULL), fContainer(NULL), fTypesList(NULL), fIsShowing(false) { InitIconPreloader(); SetFont(be_plain_font); SetTriggersEnabled(false); }
OpenWithMenu::OpenWithMenu(const char* label, const BMessage* entriesToOpen, BWindow* parentWindow, BHandler* target) : BSlowMenu(label), fEntriesToOpen(*entriesToOpen), target(target), fIterator(NULL), fSupportingAppList(NULL), fParentWindow(parentWindow) { InitIconPreloader(); SetFont(be_plain_font); // too long to have triggers SetTriggersEnabled(false); }