Nikita Zlobin
9a5d0a3a8e
Implemented group bottom space property
7 years ago
Nikita Zlobin
075b7b2ff3
Cut connections, holding down middle mouse button
We need some easier method for all-day usage, in addition to existing
point-and-click method. Also added mouse button filter for connection
lines.
7 years ago
Nikita Zlobin
0b68d1d839
Fixing incompleted changes in horizontal port positioning
Fixed connection line, but forgot about separate type for tranzient draggable type.
7 years ago
Nikita Zlobin
1f065db693
Use multiargumet max() implementation
7 years ago
Nikita Zlobin
50b04bc779
Code optimization
7 years ago
Nikita Zlobin
edaf1766b4
Better placement for box text
Use only necessary space if icons are displayed.
Reserve space for text spacing.
7 years ago
Nikita Zlobin
8069985f8a
Fixed some message text
7 years ago
Nikita Zlobin
77aae751f6
JoinGroup(): code optimization, added "invalid port mode" message
7 years ago
Nikita Zlobin
b1263aa629
Fixed port sizing/placing, configurable port sides distance
Here and there it had some magical values, like 12.
Now m_port_width means distance between side port edges. For polygon
type it means distance between outer edge and corner point.
Distance between ports is now set correct, and may be configured in
theme (value 0 will place them side to side or corner to corner, without
intersetions).
Box port placing part in updatePositions() is also compacted.
7 years ago
Nikita Zlobin
d735e98775
Misprinting
Caused lone input port to be not covered by client box
7 years ago
Nikita Zlobin
34a3cc7afa
Fixed box height calculation
Bottom space includes port spacing too. Final bottom space is biggest of
port spacing, rounding, 2. Honor header shift due to line weight.
Compacted spacingT collect code.
7 years ago
Nikita Zlobin
2717fb15de
Apply sub-pixel positioning to rubberband
7 years ago
Nikita Zlobin
0ffbaeccfd
Delete connections by middle mouse button click
Unclosed paths have some issues, when taking part in intersections,
so stroker seems to be only solution for now.
7 years ago
Nikita Zlobin
c9c4114f5d
Group and port highlight effect
Draw highlight outline, for if outline is empty (Qt.NoPen), highlight entire background.
TODO: Do we need full bg/fg/outline hover-highlighting support?
7 years ago
Nikita Zlobin
360837d719
Rounded caps for straight line connections, flat for splines
Previous square cap style caused it to be drawen slightly out of end
point, and that part sometimes appeared above port, sometimes not
(usually if you select one port, connection covers port on another
side).
7 years ago
Nikita Zlobin
21d141414d
Simpler connection line position calc code
Use ready values for right and left sides, also making code slightly
better readable (probably subjective though).
7 years ago
Nikita Zlobin
a6cc43d1ea
Forgotten unused stuff
7 years ago
Nikita Zlobin
33befe7738
Round boxes coordinates to integers after movement
Group box may get non-integer coordinates if, e.g. moved with scaled viewport.
When it happens, previously sharp lines between to draw between pixels,
while previously blurred lines may reversly get a sharp look.
When in scaled state, graphics still may be badly-antialiased though.
7 years ago
Nikita Zlobin
29559cac81
Code optimization
7 years ago
Nikita Zlobin
d830631ef5
Text auto-alignment in port and groups.
Text in port is aligned by center.
In group it is centered in header rect.
When icon is supported, text is aligned vertically with it,
and centered between icon and right group edge.
7 years ago
Nikita Zlobin
fb1e9c8ff5
Draw port by single path, using intersection.
There problem with intersection, causing absent outline from one side, if not using that magical value 0.001 (any non-zero)
7 years ago
Nikita Zlobin
84612a5bef
Some useless lines
Clipping is enabled automatically, when clip shape is set.
7 years ago
Nikita Zlobin
4f39fd1a41
Fix polygon port drawing
Polygon was not enclosed automatically, when added to path.
7 years ago
Nikita Zlobin
7f68c70a60
Support rounded square ports
7 years ago
Nikita Zlobin
a61c15e6a1
Place ports on the edge in modern themes for easier look, and...
What about to deliver to theming, wether ports cover group edge or not?
7 years ago
Nikita Zlobin
d5e33d06c8
Yet another bit of code optimization
7 years ago
Nikita Zlobin
a7524359ae
Don't add extra height, when rounding does it.
7 years ago
Nikita Zlobin
6df25a106d
Draw port outlines inside of designated area
When drawen outside, free space between ports is busy.
But when inside, outline is overlaped with text, so themes need bigger height to fix that.
7 years ago
Nikita Zlobin
2ae7b913d1
Port subpixel positioning. Improved OOStudio style.
7 years ago
Nikita Zlobin
233b0157c6
Local code optimization
7 years ago
Nikita Zlobin
b3f4ae60f6
Fine-tuned box coordinates, depending on line width
Necessary for classic theme. Now it will look like in latest patchage/ingen series.
7 years ago
Nikita Zlobin
cbb10c02cc
Themeable rounding. Use smaller value for tiny versions.
Smaller value is guessed by distance between bottom box side and ports.
7 years ago
Nikita Zlobin
104ccbb732
Clip header pixmap
7 years ago
Nikita Zlobin
3b3b60bf1a
Try some rounding
7 years ago
Nikita Zlobin
aeeaa59470
Fix anialiasing for box border
The drawRect() doesn't have variant, using qreal values, but it accepts QRectF. Even for integer coordinates it uses subpixel positioning, thus always placing them exactly between pixels.
7 years ago
falkTX
123999121f
Import updated patchcanvas.py file from Carla
11 years ago
falkTX
ca10b10d82
Fix crash on canvas reinit
12 years ago
falkTX
63d6cf6a05
Fully clear canvas on refresh, fixes #52
12 years ago
falkTX
1c3b6755dd
Update canvas code from Carla
12 years ago
falkTX
abac976249
Import code fixes from Carla
12 years ago
falkTX
846ce6e213
PatchCanvas: Fix new groups appearing outside canvas bounds
12 years ago
falkTX
d0e6cf750c
Remove print from last commit
12 years ago
falkTX
74ae76056b
PatchCanvas: Workaround crash with eyecandy
12 years ago
falkTX
a0a6e24984
Code cleanup
12 years ago
falkTX
aab6590b16
Change my email address to falktx /at/ falktx
12 years ago
falkTX
c14875e1f9
PatchCanvas: Fix split option logic
12 years ago
falkTX
056b56c1b4
Fix handling XML files with unicode; Fix Catarina group remove
12 years ago
falkTX
a788158b38
Misc syntax fixes
12 years ago
falkTX
55e5415ef1
JackMeter: fix build with older jack versions
12 years ago
falkTX
b70e9af4b0
PatchCanvas: save settings in app config; misc changes
12 years ago