Add a rescan button.
git-svn-id: svn://localhost/ardour2/branches/3.0@4519 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d9b7f2f245
commit
eef9223835
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <gtkmm/image.h>
|
||||||
|
#include <gtkmm/stock.h>
|
||||||
#include "global_port_matrix.h"
|
#include "global_port_matrix.h"
|
||||||
#include "i18n.h"
|
#include "i18n.h"
|
||||||
#include "ardour/bundle.h"
|
#include "ardour/bundle.h"
|
||||||
@ -113,9 +115,23 @@ GlobalPortMatrixWindow::GlobalPortMatrixWindow (ARDOUR::Session& s, ARDOUR::Data
|
|||||||
set_title (_("MIDI Connections Manager"));
|
set_title (_("MIDI Connections Manager"));
|
||||||
break;
|
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);
|
Gtk::VBox* vbox = Gtk::manage (new Gtk::VBox);
|
||||||
vbox->pack_start (_port_matrix);
|
vbox->pack_start (_port_matrix);
|
||||||
|
vbox->pack_start (*buttons_hbox, Gtk::PACK_SHRINK);
|
||||||
add (*vbox);
|
add (*vbox);
|
||||||
show_all ();
|
show_all ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
GlobalPortMatrixWindow::rescan ()
|
||||||
|
{
|
||||||
|
_port_matrix.setup_all_ports ();
|
||||||
|
}
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#ifndef __ardour_gtk_global_port_matrix_h__
|
#ifndef __ardour_gtk_global_port_matrix_h__
|
||||||
#define __ardour_gtk_global_port_matrix_h__
|
#define __ardour_gtk_global_port_matrix_h__
|
||||||
|
|
||||||
|
#include <gtkmm/button.h>
|
||||||
#include "port_matrix.h"
|
#include "port_matrix.h"
|
||||||
#include "port_group.h"
|
#include "port_group.h"
|
||||||
#include "ardour_dialog.h"
|
#include "ardour_dialog.h"
|
||||||
@ -62,7 +63,10 @@ public:
|
|||||||
GlobalPortMatrixWindow (ARDOUR::Session&, ARDOUR::DataType);
|
GlobalPortMatrixWindow (ARDOUR::Session&, ARDOUR::DataType);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void rescan ();
|
||||||
|
|
||||||
GlobalPortMatrix _port_matrix;
|
GlobalPortMatrix _port_matrix;
|
||||||
|
Gtk::Button _rescan_button;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user