KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
sch_actions.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2019-2023 CERN
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#pragma once
26
27#include <tool/tool_action.h>
28#include <tool/actions.h>
29
30class DESIGN_BLOCK;
31class SCH_SYMBOL;
32class TOOL_EVENT;
33class TOOL_MANAGER;
34
39class SCH_ACTIONS : public ACTIONS
40{
41public:
42 // Menu bar save curr sheet as command
44
45 // Selection Tool
48
52
55
58
59 // Locking
63
64 // Schematic Tools
86 // Sync sheet pins for selected sheet symbol
88 // Sync sheet pins for all sheet symbols
104
105 // Symbol Tools
112
113 // Interactive Editing
142
162
165
168
169 // Suite operations
181
182 // Attribute Toggles
187
188 // Design Block management
196
197 // Library management
214
215 // Hierarchy navigation
226
227 // Global edit tools
230
231 // Miscellaneous
261
262 // Line modes
267
268 // Annotation
270
271 // SPICE
291
292 // Net highlighting
298
299 // Drag and drop
301
303 {
307 bool m_Reannotate = true;
308 };
309};
Gather all the actions that are shared by tools.
Definition: actions.h:48
Gather all the actions that are shared by tools.
Definition: sch_actions.h:40
static TOOL_ACTION showPcbNew
Definition: sch_actions.h:172
static TOOL_ACTION editSymbol
Definition: sch_actions.h:203
static TOOL_ACTION rotateCCW
Definition: sch_actions.h:119
static TOOL_ACTION placeClassLabel
Definition: sch_actions.h:77
static TOOL_ACTION placeSheetPin
Definition: sch_actions.h:83
static TOOL_ACTION importSymbol
Definition: sch_actions.h:210
static TOOL_ACTION pickerTool
Definition: sch_actions.h:65
static TOOL_ACTION syncSelection
Selection synchronization (PCB -> SCH)
Definition: sch_actions.h:57
static TOOL_ACTION newSymbol
Definition: sch_actions.h:201
static TOOL_ACTION placeNextSymbolUnit
Definition: sch_actions.h:67
static TOOL_ACTION editValue
Definition: sch_actions.h:125
static TOOL_ACTION saveLibraryAs
Definition: sch_actions.h:198
static TOOL_ACTION setExcludeFromBOM
Definition: sch_actions.h:183
static TOOL_ACTION assignFootprints
Definition: sch_actions.h:155
static TOOL_ACTION saveSheetAsDesignBlock
Definition: sch_actions.h:190
static TOOL_ACTION mirrorV
Definition: sch_actions.h:120
static TOOL_ACTION lineModeNext
Definition: sch_actions.h:266
static TOOL_ACTION drawSheetFromFile
Definition: sch_actions.h:81
static TOOL_ACTION exportPlotToClipboard
Definition: sch_actions.h:278
static TOOL_ACTION toggleOPCurrents
Definition: sch_actions.h:242
static TOOL_ACTION clearHighlight
Definition: sch_actions.h:294
static TOOL_ACTION swap
Definition: sch_actions.h:122
static TOOL_ACTION saveSelectionAsDesignBlock
Definition: sch_actions.h:191
static TOOL_ACTION showBusSyntaxHelp
Definition: sch_actions.h:161
static TOOL_ACTION placeGlobalLabel
Definition: sch_actions.h:78
static TOOL_ACTION saveWorkbookAs
Definition: sch_actions.h:275
static TOOL_ACTION deleteDesignBlock
Definition: sch_actions.h:194
static TOOL_ACTION editSymbolFields
Definition: sch_actions.h:147
static TOOL_ACTION pushPinLength
Definition: sch_actions.h:247
static TOOL_ACTION showPythonConsole
Definition: sch_actions.h:257
static TOOL_ACTION checkSymbol
Definition: sch_actions.h:159
static TOOL_ACTION importFPAssignments
Definition: sch_actions.h:173
static TOOL_ACTION changeSymbols
Definition: sch_actions.h:151
static TOOL_ACTION drawTextBox
Definition: sch_actions.h:91
static TOOL_ACTION toggleAnnotateAuto
Definition: sch_actions.h:269
static TOOL_ACTION updateSymbol
Definition: sch_actions.h:154
static TOOL_ACTION autoplaceFields
Definition: sch_actions.h:127
static TOOL_ACTION changeSymbol
Definition: sch_actions.h:153
static TOOL_ACTION syncAllSheetsPins
Definition: sch_actions.h:89
static TOOL_ACTION editLibSymbolWithLibEdit
Definition: sch_actions.h:171
static TOOL_ACTION closeOutline
Definition: sch_actions.h:103
static TOOL_ACTION exportPlotAsCSV
Definition: sch_actions.h:277
static TOOL_ACTION showDeMorganAlternate
Definition: sch_actions.h:130
static TOOL_ACTION drawArc
Definition: sch_actions.h:95
static TOOL_ACTION drawSheet
Definition: sch_actions.h:80
static TOOL_ACTION toggleERCWarnings
Definition: sch_actions.h:237
static TOOL_ACTION pinTable
Definition: sch_actions.h:150
static TOOL_ACTION drawSymbolLines
Definition: sch_actions.h:109
static TOOL_ACTION placeSymbolPin
Definition: sch_actions.h:106
static TOOL_ACTION navigateBack
Definition: sch_actions.h:221
static TOOL_ACTION schematicSetup
Definition: sch_actions.h:157
static TOOL_ACTION toggleDirectiveLabels
Definition: sch_actions.h:236
static TOOL_ACTION pasteSymbol
Definition: sch_actions.h:209
static TOOL_ACTION drawSymbolTextBox
Definition: sch_actions.h:108
static TOOL_ACTION pushPinNameSize
Definition: sch_actions.h:248
static TOOL_ACTION highlightNetTool
Definition: sch_actions.h:296
static TOOL_ACTION toCLabel
Definition: sch_actions.h:133
static TOOL_ACTION properties
Definition: sch_actions.h:123
static TOOL_ACTION editReference
Definition: sch_actions.h:124
static TOOL_ACTION leaveSheet
Definition: sch_actions.h:218
static TOOL_ACTION exportSymbolAsSVG
Definition: sch_actions.h:256
static TOOL_ACTION breakWire
Definition: sch_actions.h:138
static TOOL_ACTION toggleDeMorgan
Definition: sch_actions.h:128
static TOOL_ACTION renameSymbol
Definition: sch_actions.h:205
static TOOL_ACTION toggleHiddenFields
Definition: sch_actions.h:233
static TOOL_ACTION autoplaceAllSheetPins
Definition: sch_actions.h:84
static TOOL_ACTION drawRectangle
Definition: sch_actions.h:93
static TOOL_ACTION drawLines
Definition: sch_actions.h:97
static TOOL_ACTION saveCurrSheetCopyAs
Definition: sch_actions.h:43
static TOOL_ACTION placeHierLabel
Definition: sch_actions.h:79
static TOOL_ACTION simAnalysisProperties
Definition: sch_actions.h:286
static TOOL_ACTION selectConnection
If current selection is a wire or bus, expand to entire connection.
Definition: sch_actions.h:51
static TOOL_ACTION hypertextCommand
Definition: sch_actions.h:225
static TOOL_ACTION toggleDottedSecondary
Definition: sch_actions.h:284
static TOOL_ACTION placeLabel
Definition: sch_actions.h:76
static TOOL_ACTION drawCircle
Definition: sch_actions.h:94
static TOOL_ACTION navigateNext
Definition: sch_actions.h:223
static TOOL_ACTION exportSymbolsToNewLibrary
Definition: sch_actions.h:180
static TOOL_ACTION duplicateSymbol
Definition: sch_actions.h:204
static TOOL_ACTION importGraphics
Definition: sch_actions.h:254
static TOOL_ACTION toText
Definition: sch_actions.h:136
static TOOL_ACTION restartMove
Definition: sch_actions.h:245
static TOOL_ACTION placeBusWireEntry
Definition: sch_actions.h:75
static TOOL_ACTION editSymbolUnit
Definition: sch_actions.h:131
static TOOL_ACTION toHLabel
Definition: sch_actions.h:134
static TOOL_ACTION repairSchematic
Definition: sch_actions.h:258
static TOOL_ACTION cutSymbol
Definition: sch_actions.h:207
static TOOL_ACTION nextNetItem
Definition: sch_actions.h:166
static TOOL_ACTION drawBezier
Definition: sch_actions.h:96
static TOOL_ACTION drawWire
Definition: sch_actions.h:70
static TOOL_ACTION remapSymbols
Definition: sch_actions.h:164
static TOOL_ACTION lineMode45
Definition: sch_actions.h:265
static TOOL_ACTION saveSymbolCopyAs
Definition: sch_actions.h:200
static TOOL_ACTION nextUnit
Definition: sch_actions.h:260
static TOOL_ACTION editSymbolLibraryLinks
Definition: sch_actions.h:148
static TOOL_ACTION simTune
Definition: sch_actions.h:282
static TOOL_ACTION rotateCW
Definition: sch_actions.h:118
static TOOL_ACTION importSheet
Definition: sch_actions.h:85
static TOOL_ACTION showElectricalTypes
Definition: sch_actions.h:250
static TOOL_ACTION toggleDarkModePlots
Definition: sch_actions.h:285
static TOOL_ACTION drag
Definition: sch_actions.h:116
static TOOL_ACTION exportPlotAsPNG
Definition: sch_actions.h:276
static TOOL_ACTION pointEditorAddCorner
Definition: sch_actions.h:140
static TOOL_ACTION generateBOM
Definition: sch_actions.h:175
static TOOL_ACTION showHierarchy
Definition: sch_actions.h:224
static TOOL_ACTION exportPlotToSchematic
Definition: sch_actions.h:279
static TOOL_ACTION saveSheetToDesignBlock
Definition: sch_actions.h:192
static TOOL_ACTION symbolTreeSearch
Definition: sch_actions.h:252
static TOOL_ACTION toLabel
Definition: sch_actions.h:132
static TOOL_ACTION showNetNavigator
Definition: sch_actions.h:297
static TOOL_ACTION placeJunction
Definition: sch_actions.h:74
static TOOL_ACTION setDNP
Definition: sch_actions.h:186
static TOOL_ACTION markSimExclusions
Definition: sch_actions.h:240
static TOOL_ACTION previousNetItem
Definition: sch_actions.h:167
static TOOL_ACTION drawSymbolPolygon
Definition: sch_actions.h:110
static TOOL_ACTION drawRuleArea
Definition: sch_actions.h:101
static TOOL_ACTION placeSymbol
Definition: sch_actions.h:66
static TOOL_ACTION placeImage
Definition: sch_actions.h:98
static TOOL_ACTION alignToGrid
Definition: sch_actions.h:114
static TOOL_ACTION deleteLastPoint
Definition: sch_actions.h:102
static TOOL_ACTION showHiddenFields
Definition: sch_actions.h:235
static TOOL_ACTION editDesignBlockProperties
Definition: sch_actions.h:195
static TOOL_ACTION editWithLibEdit
Definition: sch_actions.h:170
static TOOL_ACTION cleanupSheetPins
Definition: sch_actions.h:228
static TOOL_ACTION runSimulation
Definition: sch_actions.h:287
static TOOL_ACTION navigateForward
Definition: sch_actions.h:220
static TOOL_ACTION generateBOMExternal
Definition: sch_actions.h:177
static TOOL_ACTION toggleERCErrors
Definition: sch_actions.h:238
static TOOL_ACTION incrementAnnotations
Definition: sch_actions.h:146
static TOOL_ACTION placeSymbolAnchor
Definition: sch_actions.h:111
static TOOL_ACTION navigatePrevious
Definition: sch_actions.h:222
static TOOL_ACTION saveSelectionToDesignBlock
Definition: sch_actions.h:193
static TOOL_ACTION rescueSymbols
Definition: sch_actions.h:163
static TOOL_ACTION showHiddenPins
Definition: sch_actions.h:234
static TOOL_ACTION editUserDefinedSignals
Definition: sch_actions.h:289
static TOOL_ACTION showPinNumbers
Definition: sch_actions.h:251
static TOOL_ACTION setUnitDisplayName
Definition: sch_actions.h:213
static TOOL_ACTION exportSymbolView
Definition: sch_actions.h:255
static TOOL_ACTION selectNode
Select the junction, wire or bus segment under the cursor.
Definition: sch_actions.h:47
static TOOL_ACTION drawSheetFromDesignBlock
Definition: sch_actions.h:82
static TOOL_ACTION newAnalysisTab
Definition: sch_actions.h:272
static TOOL_ACTION generateBOMLegacy
Definition: sch_actions.h:176
static TOOL_ACTION mirrorH
Definition: sch_actions.h:121
static TOOL_ACTION showSimulator
Definition: sch_actions.h:280
static TOOL_ACTION copySymbol
Definition: sch_actions.h:208
static TOOL_ACTION unfoldBus
Definition: sch_actions.h:72
static TOOL_ACTION pointEditorRemoveCorner
Definition: sch_actions.h:141
static TOOL_ACTION placeDesignBlock
Definition: sch_actions.h:69
static TOOL_ACTION toggleOPVoltages
Definition: sch_actions.h:241
static TOOL_ACTION drawBus
Definition: sch_actions.h:71
static TOOL_ACTION simProbe
Definition: sch_actions.h:281
static TOOL_ACTION setExcludeFromSimulation
Definition: sch_actions.h:184
static TOOL_ACTION runERC
Inspection and Editing.
Definition: sch_actions.h:144
static TOOL_ACTION symbolProperties
Definition: sch_actions.h:149
static TOOL_ACTION placeSymbolText
Definition: sch_actions.h:107
static TOOL_ACTION drawTable
Definition: sch_actions.h:92
static TOOL_ACTION lineMode90
Definition: sch_actions.h:264
static TOOL_ACTION ddAppendFile
Definition: sch_actions.h:300
static TOOL_ACTION slice
Definition: sch_actions.h:139
static TOOL_ACTION placeSchematicText
Definition: sch_actions.h:90
static TOOL_ACTION toggleSyncedPinsMode
Definition: sch_actions.h:244
static TOOL_ACTION toTextBox
Definition: sch_actions.h:137
static TOOL_ACTION lineModeFree
Definition: sch_actions.h:263
static TOOL_ACTION unlock
Definition: sch_actions.h:62
static TOOL_ACTION changeSheet
Definition: sch_actions.h:216
static TOOL_ACTION highlightNet
Definition: sch_actions.h:293
static TOOL_ACTION deleteSymbol
Definition: sch_actions.h:206
static TOOL_ACTION lock
Definition: sch_actions.h:61
static TOOL_ACTION assignNetclass
Definition: sch_actions.h:156
static TOOL_ACTION annotate
Definition: sch_actions.h:145
static TOOL_ACTION showDesignBlockPanel
Definition: sch_actions.h:189
static TOOL_ACTION updateSymbols
Definition: sch_actions.h:152
static TOOL_ACTION enterSheet
Definition: sch_actions.h:217
static TOOL_ACTION pushPinNumSize
Definition: sch_actions.h:249
static TOOL_ACTION undoLastSegment
Definition: sch_actions.h:99
static TOOL_ACTION showNetlist
Definition: sch_actions.h:290
static TOOL_ACTION editFootprint
Definition: sch_actions.h:126
static TOOL_ACTION selectionMenu
Runs a selection menu to select from a list of items.
Definition: sch_actions.h:54
static TOOL_ACTION togglePinAltIcons
Definition: sch_actions.h:243
static TOOL_ACTION openWorkbook
Definition: sch_actions.h:273
static TOOL_ACTION toggleERCExclusions
Definition: sch_actions.h:239
static TOOL_ACTION updateNetHighlighting
Definition: sch_actions.h:295
static TOOL_ACTION repeatDrawItem
Definition: sch_actions.h:117
static TOOL_ACTION editTextAndGraphics
Definition: sch_actions.h:229
static TOOL_ACTION exportNetlist
Definition: sch_actions.h:174
static TOOL_ACTION saveWorkbook
Definition: sch_actions.h:274
static TOOL_ACTION placeNoConnect
Definition: sch_actions.h:73
static TOOL_ACTION editPageNumber
Definition: sch_actions.h:158
static TOOL_ACTION drawSheetOnClipboard
Definition: sch_actions.h:253
static TOOL_ACTION exportSymbolsToLibrary
Definition: sch_actions.h:179
static TOOL_ACTION switchSegmentPosture
Definition: sch_actions.h:100
static TOOL_ACTION showDeMorganStandard
Definition: sch_actions.h:129
static TOOL_ACTION updateSymbolFields
Definition: sch_actions.h:212
static TOOL_ACTION toGLabel
Definition: sch_actions.h:135
static TOOL_ACTION toggleHiddenPins
Definition: sch_actions.h:232
static TOOL_ACTION setExcludeFromBoard
Definition: sch_actions.h:185
static TOOL_ACTION exportSymbol
Definition: sch_actions.h:211
static TOOL_ACTION selectOnPCB
Definition: sch_actions.h:246
static TOOL_ACTION move
Definition: sch_actions.h:115
static TOOL_ACTION syncSheetPins
Definition: sch_actions.h:87
static TOOL_ACTION toggleLegend
Definition: sch_actions.h:283
static TOOL_ACTION diffSymbol
Definition: sch_actions.h:160
static TOOL_ACTION placePower
Definition: sch_actions.h:68
static TOOL_ACTION navigateUp
Definition: sch_actions.h:219
static TOOL_ACTION previousUnit
Definition: sch_actions.h:259
static TOOL_ACTION toggleLock
Definition: sch_actions.h:60
static TOOL_ACTION deriveFromExistingSymbol
Definition: sch_actions.h:202
static TOOL_ACTION stopSimulation
Definition: sch_actions.h:288
static TOOL_ACTION addSymbolToSchematic
Definition: sch_actions.h:178
static TOOL_ACTION saveSymbolAs
Definition: sch_actions.h:199
Schematic symbol object.
Definition: sch_symbol.h:75
Represent a single user action.
Definition: tool_action.h:304
Generic, UI-independent tool event.
Definition: tool_event.h:168
Master controller class:
Definition: tool_manager.h:62
SCH_SYMBOL * m_Symbol
< Provide a symbol to place
Definition: sch_actions.h:305