1 /* 2 * Copyright (C) 2002 - David W. Durham 3 * 4 * This file is part of ReZound, an audio editing application. 5 * 6 * ReZound is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published 8 * by the Free Software Foundation; either version 2 of the License, 9 * or (at your option) any later version. 10 * 11 * ReZound is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 */ 20 21 #ifndef __CAddCuesAction_H__ 22 #define __CAddCuesAction_H__ 23 24 #include "../../../config/common.h" 25 26 class CAddCuesAction; 27 class CAddCuesActionFactory; 28 29 #include "../AAction.h" 30 31 class CAddCuesAction : public AAction 32 { 33 public: 34 CAddCuesAction(const AActionFactory *factory,const CActionSound *actionSound,const string cueName,const unsigned cueCount,const bool anchoredInTime); 35 CAddCuesAction(const AActionFactory *factory,const CActionSound *actionSound,const string cueName,const double timeInterval,const bool anchoredInTime); 36 virtual ~CAddCuesAction(); 37 38 protected: 39 bool doActionSizeSafe(CActionSound *actionSound,bool prepareForUndo); 40 void undoActionSizeSafe(const CActionSound *actionSound); 41 CanUndoResults canUndo(const CActionSound *actionSound) const; 42 43 private: 44 const string cueName; 45 const unsigned cueCount; 46 const double timeInterval; 47 const bool anchoredInTime; 48 49 }; 50 51 class CAddNCuesActionFactory : public AActionFactory 52 { 53 public: 54 CAddNCuesActionFactory(AActionDialog *channelSelectDialog); 55 virtual ~CAddNCuesActionFactory(); 56 57 CAddCuesAction *manufactureAction(const CActionSound *actionSound,const CActionParameters *actionParameters) const; 58 }; 59 60 class CAddTimedCuesActionFactory : public AActionFactory 61 { 62 public: 63 CAddTimedCuesActionFactory(AActionDialog *channelSelectDialog); 64 virtual ~CAddTimedCuesActionFactory(); 65 66 CAddCuesAction *manufactureAction(const CActionSound *actionSound,const CActionParameters *actionParameters) const; 67 }; 68 69 #endif 70