summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-10-18 16:53:54 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-10-18 16:53:54 -0400
commit9c98e577d0fb544db63813423ab0090cf9c24ce2 (patch)
tree8682df3529160faf57e713543e6dbad18802b1e3
parentd29d93f4cd30b2d27e73f95aa49110b1acb773ed (diff)
remove unusued and useless midi_port_dialog.{cc,h} files
-rw-r--r--gtk2_ardour/midi_port_dialog.cc77
-rw-r--r--gtk2_ardour/midi_port_dialog.h40
-rw-r--r--gtk2_ardour/wscript1
3 files changed, 0 insertions, 118 deletions
diff --git a/gtk2_ardour/midi_port_dialog.cc b/gtk2_ardour/midi_port_dialog.cc
deleted file mode 100644
index 20904faa59..0000000000
--- a/gtk2_ardour/midi_port_dialog.cc
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- Copyright (C) 2012 Paul Davis
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
-
-#include <string>
-#include <sigc++/bind.h>
-#include <gtkmm/stock.h>
-
-#include "pbd/convert.h"
-#include <gtkmm2ext/utils.h>
-
-#include "midi_port_dialog.h"
-
-#include "pbd/i18n.h"
-
-using namespace std;
-using namespace PBD;
-using namespace Gtk;
-using namespace Gtkmm2ext;
-
-static const char* mode_strings[] = { "duplex", "output", "input", (char*) 0 };
-
-MidiPortDialog::MidiPortDialog ()
- : ArdourDialog (_("Add MIDI Port"))
- , port_label (_("Port name:"))
-{
- set_modal (true);
- set_skip_taskbar_hint (true);
- set_resizable (false);
- set_name (N_("MidiPortDialog"));
-
- vector<string> str = internationalize (PACKAGE, mode_strings);
- set_popdown_strings (port_mode_combo, str);
- port_mode_combo.set_active_text (str.front());
-
- hpacker.set_spacing (6);
- hpacker.set_border_width (5);
-
- hpacker.pack_start (port_label);
- hpacker.pack_start (port_name);
- hpacker.pack_start (port_mode_combo);
-
- get_vbox()->pack_start (hpacker);
-
- port_name.signal_activate().connect (sigc::mem_fun (*this, &MidiPortDialog::entry_activated));
-
- add_button (Stock::CANCEL, RESPONSE_CANCEL);
- add_button (Stock::ADD, RESPONSE_ACCEPT);
-
- show_all_children ();
-}
-
-void
-MidiPortDialog::entry_activated ()
-{
- response (RESPONSE_ACCEPT);
-}
-
-MidiPortDialog::~MidiPortDialog ()
-{
-
-}
diff --git a/gtk2_ardour/midi_port_dialog.h b/gtk2_ardour/midi_port_dialog.h
deleted file mode 100644
index a7a2d9e5f1..0000000000
--- a/gtk2_ardour/midi_port_dialog.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- Copyright (C) 2012 Paul Davis
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
-
-#include <gtkmm/box.h>
-#include <gtkmm/label.h>
-#include <gtkmm/entry.h>
-#include <gtkmm/comboboxtext.h>
-
-#include "ardour_dialog.h"
-
-class MidiPortDialog : public ArdourDialog
-{
- public:
- MidiPortDialog ();
- ~MidiPortDialog ();
-
- Gtk::HBox hpacker;
- Gtk::Label port_label;
- Gtk::Entry port_name;
- Gtk::ComboBoxText port_mode_combo;
-
- private:
- void entry_activated ();
-};
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript
index fdbe726c00..5fe5062854 100644
--- a/gtk2_ardour/wscript
+++ b/gtk2_ardour/wscript
@@ -145,7 +145,6 @@ gtk2_ardour_sources = [
'midi_cut_buffer.cc',
'midi_export_dialog.cc',
'midi_list_editor.cc',
- 'midi_port_dialog.cc',
'midi_region_view.cc',
'midi_scroomer.cc',
'midi_selection.cc',