*/
+#include <gtkmm/image.h>
+#include <gtkmm/stock.h>
#include "global_port_matrix.h"
#include "i18n.h"
#include "ardour/bundle.h"
set_title (_("MIDI Connections Manager"));
break;
}
+
+ Gtk::HBox* buttons_hbox = Gtk::manage (new Gtk::HBox);
+
+ _rescan_button.set_label (_("Rescan"));
+ _rescan_button.set_image (*Gtk::manage (new Gtk::Image (Gtk::Stock::REFRESH, Gtk::ICON_SIZE_BUTTON)));
+ _rescan_button.signal_clicked().connect (sigc::mem_fun (*this, &GlobalPortMatrixWindow::rescan));
+ buttons_hbox->pack_start (_rescan_button, Gtk::PACK_SHRINK);
Gtk::VBox* vbox = Gtk::manage (new Gtk::VBox);
vbox->pack_start (_port_matrix);
+ vbox->pack_start (*buttons_hbox, Gtk::PACK_SHRINK);
add (*vbox);
show_all ();
}
+
+void
+GlobalPortMatrixWindow::rescan ()
+{
+ _port_matrix.setup_all_ports ();
+}
#ifndef __ardour_gtk_global_port_matrix_h__
#define __ardour_gtk_global_port_matrix_h__
+#include <gtkmm/button.h>
#include "port_matrix.h"
#include "port_group.h"
#include "ardour_dialog.h"
GlobalPortMatrixWindow (ARDOUR::Session&, ARDOUR::DataType);
private:
+ void rescan ();
+
GlobalPortMatrix _port_matrix;
+ Gtk::Button _rescan_button;
};