CTK 0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Loading...
Searching...
No Matches
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
8
9namespace Ui {
11}
12
13class ctkEventDemo : public QObject {
14 Q_OBJECT
15
16Q_SIGNALS:
17 void receiveEventSignal(QVariantList l);
18 void updateMessageSignal(QString message);
19
20public Q_SLOTS:
21 void receiveEvent(QVariantList l);
22};
23
24class ctkEventBusDemoMainWindow : public QMainWindow {
25 Q_OBJECT
26public:
27 ctkEventBusDemoMainWindow(QWidget *parent = 0);
28 ctkEventBusDemoMainWindow(ctkEventAdminBus *bus, QWidget *parent = 0);
30
31public Q_SLOTS:
32 void sendEvent();
33 void updateMessage(QString message);
35
36protected:
37 void changeEvent(QEvent *e);
39
40private:
41 Ui::ctkEventBusDemoMainWindow *ui;
42 ctkEventAdminBus *m_EventBus;
43
44 ctkEventDemo *handler;
45};
46
47#endif // CTKEVENTBUSDEMOMAINWINDOW_H
ctkEventBusDemoMainWindow(QWidget *parent=0)
ctkEventBusDemoMainWindow(ctkEventAdminBus *bus, QWidget *parent=0)
void updateMessage(QString message)
void changeEvent(QEvent *e)
void receiveEvent(QVariantList l)
void updateMessageSignal(QString message)
void receiveEventSignal(QVariantList l)