/* gspeakersboxplot * * Copyright (C) 2001-2002 Daniel Sundberg * * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #include "gspeakersboxplot.h" GSpeakersBoxPlot::GSpeakersBoxPlot() : Gtk::Frame(""), plot(1, 1000) { using namespace sigc; set_border_width(2); set_shadow_type(Gtk::SHADOW_NONE); static_cast(get_label_widget())->set_markup("" + Glib::ustring(_("Enclosure frequency response")) + ""); m_vbox.set_border_width(12); m_vbox.pack_start(sw); sw.add(plot); sw.set_shadow_type(Gtk::SHADOW_IN); sw.set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_NEVER); add(m_vbox); signal_add_box_plot.connect(mem_fun(plot, &GSpeakersPlot::add_plot)); signal_remove_box_plot.connect(mem_fun(plot, &GSpeakersPlot::remove_plot)); signal_hide_box_plot.connect(mem_fun(plot, &GSpeakersPlot::hide_plot)); signal_select_plot.connect(mem_fun(plot, &GSpeakersPlot::select_plot)); plot.set_y_label(_("Magnitude / dB")); show_all(); } GSpeakersBoxPlot::~GSpeakersBoxPlot() { }