CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
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 {
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);
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
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)