ui/qt/toolkit.h

changeset 526
f6a6b0b08641
parent 66
8d490d97aab8
child 535
ede57f5b6178
equal deleted inserted replaced
525:878df45e6441 526:f6a6b0b08641
33 #include "../common/context.h" 33 #include "../common/context.h"
34 #include "../common/object.h" 34 #include "../common/object.h"
35 35
36 #include <QApplication> 36 #include <QApplication>
37 37
38 class UiEventWrapper;
39
40 typedef void (*ui_prepare_event_func)(UiEvent *event, UiEventWrapper *wrapper);
41
38 class UiEventWrapper : public QObject { 42 class UiEventWrapper : public QObject {
39 Q_OBJECT 43 Q_OBJECT
40 44
41 UiObject *obj; 45 UiObject *obj;
42 ui_callback callback; 46 ui_callback callback;
43 void *userdata; 47 void *userdata;
44 48
45 public: 49 public:
50 UiVar *var;
51
52 void *customdata1 = NULL;
53 void *customdata2 = NULL;
54 int customvalue1 = 0;
55 int customvalue2 = 0;
56
57 ui_prepare_event_func prepare_event = NULL;
58
46 UiEventWrapper(UiObject *obj, ui_callback f, void *userdata); 59 UiEventWrapper(UiObject *obj, ui_callback f, void *userdata);
47 60
48 public slots: 61 public slots:
49 void slot(); 62 void slot();
63 void destroy();
50 }; 64 };
51 65
52 66
53 #endif /* TOOLKIT_H */ 67 #endif /* TOOLKIT_H */
54 68

mercurial