summaryrefslogtreecommitdiffstats
path: root/src/PatchageCanvas.cpp
AgeCommit message (Collapse)AuthorFilesLines
2020-11-28Reduce use of raw new and deleteDavid Robillard1-2/+2
2020-11-28Refresh by emitting eventsDavid Robillard1-1/+86
This decouples drivers from the rest of the application, in particular the horrible situation where they were working with the canvas directly, by having them always communicate changes by emitting events.
2020-11-28Move SignalDirection to its own headerDavid Robillard1-0/+1
2020-11-28Rename ModuleType to SignalDirectionDavid Robillard1-6/+6
2020-11-28Index clients and ports by IDDavid Robillard1-42/+16
2020-11-28Factor out Connector from PatchageCanvasDavid Robillard1-74/+29
This finally breaks the dependency of the canvas on the entire application, and fixes the confusing situation where it wasn't clear whether connect/disconnect methods made/broke connections on the canvas or on the system.
2020-11-28Simplify driver connection interfaceDavid Robillard1-24/+4
2020-11-28Always index Jack ports and refer to them by nameDavid Robillard1-32/+1
The Jack API annoyingly doesn't provide a way to get an ID from a port name. Since notification callbacks apparently don't have to worry about realtime concerns anymore, simply use the full name string as an ID everywhere. This means that every Jack port has a non-null ID, and all ports are always indexed, so the kludges for this in the canvas can be removed.
2020-11-27Remove use of PatchagePort from Driver connection interfaceDavid Robillard1-4/+25
2020-11-27Use a consistent style for log messagesDavid Robillard1-3/+3
2020-11-27Use prettier names for log methodsDavid Robillard1-6/+3
2020-11-27Factor out log from Patchage classDavid Robillard1-3/+6
Towards saner dependencies.
2020-11-27Replace boost::format with fmtDavid Robillard1-4/+0
2020-11-27Fix unused parameter warningsDavid Robillard1-0/+3
2020-11-27Make single-argument constructors explicitDavid Robillard1-1/+1
2020-11-27Don't use else after returnDavid Robillard1-1/+3
I don't always agree with this one, but in this case it's reasonable enough.
2020-11-27Use C++ castsDavid Robillard1-3/+3
Unfortunately, the warning needs to stay on because of Gtk and ALSA.
2020-11-27Use "using"David Robillard1-1/+1
2020-11-27Use consistent naming convention for enum classesDavid Robillard1-24/+24
2020-11-27Use enum classesDavid Robillard1-18/+27
2020-11-27Always use braces around statementsDavid Robillard1-9/+18
2020-11-27Use auto where appropriateDavid Robillard1-16/+16
2020-11-27Use nullptrDavid Robillard1-10/+10
2020-07-21Remove useless castsDavid Robillard1-3/+2
2020-02-09Use range-based for loops in more placesDavid Robillard1-4/+2
2020-02-09Format all code with clang-formatDavid Robillard1-40/+44
This configuration tries to get as close to the previous style as possible so the changes aren't too dramatic. It's still far from ideal and the code could use some adaptation, but this makes things much easier to work on.
2020-02-09Remove standard using declarationsDavid Robillard1-5/+4
2019-12-29Clean up includesDavid Robillard1-8/+9
2015-02-16Distinguish edge color from port color slighly.David Robillard1-4/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5577 a436a847-0d15-0410-975c-d299462d15a1
2014-08-08Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5426 a436a847-0d15-0410-975c-d299462d15a1
2014-05-17Fix logic typo (thanks to Hanspeter Portner).David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5402 a436a847-0d15-0410-975c-d299462d15a1
2014-05-05Support Jack CV and OSC via metadata.David Robillard1-6/+11
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5398 a436a847-0d15-0410-975c-d299462d15a1
2014-03-15Fix crashes due to invalid format strings (fix #963).David Robillard1-5/+0
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5337 a436a847-0d15-0410-975c-d299462d15a1
2013-03-17Update copyright date.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5087 a436a847-0d15-0410-975c-d299462d15a1
2013-01-13Update for latest ganv.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@4953 a436a847-0d15-0410-975c-d299462d15a1
2012-04-22Remove buggy click-to-select-edge in Patchage.David Robillard1-24/+1
If this should work, it can/should be implemented in Ganv anyway. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@4227 a436a847-0d15-0410-975c-d299462d15a1
2012-04-20Fix disconnect via connection select and delete.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@4212 a436a847-0d15-0410-975c-d299462d15a1
2012-03-27Delete trailing whitespace.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@4112 a436a847-0d15-0410-975c-d299462d15a1
2012-03-09Fix "disconnect all".David Robillard1-3/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@4036 a436a847-0d15-0410-975c-d299462d15a1
2012-01-18Use consistent *_config.h rather than *-config.h.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3963 a436a847-0d15-0410-975c-d299462d15a1
2012-01-11Delete modules when Jack clients disappear.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3934 a436a847-0d15-0410-975c-d299462d15a1
2011-12-07Remove cruft from public API.David Robillard1-2/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3828 a436a847-0d15-0410-975c-d299462d15a1
2011-12-06FlowCanvas's successor is hereby dubbed Ganv.David Robillard1-19/+19
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3820 a436a847-0d15-0410-975c-d299462d15a1
2011-12-05Remove cruft.David Robillard1-15/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3811 a436a847-0d15-0410-975c-d299462d15a1
2011-12-04Move module ports down to C level.David Robillard1-8/+12
Add STL-style port iteration API to Module. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3795 a436a847-0d15-0410-975c-d299462d15a1
2011-12-04Store C items in Canvas.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3792 a436a847-0d15-0410-975c-d299462d15a1
2011-12-04Store C edges in Canvas.David Robillard1-0/+2
Edge is now truly just a thin C++ wrapper for the C object. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3787 a436a847-0d15-0410-975c-d299462d15a1
2011-12-04Move Port::_module down to C level (Port is now a stateless wrapper).David Robillard1-1/+1
Fix crash on edge deletion. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3785 a436a847-0d15-0410-975c-d299462d15a1
2011-12-03Don't expose canvas data structures.David Robillard1-27/+54
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3775 a436a847-0d15-0410-975c-d299462d15a1
2011-12-02Remove Shape typedef.David Robillard1-1/+1
Add Box wrapper class. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3752 a436a847-0d15-0410-975c-d299462d15a1