00001 /* 00002 Copyright (C) 2005-2007 Remon Sijrier 00003 00004 This file is part of Traverso 00005 00006 Traverso is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 00019 00020 */ 00021 00022 #ifndef REMOVE_CLIP_H 00023 #define REMOVE_CLIP_HS 00024 00025 #include "Command.h" 00026 #include "AudioClipGroup.h" 00027 00028 class AudioClip; 00029 class Track; 00030 00031 class AddRemoveClip : public Command 00032 { 00033 public : 00034 AddRemoveClip(AudioClip* clip, int type); 00035 ~AddRemoveClip() {}; 00036 00037 enum { 00038 ADD, 00039 REMOVE 00040 }; 00041 00042 int prepare_actions(); 00043 int do_action(); 00044 int undo_action(); 00045 00046 private : 00047 AudioClipGroup m_group; 00048 int m_type; 00049 }; 00050 00051 #endif
1.5.5