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 #include "LoopingActionDialogs.h"
22 
23 #include "../backend/ActionParamMappers.h"
24 
25 // --- add cues -------------------------------
26 
27 CAddNCuesDialog::CAddNCuesDialog(FXWindow *mainWindow) :
28 	CActionParamDialog(mainWindow)
29 {
30 	void *p=newVertPanel(NULL);
31 		addStringTextEntry(p,
32 			N_("Cue Name"),
33 			"(",
34 			_("What to Name the New Cues")
35 		);
36 
37 		addNumericTextEntry(p,
38 			N_("Cue Count"),
39 			"",
40 			4,
41 			1,
42 			100,
43 			_("How Many Cues to Place Equally Spaced within the Selection")
44 		);
45 
46 		addCheckBoxEntry(p,
47 			N_("Anchor Cues in Time"),
48 			false,
49 			_("Set the Cues to be Anchored in Time or Not")
50 		);
51 }
52 
CRawDialog()53 CAddTimedCuesDialog::CAddTimedCuesDialog(FXWindow *mainWindow) :
54 	CActionParamDialog(mainWindow)
55 {
56 	void *p=newVertPanel(NULL);
57 		addStringTextEntry(p,
58 			N_("Cue Name"),
59 			"(",
60 			_("What to Name the New Cues")
61 		);
62 
63 		addSlider(p,
64 			N_("Time Interval"),
65 			"s",
66 			new CActionParamMapper_linear(10,60,1,3600),
67 			NULL,
68 			false
69 		);
70 
71 		addCheckBoxEntry(p,
72 			N_("Anchor Cues in Time"),
73 			false,
74 			_("Set the Cues to be Anchored in Time or Not")
75 		);
76 }
77 
78