Jeff Young
b000d68def
Move simulator to tool framework.
3 years ago
Jeff Young
7a993c0211
Add support mode for dark mode to SCINTILLA_TRICKS.
Also removes the return value from the BITMAP_STORE's themeChanged
method as it will provide the wrong answer for the second frame it's
called on.
Also hooked up ACTION_TOOLBAR, the app launcher, and the project tree
to the wx event for system color changes so they change on the fly.
Fixes https://gitlab.com/kicad/code/kicad/issues/6026
4 years ago
Wayne Stambaugh
9ebabb222c
Pass objects by reference instead of on the stack.
5 years ago
Ian McInerney
dc27079b71
cleanup tool event and tool action includes
5 years ago
Ian McInerney
475ac3697f
Ensure toolbar controls have the correct width on frame creation
Otherwise they could be slightly too small and then look odd.
5 years ago
Jon Evans
405fa183b2
Add icon theme selection behind advanced config flag
5 years ago
Wayne Stambaugh
2a3e921d58
Header clean up round 6.
5 years ago
Mark Roszko
356584d454
Correct function doc block
5 years ago
Marek Roszko
08ca80a2d8
Smooth out redrawing of toolbars by not letting wx pointlessly calculate both orientations
Monkey patch
Fix #5705
5 years ago
Ian McInerney
b69d396afc
Turn the toolbar context menus into unique_ptr for easier management
5 years ago
Tomasz Wlostowski
e884f6d67b
tool: fixed missing include
5 years ago
Jon Evans
f745036d82
Fix a minor warning
5 years ago
Ian McInerney
6dfe7b6eb0
Switch toolbar palettes to use AUI drag event
This isn't as much a hack as trying to detect it ourselves and
hope we don't clobber the internal toolbar workings.
5 years ago
Ian McInerney
d5f781c7ca
Allow dragging on the toolbar item to open a group
5 years ago
Ian McInerney
fc565edb33
Add a palette to the toolbars to display groups of actions
This adds a palette to toolbar items that displays groups
of actions when long-pressed on a button.
5 years ago
Ian McInerney
f28b60896c
Allow toolbar items to cancel tools when pressed
There was a regression in v6 where the zoom to selection toolbar
item wasn't canceling the tool when pressed and the tool was active
(it was in v5). This implements a more generic framework for canceling
tools on button presses.
Fixes https://gitlab.com/kicad/code/kicad/issues/5103
5 years ago
Ian McInerney
e8b11c911e
Migrate Pcbnew/footprint viewer/footprint editor to the new UI update system
5 years ago
Ian McInerney
72a1c71e07
Implement a framework to handle wxUpdateUIEvents for tool actions
This allows for the tool framework to keep track of a universal
set of conditions for the UI state (enabled/checked/shown) for
controls of actions. It removes the need for the main menubar
menus to be CONDITIONAL_MENUs and be rebuilt on each open,
and instead makes the updates of the check and enabling of
items handled in the native wxWidgets way.
This commit switchs the 3d viewer and kicad project manager window
over to this system.
6 years ago
Ian McInerney
d19ff3e595
Unify the UI IDs for actions between the menus and toolbars
By unifying the IDs so that an action only has one UI ID,
it will receive only one update event that will work for
all controls using the action.
6 years ago
Ian McInerney
fb10406e67
Add right-click context menus for toolbar items
6 years ago
Ian McInerney
52856a8ce4
Move scaled toolbar separator into ACTION_TOOLBAR
* Ensure all separators are scaled separators
* Clean up toolbar creation functions
6 years ago
Jeff Young
d69ebfae49
Push tool framework base down into TOOL_HOLDER.
This allows us to use it outside of EDA_BASE_FRAMEs (in this case, in
PANEL_PREVIEW_3D.)
6 years ago
Seth Hillbrand
7c28c3838a
Comment-only changes
Makes class comments conform to coding standards
6 years ago
Ian McInerney
95430e131e
cvpcb: cleanup include statements
6 years ago
Jeff Young
9f427da56f
Use the ACTION_ID offset when updating the layer pair bitmap.
7 years ago
Jeff Young
620395608c
Move Kicad Manager launch bar to ACTIONs.
Also fixes a bug where hotkeys weren't getting put in menus.
7 years ago
Jeff Young
c13ef839c1
Tool framework for Kicad Manager frame.
7 years ago
Jeff Young
7f1ed30ff5
Move DeMorgan handling to ACTIONs.
7 years ago
Jeff Young
fbb807f3bb
Move some more menu & toolbar items to modern toolset.
7 years ago
Jeff Young
69afa27a5f
Implement ACTION_TOOLBAR and update some of the menus to ACTION_MENU.
This gives us better separation of MVC in line with the design of
the modern toolset. It also reduces a whole bunch of duplicated
data.
7 years ago