summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/encttscfggui.h
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/encttscfggui.h')
-rw-r--r--rbutil/rbutilqt/encttscfggui.h156
1 files changed, 78 insertions, 78 deletions
diff --git a/rbutil/rbutilqt/encttscfggui.h b/rbutil/rbutilqt/encttscfggui.h
index 45b151ce23..c0f5119a81 100644
--- a/rbutil/rbutilqt/encttscfggui.h
+++ b/rbutil/rbutilqt/encttscfggui.h
@@ -1,78 +1,78 @@
1/*************************************************************************** 1/***************************************************************************
2 * __________ __ ___. 2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * 8 *
9 * Copyright (C) 2007 by Dominik Wenger 9 * Copyright (C) 2007 by Dominik Wenger
10 * $Id: encoders.h 17902 2008-06-30 22:09:45Z bluebrother $ 10 * $Id: encoders.h 17902 2008-06-30 22:09:45Z bluebrother $
11 * 11 *
12 * This program is free software; you can redistribute it and/or 12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License 13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2 14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version. 15 * of the License, or (at your option) any later version.
16 * 16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied. 18 * KIND, either express or implied.
19 * 19 *
20 ****************************************************************************/ 20 ****************************************************************************/
21 21
22#ifndef ENCTTSCFGGUI_H 22#ifndef ENCTTSCFGGUI_H
23#define ENCTTSCFGGUI_H 23#define ENCTTSCFGGUI_H
24 24
25#include <QtGui> 25#include <QtGui>
26#include "encttssettings.h" 26#include "encttssettings.h"
27 27
28//! \brief Shows and manages a configuration gui for encoders and tts enignes 28//! \brief Shows and manages a configuration gui for encoders and tts enignes
29//! 29//!
30class EncTtsCfgGui: public QDialog 30class EncTtsCfgGui: public QDialog
31{ 31{
32 Q_OBJECT 32 Q_OBJECT
33public: 33public:
34 //! Creates the UI. give it a endoer or tts engine with already set config. uses show() or exec() to show it. 34 //! Creates the UI. give it a endoer or tts engine with already set config. uses show() or exec() to show it.
35 EncTtsCfgGui(QDialog* parent, EncTtsSettingInterface* interface,QString name); 35 EncTtsCfgGui(QDialog* parent, EncTtsSettingInterface* interface,QString name);
36 36
37private slots: 37private slots:
38 //! accept current configuration values and close window 38 //! accept current configuration values and close window
39 void accept(void); 39 void accept(void);
40 //! close window and dont save configuration 40 //! close window and dont save configuration
41 void reject(void); 41 void reject(void);
42 //! updates the corresponding setting from the sending Widget 42 //! updates the corresponding setting from the sending Widget
43 void updateSetting(); 43 void updateSetting();
44 //! updates corresponding Widget from the sending Setting. 44 //! updates corresponding Widget from the sending Setting.
45 void updateWidget(); 45 void updateWidget();
46 //! shows a busy dialog. counts calls. 46 //! shows a busy dialog. counts calls.
47 void showBusy(); 47 void showBusy();
48 //! hides the busy dialog, counts calls 48 //! hides the busy dialog, counts calls
49 void hideBusy(); 49 void hideBusy();
50 //! used via the SignalMapper for all Browse buttons 50 //! used via the SignalMapper for all Browse buttons
51 void browse(QObject*); 51 void browse(QObject*);
52 52
53private: 53private:
54 //! creates all dynamic window content 54 //! creates all dynamic window content
55 void setUpWindow(); 55 void setUpWindow();
56 //! creates the Widgets needed for one setting. returns a Layout with the widgets 56 //! creates the Widgets needed for one setting. returns a Layout with the widgets
57 QLayout* createWidgets(EncTtsSetting* setting); 57 QLayout* createWidgets(EncTtsSetting* setting);
58 //! creates a button when needed by the setting. 58 //! creates a button when needed by the setting.
59 QWidget* createButton(EncTtsSetting* setting); 59 QWidget* createButton(EncTtsSetting* setting);
60 //! name of the Encoder or TTS for which this UI is 60 //! name of the Encoder or TTS for which this UI is
61 QString m_name; 61 QString m_name;
62 //! the interface pointer to the TTS or encoder 62 //! the interface pointer to the TTS or encoder
63 EncTtsSettingInterface* m_settingInterface; 63 EncTtsSettingInterface* m_settingInterface;
64 //! Dialog, shown when enc or tts is busy 64 //! Dialog, shown when enc or tts is busy
65 QProgressDialog* m_busyDlg; 65 QProgressDialog* m_busyDlg;
66 //! List of settings from the TTS or Encoder 66 //! List of settings from the TTS or Encoder
67 QList<EncTtsSetting*> m_settingsList; 67 QList<EncTtsSetting*> m_settingsList;
68 //! Maps settings and the correspondig Widget 68 //! Maps settings and the correspondig Widget
69 QMap<EncTtsSetting*,QWidget*> m_settingsWidgetsMap; 69 QMap<EncTtsSetting*,QWidget*> m_settingsWidgetsMap;
70 //! Maps all browse buttons to the corresponding Setting 70 //! Maps all browse buttons to the corresponding Setting
71 QSignalMapper m_browseBtnMap; 71 QSignalMapper m_browseBtnMap;
72 //! counter how often busyShow() is called, 72 //! counter how often busyShow() is called,
73 int m_busyCnt; 73 int m_busyCnt;
74}; 74};
75 75
76 76
77#endif 77#endif
78 78