mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
* some refactoring of patch name stuff in preparation for altering program changes events
git-svn-id: svn://localhost/ardour2/branches/3.0@4323 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
18d6284438
commit
bf7e792e3e
7 changed files with 130 additions and 44 deletions
|
|
@ -36,10 +36,10 @@ CanvasProgramChange::on_event(GdkEvent* ev)
|
|||
switch (ev->type) {
|
||||
case GDK_SCROLL:
|
||||
if (ev->scroll.direction == GDK_SCROLL_UP) {
|
||||
cerr << "increasing program" << endl;
|
||||
previous_patch();
|
||||
return true;
|
||||
} else if (ev->scroll.direction == GDK_SCROLL_DOWN) {
|
||||
cerr << "decreasing program" << endl;
|
||||
next_patch();
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
|
|
@ -48,3 +48,15 @@ CanvasProgramChange::on_event(GdkEvent* ev)
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
CanvasProgramChange::previous_patch()
|
||||
{
|
||||
cerr << "decreasing program" << endl;
|
||||
}
|
||||
|
||||
void
|
||||
CanvasProgramChange::next_patch()
|
||||
{
|
||||
cerr << "increasing program" << endl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue