PropertyBoxen: provide all slot property editors in a popup dialog (?)
This commit is contained in:
parent
3918ee2ed6
commit
d30f87bf00
@ -32,6 +32,13 @@
|
|||||||
|
|
||||||
#include "gtkmm2ext/utils.h"
|
#include "gtkmm2ext/utils.h"
|
||||||
|
|
||||||
|
#include "audio_region_properties_box.h"
|
||||||
|
#include "midi_region_properties_box.h"
|
||||||
|
#include "audio_region_operations_box.h"
|
||||||
|
#include "midi_region_operations_box.h"
|
||||||
|
#include "slot_properties_box.h"
|
||||||
|
#include "midi_region_trimmer_box.h"
|
||||||
|
|
||||||
#include "ardour_ui.h"
|
#include "ardour_ui.h"
|
||||||
#include "gui_thread.h"
|
#include "gui_thread.h"
|
||||||
#include "trigger_ui.h"
|
#include "trigger_ui.h"
|
||||||
@ -378,9 +385,42 @@ TriggerWindow::TriggerWindow (Trigger* slot)
|
|||||||
{
|
{
|
||||||
set_title (string_compose (_("Trigger: %1"), slot->name()));
|
set_title (string_compose (_("Trigger: %1"), slot->name()));
|
||||||
|
|
||||||
TriggerWidget *triggerwidget = manage (new TriggerWidget ());
|
SlotPropertiesBox* slot_prop_box = manage (new SlotPropertiesBox ());
|
||||||
add (*triggerwidget);
|
slot_prop_box->set_slot(slot);
|
||||||
triggerwidget->show_all();
|
|
||||||
|
MidiRegionPropertiesBox *midi_prop_box = manage(new MidiRegionPropertiesBox ());
|
||||||
|
|
||||||
|
MidiRegionOperationsBox *midi_ops_box = manage(new MidiRegionOperationsBox ());
|
||||||
|
|
||||||
|
MidiRegionTrimmerBox *midi_trim_box = manage(new MidiRegionTrimmerBox ());
|
||||||
|
|
||||||
|
Gtk::Table* table = manage (new Gtk::Table);
|
||||||
|
table->set_homogeneous (false);
|
||||||
|
table->set_spacings (16);
|
||||||
|
table->set_border_width (8);
|
||||||
|
|
||||||
|
int col = 0;
|
||||||
|
table->attach(*slot_prop_box, col, col+1, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND ); col++;
|
||||||
|
table->attach(*midi_prop_box, col, col+1, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND ); col++;
|
||||||
|
table->attach(*midi_trim_box, col, col+1, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND ); col++;
|
||||||
|
table->attach(*midi_ops_box, col, col+1, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND ); col++;
|
||||||
|
|
||||||
|
add (*table);
|
||||||
|
table->show_all();
|
||||||
|
|
||||||
|
if (slot->region()) {
|
||||||
|
midi_prop_box->set_region(slot->region());
|
||||||
|
midi_trim_box->set_region(slot->region());
|
||||||
|
midi_ops_box->set_session(&slot->region()->session());
|
||||||
|
|
||||||
|
midi_prop_box->show();
|
||||||
|
midi_trim_box->show();
|
||||||
|
midi_ops_box->show();
|
||||||
|
} else {
|
||||||
|
midi_prop_box->hide();
|
||||||
|
midi_trim_box->hide();
|
||||||
|
midi_ops_box->hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
Reference in New Issue
Block a user