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
falkTX
8f20f299da
PatchCanvas: Theme fixes; Add "Modern Dark (Tiny)" and "OpenOctave Studio" themes
13 years ago
falkTX
4e99f75a4f
PatchCanvas syntax changes
13 years ago
falkTX
7d346ad316
Finish Claudia for now, only missing custom Add-New method
13 years ago
falkTX
5e63232fec
More Claudia work, changing rooms work
13 years ago
falkTX
fd6ab5416a
Catarina/PatchCanvas: Protect against bad XML files
13 years ago
falkTX
12c0867d25
PatchCanvas: Only activate fade and glow FX when eyecandy is set to full
13 years ago
falkTX
7b78d66493
Implement shared-settings, now in Catarina
13 years ago
falkTX
361c2299fa
Misc fixes
13 years ago
falkTX
9d775a0f67
PatchCanvas is now complete (except Arrange())
13 years ago
falkTX
e7bb1eb3a6
PatchCanvas: remove abstract line, add fade-anim class
13 years ago
falkTX
9e5e14aefb
More canvas work
13 years ago
falkTX
ee43be9b27
More canvas work
13 years ago