cisst-saw
Toggle main menu visibility
Loading...
Searching...
No Matches
tmp
cisst-saw
cisst
cisstMultiTask
mtsQtWidgetEvent.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
14
This software is provided "as is" under an open source license, with
15
no warranty. The complete license can be found in license.txt and
16
http://www.cisst.org/cisst/license.txt.
17
18
--- end cisst license ---
19
20
*/
21
22
#ifndef _mtsQtWidgetEvent_h
23
#define _mtsQtWidgetEvent_h
24
25
#include <map>
26
27
class
mtsQtWidgetGenericObjectRead
;
28
class
mtsQtWidgetGenericObjectWrite
;
29
30
#include <
cisstMultiTask/mtsFunctionVoid.h
>
31
#include <
cisstMultiTask/mtsFunctionVoidReturn.h
>
32
#include <
cisstMultiTask/mtsFunctionWrite.h
>
33
#include <
cisstMultiTask/mtsFunctionWriteReturn.h
>
34
#include <
cisstMultiTask/mtsFunctionRead.h
>
35
#include <
cisstMultiTask/mtsFunctionQualifiedRead.h
>
36
37
#include <
cisstMultiTask/mtsGenericObject.h
>
38
39
#include <QWidget>
40
#include <QTime>
41
42
class
QLabel;
43
class
QVBoxLayout;
44
45
// Always include last
46
#include <
cisstMultiTask/mtsExportQt.h
>
47
48
/* ! A widget that wraps a single mtsCommand, allowing the user to execute the command and view its output. */
49
class
CISST_EXPORT
mtsQtWidgetEvent
:
public
QWidget,
public
cmnGenericObject
50
{
51
Q_OBJECT;
52
CMN_DECLARE_SERVICES(
CMN_NO_DYNAMIC_CREATION
,
CMN_LOG_ALLOW_DEFAULT
);
53
54
private
:
55
QLabel * Info;
56
57
protected
:
58
QVBoxLayout *
MainLayout
;
59
void
UpdateInfo
(
void
);
60
unsigned
long
long
int
Counter
;
61
62
public
:
63
mtsQtWidgetEvent
(
void
);
64
};
65
66
CMN_DECLARE_SERVICES_INSTANTIATION
(
mtsQtWidgetEvent
)
67
68
69
class
CISST_EXPORT
mtsQtWidgetEventVoid
: public
mtsQtWidgetEvent
70
{
71
Q_OBJECT;
72
public
:
73
explicit
mtsQtWidgetEventVoid
(
void
);
74
void
EventHandler
(
void
);
75
};
76
77
78
class
CISST_EXPORT
mtsQtWidgetEventWrite
:
public
mtsQtWidgetEvent
79
{
80
Q_OBJECT;
81
QWidget * PayloadWidget;
82
const
mtsCommandWriteBase
* Command;
83
public
:
84
explicit
mtsQtWidgetEventWrite
(
void
);
85
void
EventHandler
(
const
mtsGenericObject
& payload);
86
void
SetCommand
(
const
mtsCommandWriteBase
* command);
87
void
CreateArgumentsWidgets
(
void
);
88
};
89
90
91
#endif
// _mtsQtWidgetEvent_h
cmnGenericObject
Base class for high level objects.
Definition
cmnGenericObject.h:53
mtsCommandWriteBase
Definition
mtsCommandWriteBase.h:40
mtsGenericObject
Base class for data object in cisstMultiTask.
Definition
mtsGenericObject.h:52
mtsQtWidgetEvent
Definition
mtsQtWidgetEvent.h:50
mtsQtWidgetEvent::UpdateInfo
void UpdateInfo(void)
mtsQtWidgetEvent::MainLayout
QVBoxLayout * MainLayout
Definition
mtsQtWidgetEvent.h:58
mtsQtWidgetEvent::Counter
unsigned long long int Counter
Definition
mtsQtWidgetEvent.h:60
mtsQtWidgetEvent::mtsQtWidgetEvent
mtsQtWidgetEvent(void)
mtsQtWidgetEventVoid::EventHandler
void EventHandler(void)
mtsQtWidgetEventVoid::mtsQtWidgetEventVoid
mtsQtWidgetEventVoid(void)
mtsQtWidgetEventWrite::EventHandler
void EventHandler(const mtsGenericObject &payload)
mtsQtWidgetEventWrite::SetCommand
void SetCommand(const mtsCommandWriteBase *command)
mtsQtWidgetEventWrite::CreateArgumentsWidgets
void CreateArgumentsWidgets(void)
mtsQtWidgetEventWrite::mtsQtWidgetEventWrite
mtsQtWidgetEventWrite(void)
mtsQtWidgetGenericObjectRead
Definition
mtsQtWidgetGenericObject.h:36
mtsQtWidgetGenericObjectWrite
Definition
mtsQtWidgetGenericObject.h:49
CMN_DECLARE_SERVICES_INSTANTIATION
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition
cmnClassRegisterMacros.h:199
CMN_NO_DYNAMIC_CREATION
const int CMN_NO_DYNAMIC_CREATION
Definition
cmnClassRegisterMacros.h:325
CISST_EXPORT
#define CISST_EXPORT
Definition
cmnExportMacros.h:50
CMN_LOG_ALLOW_DEFAULT
#define CMN_LOG_ALLOW_DEFAULT
Definition
cmnLogLoD.h:76
mtsExportQt.h
Rules of exporting.
mtsFunctionQualifiedRead.h
Defines the command interfaces.
mtsFunctionRead.h
Defines the command interfaces.
mtsFunctionVoid.h
Defines a function object to use a void command (mtsCommandVoid).
mtsFunctionVoidReturn.h
Defines a function object to use a void command (mtsCommandVoidReturn).
mtsFunctionWrite.h
Defines the command interfaces.
mtsFunctionWriteReturn.h
Defines a function object to use a void command (mtsCommandWriteReturn).
mtsGenericObject.h
Defines mtsGenericObject.
Generated by
1.18.0