Bernhard Stegmaier
2bd17a5c8b
Removed a few warnings.
2014-06-05 12:40:26 +02:00
Maciej Suminski
648d81b2f7
Fix for vertical/horizontal (using Ctrl/Shift + mousewheel) panning in GAL canvas.
2014-05-31 11:48:27 +02:00
Tomasz Włostowski
6cb0d0cbfc
VIEW: added CalculateExtents() method
2014-05-14 13:48:29 +02:00
Maciej Suminski
a4805cc99d
Disable autopanning when GAL panel does not have focus.
2014-05-14 09:42:16 +02:00
Maciej Suminski
ef7e71e93a
Fixed jumpy zoom when hotkeys and scroll wheel were used alternatively.
2014-05-13 11:22:51 +02:00
Maciej Suminski
19f1adabea
Fixed refreshing issues (DRC, new items after reloading netlist and probably many other places).
2014-04-07 15:35:50 +02:00
Maciej Suminski
93065de210
>Added handled hotkeys:
...
- resetting relative coordinates
- switching units
- not official: changing transparency for layers (works only for main layers, does not work on vias/pads/etc.)
2014-03-24 18:28:21 +01:00
Maciej Suminski
b1a1b12e42
GAL zooms in and out using the default hot keys (F1/F2).
...
Screen size is saved in VECTOR2I instead of VECTOR2D.
2014-03-20 08:47:31 +01:00
Maciej Suminski
86f84b9ed0
Comments.
2014-03-18 11:04:52 +01:00
Maciej Suminski
3e50e00f89
Moved panning boundaries and scale limits from VIEW to VIEW_CONTROL.
2014-03-12 17:09:53 +01:00
Maciej Suminski
7b706ee873
Added a few settings to make the layer settings more similar to KiCad defaults (moved vias to VIA_THROUGH_VISIBLE, added a few rules for required layers).
2014-03-11 10:58:58 +01:00
Maciej Suminski
bf9a7511f3
Fixed a bug caused by removed VIEW_ITEMs that were marked for updating.
2014-03-10 16:01:15 +01:00
Maciej Suminski
dbe19fc5f9
Added VIEW::ToWorld( double ).
...
TOOL_EVENT message is supposed to contain string as parameter.
Added missing header for class_drawsegment.h (KiROUND).
Renamed SELECTION_TOOL::containsSelected() to SELECTION_TOOL::selectionContains().
2014-02-27 16:13:27 +01:00
Maciej Suminski
374b15ff9e
Minor code cleaning and optimizations.
2014-02-24 14:31:55 +01:00
Maciej Suminski
de0e8bd519
Fixed a missing group clearing and update for restored VIEW_ITEMs.Fixed a missing group clearing and update for restored VIEW_ITEMs.
2014-02-24 12:56:47 +01:00
Maciej Suminski
be6dc9d0af
Revisiting GAL:
...
- VIEW_ITEM::ViewUpdate() does not update items immediately. Now it marks them to be updated and the real update occurs on the next rendering frame.
- VIEW::InvalidateItem() made private.
- VIEW_LAYER::enabled -> visible
- Some functions moved to header files.
2014-02-21 16:57:18 +01:00
Maciej Suminski
4c9e2acb02
GAL::GetGridPoint() returns point in world coordinates.
2014-02-14 14:16:08 +01:00
Maciej Suminski
249de46078
Cursor is in world coordinates.
2014-02-13 20:23:28 +01:00
Maciej Suminski
d19280aeb9
Small GAL refactorization, mostly correcting constness.
2014-02-13 19:31:27 +01:00
Maciej Suminski
9f5d968476
Fixed snapping item in a wrong spot bug.
2014-02-06 17:29:13 +01:00
Maciej Suminski
6e666b5d62
Modifiers (Alt/Shift/Control) are properly set for events when autopanning is active.
2014-02-04 13:38:18 +01:00
Maciej Suminski
221b68d0b8
Snapping settings are valid while autopanning.
2014-02-04 09:44:16 +01:00
Maciej Suminski
292a50f8c0
Fixed cursor force position option.
2013-12-20 16:07:58 +01:00
Maciej Suminski
2027222074
Upstream merge
2013-12-19 11:15:27 +01:00
Maciej Suminski
212f004cad
Removed some debug logs.
2013-12-18 12:46:18 +01:00
Maciej Suminski
9b4b5c931e
Moved Init() & Reset() from TOOL_INTERACTIVE to TOOL_BASE.
...
Added REASON enum for Reset() function, so tools will know why a reset occured.
Fixed SELECTION_TOOL (it was bailing out, when a new board was loaded and some items were still selected).
Added removal of VIEW_ITEM groups after changing layers and removing items.
2013-12-09 10:42:38 +01:00
Maciej Suminski
59f450bcfd
Merged upstream
2013-12-05 13:24:27 +01:00
Maciej Suminski
dc8997b1ac
Merged upstream
2013-12-03 16:43:53 +01:00
Maciej Suminski
a8bdd44cd1
Overridden ViewUpdate() for MODULE class, so it handles its pads, drawings and texts.
2013-12-02 14:35:05 +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