cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsIntuitiveResearchKitConsoleQt.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  Author(s): Anton Deguet
6  Created on: 2015-07-13
7 
8  (C) Copyright 2015 Johns Hopkins University (JHU), All Rights Reserved.
9 
10 --- begin cisst license - do not edit ---
11 
12 This software is provided "as is" under an open source license, with
13 no warranty. The complete license can be found in license.txt and
14 http://www.cisst.org/cisst/license.txt.
15 
16 --- end cisst license ---
17 */
18 
19 
20 #ifndef _mtsIntuitiveResearchKitConsoleQt_h
21 #define _mtsIntuitiveResearchKitConsoleQt_h
22 
25 
26 class QTabWidget;
27 class QWidget;
28 
30 {
31  CMN_DECLARE_SERVICES(CMN_NO_DYNAMIC_CREATION, CMN_LOG_ALLOW_DEFAULT);
32 
33 public:
35 
37 
38  void Connect(void);
39 
40  void addTab(QWidget * widget, const std::string & name);
41 
42 protected:
44  public:
45  inline ConnectionType(const std::string & clientComponentName,
46  const std::string & clientInterfaceName,
47  const std::string & serverComponentName,
48  const std::string & serverInterfaceName):
49  ClientComponentName(clientComponentName),
50  ClientInterfaceName(clientInterfaceName),
51  ServerComponentName(serverComponentName),
52  ServerInterfaceName(serverInterfaceName)
53  {}
54 
55  std::string ClientComponentName;
56  std::string ClientInterfaceName;
57  std::string ServerComponentName;
58  std::string ServerInterfaceName;
59  };
60 
61  typedef std::list<ConnectionType *> ConnectionsType;
63 
64  QTabWidget * TabWidget;
65 };
66 
68 
69 #endif // _mtsIntuitiveResearchKitConsoleQt_h
std::string ClientComponentName
Definition: mtsIntuitiveResearchKitConsoleQt.h:55
CMN_DECLARE_SERVICES_INSTANTIATION(mtsIntuitiveResearchKitConsoleQt)
QTabWidget * TabWidget
Definition: mtsIntuitiveResearchKitConsoleQt.h:64
ConnectionsType Connections
Definition: mtsIntuitiveResearchKitConsoleQt.h:62
Base class for high level objects.
Definition: cmnGenericObject.h:51
std::list< ConnectionType * > ConnectionsType
Definition: mtsIntuitiveResearchKitConsoleQt.h:61
Definition: mtsIntuitiveResearchKitConsoleQt.h:43
std::string ClientInterfaceName
Definition: mtsIntuitiveResearchKitConsoleQt.h:56
Defines cmnGenericObject.
void Configure(mtsIntuitiveResearchKitConsole *console)
ConnectionType(const std::string &clientComponentName, const std::string &clientInterfaceName, const std::string &serverComponentName, const std::string &serverInterfaceName)
Definition: mtsIntuitiveResearchKitConsoleQt.h:45
Definition: mtsIntuitiveResearchKitConsole.h:31
void addTab(QWidget *widget, const std::string &name)
std::string ServerInterfaceName
Definition: mtsIntuitiveResearchKitConsoleQt.h:58
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
std::string ServerComponentName
Definition: mtsIntuitiveResearchKitConsoleQt.h:57
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
Definition: mtsIntuitiveResearchKitConsoleQt.h:29