-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.cpp
100 lines (90 loc) · 2.87 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#include <phpcpp.h>
#include "src/QtConstants.h"
#include "src/Core/Event.h"
#include "src/Core/TimerEvent.h"
#include "src/Core/Object.h"
#include "src/Core/Size.h"
#include "src/Core/Thread.h"
#include "src/Core/Action.h"
#include "src/Widgets/application.h"
#include "src/Widgets/BoxLayout.h"
#include "src/Widgets/VBoxLayout.h"
#include "src/Widgets/FormLayout.h"
#include "src/Widgets/widget.h"
#include "src/Widgets/Layout.h"
#include "src/Widgets/label.h"
#include "src/Widgets/LineEdit.h"
#include "src/Widgets/mainwindow.h"
#include "src/Widgets/ProgressBar.h"
#include "src/Widgets/textedit.h"
#include "src/Widgets/pushbutton.h"
#include "src/Gui/Pixmap.h"
#include "src/Gui/Icon.h"
class PhpQApplication
{
};
extern "C"
{
PHPCPP_EXPORT void *get_module()
{
static Php::Extension extension("phpqt", "1.0");
auto qt = QtConstants::_DEFINITION();
auto event = Event::_DEFINITION();
auto object = Object::_DEFINITION();
auto widget = Widget::_DEFINITION();
auto layout = Layout::_DEFINITION();
auto size = Size::_DEFINITION();
auto thread = Thread::_DEFINITION();
auto timerevent = TimerEvent::_DEFINITION();
auto action = Action::_DEFINITION();
auto application = Application::_DEFINITION();
auto boxLayout = BoxLayout::_DEFINITION();
auto vboxLayout = VBoxLayout::_DEFINITION();
auto formLayout = FormLayout::_DEFINITION();
auto label = Label::_DEFINITION();
auto lineEdit = LineEdit::_DEFINITION();
auto mainwindow = MainWindow::_DEFINITION();
auto progressbar = ProgressBar::_DEFINITION();
auto pushbutton = PushButton::_DEFINITION();
auto textedit = TextEdit::_DEFINITION();
auto pixmap = Pixmap::_DEFINITION();
auto icon = Icon::_DEFINITION();
widget.extends(object);
layout.extends(object);
timerevent.extends(event);
action.extends(object);
thread.extends(object);
formLayout.extends(layout);
boxLayout.extends(layout);
vboxLayout.extends(boxLayout);
label.extends(widget);
mainwindow.extends(widget);
pushbutton.extends(widget);
progressbar.extends(widget);
textedit.extends(widget);
lineEdit.extends(widget);
extension
.add(qt)
.add(object)
.add(event)
.add(timerevent)
.add(size)
.add(thread)
.add(widget)
.add(action)
.add(layout)
.add(application)
.add(formLayout)
.add(boxLayout)
.add(vboxLayout)
.add(label)
.add(lineEdit)
.add(mainwindow)
.add(pushbutton)
.add(progressbar)
.add(textedit)
.add(pixmap)
.add(icon);
return extension;
}
}