Colour targets: Revert an optimisation from almost 18 months ago that actually turned...
[Rockbox.git] / rbutil / rbutilqt / ttsgui.h
blob414bef2514b5e6576ef496f0ce99f1a30ce0a5b8
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id: ttsgui.h 15212 2007-10-19 21:49:07Z domonoky $
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef TTSGUI_H
23 #define TTSGUI_H
25 #include <QtGui>
27 #include "ui_ttsexescfgfrm.h"
28 #include "ui_sapicfgfrm.h"
30 class RbSettings;
31 class TTSSapi;
33 class TTSSapiGui : public QDialog
35 Q_OBJECT
36 public:
37 TTSSapiGui(TTSSapi* sapi,QDialog* parent = NULL);
39 void showCfg();
40 void setCfg(RbSettings* sett){settings = sett;}
41 public slots:
43 virtual void accept(void);
44 virtual void reject(void);
45 virtual void reset(void);
46 void updateVoices(QString language);
47 void useSapi4Changed(int);
48 private:
49 Ui::SapiCfgFrm ui;
50 RbSettings* settings;
51 TTSSapi* m_sapi;
54 class TTSExesGui : public QDialog
56 Q_OBJECT
57 public:
58 TTSExesGui(QDialog* parent = NULL);
60 void showCfg(QString m_name);
61 void setCfg(RbSettings* sett){settings = sett;}
63 public slots:
64 virtual void accept(void);
65 virtual void reject(void);
66 virtual void reset(void);
67 void browse(void);
68 private:
69 Ui::TTSExesCfgFrm ui;
70 RbSettings* settings;
71 QString m_name;
74 #endif