Lines Matching defs:menu

509 	// Create the File menu
510 BMenu* menu = new BMenu(B_TRANSLATE("File"));
511 menu->AddItem(new BMenuItem(B_TRANSLATE("Open" B_UTF8_ELLIPSIS),
513 menu->AddItem(new BMenuItem(B_TRANSLATE("Save as" B_UTF8_ELLIPSIS),
515 menu->AddSeparatorItem();
516 menu->AddItem(new BMenuItem(
519 menu->AddSeparatorItem();
520 menu->AddItem(new BMenuItem(B_TRANSLATE("Quit"),
522 menuBar->AddItem(menu);
524 // Create keyboard layout menu
529 // Create the Font menu
643 KeymapWindow::_AddKeyboardLayouts(BMenu* menu)
663 _AddKeyboardLayoutMenu(menu, directory);
668 /*! Adds a menu populated with the keyboard layouts found in the passed
669 in directory to the passed in menu. Each subdirectory in the passed
673 KeymapWindow::_AddKeyboardLayoutMenu(BMenu* menu, BDirectory directory)
678 if (menu->FindItem(ref.name) != NULL)
688 menu->AddItem(submenu, (int32)0);
693 menu->AddItem(new BMenuItem(B_TRANSLATE_NOCOLLECT_ALL((ref.name),
701 corresponding menu item. If the path is not found in the menu this method
702 sets the default keyboard layout and marks the corresponding menu item.
709 // mark a menu item (unmarking all others)
729 searching for the menu item with the passed in path. This method always
730 iterates through all menu items and unmarks them. If no item with the
735 KeymapWindow::_MarkKeyboardLayoutItem(const char* path, BMenu* menu)
740 for (int32 i = 0; i < menu->CountItems(); i++) {
741 item = menu->ItemAt(i);
783 /*! Marks the menu items corresponding to the dead key state of the current
1138 KeymapWindow::_GetMarkedKeyboardLayoutPath(BMenu* menu)
1144 for (int32 i = 0; i < menu->CountItems(); i++) {
1145 item = menu->ItemAt(i);