Lines Matching refs:menu

104 	sym = menu->sym;  in updateMenu()
105 prop = menu->prompt; in updateMenu()
106 prompt = menu_get_prompt(menu); in updateMenu()
114 if (sym && list->rootEntry == menu) in updateMenu()
186 if (!menu) in testUpdateMenu()
189 sym_calc_value(menu->sym); in testUpdateMenu()
190 if (menu->flags & MENU_CHANGED) { in testUpdateMenu()
192 menu->flags &= ~MENU_CHANGED; in testUpdateMenu()
193 for (i = (ConfigItem*)menu->data; i; i = i->nextItem) in testUpdateMenu()
205 if (menu) { in init()
207 nextItem = (ConfigItem*)menu->data; in init()
208 menu->data = this; in init()
212 sym_calc_value(menu->sym); in init()
214 if (menu->sym) { in init()
215 enum symbol_type type = menu->sym->type; in init()
233 if (menu) { in ~ConfigItem()
234 ConfigItem** ip = (ConfigItem**)&menu->data; in ~ConfigItem()
256 if (!item || !item->menu || !menu_is_visible(item->menu)) in createEditor()
278 if (!item || !item->menu) in setModelData()
281 sym = item->menu->sym; in setModelData()
340 bool ConfigList::menuSkip(struct menu *menu) in menuSkip() argument
342 if (optMode == normalOpt && menu_is_visible(menu)) in menuSkip()
344 if (optMode == promptOpt && menu_has_prompt(menu)) in menuSkip()
383 ConfigItem* ConfigList::findConfigItem(struct menu *menu) in findConfigItem() argument
385 ConfigItem* item = (ConfigItem*)menu->data; in findConfigItem()
397 struct menu *menu; in updateSelection() local
407 menu = item->menu; in updateSelection()
408 emit menuChanged(menu); in updateSelection()
409 if (!menu) in updateSelection()
411 type = menu->prompt ? menu->prompt->type : P_UNKNOWN; in updateSelection()
413 emit menuSelected(menu); in updateSelection()
428 if (!item->menu) in updateList()
430 item->testUpdateMenu(menu_is_visible(item->menu)); in updateList()
491 sym = item->menu ? item->menu->sym : 0; in setValue()
503 if (oldval == no && item->menu->list) in setValue()
513 struct menu* menu; in changeValue() local
516 menu = item->menu; in changeValue()
517 if (!menu) in changeValue()
519 sym = menu->sym; in changeValue()
521 if (item->menu->list) in changeValue()
532 if (item->menu->list) { in changeValue()
546 void ConfigList::setRootMenu(struct menu *menu) in setRootMenu() argument
550 if (rootEntry == menu) in setRootMenu()
552 type = menu && menu->prompt ? menu->prompt->type : P_UNKNOWN; in setRootMenu()
556 rootEntry = menu; in setRootMenu()
567 struct menu *oldroot; in setParentMenu()
577 if (item->menu == oldroot) { in setParentMenu()
594 void ConfigList::updateMenuList(ConfigItem *parent, struct menu* menu) in updateMenuList() argument
596 struct menu* child; in updateMenuList()
602 if (!menu) { in updateMenuList()
614 for (child = menu->list; child; child = child->next) { in updateMenuList()
635 if (!item || item->menu != child) in updateMenuList()
648 if (item && item->menu == child) { in updateMenuList()
659 void ConfigList::updateMenuList(struct menu *menu) in updateMenuList() argument
661 struct menu* child; in updateMenuList()
667 if (!menu) { in updateMenuList()
679 for (child = menu->list; child; child = child->next) { in updateMenuList()
700 if (!item || item->menu != child) in updateMenuList()
713 if (item && item->menu == child) { in updateMenuList()
728 struct menu *menu; in keyPressEvent() local
750 menu = item->menu; in keyPressEvent()
751 if (!menu) in keyPressEvent()
753 type = menu->prompt ? menu->prompt->type : P_UNKNOWN; in keyPressEvent()
754 if (type == P_MENU && rootEntry != menu && in keyPressEvent()
757 emit menuSelected(menu); in keyPressEvent()
759 emit itemSelected(menu); in keyPressEvent()
792 struct menu *menu; in mouseReleaseEvent() local
800 menu = item->menu; in mouseReleaseEvent()
812 } else if (!menu) in mouseReleaseEvent()
814 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; in mouseReleaseEvent()
815 if (ptype == P_MENU && rootEntry != menu && in mouseReleaseEvent()
818 emit menuSelected(menu); in mouseReleaseEvent()
845 struct menu *menu; in mouseDoubleClickEvent() local
854 menu = item->menu; in mouseDoubleClickEvent()
855 if (!menu) in mouseDoubleClickEvent()
857 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; in mouseDoubleClickEvent()
860 emit itemSelected(menu); in mouseDoubleClickEvent()
862 emit menuSelected(menu); in mouseDoubleClickEvent()
863 } else if (menu->sym) in mouseDoubleClickEvent()
873 struct menu *menu = NULL; in focusInEvent() local
880 menu = item->menu; in focusInEvent()
882 emit gotFocus(menu); in focusInEvent()
979 void ConfigInfoView::setInfo(struct menu *m) in setInfo()
1177 struct menu *m = NULL; in clicked()
1202 m = prop->menu; in clicked()
1309 lastItem = new ConfigItem(list, lastItem, prop->menu, in search()
1310 menu_is_visible(prop->menu)); in search()
1467 QMenu *menu = menuBar()->addMenu("&File"); in ConfigMainWindow() local
1468 menu->addAction(loadAction); in ConfigMainWindow()
1469 menu->addAction(saveAction); in ConfigMainWindow()
1470 menu->addAction(saveAsAction); in ConfigMainWindow()
1471 menu->addSeparator(); in ConfigMainWindow()
1472 menu->addAction(quitAction); in ConfigMainWindow()
1475 menu = menuBar()->addMenu("&Edit"); in ConfigMainWindow()
1476 menu->addAction(searchAction); in ConfigMainWindow()
1479 menu = menuBar()->addMenu("&Option"); in ConfigMainWindow()
1480 menu->addAction(showNameAction); in ConfigMainWindow()
1481 menu->addSeparator(); in ConfigMainWindow()
1482 menu->addActions(optGroup->actions()); in ConfigMainWindow()
1483 menu->addSeparator(); in ConfigMainWindow()
1484 menu->addAction(showDebugAction); in ConfigMainWindow()
1487 menu = menuBar()->addMenu("&Help"); in ConfigMainWindow()
1488 menu->addAction(showIntroAction); in ConfigMainWindow()
1489 menu->addAction(showAboutAction); in ConfigMainWindow()
1596 void ConfigMainWindow::changeItens(struct menu *menu) in changeItens() argument
1598 configList->setRootMenu(menu); in changeItens()
1601 void ConfigMainWindow::changeMenu(struct menu *menu) in changeMenu() argument
1603 menuList->setRootMenu(menu); in changeMenu()
1606 void ConfigMainWindow::setMenuLink(struct menu *menu) in setMenuLink() argument
1608 struct menu *parent; in setMenuLink()
1612 if (configList->menuSkip(menu)) in setMenuLink()
1618 parent = menu_get_parent_menu(menu); in setMenuLink()
1624 if (menu->flags & MENU_ROOT) { in setMenuLink()
1625 menuList->setRootMenu(menu); in setMenuLink()
1629 parent = menu_get_parent_menu(menu->parent); in setMenuLink()
1653 item = list->findConfigItem(menu); in setMenuLink()
1658 helpText->setInfo(menu); in setMenuLink()
1848 void fixup_rootmenu(struct menu *menu) in fixup_rootmenu() argument
1850 struct menu *child; in fixup_rootmenu()
1853 menu->flags |= MENU_ROOT; in fixup_rootmenu()
1854 for (child = menu->list; child; child = child->next) { in fixup_rootmenu()