Seth Hillbrand
c6f5df134c
Minor speed cleanup
...
This adjusts iterators to use const reference when only used for
copy. It also ensures pre-allocation of vectors when size is known
ahead of time.
2019-12-05 14:20:59 -08:00
Seth Hillbrand
b5f021ff9f
Cleanup: Replace push_back with emplace_back
...
In cases where we create a new item and immediately push into a
container, the emplace idiom is faster and more efficient.
2019-12-05 13:41:21 -08:00
jean-pierre charras
a703c53312
Fixes in dialogs: mainly better sizes for grid columns, but more other minor fixes.
...
Fix wxGrid column minimal widths on Windows in dialogs (just fixing the size is not enough).
WX_GRID::GetVisibleWidth(): make width bigger for labels, because they usually use a bold font.
(However, the fix is just a workaround: a better code is welcome)
2019-02-10 16:40:47 +01:00
jean-pierre charras
5e318dc08a
Pcbnew, PANEL_PCBNEW_ACTION_PLUGINS: make strings translatable.
...
Fix also a minimal size for grid columns.
2019-02-10 11:39:07 +01:00
jean-pierre charras
8dc4077d58
Fix compatibility issues with wxWidgets 3.1.1
2019-02-10 07:59:27 +01:00
Seth Hillbrand
8ff764376a
wx_grid: abstract visible column width
...
Cleanup code for checking visible extents of grid text. Places single
routine to extract the current spacing from the grid in WX_GRID.
2019-02-09 15:31:31 -08:00
Thomas Pointhuber
a2bc4260ef
Modify style of the action plugin panel to follow common style
...
and fix of an assert:
* m_grid->DeleteRows does not like to get a numRows of zero
2018-08-27 08:26:31 -07:00
qu1ck
72f87861bb
pcbnew: Add toolbar buttons for action plugins
...
Allows optional toolbar buttons for action plugins.
2018-08-26 19:39:27 -07:00