rbutilQt: added Talkfile creation.
[Rockbox.git] / rbutil / rbutilqt / installtalkwindow.h
blob1962d36a521b1bd4199332d80442a198193c5382
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id: installtalkwindow.h 14151 2007-08-02 22:27:51Z 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 INSTALLTALKWINDOW_H
21 #define INSTALLTALKWINDOW_H
23 #include <QtGui>
25 #include <QSettings>
27 #include "ui_installtalkfrm.h"
28 #include "progressloggergui.h"
29 #include "talkfile.h"
31 class InstallTalkWindow : public QDialog
33 Q_OBJECT
34 public:
35 InstallTalkWindow(QWidget *parent = 0);
36 void setUserSettings(QSettings*);
37 void setDeviceSettings(QSettings*);
39 public slots:
40 void accept(void);
42 private slots:
43 void browseFolder(void);
44 void browseTTS(void);
45 void browseEncoder(void);
47 void setTalkFolder(QString folder);
48 void setTTSExec(QString path);
49 void setEncoderExec(QString path);
51 void setEncoderOptions(int index);
52 void setTTSOptions(int index);
53 void setEncoderOptions(QString options);
54 void setTTSOptions(QString options);
56 private:
57 TalkFileCreator* talkcreator;
58 Ui::InstallTalkFrm ui;
59 ProgressLoggerGui* logger;
60 QSettings *devices;
61 QSettings *userSettings;
66 #endif