Maciej Suminski
6054e7be0a
Added a few comments.
2013-09-06 16:01:46 +02:00
Maciej Suminski
345e97f296
Solved refreshing issues.
2013-09-06 11:31:16 +02:00
Maciej Suminski
7e4eba9eed
Some comments.
2013-09-04 16:25:57 +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
1a1416aaa4
Fixed Cairo's render target setting.
2013-09-03 17:46:05 +02:00
Maciej Suminski
7c745cd9c6
Allow invoking GAL tools, only if GAL is active.
2013-09-02 16:44:13 +02:00
Maciej Suminski
1e1fbb4ccf
Corrected behaviour of drag panning while autopanning is enabled.
2013-09-02 16:26:42 +02:00
Maciej Suminski
0b17e5d288
Added some comments and changed names of classes to match the coding rules.
2013-09-02 14:21:12 +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
367924e669
Added stacking for tools.
2013-08-30 10:37:26 +02:00
Maciej Suminski
d62e474850
Reduced displayed events information.
2013-08-29 12:03:57 +02:00
Maciej Suminski
00a2da7d18
Fixed cursor drawing for OpenGL.
2013-08-28 17:06:07 +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
0a17e9a236
Fix for wxWidgets 2.9.5
2013-08-26 14:23:17 +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
7fe85b44f9
Modified InvokeTool(), so besides resetting the tool, it also send an ActivateTool event.
...
Added generation of CancelTool event upon ESC key press.
Minor bugfix.
2013-08-22 15:07:34 +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
c8d06997f5
Added InvokeTool() and FindTool() functions.
2013-08-20 14:49:08 +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
543d4af682
Added resetting of tools after loading a new board.
2013-08-15 10:20:49 +02:00
Maciej Suminski
eb290bf362
Added some comments.
2013-08-09 15:21:31 +02:00
Maciej Suminski
eefc79b5b2
Reformatting.
2013-08-08 19:41:20 +02:00
Maciej Suminski
9d9d74faad
Reformatting.
2013-08-08 14:59:59 +02:00
Maciej Suminski
c2342776e1
Fixed disambiguation menu issue.
2013-08-08 14:50:32 +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
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
f33a4975ef
Simplified color computation.
2013-08-07 09:51:39 +02:00
Maciej Suminski
5920137968
Removed frame limiter.
2013-08-07 09:37:28 +02:00
Maciej Suminski
3096a26b59
Added GetTarget() for GALs.
2013-08-06 14:57:48 +02:00
Maciej Suminski
ff2a719bf7
Code reformatting.
2013-08-06 10:30:09 +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
Maciej Suminski
a8ea2e05a4
Windows build fix.
2013-08-02 19:21:22 +02:00
unknown
0c6e180937
Merged Orson's changes
2013-08-02 17:28:09 +02:00
unknown
1a19c761ae
pcbnew: hooked Tool Framework into the edit panel. Added a sample selection tool (not fully functional).
2013-08-02 16:53:50 +02:00
unknown
24cab0eabd
View: various fixes, added VIEW::IsDirty()
2013-08-02 16:51:38 +02:00
unknown
2d09237bd7
Added core tool framework files + boost::context assembly stuff (initial, very buggy and unfinished work).
2013-08-02 16:46:53 +02:00
Maciej Suminski
017c41bc5f
Upstream merge.
2013-08-02 15:57:24 +02:00
Maciej Suminski
d7857dd026
Fixed the tesselator, so now it works with Windows.
2013-08-02 10:55:40 +02:00
Maciej Suminski
7ac5a172fa
Modified usage of wxStandardPaths to make it compatible with newer versions of wxWidgets.
2013-08-02 10:35:58 +02:00
Maciej Suminski
f44a64a705
Modified way of handling OpenGL framebuffer errors.
...
Now it is more verbose and the status is checked at the right moment (previously it was fine with Linux, but on Windows it showed errors).
2013-08-02 10:34:23 +02:00
jean-pierre charras
490b630e2d
Minor fixes. Minor code cleaning. Pcbnew: better iniatilization of members in DRAWSEGMENT, TRACK, EDGE_MOD (not bugs: just useful when using python scripting).
2013-07-31 18:41:32 +02:00
Maciej Suminski
db6aecda47
New display style for grid (dotted).
2013-07-31 10:28:23 +02:00
Maciej Suminski
83ca78a5fb
Fixed grid line drawing in OpenGL backend for some drivers.
2013-07-31 09:01:25 +02:00
Maciej Suminski
2f0ae47c8e
Code refactoring.
2013-07-30 18:29:54 +02:00
Maciej Suminski
11a2d81738
Made GAL backends settings more consistent. Fixed grid line width in the OpenGL backend.
2013-07-30 17:09:06 +02:00
Maciej Suminski
bb4ea2db67
Merge removal of the shaderless OpenGL backend.
2013-07-30 14:05:32 +02:00
Maciej Sumiński
70a2321cc1
Fixed smudging in the Cairo backend.
2013-07-30 13:58:03 +02:00
Maciej Suminski
2331742384
Removed shaderless OpenGL backend.
2013-07-29 16:38:07 +02:00
Maciej Suminski
5a5616f258
Added initialization of variable, preventing unconditional jumps. Fixed typos in comments.
2013-07-29 14:12:27 +02:00
jean-pierre charras
bd3108a40c
Minor code cleaning. Pcbnew: better iniatilization of members in DRAWSEGMENT, TRACK, EDGE_MOD (useful when using python scripting).
2013-07-29 09:33:56 +02:00
jean-pierre charras
bb087fdc45
Pl_Editor: add undo/redo commands.
2013-07-26 14:50:29 +02:00
Maciej Suminski
a4a2196cc2
Fixed profiling timers for compilation under Win32 (and hopefully Mac OS too).
2013-07-26 14:35:31 +02:00
jean-pierre charras
076defb0a5
Pl_Editor: title block texts can be multiline (use" \n" : a '\' followed by a 'n' to create a new line inside a text)
...
Very minor code cleaning.
2013-07-25 20:58:46 +02:00
Maciej Suminski
76660ff15b
Fixed high contrast mode in OpenGL. Split display settings loading into more appropriate places.
2013-07-25 18:04:15 +02:00
Maciej Suminski
60471ecc1e
Added a layer compositor for the Cairo backend.
2013-07-25 14:40:04 +02:00
jean-pierre charras
9e68ba1ea3
Very minor code cleaning
2013-07-24 20:34:28 +02:00
jean-pierre charras
7f6787c8b8
Pl_Editor: add some hot keys. Fix some rounding issues.
2013-07-24 17:11:35 +02:00
Maciej Suminski
8c74dcde28
Fixed blending function for OpenGL compositing. Corrected documentation, removed unnecessary functions.
2013-07-24 15:06:59 +02:00
Maciej Suminski
e644f5be05
OpenGL multitarget rendering (compositing).
2013-07-23 18:39:07 +02:00
jean-pierre charras
7007601655
Fix an issue in Debug mode
2013-07-23 12:35:58 +02:00
jean-pierre charras
919edcf1e1
Bug #1202761 (Off centre zoom )
2013-07-22 20:38:04 +02:00
jean-pierre charras
cf9d1ba541
Fix GOST compatibility.
2013-07-22 18:45:22 +02:00
Maciej Suminski
d6628419c9
Changed rendering order of cached & noncached layers.
2013-07-22 13:14:53 +02:00
Maciej Suminski
75eb5491d5
Code refactorization. VBO_CONTAINER is split to [NON]CACHED_MANAGER, GPU_MANAGER and VERTEX_MANAGER.
2013-07-22 10:41:12 +02:00
jean-pierre charras
9f22c35519
Add margin values control in pl_editor, and remove margin definition from class PAGE_INFO.
2013-07-20 21:36:19 +02:00
jean-pierre charras
fdbdb76c39
Initial release of pl_editor, the page layout and title block editor.
2013-07-19 20:27:22 +02:00
Maciej Sumiński
769bf51359
Headers containing shader program sources are generated using CMake.
2013-07-17 23:55:59 +02:00
Maciej Suminski
c81c316a46
Refactorization of VBO_CONTAINER.
2013-07-17 18:49:38 +02:00
Maciej Suminski
e5192ceddd
Fixed wrong memory freeing.
2013-07-17 14:16:37 +02:00
Maciej Suminski
1d582a515c
Added an interface for highlighting.
2013-07-17 10:21:46 +02:00
Maciej Suminski
a4a6064316
Fixed stroked circles width issue with OpenGL shaders.
2013-07-17 10:21:29 +02:00
Maciej Suminski
3cedadd738
Fixed OpenGL tracks transparency & netnames issue.
2013-07-16 15:44:08 +02:00
Maciej Suminski
3ba2d4428b
Added support for multiple active layers (colored ones in the high contrast mode).
...
Added separate layers for pad netnames (now these are divided into multilayer/top/bottom pads).
More appropriate layers are selecting a copper layer in the high contrast mode (now it shows the copper layer itself, vias & multilayer pads and netnames).
2013-07-16 13:40:53 +02:00
Maciej Suminski
2b3d6075e2
1 pixel wide outlines for the Cairo and the OpenGL with shaders backends, but it breaks displaying outline in the shaderless OpenGL backend.
2013-07-16 09:27:28 +02:00
Maciej Suminski
1073a524b9
Refactored code responsible for high contrast mode. Now it allows to have more than one layer on the top.
...
Selecting layer using the dropdown list on the toolbar influences the layer displayed in high contrast mode.
2013-07-16 09:26:29 +02:00
Maciej Suminski
6dd9cb6fb8
1 pixel wide lines using OpenGL shaders.
2013-07-16 08:49:12 +02:00
Maciej Suminski
6789755b06
Stroked lines in Cairo GAL are always drawn at least 1 pixel wide.
2013-07-16 08:48:21 +02:00
Maciej Suminski
79a4f42ef9
Fixed multiline vertical strings drawing bug.
2013-07-09 10:00:23 +02:00
Dick Hollenbeck
8fdf3799a2
dialog information hiding, initial Fit()
2013-07-09 00:48:26 -05:00
Dick Hollenbeck
4b095ab61f
comment improvements
2013-07-09 00:22:08 -05:00
Dick Hollenbeck
757d617ef3
wxStandardPaths().GetExecutablePath(); is not wx 2.9.5 compatible, formatting improvements
2013-07-09 00:20:07 -05:00
Maciej Suminski
ea436444f2
wxWidgets 2.8 compatibility fix.
...
Scripting engine build fix.
2013-07-08 17:14:16 +02:00
Maciej Suminski
7d9d2e508d
Remove updating of non-cached layers.
2013-07-08 15:24:44 +02:00
Maciej Suminski
5bd8e7d4e8
Upstream merge.
2013-07-08 15:05:12 +02:00
Maciej Suminski
85131e359e
Added 'required layers' option for drawn items.
2013-07-08 09:28:58 +02:00
Maciej Sumiński
f067dc8b32
Added possibility to change zoom using toolbar in GAL.
2013-07-07 19:30:44 +02:00
Maciej Sumiński
f885296fb2
Removed KICAD_GAL CMake option.
2013-07-07 02:30:28 +02:00
Maciej Suminski
145ea35ac3
Fixed segmentation fault when there was no board loaded.
2013-07-05 15:48:45 +02:00
Maciej Suminski
1399ed198c
Removed most of deprecated OpenGL calls. Items used to be drawn in immediate mode now are drawn using vertex arrays.
2013-07-05 14:01:33 +02:00