If the hierarchy navigator is open and expanded, we have references to
the existing sheets. These need to be cleared when importing a new
sheet over top
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20004
Recommendation is to avoid using the year nomenclature as this
information is already encoded in the git repo. Avoids needing to
repeatly update.
Also updates AUTHORS.txt from current repo with contributor names
* Ensure hierarchy navigator history iterator is valid before removing
history list entries. This fix prevented a crash in the 8.0 branch.
* Purge consecutive duplicate hierarchy navigator history entries.
Navigating to the same sheet path doesn't make sense.
* Don't rebuild hierarchy navigator tree twice when creating new sheet.
* Remove unused sheet property dialog commit code.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18778
Use the ordinal symbol reference and unit when saving schematics to
prevent file changes instead of the first instance. The first instance
would change when sheets were moved and the hierarchy order changed.
The ordinal instance is defined as the first sheet instance when the
hierarchy sorted by page number.
Previously, a single RMB-click at empty space had no effect, while a
double-click opened the context menu. As per the @sethhillbrand suggestion,
instead of fixing this, no context menus should appear in empty space, as
it is not necessary. To address this, the wxEVT_RIGHT_UP event binding has
been removed by unbinding it from both the constructor and destructor.
Additionally, the onRightClick(wxMouseEvent& aEvent) method has been
removed, as it is linked to wxEVT_RIGHT_UP and is no longer necessary.
Fixes#17962
Prevent the hierarchy navigator from being rebuilt unless there are actual
sheet changes that would cause a change to the tree.
Save the tree expansion state before rebuilding the tree and then restore
the expansion state to the previous state sans edits.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16635
This was causing unwanted tree expansions when descending a sheet hierarchy
in editor.
Also fixed an issue with the tree highlighting when changing sheets in the
schematic editor.
The new behavior is to only expand to the first child of the root sheet
level. On very complex hierarchies, this makes the navigator far more
useful.
Do not update schematic hierarchy navigator on every edit. Now only
sheet changes will trigger a rebuild of the tree.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16371
Using a boolean argument just leads to a lot of trailing booleans in the
function calls and is not user friendly. Instead, introduce PostAction()
to send an action that runs after the coroutine (equivalent to passing
false or the default argument), and leave RunAction as the immediate
execution function.
A sheetpath is required to correctly resolve text variables.
Depending on currentSheet is rife with bugs.
There are many places where we do *not* want to be prepending
field names to the field values, such as netlisting,
building PDF hypertext menus, etc.
Also, Find/Replace needs to work on unresolved text, as
that's what we're going to display (and if replace nuked
your variable references you wouldn't be happy).