rbutil: fix a bug in rbsettings: FS#8512 by Sander Knopper. Also remove a warning...
[Rockbox.git] / rbutil / rbutilqt / encodersgui.h
blob389139c568a9d2cef3022b07a8e05fea3ef3c2bf
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id: encodersgui.h 15212 2007-10-19 21:49:07Z domonoky $
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef ENCODERSGUI_H
21 #define ENCODERSGUI_H
23 #include <QtGui>
25 class RbSettings;
27 #include "ui_rbspeexcfgfrm.h"
28 #include "ui_encexescfgfrm.h"
31 class EncExesGui : public QDialog
33 Q_OBJECT
34 public:
35 EncExesGui(QDialog* parent = NULL);
37 void showCfg(QString m_name);
38 void setCfg(RbSettings* sett){settings = sett;}
40 public slots:
41 virtual void accept(void);
42 virtual void reject(void);
43 virtual void reset(void);
44 void browse(void);
46 private:
47 Ui::EncExesCfgFrm ui;
48 RbSettings* settings;
49 QString m_name;
52 class EncRbSpeexGui : public QDialog
54 Q_OBJECT
55 public:
56 EncRbSpeexGui(QDialog* parent = NULL);
58 void showCfg(float defQ,float defV,int defC, bool defB);
59 void setCfg(RbSettings* sett){settings = sett;}
61 public slots:
62 virtual void accept(void);
63 virtual void reject(void);
64 virtual void reset(void);
66 private:
67 Ui::RbSpeexCfgFrm ui;
68 RbSettings* settings;
69 float defaultQuality;
70 float defaultVolume;
71 int defaultComplexity;
72 bool defaultBand;
77 #endif