Add some accelerator keys to the Actions menu.
[Rockbox.git] / rbutil / rbutilqt / ttsgui.h
blob427dcd288cd589e41e90d9d51b149cb29792e462
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 * 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 TTSGUI_H
21 #define TTSGUI_H
23 #include <QtGui>
25 #include "ui_ttsexescfgfrm.h"
26 #include "ui_sapicfgfrm.h"
28 class RbSettings;
29 class TTSSapi;
31 class TTSSapiGui : public QDialog
33 Q_OBJECT
34 public:
35 TTSSapiGui(TTSSapi* sapi,QDialog* parent = NULL);
37 void showCfg();
38 void setCfg(RbSettings* sett){settings = sett;}
39 public slots:
41 virtual void accept(void);
42 virtual void reject(void);
43 virtual void reset(void);
44 void updateVoices(QString language);
45 private:
46 Ui::SapiCfgFrm ui;
47 RbSettings* settings;
48 TTSSapi* m_sapi;
51 class TTSExesGui : public QDialog
53 Q_OBJECT
54 public:
55 TTSExesGui(QDialog* parent = NULL);
57 void showCfg(QString m_name);
58 void setCfg(RbSettings* sett){settings = sett;}
60 public slots:
61 virtual void accept(void);
62 virtual void reject(void);
63 virtual void reset(void);
64 void browse(void);
65 private:
66 Ui::TTSExesCfgFrm ui;
67 RbSettings* settings;
68 QString m_name;
71 #endif