CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Applications
ctkEventBusDemo
ctkEventBusDemoMainWindow.h
Go to the documentation of this file.
1
#ifndef CTKEVENTBUSDEMOMAINWINDOW_H
2
#define CTKEVENTBUSDEMOMAINWINDOW_H
3
4
#include <QMainWindow>
5
#include <QVariant>
6
7
class
ctkEventAdminBus
;
8
9
namespace
Ui
{
10
class
ctkEventBusDemoMainWindow
;
11
}
12
13
class
ctkEventDemo
:
public
QObject {
14
Q_OBJECT
15
16
Q_SIGNALS:
17
void
receiveEventSignal
(QVariantList l);
18
void
updateMessageSignal
(QString message);
19
20
public
Q_SLOTS:
21
void
receiveEvent
(QVariantList l);
22
};
23
24
class
ctkEventBusDemoMainWindow
:
public
QMainWindow {
25
Q_OBJECT
26
public
:
27
ctkEventBusDemoMainWindow
(QWidget *parent = 0);
28
ctkEventBusDemoMainWindow
(
ctkEventAdminBus
*bus, QWidget *parent = 0);
29
~ctkEventBusDemoMainWindow
();
30
31
public
Q_SLOTS:
32
void
sendEvent
();
33
void
updateMessage
(QString message);
34
void
connectClient
();
35
36
protected
:
37
void
changeEvent
(QEvent *e);
38
void
connectEvents
();
39
40
private
:
41
Ui::ctkEventBusDemoMainWindow *ui;
42
ctkEventAdminBus
*m_EventBus;
43
44
ctkEventDemo
*handler;
45
};
46
47
#endif
// CTKEVENTBUSDEMOMAINWINDOW_H
ctkEventAdminBus
Definition:
ctkEventAdminBus.h:35
ctkEventBusDemoMainWindow
Definition:
ctkEventBusDemoMainWindow.h:24
ctkEventBusDemoMainWindow::ctkEventBusDemoMainWindow
ctkEventBusDemoMainWindow(QWidget *parent=0)
ctkEventBusDemoMainWindow::connectEvents
void connectEvents()
ctkEventBusDemoMainWindow::connectClient
void connectClient()
ctkEventBusDemoMainWindow::ctkEventBusDemoMainWindow
ctkEventBusDemoMainWindow(ctkEventAdminBus *bus, QWidget *parent=0)
ctkEventBusDemoMainWindow::updateMessage
void updateMessage(QString message)
ctkEventBusDemoMainWindow::sendEvent
void sendEvent()
ctkEventBusDemoMainWindow::changeEvent
void changeEvent(QEvent *e)
ctkEventBusDemoMainWindow::~ctkEventBusDemoMainWindow
~ctkEventBusDemoMainWindow()
ctkEventDemo
Definition:
ctkEventBusDemoMainWindow.h:13
ctkEventDemo::receiveEvent
void receiveEvent(QVariantList l)
ctkEventDemo::updateMessageSignal
void updateMessageSignal(QString message)
ctkEventDemo::receiveEventSignal
void receiveEventSignal(QVariantList l)
Ui
Definition:
ctkCmdLineModuleExplorerMainWindow.h:40
Generated on Mon Aug 9 2021 00:00:00 for CTK by
1.9.1