qcc_kplugin.menu ================ .. py:module:: qcc_kplugin.menu .. autoapi-nested-parse:: The Quantcore menu: six submenus that follow the flow, plus the panel and Settings:: Quantcore Design New / open, chip settings, rebuild, save as Python Edit undo / redo, edit / rename component, add coupling, delete route, rotate, duplicate, mirror, route-node tools (the keyboard-only actions live here: KLayout needs a menu entry for a shortcut) Check and LOM DRC, run the LOM simulation (it also writes the circuit, build/.circuit.json) Simulate from ``qcc_kplugin.flow.ACTIONS`` (submenu "simulate": Simulate, Open simulation layout, Import results), else "(coming soon)" Results from ``qcc_kplugin.flow.ACTIONS`` (submenu "results") Fab from ``qcc_kplugin.flow.ACTIONS`` (submenu "fab") Quantcore panel (Ctrl+Shift+P) Settings… Not in the menu on purpose (the audit of 2026-11-16: each is done by the panel, a dialog or KLayout itself): place a component (double-click it in the panel), selected path → route (the Connect tool), live rebuild (every edit already rebuilds with ``qcc build --keep-going``), write moved instances (moves and deletes with KLayout's own tools are written to design.json by themselves), save view as PNG (KLayout's File > Screenshot), junction values (the component dialog has the L_J / I_c / R_n / C_J rows), delete instance (KLayout's Delete), stop LOM (the panel's Stop button), export sim job (the Simulate dialog's "Export the job only") and open results file (Import results takes a file). The menu has 30 items (29 before Simulate ▸ Open simulation layout, which shows the geometry HFSS imports in a new tab). ``flow.ACTIONS`` is a list of ``(submenu, name, title, func, shortcut)`` tuples, ``submenu`` one of ``design``, ``simulate``, ``results``, ``fab`` (``design`` items go to the end of the Design submenu); the module and the attribute are optional. Attributes ---------- .. autoapisummary:: qcc_kplugin.menu.FILLED qcc_kplugin.menu.FLOW_SUBMENUS qcc_kplugin.menu.PLACEHOLDER_SUBMENUS qcc_kplugin.menu.ROOT qcc_kplugin.menu.SUBMENUS Functions --------- .. autoapisummary:: qcc_kplugin.menu.build qcc_kplugin.menu.flow_actions Module Contents --------------- .. py:function:: build(menu=None) (Re)build the Quantcore menu in the main window (idempotent: an existing menu is left alone). .. py:function:: flow_actions() -> list[tuple] ``flow.ACTIONS`` when the module and the attribute exist, else ``[]``. Never raises. .. py:data:: FILLED :type: list[str] :value: [] .. py:data:: FLOW_SUBMENUS .. py:data:: PLACEHOLDER_SUBMENUS :value: ('qcc_simulate_menu', 'qcc_results_menu', 'qcc_fab_menu') .. py:data:: ROOT :value: 'qcc_menu' .. py:data:: SUBMENUS :value: (('qcc_design_menu', 'Design'), ('qcc_edit_menu', 'Edit'), ('qcc_check_menu', 'Check and LOM'),...