Commit Graph

79 Commits

Author SHA1 Message Date
Mateusz Zalega
d03291eeb1 gui: improved FPGAViewWidget::paintGL() performance
Profiling revealed that memcpy() in QOpenGLBuffer::allocate() had been taking
the most time during paintGL() calls. I've been able to take the CPU usage
down to about 1/4 of its previous values by caching elements in VBOs and
updating them only after subsequent calls to renderGraphicElement().

Signed-off-by: Mateusz Zalega <mateusz@appliedsourcery.com>
2018-10-23 15:43:51 +02:00
Miodrag Milanovic
529a595157 Recalculate max zoom level depending of arch 2018-10-14 12:40:19 +02:00
Miodrag Milanovic
ad84df7974 Hover on items in tree 2018-08-22 17:38:42 +02:00
Miodrag Milanovic
4cc49ef6e3 Fix hover when cursor leaves view, fixes #63 2018-08-22 11:54:08 +02:00
Serge Bazanski
f3fac0b0ef gui: fix #57 2018-08-19 23:39:27 +01:00
Miodrag Milanovic
a6d702d85d fix zoom on elements, fixes #61 2018-08-19 20:54:41 +02:00
Sergiusz Bazanski
1f787c37a3 gui: fix zoom outbound not happening with fast startup time 2018-08-01 03:55:28 +01:00
Sergiusz Bazanski
c210ce7768 gui: unselect on click and zoom fixes 2018-07-27 15:46:00 +01:00
Sergiusz Bazanski
816d33fa94 gui: deunionize PickedElement to support arches with typedefd Ids 2018-07-27 15:11:41 +01:00
Sergiusz Bazanski
96608c8d07 gui: allow selecting pips 2018-07-27 02:28:01 +01:00
Sergiusz Bazanski
e1dfbc0241 gui: do not allow selecting FRAMEs 2018-07-27 02:24:00 +01:00
Sergiusz Bazanski
3967899a2a gui: don't keep stale hover selections 2018-07-27 02:17:04 +01:00
Sergiusz Bazanski
1fe1b99a5a gui: ctrl click to select multiple elements 2018-07-27 02:14:40 +01:00
Sergiusz Bazanski
6db0731ea5 gui: implement zoom to selection 2018-07-27 02:04:24 +01:00
Sergiusz Bazanski
5a7fe84a04 gui: clang-format 2018-07-27 01:22:29 +01:00
Sergiusz Bazanski
0eb40da749 gui: implement zoom to outbounds 2018-07-27 01:21:50 +01:00
Sergiusz Bazanski
df908374dc gui: implement basic cursor picking 2018-07-26 22:40:45 +01:00
Sergiusz Bazanski
567566585c wip 2018-07-26 18:43:00 +01:00
Sergiusz Bazanski
940886f9fa Merge branch 'master' into q3k/clickity 2018-07-26 17:46:27 +01:00
Sergiusz Bazanski
16acc6ea43 gui: move polyline/lineshader to gui/lineshader.{h,cc} 2018-07-26 17:37:24 +01:00
Sergiusz Bazanski
ba5395d89f gui: refactor FPGAViewWidget even more slightly 2018-07-26 17:33:19 +01:00
Sergiusz Bazanski
706fe2f365 gui: refactor FPGAViewWidget slightly 2018-07-26 17:26:26 +01:00
Sergiusz Bazanski
c37d2baaf6 common: rename GraphicElement::{style,type} enums, add _MAX members 2018-07-26 16:39:19 +01:00
Sergiusz Bazanski
340c2520b0 Merge branch 'master' into q3k/clickity 2018-07-26 16:26:26 +01:00
Sergiusz Bazanski
f1b84fbdc5 gui: style fixes 2018-07-26 16:26:05 +01:00
Sergiusz Bazanski
4a21436dfa Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr 2018-07-26 16:22:19 +01:00
Sergiusz Bazanski
c897c0ca9a gui: clickable bels, WIP 2018-07-26 16:20:58 +01:00
Miodrag Milanovic
4587b8c000 added buttons for new zoom operations 2018-07-26 13:21:46 +02:00
Miodrag Milanovic
6b8b067b1a Fix for zero length case 2018-07-25 09:37:22 +02:00
Clifford Wolf
c3cbc274ac Change G_FRAME color to be significantly darker than G_ACTIVE
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-24 12:24:14 +02:00
Clifford Wolf
9d38907e95 Add G_ARROW (for now same look as G_LINE)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-07-24 12:18:01 +02:00
Miodrag Milanovic
7fd45c0cdf Proper highlight/selected cleanup on context re-init 2018-07-23 17:10:06 +02:00
Sergiusz Bazanski
44f52234fb QTimer::start(std::chrono::duration -> int)
The chrono::duration-friendly method is availble from Qt 5.8 only.
2018-07-21 21:44:40 +01:00
Sergiusz Bazanski
0311a27a53 Use UI lock for yielding 2018-07-20 18:34:59 +01:00
Sergiusz Bazanski
19f4b68f07 clang-format and uncomment debug 2018-07-20 13:19:56 +01:00
Sergiusz Bazanski
0385ad1b1c Refactor renderer thread 2018-07-20 10:58:30 +01:00
Serge Bazanski
03508faabf WIP. 2018-07-17 19:16:26 +01:00
Miodrag Milanovic
a5f93343b6 Added check for yosys availability 2018-07-17 09:40:26 +02:00
Miodrag Milanovic
29df566a60 Fix MSVC build 2018-07-16 08:07:57 +02:00
Miodrag Milanovic
ecc4c3fa7b added highlight groups 2018-07-15 17:50:58 +02:00
Miodrag Milanovic
bf0b1d2db3 add select on property pane, and action to double click 2018-07-15 12:39:19 +02:00
Miodrag Milanovic
fcba866b63 remove selected on context change 2018-07-14 20:19:39 +02:00
Sergiusz Bazanski
1b5c1b028e Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr 2018-07-14 19:12:29 +01:00
Sergiusz Bazanski
36b4e3382d Revert "Make GUI nice and smooth."
This reverts commit a8c84e90a3.
2018-07-14 18:50:50 +01:00
Miodrag Milanovic
8d1996cae9 display selected object from tree 2018-07-14 19:44:37 +02:00
Sergiusz Bazanski
a8c84e90a3 Make GUI nice and smooth. 2018-07-13 20:53:52 +01:00
Sergiusz Bazanski
309a533b7c Style. 2018-07-13 11:39:33 +01:00
Miodrag Milanovic
0f0259fd94 invert palette for fpga viewer 2018-07-13 11:21:49 +02:00
Miodrag Milanovic
96d862311d Add coloring per graphics element style 2018-07-13 11:03:09 +02:00
Sergiusz Bazanski
499951cb65 Remove legacy graphics API
For now we do not optimize the OpenGL renderer against the new decal
API, but this can be done in the future.
2018-07-12 21:30:36 +01:00