743229dd
—
pyros2097 13 years ago
v0.41 added
- .pydevproject.bak +0 -0
- .pydevproject.bak0 +8 -0
- Bin/__init__.py +0 -0
- Bin/sq.exe +0 -0
- Bin/squirrelsh.exe +0 -0
- Dialog/ui_Options.py +282 -0
- Dialog/ui_Project.py +114 -0
- Lib/__init__.py +0 -0
- Lib/libsqstdlib.a +0 -0
- Lib/libsquirrel.a +0 -0
- Widget/emo.api +212 -0
- build/exe.win32-2.7/PyQt4.Qsci.pyd +0 -0
- build/exe.win32-2.7/PyQt4.QtCore.pyd +0 -0
- build/exe.win32-2.7/PyQt4.QtGui.pyd +0 -0
- build/exe.win32-2.7/QtCore4.dll +0 -0
- build/exe.win32-2.7/QtGui4.dll +0 -0
- build/exe.win32-2.7/Sabel.exe +0 -0
- build/exe.win32-2.7/Sabel.zip +0 -0
- build/exe.win32-2.7/_ctypes.pyd +0 -0
- build/exe.win32-2.7/_hashlib.pyd +0 -0
- build/exe.win32-2.7/_socket.pyd +0 -0
- build/exe.win32-2.7/_ssl.pyd +0 -0
- build/exe.win32-2.7/bz2.pyd +0 -0
- build/exe.win32-2.7/config.yaml +18 -0
- build/exe.win32-2.7/imageformats/qgif4.dll +0 -0
- build/exe.win32-2.7/library.zip +0 -0
- build/exe.win32-2.7/pyexpat.pyd +0 -0
- build/exe.win32-2.7/python27.dll +0 -0
- build/exe.win32-2.7/pywintypes27.dll +0 -0
- build/exe.win32-2.7/qscintilla2.dll +0 -0
- build/exe.win32-2.7/select.pyd +0 -0
- build/exe.win32-2.7/sip.pyd +0 -0
- build/exe.win32-2.7/unicodedata.pyd +0 -0
- build/exe.win32-2.7/win32api.pyd +0 -0
- build/exe.win32-2.7/win32pipe.pyd +0 -0
- config.py +91 -0
- cx.py +28 -0
- emo.api +212 -0
- globals.py +23 -0
.pydevproject.bak
ADDED
|
File without changes
|
.pydevproject.bak0
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<?eclipse-pydev version="1.0"?>
|
|
3
|
+
|
|
4
|
+
<pydev_project>
|
|
5
|
+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
|
|
6
|
+
</pydev_project>
|
|
7
|
+
ame="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
|
|
8
|
+
</pydev_project>
|
Bin/__init__.py
ADDED
|
File without changes
|
Bin/sq.exe
ADDED
|
Binary file
|
Bin/squirrelsh.exe
ADDED
|
Binary file
|
Dialog/ui_Options.py
ADDED
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
# Form implementation generated from reading ui file 'C:\CODE\Sabel\Dialog\Options.ui'
|
|
4
|
+
#
|
|
5
|
+
# Created: Sun Aug 12 13:34:58 2012
|
|
6
|
+
# by: PyQt4 UI code generator 4.9.4
|
|
7
|
+
#
|
|
8
|
+
# WARNING! All changes made in this file will be lost!
|
|
9
|
+
|
|
10
|
+
from PyQt4 import QtCore, QtGui
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
_fromUtf8 = QtCore.QString.fromUtf8
|
|
14
|
+
except AttributeError:
|
|
15
|
+
_fromUtf8 = lambda s: s
|
|
16
|
+
|
|
17
|
+
class Ui_Dialog(object):
|
|
18
|
+
def setupUi(self, Dialog):
|
|
19
|
+
Dialog.setObjectName(_fromUtf8("Dialog"))
|
|
20
|
+
Dialog.resize(601, 528)
|
|
21
|
+
self.toolBox = QtGui.QToolBox(Dialog)
|
|
22
|
+
self.toolBox.setGeometry(QtCore.QRect(9, 3, 61, 411))
|
|
23
|
+
self.toolBox.setObjectName(_fromUtf8("toolBox"))
|
|
24
|
+
self.page = QtGui.QWidget()
|
|
25
|
+
self.page.setGeometry(QtCore.QRect(0, 0, 61, 357))
|
|
26
|
+
self.page.setObjectName(_fromUtf8("page"))
|
|
27
|
+
self.toolButton = QtGui.QToolButton(self.page)
|
|
28
|
+
self.toolButton.setGeometry(QtCore.QRect(10, 30, 25, 19))
|
|
29
|
+
self.toolButton.setObjectName(_fromUtf8("toolButton"))
|
|
30
|
+
self.toolButton_2 = QtGui.QToolButton(self.page)
|
|
31
|
+
self.toolButton_2.setGeometry(QtCore.QRect(10, 60, 25, 19))
|
|
32
|
+
self.toolButton_2.setObjectName(_fromUtf8("toolButton_2"))
|
|
33
|
+
self.toolButton_3 = QtGui.QToolButton(self.page)
|
|
34
|
+
self.toolButton_3.setGeometry(QtCore.QRect(10, 100, 25, 19))
|
|
35
|
+
self.toolButton_3.setObjectName(_fromUtf8("toolButton_3"))
|
|
36
|
+
self.toolBox.addItem(self.page, _fromUtf8(""))
|
|
37
|
+
self.page_2 = QtGui.QWidget()
|
|
38
|
+
self.page_2.setGeometry(QtCore.QRect(0, 0, 61, 357))
|
|
39
|
+
self.page_2.setObjectName(_fromUtf8("page_2"))
|
|
40
|
+
self.toolBox.addItem(self.page_2, _fromUtf8(""))
|
|
41
|
+
self.tabWidget = QtGui.QTabWidget(Dialog)
|
|
42
|
+
self.tabWidget.setGeometry(QtCore.QRect(80, 10, 521, 461))
|
|
43
|
+
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
|
|
44
|
+
self.tab = QtGui.QWidget()
|
|
45
|
+
self.tab.setObjectName(_fromUtf8("tab"))
|
|
46
|
+
self.formLayoutWidget = QtGui.QWidget(self.tab)
|
|
47
|
+
self.formLayoutWidget.setGeometry(QtCore.QRect(10, 110, 501, 241))
|
|
48
|
+
self.formLayoutWidget.setObjectName(_fromUtf8("formLayoutWidget"))
|
|
49
|
+
self.formLayout = QtGui.QFormLayout(self.formLayoutWidget)
|
|
50
|
+
self.formLayout.setMargin(0)
|
|
51
|
+
self.formLayout.setObjectName(_fromUtf8("formLayout"))
|
|
52
|
+
self.label = QtGui.QLabel(self.formLayoutWidget)
|
|
53
|
+
font = QtGui.QFont()
|
|
54
|
+
font.setPointSize(10)
|
|
55
|
+
self.label.setFont(font)
|
|
56
|
+
self.label.setObjectName(_fromUtf8("label"))
|
|
57
|
+
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
|
|
58
|
+
self.label_2 = QtGui.QLabel(self.formLayoutWidget)
|
|
59
|
+
font = QtGui.QFont()
|
|
60
|
+
font.setPointSize(10)
|
|
61
|
+
self.label_2.setFont(font)
|
|
62
|
+
self.label_2.setObjectName(_fromUtf8("label_2"))
|
|
63
|
+
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
|
|
64
|
+
self.label_3 = QtGui.QLabel(self.formLayoutWidget)
|
|
65
|
+
font = QtGui.QFont()
|
|
66
|
+
font.setPointSize(10)
|
|
67
|
+
self.label_3.setFont(font)
|
|
68
|
+
self.label_3.setObjectName(_fromUtf8("label_3"))
|
|
69
|
+
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
|
|
70
|
+
self.label_4 = QtGui.QLabel(self.formLayoutWidget)
|
|
71
|
+
font = QtGui.QFont()
|
|
72
|
+
font.setPointSize(10)
|
|
73
|
+
self.label_4.setFont(font)
|
|
74
|
+
self.label_4.setObjectName(_fromUtf8("label_4"))
|
|
75
|
+
self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
|
|
76
|
+
self.label_5 = QtGui.QLabel(self.formLayoutWidget)
|
|
77
|
+
font = QtGui.QFont()
|
|
78
|
+
font.setPointSize(10)
|
|
79
|
+
self.label_5.setFont(font)
|
|
80
|
+
self.label_5.setObjectName(_fromUtf8("label_5"))
|
|
81
|
+
self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_5)
|
|
82
|
+
self.label_6 = QtGui.QLabel(self.formLayoutWidget)
|
|
83
|
+
font = QtGui.QFont()
|
|
84
|
+
font.setPointSize(10)
|
|
85
|
+
self.label_6.setFont(font)
|
|
86
|
+
self.label_6.setObjectName(_fromUtf8("label_6"))
|
|
87
|
+
self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_6)
|
|
88
|
+
self.lineEdit = QtGui.QLineEdit(self.formLayoutWidget)
|
|
89
|
+
self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
|
|
90
|
+
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.lineEdit)
|
|
91
|
+
self.lineEdit_2 = QtGui.QLineEdit(self.formLayoutWidget)
|
|
92
|
+
self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
|
|
93
|
+
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.lineEdit_2)
|
|
94
|
+
self.lineEdit_5 = QtGui.QLineEdit(self.formLayoutWidget)
|
|
95
|
+
self.lineEdit_5.setObjectName(_fromUtf8("lineEdit_5"))
|
|
96
|
+
self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.lineEdit_5)
|
|
97
|
+
self.lineEdit_6 = QtGui.QLineEdit(self.formLayoutWidget)
|
|
98
|
+
self.lineEdit_6.setObjectName(_fromUtf8("lineEdit_6"))
|
|
99
|
+
self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.lineEdit_6)
|
|
100
|
+
self.comboBox = QtGui.QComboBox(self.formLayoutWidget)
|
|
101
|
+
self.comboBox.setObjectName(_fromUtf8("comboBox"))
|
|
102
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
103
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
104
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
105
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
106
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
107
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
108
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
109
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
110
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
111
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
112
|
+
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.comboBox)
|
|
113
|
+
self.lineEdit_4 = QtGui.QLineEdit(self.formLayoutWidget)
|
|
114
|
+
self.lineEdit_4.setObjectName(_fromUtf8("lineEdit_4"))
|
|
115
|
+
self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.lineEdit_4)
|
|
116
|
+
self.checkBox = QtGui.QCheckBox(self.tab)
|
|
117
|
+
self.checkBox.setGeometry(QtCore.QRect(10, 80, 70, 17))
|
|
118
|
+
self.checkBox.setObjectName(_fromUtf8("checkBox"))
|
|
119
|
+
self.label_7 = QtGui.QLabel(self.tab)
|
|
120
|
+
self.label_7.setGeometry(QtCore.QRect(10, 50, 401, 31))
|
|
121
|
+
self.label_7.setObjectName(_fromUtf8("label_7"))
|
|
122
|
+
self.tabWidget.addTab(self.tab, _fromUtf8(""))
|
|
123
|
+
self.tab_2 = QtGui.QWidget()
|
|
124
|
+
self.tab_2.setObjectName(_fromUtf8("tab_2"))
|
|
125
|
+
self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
|
|
126
|
+
self.tab_3 = QtGui.QWidget()
|
|
127
|
+
self.tab_3.setObjectName(_fromUtf8("tab_3"))
|
|
128
|
+
self.label_8 = QtGui.QLabel(self.tab_3)
|
|
129
|
+
self.label_8.setGeometry(QtCore.QRect(70, 90, 21, 16))
|
|
130
|
+
self.label_8.setObjectName(_fromUtf8("label_8"))
|
|
131
|
+
self.lineEdit_3 = QtGui.QLineEdit(self.tab_3)
|
|
132
|
+
self.lineEdit_3.setGeometry(QtCore.QRect(100, 90, 341, 20))
|
|
133
|
+
self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
|
|
134
|
+
self.label_9 = QtGui.QLabel(self.tab_3)
|
|
135
|
+
self.label_9.setGeometry(QtCore.QRect(70, 130, 31, 16))
|
|
136
|
+
self.label_9.setObjectName(_fromUtf8("label_9"))
|
|
137
|
+
self.lineEdit_7 = QtGui.QLineEdit(self.tab_3)
|
|
138
|
+
self.lineEdit_7.setGeometry(QtCore.QRect(100, 130, 341, 20))
|
|
139
|
+
self.lineEdit_7.setObjectName(_fromUtf8("lineEdit_7"))
|
|
140
|
+
self.toolButton_4 = QtGui.QToolButton(self.tab_3)
|
|
141
|
+
self.toolButton_4.setGeometry(QtCore.QRect(450, 90, 51, 19))
|
|
142
|
+
self.toolButton_4.setObjectName(_fromUtf8("toolButton_4"))
|
|
143
|
+
self.toolButton_5 = QtGui.QToolButton(self.tab_3)
|
|
144
|
+
self.toolButton_5.setGeometry(QtCore.QRect(450, 130, 51, 19))
|
|
145
|
+
self.toolButton_5.setObjectName(_fromUtf8("toolButton_5"))
|
|
146
|
+
self.label_10 = QtGui.QLabel(self.tab_3)
|
|
147
|
+
self.label_10.setGeometry(QtCore.QRect(20, 210, 71, 16))
|
|
148
|
+
self.label_10.setObjectName(_fromUtf8("label_10"))
|
|
149
|
+
self.lineEdit_8 = QtGui.QLineEdit(self.tab_3)
|
|
150
|
+
self.lineEdit_8.setGeometry(QtCore.QRect(100, 210, 341, 20))
|
|
151
|
+
self.lineEdit_8.setObjectName(_fromUtf8("lineEdit_8"))
|
|
152
|
+
self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
|
|
153
|
+
self.tab_4 = QtGui.QWidget()
|
|
154
|
+
self.tab_4.setObjectName(_fromUtf8("tab_4"))
|
|
155
|
+
self.lineEdit_9 = QtGui.QLineEdit(self.tab_4)
|
|
156
|
+
self.lineEdit_9.setGeometry(QtCore.QRect(120, 70, 281, 20))
|
|
157
|
+
self.lineEdit_9.setObjectName(_fromUtf8("lineEdit_9"))
|
|
158
|
+
self.label_11 = QtGui.QLabel(self.tab_4)
|
|
159
|
+
self.label_11.setGeometry(QtCore.QRect(50, 70, 61, 16))
|
|
160
|
+
self.label_11.setObjectName(_fromUtf8("label_11"))
|
|
161
|
+
self.toolButton_6 = QtGui.QToolButton(self.tab_4)
|
|
162
|
+
self.toolButton_6.setGeometry(QtCore.QRect(420, 70, 61, 19))
|
|
163
|
+
self.toolButton_6.setObjectName(_fromUtf8("toolButton_6"))
|
|
164
|
+
self.tabWidget.addTab(self.tab_4, _fromUtf8(""))
|
|
165
|
+
self.tab_5 = QtGui.QWidget()
|
|
166
|
+
self.tab_5.setObjectName(_fromUtf8("tab_5"))
|
|
167
|
+
self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
|
|
168
|
+
self.tab_6 = QtGui.QWidget()
|
|
169
|
+
self.tab_6.setObjectName(_fromUtf8("tab_6"))
|
|
170
|
+
self.label_12 = QtGui.QLabel(self.tab_6)
|
|
171
|
+
self.label_12.setGeometry(QtCore.QRect(40, 80, 61, 16))
|
|
172
|
+
self.label_12.setObjectName(_fromUtf8("label_12"))
|
|
173
|
+
self.toolButton_7 = QtGui.QToolButton(self.tab_6)
|
|
174
|
+
self.toolButton_7.setGeometry(QtCore.QRect(410, 80, 61, 19))
|
|
175
|
+
self.toolButton_7.setObjectName(_fromUtf8("toolButton_7"))
|
|
176
|
+
self.lineEdit_10 = QtGui.QLineEdit(self.tab_6)
|
|
177
|
+
self.lineEdit_10.setGeometry(QtCore.QRect(110, 80, 281, 20))
|
|
178
|
+
self.lineEdit_10.setObjectName(_fromUtf8("lineEdit_10"))
|
|
179
|
+
self.tabWidget.addTab(self.tab_6, _fromUtf8(""))
|
|
180
|
+
self.tab_7 = QtGui.QWidget()
|
|
181
|
+
self.tab_7.setObjectName(_fromUtf8("tab_7"))
|
|
182
|
+
self.label_13 = QtGui.QLabel(self.tab_7)
|
|
183
|
+
self.label_13.setGeometry(QtCore.QRect(40, 70, 61, 16))
|
|
184
|
+
self.label_13.setObjectName(_fromUtf8("label_13"))
|
|
185
|
+
self.toolButton_8 = QtGui.QToolButton(self.tab_7)
|
|
186
|
+
self.toolButton_8.setGeometry(QtCore.QRect(410, 70, 61, 19))
|
|
187
|
+
self.toolButton_8.setObjectName(_fromUtf8("toolButton_8"))
|
|
188
|
+
self.lineEdit_11 = QtGui.QLineEdit(self.tab_7)
|
|
189
|
+
self.lineEdit_11.setGeometry(QtCore.QRect(110, 70, 281, 20))
|
|
190
|
+
self.lineEdit_11.setObjectName(_fromUtf8("lineEdit_11"))
|
|
191
|
+
self.tabWidget.addTab(self.tab_7, _fromUtf8(""))
|
|
192
|
+
self.tab_8 = QtGui.QWidget()
|
|
193
|
+
self.tab_8.setObjectName(_fromUtf8("tab_8"))
|
|
194
|
+
self.label_14 = QtGui.QLabel(self.tab_8)
|
|
195
|
+
self.label_14.setGeometry(QtCore.QRect(40, 80, 61, 16))
|
|
196
|
+
self.label_14.setObjectName(_fromUtf8("label_14"))
|
|
197
|
+
self.toolButton_9 = QtGui.QToolButton(self.tab_8)
|
|
198
|
+
self.toolButton_9.setGeometry(QtCore.QRect(410, 80, 61, 19))
|
|
199
|
+
self.toolButton_9.setObjectName(_fromUtf8("toolButton_9"))
|
|
200
|
+
self.lineEdit_12 = QtGui.QLineEdit(self.tab_8)
|
|
201
|
+
self.lineEdit_12.setGeometry(QtCore.QRect(110, 80, 281, 20))
|
|
202
|
+
self.lineEdit_12.setObjectName(_fromUtf8("lineEdit_12"))
|
|
203
|
+
self.tabWidget.addTab(self.tab_8, _fromUtf8(""))
|
|
204
|
+
self.pushButton = QtGui.QPushButton(Dialog)
|
|
205
|
+
self.pushButton.setGeometry(QtCore.QRect(320, 490, 75, 23))
|
|
206
|
+
self.pushButton.setObjectName(_fromUtf8("pushButton"))
|
|
207
|
+
self.pushButton_2 = QtGui.QPushButton(Dialog)
|
|
208
|
+
self.pushButton_2.setGeometry(QtCore.QRect(410, 490, 75, 23))
|
|
209
|
+
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
|
|
210
|
+
self.pushButton_3 = QtGui.QPushButton(Dialog)
|
|
211
|
+
self.pushButton_3.setGeometry(QtCore.QRect(510, 490, 75, 23))
|
|
212
|
+
self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
|
|
213
|
+
self.actionApply = QtGui.QAction(Dialog)
|
|
214
|
+
self.actionApply.setObjectName(_fromUtf8("actionApply"))
|
|
215
|
+
|
|
216
|
+
self.retranslateUi(Dialog)
|
|
217
|
+
self.toolBox.setCurrentIndex(0)
|
|
218
|
+
self.tabWidget.setCurrentIndex(0)
|
|
219
|
+
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.actionApply.trigger)
|
|
220
|
+
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
|
221
|
+
|
|
222
|
+
def retranslateUi(self, Dialog):
|
|
223
|
+
Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Options", None, QtGui.QApplication.UnicodeUTF8))
|
|
224
|
+
self.toolButton.setText(QtGui.QApplication.translate("Dialog", "...", None, QtGui.QApplication.UnicodeUTF8))
|
|
225
|
+
self.toolButton_2.setText(QtGui.QApplication.translate("Dialog", "...", None, QtGui.QApplication.UnicodeUTF8))
|
|
226
|
+
self.toolButton_3.setText(QtGui.QApplication.translate("Dialog", "...", None, QtGui.QApplication.UnicodeUTF8))
|
|
227
|
+
self.toolBox.setItemText(self.toolBox.indexOf(self.page), QtGui.QApplication.translate("Dialog", "Page 1", None, QtGui.QApplication.UnicodeUTF8))
|
|
228
|
+
self.toolBox.setItemText(self.toolBox.indexOf(self.page_2), QtGui.QApplication.translate("Dialog", "Page 2", None, QtGui.QApplication.UnicodeUTF8))
|
|
229
|
+
self.label.setText(QtGui.QApplication.translate("Dialog", "Author", None, QtGui.QApplication.UnicodeUTF8))
|
|
230
|
+
self.label_2.setText(QtGui.QApplication.translate("Dialog", "Credits", None, QtGui.QApplication.UnicodeUTF8))
|
|
231
|
+
self.label_3.setText(QtGui.QApplication.translate("Dialog", "License", None, QtGui.QApplication.UnicodeUTF8))
|
|
232
|
+
self.label_4.setText(QtGui.QApplication.translate("Dialog", "Version", None, QtGui.QApplication.UnicodeUTF8))
|
|
233
|
+
self.label_5.setText(QtGui.QApplication.translate("Dialog", "Maintainer", None, QtGui.QApplication.UnicodeUTF8))
|
|
234
|
+
self.label_6.setText(QtGui.QApplication.translate("Dialog", "Email", None, QtGui.QApplication.UnicodeUTF8))
|
|
235
|
+
self.comboBox.setItemText(0, QtGui.QApplication.translate("Dialog", "Apache License 2.0", None, QtGui.QApplication.UnicodeUTF8))
|
|
236
|
+
self.comboBox.setItemText(1, QtGui.QApplication.translate("Dialog", "Artistic License/GPL", None, QtGui.QApplication.UnicodeUTF8))
|
|
237
|
+
self.comboBox.setItemText(2, QtGui.QApplication.translate("Dialog", "Eclipse Plugin License 1.0", None, QtGui.QApplication.UnicodeUTF8))
|
|
238
|
+
self.comboBox.setItemText(3, QtGui.QApplication.translate("Dialog", "GNU General Public License v2", None, QtGui.QApplication.UnicodeUTF8))
|
|
239
|
+
self.comboBox.setItemText(4, QtGui.QApplication.translate("Dialog", "GNU General Public License v3", None, QtGui.QApplication.UnicodeUTF8))
|
|
240
|
+
self.comboBox.setItemText(5, QtGui.QApplication.translate("Dialog", "GNU Lesser General Public License", None, QtGui.QApplication.UnicodeUTF8))
|
|
241
|
+
self.comboBox.setItemText(6, QtGui.QApplication.translate("Dialog", "MIT License", None, QtGui.QApplication.UnicodeUTF8))
|
|
242
|
+
self.comboBox.setItemText(7, QtGui.QApplication.translate("Dialog", "Mozilla Public License 1.1", None, QtGui.QApplication.UnicodeUTF8))
|
|
243
|
+
self.comboBox.setItemText(8, QtGui.QApplication.translate("Dialog", "New BSD License", None, QtGui.QApplication.UnicodeUTF8))
|
|
244
|
+
self.comboBox.setItemText(9, QtGui.QApplication.translate("Dialog", "Other", None, QtGui.QApplication.UnicodeUTF8))
|
|
245
|
+
self.checkBox.setText(QtGui.QApplication.translate("Dialog", "Enable ", None, QtGui.QApplication.UnicodeUTF8))
|
|
246
|
+
self.label_7.setText(QtGui.QApplication.translate("Dialog", "This will automatically fill new files you create with the Details Given Below", None, QtGui.QApplication.UnicodeUTF8))
|
|
247
|
+
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("Dialog", "Author", None, QtGui.QApplication.UnicodeUTF8))
|
|
248
|
+
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtGui.QApplication.translate("Dialog", "Terminal", None, QtGui.QApplication.UnicodeUTF8))
|
|
249
|
+
self.label_8.setText(QtGui.QApplication.translate("Dialog", "SDK:", None, QtGui.QApplication.UnicodeUTF8))
|
|
250
|
+
self.label_9.setText(QtGui.QApplication.translate("Dialog", "NDK:", None, QtGui.QApplication.UnicodeUTF8))
|
|
251
|
+
self.toolButton_4.setText(QtGui.QApplication.translate("Dialog", "Browse", None, QtGui.QApplication.UnicodeUTF8))
|
|
252
|
+
self.toolButton_5.setText(QtGui.QApplication.translate("Dialog", "Browse", None, QtGui.QApplication.UnicodeUTF8))
|
|
253
|
+
self.label_10.setText(QtGui.QApplication.translate("Dialog", "Logcat Filters:", None, QtGui.QApplication.UnicodeUTF8))
|
|
254
|
+
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), QtGui.QApplication.translate("Dialog", "Android", None, QtGui.QApplication.UnicodeUTF8))
|
|
255
|
+
self.label_11.setText(QtGui.QApplication.translate("Dialog", "Interpreter:", None, QtGui.QApplication.UnicodeUTF8))
|
|
256
|
+
self.toolButton_6.setText(QtGui.QApplication.translate("Dialog", "Browse", None, QtGui.QApplication.UnicodeUTF8))
|
|
257
|
+
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), QtGui.QApplication.translate("Dialog", "Squirrel", None, QtGui.QApplication.UnicodeUTF8))
|
|
258
|
+
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), QtGui.QApplication.translate("Dialog", "EmoFrameWork", None, QtGui.QApplication.UnicodeUTF8))
|
|
259
|
+
self.label_12.setText(QtGui.QApplication.translate("Dialog", "Interpreter:", None, QtGui.QApplication.UnicodeUTF8))
|
|
260
|
+
self.toolButton_7.setText(QtGui.QApplication.translate("Dialog", "Browse", None, QtGui.QApplication.UnicodeUTF8))
|
|
261
|
+
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_6), QtGui.QApplication.translate("Dialog", "Python", None, QtGui.QApplication.UnicodeUTF8))
|
|
262
|
+
self.label_13.setText(QtGui.QApplication.translate("Dialog", "Interpreter:", None, QtGui.QApplication.UnicodeUTF8))
|
|
263
|
+
self.toolButton_8.setText(QtGui.QApplication.translate("Dialog", "Browse", None, QtGui.QApplication.UnicodeUTF8))
|
|
264
|
+
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_7), QtGui.QApplication.translate("Dialog", "C", None, QtGui.QApplication.UnicodeUTF8))
|
|
265
|
+
self.label_14.setText(QtGui.QApplication.translate("Dialog", "Interpreter:", None, QtGui.QApplication.UnicodeUTF8))
|
|
266
|
+
self.toolButton_9.setText(QtGui.QApplication.translate("Dialog", "Browse", None, QtGui.QApplication.UnicodeUTF8))
|
|
267
|
+
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_8), QtGui.QApplication.translate("Dialog", "C++", None, QtGui.QApplication.UnicodeUTF8))
|
|
268
|
+
self.pushButton.setText(QtGui.QApplication.translate("Dialog", "Apply", None, QtGui.QApplication.UnicodeUTF8))
|
|
269
|
+
self.pushButton_2.setText(QtGui.QApplication.translate("Dialog", "OK", None, QtGui.QApplication.UnicodeUTF8))
|
|
270
|
+
self.pushButton_3.setText(QtGui.QApplication.translate("Dialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
|
|
271
|
+
self.actionApply.setText(QtGui.QApplication.translate("Dialog", "apply", None, QtGui.QApplication.UnicodeUTF8))
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
if __name__ == "__main__":
|
|
275
|
+
import sys
|
|
276
|
+
app = QtGui.QApplication(sys.argv)
|
|
277
|
+
Dialog = QtGui.QDialog()
|
|
278
|
+
ui = Ui_Dialog()
|
|
279
|
+
ui.setupUi(Dialog)
|
|
280
|
+
Dialog.show()
|
|
281
|
+
sys.exit(app.exec_())
|
|
282
|
+
|
Dialog/ui_Project.py
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
# Form implementation generated from reading ui file 'C:\CODE\Sabel\Dialog\Project.ui'
|
|
4
|
+
#
|
|
5
|
+
# Created: Sun Aug 12 13:34:57 2012
|
|
6
|
+
# by: PyQt4 UI code generator 4.9.4
|
|
7
|
+
#
|
|
8
|
+
# WARNING! All changes made in this file will be lost!
|
|
9
|
+
|
|
10
|
+
from PyQt4 import QtCore, QtGui
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
_fromUtf8 = QtCore.QString.fromUtf8
|
|
14
|
+
except AttributeError:
|
|
15
|
+
_fromUtf8 = lambda s: s
|
|
16
|
+
|
|
17
|
+
class Ui_Dialog(object):
|
|
18
|
+
def setupUi(self, Dialog):
|
|
19
|
+
Dialog.setObjectName(_fromUtf8("Dialog"))
|
|
20
|
+
Dialog.resize(580, 348)
|
|
21
|
+
self.buttonBox = QtGui.QDialogButtonBox(Dialog)
|
|
22
|
+
self.buttonBox.setGeometry(QtCore.QRect(210, 300, 341, 32))
|
|
23
|
+
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
|
24
|
+
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
|
|
25
|
+
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
|
|
26
|
+
self.formLayoutWidget = QtGui.QWidget(Dialog)
|
|
27
|
+
self.formLayoutWidget.setGeometry(QtCore.QRect(10, 40, 521, 241))
|
|
28
|
+
self.formLayoutWidget.setObjectName(_fromUtf8("formLayoutWidget"))
|
|
29
|
+
self.formLayout = QtGui.QFormLayout(self.formLayoutWidget)
|
|
30
|
+
self.formLayout.setMargin(0)
|
|
31
|
+
self.formLayout.setObjectName(_fromUtf8("formLayout"))
|
|
32
|
+
self.label = QtGui.QLabel(self.formLayoutWidget)
|
|
33
|
+
font = QtGui.QFont()
|
|
34
|
+
font.setFamily(_fromUtf8("MS Sans Serif"))
|
|
35
|
+
font.setPointSize(10)
|
|
36
|
+
self.label.setFont(font)
|
|
37
|
+
self.label.setObjectName(_fromUtf8("label"))
|
|
38
|
+
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
|
|
39
|
+
self.label_2 = QtGui.QLabel(self.formLayoutWidget)
|
|
40
|
+
font = QtGui.QFont()
|
|
41
|
+
font.setFamily(_fromUtf8("MS Sans Serif"))
|
|
42
|
+
font.setPointSize(10)
|
|
43
|
+
self.label_2.setFont(font)
|
|
44
|
+
self.label_2.setObjectName(_fromUtf8("label_2"))
|
|
45
|
+
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
|
|
46
|
+
self.label_3 = QtGui.QLabel(self.formLayoutWidget)
|
|
47
|
+
font = QtGui.QFont()
|
|
48
|
+
font.setFamily(_fromUtf8("MS Sans Serif"))
|
|
49
|
+
font.setPointSize(10)
|
|
50
|
+
self.label_3.setFont(font)
|
|
51
|
+
self.label_3.setObjectName(_fromUtf8("label_3"))
|
|
52
|
+
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
|
|
53
|
+
self.lineEdit = QtGui.QLineEdit(self.formLayoutWidget)
|
|
54
|
+
self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
|
|
55
|
+
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.lineEdit)
|
|
56
|
+
self.lineEdit_2 = QtGui.QLineEdit(self.formLayoutWidget)
|
|
57
|
+
self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
|
|
58
|
+
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.lineEdit_2)
|
|
59
|
+
self.textEdit = QtGui.QTextEdit(self.formLayoutWidget)
|
|
60
|
+
self.textEdit.setObjectName(_fromUtf8("textEdit"))
|
|
61
|
+
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.textEdit)
|
|
62
|
+
self.label_4 = QtGui.QLabel(self.formLayoutWidget)
|
|
63
|
+
font = QtGui.QFont()
|
|
64
|
+
font.setFamily(_fromUtf8("MS Sans Serif"))
|
|
65
|
+
font.setPointSize(10)
|
|
66
|
+
self.label_4.setFont(font)
|
|
67
|
+
self.label_4.setObjectName(_fromUtf8("label_4"))
|
|
68
|
+
self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
|
|
69
|
+
self.comboBox = QtGui.QComboBox(self.formLayoutWidget)
|
|
70
|
+
self.comboBox.setObjectName(_fromUtf8("comboBox"))
|
|
71
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
72
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
73
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
74
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
75
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
76
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
77
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
78
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
79
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
80
|
+
self.comboBox.addItem(_fromUtf8(""))
|
|
81
|
+
self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.comboBox)
|
|
82
|
+
|
|
83
|
+
self.retranslateUi(Dialog)
|
|
84
|
+
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept)
|
|
85
|
+
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject)
|
|
86
|
+
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
|
87
|
+
|
|
88
|
+
def retranslateUi(self, Dialog):
|
|
89
|
+
Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "New Project", None, QtGui.QApplication.UnicodeUTF8))
|
|
90
|
+
self.label.setText(QtGui.QApplication.translate("Dialog", "New Project Name:", None, QtGui.QApplication.UnicodeUTF8))
|
|
91
|
+
self.label_2.setText(QtGui.QApplication.translate("Dialog", "Project Location:", None, QtGui.QApplication.UnicodeUTF8))
|
|
92
|
+
self.label_3.setText(QtGui.QApplication.translate("Dialog", "Project Description:", None, QtGui.QApplication.UnicodeUTF8))
|
|
93
|
+
self.label_4.setText(QtGui.QApplication.translate("Dialog", "Project License:", None, QtGui.QApplication.UnicodeUTF8))
|
|
94
|
+
self.comboBox.setItemText(0, QtGui.QApplication.translate("Dialog", "Apache License 2.0", None, QtGui.QApplication.UnicodeUTF8))
|
|
95
|
+
self.comboBox.setItemText(1, QtGui.QApplication.translate("Dialog", "Artistic License/GPL", None, QtGui.QApplication.UnicodeUTF8))
|
|
96
|
+
self.comboBox.setItemText(2, QtGui.QApplication.translate("Dialog", "Eclipse Plugin License 1.0", None, QtGui.QApplication.UnicodeUTF8))
|
|
97
|
+
self.comboBox.setItemText(3, QtGui.QApplication.translate("Dialog", "GNU General Public License v2", None, QtGui.QApplication.UnicodeUTF8))
|
|
98
|
+
self.comboBox.setItemText(4, QtGui.QApplication.translate("Dialog", "GNU General Public License v3", None, QtGui.QApplication.UnicodeUTF8))
|
|
99
|
+
self.comboBox.setItemText(5, QtGui.QApplication.translate("Dialog", "GNU Lesser General Public License", None, QtGui.QApplication.UnicodeUTF8))
|
|
100
|
+
self.comboBox.setItemText(6, QtGui.QApplication.translate("Dialog", "MIT License", None, QtGui.QApplication.UnicodeUTF8))
|
|
101
|
+
self.comboBox.setItemText(7, QtGui.QApplication.translate("Dialog", "Mozilla Public License 1.1", None, QtGui.QApplication.UnicodeUTF8))
|
|
102
|
+
self.comboBox.setItemText(8, QtGui.QApplication.translate("Dialog", "New BSD License", None, QtGui.QApplication.UnicodeUTF8))
|
|
103
|
+
self.comboBox.setItemText(9, QtGui.QApplication.translate("Dialog", "Other", None, QtGui.QApplication.UnicodeUTF8))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
if __name__ == "__main__":
|
|
107
|
+
import sys
|
|
108
|
+
app = QtGui.QApplication(sys.argv)
|
|
109
|
+
Dialog = QtGui.QDialog()
|
|
110
|
+
ui = Ui_Dialog()
|
|
111
|
+
ui.setupUi(Dialog)
|
|
112
|
+
Dialog.show()
|
|
113
|
+
sys.exit(app.exec_())
|
|
114
|
+
|
Lib/__init__.py
ADDED
|
File without changes
|
Lib/libsqstdlib.a
ADDED
|
Binary file
|
Lib/libsquirrel.a
ADDED
|
Binary file
|
Widget/emo.api
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
emo.Runtime?0(use = runtime)
|
|
2
|
+
runtime.import?1(filename)
|
|
3
|
+
emo.Runtime.import?1(filename)
|
|
4
|
+
runtime.log?1(LOG_INFO,msg)
|
|
5
|
+
runtime.info?1(msg)
|
|
6
|
+
runtime.error?1(msg)
|
|
7
|
+
runtime.warn?1(msg)
|
|
8
|
+
runtime.setLogLevel?1(LOG_WARN);
|
|
9
|
+
runtime.setOptions?1(OPT_ORIENTATION_PORTRAIT)
|
|
10
|
+
OPT_ORIENTATION_PORTRAIT?2
|
|
11
|
+
OPT_ORIENTATION_LANDSCAPE?2
|
|
12
|
+
OPT_ORIENTATION_LANDSCAPE_LEFT?2 (*iOS Only*)
|
|
13
|
+
OPT_ORIENTATION_LANDSCAPE_RIGHT?2 (*iOS Only*)
|
|
14
|
+
runtime.os?1()
|
|
15
|
+
OS_ANDROID?2
|
|
16
|
+
OS_IOS?2
|
|
17
|
+
runtime.device?1()
|
|
18
|
+
runtime.isSimulator?1()
|
|
19
|
+
runtime.finish(?1Finshes activity *android)
|
|
20
|
+
emo.Runtime.clearTextureCache?1()
|
|
21
|
+
emo.Runtime.compilebuffer?1(script)
|
|
22
|
+
emo.Runtime.compile?1(script, TYPE_ASSET)
|
|
23
|
+
emo.Runtime.compile?1script, TYPE_DOCUMENT)
|
|
24
|
+
emo.Runtime.compile?1(script)
|
|
25
|
+
emo.Runtime.getDocumentDir?1()
|
|
26
|
+
emo.Runtime.enableSimpleLog?1(enable = true *iOS)
|
|
27
|
+
emo.Runtime.enableSimpleLogWithLevel?1(enable = true);
|
|
28
|
+
emo.Runtime.random?1()
|
|
29
|
+
emo.Runtime.random?1(max)
|
|
30
|
+
emo.Runtime.getDefaultLocale?1()
|
|
31
|
+
emo.Runtime().uptime?1()
|
|
32
|
+
emo.Stage?0(use = stage)
|
|
33
|
+
stage.load?1()
|
|
34
|
+
stage.load?1(nextScene, currentSceneModifier, nextSceneModifier, immediate)
|
|
35
|
+
stage.getWindowWidth?1()
|
|
36
|
+
stage.windowWidth?1(value)
|
|
37
|
+
stage.getWindowHeight?1()
|
|
38
|
+
stage.windowHeight?1(value)
|
|
39
|
+
stage.viewport?1(width, height)
|
|
40
|
+
stage.ortho?1(width, height)
|
|
41
|
+
stage.interval?1(100)
|
|
42
|
+
stage.getCenterX?1()
|
|
43
|
+
stage.getCenterY?1()
|
|
44
|
+
stage.setContentScale?1()
|
|
45
|
+
emo.Sprite?0(imageFile)
|
|
46
|
+
sprite.load?1()
|
|
47
|
+
sprite.hide?1()
|
|
48
|
+
sprite.show?1()
|
|
49
|
+
sprite.alpha?1(value)
|
|
50
|
+
sprite.red?1(1)
|
|
51
|
+
sprite.green?1(1)
|
|
52
|
+
sprite.blue?1(1)
|
|
53
|
+
sprite.color?1(0, 0, 0, 1)
|
|
54
|
+
sprite.red?1()
|
|
55
|
+
sprite.green?1()
|
|
56
|
+
sprite.blue?1()
|
|
57
|
+
sprite.isLoaded?1()
|
|
58
|
+
sprite.move?1(x,y)
|
|
59
|
+
sprite.getX?1()
|
|
60
|
+
sprite.getY?1()
|
|
61
|
+
sprite.getZ?1()
|
|
62
|
+
sprite.setZ?1()
|
|
63
|
+
sprite.getWidth?1()
|
|
64
|
+
sprite.getHeight?1()
|
|
65
|
+
sprite.setWidth?1(width)
|
|
66
|
+
sprite.setHeight?1(height)
|
|
67
|
+
sprite.setSize?1(width,height)
|
|
68
|
+
sprite.scale?1(scaleX, scaleY)
|
|
69
|
+
sprite.scale?1(scaleX, scaleY, centerX, centerY)
|
|
70
|
+
sprite.getScale?1()
|
|
71
|
+
sprite.getScaleX?1()
|
|
72
|
+
sprite.getScaleY?1()
|
|
73
|
+
sprite.rotate?1(angle)
|
|
74
|
+
sprite.rotate?1(angle, centerX, centerY)
|
|
75
|
+
sprite.getAngle?1()
|
|
76
|
+
sprite.remove?1()
|
|
77
|
+
sprite.contains?1(x,y)
|
|
78
|
+
sprite.collidesWith?1(otherSprite)
|
|
79
|
+
sprite.getName?1()
|
|
80
|
+
sprite.addModifier?1(modifier(from, to, duration, equation, repeatCount=0, startTime = null))
|
|
81
|
+
emo.Rectangle?0(use = rectangle)
|
|
82
|
+
rectangle.load?1()
|
|
83
|
+
rectangle.setSize?1()
|
|
84
|
+
emo.Line?0()
|
|
85
|
+
line.setWidth?1(value)
|
|
86
|
+
line.move?1(startX, startY, endX, endY);
|
|
87
|
+
line.load?1()
|
|
88
|
+
emo.TextSprite?0(name,textbase,width,height,border = null,margin = null)
|
|
89
|
+
text.setText?1()
|
|
90
|
+
emo.FontSprite?0(name,fontsize = null,fontface = null,isBold = false,isItalic = false)
|
|
91
|
+
text.setParam?1()
|
|
92
|
+
text.reload?1()
|
|
93
|
+
text.reload?1(name)
|
|
94
|
+
emo.SpriteSheet?0(name, width, height, border = 0, margin=0, frameIndex=0) use = spritesheet
|
|
95
|
+
emo.SpriteSheet?0(xml_formatted_texture_atlas_data)
|
|
96
|
+
spritesheet.setFrame?1(1)
|
|
97
|
+
spritesheet.selectFrame?1()
|
|
98
|
+
spritesheet.animate?1(startFrame, frameCount, interval, loopCount = 0)
|
|
99
|
+
spritesheet.animate?1(frame indices, null, interval, loopCount = 0)
|
|
100
|
+
spritesheet.pause?1()
|
|
101
|
+
spritesheet.pauseAt?1(frame)
|
|
102
|
+
spritesheet.stop?1()
|
|
103
|
+
spritesheet.load?1()
|
|
104
|
+
spritesheet.load?1(x, y, frameIndex)
|
|
105
|
+
spritesheet.getFrameIndex?1()
|
|
106
|
+
spritesheet.getFrameCount?1()
|
|
107
|
+
spritesheet.isAnimationFinished?1()
|
|
108
|
+
emo.MapSprite?0(name, frameWidth, frameHeight, border = 0, margin = 0)
|
|
109
|
+
mapsprite.setTile?1(tiles)
|
|
110
|
+
mapsprite.clearTiles?1()
|
|
111
|
+
mapsprite.addRow?1(tile)
|
|
112
|
+
mapsprite.setTileAt?1(row, column, value)
|
|
113
|
+
mapsprite.getTileAt?1(row, column)
|
|
114
|
+
mapsprite.getTileIndexAtCoord?1(x, y)
|
|
115
|
+
mapsprite.getTilePositionAtCoord?1(x, y)
|
|
116
|
+
mapsprite.load?1()
|
|
117
|
+
mapsprite.load?1(x, y)
|
|
118
|
+
emo.AnalogOnScreenController?0(base_name ='controller_base.png', knob_name='controller_knob.png', alpha=0.5) use=controller
|
|
119
|
+
emo.DigitalOnScreenController?0(base_name ='controller_base.png', knob_name='controller_knob.png', alpha=0.5) use=controller
|
|
120
|
+
controller.updateInterval = 16
|
|
121
|
+
onControlEvent?1(controller, controlX, controlY, hasChanged)
|
|
122
|
+
emo.AlphaModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
123
|
+
emo.ScaleModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
124
|
+
emo.RotateModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
125
|
+
emo.MoveModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
126
|
+
emo.MoveCenterModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
127
|
+
emo.ColorModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
128
|
+
emo.easing?0
|
|
129
|
+
emo.easing.Linear?2
|
|
130
|
+
emo.easing.CubicIn?2
|
|
131
|
+
emo.easing.CubicOut?2
|
|
132
|
+
emo.easing.CubicInOut?2
|
|
133
|
+
emo.easing.BackIn?2
|
|
134
|
+
emo.easing.BackOut?2
|
|
135
|
+
emo.easing.BackInOut?2
|
|
136
|
+
emo.easing.ElasticIn?2
|
|
137
|
+
emo.easing.ElasticOut?2
|
|
138
|
+
emo.easing.ElasticInOut?2
|
|
139
|
+
emo.easing.BounceOut?2
|
|
140
|
+
emo.easing.BounceIn?2
|
|
141
|
+
emo.easing.BounceInOut?2
|
|
142
|
+
emo.easing.ExpoIn?2
|
|
143
|
+
emo.easing.ExpoOut?2
|
|
144
|
+
emo.easing.ExpoInOut?2
|
|
145
|
+
emo.easing.QuadIn?2
|
|
146
|
+
emo.easing.QuadOut?2
|
|
147
|
+
emo.easing.QuadInOut?2
|
|
148
|
+
emo.easing.SineIn?2
|
|
149
|
+
emo.easing.SineOut?2
|
|
150
|
+
emo.easing.SineInOut?2
|
|
151
|
+
emo.easing.CircIn?2
|
|
152
|
+
emo.easing.CircOut?2
|
|
153
|
+
emo.easing.CircInOut?2
|
|
154
|
+
emo.easing.QuintIn?2
|
|
155
|
+
emo.easing.QuintOut?2
|
|
156
|
+
emo.easing.QuintInOut?2
|
|
157
|
+
emo.easing.QuartIn?2
|
|
158
|
+
emo.easing.QuartOut?2
|
|
159
|
+
emo.easing.QuartInOut?2
|
|
160
|
+
emo.Audio?0(channelCount)
|
|
161
|
+
audio.createChannel?1(channelIndex) use=ch0
|
|
162
|
+
emo.Audio?0.vibrate?1(vibration requires android.permission.VIBRATE permission)
|
|
163
|
+
emo.Database?0(use = database)
|
|
164
|
+
database.getPath?1(DEFAULT_DATABASE_NAME)
|
|
165
|
+
database.getLastError?1()
|
|
166
|
+
database.getLastErrorMessage?1()
|
|
167
|
+
database.deleteDatabase?1(DEFAULT_DATABASE_NAME)
|
|
168
|
+
emo.Preference?0(use = preference)
|
|
169
|
+
preference.openOrCreate?1() == EMO_NO_ERROR
|
|
170
|
+
preference.open?1() == EMO_NO_ERROR
|
|
171
|
+
preference.set?1(key, value)
|
|
172
|
+
preference.get?1(key)
|
|
173
|
+
preference.keys?1()
|
|
174
|
+
preference.del?1(key)
|
|
175
|
+
preference.close?1()
|
|
176
|
+
onMotionEvent?1(mevent)
|
|
177
|
+
mevent.getAction?1() = MOTION_EVENT_ACTION_DOWN
|
|
178
|
+
mevent.getPointerId?1(Android Only)
|
|
179
|
+
mevent.getX?1()
|
|
180
|
+
mevent.getY?1()
|
|
181
|
+
MOTION_EVENT_ACTION_DOWN?2
|
|
182
|
+
MOTION_EVENT_ACTION_UP?2
|
|
183
|
+
MOTION_EVENT_ACTION_MOVE?2
|
|
184
|
+
MOTION_EVENT_ACTION_CANCEL?2
|
|
185
|
+
MOTION_EVENT_ACTION_OUTSIDE?2
|
|
186
|
+
MOTION_EVENT_ACTION_POINTER_DOWN?2
|
|
187
|
+
MOTION_EVENT_ACTION_POINTER_UP?2
|
|
188
|
+
onKeyEvent?1(kevent)
|
|
189
|
+
kevent.getAction(?1) = KEY_EVENT_ACTION_DOWN
|
|
190
|
+
kevent.getKeyCode?1()
|
|
191
|
+
kevent.getRepeatCount?1()
|
|
192
|
+
kevent.MetaState?1()
|
|
193
|
+
KEY_EVENT_ACTION_DOWN
|
|
194
|
+
emo.Event?0(use = event)
|
|
195
|
+
event.registerSensors?1(SENSOR_TYPE_ACCELEROMETER) onLoad
|
|
196
|
+
event.enableSensor?1(SENSOR_TYPE_ACCELEROMETER, 100) onGainedFocus
|
|
197
|
+
event.disableSensor?1(SENSOR_TYPE_ACCELEROMETER) onLostFocus
|
|
198
|
+
onSensorEvent?1(sevent)
|
|
199
|
+
SENSOR_TYPE_ACCELEROMETER?2
|
|
200
|
+
sevent.getType?1() == SENSOR_TYPE_ACCELEROMETER
|
|
201
|
+
sevent.getAccelerationX?1()
|
|
202
|
+
sevent.getAccelerationY?1()
|
|
203
|
+
sevent.getAccelerationZ?1()
|
|
204
|
+
event.enableOnDrawCallback?1(5000)
|
|
205
|
+
onDrawFrame?1(dt)
|
|
206
|
+
event.disableOnDrawCallback?1()
|
|
207
|
+
onLowMemory?1()
|
|
208
|
+
onError?1(message)
|
|
209
|
+
emo.Net.request?1(MY_REQUEST_NAME, 'http://www.example.com/')
|
|
210
|
+
emo.Net.request?1(MY_REQUEST_NAME_BY_GET, 'http://www.example.com/', 'GET'', 1000)
|
|
211
|
+
emo.Net.request?1(MY_REQUEST_NAME_BY_POST, 'http://www.example.com/','POST', 1000, 'key1', 'value1', 'key2', 'value2')
|
|
212
|
+
onNetCallback?1(name, response, err)
|
build/exe.win32-2.7/PyQt4.Qsci.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/PyQt4.QtCore.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/PyQt4.QtGui.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/QtCore4.dll
ADDED
|
Binary file
|
build/exe.win32-2.7/QtGui4.dll
ADDED
|
Binary file
|
build/exe.win32-2.7/Sabel.exe
ADDED
|
Binary file
|
build/exe.win32-2.7/Sabel.zip
ADDED
|
Binary file
|
build/exe.win32-2.7/_ctypes.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/_hashlib.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/_socket.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/_ssl.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/bz2.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/config.yaml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
ADB:
|
|
2
|
+
- adb -d push C:/CODE/main.nut /sdcard/
|
|
3
|
+
- adb -d shell am start -a android.intent.action.MAIN -n com.emo_framework.examples/com.emo_framework.EmoActivity
|
|
4
|
+
- adb -d logcat -s EmoFramework
|
|
5
|
+
- adb -d shell ps | grep com.emo_framework.examples | awk '{print $2}' | xargs adb shell kill
|
|
6
|
+
File:
|
|
7
|
+
- C:/CODE/assets/main.nut
|
|
8
|
+
- C:/CODE/Sabel/ui_simple.py
|
|
9
|
+
- C:/CODE/Sabel/main.py
|
|
10
|
+
Project:
|
|
11
|
+
- C:/CODE/assets/
|
|
12
|
+
Recent:
|
|
13
|
+
- C:\CODE\IDE\main.nut
|
|
14
|
+
Setting:
|
|
15
|
+
fontname: Courier
|
|
16
|
+
fontsize: 10
|
|
17
|
+
iconsize: 16
|
|
18
|
+
workspace: C:/CODE/
|
build/exe.win32-2.7/imageformats/qgif4.dll
ADDED
|
Binary file
|
build/exe.win32-2.7/library.zip
ADDED
|
Binary file
|
build/exe.win32-2.7/pyexpat.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/python27.dll
ADDED
|
Binary file
|
build/exe.win32-2.7/pywintypes27.dll
ADDED
|
Binary file
|
build/exe.win32-2.7/qscintilla2.dll
ADDED
|
Binary file
|
build/exe.win32-2.7/select.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/sip.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/unicodedata.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/win32api.pyd
ADDED
|
Binary file
|
build/exe.win32-2.7/win32pipe.pyd
ADDED
|
Binary file
|
config.py
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import yaml
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
class Config:
|
|
5
|
+
def __init__(self):
|
|
6
|
+
self.configfile = 'config.yaml'
|
|
7
|
+
self.data = yaml.load(open(self.configfile).read())
|
|
8
|
+
|
|
9
|
+
def read(self,section):
|
|
10
|
+
return self.data[section]
|
|
11
|
+
|
|
12
|
+
def readSetting(self,section):
|
|
13
|
+
return self.data["Setting"][section]
|
|
14
|
+
|
|
15
|
+
def workSpace(self):
|
|
16
|
+
return self.readSetting("workspace")
|
|
17
|
+
def fontSize(self):
|
|
18
|
+
return int(self.readSetting('fontsize'))
|
|
19
|
+
def fontName(self):
|
|
20
|
+
return self.readSetting('fontname')
|
|
21
|
+
def iconSize(self):
|
|
22
|
+
return int(self.readSetting('iconsize'))
|
|
23
|
+
|
|
24
|
+
def projects(self):
|
|
25
|
+
return self.read('Project')
|
|
26
|
+
|
|
27
|
+
def recent(self):
|
|
28
|
+
return self.read('Recent')
|
|
29
|
+
|
|
30
|
+
def files(self):
|
|
31
|
+
return self.read('File')
|
|
32
|
+
|
|
33
|
+
def adb(self):
|
|
34
|
+
return self.read('ADB')
|
|
35
|
+
|
|
36
|
+
def check(self,data,nfile):
|
|
37
|
+
#Python store reference to list so this points back to data
|
|
38
|
+
#so awesome and weird
|
|
39
|
+
#Must implement to add data not to rewrite data sad
|
|
40
|
+
for i in data:
|
|
41
|
+
if(i == nfile):
|
|
42
|
+
return False
|
|
43
|
+
return True
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def addFile(self,nfile):
|
|
47
|
+
files = self.files()
|
|
48
|
+
if(self.check(files,nfile)):
|
|
49
|
+
if(os.path.exists(nfile)):
|
|
50
|
+
files.append(nfile)
|
|
51
|
+
try:
|
|
52
|
+
yaml.dump(self.data,open(self.configfile,'w'),default_flow_style=False)
|
|
53
|
+
except:
|
|
54
|
+
print "cannot open config file"
|
|
55
|
+
else:
|
|
56
|
+
print "File Does not Exist"
|
|
57
|
+
else:
|
|
58
|
+
#print "File is Already Saved" #need to fix this
|
|
59
|
+
pass
|
|
60
|
+
|
|
61
|
+
def removeFile(self,nfile):
|
|
62
|
+
files = self.files()
|
|
63
|
+
if not (self.check(files,nfile)):
|
|
64
|
+
files.remove(nfile)
|
|
65
|
+
try:
|
|
66
|
+
yaml.dump(self.data,open(self.configfile,'w'),default_flow_style=False)
|
|
67
|
+
except:
|
|
68
|
+
print "cannot open config file"
|
|
69
|
+
|
|
70
|
+
def addProject(self,nfile):
|
|
71
|
+
pros = self.projects()
|
|
72
|
+
if(self.check(pros,nfile)):
|
|
73
|
+
if(os.path.exists(nfile)):
|
|
74
|
+
pros.append(nfile)
|
|
75
|
+
try:
|
|
76
|
+
yaml.dump(self.data,open(self.configfile,'w'),default_flow_style=False)
|
|
77
|
+
except:
|
|
78
|
+
print "cannot open config file"
|
|
79
|
+
else:
|
|
80
|
+
"Folder Does not exist"
|
|
81
|
+
else:
|
|
82
|
+
pass
|
|
83
|
+
|
|
84
|
+
def removeProject(self,nfile):
|
|
85
|
+
pros = self.projects()
|
|
86
|
+
if(self.check(pros,nfile)):
|
|
87
|
+
pros.remove(nfile)
|
|
88
|
+
try:
|
|
89
|
+
yaml.dump(self.data,open(self.configfile,'w'),default_flow_style=False)
|
|
90
|
+
except:
|
|
91
|
+
print "cannot open config file"
|
cx.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from cx_Freeze import setup, Executable
|
|
2
|
+
#includes = ["atexit","yaml","platform", "PyQt4.QtCore","PyQt4.QtGui","PyQt4.Qsci","PyQt4.Qsci","PyQt4.QtWebKit","PyQt4.QtNetwork"]
|
|
3
|
+
#excludes = ['curses', 'email', 'tcl','tk','Tkinter','Tkconstants','pywin.debugger']
|
|
4
|
+
"""
|
|
5
|
+
excludes = ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger',
|
|
6
|
+
'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
|
|
7
|
+
'Tkconstants', 'Tkinter']
|
|
8
|
+
"""
|
|
9
|
+
packages = []
|
|
10
|
+
path = []
|
|
11
|
+
exe = Executable(
|
|
12
|
+
script="C:\CODE\Sabel\main.py",
|
|
13
|
+
base="Win32GUI",
|
|
14
|
+
targetName = "Sabel.exe",
|
|
15
|
+
initScript = None,
|
|
16
|
+
compress = True,
|
|
17
|
+
copyDependentFiles = True,
|
|
18
|
+
appendScriptToExe = False,
|
|
19
|
+
appendScriptToLibrary = False,
|
|
20
|
+
icon = None
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
setup(
|
|
24
|
+
name = "Sabel",
|
|
25
|
+
version = "0.4",
|
|
26
|
+
description = "Sabel IDE",
|
|
27
|
+
executables = [exe]
|
|
28
|
+
)
|
emo.api
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
emo.Runtime?0(use = runtime)
|
|
2
|
+
runtime.import?1(filename)
|
|
3
|
+
emo.Runtime.import?1(filename)
|
|
4
|
+
runtime.log?1(LOG_INFO,msg)
|
|
5
|
+
runtime.info?1(msg)
|
|
6
|
+
runtime.error?1(msg)
|
|
7
|
+
runtime.warn?1(msg)
|
|
8
|
+
runtime.setLogLevel?1(LOG_WARN);
|
|
9
|
+
runtime.setOptions?1(OPT_ORIENTATION_PORTRAIT)
|
|
10
|
+
OPT_ORIENTATION_PORTRAIT?2
|
|
11
|
+
OPT_ORIENTATION_LANDSCAPE?2
|
|
12
|
+
OPT_ORIENTATION_LANDSCAPE_LEFT?2 (*iOS Only*)
|
|
13
|
+
OPT_ORIENTATION_LANDSCAPE_RIGHT?2 (*iOS Only*)
|
|
14
|
+
runtime.os?1()
|
|
15
|
+
OS_ANDROID?2
|
|
16
|
+
OS_IOS?2
|
|
17
|
+
runtime.device?1()
|
|
18
|
+
runtime.isSimulator?1()
|
|
19
|
+
runtime.finish(?1Finshes activity *android)
|
|
20
|
+
emo.Runtime.clearTextureCache?1()
|
|
21
|
+
emo.Runtime.compilebuffer?1(script)
|
|
22
|
+
emo.Runtime.compile?1(script, TYPE_ASSET)
|
|
23
|
+
emo.Runtime.compile?1script, TYPE_DOCUMENT)
|
|
24
|
+
emo.Runtime.compile?1(script)
|
|
25
|
+
emo.Runtime.getDocumentDir?1()
|
|
26
|
+
emo.Runtime.enableSimpleLog?1(enable = true *iOS)
|
|
27
|
+
emo.Runtime.enableSimpleLogWithLevel?1(enable = true);
|
|
28
|
+
emo.Runtime.random?1()
|
|
29
|
+
emo.Runtime.random?1(max)
|
|
30
|
+
emo.Runtime.getDefaultLocale?1()
|
|
31
|
+
emo.Runtime().uptime?1()
|
|
32
|
+
emo.Stage?0(use = stage)
|
|
33
|
+
stage.load?1()
|
|
34
|
+
stage.load?1(nextScene, currentSceneModifier, nextSceneModifier, immediate)
|
|
35
|
+
stage.getWindowWidth?1()
|
|
36
|
+
stage.windowWidth?1(value)
|
|
37
|
+
stage.getWindowHeight?1()
|
|
38
|
+
stage.windowHeight?1(value)
|
|
39
|
+
stage.viewport?1(width, height)
|
|
40
|
+
stage.ortho?1(width, height)
|
|
41
|
+
stage.interval?1(100)
|
|
42
|
+
stage.getCenterX?1()
|
|
43
|
+
stage.getCenterY?1()
|
|
44
|
+
stage.setContentScale?1()
|
|
45
|
+
emo.Sprite?0(imageFile)
|
|
46
|
+
sprite.load?1()
|
|
47
|
+
sprite.hide?1()
|
|
48
|
+
sprite.show?1()
|
|
49
|
+
sprite.alpha?1(value)
|
|
50
|
+
sprite.red?1(1)
|
|
51
|
+
sprite.green?1(1)
|
|
52
|
+
sprite.blue?1(1)
|
|
53
|
+
sprite.color?1(0, 0, 0, 1)
|
|
54
|
+
sprite.red?1()
|
|
55
|
+
sprite.green?1()
|
|
56
|
+
sprite.blue?1()
|
|
57
|
+
sprite.isLoaded?1()
|
|
58
|
+
sprite.move?1(x,y)
|
|
59
|
+
sprite.getX?1()
|
|
60
|
+
sprite.getY?1()
|
|
61
|
+
sprite.getZ?1()
|
|
62
|
+
sprite.setZ?1()
|
|
63
|
+
sprite.getWidth?1()
|
|
64
|
+
sprite.getHeight?1()
|
|
65
|
+
sprite.setWidth?1(width)
|
|
66
|
+
sprite.setHeight?1(height)
|
|
67
|
+
sprite.setSize?1(width,height)
|
|
68
|
+
sprite.scale?1(scaleX, scaleY)
|
|
69
|
+
sprite.scale?1(scaleX, scaleY, centerX, centerY)
|
|
70
|
+
sprite.getScale?1()
|
|
71
|
+
sprite.getScaleX?1()
|
|
72
|
+
sprite.getScaleY?1()
|
|
73
|
+
sprite.rotate?1(angle)
|
|
74
|
+
sprite.rotate?1(angle, centerX, centerY)
|
|
75
|
+
sprite.getAngle?1()
|
|
76
|
+
sprite.remove?1()
|
|
77
|
+
sprite.contains?1(x,y)
|
|
78
|
+
sprite.collidesWith?1(otherSprite)
|
|
79
|
+
sprite.getName?1()
|
|
80
|
+
sprite.addModifier?1(modifier(from, to, duration, equation, repeatCount=0, startTime = null))
|
|
81
|
+
emo.Rectangle?0(use = rectangle)
|
|
82
|
+
rectangle.load?1()
|
|
83
|
+
rectangle.setSize?1()
|
|
84
|
+
emo.Line?0()
|
|
85
|
+
line.setWidth?1(value)
|
|
86
|
+
line.move?1(startX, startY, endX, endY);
|
|
87
|
+
line.load?1()
|
|
88
|
+
emo.TextSprite?0(name,textbase,width,height,border = null,margin = null)
|
|
89
|
+
text.setText?1()
|
|
90
|
+
emo.FontSprite?0(name,fontsize = null,fontface = null,isBold = false,isItalic = false)
|
|
91
|
+
text.setParam?1()
|
|
92
|
+
text.reload?1()
|
|
93
|
+
text.reload?1(name)
|
|
94
|
+
emo.SpriteSheet?0(name, width, height, border = 0, margin=0, frameIndex=0) use = spritesheet
|
|
95
|
+
emo.SpriteSheet?0(xml_formatted_texture_atlas_data)
|
|
96
|
+
spritesheet.setFrame?1(1)
|
|
97
|
+
spritesheet.selectFrame?1()
|
|
98
|
+
spritesheet.animate?1(startFrame, frameCount, interval, loopCount = 0)
|
|
99
|
+
spritesheet.animate?1(frame indices, null, interval, loopCount = 0)
|
|
100
|
+
spritesheet.pause?1()
|
|
101
|
+
spritesheet.pauseAt?1(frame)
|
|
102
|
+
spritesheet.stop?1()
|
|
103
|
+
spritesheet.load?1()
|
|
104
|
+
spritesheet.load?1(x, y, frameIndex)
|
|
105
|
+
spritesheet.getFrameIndex?1()
|
|
106
|
+
spritesheet.getFrameCount?1()
|
|
107
|
+
spritesheet.isAnimationFinished?1()
|
|
108
|
+
emo.MapSprite?0(name, frameWidth, frameHeight, border = 0, margin = 0)
|
|
109
|
+
mapsprite.setTile?1(tiles)
|
|
110
|
+
mapsprite.clearTiles?1()
|
|
111
|
+
mapsprite.addRow?1(tile)
|
|
112
|
+
mapsprite.setTileAt?1(row, column, value)
|
|
113
|
+
mapsprite.getTileAt?1(row, column)
|
|
114
|
+
mapsprite.getTileIndexAtCoord?1(x, y)
|
|
115
|
+
mapsprite.getTilePositionAtCoord?1(x, y)
|
|
116
|
+
mapsprite.load?1()
|
|
117
|
+
mapsprite.load?1(x, y)
|
|
118
|
+
emo.AnalogOnScreenController?0(base_name ='controller_base.png', knob_name='controller_knob.png', alpha=0.5) use=controller
|
|
119
|
+
emo.DigitalOnScreenController?0(base_name ='controller_base.png', knob_name='controller_knob.png', alpha=0.5) use=controller
|
|
120
|
+
controller.updateInterval = 16
|
|
121
|
+
onControlEvent?1(controller, controlX, controlY, hasChanged)
|
|
122
|
+
emo.AlphaModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
123
|
+
emo.ScaleModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
124
|
+
emo.RotateModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
125
|
+
emo.MoveModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
126
|
+
emo.MoveCenterModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
127
|
+
emo.ColorModifier?0(from, to, duration, equation, repeatCount=0, startTime = null)
|
|
128
|
+
emo.easing?0
|
|
129
|
+
emo.easing.Linear?2
|
|
130
|
+
emo.easing.CubicIn?2
|
|
131
|
+
emo.easing.CubicOut?2
|
|
132
|
+
emo.easing.CubicInOut?2
|
|
133
|
+
emo.easing.BackIn?2
|
|
134
|
+
emo.easing.BackOut?2
|
|
135
|
+
emo.easing.BackInOut?2
|
|
136
|
+
emo.easing.ElasticIn?2
|
|
137
|
+
emo.easing.ElasticOut?2
|
|
138
|
+
emo.easing.ElasticInOut?2
|
|
139
|
+
emo.easing.BounceOut?2
|
|
140
|
+
emo.easing.BounceIn?2
|
|
141
|
+
emo.easing.BounceInOut?2
|
|
142
|
+
emo.easing.ExpoIn?2
|
|
143
|
+
emo.easing.ExpoOut?2
|
|
144
|
+
emo.easing.ExpoInOut?2
|
|
145
|
+
emo.easing.QuadIn?2
|
|
146
|
+
emo.easing.QuadOut?2
|
|
147
|
+
emo.easing.QuadInOut?2
|
|
148
|
+
emo.easing.SineIn?2
|
|
149
|
+
emo.easing.SineOut?2
|
|
150
|
+
emo.easing.SineInOut?2
|
|
151
|
+
emo.easing.CircIn?2
|
|
152
|
+
emo.easing.CircOut?2
|
|
153
|
+
emo.easing.CircInOut?2
|
|
154
|
+
emo.easing.QuintIn?2
|
|
155
|
+
emo.easing.QuintOut?2
|
|
156
|
+
emo.easing.QuintInOut?2
|
|
157
|
+
emo.easing.QuartIn?2
|
|
158
|
+
emo.easing.QuartOut?2
|
|
159
|
+
emo.easing.QuartInOut?2
|
|
160
|
+
emo.Audio?0(channelCount)
|
|
161
|
+
audio.createChannel?1(channelIndex) use=ch0
|
|
162
|
+
emo.Audio?0.vibrate?1(vibration requires android.permission.VIBRATE permission)
|
|
163
|
+
emo.Database?0(use = database)
|
|
164
|
+
database.getPath?1(DEFAULT_DATABASE_NAME)
|
|
165
|
+
database.getLastError?1()
|
|
166
|
+
database.getLastErrorMessage?1()
|
|
167
|
+
database.deleteDatabase?1(DEFAULT_DATABASE_NAME)
|
|
168
|
+
emo.Preference?0(use = preference)
|
|
169
|
+
preference.openOrCreate?1() == EMO_NO_ERROR
|
|
170
|
+
preference.open?1() == EMO_NO_ERROR
|
|
171
|
+
preference.set?1(key, value)
|
|
172
|
+
preference.get?1(key)
|
|
173
|
+
preference.keys?1()
|
|
174
|
+
preference.del?1(key)
|
|
175
|
+
preference.close?1()
|
|
176
|
+
onMotionEvent?1(mevent)
|
|
177
|
+
mevent.getAction?1() = MOTION_EVENT_ACTION_DOWN
|
|
178
|
+
mevent.getPointerId?1(Android Only)
|
|
179
|
+
mevent.getX?1()
|
|
180
|
+
mevent.getY?1()
|
|
181
|
+
MOTION_EVENT_ACTION_DOWN?2
|
|
182
|
+
MOTION_EVENT_ACTION_UP?2
|
|
183
|
+
MOTION_EVENT_ACTION_MOVE?2
|
|
184
|
+
MOTION_EVENT_ACTION_CANCEL?2
|
|
185
|
+
MOTION_EVENT_ACTION_OUTSIDE?2
|
|
186
|
+
MOTION_EVENT_ACTION_POINTER_DOWN?2
|
|
187
|
+
MOTION_EVENT_ACTION_POINTER_UP?2
|
|
188
|
+
onKeyEvent?1(kevent)
|
|
189
|
+
kevent.getAction(?1) = KEY_EVENT_ACTION_DOWN
|
|
190
|
+
kevent.getKeyCode?1()
|
|
191
|
+
kevent.getRepeatCount?1()
|
|
192
|
+
kevent.MetaState?1()
|
|
193
|
+
KEY_EVENT_ACTION_DOWN
|
|
194
|
+
emo.Event?0(use = event)
|
|
195
|
+
event.registerSensors?1(SENSOR_TYPE_ACCELEROMETER) onLoad
|
|
196
|
+
event.enableSensor?1(SENSOR_TYPE_ACCELEROMETER, 100) onGainedFocus
|
|
197
|
+
event.disableSensor?1(SENSOR_TYPE_ACCELEROMETER) onLostFocus
|
|
198
|
+
onSensorEvent?1(sevent)
|
|
199
|
+
SENSOR_TYPE_ACCELEROMETER?2
|
|
200
|
+
sevent.getType?1() == SENSOR_TYPE_ACCELEROMETER
|
|
201
|
+
sevent.getAccelerationX?1()
|
|
202
|
+
sevent.getAccelerationY?1()
|
|
203
|
+
sevent.getAccelerationZ?1()
|
|
204
|
+
event.enableOnDrawCallback?1(5000)
|
|
205
|
+
onDrawFrame?1(dt)
|
|
206
|
+
event.disableOnDrawCallback?1()
|
|
207
|
+
onLowMemory?1()
|
|
208
|
+
onError?1(message)
|
|
209
|
+
emo.Net.request?1(MY_REQUEST_NAME, 'http://www.example.com/')
|
|
210
|
+
emo.Net.request?1(MY_REQUEST_NAME_BY_GET, 'http://www.example.com/', 'GET'', 1000)
|
|
211
|
+
emo.Net.request?1(MY_REQUEST_NAME_BY_POST, 'http://www.example.com/','POST', 1000, 'key1', 'value1', 'key2', 'value2')
|
|
212
|
+
onNetCallback?1(name, response, err)
|
globals.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from platform import system,python_version
|
|
3
|
+
from PyQt4.QtGui import QIcon
|
|
4
|
+
from send2trash import send2trash
|
|
5
|
+
|
|
6
|
+
#Python accesses local variables much more efficiently than global variables.
|
|
7
|
+
oslistdir = os.listdir
|
|
8
|
+
ospathisdir = os.path.isdir
|
|
9
|
+
ospathsep = os.path.sep
|
|
10
|
+
ospathjoin = os.path.join
|
|
11
|
+
ospathexists = os.path.exists
|
|
12
|
+
ospathbasename = os.path.basename
|
|
13
|
+
ospathdirname = os.path.dirname
|
|
14
|
+
osremove = os.remove
|
|
15
|
+
osrename = os.rename
|
|
16
|
+
workDir = os.getcwd()
|
|
17
|
+
recycle = send2trash
|
|
18
|
+
|
|
19
|
+
OS_NAME = system()
|
|
20
|
+
PY_VERSION = python_version()
|
|
21
|
+
|
|
22
|
+
def os_icon(name):
|
|
23
|
+
return QIcon(":/{0}.gif".format("Icons"+ospathsep+name))
|