• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeaccessibility API Reference
  • KDE Home
  • Contact Us
 

jovie

  • sources
  • kde-4.12
  • kdeaccessibility
  • jovie
  • libkttsd
selecttalkerdlg.h
Go to the documentation of this file.
1 /***************************************************** vim:set ts=4 sw=4 sts=4:
2  Description:
3  A dialog for user to select a Talker, either by specifying
4  selected Talker attributes, or by specifying all attributes
5  of an existing configured Talker.
6 
7  Copyright:
8  (C) 2005 by Gary Cramblitt <garycramblitt@comcast.net>
9  -------------------
10  Original author: Gary Cramblitt <garycramblitt@comcast.net>
11 
12  This program is free software; you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation; either version 2 of the License, or
15  (at your option) any later version.
16 
17  This program is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with this program; if not, write to the Free Software
24  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25  ******************************************************************************/
26 
27 #ifndef SELECTTALKERDLG_H
28 #define SELECTTALKERDLG_H
29 
30 // KDE includes.
31 #include <kdialog.h>
32 #include <klocale.h>
33 #include <kdemacros.h>
34 
35 // KTTS includes.
36 #include "talkercode.h"
37 #include "ui_selecttalkerwidget.h"
38 
39 class TalkerListModel;
40 
41 class KDE_EXPORT SelectTalkerDlg : public KDialog
42 {
43  Q_OBJECT
44 
45  public:
56  explicit SelectTalkerDlg(
57  QWidget* parent = 0,
58  const char* name = "selecttalkerdialog",
59  const QString& caption = i18n("Select Talker"),
60  const QString& talkerCode = QString(),
61  bool runningTalkers = false);
62 
66  ~SelectTalkerDlg();
67 
72  QString getSelectedTalkerCode();
76  QString getSelectedTranslatedDescription();
77 
78  private slots:
79  void slotTalkersView_clicked();
80  void configChanged();
81 
82  private:
83  enum TalkerListViewColumn
84  {
85  tlvcLanguage,
86  tlvcSynthName,
87  tlvcVoice,
88  tlvcGender,
89  tlvcVolume,
90  tlvcRate
91  };
92 
93  void applyTalkerCodeToControls();
94  void applyControlsToTalkerCode();
95  void enableDisableControls();
96 
97  // Main dialog widget.
98  Ui::SelectTalkerWidget* m_widget;
99  // Model containing list of Talker Codes.
100  TalkerListModel* m_talkerListModel;
101  // True if list of Talkers should be taken from config file.
102  bool m_runningTalkers;
103  // Current Talker Code.
104  TalkerCode m_talkerCode;
105 };
106 
107 #endif // SELECTTALKERDLG_H
QWidget
KDialog
talkercode.h
TalkerListModel
Model for list of configured talkers.
Definition: talkerlistmodel.h:45
TalkerCode
Definition: talkercode.h:38
SelectTalkerDlg
Definition: selecttalkerdlg.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

jovie

Skip menu "jovie"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeaccessibility API Reference

Skip menu "kdeaccessibility API Reference"
  • jovie

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal