Tomasz Włostowski
8bd9dd49bb
view: added quick hiding mechanism in VIEW/VIEW_ITEM
11 years ago
Maciej Suminski
8a5fedb728
Code formatting and cleaning.
12 years ago
Maciej Suminski
5134781a38
GAL view in pad properties dialog - initial version.
12 years ago
Maciej Suminski
0fc93666c6
Rework to support multiple views with OpenGL GAL canvas.
12 years ago
Maciej Suminski
13e67e1f3c
Fixed VIEW::SetViewport().
12 years ago
Lorenzo Marcantonio
89f14906a4
- Added the courtyard/fabrication layer to the layer combo and layer
panel
- Corrected handling of scrollability in layer panel (fixes 1336996)
12 years ago
Bernhard Stegmaier
60a86853ec
Removed a few warnings.
12 years ago
Tomasz Włostowski
5bf50ee910
VIEW: added CalculateExtents() method
12 years ago
Maciej Suminski
89161331e4
Fixed refreshing issues (DRC, new items after reloading netlist and probably many other places).
12 years ago
Maciej Suminski
39bca76df7
>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.)
12 years ago
Maciej Suminski
dbc4a8f292
GAL zooms in and out using the default hot keys (F1/F2).
Screen size is saved in VECTOR2I instead of VECTOR2D.
12 years ago
Maciej Suminski
f6959c039c
Comments.
12 years ago
Maciej Suminski
afc56d3f6f
Moved panning boundaries and scale limits from VIEW to VIEW_CONTROL.
12 years ago
Maciej Suminski
54bf21768c
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).
12 years ago
Maciej Suminski
ecb3aebce3
Fixed a bug caused by removed VIEW_ITEMs that were marked for updating.
12 years ago
Maciej Suminski
e6598e9d41
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().
12 years ago
Maciej Suminski
d583280bb0
Minor code cleaning and optimizations.
12 years ago
Maciej Suminski
de637d2b8d
Fixed a missing group clearing and update for restored VIEW_ITEMs.Fixed a missing group clearing and update for restored VIEW_ITEMs.
12 years ago
Maciej Suminski
5ac699776d
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.
12 years ago
Maciej Suminski
f9f0b46b63
Small GAL refactorization, mostly correcting constness.
12 years ago
Maciej Suminski
4a0407fb69
Removed some debug logs.
12 years ago
Maciej Suminski
d8acd1c718
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.
12 years ago
Maciej Suminski
08fd9d8cbd
Overridden ViewUpdate() for MODULE class, so it handles its pads, drawings and texts.
12 years ago
Maciej Suminski
06f4662ea0
Profile counter simplified, so it should be more portable.
12 years ago
Maciej Suminski
89b80b2bcd
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.
12 years ago
Maciej Sumiński
bb0f4b9ac3
Patches one by Lorenzo, one by Orson
12 years ago
Maciej Suminski
bc305859b2
Mainly case changes.
12 years ago
Maciej Suminski
0ac3e1fbf2
Namespace KiGfx->KIGFX.
template<> -> template <>
Some more reformatting according to uncrustify results.
12 years ago
Maciej Suminski
54946f46f7
Fixed memory leak caused by ViewUpdate() with VIEW_ITEM::GEOMETRY/LAYER parameters.
12 years ago
Maciej Suminski
1de8eba49e
Added functions for refreshing the layer set occupied by a VIEW_ITEM.
12 years ago
Maciej Suminski
9b16651607
Added limits for VIEW scale values & panning area.
12 years ago
tomasz.wlostowski@cern.ch
dea793209d
VIEW: added GetTopLayer() method
12 years ago
Maciej Suminski
573f9841df
Better way of marking 'brightened' mode for items.
12 years ago
Maciej Suminski
e00c8e92cb
Removed VIEW_LAYER.isDirty flag.
12 years ago
Maciej Suminski
42860b5d02
Changed VIEW::PrepareTargets() to more appropriate name VIEW::ClearTargets(). Added SELECTION layer to always-on-top list.
12 years ago
Maciej Suminski
d9ff4b851a
Currently selected layer is displayed on the top.
12 years ago
Maciej Suminski
f179183dea
Removed some dead code.
12 years ago
Maciej Suminski
afe2e27b0a
Moved GetColor() from PAINTER to RENDER_SETTINGS. Fixed recaching of custom items.
12 years ago
Maciej Suminski
ab4cb862b0
Solved refreshing issues.
12 years ago
Maciej Suminski
bf3690d841
More effective way of updating bounding boxes. IsCached() method made public. Removed some of unused fields from the layer description structure.
12 years ago
Maciej Suminski
fef50dd81e
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.
12 years ago
Maciej Suminski
215f35e237
Added mouse cursor drawing.
Added flipping mode.
12 years ago
Maciej Suminski
3962464190
Fixed linking errors for apps other than pcbnew.
12 years ago
Maciej Suminski
6b3742b76b
Mark layers as dirty on VIEW_ITEM removal.
12 years ago
Maciej Suminski
5adba827a6
Added VIEW_GROUP for grouping items to be displayed on a single layer.
12 years ago
Maciej Suminski
43ae1cb98d
Smarter way of the overlay rendering (overlay is always refreshed, while cached&noncached targets only if the viewport or items have changed).
12 years ago
Maciej Suminski
e697a2c41c
Functions for direct item drawing.
12 years ago
Maciej Suminski
402f3c6f2c
Added brightened mode for selecting items using disambiguation menu.
12 years ago
Maciej Suminski
8c37e70889
Different approach to item recaching.
12 years ago
Maciej Suminski
62ea71fcae
Fixed layers caching settings. Added some comments.
12 years ago