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
04cdb15ceb
Changed the way of refreshing canvases (both standard & GAL).
2013-09-20 17:29:32 +02:00
Maciej Suminski
e07a8fbe31
Removed TA_ActivateTool (now tools are invoked by sending TA_Action event, with the tool name as string parameter).
...
Developed TOOL_Action class & added ActionManager. Hot keys registered by tools are processed.
Selection & move tool can be invoked by a hot key.
2013-09-19 17:02:57 +02:00
Maciej Suminski
fcd3bbecdf
Added limits for VIEW scale values & panning area.
2013-09-18 17:36:54 +02:00
Maciej Suminski
3d767ffcc7
Moved Type() method from EDA_ITEM to VIEW_ITEM.
2013-09-18 17:04:07 +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
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
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
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
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
7e73dad7b0
Some more spots where the GAL refresh was required.
2013-09-06 17:06:02 +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
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
e70a0e4e0e
Reformatting.
2013-08-19 09:47:36 +02:00
Maciej Suminski
6268fe957a
Functions for direct item drawing.
2013-08-19 09:44:50 +02:00
Maciej Suminski
eefc79b5b2
Reformatting.
2013-08-08 19:41:20 +02:00
Maciej Suminski
3f1b9a6b4a
Different approach to item recaching.
2013-08-07 17:20:01 +02:00
Maciej Suminski
c81b17c1cb
Some more reformatting and adding copyright notices.
2013-08-07 11:20:12 +02:00
Maciej Suminski
c928bc8ce3
Fixed layers caching settings. Added some comments.
2013-08-07 10:52:50 +02:00
Maciej Suminski
b6c4aaac8e
Moved highlighted flag from VIEW_ITEM to EDA_ITEM. Added brightened and selected flag to EDA_ITEM.
2013-08-06 09:31:08 +02:00
Maciej Suminski
fa7b6a8cec
Moved VIEW_ITEM::ViewGetRequiredLayers() functionality to the VIEW class. Now required layers are set per layer basis instead of per item.
2013-08-05 16:28:58 +02:00
unknown
0c6e180937
Merged Orson's changes
2013-08-02 17:28:09 +02:00
unknown
24cab0eabd
View: various fixes, added VIEW::IsDirty()
2013-08-02 16:51:38 +02:00
Maciej Suminski
017c41bc5f
Upstream merge.
2013-08-02 15:57:24 +02:00
Maciej Suminski
d41ea73765
Fixed top layer pads netnames issue.
2013-07-29 14:20:40 +02:00
Maciej Suminski
e644f5be05
OpenGL multitarget rendering (compositing).
2013-07-23 18:39:07 +02:00
Maciej Suminski
af26e17fa7
Fixed comments.
2013-07-19 09:35:25 +02:00
Maciej Suminski
1d582a515c
Added an interface for highlighting.
2013-07-17 10:21:46 +02:00