~ubuntu-branches/ubuntu/natty/kadu/natty

« back to all changes in this revision

Viewing changes to modules/speech/kadu_speech.h

  • Committer: Package Import Robot
  • Author(s): Kiszel Kristóf
  • Date: 2010-07-21 15:24:54 UTC
  • mfrom: (0.6.1) (0.5.1) (1.4.1) (22.1.2 maverick)
  • Revision ID: package-import@ubuntu.com-20100721152454-vttqle18lovfudni
Tags: 0.6.5.4.ds1-3ubuntu2
Remove libqt4-webkit-dev from build-depends and add
libqtwebkit-dev for qtwebkit transition

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef KADU_SPEAK_H
 
2
#define KADU_SPEAK_H
 
3
 
 
4
#include <QtCore/QObject>
 
5
#include <QtCore/QString>
 
6
 
 
7
#include "../notify/notify.h"
 
8
 
 
9
#include "main_configuration_window.h"
 
10
#include "misc.h"
 
11
#include "protocol.h"
 
12
#include "userlist.h"
 
13
 
 
14
class QSlider;
 
15
 
 
16
class SelectFile;
 
17
 
 
18
/**
 
19
 * @defgroup speech Speech
 
20
 * @{
 
21
 */
 
22
 
 
23
class SpeechConfigurationWidget : public NotifierConfigurationWidget
 
24
{
 
25
        Q_OBJECT
 
26
 
 
27
        QMap<QString, QString> maleFormat;
 
28
        QMap<QString, QString> femaleFormat;
 
29
        QString currentNotifyEvent;
 
30
 
 
31
        QLineEdit *maleLineEdit;
 
32
        QLineEdit *femaleLineEdit;
 
33
 
 
34
public:
 
35
        SpeechConfigurationWidget(QWidget *parent = 0, char *name = 0);
 
36
        virtual ~SpeechConfigurationWidget();
 
37
 
 
38
        virtual void loadNotifyConfigurations() {};
 
39
        virtual void saveNotifyConfigurations();
 
40
        virtual void switchToEvent(const QString &event);
 
41
};
 
42
 
 
43
class Speech : public Notifier, public ConfigurationUiHandler
 
44
{
 
45
        Q_OBJECT
 
46
 
 
47
        QTime lastSpeech;
 
48
 
 
49
        void import_0_5_0_Configuration();
 
50
        void import_0_5_0_ConfigurationFromTo(const QString &from, const QString &to);
 
51
 
 
52
        QSlider *frequencySlider;
 
53
        QSlider *tempoSlider;
 
54
        QSlider *baseFrequencySlider;
 
55
        QCheckBox *melodyCheckBox;
 
56
 
 
57
        SelectFile *programSelectFile;
 
58
 
 
59
        ConfigComboBox *soundSystemComboBox;
 
60
        QLineEdit *dspDeviceLineEdit;
 
61
        QCheckBox *klattSyntCheckBox;
 
62
 
 
63
private slots:
 
64
        void say(const QString &s,
 
65
                const QString &path = QString::null,
 
66
                bool klatt = false, bool melodie = false,
 
67
                const QString &sound_system = QString::null, const QString &device = QString::null,
 
68
                int freq = 0, int tempo = 0, int basefreq = 0);
 
69
 
 
70
        void testSpeech();
 
71
        void soundSystemChanged(int index);
 
72
 
 
73
public:
 
74
        Speech();
 
75
        virtual ~Speech();
 
76
 
 
77
        virtual void notify(Notification *notification);
 
78
 
 
79
        void copyConfiguration(const QString &fromEvent, const QString &toEvent) {}
 
80
 
 
81
        virtual void mainConfigurationWindowCreated(MainConfigurationWindow *mainConfigurationWindow);
 
82
        virtual NotifierConfigurationWidget *createConfigurationWidget(QWidget *parent = 0, char *name = 0);
 
83
};
 
84
 
 
85
extern Speech *speech;
 
86
 
 
87
/** @} */
 
88
 
 
89
#endif