##// END OF EJS Templates
Added lost SocExplorerPlot wrapper and win32 libelf binary.
Jeandet Alexis -
r7:1abdb58baffd default
parent child
Show More
1 NO CONTENT: new file 100644, binary diff hidden
@@ -1,35 +1,36
1 1 # use glob syntax.
2 2 syntax: glob
3 3
4 4 moc_*
5 5 Makefil*
6 6 qrc_*
7 7 *.qm
8 8 *.tex
9 9 *.html
10 10 *log*
11 11 *.dot
12 12 *.css
13 13 *.md5
14 14 *.eps
15 15 *.pdf
16 16 *.toc
17 17 *.map
18 18 *.sty
19 19 *.3
20 20 *.js
21 21 *.aux
22 22 *.idx
23 23 *.orig
24 24 *.o
25 25 *.dll
26 26 *.a
27 27 *.bin
28 28 *~
29 29 *.pro.user
30 30 src/PythonQt/tests/PythonQtTest
31 31 src/PythonQt/generator/pythonqt_generator
32 32 src/plugins/common/.preprocessed.tmp
33 33 *.exe
34 src/common/.preprocessed.tmp
34 35 syntax: regexp
35 36 bin/*
@@ -1,419 +1,519
1 1 #include "PySocExplorer0.h"
2 2 #include <PythonQtConversion.h>
3 3 #include <PythonQtMethodInfo.h>
4 4 #include <PythonQtSignalReceiver.h>
5 5 #include <QVariant>
6 6
7 7 MemSizeWdgt* PythonQtWrapper_MemSizeWdgt::new_MemSizeWdgt(QWidget* parent)
8 8 {
9 9 return new MemSizeWdgt(parent); }
10 10
11 11 MemSizeWdgt* PythonQtWrapper_MemSizeWdgt::new_MemSizeWdgt(int defaultSize, QWidget* parent)
12 12 {
13 13 return new MemSizeWdgt(defaultSize, parent); }
14 14
15 15 int PythonQtWrapper_MemSizeWdgt::getsize(MemSizeWdgt* theWrappedObject)
16 16 {
17 17 return ( theWrappedObject->getsize());
18 18 }
19 19
20 20 void PythonQtWrapper_MemSizeWdgt::setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max)
21 21 {
22 22 ( theWrappedObject->setMaximum(max));
23 23 }
24 24
25 25 void PythonQtWrapper_MemSizeWdgt::show(MemSizeWdgt* theWrappedObject)
26 26 {
27 27 ( theWrappedObject->show());
28 28 }
29 29
30 30 void PythonQtWrapper_MemSizeWdgt::updateSizeValue(MemSizeWdgt* theWrappedObject)
31 31 {
32 32 ( theWrappedObject->updateSizeValue());
33 33 }
34 34
35 35
36 36
37 37 PythonQtShell_QHexEdit::~PythonQtShell_QHexEdit() {
38 38 PythonQtPrivate* priv = PythonQt::priv();
39 39 if (priv) { priv->shellClassDeleted(this); }
40 40 }
41 41 QHexEdit* PythonQtWrapper_QHexEdit::new_QHexEdit(QWidget* parent)
42 42 {
43 43 return new PythonQtShell_QHexEdit(parent); }
44 44
45 45 QColor PythonQtWrapper_QHexEdit::addressAreaColor(QHexEdit* theWrappedObject)
46 46 {
47 47 return ( theWrappedObject->addressAreaColor());
48 48 }
49 49
50 50 int PythonQtWrapper_QHexEdit::addressOffset(QHexEdit* theWrappedObject)
51 51 {
52 52 return ( theWrappedObject->addressOffset());
53 53 }
54 54
55 55 int PythonQtWrapper_QHexEdit::cursorPosition(QHexEdit* theWrappedObject)
56 56 {
57 57 return ( theWrappedObject->cursorPosition());
58 58 }
59 59
60 60 QByteArray PythonQtWrapper_QHexEdit::data(QHexEdit* theWrappedObject)
61 61 {
62 62 return ( theWrappedObject->data());
63 63 }
64 64
65 65 const QFont* PythonQtWrapper_QHexEdit::font(QHexEdit* theWrappedObject) const
66 66 {
67 67 return &( theWrappedObject->font());
68 68 }
69 69
70 70 QColor PythonQtWrapper_QHexEdit::highlightingColor(QHexEdit* theWrappedObject)
71 71 {
72 72 return ( theWrappedObject->highlightingColor());
73 73 }
74 74
75 75 int PythonQtWrapper_QHexEdit::indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from) const
76 76 {
77 77 return ( theWrappedObject->indexOf(ba, from));
78 78 }
79 79
80 80 void PythonQtWrapper_QHexEdit::insert(QHexEdit* theWrappedObject, int i, char ch)
81 81 {
82 82 ( theWrappedObject->insert(i, ch));
83 83 }
84 84
85 85 void PythonQtWrapper_QHexEdit::insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba)
86 86 {
87 87 ( theWrappedObject->insert(i, ba));
88 88 }
89 89
90 90 bool PythonQtWrapper_QHexEdit::isReadOnly(QHexEdit* theWrappedObject)
91 91 {
92 92 return ( theWrappedObject->isReadOnly());
93 93 }
94 94
95 95 int PythonQtWrapper_QHexEdit::lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from) const
96 96 {
97 97 return ( theWrappedObject->lastIndexOf(ba, from));
98 98 }
99 99
100 100 bool PythonQtWrapper_QHexEdit::overwriteMode(QHexEdit* theWrappedObject)
101 101 {
102 102 return ( theWrappedObject->overwriteMode());
103 103 }
104 104
105 105 void PythonQtWrapper_QHexEdit::remove(QHexEdit* theWrappedObject, int pos, int len)
106 106 {
107 107 ( theWrappedObject->remove(pos, len));
108 108 }
109 109
110 110 void PythonQtWrapper_QHexEdit::replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after)
111 111 {
112 112 ( theWrappedObject->replace(pos, len, after));
113 113 }
114 114
115 115 QColor PythonQtWrapper_QHexEdit::selectionColor(QHexEdit* theWrappedObject)
116 116 {
117 117 return ( theWrappedObject->selectionColor());
118 118 }
119 119
120 120 QString PythonQtWrapper_QHexEdit::selectionToReadableString(QHexEdit* theWrappedObject)
121 121 {
122 122 return ( theWrappedObject->selectionToReadableString());
123 123 }
124 124
125 125 void PythonQtWrapper_QHexEdit::setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color)
126 126 {
127 127 ( theWrappedObject->setAddressAreaColor(color));
128 128 }
129 129
130 130 void PythonQtWrapper_QHexEdit::setAddressOffset(QHexEdit* theWrappedObject, int offset)
131 131 {
132 132 ( theWrappedObject->setAddressOffset(offset));
133 133 }
134 134
135 135 void PythonQtWrapper_QHexEdit::setCursorPosition(QHexEdit* theWrappedObject, int cusorPos)
136 136 {
137 137 ( theWrappedObject->setCursorPosition(cusorPos));
138 138 }
139 139
140 140 void PythonQtWrapper_QHexEdit::setData(QHexEdit* theWrappedObject, const QByteArray& data)
141 141 {
142 142 ( theWrappedObject->setData(data));
143 143 }
144 144
145 145 void PythonQtWrapper_QHexEdit::setFont(QHexEdit* theWrappedObject, const QFont& arg__1)
146 146 {
147 147 ( theWrappedObject->setFont(arg__1));
148 148 }
149 149
150 150 void PythonQtWrapper_QHexEdit::setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color)
151 151 {
152 152 ( theWrappedObject->setHighlightingColor(color));
153 153 }
154 154
155 155 void PythonQtWrapper_QHexEdit::setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1)
156 156 {
157 157 ( theWrappedObject->setOverwriteMode(arg__1));
158 158 }
159 159
160 160 void PythonQtWrapper_QHexEdit::setReadOnly(QHexEdit* theWrappedObject, bool arg__1)
161 161 {
162 162 ( theWrappedObject->setReadOnly(arg__1));
163 163 }
164 164
165 165 void PythonQtWrapper_QHexEdit::setSelectionColor(QHexEdit* theWrappedObject, const QColor& color)
166 166 {
167 167 ( theWrappedObject->setSelectionColor(color));
168 168 }
169 169
170 170 QString PythonQtWrapper_QHexEdit::toReadableString(QHexEdit* theWrappedObject)
171 171 {
172 172 return ( theWrappedObject->toReadableString());
173 173 }
174 174
175 175
176 176
177 177 QHexSpinBox* PythonQtWrapper_QHexSpinBox::new_QHexSpinBox(QWidget* parent)
178 178 {
179 179 return new QHexSpinBox(parent); }
180 180
181 181 void PythonQtWrapper_QHexSpinBox::show(QHexSpinBox* theWrappedObject)
182 182 {
183 183 ( theWrappedObject->show());
184 184 }
185 185
186 186 QString PythonQtWrapper_QHexSpinBox::textFromValue(QHexSpinBox* theWrappedObject, int value) const
187 187 {
188 188 return ( theWrappedObject->textFromValue(value));
189 189 }
190 190
191 191 QValidator::State PythonQtWrapper_QHexSpinBox::validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const
192 192 {
193 193 return ( theWrappedObject->validate(input, pos));
194 194 }
195 195
196 196 int PythonQtWrapper_QHexSpinBox::valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const
197 197 {
198 198 return ( theWrappedObject->valueFromText(text));
199 199 }
200 200
201 201
202 202
203 PythonQtShell_SocExplorerPlot::~PythonQtShell_SocExplorerPlot() {
204 PythonQtPrivate* priv = PythonQt::priv();
205 if (priv) { priv->shellClassDeleted(this); }
206 }
207 SocExplorerPlot* PythonQtWrapper_SocExplorerPlot::new_SocExplorerPlot(QWidget* parent)
208 {
209 return new PythonQtShell_SocExplorerPlot(parent); }
210
211 int PythonQtWrapper_SocExplorerPlot::addGraph(SocExplorerPlot* theWrappedObject)
212 {
213 return ( theWrappedObject->addGraph());
214 }
215
216 void PythonQtWrapper_SocExplorerPlot::addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y)
217 {
218 ( theWrappedObject->addGraphData(graphIndex, x, y));
219 }
220
221 void PythonQtWrapper_SocExplorerPlot::addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y)
222 {
223 ( theWrappedObject->addGraphData(graphIndex, x, y));
224 }
225
226 QPen PythonQtWrapper_SocExplorerPlot::getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex)
227 {
228 return ( theWrappedObject->getGraphPen(graphIndex));
229 }
230
231 void PythonQtWrapper_SocExplorerPlot::rescaleAxis(SocExplorerPlot* theWrappedObject)
232 {
233 ( theWrappedObject->rescaleAxis());
234 }
235
236 void PythonQtWrapper_SocExplorerPlot::setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y)
237 {
238 ( theWrappedObject->setGraphData(graphIndex, x, y));
239 }
240
241 void PythonQtWrapper_SocExplorerPlot::setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle)
242 {
243 ( theWrappedObject->setGraphLineStyle(graphIndex, lineStyle));
244 }
245
246 void PythonQtWrapper_SocExplorerPlot::setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name)
247 {
248 ( theWrappedObject->setGraphName(graphIndex, name));
249 }
250
251 void PythonQtWrapper_SocExplorerPlot::setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen)
252 {
253 ( theWrappedObject->setGraphPen(graphIndex, pen));
254 }
255
256 void PythonQtWrapper_SocExplorerPlot::setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle)
257 {
258 ( theWrappedObject->setGraphScatterStyle(graphIndex, scatterStyle));
259 }
260
261 void PythonQtWrapper_SocExplorerPlot::setLegendFont(SocExplorerPlot* theWrappedObject, QFont font)
262 {
263 ( theWrappedObject->setLegendFont(font));
264 }
265
266 void PythonQtWrapper_SocExplorerPlot::setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font)
267 {
268 ( theWrappedObject->setLegendSelectedFont(font));
269 }
270
271 void PythonQtWrapper_SocExplorerPlot::setTitle(SocExplorerPlot* theWrappedObject, QString title)
272 {
273 ( theWrappedObject->setTitle(title));
274 }
275
276 void PythonQtWrapper_SocExplorerPlot::setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label)
277 {
278 ( theWrappedObject->setXaxisLabel(label));
279 }
280
281 void PythonQtWrapper_SocExplorerPlot::setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper)
282 {
283 ( theWrappedObject->setXaxisRange(lower, upper));
284 }
285
286 void PythonQtWrapper_SocExplorerPlot::setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label)
287 {
288 ( theWrappedObject->setYaxisLabel(label));
289 }
290
291 void PythonQtWrapper_SocExplorerPlot::setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper)
292 {
293 ( theWrappedObject->setYaxisRange(lower, upper));
294 }
295
296 void PythonQtWrapper_SocExplorerPlot::show(SocExplorerPlot* theWrappedObject)
297 {
298 ( theWrappedObject->show());
299 }
300
301
302
203 303 TCP_Terminal_Client* PythonQtWrapper_TCP_Terminal_Client::new_TCP_Terminal_Client(QObject* parent)
204 304 {
205 305 return new TCP_Terminal_Client(parent); }
206 306
207 307 void PythonQtWrapper_TCP_Terminal_Client::connectToServer(TCP_Terminal_Client* theWrappedObject)
208 308 {
209 309 ( theWrappedObject->connectToServer());
210 310 }
211 311
212 312 void PythonQtWrapper_TCP_Terminal_Client::connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port)
213 313 {
214 314 ( theWrappedObject->connectToServer(IP, port));
215 315 }
216 316
217 317 bool PythonQtWrapper_TCP_Terminal_Client::isConnected(TCP_Terminal_Client* theWrappedObject)
218 318 {
219 319 return ( theWrappedObject->isConnected());
220 320 }
221 321
222 322 void PythonQtWrapper_TCP_Terminal_Client::sendText(TCP_Terminal_Client* theWrappedObject, const QString& text)
223 323 {
224 324 ( theWrappedObject->sendText(text));
225 325 }
226 326
227 327 void PythonQtWrapper_TCP_Terminal_Client::startServer(TCP_Terminal_Client* theWrappedObject)
228 328 {
229 329 ( theWrappedObject->startServer());
230 330 }
231 331
232 332 void PythonQtWrapper_TCP_Terminal_Client::startServer(TCP_Terminal_Client* theWrappedObject, int port)
233 333 {
234 334 ( theWrappedObject->startServer(port));
235 335 }
236 336
237 337
238 338
239 339 XByteArray* PythonQtWrapper_XByteArray::new_XByteArray()
240 340 {
241 341 return new XByteArray(); }
242 342
243 343 int PythonQtWrapper_XByteArray::addressOffset(XByteArray* theWrappedObject)
244 344 {
245 345 return ( theWrappedObject->addressOffset());
246 346 }
247 347
248 348 int PythonQtWrapper_XByteArray::addressWidth(XByteArray* theWrappedObject)
249 349 {
250 350 return ( theWrappedObject->addressWidth());
251 351 }
252 352
253 353 QChar PythonQtWrapper_XByteArray::asciiChar(XByteArray* theWrappedObject, int index)
254 354 {
255 355 return ( theWrappedObject->asciiChar(index));
256 356 }
257 357
258 358 QByteArray* PythonQtWrapper_XByteArray::data(XByteArray* theWrappedObject)
259 359 {
260 360 return &( theWrappedObject->data());
261 361 }
262 362
263 363 bool PythonQtWrapper_XByteArray::dataChanged(XByteArray* theWrappedObject, int i)
264 364 {
265 365 return ( theWrappedObject->dataChanged(i));
266 366 }
267 367
268 368 QByteArray PythonQtWrapper_XByteArray::dataChanged(XByteArray* theWrappedObject, int i, int len)
269 369 {
270 370 return ( theWrappedObject->dataChanged(i, len));
271 371 }
272 372
273 373 QByteArray* PythonQtWrapper_XByteArray::insert(XByteArray* theWrappedObject, int i, char ch)
274 374 {
275 375 return &( theWrappedObject->insert(i, ch));
276 376 }
277 377
278 378 QByteArray* PythonQtWrapper_XByteArray::insert(XByteArray* theWrappedObject, int i, const QByteArray& ba)
279 379 {
280 380 return &( theWrappedObject->insert(i, ba));
281 381 }
282 382
283 383 int PythonQtWrapper_XByteArray::realAddressNumbers(XByteArray* theWrappedObject)
284 384 {
285 385 return ( theWrappedObject->realAddressNumbers());
286 386 }
287 387
288 388 QByteArray* PythonQtWrapper_XByteArray::remove(XByteArray* theWrappedObject, int pos, int len)
289 389 {
290 390 return &( theWrappedObject->remove(pos, len));
291 391 }
292 392
293 393 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, char ch)
294 394 {
295 395 return &( theWrappedObject->replace(index, ch));
296 396 }
297 397
298 398 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, const QByteArray& ba)
299 399 {
300 400 return &( theWrappedObject->replace(index, ba));
301 401 }
302 402
303 403 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba)
304 404 {
305 405 return &( theWrappedObject->replace(index, length, ba));
306 406 }
307 407
308 408 void PythonQtWrapper_XByteArray::setAddressOffset(XByteArray* theWrappedObject, int offset)
309 409 {
310 410 ( theWrappedObject->setAddressOffset(offset));
311 411 }
312 412
313 413 void PythonQtWrapper_XByteArray::setAddressWidth(XByteArray* theWrappedObject, int width)
314 414 {
315 415 ( theWrappedObject->setAddressWidth(width));
316 416 }
317 417
318 418 void PythonQtWrapper_XByteArray::setData(XByteArray* theWrappedObject, QByteArray data)
319 419 {
320 420 ( theWrappedObject->setData(data));
321 421 }
322 422
323 423 void PythonQtWrapper_XByteArray::setDataChanged(XByteArray* theWrappedObject, int i, bool state)
324 424 {
325 425 ( theWrappedObject->setDataChanged(i, state));
326 426 }
327 427
328 428 void PythonQtWrapper_XByteArray::setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state)
329 429 {
330 430 ( theWrappedObject->setDataChanged(i, state));
331 431 }
332 432
333 433 int PythonQtWrapper_XByteArray::size(XByteArray* theWrappedObject)
334 434 {
335 435 return ( theWrappedObject->size());
336 436 }
337 437
338 438 QString PythonQtWrapper_XByteArray::toRedableString(XByteArray* theWrappedObject, int start, int end)
339 439 {
340 440 return ( theWrappedObject->toRedableString(start, end));
341 441 }
342 442
343 443
344 444
345 445 elfparser* PythonQtWrapper_elfparser::new_elfparser()
346 446 {
347 447 return new elfparser(); }
348 448
349 449 int PythonQtWrapper_elfparser::closeFile(elfparser* theWrappedObject)
350 450 {
351 451 return ( theWrappedObject->closeFile());
352 452 }
353 453
354 454 QString PythonQtWrapper_elfparser::getArchitecture(elfparser* theWrappedObject)
355 455 {
356 456 return ( theWrappedObject->getArchitecture());
357 457 }
358 458
359 459 bool PythonQtWrapper_elfparser::getSectionData(elfparser* theWrappedObject, int index, char** buffer)
360 460 {
361 461 return ( theWrappedObject->getSectionData(index, buffer));
362 462 }
363 463
364 464 QString PythonQtWrapper_elfparser::getSectionName(elfparser* theWrappedObject, int index)
365 465 {
366 466 return ( theWrappedObject->getSectionName(index));
367 467 }
368 468
369 469 QString PythonQtWrapper_elfparser::getSectionType(elfparser* theWrappedObject, int index)
370 470 {
371 471 return ( theWrappedObject->getSectionType(index));
372 472 }
373 473
374 474 int PythonQtWrapper_elfparser::getSectioncount(elfparser* theWrappedObject)
375 475 {
376 476 return ( theWrappedObject->getSectioncount());
377 477 }
378 478
379 479 QString PythonQtWrapper_elfparser::getSegmentFlags(elfparser* theWrappedObject, int index)
380 480 {
381 481 return ( theWrappedObject->getSegmentFlags(index));
382 482 }
383 483
384 484 QString PythonQtWrapper_elfparser::getSegmentType(elfparser* theWrappedObject, int index)
385 485 {
386 486 return ( theWrappedObject->getSegmentType(index));
387 487 }
388 488
389 489 int PythonQtWrapper_elfparser::getSegmentcount(elfparser* theWrappedObject)
390 490 {
391 491 return ( theWrappedObject->getSegmentcount());
392 492 }
393 493
394 494 QString PythonQtWrapper_elfparser::getType(elfparser* theWrappedObject)
395 495 {
396 496 return ( theWrappedObject->getType());
397 497 }
398 498
399 499 bool PythonQtWrapper_elfparser::static_elfparser_isElf(const QString& File)
400 500 {
401 501 return (elfparser::isElf(File));
402 502 }
403 503
404 504 bool PythonQtWrapper_elfparser::iself(elfparser* theWrappedObject)
405 505 {
406 506 return ( theWrappedObject->iself());
407 507 }
408 508
409 509 bool PythonQtWrapper_elfparser::isopened(elfparser* theWrappedObject)
410 510 {
411 511 return ( theWrappedObject->isopened());
412 512 }
413 513
414 514 int PythonQtWrapper_elfparser::setFilename(elfparser* theWrappedObject, const QString& name)
415 515 {
416 516 return ( theWrappedObject->setFilename(name));
417 517 }
418 518
419 519
@@ -1,167 +1,209
1 1 #include <PythonQt.h>
2 2 #include <QObject>
3 3 #include <QVariant>
4 #include <SocExplorerPlot.h>
4 5 #include <elfparser.h>
5 6 #include <memsizewdgt.h>
6 7 #include <qhexedit.h>
7 8 #include <qhexspinbox.h>
8 9 #include <tcp_terminal_client.h>
9 10 #include <xbytearray.h>
10 11
11 12
12 13
13 14 class PythonQtWrapper_MemSizeWdgt : public QObject
14 15 { Q_OBJECT
15 16 public:
16 17 public slots:
17 18 MemSizeWdgt* new_MemSizeWdgt(QWidget* parent = 0);
18 19 MemSizeWdgt* new_MemSizeWdgt(int defaultSize, QWidget* parent = 0);
19 20 void delete_MemSizeWdgt(MemSizeWdgt* obj) { delete obj; }
20 21 int getsize(MemSizeWdgt* theWrappedObject);
21 22 void setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max);
22 23 void show(MemSizeWdgt* theWrappedObject);
23 24 void updateSizeValue(MemSizeWdgt* theWrappedObject);
24 25 };
25 26
26 27
27 28
28 29
29 30
30 31 class PythonQtShell_QHexEdit : public QHexEdit
31 32 {
32 33 public:
33 34 PythonQtShell_QHexEdit(QWidget* parent = 0):QHexEdit(parent),_wrapper(NULL) {};
34 35
35 36 ~PythonQtShell_QHexEdit();
36 37
37 38
38 39 PythonQtInstanceWrapper* _wrapper;
39 40 };
40 41
41 42 class PythonQtWrapper_QHexEdit : public QObject
42 43 { Q_OBJECT
43 44 public:
44 45 public slots:
45 46 QHexEdit* new_QHexEdit(QWidget* parent = 0);
46 47 void delete_QHexEdit(QHexEdit* obj) { delete obj; }
47 48 QColor addressAreaColor(QHexEdit* theWrappedObject);
48 49 int addressOffset(QHexEdit* theWrappedObject);
49 50 int cursorPosition(QHexEdit* theWrappedObject);
50 51 QByteArray data(QHexEdit* theWrappedObject);
51 52 const QFont* font(QHexEdit* theWrappedObject) const;
52 53 QColor highlightingColor(QHexEdit* theWrappedObject);
53 54 int indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const;
54 55 void insert(QHexEdit* theWrappedObject, int i, char ch);
55 56 void insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba);
56 57 bool isReadOnly(QHexEdit* theWrappedObject);
57 58 int lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const;
58 59 bool overwriteMode(QHexEdit* theWrappedObject);
59 60 void remove(QHexEdit* theWrappedObject, int pos, int len = 1);
60 61 void replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after);
61 62 QColor selectionColor(QHexEdit* theWrappedObject);
62 63 QString selectionToReadableString(QHexEdit* theWrappedObject);
63 64 void setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color);
64 65 void setAddressOffset(QHexEdit* theWrappedObject, int offset);
65 66 void setCursorPosition(QHexEdit* theWrappedObject, int cusorPos);
66 67 void setData(QHexEdit* theWrappedObject, const QByteArray& data);
67 68 void setFont(QHexEdit* theWrappedObject, const QFont& arg__1);
68 69 void setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color);
69 70 void setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1);
70 71 void setReadOnly(QHexEdit* theWrappedObject, bool arg__1);
71 72 void setSelectionColor(QHexEdit* theWrappedObject, const QColor& color);
72 73 QString toReadableString(QHexEdit* theWrappedObject);
73 74 };
74 75
75 76
76 77
77 78
78 79
79 80 class PythonQtWrapper_QHexSpinBox : public QObject
80 81 { Q_OBJECT
81 82 public:
82 83 public slots:
83 84 QHexSpinBox* new_QHexSpinBox(QWidget* parent = 0);
84 85 void delete_QHexSpinBox(QHexSpinBox* obj) { delete obj; }
85 86 void show(QHexSpinBox* theWrappedObject);
86 87 QString textFromValue(QHexSpinBox* theWrappedObject, int value) const;
87 88 QValidator::State validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const;
88 89 int valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const;
89 90 };
90 91
91 92
92 93
93 94
94 95
96 class PythonQtShell_SocExplorerPlot : public SocExplorerPlot
97 {
98 public:
99 PythonQtShell_SocExplorerPlot(QWidget* parent = 0):SocExplorerPlot(parent),_wrapper(NULL) {};
100
101 ~PythonQtShell_SocExplorerPlot();
102
103
104 PythonQtInstanceWrapper* _wrapper;
105 };
106
107 class PythonQtWrapper_SocExplorerPlot : public QObject
108 { Q_OBJECT
109 public:
110 public slots:
111 SocExplorerPlot* new_SocExplorerPlot(QWidget* parent = 0);
112 void delete_SocExplorerPlot(SocExplorerPlot* obj) { delete obj; }
113 int addGraph(SocExplorerPlot* theWrappedObject);
114 void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
115 void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y);
116 QPen getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex);
117 void rescaleAxis(SocExplorerPlot* theWrappedObject);
118 void setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
119 void setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle);
120 void setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name);
121 void setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen);
122 void setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle);
123 void setLegendFont(SocExplorerPlot* theWrappedObject, QFont font);
124 void setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font);
125 void setTitle(SocExplorerPlot* theWrappedObject, QString title);
126 void setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
127 void setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
128 void setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
129 void setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
130 void show(SocExplorerPlot* theWrappedObject);
131 };
132
133
134
135
136
95 137 class PythonQtWrapper_TCP_Terminal_Client : public QObject
96 138 { Q_OBJECT
97 139 public:
98 140 public slots:
99 141 TCP_Terminal_Client* new_TCP_Terminal_Client(QObject* parent = 0);
100 142 void delete_TCP_Terminal_Client(TCP_Terminal_Client* obj) { delete obj; }
101 143 void connectToServer(TCP_Terminal_Client* theWrappedObject);
102 144 void connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port);
103 145 bool isConnected(TCP_Terminal_Client* theWrappedObject);
104 146 void sendText(TCP_Terminal_Client* theWrappedObject, const QString& text);
105 147 void startServer(TCP_Terminal_Client* theWrappedObject);
106 148 void startServer(TCP_Terminal_Client* theWrappedObject, int port);
107 149 };
108 150
109 151
110 152
111 153
112 154
113 155 class PythonQtWrapper_XByteArray : public QObject
114 156 { Q_OBJECT
115 157 public:
116 158 public slots:
117 159 XByteArray* new_XByteArray();
118 160 void delete_XByteArray(XByteArray* obj) { delete obj; }
119 161 int addressOffset(XByteArray* theWrappedObject);
120 162 int addressWidth(XByteArray* theWrappedObject);
121 163 QChar asciiChar(XByteArray* theWrappedObject, int index);
122 164 QByteArray* data(XByteArray* theWrappedObject);
123 165 bool dataChanged(XByteArray* theWrappedObject, int i);
124 166 QByteArray dataChanged(XByteArray* theWrappedObject, int i, int len);
125 167 QByteArray* insert(XByteArray* theWrappedObject, int i, char ch);
126 168 QByteArray* insert(XByteArray* theWrappedObject, int i, const QByteArray& ba);
127 169 int realAddressNumbers(XByteArray* theWrappedObject);
128 170 QByteArray* remove(XByteArray* theWrappedObject, int pos, int len);
129 171 QByteArray* replace(XByteArray* theWrappedObject, int index, char ch);
130 172 QByteArray* replace(XByteArray* theWrappedObject, int index, const QByteArray& ba);
131 173 QByteArray* replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba);
132 174 void setAddressOffset(XByteArray* theWrappedObject, int offset);
133 175 void setAddressWidth(XByteArray* theWrappedObject, int width);
134 176 void setData(XByteArray* theWrappedObject, QByteArray data);
135 177 void setDataChanged(XByteArray* theWrappedObject, int i, bool state);
136 178 void setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state);
137 179 int size(XByteArray* theWrappedObject);
138 180 QString toRedableString(XByteArray* theWrappedObject, int start = 0, int end = -1);
139 181 };
140 182
141 183
142 184
143 185
144 186
145 187 class PythonQtWrapper_elfparser : public QObject
146 188 { Q_OBJECT
147 189 public:
148 190 public slots:
149 191 elfparser* new_elfparser();
150 192 void delete_elfparser(elfparser* obj) { delete obj; }
151 193 int closeFile(elfparser* theWrappedObject);
152 194 QString getArchitecture(elfparser* theWrappedObject);
153 195 bool getSectionData(elfparser* theWrappedObject, int index, char** buffer);
154 196 QString getSectionName(elfparser* theWrappedObject, int index);
155 197 QString getSectionType(elfparser* theWrappedObject, int index);
156 198 int getSectioncount(elfparser* theWrappedObject);
157 199 QString getSegmentFlags(elfparser* theWrappedObject, int index);
158 200 QString getSegmentType(elfparser* theWrappedObject, int index);
159 201 int getSegmentcount(elfparser* theWrappedObject);
160 202 QString getType(elfparser* theWrappedObject);
161 203 bool static_elfparser_isElf(const QString& File);
162 204 bool iself(elfparser* theWrappedObject);
163 205 bool isopened(elfparser* theWrappedObject);
164 206 int setFilename(elfparser* theWrappedObject, const QString& name);
165 207 };
166 208
167 209
@@ -1,13 +1,14
1 1 #include <PythonQt.h>
2 2 #include "PySocExplorer0.h"
3 3
4 4
5 5 void PythonQt_init_PySocExplorer(PyObject* module) {
6 6 PythonQt::priv()->registerCPPClass("MemSizeWdgt", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_MemSizeWdgt>, NULL, module, 0);
7 7 PythonQt::priv()->registerCPPClass("QHexEdit", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_QHexEdit>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHexEdit>, module, 0);
8 8 PythonQt::priv()->registerCPPClass("QHexSpinBox", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_QHexSpinBox>, NULL, module, 0);
9 PythonQt::priv()->registerCPPClass("SocExplorerPlot", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_SocExplorerPlot>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_SocExplorerPlot>, module, 0);
9 10 PythonQt::priv()->registerClass(&TCP_Terminal_Client::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_TCP_Terminal_Client>, NULL, module, 0);
10 11 PythonQt::priv()->registerCPPClass("XByteArray", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_XByteArray>, NULL, module, 0);
11 12 PythonQt::priv()->registerCPPClass("elfparser", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_elfparser>, NULL, module, 0);
12 13
13 14 }
General Comments 0
You need to be logged in to leave comments. Login now