(self, bar)
| 194 | menu.addAction(act_update) |
| 195 | |
| 196 | def _build_place_menu(self, bar): |
| 197 | menu = bar.addMenu("&Place") |
| 198 | |
| 199 | act_comp = QAction("&Symbol…", self) |
| 200 | act_comp.setShortcut("S") |
| 201 | act_comp.triggered.connect(self._on_place_component) |
| 202 | menu.addAction(act_comp) |
| 203 | |
| 204 | menu.addSeparator() |
| 205 | |
| 206 | act_wire = QAction("&Wire", self) |
| 207 | act_wire.setShortcut("W") |
| 208 | act_wire.triggered.connect(lambda: self._scene.start_wire_mode()) |
| 209 | menu.addAction(act_wire) |
| 210 | |
| 211 | act_label = QAction("Net &Label", self) |
| 212 | act_label.setShortcut("L") |
| 213 | act_label.triggered.connect(self._on_place_label) |
| 214 | menu.addAction(act_label) |
| 215 | |
| 216 | act_junc = QAction("&Junction", self) |
| 217 | act_junc.setShortcut("J") |
| 218 | act_junc.triggered.connect(lambda: self._scene.start_junction_placement()) |
| 219 | menu.addAction(act_junc) |
| 220 | |
| 221 | act_border = QAction("Borde&r", self) |
| 222 | act_border.setShortcut("B") |
| 223 | act_border.triggered.connect(self._on_place_border) |
| 224 | menu.addAction(act_border) |
| 225 | |
| 226 | act_lib = QAction("&Library…", self) |
| 227 | act_lib.triggered.connect(self._on_place_library) |
| 228 | menu.addAction(act_lib) |
| 229 | |
| 230 | act_subckt = QAction("Subcirc&uit…", self) |
| 231 | act_subckt.triggered.connect(self._on_place_subcircuit) |
| 232 | menu.addAction(act_subckt) |
| 233 | |
| 234 | act_img = QAction("&Image…", self) |
| 235 | act_img.triggered.connect(self._on_place_image) |
| 236 | menu.addAction(act_img) |
| 237 | |
| 238 | act_params = QAction("&Parameters…", self) |
| 239 | act_params.triggered.connect(self._on_place_parameters) |
| 240 | menu.addAction(act_params) |
| 241 | |
| 242 | act_analysis = QAction("Define src / det / lg ref…", self) |
| 243 | act_analysis.triggered.connect(self._on_place_analysis) |
| 244 | menu.addAction(act_analysis) |
| 245 | |
| 246 | menu.addSeparator() |
| 247 | |
| 248 | act_model = QAction("&Model definition…", self) |
| 249 | act_model.triggered.connect(self._on_place_model_definition) |
| 250 | menu.addAction(act_model) |
| 251 | |
| 252 | act_lib_link = QAction("Library &link…", self) |
| 253 | act_lib_link.triggered.connect(self._on_place_library_link) |
no test coverage detected