cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsCMUSphinx4QtWidget.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Anton Deguet, Martin Kelly
7  Created on: 2011-03-07
8 
9  (C) Copyright 2011 Johns Hopkins University (JHU), All Rights Reserved.
10 
11 --- begin cisst license - do not edit ---
12 
13 This software is provided "as is" under an open source license, with
14 no warranty. The complete license can be found in license.txt and
15 http://www.cisst.org/cisst/license.txt.
16 
17 --- end cisst license ---
18 */
19 
20 #ifndef _mtsCMUSphinx4QtWidget_h
21 #define _mtsCMUSphinx4QtWidget_h
22 
23 #include <QComboBox>
24 #include <QGridLayout>
25 #include <QLabel>
26 #include <QPushButton>
27 #include <QWidget>
28 
29 // Always include last!
31 class CISST_EXPORT mtsCMUSphinx4QtWidget : public QWidget
32 {
33  Q_OBJECT;
34 
35  public:
38 
39  std::multimap<QString,QString> ContextMap;
40 
41  QGridLayout * CentralLayout;
42  QLabel * LabelContext;
43  QLabel * ValueContext;
46  QLabel * LabelVocabulary;
47  QLabel * ValueVocabulary;
48  QComboBox * WordSelector;
49  QPushButton * TriggerButton;
50 
51  signals:
52  void WordTriggered(QString);
53 
54  public slots:
55  void AddWord(QString context, QString word);
56  void ContextChanged(QString context);
57  void GetTriggeredWord(void);
58 
59 };
60 
61 #endif // _mtsCMUSphinx4QtWidget_h
QLabel * LabelContext
Definition: mtsCMUSphinx4QtWidget.h:42
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
QLabel * ValueWordRecognized
Definition: mtsCMUSphinx4QtWidget.h:45
QLabel * ValueContext
Definition: mtsCMUSphinx4QtWidget.h:43
QLabel * LabelVocabulary
Definition: mtsCMUSphinx4QtWidget.h:46
QPushButton * TriggerButton
Definition: mtsCMUSphinx4QtWidget.h:49
QLabel * LabelWordRecognized
Definition: mtsCMUSphinx4QtWidget.h:44
QGridLayout * CentralLayout
Definition: mtsCMUSphinx4QtWidget.h:41
QLabel * ValueVocabulary
Definition: mtsCMUSphinx4QtWidget.h:47
Definition: mtsCMUSphinx4QtWidget.h:31
QComboBox * WordSelector
Definition: mtsCMUSphinx4QtWidget.h:48
Macros to export the symbols of cisstSpeechToCommands (in a Dll).
~mtsCMUSphinx4QtWidget(void)
Definition: mtsCMUSphinx4QtWidget.h:37