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 __CCueDialog_H__
22 #define __CCueDialog_H__
23 
24 #include "../../config/common.h"
25 #include "fox_compat.h"
26 
27 class CCueDialog;
28 
29 #include "FXModalDialogBox.h"
30 
31 #include <string>
32 
33 #include "../backend/AActionDialog.h"
34 #include "../backend/CSound_defs.h"
35 
36 extern CCueDialog *gCueDialog;
37 
38 class CCueDialog : public FXModalDialogBox, public AActionDialog
39 {
40 	FXDECLARE(CCueDialog);
41 public:
42 	CCueDialog(FXWindow *mainWindow);
43 	virtual ~CCueDialog();
44 
45 	bool show(CActionSound *actionSound,CActionParameters *actionParameters);
46 	void hide();
47 
setTitle(const string title)48 	void setTitle(const string title) { }
49 
50 protected:
CCueDialog()51 	CCueDialog() {}
52 
53 	bool validateOnOkay();
54 
55 private:
56 	FXPacker *cueNamePacker;
57 		FXLabel *cueNameLabel;
58 		FXTextField *cueNameTextBox;
59 
60 	FXPacker *cueTimePacker;
61 		FXLabel *cueTimeLabel;
62 		FXTextField *cueTimeTextBox;
63 
64 	FXPacker *isAnchoredPacker;
65 		FXCheckButton *isAnchoredCheckButton;
66 
67 	string cueName;
68 	sample_pos_t cueTime;
69 	bool isAnchored;
70 
71 	CActionSound *actionSound;
72 };
73 
74 #endif
75