cisst-saw
Loading...
Searching...
No Matches
mtsQtWidgetComponent.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): Praneeth Sadda, Anton Deguet
7 Created on: 2011-11-11
8
9 (C) Copyright 2011 Johns Hopkins University (JHU), All Rights
10 Reserved.
11
12--- begin cisst license - do not edit ---
13
14This software is provided "as is" under an open source license, with
15no warranty. The complete license can be found in license.txt and
16http://www.cisst.org/cisst/license.txt.
17
18--- end cisst license ---
19
20*/
21
22#ifndef _mtsQtWidgetComponent_h
23#define _mtsQtWidgetComponent_h
24
25#include <QWidget>
26#include <QTabWidget>
27
29
30// Always include last
32
33/* ! A widget that wraps a single mtsComponent. A mtsQtWidgetComponent will create a child
34 InterfaceProvidedWidget for every provided interface on the given component.
35*/
36
37class CISST_EXPORT mtsQtWidgetComponent: public QWidget, public mtsComponent
38{
39 Q_OBJECT;
41
42private:
43
44 QTabWidget * TabWidget;
45
46 // this methods queries all provided interfaces from the component
47 // "observed" and will create the corresponding required
48 // interfaces as well as their widgets.
49
50
51public:
52 mtsQtWidgetComponent(const std::string & name);
53 // this methods queries all provided interfaces from the component
54 // "observed" and will create the corresponding required
55 // interfaces as well as their widgets.
56 void CreateWidgetsForComponent(const mtsComponent & component);
57 bool CreateWidgetsForComponent(const std::string & componentName);
58 void CreateWidgetsForInterface(const mtsComponent & component, const std::string & interfaceName);
59};
60
62
63#endif // _mtsQtWidgetComponent_h
mtsComponent(void)
Definition mtsQtWidgetComponent.h:38
void CreateWidgetsForInterface(const mtsComponent &component, const std::string &interfaceName)
void CreateWidgetsForComponent(const mtsComponent &component)
bool CreateWidgetsForComponent(const std::string &componentName)
mtsQtWidgetComponent(const std::string &name)
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
const int CMN_NO_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:325
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
Declaration of mtsComponent.
Rules of exporting.