SpectMorph
|
00001 /* 00002 * Copyright (C) 2011 Stefan Westerfeld 00003 * 00004 * This library is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU Lesser General Public License as published by the 00006 * Free Software Foundation; either version 3 of the License, or (at your 00007 * option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, but WITHOUT 00010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 00012 * for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef SPECTMORPH_MORPH_LINEAR_VIEW_HH 00019 #define SPECTMORPH_MORPH_LINEAR_VIEW_HH 00020 00021 #include "smmorphoperatorview.hh" 00022 #include "smmorphlinear.hh" 00023 #include "smcomboboxoperator.hh" 00024 00025 namespace SpectMorph 00026 { 00027 00028 class MorphLinearView : public MorphOperatorView 00029 { 00030 protected: 00031 MorphLinear *morph_linear; 00032 Gtk::Table table; 00033 00034 Gtk::Label hscale_label; 00035 Gtk::HScale hscale; 00036 00037 OperatorFilter *operator_filter; 00038 OperatorFilter *control_operator_filter; 00039 00040 Gtk::Label left_label; 00041 ComboBoxOperator left_combobox; 00042 00043 Gtk::Label right_label; 00044 ComboBoxOperator right_combobox; 00045 00046 Gtk::Label control_label; 00047 ComboBoxOperator control_combobox; 00048 00049 Gtk::CheckButton db_linear_check_button; 00050 Gtk::CheckButton use_lpc_check_button; 00051 00052 void on_operator_changed(); 00053 void on_morphing_changed(); 00054 void on_control_changed(); 00055 void on_db_linear_changed(); 00056 void on_use_lpc_changed(); 00057 00058 void update_slider(); 00059 public: 00060 MorphLinearView (MorphLinear *op, MorphPlanWindow *morph_plan_window); 00061 ~MorphLinearView(); 00062 }; 00063 00064 } 00065 00066 #endif