1 /* 2 * Copyright (C) 2005 - 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 __FileActionDialogs_H__ 22 #define __FileActionDialogs_H__ 23 24 #include "../../config/common.h" 25 #include "fox_compat.h" 26 27 #include "CActionParamDialog.h" 28 29 // --- new audio file -------------------- 30 31 class CNewAudioFileActionDialog : public CActionParamDialog 32 { 33 public: 34 CNewAudioFileActionDialog(FXWindow *mainWindow); 35 virtual ~CNewAudioFileActionDialog(){} 36 37 bool show(CActionSound *actionSound,CActionParameters *actionParameters); 38 }; 39 40 // --- open audio file -------------------- 41 42 class COpenAudioFileActionDialog : public CActionParamDialog 43 { 44 public: 45 COpenAudioFileActionDialog(FXWindow *mainWindow); 46 virtual ~COpenAudioFileActionDialog(){} 47 48 bool show(CActionSound *actionSound,CActionParameters *actionParameters); 49 }; 50 51 // --- save as ----------------- 52 53 class CSaveAsAudioFileActionDialog : public CActionParamDialog 54 { 55 public: 56 CSaveAsAudioFileActionDialog(FXWindow *mainWindow); 57 virtual ~CSaveAsAudioFileActionDialog(){} 58 59 bool show(CActionSound *actionSound,CActionParameters *actionParameters); 60 }; 61 62 // --- save as multiple filenames -------- 63 64 class CSaveAsMultipleFilesDialog : public CActionParamDialog 65 { 66 public: 67 CSaveAsMultipleFilesDialog(FXWindow *mainWindow); 68 virtual ~CSaveAsMultipleFilesDialog(){} 69 70 protected: 71 const string getExplanation() const; 72 }; 73 74 // --- burn to CD ------------------------ 75 76 class CBurnToCDDialog : public CActionParamDialog 77 { 78 FXDECLARE(CBurnToCDDialog); 79 public: 80 CBurnToCDDialog(FXWindow *mainWindow); 81 virtual ~CBurnToCDDialog(){} 82 83 enum { 84 ID_DETECT_DEVICE_BUTTON=CActionParamDialog::ID_LAST, 85 }; 86 87 long onDetectDeviceButton(FXObject *object,FXSelector sel,void *ptr); 88 89 protected: 90 CBurnToCDDialog() {} 91 92 const string getExplanation() const; 93 }; 94 95 // --- run macro dialog ------------------- 96 97 class CRunMacroDialog : public CActionParamDialog 98 { 99 FXDECLARE(CRunMacroDialog); 100 public: 101 public: 102 CRunMacroDialog(FXWindow *mainWindow); 103 virtual ~CRunMacroDialog(){} 104 105 bool show(CActionSound *actionSound,CActionParameters *actionParameters); 106 107 enum { 108 ID_REMOVE_BUTTON=CActionParamDialog::ID_LAST, 109 }; 110 111 long onRemoveButton(FXObject *object,FXSelector sel,void *ptr); 112 113 protected: 114 CRunMacroDialog() {} 115 116 }; 117 118 119 #endif 120