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 __CMp3Dialog_H__
22 #define __CMp3Dialog_H__
23 
24 #include "../../config/common.h"
25 #include "fox_compat.h"
26 
27 class CMp3Dialog;
28 
29 #include "FXModalDialogBox.h"
30 
31 #include "../backend/AFrontendHooks.h"
32 
33 class CMp3Dialog : public FXModalDialogBox
34 {
35 	FXDECLARE(CMp3Dialog);
36 public:
37 	CMp3Dialog(FXWindow *mainWindow);
38 	virtual ~CMp3Dialog();
39 
40 	bool show(AFrontendHooks::Mp3CompressionParameters &parameters);
41 
42 	long onRadioButton(FXObject *sender,FXSelector sel,void *ptr);
43 
44 	enum
45 	{
46 		ID_WHICH_BUTTON=FXModalDialogBox::ID_LAST,
47 		ID_LAST
48 	};
49 
50 protected:
CMp3Dialog()51 	CMp3Dialog() {}
52 
53 private:
54 
55 	FXRadioButton *CBRButton;
56 	FXComposite *CBRFrame;
57 		FXComboBox *bitRateComboBox;
58 
59 	FXRadioButton *ABRButton;
60 	FXComposite *ABRFrame;
61 		FXComboBox *minRateComboBox;
62 		FXComboBox *normRateComboBox;
63 		FXComboBox *maxRateComboBox;
64 
65 	FXRadioButton *qualityButton;
66 	FXComposite *qualityFrame;
67 		FXComboBox *qualityComboBox;
68 
69 	FXComposite *flagsFrame;
70 		FXCheckButton *useOnlyFlagsButton;
71 		FXTextField *additionalFlagsTextBox;
72 };
73 
74 #endif
75