Marek Roszko
66e8931405
Remove IU_PER_MM thats standalone
3 years ago
Marek Roszko
e6ed275c25
Repoint IU_PER_MILS
3 years ago
Jeff Young
92a229eec7
ADDED separate user-defined color for page limits.
Fixes https://gitlab.com/kicad/code/kicad/issues/5271
4 years ago
Jeff Young
4e3109a633
Wide string decls for gerbview.
4 years ago
Mike Williams
6ddd5ec37f
Gerbview: Add menu item to open files with autodetection
Needs an icon at some point
4 years ago
Jeff Young
e26341d424
Cleanup.
4 years ago
Jeff Young
95b87ba29a
Freshen microwave polygon dialog and remove a bunch of dead code.
4 years ago
Jeff Young
6aaf4413b3
Fix kicad_string.h / string.cpp mismatch.
They don't define a KiCad string class, so the header file name was
somewhat misleading. But the fact that they didn't match definitely
made coding more difficult.
4 years ago
Wayne Stambaugh
cb72da294a
More NULL expunging.
4 years ago
Ian McInerney
1db5e2bc96
Don't force an entire refresh of toolbars to update sizes
Forcing an entire refresh of the toolbars is wasteful,
so instead just update the sizers directly.
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
Marek Roszko
4b38bada76
Move the gerbview widgets to their own folder
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
Seth Hillbrand
4085757aeb
Remove beginning/ending spaces in translations
Adding space padding makes translations more difficult by increasing
string counts
5 years ago
Ian McInerney
4215917834
gerbview: Move more items to actions
5 years ago
Ian McInerney
ad29a2f3b4
Update more places to properly display mils
5 years ago
Ian McInerney
b1bd1f2a97
Introduce new action to switch to mils as a unit
5 years ago
jean-pierre charras
04aa5519d0
Gerbview: code cleanup. Remove many include, now useless.
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
3b05d7cddd
Move more frames to the new UI condition framework
* Frames moved: cvpcb, cvpcb footprints frame, gerbview, pagelayout editor
This also introduces new EDITOR_CONDITIONS that are used to set the
conditions of very common editor settings.
Also, some IDs were converted to tools in the pagelayout editor.
5 years ago
PJM
4d2bc1fa54
GerbView #2501 - Add mirror display function to GerbView
Adds the ability to flip (mirror) the display, just like "Flip
Board View" does in Pcbnew.
Also added this to vertical toolbar since it's handy to not
have to go into the menu system to flip the display back and
forth.
Fixes issue https://gitlab.com/kicad/code/kicad/-/issues/2501
5 years ago
Ian McInerney
659c0ecfcc
Gerbview: Fix print toolbar button
Fixes https://gitlab.com/kicad/code/kicad/issues/4762
5 years ago
jean-pierre charras
f420396990
Cleanup a change I made for debug purposes for commit cd2dea7
5 years ago
jean-pierre charras
cd2dea7df2
Gerbview: fix issues (crash) after commit fb10406e
The m_auxiliaryToolBar manage controls, not tools, and controls need specific
management after a wxToolbar->Clear() call.
wxToolbar->Clear() does not delete controls, but stop their management.
5 years ago
Ian McInerney
fb10406e67
Add right-click context menus for toolbar items
5 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
ad12c42e8b
Push grid settings dialogs down into common.
This also gives support for fast grid switching and a user grid
to eeschema.
Fixes https://gitlab.com/kicad/code/kicad/issues/2200
6 years ago
Jeff Young
ed3e366715
Actionize Gerber file commands.
Fixes https://gitlab.com/kicad/code/kicad/issues/2408
6 years ago
jean-pierre charras
9e656fe5eb
Gerbview: fix incorrect rendering of oval vertical standard aperture with hole.
Fix also incorrect display of dcode size in toolbal: was Y size X size.
Now is X size Y size, as expected.
6 years ago
Mark Roszko
11ff16be4e
Switch to scoped enums
6 years ago
Jeff Young
f9702aab87
Immediate actions for PlEditor, PcbNew, etc.
7 years ago
Jeff Young
b0e8443383
Sync-ing of menu has been done in CONDITIONAL_MENU for some time now.
7 years ago
Jeff Young
5e49517781
Move hotkeys to ACTION architecture.
7 years ago
Jeff Young
9f1e2e34b7
Move some dupicated tools to common tools.
7 years ago
Jeff Young
33773bad4d
Yet more command conversions to ACTIONs.
7 years ago
Jeff Young
1a3d0492f5
Push polar coords down into COMMON_TOOLS.
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
Jeff Young
684bb62fd8
Escape slashes in labels and netnames.
Also re-allows spaces, as they can already come in through sheet
names.
Fixes: lp:1798621
* https://bugs.launchpad.net/kicad/+bug/1798621
7 years ago
Michael Kavanagh
fe6bc411dd
Fix 'hokey' -> 'hotkey' typo
7 years ago
Seth Hillbrand
9d99fd188f
Revert "Change top selection drop-down to combobox"
This reverts commit 7d06651a10 .
7 years ago
Seth Hillbrand
7d06651a10
Change top selection drop-down to combobox
wxChoice centers the selection on GTK. So when switching from a
mid-list item to an item at the top, the list is always cut off for
choice lists located on the top toolbar. Using a combobox provides a
drop-down that allows easier access to all elements in the box.
Fixes: lp:1808569
* https://bugs.launchpad.net/kicad/+bug/1808569
7 years ago
D4p0up
e94752a6cf
Added help string to select buttons.
Also moved highlight text string to help_common_strings.h
Fixes: lp:1497737
* https://bugs.launchpad.net/kicad/+bug/1497737
8 years ago
Jeff Young
3158273c1a
Revert window-locking change which didn't fix preferences crash.
7 years ago
Jeff Young
6a5744adb1
Show compile errors and go back to GLSL V120.
7 years ago
Nabeel Ahmad
664fb234ff
GerbView: Add actions to reload files
NEW: Adds new items in File Menu and Toolbar to reload the Gerber files
for all layers.
Fixes: lp:1794004
* https://bugs.launchpad.net/kicad/+bug/1794004
7 years ago
Jeff Young
e329a411bf
Add grid and zone dropdowns to GerbView frame.
(cherry picked from commit be5c1e2)
7 years ago
Jeff Young
7841f8a466
Unified preferences dialog framework.
(cherry picked from commit 8ee3e77)
8 years ago
Jeff Young
a39fb03822
Remove some references to g_UserUnit
(cherry picked from commit 614d832)
8 years ago