mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 02:56:35 +01:00
Use the channel selector to decide which channel to add program changes to.
git-svn-id: svn://localhost/ardour2/branches/3.0@8343 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
bc29adf054
commit
fd0c45ec97
5 changed files with 39 additions and 45 deletions
|
|
@ -26,19 +26,11 @@ using namespace Gtk;
|
|||
|
||||
ProgramChangeDialog::ProgramChangeDialog ()
|
||||
: ArdourDialog (_("Add Program Change"), true)
|
||||
, _channel (*manage (new Adjustment (1, 1, 16, 1, 2)))
|
||||
, _program (*manage (new Adjustment (1, 1, 128, 1, 16)))
|
||||
{
|
||||
Table* t = manage (new Table (2, 2));
|
||||
t->set_spacings (6);
|
||||
Table* t = manage (new Table (1, 2));
|
||||
|
||||
Label* l = manage (new Label (_("Channel")));
|
||||
l->set_alignment (0, 0.5);
|
||||
t->attach (*l, 0, 1, 0, 1);
|
||||
|
||||
t->attach (_channel, 1, 2, 0, 1);
|
||||
|
||||
l = manage (new Label (_("Program")));
|
||||
Label* l = manage (new Label (_("Program")));
|
||||
l->set_alignment (0, 0.5);
|
||||
t->attach (*l, 0, 1, 1, 2);
|
||||
t->attach (_program, 1, 2, 1, 2);
|
||||
|
|
@ -52,13 +44,6 @@ ProgramChangeDialog::ProgramChangeDialog ()
|
|||
show_all ();
|
||||
}
|
||||
|
||||
/** @return Channel, counted from 0 */
|
||||
uint8_t
|
||||
ProgramChangeDialog::channel () const
|
||||
{
|
||||
return _channel.get_value_as_int () - 1;
|
||||
}
|
||||
|
||||
/** @return Program change number, counted from 0 */
|
||||
uint8_t
|
||||
ProgramChangeDialog::program () const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue