Maciej Suminski
59f450bcfd
Merged upstream
2013-12-05 13:24:27 +01:00
Maciej Suminski
08ecc5005f
Profile counter simplified, so it should be more portable.
2013-11-27 09:46:59 +01:00
Maciej Suminski
03855be6f9
Merged rtree.h, to avoid code duplication.
...
Fixes the case, when waste is never greater then the worst case and seeds assignment does not occur.
2013-11-13 17:03:22 +01:00
Maciej Sumiński
27863c0bc9
Patches one by Lorenzo, one by Orson
2013-11-06 11:17:42 -06:00
Maciej Suminski
f9f23806ed
Mainly case changes.
2013-10-14 20:40:36 +02:00
Maciej Suminski
e66a4ce337
Namespace KiGfx->KIGFX.
...
template<> -> template <>
Some more reformatting according to uncrustify results.
2013-10-14 16:13:35 +02:00
Maciej Suminski
8223f9742e
Fixed memory leak caused by ViewUpdate() with VIEW_ITEM::GEOMETRY/LAYER parameters.
2013-10-02 13:57:21 +02:00
Maciej Suminski
3cdc207b50
Added typedefs for VIEW_GROUP iterators. Fixed improper order of layer drawing for VIEW_GROUP items.
2013-10-02 10:19:48 +02:00
Maciej Suminski
5acd895e0d
VIEW_GROUP now does not change depth during drawing. Introduced functions for manipulating stored items.
...
FIxed problem of overlay being covered by other layers while panning.
Few minor fixes.
2013-10-01 16:55:33 +02:00
Maciej Suminski
52a7f3e2dc
Uncrustified the push&shove source, fixed some warnings.
2013-09-27 10:00:26 +02:00
Maciej Suminski
8ea74c38c3
Fixed cvpcb build.
2013-09-24 16:12:02 +02:00
Maciej Suminski
57a8622e9a
Added functions for refreshing the layer set occupied by a VIEW_ITEM.
2013-09-24 15:48:04 +02:00
Maciej Suminski
fcd3bbecdf
Added limits for VIEW scale values & panning area.
2013-09-18 17:36:54 +02:00
Maciej Suminski
f88711ebf9
Merged Tom's branch
2013-09-18 16:59:08 +02:00
tomasz.wlostowski@cern.ch
5d3dda7a9d
VIEW_CONTROLS: added ForceCursorPosition() and ShowCursor() methods
2013-09-18 13:15:42 +02:00
tomasz.wlostowski@cern.ch
0e23e23a7c
VIEW: added GetTopLayer() method
2013-09-18 13:14:57 +02:00
Maciej Suminski
033b25de32
Reenabled snapping for tools.
2013-09-16 16:46:02 +02:00
Maciej Suminski
b579262869
Better way of marking 'brightened' mode for items.
2013-09-16 11:00:59 +02:00
Maciej Suminski
fa57fee9bb
Removed VIEW_LAYER.isDirty flag.
2013-09-13 11:38:16 +02:00
Maciej Suminski
404bfdcf30
Changed VIEW::PrepareTargets() to more appropriate name VIEW::ClearTargets(). Added SELECTION layer to always-on-top list.
2013-09-13 11:28:47 +02:00
Maciej Suminski
87d81a6d92
Mouse movement events are sent during autopanning, as the cursor position changes in the world coordinates (even if it stays still in the screen coordinates). It allows tools to update their state, as if the mouse was moved.
2013-09-13 10:26:08 +02:00
Maciej Suminski
7d41dc1616
Currently selected layer is displayed on the top.
2013-09-12 18:24:53 +02:00
Maciej Suminski
c1e1502d35
Merged Tom's branch
2013-09-12 17:42:28 +02:00
tomasz.wlostowski@cern.ch
61778974a4
EDA_DRAW_PANEL_GAL: redraw stuff in a single place, with "coalescing"
...
Redraws can be requested way too often than it is required. This commit adds redraw timeout:
- if the view became dirty and there has been no redraw for longer than certain time, it is redrawed immediately
- otherwise, we wait for the next frame
This in general improves smoothness of rendering.
2013-09-12 11:40:16 +02:00
Maciej Suminski
944a61100b
Fixed memory leaks in containers.
2013-09-12 09:44:57 +02:00
Maciej Suminski
e38019d74e
Removed some dead code.
2013-09-11 16:38:40 +02:00
Maciej Suminski
efa1ac3807
Moved GetColor() from PAINTER to RENDER_SETTINGS. Fixed recaching of custom items.
2013-09-11 11:39:46 +02:00
tomasz.wlostowski@cern.ch
d1883bdd9d
Merged kicad-gal-orson
2013-09-10 19:32:19 +02:00
tomasz.wlostowski@cern.ch
3254bfa619
VIEW_GROUP: added FreeItems() method
2013-09-10 19:25:02 +02:00
Maciej Suminski
881cbd6d2f
Small refactoring.
2013-09-09 14:31:27 +02:00
Maciej Suminski
dd1ad34cea
Stops autopanning on left mouse button release.
2013-09-09 13:57:56 +02:00
Maciej Suminski
7bbd31fa2a
Modified interfaces for [WX_]VIEW_CONTROLS.
2013-09-09 10:53:46 +02:00
Maciej Suminski
77fc1aecb2
First version of the move tool.
2013-09-09 09:34:52 +02:00
Maciej Suminski
345e97f296
Solved refreshing issues.
2013-09-06 11:31:16 +02:00
Maciej Suminski
a1089c9dd6
More effective way of updating bounding boxes. IsCached() method made public. Removed some of unused fields from the layer description structure.
2013-09-04 16:23:26 +02:00
Maciej Suminski
1e1fbb4ccf
Corrected behaviour of drag panning while autopanning is enabled.
2013-09-02 16:26:42 +02:00
Maciej Suminski
3b046c409b
Changed way of naming VIEW_ITEM update flags to be more explicit.
...
VIEW_ITEMs save the layer numbers they use, it allowed to speed up removal of items.
2013-09-02 11:49:46 +02:00
Maciej Suminski
bf9b535f66
Fixed warning.
2013-08-30 14:43:18 +02:00
Maciej Suminski
86c29e23df
Added cursor snapping.
2013-08-28 16:25:42 +02:00
Maciej Suminski
cebdb43234
Added mouse cursor drawing.
...
Added flipping mode.
2013-08-27 18:08:32 +02:00
Maciej Suminski
eca53baf6f
Fixed linking errors for apps other than pcbnew.
2013-08-26 10:43:22 +02:00
Maciej Suminski
7a74418c39
Removed some unnecessary stuff and added some comments to WX_VIEW_CONTROLS.
2013-08-23 10:56:52 +02:00
Maciej Suminski
37d98063f0
Added autopanning functionality to WX_VIEW_CONTROLS.
2013-08-22 18:42:53 +02:00
Maciej Suminski
166879a1c8
Mark layers as dirty on VIEW_ITEM removal.
2013-08-22 15:04:14 +02:00
Maciej Suminski
b518569674
Added handling keyboard events for the Tool framework.
2013-08-21 17:37:27 +02:00
Maciej Suminski
339cf51c0c
Added VIEW_GROUP for grouping items to be displayed on a single layer.
2013-08-20 15:07:38 +02:00
Maciej Suminski
57979f3c9b
Smarter way of the overlay rendering (overlay is always refreshed, while cached&noncached targets only if the viewport or items have changed).
2013-08-19 11:02:38 +02:00
Maciej Suminski
6268fe957a
Functions for direct item drawing.
2013-08-19 09:44:50 +02:00
Maciej Suminski
09aa89f3f9
Added brightened mode for selecting items using disambiguation menu.
2013-08-08 12:30:00 +02:00
Maciej Suminski
3f1b9a6b4a
Different approach to item recaching.
2013-08-07 17:20:01 +02:00