mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Update PatchChange when instrument/midnam changes
This commit is contained in:
parent
d0a116b2ae
commit
4e005540c6
4 changed files with 36 additions and 32 deletions
|
|
@ -34,38 +34,36 @@ namespace MIDI {
|
|||
class PatchChange
|
||||
{
|
||||
public:
|
||||
PatchChange(MidiRegionView& region,
|
||||
ArdourCanvas::Container* parent,
|
||||
const std::string& text,
|
||||
double height,
|
||||
double x,
|
||||
double y,
|
||||
ARDOUR::InstrumentInfo& info,
|
||||
ARDOUR::MidiModel::PatchChangePtr patch,
|
||||
Gtkmm2ext::Color outline_color,
|
||||
Gtkmm2ext::Color fill_color);
|
||||
PatchChange (MidiRegionView& region,
|
||||
ArdourCanvas::Container* parent,
|
||||
double height,
|
||||
double x,
|
||||
double y,
|
||||
ARDOUR::InstrumentInfo& info,
|
||||
ARDOUR::MidiModel::PatchChangePtr patch,
|
||||
Gtkmm2ext::Color outline_color,
|
||||
Gtkmm2ext::Color fill_color);
|
||||
|
||||
~PatchChange();
|
||||
~PatchChange ();
|
||||
|
||||
void initialize_popup_menus();
|
||||
|
||||
void on_patch_menu_selected(const MIDI::Name::PatchPrimaryKey& key);
|
||||
void initialize_popup_menus ();
|
||||
|
||||
void on_patch_menu_selected (const MIDI::Name::PatchPrimaryKey& key);
|
||||
|
||||
void move (ArdourCanvas::Duple);
|
||||
void set_height (ArdourCanvas::Distance);
|
||||
void hide ();
|
||||
void show ();
|
||||
|
||||
double width() const { return _flag->width(); }
|
||||
void set_text (std::string const & s) { _flag->set_text (s); }
|
||||
void update_name ();
|
||||
|
||||
ARDOUR::MidiModel::PatchChangePtr patch() const { return _patch; }
|
||||
ArdourCanvas::Item* canvas_item() const { return _flag; }
|
||||
ArdourCanvas::Item& item() const { return *_flag; }
|
||||
double width () const { return _flag->width (); }
|
||||
ARDOUR::MidiModel::PatchChangePtr patch () const { return _patch; }
|
||||
ArdourCanvas::Item* canvas_item () const { return _flag; }
|
||||
ArdourCanvas::Item& item () const { return *_flag; }
|
||||
|
||||
private:
|
||||
bool event_handler (GdkEvent *);
|
||||
bool event_handler (GdkEvent*);
|
||||
|
||||
MidiRegionView& _region;
|
||||
ARDOUR::InstrumentInfo& _info;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue