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_PLAN_VIEW_HH 00019 #define SPECTMORPH_MORPH_PLAN_VIEW_HH 00020 00021 #include <gtkmm.h> 00022 00023 #include "smmorphplan.hh" 00024 #include "smmoveindicator.hh" 00025 00026 namespace SpectMorph 00027 { 00028 00029 class MorphPlanWindow; 00030 class MorphPlanView : public Gtk::VBox 00031 { 00032 MorphPlan *morph_plan; 00033 int old_structure_version; 00034 MorphPlanWindow *morph_plan_window; 00035 00036 std::vector<MorphOperatorView *> m_op_views; 00037 std::vector<MoveIndicator *> move_indicators; 00038 00039 public: 00040 MorphPlanView (MorphPlan *morph_plan, MorphPlanWindow *morph_plan_window); 00041 00042 const std::vector<MorphOperatorView *>& op_views(); 00043 00044 void on_plan_changed(); 00045 void on_move_indication (MorphOperator *op); 00046 }; 00047 00048 } 00049 00050 #endif