rbutil: add the forgotten ui file from festival support.
[kugel-rb.git] / rbutil / rbutilqt / ttsgui.h
blobce7be408adeca3cb4874ca7b27c7ffe4bab5447a
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id$
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"
29 #include "ui_ttsfestivalcfgform.h"
31 class RbSettings;
32 class TTSSapi;
33 class TTSFestival;
35 class TTSSapiGui : public QDialog
37 Q_OBJECT
38 public:
39 TTSSapiGui(TTSSapi* sapi,QDialog* parent = NULL);
41 void showCfg();
42 void setCfg(RbSettings* sett){settings = sett;}
43 public slots:
45 virtual void accept(void);
46 virtual void reject(void);
47 virtual void reset(void);
48 void updateVoices(QString language);
49 void useSapi4Changed(int);
50 private:
51 Ui::SapiCfgFrm ui;
52 RbSettings* settings;
53 TTSSapi* m_sapi;
56 class TTSExesGui : public QDialog
58 Q_OBJECT
59 public:
60 TTSExesGui(QDialog* parent = NULL);
62 void showCfg(QString m_name);
63 void setCfg(RbSettings* sett){settings = sett;}
65 public slots:
66 virtual void accept(void);
67 virtual void reject(void);
68 virtual void reset(void);
69 void browse(void);
70 private:
71 Ui::TTSExesCfgFrm ui;
72 RbSettings* settings;
73 QString m_name;
76 class TTSFestivalGui : public QDialog
78 Q_OBJECT
79 public:
80 TTSFestivalGui(TTSFestival* festival, QDialog* parent = NULL);
82 void showCfg();
83 void setCfg(RbSettings* sett){settings = sett;}
85 public slots:
86 virtual void accept(void);
87 virtual void reject(void);
88 //virtual void reset(void);
90 void onRefreshButton();
91 void onShowDescription(int state);
92 void onBrowseServer();
93 void onBrowseClient();
94 private:
95 Ui::TTSFestivalCfgFrm ui;
96 RbSettings* settings;
97 TTSFestival* festival;
99 void updateVoices();
100 private slots:
101 void updateDescription(QString value);
104 #endif