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 __CMacroActionParamsDialog_H__
22 #define __CMacroActionParamsDialog_H__
23 
24 #include "../../config/common.h"
25 #include "fox_compat.h"
26 
27 #include "../backend/AFrontendHooks.h"
28 
29 class CMacroActionParamsDialog;
30 class AActionFactory;
31 
32 #include "FXModalDialogBox.h"
33 
34 class CMacroActionParamsDialog : public FXModalDialogBox
35 {
36 	FXDECLARE(CMacroActionParamsDialog);
37 public:
38 	CMacroActionParamsDialog(FXWindow *mainWindow);
39 	virtual ~CMacroActionParamsDialog();
40 
41 	bool showIt(const AActionFactory *actionFactory,AFrontendHooks::MacroActionParameters &macroActionParameters,CLoadedSound *loadedSound);
42 
43 	enum
44 	{
45 		ID_RADIO_BUTTON=FXModalDialogBox::ID_LAST,
46 
47 		ID_LAST
48 	};
49 
50 	long onRadioButton(FXObject *sender,FXSelector sel,void *ptr);
51 
52 protected:
CMacroActionParamsDialog()53 	CMacroActionParamsDialog() {}
54 
55 private:
56 
57 	FXLabel *actionNameLabel;
58 
59 	FXCheckButton *askToPromptForActionParametersAtPlaybackCheckButton;
60 
61 	FXGroupBox *startPosPositioningGroupBox;
62 		FXRadioButton *startPosRadioButton1;
63 		FXRadioButton *startPosRadioButton2;
64 		FXRadioButton *startPosRadioButton3;
65 		FXRadioButton *startPosRadioButton4;
66 		FXRadioButton *startPosRadioButton5;
67 		FXRadioButton *startPosRadioButton6;
68 		FXRadioButton *startPosRadioButton9;
69 
70 	FXGroupBox *stopPosPositioningGroupBox;
71 		FXRadioButton *stopPosRadioButton1;
72 		FXRadioButton *stopPosRadioButton2;
73 		FXRadioButton *stopPosRadioButton3;
74 		FXRadioButton *stopPosRadioButton4;
75 		FXRadioButton *stopPosRadioButton7;
76 		FXRadioButton *stopPosRadioButton8;
77 		FXRadioButton *stopPosRadioButton9;
78 
79 };
80 
81 #endif
82