@@ -0,0 +1,68 | |||
|
1 | #include "srecfilewidget.h" | |
|
2 | #include "ui_srecfilewidget.h" | |
|
3 | #include <QTableWidgetItem> | |
|
4 | #include <qtablewidgetintitem.h> | |
|
5 | ||
|
6 | srecFileWidget::srecFileWidget(QWidget *parent) : | |
|
7 | QWidget(parent), | |
|
8 | ui(new Ui::srecFileWidget) | |
|
9 | { | |
|
10 | ui->setupUi(this); | |
|
11 | connect(this->ui->fragmentsList,SIGNAL(cellActivated(int,int)),this,SLOT(recordCellActivated(int,int))); | |
|
12 | } | |
|
13 | ||
|
14 | srecFileWidget::~srecFileWidget() | |
|
15 | { | |
|
16 | delete ui; | |
|
17 | } | |
|
18 | ||
|
19 | void srecFileWidget::updatSrecFile(srecFile *file) | |
|
20 | { | |
|
21 | this->p_srec = file; | |
|
22 | if(p_srec->isopened() && p_srec->isSREC()) | |
|
23 | { | |
|
24 | updateRecords(); | |
|
25 | } | |
|
26 | } | |
|
27 | ||
|
28 | void srecFileWidget::updateRecords() | |
|
29 | { | |
|
30 | this->ui->fragmentsList->clear(); | |
|
31 | this->ui->fragmentsList->setRowCount(p_srec->getFragmentsCount()); | |
|
32 | this->ui->fragmentsList->setHorizontalHeaderLabels(QStringList()<<"Index"<<"Address"<<"Size"<<"Header"); | |
|
33 | for(int i=0;i<p_srec->getFragmentsCount();i++) | |
|
34 | { | |
|
35 | QTableWidgetItem *newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(i),DecimalItem); | |
|
36 | newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable); | |
|
37 | this->ui->fragmentsList->setItem(i, 0, newItem); | |
|
38 | ||
|
39 | newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("0x%1").arg(p_srec->getFragmentAddress(i),8,16).replace(" ","0"),HexaDecimalItem); | |
|
40 | newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable); | |
|
41 | this->ui->fragmentsList->setItem(i, 1, newItem); | |
|
42 | ||
|
43 | newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(p_srec->getFragmentSize(i)),DecimalItem); | |
|
44 | newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable); | |
|
45 | this->ui->fragmentsList->setItem(i, 2, newItem); | |
|
46 | ||
|
47 | newItem = new QTableWidgetItem(p_srec->getFragmentHeader(i)); | |
|
48 | newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable); | |
|
49 | this->ui->fragmentsList->setItem(i, 3, newItem); | |
|
50 | ||
|
51 | } | |
|
52 | this->ui->fragmentsList->resizeColumnsToContents(); | |
|
53 | } | |
|
54 | ||
|
55 | void srecFileWidget::recordCellActivated(int row, int column) | |
|
56 | { | |
|
57 | Q_UNUSED(column) | |
|
58 | char* buff=NULL; | |
|
59 | int index = this->ui->fragmentsList->item(row,0)->text().toInt(); | |
|
60 | if(index!=-1) | |
|
61 | { | |
|
62 | this->p_srec->getFragmentData(index,&buff); | |
|
63 | this->ui->fragmentHexView->setData(QByteArray(buff,this->p_srec->getFragmentSize(index))); | |
|
64 | } | |
|
65 | ||
|
66 | } | |
|
67 | ||
|
68 |
@@ -0,0 +1,31 | |||
|
1 | #ifndef SRECFILEWIDGET_H | |
|
2 | #define SRECFILEWIDGET_H | |
|
3 | ||
|
4 | #include <QWidget> | |
|
5 | #include "srecfile.h" | |
|
6 | ||
|
7 | namespace Ui { | |
|
8 | class srecFileWidget; | |
|
9 | } | |
|
10 | ||
|
11 | class srecFileWidget : public QWidget | |
|
12 | { | |
|
13 | Q_OBJECT | |
|
14 | ||
|
15 | public: | |
|
16 | explicit srecFileWidget(QWidget *parent = 0); | |
|
17 | ~srecFileWidget(); | |
|
18 | ||
|
19 | public slots: | |
|
20 | void updatSrecFile(srecFile* file); | |
|
21 | void updateRecords(); | |
|
22 | ||
|
23 | private slots: | |
|
24 | void recordCellActivated(int row, int column); | |
|
25 | ||
|
26 | private: | |
|
27 | Ui::srecFileWidget *ui; | |
|
28 | srecFile* p_srec; | |
|
29 | }; | |
|
30 | ||
|
31 | #endif // SRECFILEWIDGET_H |
@@ -0,0 +1,81 | |||
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
|
2 | <ui version="4.0"> | |
|
3 | <class>srecFileWidget</class> | |
|
4 | <widget class="QWidget" name="srecFileWidget"> | |
|
5 | <property name="geometry"> | |
|
6 | <rect> | |
|
7 | <x>0</x> | |
|
8 | <y>0</y> | |
|
9 | <width>740</width> | |
|
10 | <height>516</height> | |
|
11 | </rect> | |
|
12 | </property> | |
|
13 | <property name="windowTitle"> | |
|
14 | <string>Form</string> | |
|
15 | </property> | |
|
16 | <layout class="QGridLayout" name="gridLayout"> | |
|
17 | <item row="0" column="1"> | |
|
18 | <widget class="QGroupBox" name="groupBox_2"> | |
|
19 | <property name="title"> | |
|
20 | <string>SREC records list</string> | |
|
21 | </property> | |
|
22 | <layout class="QVBoxLayout" name="verticalLayout_2"> | |
|
23 | <item> | |
|
24 | <widget class="QTableWidget" name="fragmentsList"> | |
|
25 | <column> | |
|
26 | <property name="text"> | |
|
27 | <string>Index</string> | |
|
28 | </property> | |
|
29 | </column> | |
|
30 | <column> | |
|
31 | <property name="text"> | |
|
32 | <string>Address</string> | |
|
33 | </property> | |
|
34 | </column> | |
|
35 | <column> | |
|
36 | <property name="text"> | |
|
37 | <string>Size</string> | |
|
38 | </property> | |
|
39 | </column> | |
|
40 | <column> | |
|
41 | <property name="text"> | |
|
42 | <string>Header</string> | |
|
43 | </property> | |
|
44 | </column> | |
|
45 | </widget> | |
|
46 | </item> | |
|
47 | </layout> | |
|
48 | </widget> | |
|
49 | </item> | |
|
50 | <item row="0" column="0"> | |
|
51 | <widget class="QGroupBox" name="groupBox"> | |
|
52 | <property name="title"> | |
|
53 | <string>Hexadecimal Viewer</string> | |
|
54 | </property> | |
|
55 | <layout class="QVBoxLayout" name="verticalLayout"> | |
|
56 | <item> | |
|
57 | <widget class="QHexEdit" name="fragmentHexView" native="true"> | |
|
58 | <property name="minimumSize"> | |
|
59 | <size> | |
|
60 | <width>256</width> | |
|
61 | <height>0</height> | |
|
62 | </size> | |
|
63 | </property> | |
|
64 | </widget> | |
|
65 | </item> | |
|
66 | </layout> | |
|
67 | </widget> | |
|
68 | </item> | |
|
69 | </layout> | |
|
70 | </widget> | |
|
71 | <customwidgets> | |
|
72 | <customwidget> | |
|
73 | <class>QHexEdit</class> | |
|
74 | <extends>QWidget</extends> | |
|
75 | <header location="global">qhexedit.h</header> | |
|
76 | <container>1</container> | |
|
77 | </customwidget> | |
|
78 | </customwidgets> | |
|
79 | <resources/> | |
|
80 | <connections/> | |
|
81 | </ui> |
@@ -1,14 +1,15 | |||
|
1 | 1 | #include <QtCore/QObject> |
|
2 | 2 | #include <QtWidgets/QtWidgets> |
|
3 | 3 | #include "qhexspinbox.h" |
|
4 | 4 | #include "memsizewdgt.h" |
|
5 | 5 | #include "qhexedit/qhexedit.h" |
|
6 | 6 | #include "SocExplorerPlot.h" |
|
7 | 7 | #include "tcp_terminal_client.h" |
|
8 | 8 | #include "elf/elfparser.h" |
|
9 |
#include "abstract |
|
|
9 | #include "abstractbinfile.h" | |
|
10 | 10 | #include "elf/elffile.h" |
|
11 | 11 | #include "elf/elffilewidget.h" |
|
12 | 12 | #include "elf/elfinfowdgt.h" |
|
13 | 13 | #include "QCustomPlot/qcustomplot.h" |
|
14 | 14 | #include "srec/srecfile.h" |
|
15 | #include "srec/srecfilewidget.h" |
@@ -1,30 +1,30 | |||
|
1 | 1 | /*------------------------------------------------------------------------------ |
|
2 | 2 | -- This file is a part of the SocExplorer Software |
|
3 | 3 | -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS |
|
4 | 4 | -- |
|
5 | 5 | -- This program is free software; you can redistribute it and/or modify |
|
6 | 6 | -- it under the terms of the GNU General Public License as published by |
|
7 | 7 | -- the Free Software Foundation; either version 2 of the License, or |
|
8 | 8 | -- (at your option) any later version. |
|
9 | 9 | -- |
|
10 | 10 | -- This program is distributed in the hope that it will be useful, |
|
11 | 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 | 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 | 13 | -- GNU General Public License for more details. |
|
14 | 14 | -- |
|
15 | 15 | -- You should have received a copy of the GNU General Public License |
|
16 | 16 | -- along with this program; if not, write to the Free Software |
|
17 | 17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 | 18 | -------------------------------------------------------------------------------*/ |
|
19 | 19 | /*-- Author : Alexis Jeandet |
|
20 | 20 | -- Mail : alexis.jeandet@member.fsf.org |
|
21 | 21 | ----------------------------------------------------------------------------*/ |
|
22 |
#include "abstract |
|
|
22 | #include "abstractbinfile.h" | |
|
23 | 23 | |
|
24 | 24 | |
|
25 | 25 | codeFragment::codeFragment() |
|
26 | 26 | { |
|
27 | 27 | data = NULL; |
|
28 | 28 | size = 0; |
|
29 | 29 | address = 0; |
|
30 | 30 | } |
@@ -1,51 +1,52 | |||
|
1 | 1 | /*------------------------------------------------------------------------------ |
|
2 | 2 | -- This file is a part of the SocExplorer Software |
|
3 | 3 | -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS |
|
4 | 4 | -- |
|
5 | 5 | -- This program is free software; you can redistribute it and/or modify |
|
6 | 6 | -- it under the terms of the GNU General Public License as published by |
|
7 | 7 | -- the Free Software Foundation; either version 2 of the License, or |
|
8 | 8 | -- (at your option) any later version. |
|
9 | 9 | -- |
|
10 | 10 | -- This program is distributed in the hope that it will be useful, |
|
11 | 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 | 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 | 13 | -- GNU General Public License for more details. |
|
14 | 14 | -- |
|
15 | 15 | -- You should have received a copy of the GNU General Public License |
|
16 | 16 | -- along with this program; if not, write to the Free Software |
|
17 | 17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 | 18 | -------------------------------------------------------------------------------*/ |
|
19 | 19 | /*-- Author : Alexis Jeandet |
|
20 | 20 | -- Mail : alexis.jeandet@member.fsf.org |
|
21 | 21 | ----------------------------------------------------------------------------*/ |
|
22 |
#ifndef ABSTRACT |
|
|
23 |
#define ABSTRACT |
|
|
22 | #ifndef ABSTRACTBINFILE_H | |
|
23 | #define ABSTRACTBINFILE_H | |
|
24 | 24 | |
|
25 | 25 | #include <QtCore/QObject> |
|
26 | 26 | |
|
27 | 27 | class codeFragment |
|
28 | 28 | { |
|
29 | 29 | public: |
|
30 | 30 | codeFragment(); |
|
31 |
codeFragment(char* data, quint |
|
|
31 | codeFragment(char* data, quint64 size, quint64 address):data(data),size(size),address(address){} | |
|
32 | QString header; | |
|
32 | 33 | char* data; |
|
33 |
quint |
|
|
34 |
quint |
|
|
34 | quint64 size; | |
|
35 | quint64 address; | |
|
35 | 36 | }; |
|
36 | 37 | |
|
37 |
class abstract |
|
|
38 | class abstractBinFile : public QObject | |
|
38 | 39 | { |
|
39 | 40 | Q_OBJECT |
|
40 | 41 | public: |
|
41 | 42 | // virtual abstractExecFile()=0; |
|
42 | 43 | virtual bool openFile(const QString& File)=0; |
|
43 | 44 | virtual bool isopened()=0; |
|
44 | 45 | virtual int closeFile()=0; |
|
45 | 46 | virtual QList<codeFragment*> getFragments()=0; |
|
46 | 47 | |
|
47 | 48 | protected: |
|
48 | 49 | QString p_fileName; |
|
49 | 50 | }; |
|
50 | 51 | |
|
51 |
#endif // ABSTRACT |
|
|
52 | #endif // ABSTRACTBINFILE_H |
@@ -1,123 +1,128 | |||
|
1 | 1 | SOCEXPLORER_ROOT = \"$${PWD}/../..\" |
|
2 | 2 | include($${PWD}/../../build_cfg/socexplorer.pri) |
|
3 | 3 | include($${PWD}/lppserial/lppserial.pri) |
|
4 | 4 | |
|
5 | 5 | TEMPLATE = lib |
|
6 | 6 | TARGET = socexplorercommon$${DEBUG_EXT} |
|
7 | 7 | |
|
8 | 8 | win32:CONFIG += dll |
|
9 | 9 | win32:CONFIG -= static |
|
10 | 10 | |
|
11 | 11 | win32:INCLUDEPATH += $${PWD}/elf/libelfWin32/include |
|
12 | 12 | win32:INCLUDEPATH += $${PWD}/elf/libelfWin32/include/libelf |
|
13 | 13 | win32:DEFINES+=_ELF_WINDOWS_ |
|
14 | 14 | DEFINES+=RS232_debug |
|
15 | 15 | |
|
16 | 16 | win32:LIBS += $${PWD}/elf/libelfWin32/bin/libelf.a |
|
17 | 17 | unix:LIBS += -lelf |
|
18 | 18 | |
|
19 | 19 | QMAKE_LFLAGS_RELEASE += --enable-auto-import |
|
20 | 20 | QMAKE_LFLAGS_DEBUG += --enable-auto-import |
|
21 | 21 | |
|
22 | 22 | target.path = $$[QT_INSTALL_LIBS] |
|
23 | 23 | isEmpty(target.path) { |
|
24 | 24 | error(can\'t get QT_INSTALL_LIBS) |
|
25 | 25 | } |
|
26 | 26 | |
|
27 | 27 | header.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common |
|
28 | 28 | header.files = \ |
|
29 | 29 | memsizewdgt.h \ |
|
30 | 30 | qhexspinbox.h \ |
|
31 | 31 | qsvgicon.h \ |
|
32 | 32 | qhexedit/qhexedit_p.h \ |
|
33 | 33 | qhexedit/qhexedit.h \ |
|
34 | 34 | qhexedit/xbytearray.h \ |
|
35 | 35 | QCustomPlot/qcustomplot.h \ |
|
36 | 36 | SocExplorerPlot.h \ |
|
37 | 37 | tcp_terminal_client.h \ |
|
38 | 38 | elf/elfinfowdgt.h \ |
|
39 | 39 | elf/elfparser.h \ |
|
40 | 40 | elf/elffile.h \ |
|
41 | 41 | elf/elffilewidget.h \ |
|
42 | 42 | qipdialogbox.h \ |
|
43 | 43 | lppserial/src/RS232.h \ |
|
44 | 44 | qtablewidgetintitem.h \ |
|
45 | srec/srecfile.h | |
|
45 | srec/srecfile.h \ | |
|
46 | srec/srecfilewidget.h \ | |
|
47 | abstractbinfile.cpp | |
|
46 | 48 | |
|
47 | 49 | win32{ |
|
48 | 50 | elfheader.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common/libelf |
|
49 | 51 | elfheader.files += \ |
|
50 | 52 | elf/libelfWin32/include/libelf/byteswap.h \ |
|
51 | 53 | elf/libelfWin32/include/libelf/errors.h \ |
|
52 | 54 | elf/libelfWin32/include/libelf/gelf.h \ |
|
53 | 55 | elf/libelfWin32/include/libelf/nlist.h \ |
|
54 | 56 | elf/libelfWin32/include/libelf/sys_elf.h \ |
|
55 | 57 | elf/libelfWin32/include/libelf/verneed.h \ |
|
56 | 58 | elf/libelfWin32/include/libelf/elf_repl.h \ |
|
57 | 59 | elf/libelfWin32/include/libelf/ext_types.h \ |
|
58 | 60 | elf/libelfWin32/include/libelf/libelf.h \ |
|
59 | 61 | elf/libelfWin32/include/libelf/private.h \ |
|
60 | 62 | elf/libelfWin32/include/libelf/verdef.h |
|
61 | 63 | INSTALLS += elfheader |
|
62 | 64 | } |
|
63 | 65 | |
|
64 | 66 | |
|
65 | 67 | isEmpty(header.path) { |
|
66 | 68 | error(can\'t get QT_INSTALL_HEADERS) |
|
67 | 69 | } |
|
68 | 70 | |
|
69 | 71 | INSTALLS += target header |
|
70 | 72 | |
|
71 | INCLUDEPATH += QCustomPlot qhexedit | |
|
73 | INCLUDEPATH += QCustomPlot qhexedit srec | |
|
72 | 74 | |
|
73 | 75 | HEADERS += \ |
|
74 | 76 | memsizewdgt.h \ |
|
75 | 77 | qhexspinbox.h \ |
|
76 | 78 | qsvgicon.h \ |
|
77 | 79 | qhexedit/qhexedit_p.h \ |
|
78 | 80 | qhexedit/qhexedit.h \ |
|
79 | 81 | qhexedit/xbytearray.h \ |
|
80 | 82 | qhexedit/commands.h \ |
|
81 | 83 | QCustomPlot/qcustomplot.h \ |
|
82 | 84 | tcp_terminal_client.h \ |
|
83 | 85 | elf/elfinfowdgt.h \ |
|
84 | 86 | elf/elfparser.h \ |
|
85 | abstractexecfile.h \ | |
|
86 | 87 | elf/elffile.h \ |
|
87 | 88 | qipdialogbox.h \ |
|
88 | 89 | PySocExplorer.h \ |
|
89 | 90 | SocExplorerPlot.h \ |
|
90 | 91 | elf/elffilewidget.h \ |
|
91 | 92 | qtablewidgetintitem.h \ |
|
92 | srec/srecfile.h | |
|
93 | srec/srecfile.h \ | |
|
94 | srec/srecfilewidget.h \ | |
|
95 | abstractbinfile.h | |
|
93 | 96 | |
|
94 | 97 | |
|
95 | 98 | SOURCES += \ |
|
96 | 99 | memsizewdgt.cpp \ |
|
97 | 100 | qhexspinbox.cpp \ |
|
98 | 101 | qsvgicon.cpp \ |
|
99 | 102 | qhexedit/qhexedit_p.cpp \ |
|
100 | 103 | qhexedit/qhexedit.cpp \ |
|
101 | 104 | qhexedit/xbytearray.cpp \ |
|
102 | 105 | qhexedit/commands.cpp \ |
|
103 | 106 | QCustomPlot/qcustomplot.cpp \ |
|
104 | 107 | tcp_terminal_client.cpp \ |
|
105 | 108 | elf/elfinfowdgt.cpp \ |
|
106 | 109 | elf/elfparser.cpp \ |
|
107 | abstractexecfile.cpp \ | |
|
108 | 110 | elf/elffile.cpp \ |
|
109 | 111 | qipdialogbox.cpp \ |
|
110 | 112 | SocExplorerPlot.cpp \ |
|
111 | 113 | elf/elffilewidget.cpp \ |
|
112 | 114 | qtablewidgetintitem.cpp \ |
|
113 | srec/srecfile.cpp | |
|
115 | srec/srecfile.cpp \ | |
|
116 | srec/srecfilewidget.cpp \ | |
|
117 | abstractbinfile.cpp | |
|
114 | 118 | |
|
115 | 119 | FORMS += \ |
|
116 | elf/elffilewidget.ui | |
|
120 | elf/elffilewidget.ui \ | |
|
121 | srec/srecfilewidget.ui | |
|
117 | 122 | |
|
118 | 123 | OTHER_FILES += \ |
|
119 | 124 | ./pythongenerator.sh \ |
|
120 | 125 | ./pythonQtgeneratorCfg.txt |
|
121 | 126 | |
|
122 | 127 | |
|
123 | 128 |
@@ -1,1041 +1,1047 | |||
|
1 | 1 | /*------------------------------------------------------------------------------ |
|
2 | 2 | -- This file is a part of the SocExplorer Software |
|
3 | 3 | -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS |
|
4 | 4 | -- |
|
5 | 5 | -- This program is free software; you can redistribute it and/or modify |
|
6 | 6 | -- it under the terms of the GNU General Public License as published by |
|
7 | 7 | -- the Free Software Foundation; either version 2 of the License, or |
|
8 | 8 | -- (at your option) any later version. |
|
9 | 9 | -- |
|
10 | 10 | -- This program is distributed in the hope that it will be useful, |
|
11 | 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 | 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 | 13 | -- GNU General Public License for more details. |
|
14 | 14 | -- |
|
15 | 15 | -- You should have received a copy of the GNU General Public License |
|
16 | 16 | -- along with this program; if not, write to the Free Software |
|
17 | 17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 | 18 | -------------------------------------------------------------------------------*/ |
|
19 | 19 | /*-- Author : |
|
20 | 20 | Alexis Jeandet |
|
21 | 21 | -- Mail : |
|
22 | 22 | alexis.jeandet@member.fsf.org |
|
23 | 23 | ----------------------------------------------------------------------------*/ |
|
24 | 24 | #include "elffile.h" |
|
25 | #include "srec/srecfile.h" | |
|
25 | 26 | |
|
26 | 27 | ElfFile::ElfFile() |
|
27 |
:abstract |
|
|
28 | :abstractBinFile() | |
|
28 | 29 | { |
|
29 | 30 | this->opened = false; |
|
30 | 31 | this->type_elf = false; |
|
31 | 32 | this->elfFile = NULL; |
|
32 | 33 | this->e = NULL; |
|
33 | 34 | } |
|
34 | 35 | |
|
35 | 36 | ElfFile::ElfFile(const QString &File) |
|
36 |
:abstract |
|
|
37 | :abstractBinFile() | |
|
37 | 38 | { |
|
38 | 39 | this->opened = false; |
|
39 | 40 | this->type_elf = false; |
|
40 | 41 | this->elfFile = NULL; |
|
41 | 42 | this->e = NULL; |
|
42 | 43 | this->p_fileName = File; |
|
43 | 44 | openFile(File); |
|
44 | 45 | } |
|
45 | 46 | |
|
46 | 47 | ElfFile::~ElfFile() |
|
47 | 48 | { |
|
48 | 49 | closeFile(); |
|
49 | 50 | if(scn)free(scn); |
|
50 | 51 | if(data)free(data); |
|
51 | 52 | for(int i=0;i<this->sections.count();i++) |
|
52 | 53 | { |
|
53 | 54 | delete this->sections.at(i); |
|
54 | 55 | } |
|
55 | 56 | this->sections.clear(); |
|
56 | 57 | for(int i=0;i<this->Segments.count();i++) |
|
57 | 58 | { |
|
58 | 59 | free(this->Segments.at(i)); |
|
59 | 60 | } |
|
60 | 61 | this->Segments.clear(); |
|
61 | 62 | for(int i=0;i<symbols.count();i++) |
|
62 | 63 | { |
|
63 | 64 | delete this->symbols.at(i); |
|
64 | 65 | } |
|
65 | 66 | this->symbols.clear(); |
|
66 | 67 | } |
|
67 | 68 | |
|
68 | 69 | bool ElfFile::openFile(const QString &File) |
|
69 | 70 | { |
|
70 | 71 | this->p_fileName = File; |
|
71 | 72 | this->closeFile(); |
|
72 | 73 | if(elf_version(EV_CURRENT)==EV_NONE)return 0; |
|
73 | 74 | #ifdef _ELF_WINDOWS_ |
|
74 | 75 | this->elfFile = open(File.toStdString().c_str(),O_RDONLY|O_BINARY ,0); |
|
75 | 76 | #else |
|
76 | 77 | this->elfFile = open(File.toStdString().c_str(),O_RDONLY ,0); |
|
77 | 78 | #endif |
|
78 | 79 | if(this->elfFile==NULL)return 0; |
|
79 | 80 | this->e = elf_begin(this->elfFile,ELF_C_READ,NULL); |
|
80 | 81 | if(this->e==NULL)return 0; |
|
81 | 82 | this->ek = elf_kind(this->e); |
|
82 | 83 | gelf_getehdr (this->e, &this->ehdr ); |
|
83 | 84 | elf_getshdrstrndx (this->e, &this->shstrndx); |
|
84 | 85 | this->updateSegments(); |
|
85 | 86 | this->updateSections(); |
|
86 | 87 | this->updateSymbols(); |
|
87 | 88 | this->opened = true; |
|
88 | 89 | return 1; |
|
89 | 90 | } |
|
90 | 91 | |
|
91 | 92 | bool ElfFile::isopened() |
|
92 | 93 | { |
|
93 | 94 | return this->opened; |
|
94 | 95 | } |
|
95 | 96 | |
|
96 | 97 | int ElfFile::closeFile() |
|
97 | 98 | { |
|
98 | 99 | if(this->elfFile!=NULL) |
|
99 | 100 | { |
|
100 | 101 | if(this->e!=NULL) |
|
101 | 102 | { |
|
102 | 103 | elf_end(this->e); |
|
103 | 104 | this->e = NULL; |
|
104 | 105 | } |
|
105 | 106 | close(this->elfFile); |
|
106 | 107 | this->elfFile = NULL; |
|
107 | 108 | } |
|
108 | 109 | this->opened = false; |
|
109 | 110 | return 0; |
|
110 | 111 | } |
|
111 | 112 | |
|
112 | 113 | |
|
113 | 114 | QList<codeFragment*> ElfFile::getFragments(QStringList fragmentList) |
|
114 | 115 | { |
|
115 | 116 | QList<codeFragment*> fragments; |
|
116 | 117 | if (isopened()) |
|
117 | 118 | { |
|
118 | 119 | for(int i =0;i<fragmentList.count();i++) |
|
119 | 120 | { |
|
120 | 121 | fragments.append(getFragment(fragmentList.at(i))); |
|
121 | 122 | } |
|
122 | 123 | } |
|
123 | 124 | return fragments; |
|
124 | 125 | } |
|
125 | 126 | |
|
126 | 127 | QList<codeFragment*> ElfFile::getFragments() |
|
127 | 128 | { |
|
128 | 129 | return getFragments(QStringList()<<".data"<<".text"); |
|
129 | 130 | } |
|
130 | 131 | |
|
131 | 132 | codeFragment *ElfFile::getFragment(const QString &name) |
|
132 | 133 | { |
|
133 | 134 | codeFragment* fragment= new codeFragment(); |
|
134 | 135 | for(int i=0;i<getSectionCount();i++) |
|
135 | 136 | { |
|
136 | 137 | if(getSectionName(i) == name) |
|
137 | 138 | { |
|
138 | 139 | fragment->data =NULL; |
|
139 | 140 | fragment->size = getSectionDatasz(i); |
|
140 | 141 | fragment->address = getSectionPaddr(i); |
|
141 | 142 | getSectionData(i,&fragment->data); |
|
142 | 143 | } |
|
143 | 144 | } |
|
144 | ||
|
145 | return fragment; | |
|
145 | 146 | } |
|
146 | 147 | |
|
147 | 148 | |
|
148 | 149 | |
|
149 | 150 | |
|
150 | 151 | |
|
151 | 152 | |
|
152 | 153 | |
|
153 | 154 | QString elfresolveMachine(Elf64_Half e_machine) |
|
154 | 155 | { |
|
155 | 156 | QString machineName; |
|
156 | 157 | //Update from with bash script don't write it by yourself! |
|
157 | 158 | switch(e_machine) |
|
158 | 159 | { |
|
159 | 160 | case EM_NONE: |
|
160 | 161 | machineName = " No machine "; |
|
161 | 162 | break; |
|
162 | 163 | case EM_M32: |
|
163 | 164 | machineName = " AT&T WE 32100 "; |
|
164 | 165 | break; |
|
165 | 166 | case EM_SPARC: |
|
166 | 167 | machineName = " SUN SPARC "; |
|
167 | 168 | break; |
|
168 | 169 | case EM_386: |
|
169 | 170 | machineName = " Intel 80386 "; |
|
170 | 171 | break; |
|
171 | 172 | case EM_68K: |
|
172 | 173 | machineName = " Motorola m68k family "; |
|
173 | 174 | break; |
|
174 | 175 | case EM_88K: |
|
175 | 176 | machineName = " Motorola m88k family "; |
|
176 | 177 | break; |
|
177 | 178 | case EM_860: |
|
178 | 179 | machineName = " Intel 80860 "; |
|
179 | 180 | break; |
|
180 | 181 | case EM_MIPS: |
|
181 | 182 | machineName = " MIPS R3000 big-endian "; |
|
182 | 183 | break; |
|
183 | 184 | case EM_S370: |
|
184 | 185 | machineName = " IBM System/370 "; |
|
185 | 186 | break; |
|
186 | 187 | case EM_MIPS_RS3_LE: |
|
187 | 188 | machineName = " MIPS R3000 little-endian "; |
|
188 | 189 | break; |
|
189 | 190 | case EM_PARISC: |
|
190 | 191 | machineName = " HPPA "; |
|
191 | 192 | break; |
|
192 | 193 | case EM_VPP500: |
|
193 | 194 | machineName = " Fujitsu VPP500 "; |
|
194 | 195 | break; |
|
195 | 196 | case EM_SPARC32PLUS: |
|
196 | 197 | machineName = " Sun's \"v8plus\" "; |
|
197 | 198 | break; |
|
198 | 199 | case EM_960: |
|
199 | 200 | machineName = " Intel 80960 "; |
|
200 | 201 | break; |
|
201 | 202 | case EM_PPC: |
|
202 | 203 | machineName = " PowerPC "; |
|
203 | 204 | break; |
|
204 | 205 | case EM_PPC64: |
|
205 | 206 | machineName = " PowerPC 64-bit "; |
|
206 | 207 | break; |
|
207 | 208 | case EM_S390: |
|
208 | 209 | machineName = " IBM S390 "; |
|
209 | 210 | break; |
|
210 | 211 | case EM_V800: |
|
211 | 212 | machineName = " NEC V800 series "; |
|
212 | 213 | break; |
|
213 | 214 | case EM_FR20: |
|
214 | 215 | machineName = " Fujitsu FR20 "; |
|
215 | 216 | break; |
|
216 | 217 | case EM_RH32: |
|
217 | 218 | machineName = " TRW RH-32 "; |
|
218 | 219 | break; |
|
219 | 220 | case EM_RCE: |
|
220 | 221 | machineName = " Motorola RCE "; |
|
221 | 222 | break; |
|
222 | 223 | case EM_ARM: |
|
223 | 224 | machineName = " ARM "; |
|
224 | 225 | break; |
|
225 | 226 | case EM_FAKE_ALPHA: |
|
226 | 227 | machineName = " Digital Alpha "; |
|
227 | 228 | break; |
|
228 | 229 | case EM_SH: |
|
229 | 230 | machineName = " Hitachi SH "; |
|
230 | 231 | break; |
|
231 | 232 | case EM_SPARCV9: |
|
232 | 233 | machineName = " SPARC v9 64-bit "; |
|
233 | 234 | break; |
|
234 | 235 | case EM_TRICORE: |
|
235 | 236 | machineName = " Siemens Tricore "; |
|
236 | 237 | break; |
|
237 | 238 | case EM_ARC: |
|
238 | 239 | machineName = " Argonaut RISC Core "; |
|
239 | 240 | break; |
|
240 | 241 | case EM_H8_300: |
|
241 | 242 | machineName = " Hitachi H8/300 "; |
|
242 | 243 | break; |
|
243 | 244 | case EM_H8_300H: |
|
244 | 245 | machineName = " Hitachi H8/300H "; |
|
245 | 246 | break; |
|
246 | 247 | case EM_H8S: |
|
247 | 248 | machineName = " Hitachi H8S "; |
|
248 | 249 | break; |
|
249 | 250 | case EM_H8_500: |
|
250 | 251 | machineName = " Hitachi H8/500 "; |
|
251 | 252 | break; |
|
252 | 253 | case EM_IA_64: |
|
253 | 254 | machineName = " Intel Merced "; |
|
254 | 255 | break; |
|
255 | 256 | case EM_MIPS_X: |
|
256 | 257 | machineName = " Stanford MIPS-X "; |
|
257 | 258 | break; |
|
258 | 259 | case EM_COLDFIRE: |
|
259 | 260 | machineName = " Motorola Coldfire "; |
|
260 | 261 | break; |
|
261 | 262 | case EM_68HC12: |
|
262 | 263 | machineName = " Motorola M68HC12 "; |
|
263 | 264 | break; |
|
264 | 265 | case EM_MMA: |
|
265 | 266 | machineName = " Fujitsu MMA Multimedia Accelerator"; |
|
266 | 267 | break; |
|
267 | 268 | case EM_PCP: |
|
268 | 269 | machineName = " Siemens PCP "; |
|
269 | 270 | break; |
|
270 | 271 | case EM_NCPU: |
|
271 | 272 | machineName = " Sony nCPU embeeded RISC "; |
|
272 | 273 | break; |
|
273 | 274 | case EM_NDR1: |
|
274 | 275 | machineName = " Denso NDR1 microprocessor "; |
|
275 | 276 | break; |
|
276 | 277 | case EM_STARCORE: |
|
277 | 278 | machineName = " Motorola Start*Core processor "; |
|
278 | 279 | break; |
|
279 | 280 | case EM_ME16: |
|
280 | 281 | machineName = " Toyota ME16 processor "; |
|
281 | 282 | break; |
|
282 | 283 | case EM_ST100: |
|
283 | 284 | machineName = " STMicroelectronic ST100 processor "; |
|
284 | 285 | break; |
|
285 | 286 | case EM_TINYJ: |
|
286 | 287 | machineName = " Advanced Logic Corp. Tinyj emb.fam"; |
|
287 | 288 | break; |
|
288 | 289 | case EM_X86_64: |
|
289 | 290 | machineName = " AMD x86-64 architecture "; |
|
290 | 291 | break; |
|
291 | 292 | case EM_PDSP: |
|
292 | 293 | machineName = " Sony DSP Processor "; |
|
293 | 294 | break; |
|
294 | 295 | case EM_FX66: |
|
295 | 296 | machineName = " Siemens FX66 microcontroller "; |
|
296 | 297 | break; |
|
297 | 298 | case EM_ST9PLUS: |
|
298 | 299 | machineName = " STMicroelectronics ST9+ 8/16 mc "; |
|
299 | 300 | break; |
|
300 | 301 | case EM_ST7: |
|
301 | 302 | machineName = " STmicroelectronics ST7 8 bit mc "; |
|
302 | 303 | break; |
|
303 | 304 | case EM_68HC16: |
|
304 | 305 | machineName = " Motorola MC68HC16 microcontroller "; |
|
305 | 306 | break; |
|
306 | 307 | case EM_68HC11: |
|
307 | 308 | machineName = " Motorola MC68HC11 microcontroller "; |
|
308 | 309 | break; |
|
309 | 310 | case EM_68HC08: |
|
310 | 311 | machineName = " Motorola MC68HC08 microcontroller "; |
|
311 | 312 | break; |
|
312 | 313 | case EM_68HC05: |
|
313 | 314 | machineName = " Motorola MC68HC05 microcontroller "; |
|
314 | 315 | break; |
|
315 | 316 | case EM_SVX: |
|
316 | 317 | machineName = " Silicon Graphics SVx "; |
|
317 | 318 | break; |
|
318 | 319 | case EM_ST19: |
|
319 | 320 | machineName = " STMicroelectronics ST19 8 bit mc "; |
|
320 | 321 | break; |
|
321 | 322 | case EM_VAX: |
|
322 | 323 | machineName = " Digital VAX "; |
|
323 | 324 | break; |
|
324 | 325 | case EM_CRIS: |
|
325 | 326 | machineName = " Axis Communications 32-bit embedded processor "; |
|
326 | 327 | break; |
|
327 | 328 | case EM_JAVELIN: |
|
328 | 329 | machineName = " Infineon Technologies 32-bit embedded processor "; |
|
329 | 330 | break; |
|
330 | 331 | case EM_FIREPATH: |
|
331 | 332 | machineName = " Element 14 64-bit DSP Processor "; |
|
332 | 333 | break; |
|
333 | 334 | case EM_ZSP: |
|
334 | 335 | machineName = " LSI Logic 16-bit DSP Processor "; |
|
335 | 336 | break; |
|
336 | 337 | case EM_MMIX: |
|
337 | 338 | machineName = " Donald Knuth's educational 64-bit processor "; |
|
338 | 339 | break; |
|
339 | 340 | case EM_HUANY: |
|
340 | 341 | machineName = " Harvard University machine-independent object files "; |
|
341 | 342 | break; |
|
342 | 343 | case EM_PRISM: |
|
343 | 344 | machineName = " SiTera Prism "; |
|
344 | 345 | break; |
|
345 | 346 | case EM_AVR: |
|
346 | 347 | machineName = " Atmel AVR 8-bit microcontroller "; |
|
347 | 348 | break; |
|
348 | 349 | case EM_FR30: |
|
349 | 350 | machineName = " Fujitsu FR30 "; |
|
350 | 351 | break; |
|
351 | 352 | case EM_D10V: |
|
352 | 353 | machineName = " Mitsubishi D10V "; |
|
353 | 354 | break; |
|
354 | 355 | case EM_D30V: |
|
355 | 356 | machineName = " Mitsubishi D30V "; |
|
356 | 357 | break; |
|
357 | 358 | case EM_V850: |
|
358 | 359 | machineName = " NEC v850 "; |
|
359 | 360 | break; |
|
360 | 361 | case EM_M32R: |
|
361 | 362 | machineName = " Mitsubishi M32R "; |
|
362 | 363 | break; |
|
363 | 364 | case EM_MN10300: |
|
364 | 365 | machineName = " Matsushita MN10300 "; |
|
365 | 366 | break; |
|
366 | 367 | case EM_MN10200: |
|
367 | 368 | machineName = " Matsushita MN10200 "; |
|
368 | 369 | break; |
|
369 | 370 | case EM_PJ: |
|
370 | 371 | machineName = " picoJava "; |
|
371 | 372 | break; |
|
372 | 373 | case EM_OPENRISC: |
|
373 | 374 | machineName = " OpenRISC 32-bit embedded processor "; |
|
374 | 375 | break; |
|
375 | 376 | case EM_ARC_A5: |
|
376 | 377 | machineName = " ARC Cores Tangent-A5 "; |
|
377 | 378 | break; |
|
378 | 379 | case EM_XTENSA: |
|
379 | 380 | machineName = " Tensilica Xtensa Architecture "; |
|
380 | 381 | break; |
|
381 | 382 | case EM_AARCH64: |
|
382 | 383 | machineName = " ARM AARCH64 "; |
|
383 | 384 | break; |
|
384 | 385 | case EM_TILEPRO: |
|
385 | 386 | machineName = " Tilera TILEPro "; |
|
386 | 387 | break; |
|
387 | 388 | case EM_MICROBLAZE: |
|
388 | 389 | machineName = " Xilinx MicroBlaze "; |
|
389 | 390 | break; |
|
390 | 391 | case EM_TILEGX: |
|
391 | 392 | machineName = " Tilera TILE-Gx "; |
|
392 | 393 | break; |
|
393 | 394 | case EM_NUM: |
|
394 | 395 | machineName = ""; |
|
395 | 396 | break; |
|
396 | 397 | default: |
|
397 | 398 | machineName ="Unknow Machine"; |
|
398 | 399 | break; |
|
399 | 400 | } |
|
400 | 401 | return machineName; |
|
401 | 402 | } |
|
402 | 403 | |
|
403 | 404 | |
|
404 | 405 | |
|
405 | 406 | |
|
406 | 407 | QString ElfFile::getClass() |
|
407 | 408 | { |
|
408 | 409 | if(this->e!=NULL) |
|
409 | 410 | { |
|
410 | 411 | int eclass = gelf_getclass(this->e); |
|
411 | 412 | if(eclass==ELFCLASS32)return "ELF32"; |
|
412 | 413 | if(eclass==ELFCLASS64)return "ELF64"; |
|
413 | 414 | } |
|
414 | 415 | return "none"; |
|
415 | 416 | } |
|
416 | 417 | |
|
417 | 418 | |
|
418 | 419 | bool ElfFile::iself() |
|
419 | 420 | { |
|
420 | 421 | return (this->getType()!="Unknow"); |
|
421 | 422 | } |
|
422 | 423 | |
|
423 | 424 | QString ElfFile::getArchitecture() |
|
424 | 425 | { |
|
425 | 426 | if(this->e!=NULL) |
|
426 | 427 | { |
|
427 | 428 | return elfresolveMachine(this->ehdr.e_machine); |
|
428 | 429 | } |
|
429 | 430 | return ""; |
|
430 | 431 | } |
|
431 | 432 | |
|
432 | 433 | |
|
433 | 434 | QString ElfFile::getType() |
|
434 | 435 | { |
|
435 | 436 | QString kind(""); |
|
436 | 437 | if(this->e!=NULL) |
|
437 | 438 | { |
|
438 | 439 | switch(this->ek) |
|
439 | 440 | { |
|
440 | 441 | case ELF_K_AR: |
|
441 | 442 | kind = "Archive"; |
|
442 | 443 | break; |
|
443 | 444 | case ELF_K_ELF: |
|
444 | 445 | kind = "Elf"; |
|
445 | 446 | break; |
|
446 | 447 | case ELF_K_COFF: |
|
447 | 448 | kind = "COFF"; |
|
448 | 449 | break; |
|
449 | 450 | case ELF_K_NUM: |
|
450 | 451 | kind = "NUM"; |
|
451 | 452 | break; |
|
452 | 453 | case ELF_K_NONE: |
|
453 | 454 | kind = "Data"; |
|
454 | 455 | break; |
|
455 | 456 | default: |
|
456 | 457 | kind = "Unknow"; |
|
457 | 458 | break; |
|
458 | 459 | } |
|
459 | 460 | } |
|
460 | 461 | return kind; |
|
461 | 462 | } |
|
462 | 463 | |
|
463 | 464 | QString ElfFile::getEndianness() |
|
464 | 465 | { |
|
465 | 466 | if(this->e!=NULL) |
|
466 | 467 | { |
|
467 | 468 | if(this->ehdr.e_ident[EI_DATA]==ELFDATA2LSB)return "2's complement, little endian"; |
|
468 | 469 | if(this->ehdr.e_ident[EI_DATA]==ELFDATA2MSB)return "2's complement, big endian"; |
|
469 | 470 | } |
|
470 | 471 | return "none"; |
|
471 | 472 | } |
|
472 | 473 | |
|
473 | 474 | QString ElfFile::getABI() |
|
474 | 475 | { |
|
475 | 476 | if(this->e!=NULL) |
|
476 | 477 | { |
|
477 | 478 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_NONE)return "UNIX System V ABI"; |
|
478 | 479 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_SYSV)return "Alias"; |
|
479 | 480 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_HPUX)return "HP-UX"; |
|
480 | 481 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_NETBSD)return "NetBSD"; |
|
481 | 482 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_GNU)return "Object uses GNU ELF extensions"; |
|
482 | 483 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_LINUX)return "Compatibility alias"; |
|
483 | 484 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_SOLARIS)return "Sun Solaris"; |
|
484 | 485 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_AIX)return "IBM AIX"; |
|
485 | 486 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_IRIX)return "SGI Irix"; |
|
486 | 487 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_FREEBSD)return "FreeBSD"; |
|
487 | 488 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX"; |
|
488 | 489 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto"; |
|
489 | 490 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD"; |
|
490 | 491 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI"; |
|
491 | 492 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM"; |
|
492 | 493 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application"; |
|
493 | 494 | } |
|
494 | 495 | return "none"; |
|
495 | 496 | } |
|
496 | 497 | |
|
497 | 498 | |
|
498 | 499 | qint64 ElfFile::getVersion() |
|
499 | 500 | { |
|
500 | 501 | if(this->e!=NULL) |
|
501 | 502 | { |
|
502 | 503 | return this->ehdr.e_version; |
|
503 | 504 | } |
|
504 | 505 | } |
|
505 | 506 | |
|
506 | 507 | qint64 ElfFile::getEntryPointAddress() |
|
507 | 508 | { |
|
508 | 509 | if(this->e!=NULL) |
|
509 | 510 | { |
|
510 | 511 | return this->ehdr.e_entry; |
|
511 | 512 | } |
|
512 | 513 | } |
|
513 | 514 | |
|
514 | 515 | |
|
515 | 516 | int ElfFile::getSectionCount() |
|
516 | 517 | { |
|
517 | 518 | return (int)this->SectionCount; |
|
518 | 519 | } |
|
519 | 520 | |
|
520 | 521 | int ElfFile::getSymbolCount() |
|
521 | 522 | { |
|
522 | 523 | return (int)this->SymbolCount; |
|
523 | 524 | } |
|
524 | 525 | |
|
525 | 526 | |
|
526 | 527 | int ElfFile::getSegmentCount() |
|
527 | 528 | { |
|
528 | 529 | return (int)this->SegmentCount; |
|
529 | 530 | } |
|
530 | 531 | |
|
531 | 532 | |
|
532 | 533 | QString ElfFile::getSegmentType(int index) |
|
533 | 534 | { |
|
534 | 535 | QString type(""); |
|
535 | 536 | if(this->e!=NULL) |
|
536 | 537 | { |
|
537 | 538 | if(index < this->Segments.count()) |
|
538 | 539 | { |
|
539 | 540 | switch(this->Segments.at(index)->p_type) |
|
540 | 541 | { |
|
541 | 542 | case PT_NULL: |
|
542 | 543 | type = "Program header table entry unused"; |
|
543 | 544 | break; |
|
544 | 545 | case PT_LOAD: |
|
545 | 546 | type = "Loadable program segment"; |
|
546 | 547 | break; |
|
547 | 548 | case PT_DYNAMIC : |
|
548 | 549 | type = "Dynamic linking information"; |
|
549 | 550 | break; |
|
550 | 551 | case PT_INTERP: |
|
551 | 552 | type ="Program interpreter"; |
|
552 | 553 | break; |
|
553 | 554 | case PT_NOTE: |
|
554 | 555 | type = "Auxiliary information"; |
|
555 | 556 | break; |
|
556 | 557 | case PT_SHLIB: |
|
557 | 558 | type = "Reserved"; |
|
558 | 559 | break; |
|
559 | 560 | case PT_PHDR: |
|
560 | 561 | type = "Entry for header table itself"; |
|
561 | 562 | break; |
|
562 | 563 | case PT_TLS: |
|
563 | 564 | type = "Thread-local storage segment"; |
|
564 | 565 | break; |
|
565 | 566 | case PT_NUM: |
|
566 | 567 | type = "Number of defined types"; |
|
567 | 568 | break; |
|
568 | 569 | case PT_LOOS: |
|
569 | 570 | type = "Start of OS-specific"; |
|
570 | 571 | break; |
|
571 | 572 | case PT_SUNWSTACK: |
|
572 | 573 | type = "Stack segment"; |
|
573 | 574 | break; |
|
574 | 575 | case PT_LOPROC: |
|
575 | 576 | type = "Start of processor-specific"; |
|
576 | 577 | break; |
|
577 | 578 | case PT_HIPROC: |
|
578 | 579 | type = "End of processor-specific"; |
|
579 | 580 | break; |
|
580 | 581 | default: |
|
581 | 582 | type = "Unknow Section Type"; |
|
582 | 583 | break; |
|
583 | 584 | } |
|
584 | 585 | } |
|
585 | 586 | } |
|
586 | 587 | |
|
587 | 588 | return type; |
|
588 | 589 | } |
|
589 | 590 | |
|
590 | 591 | |
|
591 | 592 | qint64 ElfFile::getSegmentOffset(int index) |
|
592 | 593 | { |
|
593 | 594 | int64_t Offset; |
|
594 | 595 | if(this->e!=NULL) |
|
595 | 596 | { |
|
596 | 597 | if(index < this->Segments.count()) |
|
597 | 598 | { |
|
598 | 599 | Offset = (int64_t)this->Segments.at(index)->p_offset; |
|
599 | 600 | } |
|
600 | 601 | } |
|
601 | 602 | return Offset; |
|
602 | 603 | } |
|
603 | 604 | |
|
604 | 605 | |
|
605 | 606 | qint64 ElfFile::getSegmentVaddr(int index) |
|
606 | 607 | { |
|
607 | 608 | int64_t Vaddr = 0; |
|
608 | 609 | if(this->e!=NULL) |
|
609 | 610 | { |
|
610 | 611 | if(index < this->Segments.count()) |
|
611 | 612 | { |
|
612 | 613 | Vaddr = (int64_t)this->Segments.at(index)->p_vaddr; |
|
613 | 614 | } |
|
614 | 615 | } |
|
615 | 616 | return Vaddr; |
|
616 | 617 | } |
|
617 | 618 | |
|
618 | 619 | |
|
619 | 620 | qint64 ElfFile::getSegmentPaddr(int index) |
|
620 | 621 | { |
|
621 | 622 | int64_t Paddr=0; |
|
622 | 623 | if(this->e!=NULL) |
|
623 | 624 | { |
|
624 | 625 | if(index < this->Segments.count()) |
|
625 | 626 | { |
|
626 | 627 | Paddr = (int64_t)this->Segments.at(index)->p_paddr; |
|
627 | 628 | } |
|
628 | 629 | } |
|
629 | 630 | return Paddr; |
|
630 | 631 | } |
|
631 | 632 | |
|
632 | 633 | qint64 ElfFile::getSectionPaddr(int index) |
|
633 | 634 | { |
|
634 | 635 | int64_t Paddr=0; |
|
635 | 636 | if(this->e!=NULL) |
|
636 | 637 | { |
|
637 | 638 | if(index < this->sections.count()) |
|
638 | 639 | { |
|
639 | 640 | Paddr = (int64_t)this->sections.at(index)->section_header->sh_addr; |
|
640 | 641 | } |
|
641 | 642 | } |
|
642 | 643 | return Paddr; |
|
643 | 644 | } |
|
644 | 645 | |
|
645 | 646 | |
|
646 | 647 | qint64 ElfFile::getSegmentFilesz(int index) |
|
647 | 648 | { |
|
648 | 649 | int64_t FileSz=0; |
|
649 | 650 | if(this->e!=NULL) |
|
650 | 651 | { |
|
651 | 652 | if(index < this->Segments.count()) |
|
652 | 653 | { |
|
653 | 654 | FileSz = (int64_t)this->Segments.at(index)->p_filesz; |
|
654 | 655 | } |
|
655 | 656 | } |
|
656 | 657 | return FileSz; |
|
657 | 658 | } |
|
658 | 659 | |
|
659 | 660 | qint64 ElfFile::getSectionDatasz(int index) |
|
660 | 661 | { |
|
661 | 662 | int64_t DataSz=0; |
|
662 | 663 | if(this->e!=NULL) |
|
663 | 664 | { |
|
664 | 665 | if(index < this->sections.count()) |
|
665 | 666 | { |
|
666 | 667 | DataSz = (int64_t)this->sections.at(index)->data->d_size; |
|
667 | 668 | } |
|
668 | 669 | } |
|
669 | 670 | return DataSz; |
|
670 | 671 | } |
|
671 | 672 | |
|
672 | 673 | bool ElfFile::getSectionData(int index, char **buffer) |
|
673 | 674 | { |
|
674 | 675 | if(this->e!=NULL) |
|
675 | 676 | { |
|
676 | 677 | if(index < this->sections.count()) |
|
677 | 678 | { |
|
678 | 679 | *buffer = (char *)this->sections.at(index)->data->d_buf; |
|
679 | 680 | return true; |
|
680 | 681 | } |
|
681 | 682 | } |
|
682 | 683 | return false; |
|
683 | 684 | } |
|
684 | 685 | |
|
685 | 686 | |
|
686 | 687 | qint64 ElfFile::getSegmentMemsz(int index) |
|
687 | 688 | { |
|
688 | 689 | int64_t MemSz=0; |
|
689 | 690 | if(this->e!=NULL) |
|
690 | 691 | { |
|
691 | 692 | if(index < this->Segments.count()) |
|
692 | 693 | { |
|
693 | 694 | MemSz = (int64_t)this->Segments.at(index)->p_memsz; |
|
694 | 695 | } |
|
695 | 696 | } |
|
696 | 697 | return MemSz; |
|
697 | 698 | } |
|
698 | 699 | |
|
699 | 700 | qint64 ElfFile::getSectionMemsz(int index) |
|
700 | 701 | { |
|
701 | 702 | int64_t MemSz=0; |
|
702 | 703 | if(this->e!=NULL) |
|
703 | 704 | { |
|
704 | 705 | if(index < this->sections.count()) |
|
705 | 706 | { |
|
706 | 707 | MemSz = (int64_t)this->sections.at(index)->section_header->sh_size; |
|
707 | 708 | } |
|
708 | 709 | } |
|
709 | 710 | return MemSz; |
|
710 | 711 | } |
|
711 | 712 | |
|
712 | 713 | |
|
713 | 714 | QString ElfFile::getSegmentFlags(int index) |
|
714 | 715 | { |
|
715 | 716 | QString flags(""); |
|
716 | 717 | if(this->e!=NULL) |
|
717 | 718 | { |
|
718 | 719 | if(index < this->Segments.count()) |
|
719 | 720 | { |
|
720 | 721 | if((this->Segments.at(index)->p_flags&PF_X) == PF_X)flags+="x"; |
|
721 | 722 | if((this->Segments.at(index)->p_flags&PF_W) == PF_W)flags+="w"; |
|
722 | 723 | if((this->Segments.at(index)->p_flags&PF_R) == PF_R)flags+="r"; |
|
723 | 724 | if((this->Segments.at(index)->p_flags&PF_MASKOS) == PF_MASKOS)flags+=" OS-specific"; |
|
724 | 725 | if((this->Segments.at(index)->p_flags&PF_MASKPROC) == PF_MASKPROC)flags+=" Processor-specific"; |
|
725 | 726 | } |
|
726 | 727 | } |
|
727 | 728 | return flags; |
|
728 | 729 | } |
|
729 | 730 | |
|
730 | 731 | |
|
731 | 732 | QString ElfFile::getSectionName(int index) |
|
732 | 733 | { |
|
733 | 734 | if((index<sections.count()) && (index>=0)) |
|
734 | 735 | { |
|
735 | 736 | char* nameChr = elf_strptr(this->e , this->shstrndx , this->sections.at(index)->section_header->sh_name); |
|
736 | 737 | return QString(nameChr); |
|
737 | 738 | } |
|
738 | 739 | return ""; |
|
739 | 740 | } |
|
740 | 741 | |
|
741 | 742 | |
|
742 | 743 | void ElfFile::updateSections() |
|
743 | 744 | { |
|
744 | 745 | for(int i=0;i<this->sections.count();i++) |
|
745 | 746 | { |
|
746 | 747 | delete this->sections.at(i); |
|
747 | 748 | } |
|
748 | 749 | this->sections.clear(); |
|
749 | 750 | this->scn = elf_nextscn (this->e , NULL ); |
|
750 | 751 | this->SectionCount = 0; |
|
751 | 752 | while( this->scn != NULL ) |
|
752 | 753 | { |
|
753 | 754 | GElf_Shdr* shdr = (GElf_Shdr*)malloc(sizeof(GElf_Shdr)); |
|
754 | 755 | gelf_getshdr ( this->scn , shdr ); |
|
755 | 756 | Elf_Data* data = elf_getdata(this->scn, NULL); |
|
756 | 757 | this->sections.append(new Elf_Section(data,shdr)); |
|
757 | 758 | this->SectionCount+=1; |
|
758 | 759 | this->scn = elf_nextscn(e , scn); |
|
759 | 760 | } |
|
760 | 761 | } |
|
761 | 762 | |
|
762 | 763 | |
|
763 | 764 | void ElfFile::updateSegments() |
|
764 | 765 | { |
|
765 | 766 | elf_getphdrnum (this->e , &this->SegmentCount); |
|
766 | 767 | for(int i=0;i<this->Segments.count();i++) |
|
767 | 768 | { |
|
768 | 769 | free(this->Segments.at(i)); |
|
769 | 770 | } |
|
770 | 771 | this->Segments.clear(); |
|
771 | 772 | for(int i=0;i<this->SegmentCount;i++) |
|
772 | 773 | { |
|
773 | 774 | GElf_Phdr* header=(GElf_Phdr*)malloc(sizeof(GElf_Phdr)); |
|
774 | 775 | gelf_getphdr (this->e , i , header ); |
|
775 | 776 | this->Segments.append(header); |
|
776 | 777 | } |
|
777 | 778 | } |
|
778 | 779 | |
|
779 | 780 | void ElfFile::updateSymbols() |
|
780 | 781 | { |
|
781 | 782 | for(int i=0;i<symbols.count();i++) |
|
782 | 783 | { |
|
783 | 784 | delete this->symbols.at(i); |
|
784 | 785 | } |
|
785 | 786 | this->symbols.clear(); |
|
786 | 787 | updateSections(); //Useless in most case but safer to do it |
|
787 | 788 | for(int i=0;i<SectionCount;i++) |
|
788 | 789 | { |
|
789 | 790 | //First find Symbol table |
|
790 | 791 | if(this->getSectionName(i)==".symtab") |
|
791 | 792 | { |
|
792 | 793 | Elf_Section* sec = sections.at(i); |
|
793 | 794 | this->SymbolCount = sec->section_header->sh_size / sec->section_header->sh_entsize; |
|
794 | 795 | //Then list all symbols |
|
795 | 796 | for(int j=0;j<this->SymbolCount;j++) |
|
796 | 797 | { |
|
797 | 798 | GElf_Sym* esym = (GElf_Sym*)malloc(sizeof(GElf_Sym)); |
|
798 | 799 | gelf_getsym(sec->data, j, esym); |
|
799 | 800 | QString name = elf_strptr(this->e,sec->section_header->sh_link,esym->st_name); |
|
800 | 801 | Elf_Symbol* sym = new Elf_Symbol(name,esym); |
|
801 | 802 | symbols.append(sym); |
|
802 | 803 | } |
|
803 | 804 | } |
|
804 | 805 | } |
|
805 | 806 | |
|
806 | 807 | } |
|
807 | 808 | |
|
808 | 809 | |
|
809 | 810 | |
|
810 | 811 | QString ElfFile::getSectionType(int index) |
|
811 | 812 | { |
|
812 | 813 | QString type(""); |
|
813 | 814 | if(this->e!=NULL) |
|
814 | 815 | { |
|
815 | 816 | if(index < this->Segments.count()) |
|
816 | 817 | { |
|
817 | 818 | switch(this->Segments.at(index)->p_type) |
|
818 | 819 | { |
|
819 | 820 | case SHT_NULL : type = "Section header table entry unused"; break; |
|
820 | 821 | case SHT_PROGBITS : type = "Program data"; break; |
|
821 | 822 | case SHT_SYMTAB : type = "Symbol table"; break; |
|
822 | 823 | case SHT_STRTAB : type = "String table"; break; |
|
823 | 824 | case SHT_RELA : type = "Relocation entries with addends"; break; |
|
824 | 825 | case SHT_HASH : type = "Symbol hash table"; break; |
|
825 | 826 | case SHT_DYNAMIC : type = "Dynamic linking information"; break; |
|
826 | 827 | case SHT_NOTE : type = "Notes"; break; |
|
827 | 828 | case SHT_NOBITS :type = "Program space with no data (bss)"; break; |
|
828 | 829 | case SHT_REL :type = "Relocation entries, no addends"; break; |
|
829 | 830 | case SHT_SHLIB : type = "Reserved"; break; |
|
830 | 831 | case SHT_DYNSYM : type = "Dynamic linker symbol table"; break; |
|
831 | 832 | case SHT_INIT_ARRAY : type = "Array of constructors"; break; |
|
832 | 833 | case SHT_FINI_ARRAY : type = "Array of destructors"; break; |
|
833 | 834 | case SHT_PREINIT_ARRAY : type = "Array of pre-constructors"; break; |
|
834 | 835 | case SHT_GROUP : type = "Section group"; break; |
|
835 | 836 | case SHT_SYMTAB_SHNDX : type = "Extended section indeces"; break; |
|
836 | 837 | case SHT_NUM : type = "Number of defined types. "; break; |
|
837 | 838 | case SHT_LOOS : type = "Start OS-specific. "; break; |
|
838 | 839 | case SHT_LOSUNW : type = "Sun-specific low bound. "; break; |
|
839 | 840 | case SHT_SUNW_COMDAT : type = " "; break; |
|
840 | 841 | case SHT_SUNW_syminfo : type = " "; break; |
|
841 | 842 | case SHT_GNU_verdef : type = "Version definition section. "; break; |
|
842 | 843 | case SHT_GNU_verneed : type = "Version needs section. "; break; |
|
843 | 844 | case SHT_GNU_versym : type = "Version symbol table. "; break; |
|
844 | 845 | case SHT_LOPROC : type = "Start of processor-specific"; break; |
|
845 | 846 | case SHT_HIPROC : type = "End of processor-specific"; break; |
|
846 | 847 | case SHT_HIUSER : type = "End of application-specific"; break; |
|
847 | 848 | } |
|
848 | 849 | } |
|
849 | 850 | } |
|
850 | 851 | return type; |
|
851 | 852 | } |
|
852 | 853 | |
|
853 | 854 | int ElfFile::getSectionIndex(QString name) |
|
854 | 855 | { |
|
855 | 856 | if(this->e!=NULL) |
|
856 | 857 | { |
|
857 | 858 | for(int i=0;i<sections.count();i++) |
|
858 | 859 | { |
|
859 | 860 | if(getSectionName(i)==name) |
|
860 | 861 | return i; |
|
861 | 862 | } |
|
862 | 863 | } |
|
863 | 864 | return -1; |
|
864 | 865 | } |
|
865 | 866 | |
|
866 | 867 | QString ElfFile::getSymbolName(int index) |
|
867 | 868 | { |
|
868 | 869 | if(this->e!=NULL) |
|
869 | 870 | { |
|
870 | 871 | if(index < this->symbols.count()) |
|
871 | 872 | { |
|
872 | 873 | return symbols.at(index)->name; |
|
873 | 874 | } |
|
874 | 875 | } |
|
875 | 876 | return ""; |
|
876 | 877 | } |
|
877 | 878 | |
|
878 | 879 | QString ElfFile::getSymbolType(int index) |
|
879 | 880 | { |
|
880 | 881 | if(this->e!=NULL) |
|
881 | 882 | { |
|
882 | 883 | if(index < this->symbols.count()) |
|
883 | 884 | { |
|
884 | 885 | int type = GELF_ST_TYPE(symbols.at(index)->sym->st_info); |
|
885 | 886 | switch(type) |
|
886 | 887 | { |
|
887 | 888 | case STT_NOTYPE: |
|
888 | 889 | return "No Type"; |
|
889 | 890 | break; |
|
890 | 891 | case STT_OBJECT: |
|
891 | 892 | return "Object"; |
|
892 | 893 | break; |
|
893 | 894 | case STT_FUNC: |
|
894 | 895 | return "Function"; |
|
895 | 896 | break; |
|
896 | 897 | case STT_SECTION: |
|
897 | 898 | return "Section"; |
|
898 | 899 | break; |
|
899 | 900 | case STT_FILE: |
|
900 | 901 | return "File"; |
|
901 | 902 | break; |
|
902 | 903 | case STT_COMMON: |
|
903 | 904 | return "Common data object"; |
|
904 | 905 | break; |
|
905 | 906 | case STT_TLS: |
|
906 | 907 | return "Thread-local data object"; |
|
907 | 908 | break; |
|
908 | 909 | case STT_NUM: |
|
909 | 910 | return "Number of defined types"; |
|
910 | 911 | break; |
|
911 | 912 | case STT_LOOS: |
|
912 | 913 | return "Start of OS-specific"; |
|
913 | 914 | break; |
|
914 | 915 | case STT_HIOS: |
|
915 | 916 | return "End of OS-specific"; |
|
916 | 917 | break; |
|
917 | 918 | case STT_LOPROC: |
|
918 | 919 | return "Start of processor-specific"; |
|
919 | 920 | break; |
|
920 | 921 | case STT_HIPROC: |
|
921 | 922 | return "End of processor-specific"; |
|
922 | 923 | break; |
|
923 | 924 | default: |
|
924 | 925 | return "none"; |
|
925 | 926 | break; |
|
926 | 927 | } |
|
927 | 928 | } |
|
928 | 929 | } |
|
929 | 930 | return "none"; |
|
930 | 931 | } |
|
931 | 932 | |
|
932 | 933 | quint64 ElfFile::getSymbolSize(int index) |
|
933 | 934 | { |
|
934 | 935 | if(this->e!=NULL) |
|
935 | 936 | { |
|
936 | 937 | if((index < this->symbols.count()) && (index>=0)) |
|
937 | 938 | { |
|
938 | 939 | return symbols.at(index)->sym->st_size; |
|
939 | 940 | } |
|
940 | 941 | } |
|
941 | 942 | return 0; |
|
942 | 943 | } |
|
943 | 944 | |
|
944 | 945 | QString ElfFile::getSymbolSectionName(int index) |
|
945 | 946 | { |
|
946 | 947 | if(this->e!=NULL) |
|
947 | 948 | { |
|
948 | 949 | if((index < this->symbols.count()) && (index>=0)) |
|
949 | 950 | { |
|
950 | 951 | return getSectionName(symbols.at(index)->sym->st_shndx-1); |
|
951 | 952 | } |
|
952 | 953 | } |
|
953 | 954 | return "none"; |
|
954 | 955 | } |
|
955 | 956 | |
|
956 | 957 | int ElfFile::getSymbolSectionIndex(int index) |
|
957 | 958 | { |
|
958 | 959 | if(this->e!=NULL) |
|
959 | 960 | { |
|
960 | 961 | if((index < this->symbols.count()) && (index>=0)) |
|
961 | 962 | { |
|
962 | 963 | return symbols.at(index)->sym->st_shndx; |
|
963 | 964 | } |
|
964 | 965 | } |
|
965 | 966 | return 0; |
|
966 | 967 | } |
|
967 | 968 | |
|
968 | 969 | quint64 ElfFile::getSymbolAddress(int index) |
|
969 | 970 | { |
|
970 | 971 | if(this->e!=NULL) |
|
971 | 972 | { |
|
972 | 973 | if((index < this->symbols.count()) && (index>=0)) |
|
973 | 974 | { |
|
974 | 975 | return symbols.at(index)->sym->st_value; |
|
975 | 976 | } |
|
976 | 977 | } |
|
977 | 978 | return 0; |
|
978 | 979 | } |
|
979 | 980 | |
|
980 | 981 | QString ElfFile::getSymbolLinkType(int index) |
|
981 | 982 | { |
|
982 | 983 | if(this->e!=NULL) |
|
983 | 984 | { |
|
984 | 985 | if(index < this->symbols.count()) |
|
985 | 986 | { |
|
986 | 987 | int btype = GELF_ST_BIND(symbols.at(index)->sym->st_info); |
|
987 | 988 | switch(btype) |
|
988 | 989 | { |
|
989 | 990 | case STB_LOCAL: |
|
990 | 991 | return "Local"; |
|
991 | 992 | break; |
|
992 | 993 | case STB_GLOBAL: |
|
993 | 994 | return "Global"; |
|
994 | 995 | break; |
|
995 | 996 | case STB_WEAK: |
|
996 | 997 | return "Weak"; |
|
997 | 998 | break; |
|
998 | 999 | case STB_NUM: |
|
999 | 1000 | return "Number of defined types"; |
|
1000 | 1001 | break; |
|
1001 | 1002 | case STB_LOOS: |
|
1002 | 1003 | return "Start of OS-specific"; |
|
1003 | 1004 | break; |
|
1004 | 1005 | case STB_HIOS: |
|
1005 | 1006 | return "End of OS-specific"; |
|
1006 | 1007 | break; |
|
1007 | 1008 | case STB_LOPROC: |
|
1008 | 1009 | return "Start of processor-specific"; |
|
1009 | 1010 | break; |
|
1010 | 1011 | case STB_HIPROC: |
|
1011 | 1012 | return "End of processor-specific"; |
|
1012 | 1013 | break; |
|
1013 | 1014 | default: |
|
1014 | 1015 | return "none"; |
|
1015 | 1016 | break; |
|
1016 | 1017 | } |
|
1017 | 1018 | } |
|
1018 | 1019 | } |
|
1019 | 1020 | return "none"; |
|
1020 | 1021 | } |
|
1021 | 1022 | |
|
1022 | 1023 | bool ElfFile::isElf(const QString &File) |
|
1023 | 1024 | { |
|
1024 | 1025 | int file =0; |
|
1025 | 1026 | #ifdef _ELF_WINDOWS_ |
|
1026 | 1027 | file = open(File.toStdString().c_str(),O_RDONLY|O_BINARY ,0); |
|
1027 | 1028 | #else |
|
1028 | 1029 | file = open(File.toStdString().c_str(),O_RDONLY ,0); |
|
1029 | 1030 | #endif |
|
1030 | 1031 | char Magic[4]; |
|
1031 | 1032 | if(file!=-1) |
|
1032 | 1033 | { |
|
1033 | 1034 | read(file,Magic,4); |
|
1034 | 1035 | close(file); |
|
1035 | 1036 | if(Magic[0]==0x7f && Magic[1]==0x45 && Magic[2]==0x4c && Magic[3]==0x46) |
|
1036 | 1037 | { |
|
1037 | 1038 | return true; |
|
1038 | 1039 | } |
|
1039 | 1040 | } |
|
1040 | 1041 | return false; |
|
1041 | 1042 | } |
|
1043 | ||
|
1044 | bool ElfFile::toSrec(const QString &File) | |
|
1045 | { | |
|
1046 | return srecFile::toSrec(this->getFragments(),File); | |
|
1047 | } |
@@ -1,132 +1,134 | |||
|
1 | 1 | /*------------------------------------------------------------------------------ |
|
2 | 2 | -- This file is a part of the SocExplorer Software |
|
3 | 3 | -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS |
|
4 | 4 | -- |
|
5 | 5 | -- This program is free software; you can redistribute it and/or modify |
|
6 | 6 | -- it under the terms of the GNU General Public License as published by |
|
7 | 7 | -- the Free Software Foundation; either version 2 of the License, or |
|
8 | 8 | -- (at your option) any later version. |
|
9 | 9 | -- |
|
10 | 10 | -- This program is distributed in the hope that it will be useful, |
|
11 | 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 | 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 | 13 | -- GNU General Public License for more details. |
|
14 | 14 | -- |
|
15 | 15 | -- You should have received a copy of the GNU General Public License |
|
16 | 16 | -- along with this program; if not, write to the Free Software |
|
17 | 17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 | 18 | -------------------------------------------------------------------------------*/ |
|
19 | 19 | /*-- Author : Alexis Jeandet |
|
20 | 20 | -- Mail : alexis.jeandet@member.fsf.org |
|
21 | 21 | ----------------------------------------------------------------------------*/ |
|
22 |
#include <abstract |
|
|
22 | #include <abstractbinfile.h> | |
|
23 | 23 | #include <QtCore/QObject> |
|
24 | 24 | #include <QtCore/QStringList> |
|
25 | 25 | #include <libelf.h> |
|
26 | 26 | #include <gelf.h> |
|
27 | 27 | #include <sys/types.h> |
|
28 | 28 | #include <sys/stat.h> |
|
29 | 29 | #include <fcntl.h> |
|
30 | 30 | #include <unistd.h> |
|
31 | 31 | #ifndef ELFFILE_H |
|
32 | 32 | #define ELFFILE_H |
|
33 | 33 | |
|
34 | 34 | class Elf_Section |
|
35 | 35 | { |
|
36 | 36 | public: |
|
37 | 37 | Elf_Section(){} |
|
38 | 38 | Elf_Section(Elf_Data* data,GElf_Shdr* section_header) |
|
39 | 39 | { |
|
40 | 40 | this->data = data; |
|
41 | 41 | this->section_header = section_header; |
|
42 | 42 | } |
|
43 | 43 | ~Elf_Section() |
|
44 | 44 | { |
|
45 | 45 | free(section_header); |
|
46 | 46 | } |
|
47 | 47 | Elf_Data* data; |
|
48 | 48 | GElf_Shdr* section_header; |
|
49 | 49 | }; |
|
50 | 50 | |
|
51 | 51 | class Elf_Symbol |
|
52 | 52 | { |
|
53 | 53 | public: |
|
54 | 54 | Elf_Symbol(){} |
|
55 | 55 | Elf_Symbol(const QString& name,GElf_Sym* sym):name(name),sym(sym){} |
|
56 | 56 | ~Elf_Symbol(){free(sym);} |
|
57 | 57 | QString name; |
|
58 | 58 | GElf_Sym* sym; |
|
59 | 59 | }; |
|
60 | 60 | |
|
61 |
class ElfFile : public abstract |
|
|
61 | class ElfFile : public abstractBinFile | |
|
62 | 62 | { |
|
63 | 63 | Q_OBJECT |
|
64 | 64 | public: |
|
65 | 65 | ElfFile(); |
|
66 | 66 | ElfFile(const QString& File); |
|
67 | 67 | ~ElfFile(); |
|
68 | 68 | bool openFile(const QString& File); |
|
69 | 69 | bool isopened(); |
|
70 | 70 | int closeFile(); |
|
71 | 71 | QList<codeFragment*> getFragments(); |
|
72 | 72 | QList<codeFragment*> getFragments(QStringList fragmentList); |
|
73 | 73 | |
|
74 | 74 | QString getClass(); |
|
75 | 75 | QString getArchitecture(); |
|
76 | 76 | QString getType(); |
|
77 | 77 | QString getEndianness(); |
|
78 | 78 | QString getABI(); |
|
79 | 79 | qint64 getVersion(); |
|
80 | 80 | qint64 getEntryPointAddress(); |
|
81 | 81 | |
|
82 | 82 | int getSectionCount(); |
|
83 | 83 | int getSymbolCount(); |
|
84 | 84 | int getSegmentCount(); |
|
85 | 85 | |
|
86 | 86 | QString getSegmentType(int index); |
|
87 | 87 | qint64 getSegmentOffset(int index); |
|
88 | 88 | qint64 getSegmentVaddr(int index); |
|
89 | 89 | qint64 getSegmentPaddr(int index); |
|
90 | 90 | qint64 getSegmentFilesz(int index); |
|
91 | 91 | qint64 getSectionDatasz(int index); |
|
92 | 92 | qint64 getSegmentMemsz(int index); |
|
93 | 93 | QString getSegmentFlags(int index); |
|
94 | 94 | |
|
95 | 95 | bool getSectionData(int index, char **buffer); |
|
96 | 96 | qint64 getSectionPaddr(int index); |
|
97 | 97 | qint64 getSectionMemsz(int index); |
|
98 | 98 | QString getSectionName(int index); |
|
99 | 99 | QString getSectionType(int index); |
|
100 | 100 | int getSectionIndex(QString name); |
|
101 | 101 | |
|
102 | 102 | QString getSymbolName(int index); |
|
103 | 103 | QString getSymbolType(int index); |
|
104 | 104 | quint64 getSymbolSize(int index); |
|
105 | 105 | QString getSymbolSectionName(int index); |
|
106 | 106 | int getSymbolSectionIndex(int index); |
|
107 | 107 | quint64 getSymbolAddress(int index); |
|
108 | 108 | QString getSymbolLinkType(int index); |
|
109 | 109 | bool iself(); |
|
110 | 110 | static bool isElf(const QString& File); |
|
111 | 111 | |
|
112 | bool toSrec(const QString& File); | |
|
113 | ||
|
112 | 114 | private: |
|
113 | 115 | codeFragment* getFragment(const QString& name); |
|
114 | 116 | void updateSections(); |
|
115 | 117 | void updateSegments(); |
|
116 | 118 | void updateSymbols(); |
|
117 | 119 | int elfFile; |
|
118 | 120 | bool opened; |
|
119 | 121 | bool type_elf; |
|
120 | 122 | Elf* e; |
|
121 | 123 | Elf_Kind ek; |
|
122 | 124 | GElf_Ehdr ehdr; |
|
123 | 125 | Elf_Scn * scn; |
|
124 | 126 | Elf_Data * data; |
|
125 | 127 | size_t SymbolCount,SectionCount,SegmentCount, shstrndx; |
|
126 | 128 | QList<GElf_Phdr*> Segments; |
|
127 | 129 | QList<Elf_Section*> sections; |
|
128 | 130 | QList<Elf_Symbol*> symbols; |
|
129 | 131 | |
|
130 | 132 | }; |
|
131 | 133 | |
|
132 | 134 | #endif // ELFFILE_H |
This diff has been collapsed as it changes many lines, (1013 lines changed) Show them Hide them | |||
@@ -1,7068 +1,8031 | |||
|
1 | 1 | #include "PySocExplorer0.h" |
|
2 | 2 | #include <PythonQtConversion.h> |
|
3 | 3 | #include <PythonQtMethodInfo.h> |
|
4 | 4 | #include <PythonQtSignalReceiver.h> |
|
5 | 5 | #include <QIconEngine> |
|
6 | 6 | #include <QObject> |
|
7 | 7 | #include <QSpinBox> |
|
8 | 8 | #include <QVariant> |
|
9 | 9 | #include <QWidget> |
|
10 |
#include <abstract |
|
|
10 | #include <abstractbinfile.h> | |
|
11 | 11 | #include <elffile.h> |
|
12 | 12 | #include <elfparser.h> |
|
13 | 13 | #include <qaction.h> |
|
14 | 14 | #include <qbitmap.h> |
|
15 | 15 | #include <qbytearray.h> |
|
16 | 16 | #include <qcolor.h> |
|
17 | 17 | #include <qcoreevent.h> |
|
18 | 18 | #include <qcursor.h> |
|
19 | 19 | #include <qevent.h> |
|
20 | 20 | #include <qfile.h> |
|
21 | 21 | #include <qfont.h> |
|
22 | 22 | #include <qgraphicseffect.h> |
|
23 | 23 | #include <qgraphicsproxywidget.h> |
|
24 | 24 | #include <qkeysequence.h> |
|
25 | 25 | #include <qlayout.h> |
|
26 | 26 | #include <qlineedit.h> |
|
27 | 27 | #include <qlist.h> |
|
28 | 28 | #include <qlocale.h> |
|
29 | 29 | #include <qmargins.h> |
|
30 | 30 | #include <qobject.h> |
|
31 | 31 | #include <qpaintdevice.h> |
|
32 | 32 | #include <qpaintengine.h> |
|
33 | 33 | #include <qpainter.h> |
|
34 | 34 | #include <qpalette.h> |
|
35 | 35 | #include <qpen.h> |
|
36 | 36 | #include <qpixmap.h> |
|
37 | 37 | #include <qpoint.h> |
|
38 | 38 | #include <qrect.h> |
|
39 | 39 | #include <qregion.h> |
|
40 | 40 | #include <qscrollarea.h> |
|
41 | 41 | #include <qscrollbar.h> |
|
42 | 42 | #include <qsize.h> |
|
43 | 43 | #include <qsizepolicy.h> |
|
44 | 44 | #include <qspinbox.h> |
|
45 | 45 | #include <qstringlist.h> |
|
46 | 46 | #include <qstyle.h> |
|
47 | 47 | #include <qstyleoption.h> |
|
48 | 48 | #include <qwidget.h> |
|
49 | #include <srecfile.h> | |
|
49 | 50 | |
|
50 | 51 | PythonQtShell_ElfFile::~PythonQtShell_ElfFile() { |
|
51 | 52 | PythonQtPrivate* priv = PythonQt::priv(); |
|
52 | 53 | if (priv) { priv->shellClassDeleted(this); } |
|
53 | 54 | } |
|
54 | 55 | int PythonQtShell_ElfFile::closeFile() |
|
55 | 56 | { |
|
56 | 57 | if (_wrapper) { |
|
57 | 58 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile"); |
|
58 | 59 | PyErr_Clear(); |
|
59 | 60 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
60 | 61 | static const char* argumentList[] ={"int"}; |
|
61 | 62 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
62 | 63 | int returnValue; |
|
63 | 64 | void* args[1] = {NULL}; |
|
64 | 65 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
65 | 66 | if (result) { |
|
66 | 67 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
67 | 68 | if (args[0]!=&returnValue) { |
|
68 | 69 | if (args[0]==NULL) { |
|
69 | 70 | PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result); |
|
70 | 71 | } else { |
|
71 | 72 | returnValue = *((int*)args[0]); |
|
72 | 73 | } |
|
73 | 74 | } |
|
74 | 75 | } |
|
75 | 76 | if (result) { Py_DECREF(result); } |
|
76 | 77 | Py_DECREF(obj); |
|
77 | 78 | return returnValue; |
|
78 | 79 | } |
|
79 | 80 | } |
|
80 | 81 | return ElfFile::closeFile(); |
|
81 | 82 | } |
|
82 | 83 | QList<codeFragment* > PythonQtShell_ElfFile::getFragments() |
|
83 | 84 | { |
|
84 | 85 | if (_wrapper) { |
|
85 | 86 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments"); |
|
86 | 87 | PyErr_Clear(); |
|
87 | 88 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
88 | 89 | static const char* argumentList[] ={"QList<codeFragment* >"}; |
|
89 | 90 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
90 | 91 | QList<codeFragment* > returnValue; |
|
91 | 92 | void* args[1] = {NULL}; |
|
92 | 93 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
93 | 94 | if (result) { |
|
94 | 95 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
95 | 96 | if (args[0]!=&returnValue) { |
|
96 | 97 | if (args[0]==NULL) { |
|
97 | 98 | PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result); |
|
98 | 99 | } else { |
|
99 | 100 | returnValue = *((QList<codeFragment* >*)args[0]); |
|
100 | 101 | } |
|
101 | 102 | } |
|
102 | 103 | } |
|
103 | 104 | if (result) { Py_DECREF(result); } |
|
104 | 105 | Py_DECREF(obj); |
|
105 | 106 | return returnValue; |
|
106 | 107 | } |
|
107 | 108 | } |
|
108 | 109 | return ElfFile::getFragments(); |
|
109 | 110 | } |
|
110 | 111 | bool PythonQtShell_ElfFile::isopened() |
|
111 | 112 | { |
|
112 | 113 | if (_wrapper) { |
|
113 | 114 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened"); |
|
114 | 115 | PyErr_Clear(); |
|
115 | 116 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
116 | 117 | static const char* argumentList[] ={"bool"}; |
|
117 | 118 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
118 | 119 | bool returnValue; |
|
119 | 120 | void* args[1] = {NULL}; |
|
120 | 121 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
121 | 122 | if (result) { |
|
122 | 123 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
123 | 124 | if (args[0]!=&returnValue) { |
|
124 | 125 | if (args[0]==NULL) { |
|
125 | 126 | PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result); |
|
126 | 127 | } else { |
|
127 | 128 | returnValue = *((bool*)args[0]); |
|
128 | 129 | } |
|
129 | 130 | } |
|
130 | 131 | } |
|
131 | 132 | if (result) { Py_DECREF(result); } |
|
132 | 133 | Py_DECREF(obj); |
|
133 | 134 | return returnValue; |
|
134 | 135 | } |
|
135 | 136 | } |
|
136 | 137 | return ElfFile::isopened(); |
|
137 | 138 | } |
|
138 | 139 | bool PythonQtShell_ElfFile::openFile(const QString& File) |
|
139 | 140 | { |
|
140 | 141 | if (_wrapper) { |
|
141 | 142 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile"); |
|
142 | 143 | PyErr_Clear(); |
|
143 | 144 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
144 | 145 | static const char* argumentList[] ={"bool" , "const QString&"}; |
|
145 | 146 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
146 | 147 | bool returnValue; |
|
147 | 148 | void* args[2] = {NULL, (void*)&File}; |
|
148 | 149 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
149 | 150 | if (result) { |
|
150 | 151 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
151 | 152 | if (args[0]!=&returnValue) { |
|
152 | 153 | if (args[0]==NULL) { |
|
153 | 154 | PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result); |
|
154 | 155 | } else { |
|
155 | 156 | returnValue = *((bool*)args[0]); |
|
156 | 157 | } |
|
157 | 158 | } |
|
158 | 159 | } |
|
159 | 160 | if (result) { Py_DECREF(result); } |
|
160 | 161 | Py_DECREF(obj); |
|
161 | 162 | return returnValue; |
|
162 | 163 | } |
|
163 | 164 | } |
|
164 | 165 | return ElfFile::openFile(File); |
|
165 | 166 | } |
|
166 | 167 | ElfFile* PythonQtWrapper_ElfFile::new_ElfFile() |
|
167 | 168 | { |
|
168 | 169 | return new PythonQtShell_ElfFile(); } |
|
169 | 170 | |
|
170 | 171 | ElfFile* PythonQtWrapper_ElfFile::new_ElfFile(const QString& File) |
|
171 | 172 | { |
|
172 | 173 | return new PythonQtShell_ElfFile(File); } |
|
173 | 174 | |
|
174 | 175 | int PythonQtWrapper_ElfFile::closeFile(ElfFile* theWrappedObject) |
|
175 | 176 | { |
|
176 | 177 | return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_closeFile()); |
|
177 | 178 | } |
|
178 | 179 | |
|
179 | 180 | QString PythonQtWrapper_ElfFile::getABI(ElfFile* theWrappedObject) |
|
180 | 181 | { |
|
181 | 182 | return ( theWrappedObject->getABI()); |
|
182 | 183 | } |
|
183 | 184 | |
|
184 | 185 | QString PythonQtWrapper_ElfFile::getArchitecture(ElfFile* theWrappedObject) |
|
185 | 186 | { |
|
186 | 187 | return ( theWrappedObject->getArchitecture()); |
|
187 | 188 | } |
|
188 | 189 | |
|
189 | 190 | QString PythonQtWrapper_ElfFile::getClass(ElfFile* theWrappedObject) |
|
190 | 191 | { |
|
191 | 192 | return ( theWrappedObject->getClass()); |
|
192 | 193 | } |
|
193 | 194 | |
|
194 | 195 | QString PythonQtWrapper_ElfFile::getEndianness(ElfFile* theWrappedObject) |
|
195 | 196 | { |
|
196 | 197 | return ( theWrappedObject->getEndianness()); |
|
197 | 198 | } |
|
198 | 199 | |
|
199 | 200 | qint64 PythonQtWrapper_ElfFile::getEntryPointAddress(ElfFile* theWrappedObject) |
|
200 | 201 | { |
|
201 | 202 | return ( theWrappedObject->getEntryPointAddress()); |
|
202 | 203 | } |
|
203 | 204 | |
|
204 | 205 | QList<codeFragment* > PythonQtWrapper_ElfFile::getFragments(ElfFile* theWrappedObject) |
|
205 | 206 | { |
|
206 | 207 | return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_getFragments()); |
|
207 | 208 | } |
|
208 | 209 | |
|
209 | 210 | QList<codeFragment* > PythonQtWrapper_ElfFile::getFragments(ElfFile* theWrappedObject, QStringList fragmentList) |
|
210 | 211 | { |
|
211 | 212 | return ( theWrappedObject->getFragments(fragmentList)); |
|
212 | 213 | } |
|
213 | 214 | |
|
214 | 215 | int PythonQtWrapper_ElfFile::getSectionCount(ElfFile* theWrappedObject) |
|
215 | 216 | { |
|
216 | 217 | return ( theWrappedObject->getSectionCount()); |
|
217 | 218 | } |
|
218 | 219 | |
|
219 | 220 | bool PythonQtWrapper_ElfFile::getSectionData(ElfFile* theWrappedObject, int index, char** buffer) |
|
220 | 221 | { |
|
221 | 222 | return ( theWrappedObject->getSectionData(index, buffer)); |
|
222 | 223 | } |
|
223 | 224 | |
|
224 | 225 | qint64 PythonQtWrapper_ElfFile::getSectionDatasz(ElfFile* theWrappedObject, int index) |
|
225 | 226 | { |
|
226 | 227 | return ( theWrappedObject->getSectionDatasz(index)); |
|
227 | 228 | } |
|
228 | 229 | |
|
229 | 230 | int PythonQtWrapper_ElfFile::getSectionIndex(ElfFile* theWrappedObject, QString name) |
|
230 | 231 | { |
|
231 | 232 | return ( theWrappedObject->getSectionIndex(name)); |
|
232 | 233 | } |
|
233 | 234 | |
|
234 | 235 | qint64 PythonQtWrapper_ElfFile::getSectionMemsz(ElfFile* theWrappedObject, int index) |
|
235 | 236 | { |
|
236 | 237 | return ( theWrappedObject->getSectionMemsz(index)); |
|
237 | 238 | } |
|
238 | 239 | |
|
239 | 240 | QString PythonQtWrapper_ElfFile::getSectionName(ElfFile* theWrappedObject, int index) |
|
240 | 241 | { |
|
241 | 242 | return ( theWrappedObject->getSectionName(index)); |
|
242 | 243 | } |
|
243 | 244 | |
|
244 | 245 | qint64 PythonQtWrapper_ElfFile::getSectionPaddr(ElfFile* theWrappedObject, int index) |
|
245 | 246 | { |
|
246 | 247 | return ( theWrappedObject->getSectionPaddr(index)); |
|
247 | 248 | } |
|
248 | 249 | |
|
249 | 250 | QString PythonQtWrapper_ElfFile::getSectionType(ElfFile* theWrappedObject, int index) |
|
250 | 251 | { |
|
251 | 252 | return ( theWrappedObject->getSectionType(index)); |
|
252 | 253 | } |
|
253 | 254 | |
|
254 | 255 | int PythonQtWrapper_ElfFile::getSegmentCount(ElfFile* theWrappedObject) |
|
255 | 256 | { |
|
256 | 257 | return ( theWrappedObject->getSegmentCount()); |
|
257 | 258 | } |
|
258 | 259 | |
|
259 | 260 | qint64 PythonQtWrapper_ElfFile::getSegmentFilesz(ElfFile* theWrappedObject, int index) |
|
260 | 261 | { |
|
261 | 262 | return ( theWrappedObject->getSegmentFilesz(index)); |
|
262 | 263 | } |
|
263 | 264 | |
|
264 | 265 | QString PythonQtWrapper_ElfFile::getSegmentFlags(ElfFile* theWrappedObject, int index) |
|
265 | 266 | { |
|
266 | 267 | return ( theWrappedObject->getSegmentFlags(index)); |
|
267 | 268 | } |
|
268 | 269 | |
|
269 | 270 | qint64 PythonQtWrapper_ElfFile::getSegmentMemsz(ElfFile* theWrappedObject, int index) |
|
270 | 271 | { |
|
271 | 272 | return ( theWrappedObject->getSegmentMemsz(index)); |
|
272 | 273 | } |
|
273 | 274 | |
|
274 | 275 | qint64 PythonQtWrapper_ElfFile::getSegmentOffset(ElfFile* theWrappedObject, int index) |
|
275 | 276 | { |
|
276 | 277 | return ( theWrappedObject->getSegmentOffset(index)); |
|
277 | 278 | } |
|
278 | 279 | |
|
279 | 280 | qint64 PythonQtWrapper_ElfFile::getSegmentPaddr(ElfFile* theWrappedObject, int index) |
|
280 | 281 | { |
|
281 | 282 | return ( theWrappedObject->getSegmentPaddr(index)); |
|
282 | 283 | } |
|
283 | 284 | |
|
284 | 285 | QString PythonQtWrapper_ElfFile::getSegmentType(ElfFile* theWrappedObject, int index) |
|
285 | 286 | { |
|
286 | 287 | return ( theWrappedObject->getSegmentType(index)); |
|
287 | 288 | } |
|
288 | 289 | |
|
289 | 290 | qint64 PythonQtWrapper_ElfFile::getSegmentVaddr(ElfFile* theWrappedObject, int index) |
|
290 | 291 | { |
|
291 | 292 | return ( theWrappedObject->getSegmentVaddr(index)); |
|
292 | 293 | } |
|
293 | 294 | |
|
294 | 295 | quint64 PythonQtWrapper_ElfFile::getSymbolAddress(ElfFile* theWrappedObject, int index) |
|
295 | 296 | { |
|
296 | 297 | return ( theWrappedObject->getSymbolAddress(index)); |
|
297 | 298 | } |
|
298 | 299 | |
|
299 | 300 | int PythonQtWrapper_ElfFile::getSymbolCount(ElfFile* theWrappedObject) |
|
300 | 301 | { |
|
301 | 302 | return ( theWrappedObject->getSymbolCount()); |
|
302 | 303 | } |
|
303 | 304 | |
|
304 | 305 | QString PythonQtWrapper_ElfFile::getSymbolLinkType(ElfFile* theWrappedObject, int index) |
|
305 | 306 | { |
|
306 | 307 | return ( theWrappedObject->getSymbolLinkType(index)); |
|
307 | 308 | } |
|
308 | 309 | |
|
309 | 310 | QString PythonQtWrapper_ElfFile::getSymbolName(ElfFile* theWrappedObject, int index) |
|
310 | 311 | { |
|
311 | 312 | return ( theWrappedObject->getSymbolName(index)); |
|
312 | 313 | } |
|
313 | 314 | |
|
314 | 315 | int PythonQtWrapper_ElfFile::getSymbolSectionIndex(ElfFile* theWrappedObject, int index) |
|
315 | 316 | { |
|
316 | 317 | return ( theWrappedObject->getSymbolSectionIndex(index)); |
|
317 | 318 | } |
|
318 | 319 | |
|
319 | 320 | QString PythonQtWrapper_ElfFile::getSymbolSectionName(ElfFile* theWrappedObject, int index) |
|
320 | 321 | { |
|
321 | 322 | return ( theWrappedObject->getSymbolSectionName(index)); |
|
322 | 323 | } |
|
323 | 324 | |
|
324 | 325 | quint64 PythonQtWrapper_ElfFile::getSymbolSize(ElfFile* theWrappedObject, int index) |
|
325 | 326 | { |
|
326 | 327 | return ( theWrappedObject->getSymbolSize(index)); |
|
327 | 328 | } |
|
328 | 329 | |
|
329 | 330 | QString PythonQtWrapper_ElfFile::getSymbolType(ElfFile* theWrappedObject, int index) |
|
330 | 331 | { |
|
331 | 332 | return ( theWrappedObject->getSymbolType(index)); |
|
332 | 333 | } |
|
333 | 334 | |
|
334 | 335 | QString PythonQtWrapper_ElfFile::getType(ElfFile* theWrappedObject) |
|
335 | 336 | { |
|
336 | 337 | return ( theWrappedObject->getType()); |
|
337 | 338 | } |
|
338 | 339 | |
|
339 | 340 | qint64 PythonQtWrapper_ElfFile::getVersion(ElfFile* theWrappedObject) |
|
340 | 341 | { |
|
341 | 342 | return ( theWrappedObject->getVersion()); |
|
342 | 343 | } |
|
343 | 344 | |
|
344 | 345 | bool PythonQtWrapper_ElfFile::static_ElfFile_isElf(const QString& File) |
|
345 | 346 | { |
|
346 | 347 | return (ElfFile::isElf(File)); |
|
347 | 348 | } |
|
348 | 349 | |
|
349 | 350 | bool PythonQtWrapper_ElfFile::iself(ElfFile* theWrappedObject) |
|
350 | 351 | { |
|
351 | 352 | return ( theWrappedObject->iself()); |
|
352 | 353 | } |
|
353 | 354 | |
|
354 | 355 | bool PythonQtWrapper_ElfFile::isopened(ElfFile* theWrappedObject) |
|
355 | 356 | { |
|
356 | 357 | return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_isopened()); |
|
357 | 358 | } |
|
358 | 359 | |
|
359 | 360 | bool PythonQtWrapper_ElfFile::openFile(ElfFile* theWrappedObject, const QString& File) |
|
360 | 361 | { |
|
361 | 362 | return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_openFile(File)); |
|
362 | 363 | } |
|
363 | 364 | |
|
365 | bool PythonQtWrapper_ElfFile::toSrec(ElfFile* theWrappedObject, const QString& File) | |
|
366 | { | |
|
367 | return ( theWrappedObject->toSrec(File)); | |
|
368 | } | |
|
369 | ||
|
364 | 370 | |
|
365 | 371 | |
|
366 | 372 | PythonQtShell_MemSizeWdgt::~PythonQtShell_MemSizeWdgt() { |
|
367 | 373 | PythonQtPrivate* priv = PythonQt::priv(); |
|
368 | 374 | if (priv) { priv->shellClassDeleted(this); } |
|
369 | 375 | } |
|
370 | 376 | void PythonQtShell_MemSizeWdgt::actionEvent(QActionEvent* arg__1) |
|
371 | 377 | { |
|
372 | 378 | if (_wrapper) { |
|
373 | 379 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); |
|
374 | 380 | PyErr_Clear(); |
|
375 | 381 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
376 | 382 | static const char* argumentList[] ={"" , "QActionEvent*"}; |
|
377 | 383 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
378 | 384 | void* args[2] = {NULL, (void*)&arg__1}; |
|
379 | 385 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
380 | 386 | if (result) { Py_DECREF(result); } |
|
381 | 387 | Py_DECREF(obj); |
|
382 | 388 | return; |
|
383 | 389 | } |
|
384 | 390 | } |
|
385 | 391 | MemSizeWdgt::actionEvent(arg__1); |
|
386 | 392 | } |
|
387 | 393 | void PythonQtShell_MemSizeWdgt::changeEvent(QEvent* arg__1) |
|
388 | 394 | { |
|
389 | 395 | if (_wrapper) { |
|
390 | 396 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); |
|
391 | 397 | PyErr_Clear(); |
|
392 | 398 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
393 | 399 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
394 | 400 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
395 | 401 | void* args[2] = {NULL, (void*)&arg__1}; |
|
396 | 402 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
397 | 403 | if (result) { Py_DECREF(result); } |
|
398 | 404 | Py_DECREF(obj); |
|
399 | 405 | return; |
|
400 | 406 | } |
|
401 | 407 | } |
|
402 | 408 | MemSizeWdgt::changeEvent(arg__1); |
|
403 | 409 | } |
|
404 | 410 | void PythonQtShell_MemSizeWdgt::childEvent(QChildEvent* arg__1) |
|
405 | 411 | { |
|
406 | 412 | if (_wrapper) { |
|
407 | 413 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); |
|
408 | 414 | PyErr_Clear(); |
|
409 | 415 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
410 | 416 | static const char* argumentList[] ={"" , "QChildEvent*"}; |
|
411 | 417 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
412 | 418 | void* args[2] = {NULL, (void*)&arg__1}; |
|
413 | 419 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
414 | 420 | if (result) { Py_DECREF(result); } |
|
415 | 421 | Py_DECREF(obj); |
|
416 | 422 | return; |
|
417 | 423 | } |
|
418 | 424 | } |
|
419 | 425 | MemSizeWdgt::childEvent(arg__1); |
|
420 | 426 | } |
|
421 | 427 | void PythonQtShell_MemSizeWdgt::closeEvent(QCloseEvent* arg__1) |
|
422 | 428 | { |
|
423 | 429 | if (_wrapper) { |
|
424 | 430 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); |
|
425 | 431 | PyErr_Clear(); |
|
426 | 432 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
427 | 433 | static const char* argumentList[] ={"" , "QCloseEvent*"}; |
|
428 | 434 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
429 | 435 | void* args[2] = {NULL, (void*)&arg__1}; |
|
430 | 436 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
431 | 437 | if (result) { Py_DECREF(result); } |
|
432 | 438 | Py_DECREF(obj); |
|
433 | 439 | return; |
|
434 | 440 | } |
|
435 | 441 | } |
|
436 | 442 | MemSizeWdgt::closeEvent(arg__1); |
|
437 | 443 | } |
|
438 | 444 | void PythonQtShell_MemSizeWdgt::contextMenuEvent(QContextMenuEvent* arg__1) |
|
439 | 445 | { |
|
440 | 446 | if (_wrapper) { |
|
441 | 447 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); |
|
442 | 448 | PyErr_Clear(); |
|
443 | 449 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
444 | 450 | static const char* argumentList[] ={"" , "QContextMenuEvent*"}; |
|
445 | 451 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
446 | 452 | void* args[2] = {NULL, (void*)&arg__1}; |
|
447 | 453 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
448 | 454 | if (result) { Py_DECREF(result); } |
|
449 | 455 | Py_DECREF(obj); |
|
450 | 456 | return; |
|
451 | 457 | } |
|
452 | 458 | } |
|
453 | 459 | MemSizeWdgt::contextMenuEvent(arg__1); |
|
454 | 460 | } |
|
455 | 461 | void PythonQtShell_MemSizeWdgt::customEvent(QEvent* arg__1) |
|
456 | 462 | { |
|
457 | 463 | if (_wrapper) { |
|
458 | 464 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); |
|
459 | 465 | PyErr_Clear(); |
|
460 | 466 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
461 | 467 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
462 | 468 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
463 | 469 | void* args[2] = {NULL, (void*)&arg__1}; |
|
464 | 470 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
465 | 471 | if (result) { Py_DECREF(result); } |
|
466 | 472 | Py_DECREF(obj); |
|
467 | 473 | return; |
|
468 | 474 | } |
|
469 | 475 | } |
|
470 | 476 | MemSizeWdgt::customEvent(arg__1); |
|
471 | 477 | } |
|
472 | 478 | int PythonQtShell_MemSizeWdgt::devType() const |
|
473 | 479 | { |
|
474 | 480 | if (_wrapper) { |
|
475 | 481 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); |
|
476 | 482 | PyErr_Clear(); |
|
477 | 483 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
478 | 484 | static const char* argumentList[] ={"int"}; |
|
479 | 485 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
480 | 486 | int returnValue; |
|
481 | 487 | void* args[1] = {NULL}; |
|
482 | 488 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
483 | 489 | if (result) { |
|
484 | 490 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
485 | 491 | if (args[0]!=&returnValue) { |
|
486 | 492 | if (args[0]==NULL) { |
|
487 | 493 | PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); |
|
488 | 494 | } else { |
|
489 | 495 | returnValue = *((int*)args[0]); |
|
490 | 496 | } |
|
491 | 497 | } |
|
492 | 498 | } |
|
493 | 499 | if (result) { Py_DECREF(result); } |
|
494 | 500 | Py_DECREF(obj); |
|
495 | 501 | return returnValue; |
|
496 | 502 | } |
|
497 | 503 | } |
|
498 | 504 | return MemSizeWdgt::devType(); |
|
499 | 505 | } |
|
500 | 506 | void PythonQtShell_MemSizeWdgt::dragEnterEvent(QDragEnterEvent* arg__1) |
|
501 | 507 | { |
|
502 | 508 | if (_wrapper) { |
|
503 | 509 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); |
|
504 | 510 | PyErr_Clear(); |
|
505 | 511 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
506 | 512 | static const char* argumentList[] ={"" , "QDragEnterEvent*"}; |
|
507 | 513 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
508 | 514 | void* args[2] = {NULL, (void*)&arg__1}; |
|
509 | 515 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
510 | 516 | if (result) { Py_DECREF(result); } |
|
511 | 517 | Py_DECREF(obj); |
|
512 | 518 | return; |
|
513 | 519 | } |
|
514 | 520 | } |
|
515 | 521 | MemSizeWdgt::dragEnterEvent(arg__1); |
|
516 | 522 | } |
|
517 | 523 | void PythonQtShell_MemSizeWdgt::dragLeaveEvent(QDragLeaveEvent* arg__1) |
|
518 | 524 | { |
|
519 | 525 | if (_wrapper) { |
|
520 | 526 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); |
|
521 | 527 | PyErr_Clear(); |
|
522 | 528 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
523 | 529 | static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; |
|
524 | 530 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
525 | 531 | void* args[2] = {NULL, (void*)&arg__1}; |
|
526 | 532 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
527 | 533 | if (result) { Py_DECREF(result); } |
|
528 | 534 | Py_DECREF(obj); |
|
529 | 535 | return; |
|
530 | 536 | } |
|
531 | 537 | } |
|
532 | 538 | MemSizeWdgt::dragLeaveEvent(arg__1); |
|
533 | 539 | } |
|
534 | 540 | void PythonQtShell_MemSizeWdgt::dragMoveEvent(QDragMoveEvent* arg__1) |
|
535 | 541 | { |
|
536 | 542 | if (_wrapper) { |
|
537 | 543 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); |
|
538 | 544 | PyErr_Clear(); |
|
539 | 545 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
540 | 546 | static const char* argumentList[] ={"" , "QDragMoveEvent*"}; |
|
541 | 547 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
542 | 548 | void* args[2] = {NULL, (void*)&arg__1}; |
|
543 | 549 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
544 | 550 | if (result) { Py_DECREF(result); } |
|
545 | 551 | Py_DECREF(obj); |
|
546 | 552 | return; |
|
547 | 553 | } |
|
548 | 554 | } |
|
549 | 555 | MemSizeWdgt::dragMoveEvent(arg__1); |
|
550 | 556 | } |
|
551 | 557 | void PythonQtShell_MemSizeWdgt::dropEvent(QDropEvent* arg__1) |
|
552 | 558 | { |
|
553 | 559 | if (_wrapper) { |
|
554 | 560 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); |
|
555 | 561 | PyErr_Clear(); |
|
556 | 562 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
557 | 563 | static const char* argumentList[] ={"" , "QDropEvent*"}; |
|
558 | 564 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
559 | 565 | void* args[2] = {NULL, (void*)&arg__1}; |
|
560 | 566 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
561 | 567 | if (result) { Py_DECREF(result); } |
|
562 | 568 | Py_DECREF(obj); |
|
563 | 569 | return; |
|
564 | 570 | } |
|
565 | 571 | } |
|
566 | 572 | MemSizeWdgt::dropEvent(arg__1); |
|
567 | 573 | } |
|
568 | 574 | void PythonQtShell_MemSizeWdgt::enterEvent(QEvent* arg__1) |
|
569 | 575 | { |
|
570 | 576 | if (_wrapper) { |
|
571 | 577 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); |
|
572 | 578 | PyErr_Clear(); |
|
573 | 579 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
574 | 580 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
575 | 581 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
576 | 582 | void* args[2] = {NULL, (void*)&arg__1}; |
|
577 | 583 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
578 | 584 | if (result) { Py_DECREF(result); } |
|
579 | 585 | Py_DECREF(obj); |
|
580 | 586 | return; |
|
581 | 587 | } |
|
582 | 588 | } |
|
583 | 589 | MemSizeWdgt::enterEvent(arg__1); |
|
584 | 590 | } |
|
585 | 591 | bool PythonQtShell_MemSizeWdgt::event(QEvent* arg__1) |
|
586 | 592 | { |
|
587 | 593 | if (_wrapper) { |
|
588 | 594 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); |
|
589 | 595 | PyErr_Clear(); |
|
590 | 596 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
591 | 597 | static const char* argumentList[] ={"bool" , "QEvent*"}; |
|
592 | 598 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
593 | 599 | bool returnValue; |
|
594 | 600 | void* args[2] = {NULL, (void*)&arg__1}; |
|
595 | 601 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
596 | 602 | if (result) { |
|
597 | 603 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
598 | 604 | if (args[0]!=&returnValue) { |
|
599 | 605 | if (args[0]==NULL) { |
|
600 | 606 | PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); |
|
601 | 607 | } else { |
|
602 | 608 | returnValue = *((bool*)args[0]); |
|
603 | 609 | } |
|
604 | 610 | } |
|
605 | 611 | } |
|
606 | 612 | if (result) { Py_DECREF(result); } |
|
607 | 613 | Py_DECREF(obj); |
|
608 | 614 | return returnValue; |
|
609 | 615 | } |
|
610 | 616 | } |
|
611 | 617 | return MemSizeWdgt::event(arg__1); |
|
612 | 618 | } |
|
613 | 619 | bool PythonQtShell_MemSizeWdgt::eventFilter(QObject* arg__1, QEvent* arg__2) |
|
614 | 620 | { |
|
615 | 621 | if (_wrapper) { |
|
616 | 622 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); |
|
617 | 623 | PyErr_Clear(); |
|
618 | 624 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
619 | 625 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; |
|
620 | 626 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); |
|
621 | 627 | bool returnValue; |
|
622 | 628 | void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; |
|
623 | 629 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
624 | 630 | if (result) { |
|
625 | 631 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
626 | 632 | if (args[0]!=&returnValue) { |
|
627 | 633 | if (args[0]==NULL) { |
|
628 | 634 | PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); |
|
629 | 635 | } else { |
|
630 | 636 | returnValue = *((bool*)args[0]); |
|
631 | 637 | } |
|
632 | 638 | } |
|
633 | 639 | } |
|
634 | 640 | if (result) { Py_DECREF(result); } |
|
635 | 641 | Py_DECREF(obj); |
|
636 | 642 | return returnValue; |
|
637 | 643 | } |
|
638 | 644 | } |
|
639 | 645 | return MemSizeWdgt::eventFilter(arg__1, arg__2); |
|
640 | 646 | } |
|
641 | 647 | void PythonQtShell_MemSizeWdgt::focusInEvent(QFocusEvent* arg__1) |
|
642 | 648 | { |
|
643 | 649 | if (_wrapper) { |
|
644 | 650 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); |
|
645 | 651 | PyErr_Clear(); |
|
646 | 652 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
647 | 653 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
648 | 654 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
649 | 655 | void* args[2] = {NULL, (void*)&arg__1}; |
|
650 | 656 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
651 | 657 | if (result) { Py_DECREF(result); } |
|
652 | 658 | Py_DECREF(obj); |
|
653 | 659 | return; |
|
654 | 660 | } |
|
655 | 661 | } |
|
656 | 662 | MemSizeWdgt::focusInEvent(arg__1); |
|
657 | 663 | } |
|
658 | 664 | bool PythonQtShell_MemSizeWdgt::focusNextPrevChild(bool next) |
|
659 | 665 | { |
|
660 | 666 | if (_wrapper) { |
|
661 | 667 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); |
|
662 | 668 | PyErr_Clear(); |
|
663 | 669 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
664 | 670 | static const char* argumentList[] ={"bool" , "bool"}; |
|
665 | 671 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
666 | 672 | bool returnValue; |
|
667 | 673 | void* args[2] = {NULL, (void*)&next}; |
|
668 | 674 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
669 | 675 | if (result) { |
|
670 | 676 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
671 | 677 | if (args[0]!=&returnValue) { |
|
672 | 678 | if (args[0]==NULL) { |
|
673 | 679 | PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); |
|
674 | 680 | } else { |
|
675 | 681 | returnValue = *((bool*)args[0]); |
|
676 | 682 | } |
|
677 | 683 | } |
|
678 | 684 | } |
|
679 | 685 | if (result) { Py_DECREF(result); } |
|
680 | 686 | Py_DECREF(obj); |
|
681 | 687 | return returnValue; |
|
682 | 688 | } |
|
683 | 689 | } |
|
684 | 690 | return MemSizeWdgt::focusNextPrevChild(next); |
|
685 | 691 | } |
|
686 | 692 | void PythonQtShell_MemSizeWdgt::focusOutEvent(QFocusEvent* arg__1) |
|
687 | 693 | { |
|
688 | 694 | if (_wrapper) { |
|
689 | 695 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); |
|
690 | 696 | PyErr_Clear(); |
|
691 | 697 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
692 | 698 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
693 | 699 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
694 | 700 | void* args[2] = {NULL, (void*)&arg__1}; |
|
695 | 701 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
696 | 702 | if (result) { Py_DECREF(result); } |
|
697 | 703 | Py_DECREF(obj); |
|
698 | 704 | return; |
|
699 | 705 | } |
|
700 | 706 | } |
|
701 | 707 | MemSizeWdgt::focusOutEvent(arg__1); |
|
702 | 708 | } |
|
703 | 709 | bool PythonQtShell_MemSizeWdgt::hasHeightForWidth() const |
|
704 | 710 | { |
|
705 | 711 | if (_wrapper) { |
|
706 | 712 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); |
|
707 | 713 | PyErr_Clear(); |
|
708 | 714 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
709 | 715 | static const char* argumentList[] ={"bool"}; |
|
710 | 716 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
711 | 717 | bool returnValue; |
|
712 | 718 | void* args[1] = {NULL}; |
|
713 | 719 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
714 | 720 | if (result) { |
|
715 | 721 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
716 | 722 | if (args[0]!=&returnValue) { |
|
717 | 723 | if (args[0]==NULL) { |
|
718 | 724 | PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); |
|
719 | 725 | } else { |
|
720 | 726 | returnValue = *((bool*)args[0]); |
|
721 | 727 | } |
|
722 | 728 | } |
|
723 | 729 | } |
|
724 | 730 | if (result) { Py_DECREF(result); } |
|
725 | 731 | Py_DECREF(obj); |
|
726 | 732 | return returnValue; |
|
727 | 733 | } |
|
728 | 734 | } |
|
729 | 735 | return MemSizeWdgt::hasHeightForWidth(); |
|
730 | 736 | } |
|
731 | 737 | int PythonQtShell_MemSizeWdgt::heightForWidth(int arg__1) const |
|
732 | 738 | { |
|
733 | 739 | if (_wrapper) { |
|
734 | 740 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); |
|
735 | 741 | PyErr_Clear(); |
|
736 | 742 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
737 | 743 | static const char* argumentList[] ={"int" , "int"}; |
|
738 | 744 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
739 | 745 | int returnValue; |
|
740 | 746 | void* args[2] = {NULL, (void*)&arg__1}; |
|
741 | 747 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
742 | 748 | if (result) { |
|
743 | 749 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
744 | 750 | if (args[0]!=&returnValue) { |
|
745 | 751 | if (args[0]==NULL) { |
|
746 | 752 | PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); |
|
747 | 753 | } else { |
|
748 | 754 | returnValue = *((int*)args[0]); |
|
749 | 755 | } |
|
750 | 756 | } |
|
751 | 757 | } |
|
752 | 758 | if (result) { Py_DECREF(result); } |
|
753 | 759 | Py_DECREF(obj); |
|
754 | 760 | return returnValue; |
|
755 | 761 | } |
|
756 | 762 | } |
|
757 | 763 | return MemSizeWdgt::heightForWidth(arg__1); |
|
758 | 764 | } |
|
759 | 765 | void PythonQtShell_MemSizeWdgt::hideEvent(QHideEvent* arg__1) |
|
760 | 766 | { |
|
761 | 767 | if (_wrapper) { |
|
762 | 768 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); |
|
763 | 769 | PyErr_Clear(); |
|
764 | 770 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
765 | 771 | static const char* argumentList[] ={"" , "QHideEvent*"}; |
|
766 | 772 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
767 | 773 | void* args[2] = {NULL, (void*)&arg__1}; |
|
768 | 774 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
769 | 775 | if (result) { Py_DECREF(result); } |
|
770 | 776 | Py_DECREF(obj); |
|
771 | 777 | return; |
|
772 | 778 | } |
|
773 | 779 | } |
|
774 | 780 | MemSizeWdgt::hideEvent(arg__1); |
|
775 | 781 | } |
|
776 | 782 | void PythonQtShell_MemSizeWdgt::initPainter(QPainter* painter) const |
|
777 | 783 | { |
|
778 | 784 | if (_wrapper) { |
|
779 | 785 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); |
|
780 | 786 | PyErr_Clear(); |
|
781 | 787 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
782 | 788 | static const char* argumentList[] ={"" , "QPainter*"}; |
|
783 | 789 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
784 | 790 | void* args[2] = {NULL, (void*)&painter}; |
|
785 | 791 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
786 | 792 | if (result) { Py_DECREF(result); } |
|
787 | 793 | Py_DECREF(obj); |
|
788 | 794 | return; |
|
789 | 795 | } |
|
790 | 796 | } |
|
791 | 797 | MemSizeWdgt::initPainter(painter); |
|
792 | 798 | } |
|
793 | 799 | void PythonQtShell_MemSizeWdgt::inputMethodEvent(QInputMethodEvent* arg__1) |
|
794 | 800 | { |
|
795 | 801 | if (_wrapper) { |
|
796 | 802 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); |
|
797 | 803 | PyErr_Clear(); |
|
798 | 804 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
799 | 805 | static const char* argumentList[] ={"" , "QInputMethodEvent*"}; |
|
800 | 806 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
801 | 807 | void* args[2] = {NULL, (void*)&arg__1}; |
|
802 | 808 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
803 | 809 | if (result) { Py_DECREF(result); } |
|
804 | 810 | Py_DECREF(obj); |
|
805 | 811 | return; |
|
806 | 812 | } |
|
807 | 813 | } |
|
808 | 814 | MemSizeWdgt::inputMethodEvent(arg__1); |
|
809 | 815 | } |
|
810 | 816 | QVariant PythonQtShell_MemSizeWdgt::inputMethodQuery(Qt::InputMethodQuery arg__1) const |
|
811 | 817 | { |
|
812 | 818 | if (_wrapper) { |
|
813 | 819 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); |
|
814 | 820 | PyErr_Clear(); |
|
815 | 821 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
816 | 822 | static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; |
|
817 | 823 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
818 | 824 | QVariant returnValue; |
|
819 | 825 | void* args[2] = {NULL, (void*)&arg__1}; |
|
820 | 826 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
821 | 827 | if (result) { |
|
822 | 828 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
823 | 829 | if (args[0]!=&returnValue) { |
|
824 | 830 | if (args[0]==NULL) { |
|
825 | 831 | PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); |
|
826 | 832 | } else { |
|
827 | 833 | returnValue = *((QVariant*)args[0]); |
|
828 | 834 | } |
|
829 | 835 | } |
|
830 | 836 | } |
|
831 | 837 | if (result) { Py_DECREF(result); } |
|
832 | 838 | Py_DECREF(obj); |
|
833 | 839 | return returnValue; |
|
834 | 840 | } |
|
835 | 841 | } |
|
836 | 842 | return MemSizeWdgt::inputMethodQuery(arg__1); |
|
837 | 843 | } |
|
838 | 844 | void PythonQtShell_MemSizeWdgt::keyPressEvent(QKeyEvent* arg__1) |
|
839 | 845 | { |
|
840 | 846 | if (_wrapper) { |
|
841 | 847 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); |
|
842 | 848 | PyErr_Clear(); |
|
843 | 849 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
844 | 850 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
845 | 851 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
846 | 852 | void* args[2] = {NULL, (void*)&arg__1}; |
|
847 | 853 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
848 | 854 | if (result) { Py_DECREF(result); } |
|
849 | 855 | Py_DECREF(obj); |
|
850 | 856 | return; |
|
851 | 857 | } |
|
852 | 858 | } |
|
853 | 859 | MemSizeWdgt::keyPressEvent(arg__1); |
|
854 | 860 | } |
|
855 | 861 | void PythonQtShell_MemSizeWdgt::keyReleaseEvent(QKeyEvent* arg__1) |
|
856 | 862 | { |
|
857 | 863 | if (_wrapper) { |
|
858 | 864 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); |
|
859 | 865 | PyErr_Clear(); |
|
860 | 866 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
861 | 867 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
862 | 868 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
863 | 869 | void* args[2] = {NULL, (void*)&arg__1}; |
|
864 | 870 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
865 | 871 | if (result) { Py_DECREF(result); } |
|
866 | 872 | Py_DECREF(obj); |
|
867 | 873 | return; |
|
868 | 874 | } |
|
869 | 875 | } |
|
870 | 876 | MemSizeWdgt::keyReleaseEvent(arg__1); |
|
871 | 877 | } |
|
872 | 878 | void PythonQtShell_MemSizeWdgt::leaveEvent(QEvent* arg__1) |
|
873 | 879 | { |
|
874 | 880 | if (_wrapper) { |
|
875 | 881 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); |
|
876 | 882 | PyErr_Clear(); |
|
877 | 883 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
878 | 884 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
879 | 885 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
880 | 886 | void* args[2] = {NULL, (void*)&arg__1}; |
|
881 | 887 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
882 | 888 | if (result) { Py_DECREF(result); } |
|
883 | 889 | Py_DECREF(obj); |
|
884 | 890 | return; |
|
885 | 891 | } |
|
886 | 892 | } |
|
887 | 893 | MemSizeWdgt::leaveEvent(arg__1); |
|
888 | 894 | } |
|
889 | 895 | int PythonQtShell_MemSizeWdgt::metric(QPaintDevice::PaintDeviceMetric arg__1) const |
|
890 | 896 | { |
|
891 | 897 | if (_wrapper) { |
|
892 | 898 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); |
|
893 | 899 | PyErr_Clear(); |
|
894 | 900 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
895 | 901 | static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; |
|
896 | 902 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
897 | 903 | int returnValue; |
|
898 | 904 | void* args[2] = {NULL, (void*)&arg__1}; |
|
899 | 905 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
900 | 906 | if (result) { |
|
901 | 907 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
902 | 908 | if (args[0]!=&returnValue) { |
|
903 | 909 | if (args[0]==NULL) { |
|
904 | 910 | PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); |
|
905 | 911 | } else { |
|
906 | 912 | returnValue = *((int*)args[0]); |
|
907 | 913 | } |
|
908 | 914 | } |
|
909 | 915 | } |
|
910 | 916 | if (result) { Py_DECREF(result); } |
|
911 | 917 | Py_DECREF(obj); |
|
912 | 918 | return returnValue; |
|
913 | 919 | } |
|
914 | 920 | } |
|
915 | 921 | return MemSizeWdgt::metric(arg__1); |
|
916 | 922 | } |
|
917 | 923 | QSize PythonQtShell_MemSizeWdgt::minimumSizeHint() const |
|
918 | 924 | { |
|
919 | 925 | if (_wrapper) { |
|
920 | 926 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); |
|
921 | 927 | PyErr_Clear(); |
|
922 | 928 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
923 | 929 | static const char* argumentList[] ={"QSize"}; |
|
924 | 930 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
925 | 931 | QSize returnValue; |
|
926 | 932 | void* args[1] = {NULL}; |
|
927 | 933 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
928 | 934 | if (result) { |
|
929 | 935 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
930 | 936 | if (args[0]!=&returnValue) { |
|
931 | 937 | if (args[0]==NULL) { |
|
932 | 938 | PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); |
|
933 | 939 | } else { |
|
934 | 940 | returnValue = *((QSize*)args[0]); |
|
935 | 941 | } |
|
936 | 942 | } |
|
937 | 943 | } |
|
938 | 944 | if (result) { Py_DECREF(result); } |
|
939 | 945 | Py_DECREF(obj); |
|
940 | 946 | return returnValue; |
|
941 | 947 | } |
|
942 | 948 | } |
|
943 | 949 | return MemSizeWdgt::minimumSizeHint(); |
|
944 | 950 | } |
|
945 | 951 | void PythonQtShell_MemSizeWdgt::mouseDoubleClickEvent(QMouseEvent* arg__1) |
|
946 | 952 | { |
|
947 | 953 | if (_wrapper) { |
|
948 | 954 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); |
|
949 | 955 | PyErr_Clear(); |
|
950 | 956 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
951 | 957 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
952 | 958 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
953 | 959 | void* args[2] = {NULL, (void*)&arg__1}; |
|
954 | 960 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
955 | 961 | if (result) { Py_DECREF(result); } |
|
956 | 962 | Py_DECREF(obj); |
|
957 | 963 | return; |
|
958 | 964 | } |
|
959 | 965 | } |
|
960 | 966 | MemSizeWdgt::mouseDoubleClickEvent(arg__1); |
|
961 | 967 | } |
|
962 | 968 | void PythonQtShell_MemSizeWdgt::mouseMoveEvent(QMouseEvent* arg__1) |
|
963 | 969 | { |
|
964 | 970 | if (_wrapper) { |
|
965 | 971 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); |
|
966 | 972 | PyErr_Clear(); |
|
967 | 973 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
968 | 974 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
969 | 975 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
970 | 976 | void* args[2] = {NULL, (void*)&arg__1}; |
|
971 | 977 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
972 | 978 | if (result) { Py_DECREF(result); } |
|
973 | 979 | Py_DECREF(obj); |
|
974 | 980 | return; |
|
975 | 981 | } |
|
976 | 982 | } |
|
977 | 983 | MemSizeWdgt::mouseMoveEvent(arg__1); |
|
978 | 984 | } |
|
979 | 985 | void PythonQtShell_MemSizeWdgt::mousePressEvent(QMouseEvent* arg__1) |
|
980 | 986 | { |
|
981 | 987 | if (_wrapper) { |
|
982 | 988 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); |
|
983 | 989 | PyErr_Clear(); |
|
984 | 990 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
985 | 991 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
986 | 992 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
987 | 993 | void* args[2] = {NULL, (void*)&arg__1}; |
|
988 | 994 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
989 | 995 | if (result) { Py_DECREF(result); } |
|
990 | 996 | Py_DECREF(obj); |
|
991 | 997 | return; |
|
992 | 998 | } |
|
993 | 999 | } |
|
994 | 1000 | MemSizeWdgt::mousePressEvent(arg__1); |
|
995 | 1001 | } |
|
996 | 1002 | void PythonQtShell_MemSizeWdgt::mouseReleaseEvent(QMouseEvent* arg__1) |
|
997 | 1003 | { |
|
998 | 1004 | if (_wrapper) { |
|
999 | 1005 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); |
|
1000 | 1006 | PyErr_Clear(); |
|
1001 | 1007 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1002 | 1008 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
1003 | 1009 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1004 | 1010 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1005 | 1011 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1006 | 1012 | if (result) { Py_DECREF(result); } |
|
1007 | 1013 | Py_DECREF(obj); |
|
1008 | 1014 | return; |
|
1009 | 1015 | } |
|
1010 | 1016 | } |
|
1011 | 1017 | MemSizeWdgt::mouseReleaseEvent(arg__1); |
|
1012 | 1018 | } |
|
1013 | 1019 | void PythonQtShell_MemSizeWdgt::moveEvent(QMoveEvent* arg__1) |
|
1014 | 1020 | { |
|
1015 | 1021 | if (_wrapper) { |
|
1016 | 1022 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); |
|
1017 | 1023 | PyErr_Clear(); |
|
1018 | 1024 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1019 | 1025 | static const char* argumentList[] ={"" , "QMoveEvent*"}; |
|
1020 | 1026 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1021 | 1027 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1022 | 1028 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1023 | 1029 | if (result) { Py_DECREF(result); } |
|
1024 | 1030 | Py_DECREF(obj); |
|
1025 | 1031 | return; |
|
1026 | 1032 | } |
|
1027 | 1033 | } |
|
1028 | 1034 | MemSizeWdgt::moveEvent(arg__1); |
|
1029 | 1035 | } |
|
1030 | 1036 | bool PythonQtShell_MemSizeWdgt::nativeEvent(const QByteArray& eventType, void* message, long* result) |
|
1031 | 1037 | { |
|
1032 | 1038 | if (_wrapper) { |
|
1033 | 1039 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); |
|
1034 | 1040 | PyErr_Clear(); |
|
1035 | 1041 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1036 | 1042 | static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; |
|
1037 | 1043 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); |
|
1038 | 1044 | bool returnValue; |
|
1039 | 1045 | void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; |
|
1040 | 1046 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1041 | 1047 | if (result) { |
|
1042 | 1048 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1043 | 1049 | if (args[0]!=&returnValue) { |
|
1044 | 1050 | if (args[0]==NULL) { |
|
1045 | 1051 | PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); |
|
1046 | 1052 | } else { |
|
1047 | 1053 | returnValue = *((bool*)args[0]); |
|
1048 | 1054 | } |
|
1049 | 1055 | } |
|
1050 | 1056 | } |
|
1051 | 1057 | if (result) { Py_DECREF(result); } |
|
1052 | 1058 | Py_DECREF(obj); |
|
1053 | 1059 | return returnValue; |
|
1054 | 1060 | } |
|
1055 | 1061 | } |
|
1056 | 1062 | return MemSizeWdgt::nativeEvent(eventType, message, result); |
|
1057 | 1063 | } |
|
1058 | 1064 | QPaintEngine* PythonQtShell_MemSizeWdgt::paintEngine() const |
|
1059 | 1065 | { |
|
1060 | 1066 | if (_wrapper) { |
|
1061 | 1067 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); |
|
1062 | 1068 | PyErr_Clear(); |
|
1063 | 1069 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1064 | 1070 | static const char* argumentList[] ={"QPaintEngine*"}; |
|
1065 | 1071 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
1066 | 1072 | QPaintEngine* returnValue; |
|
1067 | 1073 | void* args[1] = {NULL}; |
|
1068 | 1074 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1069 | 1075 | if (result) { |
|
1070 | 1076 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1071 | 1077 | if (args[0]!=&returnValue) { |
|
1072 | 1078 | if (args[0]==NULL) { |
|
1073 | 1079 | PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); |
|
1074 | 1080 | } else { |
|
1075 | 1081 | returnValue = *((QPaintEngine**)args[0]); |
|
1076 | 1082 | } |
|
1077 | 1083 | } |
|
1078 | 1084 | } |
|
1079 | 1085 | if (result) { Py_DECREF(result); } |
|
1080 | 1086 | Py_DECREF(obj); |
|
1081 | 1087 | return returnValue; |
|
1082 | 1088 | } |
|
1083 | 1089 | } |
|
1084 | 1090 | return MemSizeWdgt::paintEngine(); |
|
1085 | 1091 | } |
|
1086 | 1092 | void PythonQtShell_MemSizeWdgt::paintEvent(QPaintEvent* arg__1) |
|
1087 | 1093 | { |
|
1088 | 1094 | if (_wrapper) { |
|
1089 | 1095 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); |
|
1090 | 1096 | PyErr_Clear(); |
|
1091 | 1097 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1092 | 1098 | static const char* argumentList[] ={"" , "QPaintEvent*"}; |
|
1093 | 1099 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1094 | 1100 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1095 | 1101 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1096 | 1102 | if (result) { Py_DECREF(result); } |
|
1097 | 1103 | Py_DECREF(obj); |
|
1098 | 1104 | return; |
|
1099 | 1105 | } |
|
1100 | 1106 | } |
|
1101 | 1107 | MemSizeWdgt::paintEvent(arg__1); |
|
1102 | 1108 | } |
|
1103 | 1109 | QPaintDevice* PythonQtShell_MemSizeWdgt::redirected(QPoint* offset) const |
|
1104 | 1110 | { |
|
1105 | 1111 | if (_wrapper) { |
|
1106 | 1112 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); |
|
1107 | 1113 | PyErr_Clear(); |
|
1108 | 1114 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1109 | 1115 | static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; |
|
1110 | 1116 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1111 | 1117 | QPaintDevice* returnValue; |
|
1112 | 1118 | void* args[2] = {NULL, (void*)&offset}; |
|
1113 | 1119 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1114 | 1120 | if (result) { |
|
1115 | 1121 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1116 | 1122 | if (args[0]!=&returnValue) { |
|
1117 | 1123 | if (args[0]==NULL) { |
|
1118 | 1124 | PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); |
|
1119 | 1125 | } else { |
|
1120 | 1126 | returnValue = *((QPaintDevice**)args[0]); |
|
1121 | 1127 | } |
|
1122 | 1128 | } |
|
1123 | 1129 | } |
|
1124 | 1130 | if (result) { Py_DECREF(result); } |
|
1125 | 1131 | Py_DECREF(obj); |
|
1126 | 1132 | return returnValue; |
|
1127 | 1133 | } |
|
1128 | 1134 | } |
|
1129 | 1135 | return MemSizeWdgt::redirected(offset); |
|
1130 | 1136 | } |
|
1131 | 1137 | void PythonQtShell_MemSizeWdgt::resizeEvent(QResizeEvent* arg__1) |
|
1132 | 1138 | { |
|
1133 | 1139 | if (_wrapper) { |
|
1134 | 1140 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); |
|
1135 | 1141 | PyErr_Clear(); |
|
1136 | 1142 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1137 | 1143 | static const char* argumentList[] ={"" , "QResizeEvent*"}; |
|
1138 | 1144 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1139 | 1145 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1140 | 1146 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1141 | 1147 | if (result) { Py_DECREF(result); } |
|
1142 | 1148 | Py_DECREF(obj); |
|
1143 | 1149 | return; |
|
1144 | 1150 | } |
|
1145 | 1151 | } |
|
1146 | 1152 | MemSizeWdgt::resizeEvent(arg__1); |
|
1147 | 1153 | } |
|
1148 | 1154 | QPainter* PythonQtShell_MemSizeWdgt::sharedPainter() const |
|
1149 | 1155 | { |
|
1150 | 1156 | if (_wrapper) { |
|
1151 | 1157 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); |
|
1152 | 1158 | PyErr_Clear(); |
|
1153 | 1159 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1154 | 1160 | static const char* argumentList[] ={"QPainter*"}; |
|
1155 | 1161 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
1156 | 1162 | QPainter* returnValue; |
|
1157 | 1163 | void* args[1] = {NULL}; |
|
1158 | 1164 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1159 | 1165 | if (result) { |
|
1160 | 1166 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1161 | 1167 | if (args[0]!=&returnValue) { |
|
1162 | 1168 | if (args[0]==NULL) { |
|
1163 | 1169 | PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); |
|
1164 | 1170 | } else { |
|
1165 | 1171 | returnValue = *((QPainter**)args[0]); |
|
1166 | 1172 | } |
|
1167 | 1173 | } |
|
1168 | 1174 | } |
|
1169 | 1175 | if (result) { Py_DECREF(result); } |
|
1170 | 1176 | Py_DECREF(obj); |
|
1171 | 1177 | return returnValue; |
|
1172 | 1178 | } |
|
1173 | 1179 | } |
|
1174 | 1180 | return MemSizeWdgt::sharedPainter(); |
|
1175 | 1181 | } |
|
1176 | 1182 | void PythonQtShell_MemSizeWdgt::showEvent(QShowEvent* arg__1) |
|
1177 | 1183 | { |
|
1178 | 1184 | if (_wrapper) { |
|
1179 | 1185 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); |
|
1180 | 1186 | PyErr_Clear(); |
|
1181 | 1187 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1182 | 1188 | static const char* argumentList[] ={"" , "QShowEvent*"}; |
|
1183 | 1189 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1184 | 1190 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1185 | 1191 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1186 | 1192 | if (result) { Py_DECREF(result); } |
|
1187 | 1193 | Py_DECREF(obj); |
|
1188 | 1194 | return; |
|
1189 | 1195 | } |
|
1190 | 1196 | } |
|
1191 | 1197 | MemSizeWdgt::showEvent(arg__1); |
|
1192 | 1198 | } |
|
1193 | 1199 | QSize PythonQtShell_MemSizeWdgt::sizeHint() const |
|
1194 | 1200 | { |
|
1195 | 1201 | if (_wrapper) { |
|
1196 | 1202 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); |
|
1197 | 1203 | PyErr_Clear(); |
|
1198 | 1204 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1199 | 1205 | static const char* argumentList[] ={"QSize"}; |
|
1200 | 1206 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
1201 | 1207 | QSize returnValue; |
|
1202 | 1208 | void* args[1] = {NULL}; |
|
1203 | 1209 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1204 | 1210 | if (result) { |
|
1205 | 1211 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1206 | 1212 | if (args[0]!=&returnValue) { |
|
1207 | 1213 | if (args[0]==NULL) { |
|
1208 | 1214 | PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); |
|
1209 | 1215 | } else { |
|
1210 | 1216 | returnValue = *((QSize*)args[0]); |
|
1211 | 1217 | } |
|
1212 | 1218 | } |
|
1213 | 1219 | } |
|
1214 | 1220 | if (result) { Py_DECREF(result); } |
|
1215 | 1221 | Py_DECREF(obj); |
|
1216 | 1222 | return returnValue; |
|
1217 | 1223 | } |
|
1218 | 1224 | } |
|
1219 | 1225 | return MemSizeWdgt::sizeHint(); |
|
1220 | 1226 | } |
|
1221 | 1227 | void PythonQtShell_MemSizeWdgt::tabletEvent(QTabletEvent* arg__1) |
|
1222 | 1228 | { |
|
1223 | 1229 | if (_wrapper) { |
|
1224 | 1230 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); |
|
1225 | 1231 | PyErr_Clear(); |
|
1226 | 1232 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1227 | 1233 | static const char* argumentList[] ={"" , "QTabletEvent*"}; |
|
1228 | 1234 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1229 | 1235 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1230 | 1236 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1231 | 1237 | if (result) { Py_DECREF(result); } |
|
1232 | 1238 | Py_DECREF(obj); |
|
1233 | 1239 | return; |
|
1234 | 1240 | } |
|
1235 | 1241 | } |
|
1236 | 1242 | MemSizeWdgt::tabletEvent(arg__1); |
|
1237 | 1243 | } |
|
1238 | 1244 | void PythonQtShell_MemSizeWdgt::timerEvent(QTimerEvent* arg__1) |
|
1239 | 1245 | { |
|
1240 | 1246 | if (_wrapper) { |
|
1241 | 1247 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); |
|
1242 | 1248 | PyErr_Clear(); |
|
1243 | 1249 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1244 | 1250 | static const char* argumentList[] ={"" , "QTimerEvent*"}; |
|
1245 | 1251 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1246 | 1252 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1247 | 1253 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1248 | 1254 | if (result) { Py_DECREF(result); } |
|
1249 | 1255 | Py_DECREF(obj); |
|
1250 | 1256 | return; |
|
1251 | 1257 | } |
|
1252 | 1258 | } |
|
1253 | 1259 | MemSizeWdgt::timerEvent(arg__1); |
|
1254 | 1260 | } |
|
1255 | 1261 | void PythonQtShell_MemSizeWdgt::wheelEvent(QWheelEvent* arg__1) |
|
1256 | 1262 | { |
|
1257 | 1263 | if (_wrapper) { |
|
1258 | 1264 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); |
|
1259 | 1265 | PyErr_Clear(); |
|
1260 | 1266 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1261 | 1267 | static const char* argumentList[] ={"" , "QWheelEvent*"}; |
|
1262 | 1268 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1263 | 1269 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1264 | 1270 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1265 | 1271 | if (result) { Py_DECREF(result); } |
|
1266 | 1272 | Py_DECREF(obj); |
|
1267 | 1273 | return; |
|
1268 | 1274 | } |
|
1269 | 1275 | } |
|
1270 | 1276 | MemSizeWdgt::wheelEvent(arg__1); |
|
1271 | 1277 | } |
|
1272 | 1278 | MemSizeWdgt* PythonQtWrapper_MemSizeWdgt::new_MemSizeWdgt(QWidget* parent) |
|
1273 | 1279 | { |
|
1274 | 1280 | return new PythonQtShell_MemSizeWdgt(parent); } |
|
1275 | 1281 | |
|
1276 | 1282 | MemSizeWdgt* PythonQtWrapper_MemSizeWdgt::new_MemSizeWdgt(int defaultSize, QWidget* parent) |
|
1277 | 1283 | { |
|
1278 | 1284 | return new PythonQtShell_MemSizeWdgt(defaultSize, parent); } |
|
1279 | 1285 | |
|
1280 | 1286 | int PythonQtWrapper_MemSizeWdgt::getsize(MemSizeWdgt* theWrappedObject) |
|
1281 | 1287 | { |
|
1282 | 1288 | return ( theWrappedObject->getsize()); |
|
1283 | 1289 | } |
|
1284 | 1290 | |
|
1285 | 1291 | void PythonQtWrapper_MemSizeWdgt::setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max) |
|
1286 | 1292 | { |
|
1287 | 1293 | ( theWrappedObject->setMaximum(max)); |
|
1288 | 1294 | } |
|
1289 | 1295 | |
|
1290 | 1296 | void PythonQtWrapper_MemSizeWdgt::show(MemSizeWdgt* theWrappedObject) |
|
1291 | 1297 | { |
|
1292 | 1298 | ( theWrappedObject->show()); |
|
1293 | 1299 | } |
|
1294 | 1300 | |
|
1295 | 1301 | void PythonQtWrapper_MemSizeWdgt::updateSizeValue(MemSizeWdgt* theWrappedObject) |
|
1296 | 1302 | { |
|
1297 | 1303 | ( theWrappedObject->updateSizeValue()); |
|
1298 | 1304 | } |
|
1299 | 1305 | |
|
1300 | 1306 | |
|
1301 | 1307 | |
|
1302 | 1308 | PythonQtShell_QHexEdit::~PythonQtShell_QHexEdit() { |
|
1303 | 1309 | PythonQtPrivate* priv = PythonQt::priv(); |
|
1304 | 1310 | if (priv) { priv->shellClassDeleted(this); } |
|
1305 | 1311 | } |
|
1306 | 1312 | void PythonQtShell_QHexEdit::actionEvent(QActionEvent* arg__1) |
|
1307 | 1313 | { |
|
1308 | 1314 | if (_wrapper) { |
|
1309 | 1315 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); |
|
1310 | 1316 | PyErr_Clear(); |
|
1311 | 1317 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1312 | 1318 | static const char* argumentList[] ={"" , "QActionEvent*"}; |
|
1313 | 1319 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1314 | 1320 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1315 | 1321 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1316 | 1322 | if (result) { Py_DECREF(result); } |
|
1317 | 1323 | Py_DECREF(obj); |
|
1318 | 1324 | return; |
|
1319 | 1325 | } |
|
1320 | 1326 | } |
|
1321 | 1327 | QHexEdit::actionEvent(arg__1); |
|
1322 | 1328 | } |
|
1323 | 1329 | void PythonQtShell_QHexEdit::changeEvent(QEvent* arg__1) |
|
1324 | 1330 | { |
|
1325 | 1331 | if (_wrapper) { |
|
1326 | 1332 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); |
|
1327 | 1333 | PyErr_Clear(); |
|
1328 | 1334 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1329 | 1335 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
1330 | 1336 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1331 | 1337 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1332 | 1338 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1333 | 1339 | if (result) { Py_DECREF(result); } |
|
1334 | 1340 | Py_DECREF(obj); |
|
1335 | 1341 | return; |
|
1336 | 1342 | } |
|
1337 | 1343 | } |
|
1338 | 1344 | QHexEdit::changeEvent(arg__1); |
|
1339 | 1345 | } |
|
1340 | 1346 | void PythonQtShell_QHexEdit::childEvent(QChildEvent* arg__1) |
|
1341 | 1347 | { |
|
1342 | 1348 | if (_wrapper) { |
|
1343 | 1349 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); |
|
1344 | 1350 | PyErr_Clear(); |
|
1345 | 1351 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1346 | 1352 | static const char* argumentList[] ={"" , "QChildEvent*"}; |
|
1347 | 1353 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1348 | 1354 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1349 | 1355 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1350 | 1356 | if (result) { Py_DECREF(result); } |
|
1351 | 1357 | Py_DECREF(obj); |
|
1352 | 1358 | return; |
|
1353 | 1359 | } |
|
1354 | 1360 | } |
|
1355 | 1361 | QHexEdit::childEvent(arg__1); |
|
1356 | 1362 | } |
|
1357 | 1363 | void PythonQtShell_QHexEdit::closeEvent(QCloseEvent* arg__1) |
|
1358 | 1364 | { |
|
1359 | 1365 | if (_wrapper) { |
|
1360 | 1366 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); |
|
1361 | 1367 | PyErr_Clear(); |
|
1362 | 1368 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1363 | 1369 | static const char* argumentList[] ={"" , "QCloseEvent*"}; |
|
1364 | 1370 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1365 | 1371 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1366 | 1372 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1367 | 1373 | if (result) { Py_DECREF(result); } |
|
1368 | 1374 | Py_DECREF(obj); |
|
1369 | 1375 | return; |
|
1370 | 1376 | } |
|
1371 | 1377 | } |
|
1372 | 1378 | QHexEdit::closeEvent(arg__1); |
|
1373 | 1379 | } |
|
1374 | 1380 | void PythonQtShell_QHexEdit::contextMenuEvent(QContextMenuEvent* arg__1) |
|
1375 | 1381 | { |
|
1376 | 1382 | if (_wrapper) { |
|
1377 | 1383 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); |
|
1378 | 1384 | PyErr_Clear(); |
|
1379 | 1385 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1380 | 1386 | static const char* argumentList[] ={"" , "QContextMenuEvent*"}; |
|
1381 | 1387 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1382 | 1388 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1383 | 1389 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1384 | 1390 | if (result) { Py_DECREF(result); } |
|
1385 | 1391 | Py_DECREF(obj); |
|
1386 | 1392 | return; |
|
1387 | 1393 | } |
|
1388 | 1394 | } |
|
1389 | 1395 | QHexEdit::contextMenuEvent(arg__1); |
|
1390 | 1396 | } |
|
1391 | 1397 | void PythonQtShell_QHexEdit::customEvent(QEvent* arg__1) |
|
1392 | 1398 | { |
|
1393 | 1399 | if (_wrapper) { |
|
1394 | 1400 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); |
|
1395 | 1401 | PyErr_Clear(); |
|
1396 | 1402 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1397 | 1403 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
1398 | 1404 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1399 | 1405 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1400 | 1406 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1401 | 1407 | if (result) { Py_DECREF(result); } |
|
1402 | 1408 | Py_DECREF(obj); |
|
1403 | 1409 | return; |
|
1404 | 1410 | } |
|
1405 | 1411 | } |
|
1406 | 1412 | QHexEdit::customEvent(arg__1); |
|
1407 | 1413 | } |
|
1408 | 1414 | int PythonQtShell_QHexEdit::devType() const |
|
1409 | 1415 | { |
|
1410 | 1416 | if (_wrapper) { |
|
1411 | 1417 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); |
|
1412 | 1418 | PyErr_Clear(); |
|
1413 | 1419 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1414 | 1420 | static const char* argumentList[] ={"int"}; |
|
1415 | 1421 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
1416 | 1422 | int returnValue; |
|
1417 | 1423 | void* args[1] = {NULL}; |
|
1418 | 1424 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1419 | 1425 | if (result) { |
|
1420 | 1426 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1421 | 1427 | if (args[0]!=&returnValue) { |
|
1422 | 1428 | if (args[0]==NULL) { |
|
1423 | 1429 | PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); |
|
1424 | 1430 | } else { |
|
1425 | 1431 | returnValue = *((int*)args[0]); |
|
1426 | 1432 | } |
|
1427 | 1433 | } |
|
1428 | 1434 | } |
|
1429 | 1435 | if (result) { Py_DECREF(result); } |
|
1430 | 1436 | Py_DECREF(obj); |
|
1431 | 1437 | return returnValue; |
|
1432 | 1438 | } |
|
1433 | 1439 | } |
|
1434 | 1440 | return QHexEdit::devType(); |
|
1435 | 1441 | } |
|
1436 | 1442 | void PythonQtShell_QHexEdit::dragEnterEvent(QDragEnterEvent* arg__1) |
|
1437 | 1443 | { |
|
1438 | 1444 | if (_wrapper) { |
|
1439 | 1445 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); |
|
1440 | 1446 | PyErr_Clear(); |
|
1441 | 1447 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1442 | 1448 | static const char* argumentList[] ={"" , "QDragEnterEvent*"}; |
|
1443 | 1449 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1444 | 1450 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1445 | 1451 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1446 | 1452 | if (result) { Py_DECREF(result); } |
|
1447 | 1453 | Py_DECREF(obj); |
|
1448 | 1454 | return; |
|
1449 | 1455 | } |
|
1450 | 1456 | } |
|
1451 | 1457 | QHexEdit::dragEnterEvent(arg__1); |
|
1452 | 1458 | } |
|
1453 | 1459 | void PythonQtShell_QHexEdit::dragLeaveEvent(QDragLeaveEvent* arg__1) |
|
1454 | 1460 | { |
|
1455 | 1461 | if (_wrapper) { |
|
1456 | 1462 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); |
|
1457 | 1463 | PyErr_Clear(); |
|
1458 | 1464 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1459 | 1465 | static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; |
|
1460 | 1466 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1461 | 1467 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1462 | 1468 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1463 | 1469 | if (result) { Py_DECREF(result); } |
|
1464 | 1470 | Py_DECREF(obj); |
|
1465 | 1471 | return; |
|
1466 | 1472 | } |
|
1467 | 1473 | } |
|
1468 | 1474 | QHexEdit::dragLeaveEvent(arg__1); |
|
1469 | 1475 | } |
|
1470 | 1476 | void PythonQtShell_QHexEdit::dragMoveEvent(QDragMoveEvent* arg__1) |
|
1471 | 1477 | { |
|
1472 | 1478 | if (_wrapper) { |
|
1473 | 1479 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); |
|
1474 | 1480 | PyErr_Clear(); |
|
1475 | 1481 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1476 | 1482 | static const char* argumentList[] ={"" , "QDragMoveEvent*"}; |
|
1477 | 1483 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1478 | 1484 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1479 | 1485 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1480 | 1486 | if (result) { Py_DECREF(result); } |
|
1481 | 1487 | Py_DECREF(obj); |
|
1482 | 1488 | return; |
|
1483 | 1489 | } |
|
1484 | 1490 | } |
|
1485 | 1491 | QHexEdit::dragMoveEvent(arg__1); |
|
1486 | 1492 | } |
|
1487 | 1493 | void PythonQtShell_QHexEdit::dropEvent(QDropEvent* arg__1) |
|
1488 | 1494 | { |
|
1489 | 1495 | if (_wrapper) { |
|
1490 | 1496 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); |
|
1491 | 1497 | PyErr_Clear(); |
|
1492 | 1498 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1493 | 1499 | static const char* argumentList[] ={"" , "QDropEvent*"}; |
|
1494 | 1500 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1495 | 1501 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1496 | 1502 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1497 | 1503 | if (result) { Py_DECREF(result); } |
|
1498 | 1504 | Py_DECREF(obj); |
|
1499 | 1505 | return; |
|
1500 | 1506 | } |
|
1501 | 1507 | } |
|
1502 | 1508 | QHexEdit::dropEvent(arg__1); |
|
1503 | 1509 | } |
|
1504 | 1510 | void PythonQtShell_QHexEdit::enterEvent(QEvent* arg__1) |
|
1505 | 1511 | { |
|
1506 | 1512 | if (_wrapper) { |
|
1507 | 1513 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); |
|
1508 | 1514 | PyErr_Clear(); |
|
1509 | 1515 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1510 | 1516 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
1511 | 1517 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1512 | 1518 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1513 | 1519 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1514 | 1520 | if (result) { Py_DECREF(result); } |
|
1515 | 1521 | Py_DECREF(obj); |
|
1516 | 1522 | return; |
|
1517 | 1523 | } |
|
1518 | 1524 | } |
|
1519 | 1525 | QHexEdit::enterEvent(arg__1); |
|
1520 | 1526 | } |
|
1521 | 1527 | bool PythonQtShell_QHexEdit::event(QEvent* arg__1) |
|
1522 | 1528 | { |
|
1523 | 1529 | if (_wrapper) { |
|
1524 | 1530 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); |
|
1525 | 1531 | PyErr_Clear(); |
|
1526 | 1532 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1527 | 1533 | static const char* argumentList[] ={"bool" , "QEvent*"}; |
|
1528 | 1534 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1529 | 1535 | bool returnValue; |
|
1530 | 1536 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1531 | 1537 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1532 | 1538 | if (result) { |
|
1533 | 1539 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1534 | 1540 | if (args[0]!=&returnValue) { |
|
1535 | 1541 | if (args[0]==NULL) { |
|
1536 | 1542 | PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); |
|
1537 | 1543 | } else { |
|
1538 | 1544 | returnValue = *((bool*)args[0]); |
|
1539 | 1545 | } |
|
1540 | 1546 | } |
|
1541 | 1547 | } |
|
1542 | 1548 | if (result) { Py_DECREF(result); } |
|
1543 | 1549 | Py_DECREF(obj); |
|
1544 | 1550 | return returnValue; |
|
1545 | 1551 | } |
|
1546 | 1552 | } |
|
1547 | 1553 | return QHexEdit::event(arg__1); |
|
1548 | 1554 | } |
|
1549 | 1555 | bool PythonQtShell_QHexEdit::eventFilter(QObject* arg__1, QEvent* arg__2) |
|
1550 | 1556 | { |
|
1551 | 1557 | if (_wrapper) { |
|
1552 | 1558 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); |
|
1553 | 1559 | PyErr_Clear(); |
|
1554 | 1560 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1555 | 1561 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; |
|
1556 | 1562 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); |
|
1557 | 1563 | bool returnValue; |
|
1558 | 1564 | void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; |
|
1559 | 1565 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1560 | 1566 | if (result) { |
|
1561 | 1567 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1562 | 1568 | if (args[0]!=&returnValue) { |
|
1563 | 1569 | if (args[0]==NULL) { |
|
1564 | 1570 | PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); |
|
1565 | 1571 | } else { |
|
1566 | 1572 | returnValue = *((bool*)args[0]); |
|
1567 | 1573 | } |
|
1568 | 1574 | } |
|
1569 | 1575 | } |
|
1570 | 1576 | if (result) { Py_DECREF(result); } |
|
1571 | 1577 | Py_DECREF(obj); |
|
1572 | 1578 | return returnValue; |
|
1573 | 1579 | } |
|
1574 | 1580 | } |
|
1575 | 1581 | return QHexEdit::eventFilter(arg__1, arg__2); |
|
1576 | 1582 | } |
|
1577 | 1583 | void PythonQtShell_QHexEdit::focusInEvent(QFocusEvent* arg__1) |
|
1578 | 1584 | { |
|
1579 | 1585 | if (_wrapper) { |
|
1580 | 1586 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); |
|
1581 | 1587 | PyErr_Clear(); |
|
1582 | 1588 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1583 | 1589 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
1584 | 1590 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1585 | 1591 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1586 | 1592 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1587 | 1593 | if (result) { Py_DECREF(result); } |
|
1588 | 1594 | Py_DECREF(obj); |
|
1589 | 1595 | return; |
|
1590 | 1596 | } |
|
1591 | 1597 | } |
|
1592 | 1598 | QHexEdit::focusInEvent(arg__1); |
|
1593 | 1599 | } |
|
1594 | 1600 | bool PythonQtShell_QHexEdit::focusNextPrevChild(bool next) |
|
1595 | 1601 | { |
|
1596 | 1602 | if (_wrapper) { |
|
1597 | 1603 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); |
|
1598 | 1604 | PyErr_Clear(); |
|
1599 | 1605 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1600 | 1606 | static const char* argumentList[] ={"bool" , "bool"}; |
|
1601 | 1607 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1602 | 1608 | bool returnValue; |
|
1603 | 1609 | void* args[2] = {NULL, (void*)&next}; |
|
1604 | 1610 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1605 | 1611 | if (result) { |
|
1606 | 1612 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1607 | 1613 | if (args[0]!=&returnValue) { |
|
1608 | 1614 | if (args[0]==NULL) { |
|
1609 | 1615 | PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); |
|
1610 | 1616 | } else { |
|
1611 | 1617 | returnValue = *((bool*)args[0]); |
|
1612 | 1618 | } |
|
1613 | 1619 | } |
|
1614 | 1620 | } |
|
1615 | 1621 | if (result) { Py_DECREF(result); } |
|
1616 | 1622 | Py_DECREF(obj); |
|
1617 | 1623 | return returnValue; |
|
1618 | 1624 | } |
|
1619 | 1625 | } |
|
1620 | 1626 | return QHexEdit::focusNextPrevChild(next); |
|
1621 | 1627 | } |
|
1622 | 1628 | void PythonQtShell_QHexEdit::focusOutEvent(QFocusEvent* arg__1) |
|
1623 | 1629 | { |
|
1624 | 1630 | if (_wrapper) { |
|
1625 | 1631 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); |
|
1626 | 1632 | PyErr_Clear(); |
|
1627 | 1633 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1628 | 1634 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
1629 | 1635 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1630 | 1636 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1631 | 1637 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1632 | 1638 | if (result) { Py_DECREF(result); } |
|
1633 | 1639 | Py_DECREF(obj); |
|
1634 | 1640 | return; |
|
1635 | 1641 | } |
|
1636 | 1642 | } |
|
1637 | 1643 | QHexEdit::focusOutEvent(arg__1); |
|
1638 | 1644 | } |
|
1639 | 1645 | bool PythonQtShell_QHexEdit::hasHeightForWidth() const |
|
1640 | 1646 | { |
|
1641 | 1647 | if (_wrapper) { |
|
1642 | 1648 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); |
|
1643 | 1649 | PyErr_Clear(); |
|
1644 | 1650 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1645 | 1651 | static const char* argumentList[] ={"bool"}; |
|
1646 | 1652 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
1647 | 1653 | bool returnValue; |
|
1648 | 1654 | void* args[1] = {NULL}; |
|
1649 | 1655 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1650 | 1656 | if (result) { |
|
1651 | 1657 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1652 | 1658 | if (args[0]!=&returnValue) { |
|
1653 | 1659 | if (args[0]==NULL) { |
|
1654 | 1660 | PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); |
|
1655 | 1661 | } else { |
|
1656 | 1662 | returnValue = *((bool*)args[0]); |
|
1657 | 1663 | } |
|
1658 | 1664 | } |
|
1659 | 1665 | } |
|
1660 | 1666 | if (result) { Py_DECREF(result); } |
|
1661 | 1667 | Py_DECREF(obj); |
|
1662 | 1668 | return returnValue; |
|
1663 | 1669 | } |
|
1664 | 1670 | } |
|
1665 | 1671 | return QHexEdit::hasHeightForWidth(); |
|
1666 | 1672 | } |
|
1667 | 1673 | int PythonQtShell_QHexEdit::heightForWidth(int arg__1) const |
|
1668 | 1674 | { |
|
1669 | 1675 | if (_wrapper) { |
|
1670 | 1676 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); |
|
1671 | 1677 | PyErr_Clear(); |
|
1672 | 1678 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1673 | 1679 | static const char* argumentList[] ={"int" , "int"}; |
|
1674 | 1680 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1675 | 1681 | int returnValue; |
|
1676 | 1682 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1677 | 1683 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1678 | 1684 | if (result) { |
|
1679 | 1685 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1680 | 1686 | if (args[0]!=&returnValue) { |
|
1681 | 1687 | if (args[0]==NULL) { |
|
1682 | 1688 | PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); |
|
1683 | 1689 | } else { |
|
1684 | 1690 | returnValue = *((int*)args[0]); |
|
1685 | 1691 | } |
|
1686 | 1692 | } |
|
1687 | 1693 | } |
|
1688 | 1694 | if (result) { Py_DECREF(result); } |
|
1689 | 1695 | Py_DECREF(obj); |
|
1690 | 1696 | return returnValue; |
|
1691 | 1697 | } |
|
1692 | 1698 | } |
|
1693 | 1699 | return QHexEdit::heightForWidth(arg__1); |
|
1694 | 1700 | } |
|
1695 | 1701 | void PythonQtShell_QHexEdit::hideEvent(QHideEvent* arg__1) |
|
1696 | 1702 | { |
|
1697 | 1703 | if (_wrapper) { |
|
1698 | 1704 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); |
|
1699 | 1705 | PyErr_Clear(); |
|
1700 | 1706 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1701 | 1707 | static const char* argumentList[] ={"" , "QHideEvent*"}; |
|
1702 | 1708 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1703 | 1709 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1704 | 1710 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1705 | 1711 | if (result) { Py_DECREF(result); } |
|
1706 | 1712 | Py_DECREF(obj); |
|
1707 | 1713 | return; |
|
1708 | 1714 | } |
|
1709 | 1715 | } |
|
1710 | 1716 | QHexEdit::hideEvent(arg__1); |
|
1711 | 1717 | } |
|
1712 | 1718 | void PythonQtShell_QHexEdit::initPainter(QPainter* painter) const |
|
1713 | 1719 | { |
|
1714 | 1720 | if (_wrapper) { |
|
1715 | 1721 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); |
|
1716 | 1722 | PyErr_Clear(); |
|
1717 | 1723 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1718 | 1724 | static const char* argumentList[] ={"" , "QPainter*"}; |
|
1719 | 1725 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1720 | 1726 | void* args[2] = {NULL, (void*)&painter}; |
|
1721 | 1727 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1722 | 1728 | if (result) { Py_DECREF(result); } |
|
1723 | 1729 | Py_DECREF(obj); |
|
1724 | 1730 | return; |
|
1725 | 1731 | } |
|
1726 | 1732 | } |
|
1727 | 1733 | QHexEdit::initPainter(painter); |
|
1728 | 1734 | } |
|
1729 | 1735 | void PythonQtShell_QHexEdit::inputMethodEvent(QInputMethodEvent* arg__1) |
|
1730 | 1736 | { |
|
1731 | 1737 | if (_wrapper) { |
|
1732 | 1738 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); |
|
1733 | 1739 | PyErr_Clear(); |
|
1734 | 1740 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1735 | 1741 | static const char* argumentList[] ={"" , "QInputMethodEvent*"}; |
|
1736 | 1742 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1737 | 1743 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1738 | 1744 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1739 | 1745 | if (result) { Py_DECREF(result); } |
|
1740 | 1746 | Py_DECREF(obj); |
|
1741 | 1747 | return; |
|
1742 | 1748 | } |
|
1743 | 1749 | } |
|
1744 | 1750 | QHexEdit::inputMethodEvent(arg__1); |
|
1745 | 1751 | } |
|
1746 | 1752 | QVariant PythonQtShell_QHexEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const |
|
1747 | 1753 | { |
|
1748 | 1754 | if (_wrapper) { |
|
1749 | 1755 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); |
|
1750 | 1756 | PyErr_Clear(); |
|
1751 | 1757 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1752 | 1758 | static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; |
|
1753 | 1759 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1754 | 1760 | QVariant returnValue; |
|
1755 | 1761 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1756 | 1762 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1757 | 1763 | if (result) { |
|
1758 | 1764 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1759 | 1765 | if (args[0]!=&returnValue) { |
|
1760 | 1766 | if (args[0]==NULL) { |
|
1761 | 1767 | PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); |
|
1762 | 1768 | } else { |
|
1763 | 1769 | returnValue = *((QVariant*)args[0]); |
|
1764 | 1770 | } |
|
1765 | 1771 | } |
|
1766 | 1772 | } |
|
1767 | 1773 | if (result) { Py_DECREF(result); } |
|
1768 | 1774 | Py_DECREF(obj); |
|
1769 | 1775 | return returnValue; |
|
1770 | 1776 | } |
|
1771 | 1777 | } |
|
1772 | 1778 | return QHexEdit::inputMethodQuery(arg__1); |
|
1773 | 1779 | } |
|
1774 | 1780 | void PythonQtShell_QHexEdit::keyPressEvent(QKeyEvent* arg__1) |
|
1775 | 1781 | { |
|
1776 | 1782 | if (_wrapper) { |
|
1777 | 1783 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); |
|
1778 | 1784 | PyErr_Clear(); |
|
1779 | 1785 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1780 | 1786 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
1781 | 1787 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1782 | 1788 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1783 | 1789 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1784 | 1790 | if (result) { Py_DECREF(result); } |
|
1785 | 1791 | Py_DECREF(obj); |
|
1786 | 1792 | return; |
|
1787 | 1793 | } |
|
1788 | 1794 | } |
|
1789 | 1795 | QHexEdit::keyPressEvent(arg__1); |
|
1790 | 1796 | } |
|
1791 | 1797 | void PythonQtShell_QHexEdit::keyReleaseEvent(QKeyEvent* arg__1) |
|
1792 | 1798 | { |
|
1793 | 1799 | if (_wrapper) { |
|
1794 | 1800 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); |
|
1795 | 1801 | PyErr_Clear(); |
|
1796 | 1802 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1797 | 1803 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
1798 | 1804 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1799 | 1805 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1800 | 1806 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1801 | 1807 | if (result) { Py_DECREF(result); } |
|
1802 | 1808 | Py_DECREF(obj); |
|
1803 | 1809 | return; |
|
1804 | 1810 | } |
|
1805 | 1811 | } |
|
1806 | 1812 | QHexEdit::keyReleaseEvent(arg__1); |
|
1807 | 1813 | } |
|
1808 | 1814 | void PythonQtShell_QHexEdit::leaveEvent(QEvent* arg__1) |
|
1809 | 1815 | { |
|
1810 | 1816 | if (_wrapper) { |
|
1811 | 1817 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); |
|
1812 | 1818 | PyErr_Clear(); |
|
1813 | 1819 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1814 | 1820 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
1815 | 1821 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1816 | 1822 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1817 | 1823 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1818 | 1824 | if (result) { Py_DECREF(result); } |
|
1819 | 1825 | Py_DECREF(obj); |
|
1820 | 1826 | return; |
|
1821 | 1827 | } |
|
1822 | 1828 | } |
|
1823 | 1829 | QHexEdit::leaveEvent(arg__1); |
|
1824 | 1830 | } |
|
1825 | 1831 | int PythonQtShell_QHexEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const |
|
1826 | 1832 | { |
|
1827 | 1833 | if (_wrapper) { |
|
1828 | 1834 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); |
|
1829 | 1835 | PyErr_Clear(); |
|
1830 | 1836 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1831 | 1837 | static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; |
|
1832 | 1838 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1833 | 1839 | int returnValue; |
|
1834 | 1840 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1835 | 1841 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1836 | 1842 | if (result) { |
|
1837 | 1843 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1838 | 1844 | if (args[0]!=&returnValue) { |
|
1839 | 1845 | if (args[0]==NULL) { |
|
1840 | 1846 | PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); |
|
1841 | 1847 | } else { |
|
1842 | 1848 | returnValue = *((int*)args[0]); |
|
1843 | 1849 | } |
|
1844 | 1850 | } |
|
1845 | 1851 | } |
|
1846 | 1852 | if (result) { Py_DECREF(result); } |
|
1847 | 1853 | Py_DECREF(obj); |
|
1848 | 1854 | return returnValue; |
|
1849 | 1855 | } |
|
1850 | 1856 | } |
|
1851 | 1857 | return QHexEdit::metric(arg__1); |
|
1852 | 1858 | } |
|
1853 | 1859 | void PythonQtShell_QHexEdit::mouseDoubleClickEvent(QMouseEvent* arg__1) |
|
1854 | 1860 | { |
|
1855 | 1861 | if (_wrapper) { |
|
1856 | 1862 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); |
|
1857 | 1863 | PyErr_Clear(); |
|
1858 | 1864 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1859 | 1865 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
1860 | 1866 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1861 | 1867 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1862 | 1868 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1863 | 1869 | if (result) { Py_DECREF(result); } |
|
1864 | 1870 | Py_DECREF(obj); |
|
1865 | 1871 | return; |
|
1866 | 1872 | } |
|
1867 | 1873 | } |
|
1868 | 1874 | QHexEdit::mouseDoubleClickEvent(arg__1); |
|
1869 | 1875 | } |
|
1870 | 1876 | void PythonQtShell_QHexEdit::mouseMoveEvent(QMouseEvent* arg__1) |
|
1871 | 1877 | { |
|
1872 | 1878 | if (_wrapper) { |
|
1873 | 1879 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); |
|
1874 | 1880 | PyErr_Clear(); |
|
1875 | 1881 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1876 | 1882 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
1877 | 1883 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1878 | 1884 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1879 | 1885 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1880 | 1886 | if (result) { Py_DECREF(result); } |
|
1881 | 1887 | Py_DECREF(obj); |
|
1882 | 1888 | return; |
|
1883 | 1889 | } |
|
1884 | 1890 | } |
|
1885 | 1891 | QHexEdit::mouseMoveEvent(arg__1); |
|
1886 | 1892 | } |
|
1887 | 1893 | void PythonQtShell_QHexEdit::mousePressEvent(QMouseEvent* arg__1) |
|
1888 | 1894 | { |
|
1889 | 1895 | if (_wrapper) { |
|
1890 | 1896 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); |
|
1891 | 1897 | PyErr_Clear(); |
|
1892 | 1898 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1893 | 1899 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
1894 | 1900 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1895 | 1901 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1896 | 1902 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1897 | 1903 | if (result) { Py_DECREF(result); } |
|
1898 | 1904 | Py_DECREF(obj); |
|
1899 | 1905 | return; |
|
1900 | 1906 | } |
|
1901 | 1907 | } |
|
1902 | 1908 | QHexEdit::mousePressEvent(arg__1); |
|
1903 | 1909 | } |
|
1904 | 1910 | void PythonQtShell_QHexEdit::mouseReleaseEvent(QMouseEvent* arg__1) |
|
1905 | 1911 | { |
|
1906 | 1912 | if (_wrapper) { |
|
1907 | 1913 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); |
|
1908 | 1914 | PyErr_Clear(); |
|
1909 | 1915 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1910 | 1916 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
1911 | 1917 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1912 | 1918 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1913 | 1919 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1914 | 1920 | if (result) { Py_DECREF(result); } |
|
1915 | 1921 | Py_DECREF(obj); |
|
1916 | 1922 | return; |
|
1917 | 1923 | } |
|
1918 | 1924 | } |
|
1919 | 1925 | QHexEdit::mouseReleaseEvent(arg__1); |
|
1920 | 1926 | } |
|
1921 | 1927 | void PythonQtShell_QHexEdit::moveEvent(QMoveEvent* arg__1) |
|
1922 | 1928 | { |
|
1923 | 1929 | if (_wrapper) { |
|
1924 | 1930 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); |
|
1925 | 1931 | PyErr_Clear(); |
|
1926 | 1932 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1927 | 1933 | static const char* argumentList[] ={"" , "QMoveEvent*"}; |
|
1928 | 1934 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
1929 | 1935 | void* args[2] = {NULL, (void*)&arg__1}; |
|
1930 | 1936 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1931 | 1937 | if (result) { Py_DECREF(result); } |
|
1932 | 1938 | Py_DECREF(obj); |
|
1933 | 1939 | return; |
|
1934 | 1940 | } |
|
1935 | 1941 | } |
|
1936 | 1942 | QHexEdit::moveEvent(arg__1); |
|
1937 | 1943 | } |
|
1938 | 1944 | bool PythonQtShell_QHexEdit::nativeEvent(const QByteArray& eventType, void* message, long* result) |
|
1939 | 1945 | { |
|
1940 | 1946 | if (_wrapper) { |
|
1941 | 1947 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); |
|
1942 | 1948 | PyErr_Clear(); |
|
1943 | 1949 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1944 | 1950 | static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; |
|
1945 | 1951 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); |
|
1946 | 1952 | bool returnValue; |
|
1947 | 1953 | void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; |
|
1948 | 1954 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1949 | 1955 | if (result) { |
|
1950 | 1956 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1951 | 1957 | if (args[0]!=&returnValue) { |
|
1952 | 1958 | if (args[0]==NULL) { |
|
1953 | 1959 | PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); |
|
1954 | 1960 | } else { |
|
1955 | 1961 | returnValue = *((bool*)args[0]); |
|
1956 | 1962 | } |
|
1957 | 1963 | } |
|
1958 | 1964 | } |
|
1959 | 1965 | if (result) { Py_DECREF(result); } |
|
1960 | 1966 | Py_DECREF(obj); |
|
1961 | 1967 | return returnValue; |
|
1962 | 1968 | } |
|
1963 | 1969 | } |
|
1964 | 1970 | return QHexEdit::nativeEvent(eventType, message, result); |
|
1965 | 1971 | } |
|
1966 | 1972 | QPaintEngine* PythonQtShell_QHexEdit::paintEngine() const |
|
1967 | 1973 | { |
|
1968 | 1974 | if (_wrapper) { |
|
1969 | 1975 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); |
|
1970 | 1976 | PyErr_Clear(); |
|
1971 | 1977 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
1972 | 1978 | static const char* argumentList[] ={"QPaintEngine*"}; |
|
1973 | 1979 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
1974 | 1980 | QPaintEngine* returnValue; |
|
1975 | 1981 | void* args[1] = {NULL}; |
|
1976 | 1982 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
1977 | 1983 | if (result) { |
|
1978 | 1984 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
1979 | 1985 | if (args[0]!=&returnValue) { |
|
1980 | 1986 | if (args[0]==NULL) { |
|
1981 | 1987 | PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); |
|
1982 | 1988 | } else { |
|
1983 | 1989 | returnValue = *((QPaintEngine**)args[0]); |
|
1984 | 1990 | } |
|
1985 | 1991 | } |
|
1986 | 1992 | } |
|
1987 | 1993 | if (result) { Py_DECREF(result); } |
|
1988 | 1994 | Py_DECREF(obj); |
|
1989 | 1995 | return returnValue; |
|
1990 | 1996 | } |
|
1991 | 1997 | } |
|
1992 | 1998 | return QHexEdit::paintEngine(); |
|
1993 | 1999 | } |
|
1994 | 2000 | void PythonQtShell_QHexEdit::paintEvent(QPaintEvent* arg__1) |
|
1995 | 2001 | { |
|
1996 | 2002 | if (_wrapper) { |
|
1997 | 2003 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); |
|
1998 | 2004 | PyErr_Clear(); |
|
1999 | 2005 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2000 | 2006 | static const char* argumentList[] ={"" , "QPaintEvent*"}; |
|
2001 | 2007 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2002 | 2008 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2003 | 2009 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2004 | 2010 | if (result) { Py_DECREF(result); } |
|
2005 | 2011 | Py_DECREF(obj); |
|
2006 | 2012 | return; |
|
2007 | 2013 | } |
|
2008 | 2014 | } |
|
2009 | 2015 | QHexEdit::paintEvent(arg__1); |
|
2010 | 2016 | } |
|
2011 | 2017 | QPaintDevice* PythonQtShell_QHexEdit::redirected(QPoint* offset) const |
|
2012 | 2018 | { |
|
2013 | 2019 | if (_wrapper) { |
|
2014 | 2020 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); |
|
2015 | 2021 | PyErr_Clear(); |
|
2016 | 2022 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2017 | 2023 | static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; |
|
2018 | 2024 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2019 | 2025 | QPaintDevice* returnValue; |
|
2020 | 2026 | void* args[2] = {NULL, (void*)&offset}; |
|
2021 | 2027 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2022 | 2028 | if (result) { |
|
2023 | 2029 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2024 | 2030 | if (args[0]!=&returnValue) { |
|
2025 | 2031 | if (args[0]==NULL) { |
|
2026 | 2032 | PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); |
|
2027 | 2033 | } else { |
|
2028 | 2034 | returnValue = *((QPaintDevice**)args[0]); |
|
2029 | 2035 | } |
|
2030 | 2036 | } |
|
2031 | 2037 | } |
|
2032 | 2038 | if (result) { Py_DECREF(result); } |
|
2033 | 2039 | Py_DECREF(obj); |
|
2034 | 2040 | return returnValue; |
|
2035 | 2041 | } |
|
2036 | 2042 | } |
|
2037 | 2043 | return QHexEdit::redirected(offset); |
|
2038 | 2044 | } |
|
2039 | 2045 | void PythonQtShell_QHexEdit::resizeEvent(QResizeEvent* arg__1) |
|
2040 | 2046 | { |
|
2041 | 2047 | if (_wrapper) { |
|
2042 | 2048 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); |
|
2043 | 2049 | PyErr_Clear(); |
|
2044 | 2050 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2045 | 2051 | static const char* argumentList[] ={"" , "QResizeEvent*"}; |
|
2046 | 2052 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2047 | 2053 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2048 | 2054 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2049 | 2055 | if (result) { Py_DECREF(result); } |
|
2050 | 2056 | Py_DECREF(obj); |
|
2051 | 2057 | return; |
|
2052 | 2058 | } |
|
2053 | 2059 | } |
|
2054 | 2060 | QHexEdit::resizeEvent(arg__1); |
|
2055 | 2061 | } |
|
2056 | 2062 | void PythonQtShell_QHexEdit::scrollContentsBy(int dx, int dy) |
|
2057 | 2063 | { |
|
2058 | 2064 | if (_wrapper) { |
|
2059 | 2065 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); |
|
2060 | 2066 | PyErr_Clear(); |
|
2061 | 2067 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2062 | 2068 | static const char* argumentList[] ={"" , "int" , "int"}; |
|
2063 | 2069 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); |
|
2064 | 2070 | void* args[3] = {NULL, (void*)&dx, (void*)&dy}; |
|
2065 | 2071 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2066 | 2072 | if (result) { Py_DECREF(result); } |
|
2067 | 2073 | Py_DECREF(obj); |
|
2068 | 2074 | return; |
|
2069 | 2075 | } |
|
2070 | 2076 | } |
|
2071 | 2077 | QHexEdit::scrollContentsBy(dx, dy); |
|
2072 | 2078 | } |
|
2073 | 2079 | void PythonQtShell_QHexEdit::setupViewport(QWidget* viewport) |
|
2074 | 2080 | { |
|
2075 | 2081 | if (_wrapper) { |
|
2076 | 2082 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); |
|
2077 | 2083 | PyErr_Clear(); |
|
2078 | 2084 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2079 | 2085 | static const char* argumentList[] ={"" , "QWidget*"}; |
|
2080 | 2086 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2081 | 2087 | void* args[2] = {NULL, (void*)&viewport}; |
|
2082 | 2088 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2083 | 2089 | if (result) { Py_DECREF(result); } |
|
2084 | 2090 | Py_DECREF(obj); |
|
2085 | 2091 | return; |
|
2086 | 2092 | } |
|
2087 | 2093 | } |
|
2088 | 2094 | QHexEdit::setupViewport(viewport); |
|
2089 | 2095 | } |
|
2090 | 2096 | QPainter* PythonQtShell_QHexEdit::sharedPainter() const |
|
2091 | 2097 | { |
|
2092 | 2098 | if (_wrapper) { |
|
2093 | 2099 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); |
|
2094 | 2100 | PyErr_Clear(); |
|
2095 | 2101 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2096 | 2102 | static const char* argumentList[] ={"QPainter*"}; |
|
2097 | 2103 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
2098 | 2104 | QPainter* returnValue; |
|
2099 | 2105 | void* args[1] = {NULL}; |
|
2100 | 2106 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2101 | 2107 | if (result) { |
|
2102 | 2108 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2103 | 2109 | if (args[0]!=&returnValue) { |
|
2104 | 2110 | if (args[0]==NULL) { |
|
2105 | 2111 | PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); |
|
2106 | 2112 | } else { |
|
2107 | 2113 | returnValue = *((QPainter**)args[0]); |
|
2108 | 2114 | } |
|
2109 | 2115 | } |
|
2110 | 2116 | } |
|
2111 | 2117 | if (result) { Py_DECREF(result); } |
|
2112 | 2118 | Py_DECREF(obj); |
|
2113 | 2119 | return returnValue; |
|
2114 | 2120 | } |
|
2115 | 2121 | } |
|
2116 | 2122 | return QHexEdit::sharedPainter(); |
|
2117 | 2123 | } |
|
2118 | 2124 | void PythonQtShell_QHexEdit::showEvent(QShowEvent* arg__1) |
|
2119 | 2125 | { |
|
2120 | 2126 | if (_wrapper) { |
|
2121 | 2127 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); |
|
2122 | 2128 | PyErr_Clear(); |
|
2123 | 2129 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2124 | 2130 | static const char* argumentList[] ={"" , "QShowEvent*"}; |
|
2125 | 2131 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2126 | 2132 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2127 | 2133 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2128 | 2134 | if (result) { Py_DECREF(result); } |
|
2129 | 2135 | Py_DECREF(obj); |
|
2130 | 2136 | return; |
|
2131 | 2137 | } |
|
2132 | 2138 | } |
|
2133 | 2139 | QHexEdit::showEvent(arg__1); |
|
2134 | 2140 | } |
|
2135 | 2141 | void PythonQtShell_QHexEdit::tabletEvent(QTabletEvent* arg__1) |
|
2136 | 2142 | { |
|
2137 | 2143 | if (_wrapper) { |
|
2138 | 2144 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); |
|
2139 | 2145 | PyErr_Clear(); |
|
2140 | 2146 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2141 | 2147 | static const char* argumentList[] ={"" , "QTabletEvent*"}; |
|
2142 | 2148 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2143 | 2149 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2144 | 2150 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2145 | 2151 | if (result) { Py_DECREF(result); } |
|
2146 | 2152 | Py_DECREF(obj); |
|
2147 | 2153 | return; |
|
2148 | 2154 | } |
|
2149 | 2155 | } |
|
2150 | 2156 | QHexEdit::tabletEvent(arg__1); |
|
2151 | 2157 | } |
|
2152 | 2158 | void PythonQtShell_QHexEdit::timerEvent(QTimerEvent* arg__1) |
|
2153 | 2159 | { |
|
2154 | 2160 | if (_wrapper) { |
|
2155 | 2161 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); |
|
2156 | 2162 | PyErr_Clear(); |
|
2157 | 2163 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2158 | 2164 | static const char* argumentList[] ={"" , "QTimerEvent*"}; |
|
2159 | 2165 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2160 | 2166 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2161 | 2167 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2162 | 2168 | if (result) { Py_DECREF(result); } |
|
2163 | 2169 | Py_DECREF(obj); |
|
2164 | 2170 | return; |
|
2165 | 2171 | } |
|
2166 | 2172 | } |
|
2167 | 2173 | QHexEdit::timerEvent(arg__1); |
|
2168 | 2174 | } |
|
2169 | 2175 | bool PythonQtShell_QHexEdit::viewportEvent(QEvent* arg__1) |
|
2170 | 2176 | { |
|
2171 | 2177 | if (_wrapper) { |
|
2172 | 2178 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); |
|
2173 | 2179 | PyErr_Clear(); |
|
2174 | 2180 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2175 | 2181 | static const char* argumentList[] ={"bool" , "QEvent*"}; |
|
2176 | 2182 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2177 | 2183 | bool returnValue; |
|
2178 | 2184 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2179 | 2185 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2180 | 2186 | if (result) { |
|
2181 | 2187 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2182 | 2188 | if (args[0]!=&returnValue) { |
|
2183 | 2189 | if (args[0]==NULL) { |
|
2184 | 2190 | PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); |
|
2185 | 2191 | } else { |
|
2186 | 2192 | returnValue = *((bool*)args[0]); |
|
2187 | 2193 | } |
|
2188 | 2194 | } |
|
2189 | 2195 | } |
|
2190 | 2196 | if (result) { Py_DECREF(result); } |
|
2191 | 2197 | Py_DECREF(obj); |
|
2192 | 2198 | return returnValue; |
|
2193 | 2199 | } |
|
2194 | 2200 | } |
|
2195 | 2201 | return QHexEdit::viewportEvent(arg__1); |
|
2196 | 2202 | } |
|
2197 | 2203 | QSize PythonQtShell_QHexEdit::viewportSizeHint() const |
|
2198 | 2204 | { |
|
2199 | 2205 | if (_wrapper) { |
|
2200 | 2206 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); |
|
2201 | 2207 | PyErr_Clear(); |
|
2202 | 2208 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2203 | 2209 | static const char* argumentList[] ={"QSize"}; |
|
2204 | 2210 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
2205 | 2211 | QSize returnValue; |
|
2206 | 2212 | void* args[1] = {NULL}; |
|
2207 | 2213 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2208 | 2214 | if (result) { |
|
2209 | 2215 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2210 | 2216 | if (args[0]!=&returnValue) { |
|
2211 | 2217 | if (args[0]==NULL) { |
|
2212 | 2218 | PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); |
|
2213 | 2219 | } else { |
|
2214 | 2220 | returnValue = *((QSize*)args[0]); |
|
2215 | 2221 | } |
|
2216 | 2222 | } |
|
2217 | 2223 | } |
|
2218 | 2224 | if (result) { Py_DECREF(result); } |
|
2219 | 2225 | Py_DECREF(obj); |
|
2220 | 2226 | return returnValue; |
|
2221 | 2227 | } |
|
2222 | 2228 | } |
|
2223 | 2229 | return QHexEdit::viewportSizeHint(); |
|
2224 | 2230 | } |
|
2225 | 2231 | void PythonQtShell_QHexEdit::wheelEvent(QWheelEvent* arg__1) |
|
2226 | 2232 | { |
|
2227 | 2233 | if (_wrapper) { |
|
2228 | 2234 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); |
|
2229 | 2235 | PyErr_Clear(); |
|
2230 | 2236 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2231 | 2237 | static const char* argumentList[] ={"" , "QWheelEvent*"}; |
|
2232 | 2238 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2233 | 2239 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2234 | 2240 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2235 | 2241 | if (result) { Py_DECREF(result); } |
|
2236 | 2242 | Py_DECREF(obj); |
|
2237 | 2243 | return; |
|
2238 | 2244 | } |
|
2239 | 2245 | } |
|
2240 | 2246 | QHexEdit::wheelEvent(arg__1); |
|
2241 | 2247 | } |
|
2242 | 2248 | QHexEdit* PythonQtWrapper_QHexEdit::new_QHexEdit(QWidget* parent) |
|
2243 | 2249 | { |
|
2244 | 2250 | return new PythonQtShell_QHexEdit(parent); } |
|
2245 | 2251 | |
|
2246 | 2252 | QColor PythonQtWrapper_QHexEdit::addressAreaColor(QHexEdit* theWrappedObject) |
|
2247 | 2253 | { |
|
2248 | 2254 | return ( theWrappedObject->addressAreaColor()); |
|
2249 | 2255 | } |
|
2250 | 2256 | |
|
2251 | 2257 | int PythonQtWrapper_QHexEdit::addressOffset(QHexEdit* theWrappedObject) |
|
2252 | 2258 | { |
|
2253 | 2259 | return ( theWrappedObject->addressOffset()); |
|
2254 | 2260 | } |
|
2255 | 2261 | |
|
2256 | 2262 | int PythonQtWrapper_QHexEdit::cursorPosition(QHexEdit* theWrappedObject) |
|
2257 | 2263 | { |
|
2258 | 2264 | return ( theWrappedObject->cursorPosition()); |
|
2259 | 2265 | } |
|
2260 | 2266 | |
|
2261 | 2267 | QByteArray PythonQtWrapper_QHexEdit::data(QHexEdit* theWrappedObject) |
|
2262 | 2268 | { |
|
2263 | 2269 | return ( theWrappedObject->data()); |
|
2264 | 2270 | } |
|
2265 | 2271 | |
|
2266 | 2272 | const QFont* PythonQtWrapper_QHexEdit::font(QHexEdit* theWrappedObject) const |
|
2267 | 2273 | { |
|
2268 | 2274 | return &( theWrappedObject->font()); |
|
2269 | 2275 | } |
|
2270 | 2276 | |
|
2271 | 2277 | QColor PythonQtWrapper_QHexEdit::highlightingColor(QHexEdit* theWrappedObject) |
|
2272 | 2278 | { |
|
2273 | 2279 | return ( theWrappedObject->highlightingColor()); |
|
2274 | 2280 | } |
|
2275 | 2281 | |
|
2276 | 2282 | int PythonQtWrapper_QHexEdit::indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from) const |
|
2277 | 2283 | { |
|
2278 | 2284 | return ( theWrappedObject->indexOf(ba, from)); |
|
2279 | 2285 | } |
|
2280 | 2286 | |
|
2281 | 2287 | void PythonQtWrapper_QHexEdit::insert(QHexEdit* theWrappedObject, int i, char ch) |
|
2282 | 2288 | { |
|
2283 | 2289 | ( theWrappedObject->insert(i, ch)); |
|
2284 | 2290 | } |
|
2285 | 2291 | |
|
2286 | 2292 | void PythonQtWrapper_QHexEdit::insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba) |
|
2287 | 2293 | { |
|
2288 | 2294 | ( theWrappedObject->insert(i, ba)); |
|
2289 | 2295 | } |
|
2290 | 2296 | |
|
2291 | 2297 | bool PythonQtWrapper_QHexEdit::isReadOnly(QHexEdit* theWrappedObject) |
|
2292 | 2298 | { |
|
2293 | 2299 | return ( theWrappedObject->isReadOnly()); |
|
2294 | 2300 | } |
|
2295 | 2301 | |
|
2296 | 2302 | int PythonQtWrapper_QHexEdit::lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from) const |
|
2297 | 2303 | { |
|
2298 | 2304 | return ( theWrappedObject->lastIndexOf(ba, from)); |
|
2299 | 2305 | } |
|
2300 | 2306 | |
|
2301 | 2307 | bool PythonQtWrapper_QHexEdit::overwriteMode(QHexEdit* theWrappedObject) |
|
2302 | 2308 | { |
|
2303 | 2309 | return ( theWrappedObject->overwriteMode()); |
|
2304 | 2310 | } |
|
2305 | 2311 | |
|
2306 | 2312 | void PythonQtWrapper_QHexEdit::remove(QHexEdit* theWrappedObject, int pos, int len) |
|
2307 | 2313 | { |
|
2308 | 2314 | ( theWrappedObject->remove(pos, len)); |
|
2309 | 2315 | } |
|
2310 | 2316 | |
|
2311 | 2317 | void PythonQtWrapper_QHexEdit::replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after) |
|
2312 | 2318 | { |
|
2313 | 2319 | ( theWrappedObject->replace(pos, len, after)); |
|
2314 | 2320 | } |
|
2315 | 2321 | |
|
2316 | 2322 | QColor PythonQtWrapper_QHexEdit::selectionColor(QHexEdit* theWrappedObject) |
|
2317 | 2323 | { |
|
2318 | 2324 | return ( theWrappedObject->selectionColor()); |
|
2319 | 2325 | } |
|
2320 | 2326 | |
|
2321 | 2327 | QString PythonQtWrapper_QHexEdit::selectionToReadableString(QHexEdit* theWrappedObject) |
|
2322 | 2328 | { |
|
2323 | 2329 | return ( theWrappedObject->selectionToReadableString()); |
|
2324 | 2330 | } |
|
2325 | 2331 | |
|
2326 | 2332 | void PythonQtWrapper_QHexEdit::setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color) |
|
2327 | 2333 | { |
|
2328 | 2334 | ( theWrappedObject->setAddressAreaColor(color)); |
|
2329 | 2335 | } |
|
2330 | 2336 | |
|
2331 | 2337 | void PythonQtWrapper_QHexEdit::setAddressOffset(QHexEdit* theWrappedObject, int offset) |
|
2332 | 2338 | { |
|
2333 | 2339 | ( theWrappedObject->setAddressOffset(offset)); |
|
2334 | 2340 | } |
|
2335 | 2341 | |
|
2336 | 2342 | void PythonQtWrapper_QHexEdit::setCursorPosition(QHexEdit* theWrappedObject, int cusorPos) |
|
2337 | 2343 | { |
|
2338 | 2344 | ( theWrappedObject->setCursorPosition(cusorPos)); |
|
2339 | 2345 | } |
|
2340 | 2346 | |
|
2341 | 2347 | void PythonQtWrapper_QHexEdit::setData(QHexEdit* theWrappedObject, const QByteArray& data) |
|
2342 | 2348 | { |
|
2343 | 2349 | ( theWrappedObject->setData(data)); |
|
2344 | 2350 | } |
|
2345 | 2351 | |
|
2346 | 2352 | void PythonQtWrapper_QHexEdit::setFont(QHexEdit* theWrappedObject, const QFont& arg__1) |
|
2347 | 2353 | { |
|
2348 | 2354 | ( theWrappedObject->setFont(arg__1)); |
|
2349 | 2355 | } |
|
2350 | 2356 | |
|
2351 | 2357 | void PythonQtWrapper_QHexEdit::setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color) |
|
2352 | 2358 | { |
|
2353 | 2359 | ( theWrappedObject->setHighlightingColor(color)); |
|
2354 | 2360 | } |
|
2355 | 2361 | |
|
2356 | 2362 | void PythonQtWrapper_QHexEdit::setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1) |
|
2357 | 2363 | { |
|
2358 | 2364 | ( theWrappedObject->setOverwriteMode(arg__1)); |
|
2359 | 2365 | } |
|
2360 | 2366 | |
|
2361 | 2367 | void PythonQtWrapper_QHexEdit::setReadOnly(QHexEdit* theWrappedObject, bool arg__1) |
|
2362 | 2368 | { |
|
2363 | 2369 | ( theWrappedObject->setReadOnly(arg__1)); |
|
2364 | 2370 | } |
|
2365 | 2371 | |
|
2366 | 2372 | void PythonQtWrapper_QHexEdit::setSelectionColor(QHexEdit* theWrappedObject, const QColor& color) |
|
2367 | 2373 | { |
|
2368 | 2374 | ( theWrappedObject->setSelectionColor(color)); |
|
2369 | 2375 | } |
|
2370 | 2376 | |
|
2371 | 2377 | QString PythonQtWrapper_QHexEdit::toReadableString(QHexEdit* theWrappedObject) |
|
2372 | 2378 | { |
|
2373 | 2379 | return ( theWrappedObject->toReadableString()); |
|
2374 | 2380 | } |
|
2375 | 2381 | |
|
2376 | 2382 | |
|
2377 | 2383 | |
|
2378 | 2384 | PythonQtShell_QHexSpinBox::~PythonQtShell_QHexSpinBox() { |
|
2379 | 2385 | PythonQtPrivate* priv = PythonQt::priv(); |
|
2380 | 2386 | if (priv) { priv->shellClassDeleted(this); } |
|
2381 | 2387 | } |
|
2382 | 2388 | void PythonQtShell_QHexSpinBox::actionEvent(QActionEvent* arg__1) |
|
2383 | 2389 | { |
|
2384 | 2390 | if (_wrapper) { |
|
2385 | 2391 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); |
|
2386 | 2392 | PyErr_Clear(); |
|
2387 | 2393 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2388 | 2394 | static const char* argumentList[] ={"" , "QActionEvent*"}; |
|
2389 | 2395 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2390 | 2396 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2391 | 2397 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2392 | 2398 | if (result) { Py_DECREF(result); } |
|
2393 | 2399 | Py_DECREF(obj); |
|
2394 | 2400 | return; |
|
2395 | 2401 | } |
|
2396 | 2402 | } |
|
2397 | 2403 | QHexSpinBox::actionEvent(arg__1); |
|
2398 | 2404 | } |
|
2399 | 2405 | void PythonQtShell_QHexSpinBox::changeEvent(QEvent* event) |
|
2400 | 2406 | { |
|
2401 | 2407 | if (_wrapper) { |
|
2402 | 2408 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); |
|
2403 | 2409 | PyErr_Clear(); |
|
2404 | 2410 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2405 | 2411 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
2406 | 2412 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2407 | 2413 | void* args[2] = {NULL, (void*)&event}; |
|
2408 | 2414 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2409 | 2415 | if (result) { Py_DECREF(result); } |
|
2410 | 2416 | Py_DECREF(obj); |
|
2411 | 2417 | return; |
|
2412 | 2418 | } |
|
2413 | 2419 | } |
|
2414 | 2420 | QHexSpinBox::changeEvent(event); |
|
2415 | 2421 | } |
|
2416 | 2422 | void PythonQtShell_QHexSpinBox::childEvent(QChildEvent* arg__1) |
|
2417 | 2423 | { |
|
2418 | 2424 | if (_wrapper) { |
|
2419 | 2425 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); |
|
2420 | 2426 | PyErr_Clear(); |
|
2421 | 2427 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2422 | 2428 | static const char* argumentList[] ={"" , "QChildEvent*"}; |
|
2423 | 2429 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2424 | 2430 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2425 | 2431 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2426 | 2432 | if (result) { Py_DECREF(result); } |
|
2427 | 2433 | Py_DECREF(obj); |
|
2428 | 2434 | return; |
|
2429 | 2435 | } |
|
2430 | 2436 | } |
|
2431 | 2437 | QHexSpinBox::childEvent(arg__1); |
|
2432 | 2438 | } |
|
2433 | 2439 | void PythonQtShell_QHexSpinBox::clear() |
|
2434 | 2440 | { |
|
2435 | 2441 | if (_wrapper) { |
|
2436 | 2442 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); |
|
2437 | 2443 | PyErr_Clear(); |
|
2438 | 2444 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2439 | 2445 | static const char* argumentList[] ={""}; |
|
2440 | 2446 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
2441 | 2447 | void* args[1] = {NULL}; |
|
2442 | 2448 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2443 | 2449 | if (result) { Py_DECREF(result); } |
|
2444 | 2450 | Py_DECREF(obj); |
|
2445 | 2451 | return; |
|
2446 | 2452 | } |
|
2447 | 2453 | } |
|
2448 | 2454 | QHexSpinBox::clear(); |
|
2449 | 2455 | } |
|
2450 | 2456 | void PythonQtShell_QHexSpinBox::closeEvent(QCloseEvent* event) |
|
2451 | 2457 | { |
|
2452 | 2458 | if (_wrapper) { |
|
2453 | 2459 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); |
|
2454 | 2460 | PyErr_Clear(); |
|
2455 | 2461 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2456 | 2462 | static const char* argumentList[] ={"" , "QCloseEvent*"}; |
|
2457 | 2463 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2458 | 2464 | void* args[2] = {NULL, (void*)&event}; |
|
2459 | 2465 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2460 | 2466 | if (result) { Py_DECREF(result); } |
|
2461 | 2467 | Py_DECREF(obj); |
|
2462 | 2468 | return; |
|
2463 | 2469 | } |
|
2464 | 2470 | } |
|
2465 | 2471 | QHexSpinBox::closeEvent(event); |
|
2466 | 2472 | } |
|
2467 | 2473 | void PythonQtShell_QHexSpinBox::contextMenuEvent(QContextMenuEvent* event) |
|
2468 | 2474 | { |
|
2469 | 2475 | if (_wrapper) { |
|
2470 | 2476 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); |
|
2471 | 2477 | PyErr_Clear(); |
|
2472 | 2478 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2473 | 2479 | static const char* argumentList[] ={"" , "QContextMenuEvent*"}; |
|
2474 | 2480 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2475 | 2481 | void* args[2] = {NULL, (void*)&event}; |
|
2476 | 2482 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2477 | 2483 | if (result) { Py_DECREF(result); } |
|
2478 | 2484 | Py_DECREF(obj); |
|
2479 | 2485 | return; |
|
2480 | 2486 | } |
|
2481 | 2487 | } |
|
2482 | 2488 | QHexSpinBox::contextMenuEvent(event); |
|
2483 | 2489 | } |
|
2484 | 2490 | void PythonQtShell_QHexSpinBox::customEvent(QEvent* arg__1) |
|
2485 | 2491 | { |
|
2486 | 2492 | if (_wrapper) { |
|
2487 | 2493 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); |
|
2488 | 2494 | PyErr_Clear(); |
|
2489 | 2495 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2490 | 2496 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
2491 | 2497 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2492 | 2498 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2493 | 2499 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2494 | 2500 | if (result) { Py_DECREF(result); } |
|
2495 | 2501 | Py_DECREF(obj); |
|
2496 | 2502 | return; |
|
2497 | 2503 | } |
|
2498 | 2504 | } |
|
2499 | 2505 | QHexSpinBox::customEvent(arg__1); |
|
2500 | 2506 | } |
|
2501 | 2507 | int PythonQtShell_QHexSpinBox::devType() const |
|
2502 | 2508 | { |
|
2503 | 2509 | if (_wrapper) { |
|
2504 | 2510 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); |
|
2505 | 2511 | PyErr_Clear(); |
|
2506 | 2512 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2507 | 2513 | static const char* argumentList[] ={"int"}; |
|
2508 | 2514 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
2509 | 2515 | int returnValue; |
|
2510 | 2516 | void* args[1] = {NULL}; |
|
2511 | 2517 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2512 | 2518 | if (result) { |
|
2513 | 2519 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2514 | 2520 | if (args[0]!=&returnValue) { |
|
2515 | 2521 | if (args[0]==NULL) { |
|
2516 | 2522 | PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); |
|
2517 | 2523 | } else { |
|
2518 | 2524 | returnValue = *((int*)args[0]); |
|
2519 | 2525 | } |
|
2520 | 2526 | } |
|
2521 | 2527 | } |
|
2522 | 2528 | if (result) { Py_DECREF(result); } |
|
2523 | 2529 | Py_DECREF(obj); |
|
2524 | 2530 | return returnValue; |
|
2525 | 2531 | } |
|
2526 | 2532 | } |
|
2527 | 2533 | return QHexSpinBox::devType(); |
|
2528 | 2534 | } |
|
2529 | 2535 | void PythonQtShell_QHexSpinBox::dragEnterEvent(QDragEnterEvent* arg__1) |
|
2530 | 2536 | { |
|
2531 | 2537 | if (_wrapper) { |
|
2532 | 2538 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); |
|
2533 | 2539 | PyErr_Clear(); |
|
2534 | 2540 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2535 | 2541 | static const char* argumentList[] ={"" , "QDragEnterEvent*"}; |
|
2536 | 2542 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2537 | 2543 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2538 | 2544 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2539 | 2545 | if (result) { Py_DECREF(result); } |
|
2540 | 2546 | Py_DECREF(obj); |
|
2541 | 2547 | return; |
|
2542 | 2548 | } |
|
2543 | 2549 | } |
|
2544 | 2550 | QHexSpinBox::dragEnterEvent(arg__1); |
|
2545 | 2551 | } |
|
2546 | 2552 | void PythonQtShell_QHexSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1) |
|
2547 | 2553 | { |
|
2548 | 2554 | if (_wrapper) { |
|
2549 | 2555 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); |
|
2550 | 2556 | PyErr_Clear(); |
|
2551 | 2557 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2552 | 2558 | static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; |
|
2553 | 2559 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2554 | 2560 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2555 | 2561 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2556 | 2562 | if (result) { Py_DECREF(result); } |
|
2557 | 2563 | Py_DECREF(obj); |
|
2558 | 2564 | return; |
|
2559 | 2565 | } |
|
2560 | 2566 | } |
|
2561 | 2567 | QHexSpinBox::dragLeaveEvent(arg__1); |
|
2562 | 2568 | } |
|
2563 | 2569 | void PythonQtShell_QHexSpinBox::dragMoveEvent(QDragMoveEvent* arg__1) |
|
2564 | 2570 | { |
|
2565 | 2571 | if (_wrapper) { |
|
2566 | 2572 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); |
|
2567 | 2573 | PyErr_Clear(); |
|
2568 | 2574 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2569 | 2575 | static const char* argumentList[] ={"" , "QDragMoveEvent*"}; |
|
2570 | 2576 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2571 | 2577 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2572 | 2578 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2573 | 2579 | if (result) { Py_DECREF(result); } |
|
2574 | 2580 | Py_DECREF(obj); |
|
2575 | 2581 | return; |
|
2576 | 2582 | } |
|
2577 | 2583 | } |
|
2578 | 2584 | QHexSpinBox::dragMoveEvent(arg__1); |
|
2579 | 2585 | } |
|
2580 | 2586 | void PythonQtShell_QHexSpinBox::dropEvent(QDropEvent* arg__1) |
|
2581 | 2587 | { |
|
2582 | 2588 | if (_wrapper) { |
|
2583 | 2589 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); |
|
2584 | 2590 | PyErr_Clear(); |
|
2585 | 2591 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2586 | 2592 | static const char* argumentList[] ={"" , "QDropEvent*"}; |
|
2587 | 2593 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2588 | 2594 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2589 | 2595 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2590 | 2596 | if (result) { Py_DECREF(result); } |
|
2591 | 2597 | Py_DECREF(obj); |
|
2592 | 2598 | return; |
|
2593 | 2599 | } |
|
2594 | 2600 | } |
|
2595 | 2601 | QHexSpinBox::dropEvent(arg__1); |
|
2596 | 2602 | } |
|
2597 | 2603 | void PythonQtShell_QHexSpinBox::enterEvent(QEvent* arg__1) |
|
2598 | 2604 | { |
|
2599 | 2605 | if (_wrapper) { |
|
2600 | 2606 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); |
|
2601 | 2607 | PyErr_Clear(); |
|
2602 | 2608 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2603 | 2609 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
2604 | 2610 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2605 | 2611 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2606 | 2612 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2607 | 2613 | if (result) { Py_DECREF(result); } |
|
2608 | 2614 | Py_DECREF(obj); |
|
2609 | 2615 | return; |
|
2610 | 2616 | } |
|
2611 | 2617 | } |
|
2612 | 2618 | QHexSpinBox::enterEvent(arg__1); |
|
2613 | 2619 | } |
|
2614 | 2620 | bool PythonQtShell_QHexSpinBox::event(QEvent* event) |
|
2615 | 2621 | { |
|
2616 | 2622 | if (_wrapper) { |
|
2617 | 2623 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); |
|
2618 | 2624 | PyErr_Clear(); |
|
2619 | 2625 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2620 | 2626 | static const char* argumentList[] ={"bool" , "QEvent*"}; |
|
2621 | 2627 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2622 | 2628 | bool returnValue; |
|
2623 | 2629 | void* args[2] = {NULL, (void*)&event}; |
|
2624 | 2630 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2625 | 2631 | if (result) { |
|
2626 | 2632 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2627 | 2633 | if (args[0]!=&returnValue) { |
|
2628 | 2634 | if (args[0]==NULL) { |
|
2629 | 2635 | PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); |
|
2630 | 2636 | } else { |
|
2631 | 2637 | returnValue = *((bool*)args[0]); |
|
2632 | 2638 | } |
|
2633 | 2639 | } |
|
2634 | 2640 | } |
|
2635 | 2641 | if (result) { Py_DECREF(result); } |
|
2636 | 2642 | Py_DECREF(obj); |
|
2637 | 2643 | return returnValue; |
|
2638 | 2644 | } |
|
2639 | 2645 | } |
|
2640 | 2646 | return QHexSpinBox::event(event); |
|
2641 | 2647 | } |
|
2642 | 2648 | bool PythonQtShell_QHexSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2) |
|
2643 | 2649 | { |
|
2644 | 2650 | if (_wrapper) { |
|
2645 | 2651 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); |
|
2646 | 2652 | PyErr_Clear(); |
|
2647 | 2653 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2648 | 2654 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; |
|
2649 | 2655 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); |
|
2650 | 2656 | bool returnValue; |
|
2651 | 2657 | void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; |
|
2652 | 2658 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2653 | 2659 | if (result) { |
|
2654 | 2660 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2655 | 2661 | if (args[0]!=&returnValue) { |
|
2656 | 2662 | if (args[0]==NULL) { |
|
2657 | 2663 | PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); |
|
2658 | 2664 | } else { |
|
2659 | 2665 | returnValue = *((bool*)args[0]); |
|
2660 | 2666 | } |
|
2661 | 2667 | } |
|
2662 | 2668 | } |
|
2663 | 2669 | if (result) { Py_DECREF(result); } |
|
2664 | 2670 | Py_DECREF(obj); |
|
2665 | 2671 | return returnValue; |
|
2666 | 2672 | } |
|
2667 | 2673 | } |
|
2668 | 2674 | return QHexSpinBox::eventFilter(arg__1, arg__2); |
|
2669 | 2675 | } |
|
2670 | 2676 | void PythonQtShell_QHexSpinBox::fixup(QString& str) const |
|
2671 | 2677 | { |
|
2672 | 2678 | if (_wrapper) { |
|
2673 | 2679 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); |
|
2674 | 2680 | PyErr_Clear(); |
|
2675 | 2681 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2676 | 2682 | static const char* argumentList[] ={"" , "QString&"}; |
|
2677 | 2683 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2678 | 2684 | void* args[2] = {NULL, (void*)&str}; |
|
2679 | 2685 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2680 | 2686 | if (result) { Py_DECREF(result); } |
|
2681 | 2687 | Py_DECREF(obj); |
|
2682 | 2688 | return; |
|
2683 | 2689 | } |
|
2684 | 2690 | } |
|
2685 | 2691 | QHexSpinBox::fixup(str); |
|
2686 | 2692 | } |
|
2687 | 2693 | void PythonQtShell_QHexSpinBox::focusInEvent(QFocusEvent* event) |
|
2688 | 2694 | { |
|
2689 | 2695 | if (_wrapper) { |
|
2690 | 2696 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); |
|
2691 | 2697 | PyErr_Clear(); |
|
2692 | 2698 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2693 | 2699 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
2694 | 2700 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2695 | 2701 | void* args[2] = {NULL, (void*)&event}; |
|
2696 | 2702 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2697 | 2703 | if (result) { Py_DECREF(result); } |
|
2698 | 2704 | Py_DECREF(obj); |
|
2699 | 2705 | return; |
|
2700 | 2706 | } |
|
2701 | 2707 | } |
|
2702 | 2708 | QHexSpinBox::focusInEvent(event); |
|
2703 | 2709 | } |
|
2704 | 2710 | bool PythonQtShell_QHexSpinBox::focusNextPrevChild(bool next) |
|
2705 | 2711 | { |
|
2706 | 2712 | if (_wrapper) { |
|
2707 | 2713 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); |
|
2708 | 2714 | PyErr_Clear(); |
|
2709 | 2715 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2710 | 2716 | static const char* argumentList[] ={"bool" , "bool"}; |
|
2711 | 2717 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2712 | 2718 | bool returnValue; |
|
2713 | 2719 | void* args[2] = {NULL, (void*)&next}; |
|
2714 | 2720 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2715 | 2721 | if (result) { |
|
2716 | 2722 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2717 | 2723 | if (args[0]!=&returnValue) { |
|
2718 | 2724 | if (args[0]==NULL) { |
|
2719 | 2725 | PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); |
|
2720 | 2726 | } else { |
|
2721 | 2727 | returnValue = *((bool*)args[0]); |
|
2722 | 2728 | } |
|
2723 | 2729 | } |
|
2724 | 2730 | } |
|
2725 | 2731 | if (result) { Py_DECREF(result); } |
|
2726 | 2732 | Py_DECREF(obj); |
|
2727 | 2733 | return returnValue; |
|
2728 | 2734 | } |
|
2729 | 2735 | } |
|
2730 | 2736 | return QHexSpinBox::focusNextPrevChild(next); |
|
2731 | 2737 | } |
|
2732 | 2738 | void PythonQtShell_QHexSpinBox::focusOutEvent(QFocusEvent* event) |
|
2733 | 2739 | { |
|
2734 | 2740 | if (_wrapper) { |
|
2735 | 2741 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); |
|
2736 | 2742 | PyErr_Clear(); |
|
2737 | 2743 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2738 | 2744 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
2739 | 2745 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2740 | 2746 | void* args[2] = {NULL, (void*)&event}; |
|
2741 | 2747 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2742 | 2748 | if (result) { Py_DECREF(result); } |
|
2743 | 2749 | Py_DECREF(obj); |
|
2744 | 2750 | return; |
|
2745 | 2751 | } |
|
2746 | 2752 | } |
|
2747 | 2753 | QHexSpinBox::focusOutEvent(event); |
|
2748 | 2754 | } |
|
2749 | 2755 | bool PythonQtShell_QHexSpinBox::hasHeightForWidth() const |
|
2750 | 2756 | { |
|
2751 | 2757 | if (_wrapper) { |
|
2752 | 2758 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); |
|
2753 | 2759 | PyErr_Clear(); |
|
2754 | 2760 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2755 | 2761 | static const char* argumentList[] ={"bool"}; |
|
2756 | 2762 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
2757 | 2763 | bool returnValue; |
|
2758 | 2764 | void* args[1] = {NULL}; |
|
2759 | 2765 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2760 | 2766 | if (result) { |
|
2761 | 2767 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2762 | 2768 | if (args[0]!=&returnValue) { |
|
2763 | 2769 | if (args[0]==NULL) { |
|
2764 | 2770 | PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); |
|
2765 | 2771 | } else { |
|
2766 | 2772 | returnValue = *((bool*)args[0]); |
|
2767 | 2773 | } |
|
2768 | 2774 | } |
|
2769 | 2775 | } |
|
2770 | 2776 | if (result) { Py_DECREF(result); } |
|
2771 | 2777 | Py_DECREF(obj); |
|
2772 | 2778 | return returnValue; |
|
2773 | 2779 | } |
|
2774 | 2780 | } |
|
2775 | 2781 | return QHexSpinBox::hasHeightForWidth(); |
|
2776 | 2782 | } |
|
2777 | 2783 | int PythonQtShell_QHexSpinBox::heightForWidth(int arg__1) const |
|
2778 | 2784 | { |
|
2779 | 2785 | if (_wrapper) { |
|
2780 | 2786 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); |
|
2781 | 2787 | PyErr_Clear(); |
|
2782 | 2788 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2783 | 2789 | static const char* argumentList[] ={"int" , "int"}; |
|
2784 | 2790 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2785 | 2791 | int returnValue; |
|
2786 | 2792 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2787 | 2793 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2788 | 2794 | if (result) { |
|
2789 | 2795 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2790 | 2796 | if (args[0]!=&returnValue) { |
|
2791 | 2797 | if (args[0]==NULL) { |
|
2792 | 2798 | PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); |
|
2793 | 2799 | } else { |
|
2794 | 2800 | returnValue = *((int*)args[0]); |
|
2795 | 2801 | } |
|
2796 | 2802 | } |
|
2797 | 2803 | } |
|
2798 | 2804 | if (result) { Py_DECREF(result); } |
|
2799 | 2805 | Py_DECREF(obj); |
|
2800 | 2806 | return returnValue; |
|
2801 | 2807 | } |
|
2802 | 2808 | } |
|
2803 | 2809 | return QHexSpinBox::heightForWidth(arg__1); |
|
2804 | 2810 | } |
|
2805 | 2811 | void PythonQtShell_QHexSpinBox::hideEvent(QHideEvent* event) |
|
2806 | 2812 | { |
|
2807 | 2813 | if (_wrapper) { |
|
2808 | 2814 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); |
|
2809 | 2815 | PyErr_Clear(); |
|
2810 | 2816 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2811 | 2817 | static const char* argumentList[] ={"" , "QHideEvent*"}; |
|
2812 | 2818 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2813 | 2819 | void* args[2] = {NULL, (void*)&event}; |
|
2814 | 2820 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2815 | 2821 | if (result) { Py_DECREF(result); } |
|
2816 | 2822 | Py_DECREF(obj); |
|
2817 | 2823 | return; |
|
2818 | 2824 | } |
|
2819 | 2825 | } |
|
2820 | 2826 | QHexSpinBox::hideEvent(event); |
|
2821 | 2827 | } |
|
2822 | 2828 | void PythonQtShell_QHexSpinBox::initPainter(QPainter* painter) const |
|
2823 | 2829 | { |
|
2824 | 2830 | if (_wrapper) { |
|
2825 | 2831 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); |
|
2826 | 2832 | PyErr_Clear(); |
|
2827 | 2833 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2828 | 2834 | static const char* argumentList[] ={"" , "QPainter*"}; |
|
2829 | 2835 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2830 | 2836 | void* args[2] = {NULL, (void*)&painter}; |
|
2831 | 2837 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2832 | 2838 | if (result) { Py_DECREF(result); } |
|
2833 | 2839 | Py_DECREF(obj); |
|
2834 | 2840 | return; |
|
2835 | 2841 | } |
|
2836 | 2842 | } |
|
2837 | 2843 | QHexSpinBox::initPainter(painter); |
|
2838 | 2844 | } |
|
2839 | 2845 | void PythonQtShell_QHexSpinBox::inputMethodEvent(QInputMethodEvent* arg__1) |
|
2840 | 2846 | { |
|
2841 | 2847 | if (_wrapper) { |
|
2842 | 2848 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); |
|
2843 | 2849 | PyErr_Clear(); |
|
2844 | 2850 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2845 | 2851 | static const char* argumentList[] ={"" , "QInputMethodEvent*"}; |
|
2846 | 2852 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2847 | 2853 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2848 | 2854 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2849 | 2855 | if (result) { Py_DECREF(result); } |
|
2850 | 2856 | Py_DECREF(obj); |
|
2851 | 2857 | return; |
|
2852 | 2858 | } |
|
2853 | 2859 | } |
|
2854 | 2860 | QHexSpinBox::inputMethodEvent(arg__1); |
|
2855 | 2861 | } |
|
2856 | 2862 | QVariant PythonQtShell_QHexSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const |
|
2857 | 2863 | { |
|
2858 | 2864 | if (_wrapper) { |
|
2859 | 2865 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); |
|
2860 | 2866 | PyErr_Clear(); |
|
2861 | 2867 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2862 | 2868 | static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; |
|
2863 | 2869 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2864 | 2870 | QVariant returnValue; |
|
2865 | 2871 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2866 | 2872 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2867 | 2873 | if (result) { |
|
2868 | 2874 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2869 | 2875 | if (args[0]!=&returnValue) { |
|
2870 | 2876 | if (args[0]==NULL) { |
|
2871 | 2877 | PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); |
|
2872 | 2878 | } else { |
|
2873 | 2879 | returnValue = *((QVariant*)args[0]); |
|
2874 | 2880 | } |
|
2875 | 2881 | } |
|
2876 | 2882 | } |
|
2877 | 2883 | if (result) { Py_DECREF(result); } |
|
2878 | 2884 | Py_DECREF(obj); |
|
2879 | 2885 | return returnValue; |
|
2880 | 2886 | } |
|
2881 | 2887 | } |
|
2882 | 2888 | return QHexSpinBox::inputMethodQuery(arg__1); |
|
2883 | 2889 | } |
|
2884 | 2890 | void PythonQtShell_QHexSpinBox::keyPressEvent(QKeyEvent* event) |
|
2885 | 2891 | { |
|
2886 | 2892 | if (_wrapper) { |
|
2887 | 2893 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); |
|
2888 | 2894 | PyErr_Clear(); |
|
2889 | 2895 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2890 | 2896 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
2891 | 2897 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2892 | 2898 | void* args[2] = {NULL, (void*)&event}; |
|
2893 | 2899 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2894 | 2900 | if (result) { Py_DECREF(result); } |
|
2895 | 2901 | Py_DECREF(obj); |
|
2896 | 2902 | return; |
|
2897 | 2903 | } |
|
2898 | 2904 | } |
|
2899 | 2905 | QHexSpinBox::keyPressEvent(event); |
|
2900 | 2906 | } |
|
2901 | 2907 | void PythonQtShell_QHexSpinBox::keyReleaseEvent(QKeyEvent* event) |
|
2902 | 2908 | { |
|
2903 | 2909 | if (_wrapper) { |
|
2904 | 2910 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); |
|
2905 | 2911 | PyErr_Clear(); |
|
2906 | 2912 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2907 | 2913 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
2908 | 2914 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2909 | 2915 | void* args[2] = {NULL, (void*)&event}; |
|
2910 | 2916 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2911 | 2917 | if (result) { Py_DECREF(result); } |
|
2912 | 2918 | Py_DECREF(obj); |
|
2913 | 2919 | return; |
|
2914 | 2920 | } |
|
2915 | 2921 | } |
|
2916 | 2922 | QHexSpinBox::keyReleaseEvent(event); |
|
2917 | 2923 | } |
|
2918 | 2924 | void PythonQtShell_QHexSpinBox::leaveEvent(QEvent* arg__1) |
|
2919 | 2925 | { |
|
2920 | 2926 | if (_wrapper) { |
|
2921 | 2927 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); |
|
2922 | 2928 | PyErr_Clear(); |
|
2923 | 2929 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2924 | 2930 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
2925 | 2931 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2926 | 2932 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2927 | 2933 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2928 | 2934 | if (result) { Py_DECREF(result); } |
|
2929 | 2935 | Py_DECREF(obj); |
|
2930 | 2936 | return; |
|
2931 | 2937 | } |
|
2932 | 2938 | } |
|
2933 | 2939 | QHexSpinBox::leaveEvent(arg__1); |
|
2934 | 2940 | } |
|
2935 | 2941 | int PythonQtShell_QHexSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const |
|
2936 | 2942 | { |
|
2937 | 2943 | if (_wrapper) { |
|
2938 | 2944 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); |
|
2939 | 2945 | PyErr_Clear(); |
|
2940 | 2946 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2941 | 2947 | static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; |
|
2942 | 2948 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2943 | 2949 | int returnValue; |
|
2944 | 2950 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2945 | 2951 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2946 | 2952 | if (result) { |
|
2947 | 2953 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
2948 | 2954 | if (args[0]!=&returnValue) { |
|
2949 | 2955 | if (args[0]==NULL) { |
|
2950 | 2956 | PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); |
|
2951 | 2957 | } else { |
|
2952 | 2958 | returnValue = *((int*)args[0]); |
|
2953 | 2959 | } |
|
2954 | 2960 | } |
|
2955 | 2961 | } |
|
2956 | 2962 | if (result) { Py_DECREF(result); } |
|
2957 | 2963 | Py_DECREF(obj); |
|
2958 | 2964 | return returnValue; |
|
2959 | 2965 | } |
|
2960 | 2966 | } |
|
2961 | 2967 | return QHexSpinBox::metric(arg__1); |
|
2962 | 2968 | } |
|
2963 | 2969 | void PythonQtShell_QHexSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1) |
|
2964 | 2970 | { |
|
2965 | 2971 | if (_wrapper) { |
|
2966 | 2972 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); |
|
2967 | 2973 | PyErr_Clear(); |
|
2968 | 2974 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2969 | 2975 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
2970 | 2976 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2971 | 2977 | void* args[2] = {NULL, (void*)&arg__1}; |
|
2972 | 2978 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2973 | 2979 | if (result) { Py_DECREF(result); } |
|
2974 | 2980 | Py_DECREF(obj); |
|
2975 | 2981 | return; |
|
2976 | 2982 | } |
|
2977 | 2983 | } |
|
2978 | 2984 | QHexSpinBox::mouseDoubleClickEvent(arg__1); |
|
2979 | 2985 | } |
|
2980 | 2986 | void PythonQtShell_QHexSpinBox::mouseMoveEvent(QMouseEvent* event) |
|
2981 | 2987 | { |
|
2982 | 2988 | if (_wrapper) { |
|
2983 | 2989 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); |
|
2984 | 2990 | PyErr_Clear(); |
|
2985 | 2991 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
2986 | 2992 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
2987 | 2993 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
2988 | 2994 | void* args[2] = {NULL, (void*)&event}; |
|
2989 | 2995 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
2990 | 2996 | if (result) { Py_DECREF(result); } |
|
2991 | 2997 | Py_DECREF(obj); |
|
2992 | 2998 | return; |
|
2993 | 2999 | } |
|
2994 | 3000 | } |
|
2995 | 3001 | QHexSpinBox::mouseMoveEvent(event); |
|
2996 | 3002 | } |
|
2997 | 3003 | void PythonQtShell_QHexSpinBox::mousePressEvent(QMouseEvent* event) |
|
2998 | 3004 | { |
|
2999 | 3005 | if (_wrapper) { |
|
3000 | 3006 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); |
|
3001 | 3007 | PyErr_Clear(); |
|
3002 | 3008 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3003 | 3009 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
3004 | 3010 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3005 | 3011 | void* args[2] = {NULL, (void*)&event}; |
|
3006 | 3012 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3007 | 3013 | if (result) { Py_DECREF(result); } |
|
3008 | 3014 | Py_DECREF(obj); |
|
3009 | 3015 | return; |
|
3010 | 3016 | } |
|
3011 | 3017 | } |
|
3012 | 3018 | QHexSpinBox::mousePressEvent(event); |
|
3013 | 3019 | } |
|
3014 | 3020 | void PythonQtShell_QHexSpinBox::mouseReleaseEvent(QMouseEvent* event) |
|
3015 | 3021 | { |
|
3016 | 3022 | if (_wrapper) { |
|
3017 | 3023 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); |
|
3018 | 3024 | PyErr_Clear(); |
|
3019 | 3025 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3020 | 3026 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
3021 | 3027 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3022 | 3028 | void* args[2] = {NULL, (void*)&event}; |
|
3023 | 3029 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3024 | 3030 | if (result) { Py_DECREF(result); } |
|
3025 | 3031 | Py_DECREF(obj); |
|
3026 | 3032 | return; |
|
3027 | 3033 | } |
|
3028 | 3034 | } |
|
3029 | 3035 | QHexSpinBox::mouseReleaseEvent(event); |
|
3030 | 3036 | } |
|
3031 | 3037 | void PythonQtShell_QHexSpinBox::moveEvent(QMoveEvent* arg__1) |
|
3032 | 3038 | { |
|
3033 | 3039 | if (_wrapper) { |
|
3034 | 3040 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); |
|
3035 | 3041 | PyErr_Clear(); |
|
3036 | 3042 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3037 | 3043 | static const char* argumentList[] ={"" , "QMoveEvent*"}; |
|
3038 | 3044 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3039 | 3045 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3040 | 3046 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3041 | 3047 | if (result) { Py_DECREF(result); } |
|
3042 | 3048 | Py_DECREF(obj); |
|
3043 | 3049 | return; |
|
3044 | 3050 | } |
|
3045 | 3051 | } |
|
3046 | 3052 | QHexSpinBox::moveEvent(arg__1); |
|
3047 | 3053 | } |
|
3048 | 3054 | bool PythonQtShell_QHexSpinBox::nativeEvent(const QByteArray& eventType, void* message, long* result) |
|
3049 | 3055 | { |
|
3050 | 3056 | if (_wrapper) { |
|
3051 | 3057 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); |
|
3052 | 3058 | PyErr_Clear(); |
|
3053 | 3059 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3054 | 3060 | static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; |
|
3055 | 3061 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); |
|
3056 | 3062 | bool returnValue; |
|
3057 | 3063 | void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; |
|
3058 | 3064 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3059 | 3065 | if (result) { |
|
3060 | 3066 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3061 | 3067 | if (args[0]!=&returnValue) { |
|
3062 | 3068 | if (args[0]==NULL) { |
|
3063 | 3069 | PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); |
|
3064 | 3070 | } else { |
|
3065 | 3071 | returnValue = *((bool*)args[0]); |
|
3066 | 3072 | } |
|
3067 | 3073 | } |
|
3068 | 3074 | } |
|
3069 | 3075 | if (result) { Py_DECREF(result); } |
|
3070 | 3076 | Py_DECREF(obj); |
|
3071 | 3077 | return returnValue; |
|
3072 | 3078 | } |
|
3073 | 3079 | } |
|
3074 | 3080 | return QHexSpinBox::nativeEvent(eventType, message, result); |
|
3075 | 3081 | } |
|
3076 | 3082 | QPaintEngine* PythonQtShell_QHexSpinBox::paintEngine() const |
|
3077 | 3083 | { |
|
3078 | 3084 | if (_wrapper) { |
|
3079 | 3085 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); |
|
3080 | 3086 | PyErr_Clear(); |
|
3081 | 3087 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3082 | 3088 | static const char* argumentList[] ={"QPaintEngine*"}; |
|
3083 | 3089 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
3084 | 3090 | QPaintEngine* returnValue; |
|
3085 | 3091 | void* args[1] = {NULL}; |
|
3086 | 3092 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3087 | 3093 | if (result) { |
|
3088 | 3094 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3089 | 3095 | if (args[0]!=&returnValue) { |
|
3090 | 3096 | if (args[0]==NULL) { |
|
3091 | 3097 | PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); |
|
3092 | 3098 | } else { |
|
3093 | 3099 | returnValue = *((QPaintEngine**)args[0]); |
|
3094 | 3100 | } |
|
3095 | 3101 | } |
|
3096 | 3102 | } |
|
3097 | 3103 | if (result) { Py_DECREF(result); } |
|
3098 | 3104 | Py_DECREF(obj); |
|
3099 | 3105 | return returnValue; |
|
3100 | 3106 | } |
|
3101 | 3107 | } |
|
3102 | 3108 | return QHexSpinBox::paintEngine(); |
|
3103 | 3109 | } |
|
3104 | 3110 | void PythonQtShell_QHexSpinBox::paintEvent(QPaintEvent* event) |
|
3105 | 3111 | { |
|
3106 | 3112 | if (_wrapper) { |
|
3107 | 3113 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); |
|
3108 | 3114 | PyErr_Clear(); |
|
3109 | 3115 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3110 | 3116 | static const char* argumentList[] ={"" , "QPaintEvent*"}; |
|
3111 | 3117 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3112 | 3118 | void* args[2] = {NULL, (void*)&event}; |
|
3113 | 3119 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3114 | 3120 | if (result) { Py_DECREF(result); } |
|
3115 | 3121 | Py_DECREF(obj); |
|
3116 | 3122 | return; |
|
3117 | 3123 | } |
|
3118 | 3124 | } |
|
3119 | 3125 | QHexSpinBox::paintEvent(event); |
|
3120 | 3126 | } |
|
3121 | 3127 | QPaintDevice* PythonQtShell_QHexSpinBox::redirected(QPoint* offset) const |
|
3122 | 3128 | { |
|
3123 | 3129 | if (_wrapper) { |
|
3124 | 3130 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); |
|
3125 | 3131 | PyErr_Clear(); |
|
3126 | 3132 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3127 | 3133 | static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; |
|
3128 | 3134 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3129 | 3135 | QPaintDevice* returnValue; |
|
3130 | 3136 | void* args[2] = {NULL, (void*)&offset}; |
|
3131 | 3137 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3132 | 3138 | if (result) { |
|
3133 | 3139 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3134 | 3140 | if (args[0]!=&returnValue) { |
|
3135 | 3141 | if (args[0]==NULL) { |
|
3136 | 3142 | PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); |
|
3137 | 3143 | } else { |
|
3138 | 3144 | returnValue = *((QPaintDevice**)args[0]); |
|
3139 | 3145 | } |
|
3140 | 3146 | } |
|
3141 | 3147 | } |
|
3142 | 3148 | if (result) { Py_DECREF(result); } |
|
3143 | 3149 | Py_DECREF(obj); |
|
3144 | 3150 | return returnValue; |
|
3145 | 3151 | } |
|
3146 | 3152 | } |
|
3147 | 3153 | return QHexSpinBox::redirected(offset); |
|
3148 | 3154 | } |
|
3149 | 3155 | void PythonQtShell_QHexSpinBox::resizeEvent(QResizeEvent* event) |
|
3150 | 3156 | { |
|
3151 | 3157 | if (_wrapper) { |
|
3152 | 3158 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); |
|
3153 | 3159 | PyErr_Clear(); |
|
3154 | 3160 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3155 | 3161 | static const char* argumentList[] ={"" , "QResizeEvent*"}; |
|
3156 | 3162 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3157 | 3163 | void* args[2] = {NULL, (void*)&event}; |
|
3158 | 3164 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3159 | 3165 | if (result) { Py_DECREF(result); } |
|
3160 | 3166 | Py_DECREF(obj); |
|
3161 | 3167 | return; |
|
3162 | 3168 | } |
|
3163 | 3169 | } |
|
3164 | 3170 | QHexSpinBox::resizeEvent(event); |
|
3165 | 3171 | } |
|
3166 | 3172 | QPainter* PythonQtShell_QHexSpinBox::sharedPainter() const |
|
3167 | 3173 | { |
|
3168 | 3174 | if (_wrapper) { |
|
3169 | 3175 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); |
|
3170 | 3176 | PyErr_Clear(); |
|
3171 | 3177 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3172 | 3178 | static const char* argumentList[] ={"QPainter*"}; |
|
3173 | 3179 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
3174 | 3180 | QPainter* returnValue; |
|
3175 | 3181 | void* args[1] = {NULL}; |
|
3176 | 3182 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3177 | 3183 | if (result) { |
|
3178 | 3184 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3179 | 3185 | if (args[0]!=&returnValue) { |
|
3180 | 3186 | if (args[0]==NULL) { |
|
3181 | 3187 | PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); |
|
3182 | 3188 | } else { |
|
3183 | 3189 | returnValue = *((QPainter**)args[0]); |
|
3184 | 3190 | } |
|
3185 | 3191 | } |
|
3186 | 3192 | } |
|
3187 | 3193 | if (result) { Py_DECREF(result); } |
|
3188 | 3194 | Py_DECREF(obj); |
|
3189 | 3195 | return returnValue; |
|
3190 | 3196 | } |
|
3191 | 3197 | } |
|
3192 | 3198 | return QHexSpinBox::sharedPainter(); |
|
3193 | 3199 | } |
|
3194 | 3200 | void PythonQtShell_QHexSpinBox::showEvent(QShowEvent* event) |
|
3195 | 3201 | { |
|
3196 | 3202 | if (_wrapper) { |
|
3197 | 3203 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); |
|
3198 | 3204 | PyErr_Clear(); |
|
3199 | 3205 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3200 | 3206 | static const char* argumentList[] ={"" , "QShowEvent*"}; |
|
3201 | 3207 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3202 | 3208 | void* args[2] = {NULL, (void*)&event}; |
|
3203 | 3209 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3204 | 3210 | if (result) { Py_DECREF(result); } |
|
3205 | 3211 | Py_DECREF(obj); |
|
3206 | 3212 | return; |
|
3207 | 3213 | } |
|
3208 | 3214 | } |
|
3209 | 3215 | QHexSpinBox::showEvent(event); |
|
3210 | 3216 | } |
|
3211 | 3217 | void PythonQtShell_QHexSpinBox::stepBy(int steps) |
|
3212 | 3218 | { |
|
3213 | 3219 | if (_wrapper) { |
|
3214 | 3220 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); |
|
3215 | 3221 | PyErr_Clear(); |
|
3216 | 3222 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3217 | 3223 | static const char* argumentList[] ={"" , "int"}; |
|
3218 | 3224 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3219 | 3225 | void* args[2] = {NULL, (void*)&steps}; |
|
3220 | 3226 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3221 | 3227 | if (result) { Py_DECREF(result); } |
|
3222 | 3228 | Py_DECREF(obj); |
|
3223 | 3229 | return; |
|
3224 | 3230 | } |
|
3225 | 3231 | } |
|
3226 | 3232 | QHexSpinBox::stepBy(steps); |
|
3227 | 3233 | } |
|
3228 | 3234 | QAbstractSpinBox::StepEnabled PythonQtShell_QHexSpinBox::stepEnabled() const |
|
3229 | 3235 | { |
|
3230 | 3236 | if (_wrapper) { |
|
3231 | 3237 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); |
|
3232 | 3238 | PyErr_Clear(); |
|
3233 | 3239 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3234 | 3240 | static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; |
|
3235 | 3241 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
3236 | 3242 | QAbstractSpinBox::StepEnabled returnValue; |
|
3237 | 3243 | void* args[1] = {NULL}; |
|
3238 | 3244 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3239 | 3245 | if (result) { |
|
3240 | 3246 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3241 | 3247 | if (args[0]!=&returnValue) { |
|
3242 | 3248 | if (args[0]==NULL) { |
|
3243 | 3249 | PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); |
|
3244 | 3250 | } else { |
|
3245 | 3251 | returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); |
|
3246 | 3252 | } |
|
3247 | 3253 | } |
|
3248 | 3254 | } |
|
3249 | 3255 | if (result) { Py_DECREF(result); } |
|
3250 | 3256 | Py_DECREF(obj); |
|
3251 | 3257 | return returnValue; |
|
3252 | 3258 | } |
|
3253 | 3259 | } |
|
3254 | 3260 | return QHexSpinBox::stepEnabled(); |
|
3255 | 3261 | } |
|
3256 | 3262 | void PythonQtShell_QHexSpinBox::tabletEvent(QTabletEvent* arg__1) |
|
3257 | 3263 | { |
|
3258 | 3264 | if (_wrapper) { |
|
3259 | 3265 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); |
|
3260 | 3266 | PyErr_Clear(); |
|
3261 | 3267 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3262 | 3268 | static const char* argumentList[] ={"" , "QTabletEvent*"}; |
|
3263 | 3269 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3264 | 3270 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3265 | 3271 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3266 | 3272 | if (result) { Py_DECREF(result); } |
|
3267 | 3273 | Py_DECREF(obj); |
|
3268 | 3274 | return; |
|
3269 | 3275 | } |
|
3270 | 3276 | } |
|
3271 | 3277 | QHexSpinBox::tabletEvent(arg__1); |
|
3272 | 3278 | } |
|
3273 | 3279 | QString PythonQtShell_QHexSpinBox::textFromValue(int value) const |
|
3274 | 3280 | { |
|
3275 | 3281 | if (_wrapper) { |
|
3276 | 3282 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromValue"); |
|
3277 | 3283 | PyErr_Clear(); |
|
3278 | 3284 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3279 | 3285 | static const char* argumentList[] ={"QString" , "int"}; |
|
3280 | 3286 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3281 | 3287 | QString returnValue; |
|
3282 | 3288 | void* args[2] = {NULL, (void*)&value}; |
|
3283 | 3289 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3284 | 3290 | if (result) { |
|
3285 | 3291 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3286 | 3292 | if (args[0]!=&returnValue) { |
|
3287 | 3293 | if (args[0]==NULL) { |
|
3288 | 3294 | PythonQt::priv()->handleVirtualOverloadReturnError("textFromValue", methodInfo, result); |
|
3289 | 3295 | } else { |
|
3290 | 3296 | returnValue = *((QString*)args[0]); |
|
3291 | 3297 | } |
|
3292 | 3298 | } |
|
3293 | 3299 | } |
|
3294 | 3300 | if (result) { Py_DECREF(result); } |
|
3295 | 3301 | Py_DECREF(obj); |
|
3296 | 3302 | return returnValue; |
|
3297 | 3303 | } |
|
3298 | 3304 | } |
|
3299 | 3305 | return QHexSpinBox::textFromValue(value); |
|
3300 | 3306 | } |
|
3301 | 3307 | void PythonQtShell_QHexSpinBox::timerEvent(QTimerEvent* event) |
|
3302 | 3308 | { |
|
3303 | 3309 | if (_wrapper) { |
|
3304 | 3310 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); |
|
3305 | 3311 | PyErr_Clear(); |
|
3306 | 3312 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3307 | 3313 | static const char* argumentList[] ={"" , "QTimerEvent*"}; |
|
3308 | 3314 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3309 | 3315 | void* args[2] = {NULL, (void*)&event}; |
|
3310 | 3316 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3311 | 3317 | if (result) { Py_DECREF(result); } |
|
3312 | 3318 | Py_DECREF(obj); |
|
3313 | 3319 | return; |
|
3314 | 3320 | } |
|
3315 | 3321 | } |
|
3316 | 3322 | QHexSpinBox::timerEvent(event); |
|
3317 | 3323 | } |
|
3318 | 3324 | QValidator::State PythonQtShell_QHexSpinBox::validate(QString& input, int& pos) const |
|
3319 | 3325 | { |
|
3320 | 3326 | if (_wrapper) { |
|
3321 | 3327 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); |
|
3322 | 3328 | PyErr_Clear(); |
|
3323 | 3329 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3324 | 3330 | static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; |
|
3325 | 3331 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); |
|
3326 | 3332 | QValidator::State returnValue; |
|
3327 | 3333 | void* args[3] = {NULL, (void*)&input, (void*)&pos}; |
|
3328 | 3334 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3329 | 3335 | if (result) { |
|
3330 | 3336 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3331 | 3337 | if (args[0]!=&returnValue) { |
|
3332 | 3338 | if (args[0]==NULL) { |
|
3333 | 3339 | PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); |
|
3334 | 3340 | } else { |
|
3335 | 3341 | returnValue = *((QValidator::State*)args[0]); |
|
3336 | 3342 | } |
|
3337 | 3343 | } |
|
3338 | 3344 | } |
|
3339 | 3345 | if (result) { Py_DECREF(result); } |
|
3340 | 3346 | Py_DECREF(obj); |
|
3341 | 3347 | return returnValue; |
|
3342 | 3348 | } |
|
3343 | 3349 | } |
|
3344 | 3350 | return QHexSpinBox::validate(input, pos); |
|
3345 | 3351 | } |
|
3346 | 3352 | int PythonQtShell_QHexSpinBox::valueFromText(const QString& text) const |
|
3347 | 3353 | { |
|
3348 | 3354 | if (_wrapper) { |
|
3349 | 3355 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valueFromText"); |
|
3350 | 3356 | PyErr_Clear(); |
|
3351 | 3357 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3352 | 3358 | static const char* argumentList[] ={"int" , "const QString&"}; |
|
3353 | 3359 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3354 | 3360 | int returnValue; |
|
3355 | 3361 | void* args[2] = {NULL, (void*)&text}; |
|
3356 | 3362 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3357 | 3363 | if (result) { |
|
3358 | 3364 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3359 | 3365 | if (args[0]!=&returnValue) { |
|
3360 | 3366 | if (args[0]==NULL) { |
|
3361 | 3367 | PythonQt::priv()->handleVirtualOverloadReturnError("valueFromText", methodInfo, result); |
|
3362 | 3368 | } else { |
|
3363 | 3369 | returnValue = *((int*)args[0]); |
|
3364 | 3370 | } |
|
3365 | 3371 | } |
|
3366 | 3372 | } |
|
3367 | 3373 | if (result) { Py_DECREF(result); } |
|
3368 | 3374 | Py_DECREF(obj); |
|
3369 | 3375 | return returnValue; |
|
3370 | 3376 | } |
|
3371 | 3377 | } |
|
3372 | 3378 | return QHexSpinBox::valueFromText(text); |
|
3373 | 3379 | } |
|
3374 | 3380 | void PythonQtShell_QHexSpinBox::wheelEvent(QWheelEvent* event) |
|
3375 | 3381 | { |
|
3376 | 3382 | if (_wrapper) { |
|
3377 | 3383 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); |
|
3378 | 3384 | PyErr_Clear(); |
|
3379 | 3385 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3380 | 3386 | static const char* argumentList[] ={"" , "QWheelEvent*"}; |
|
3381 | 3387 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3382 | 3388 | void* args[2] = {NULL, (void*)&event}; |
|
3383 | 3389 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3384 | 3390 | if (result) { Py_DECREF(result); } |
|
3385 | 3391 | Py_DECREF(obj); |
|
3386 | 3392 | return; |
|
3387 | 3393 | } |
|
3388 | 3394 | } |
|
3389 | 3395 | QHexSpinBox::wheelEvent(event); |
|
3390 | 3396 | } |
|
3391 | 3397 | QHexSpinBox* PythonQtWrapper_QHexSpinBox::new_QHexSpinBox(QWidget* parent) |
|
3392 | 3398 | { |
|
3393 | 3399 | return new PythonQtShell_QHexSpinBox(parent); } |
|
3394 | 3400 | |
|
3395 | 3401 | void PythonQtWrapper_QHexSpinBox::show(QHexSpinBox* theWrappedObject) |
|
3396 | 3402 | { |
|
3397 | 3403 | ( theWrappedObject->show()); |
|
3398 | 3404 | } |
|
3399 | 3405 | |
|
3400 | 3406 | QString PythonQtWrapper_QHexSpinBox::textFromValue(QHexSpinBox* theWrappedObject, int value) const |
|
3401 | 3407 | { |
|
3402 | 3408 | return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_textFromValue(value)); |
|
3403 | 3409 | } |
|
3404 | 3410 | |
|
3405 | 3411 | QValidator::State PythonQtWrapper_QHexSpinBox::validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const |
|
3406 | 3412 | { |
|
3407 | 3413 | return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_validate(input, pos)); |
|
3408 | 3414 | } |
|
3409 | 3415 | |
|
3410 | 3416 | int PythonQtWrapper_QHexSpinBox::valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const |
|
3411 | 3417 | { |
|
3412 | 3418 | return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_valueFromText(text)); |
|
3413 | 3419 | } |
|
3414 | 3420 | |
|
3415 | 3421 | |
|
3416 | 3422 | |
|
3417 | 3423 | PythonQtShell_SocExplorerPlot::~PythonQtShell_SocExplorerPlot() { |
|
3418 | 3424 | PythonQtPrivate* priv = PythonQt::priv(); |
|
3419 | 3425 | if (priv) { priv->shellClassDeleted(this); } |
|
3420 | 3426 | } |
|
3421 | 3427 | void PythonQtShell_SocExplorerPlot::actionEvent(QActionEvent* arg__1) |
|
3422 | 3428 | { |
|
3423 | 3429 | if (_wrapper) { |
|
3424 | 3430 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); |
|
3425 | 3431 | PyErr_Clear(); |
|
3426 | 3432 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3427 | 3433 | static const char* argumentList[] ={"" , "QActionEvent*"}; |
|
3428 | 3434 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3429 | 3435 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3430 | 3436 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3431 | 3437 | if (result) { Py_DECREF(result); } |
|
3432 | 3438 | Py_DECREF(obj); |
|
3433 | 3439 | return; |
|
3434 | 3440 | } |
|
3435 | 3441 | } |
|
3436 | 3442 | SocExplorerPlot::actionEvent(arg__1); |
|
3437 | 3443 | } |
|
3438 | 3444 | void PythonQtShell_SocExplorerPlot::changeEvent(QEvent* arg__1) |
|
3439 | 3445 | { |
|
3440 | 3446 | if (_wrapper) { |
|
3441 | 3447 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); |
|
3442 | 3448 | PyErr_Clear(); |
|
3443 | 3449 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3444 | 3450 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
3445 | 3451 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3446 | 3452 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3447 | 3453 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3448 | 3454 | if (result) { Py_DECREF(result); } |
|
3449 | 3455 | Py_DECREF(obj); |
|
3450 | 3456 | return; |
|
3451 | 3457 | } |
|
3452 | 3458 | } |
|
3453 | 3459 | SocExplorerPlot::changeEvent(arg__1); |
|
3454 | 3460 | } |
|
3455 | 3461 | void PythonQtShell_SocExplorerPlot::childEvent(QChildEvent* arg__1) |
|
3456 | 3462 | { |
|
3457 | 3463 | if (_wrapper) { |
|
3458 | 3464 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); |
|
3459 | 3465 | PyErr_Clear(); |
|
3460 | 3466 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3461 | 3467 | static const char* argumentList[] ={"" , "QChildEvent*"}; |
|
3462 | 3468 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3463 | 3469 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3464 | 3470 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3465 | 3471 | if (result) { Py_DECREF(result); } |
|
3466 | 3472 | Py_DECREF(obj); |
|
3467 | 3473 | return; |
|
3468 | 3474 | } |
|
3469 | 3475 | } |
|
3470 | 3476 | SocExplorerPlot::childEvent(arg__1); |
|
3471 | 3477 | } |
|
3472 | 3478 | void PythonQtShell_SocExplorerPlot::closeEvent(QCloseEvent* arg__1) |
|
3473 | 3479 | { |
|
3474 | 3480 | if (_wrapper) { |
|
3475 | 3481 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); |
|
3476 | 3482 | PyErr_Clear(); |
|
3477 | 3483 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3478 | 3484 | static const char* argumentList[] ={"" , "QCloseEvent*"}; |
|
3479 | 3485 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3480 | 3486 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3481 | 3487 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3482 | 3488 | if (result) { Py_DECREF(result); } |
|
3483 | 3489 | Py_DECREF(obj); |
|
3484 | 3490 | return; |
|
3485 | 3491 | } |
|
3486 | 3492 | } |
|
3487 | 3493 | SocExplorerPlot::closeEvent(arg__1); |
|
3488 | 3494 | } |
|
3489 | 3495 | void PythonQtShell_SocExplorerPlot::contextMenuEvent(QContextMenuEvent* arg__1) |
|
3490 | 3496 | { |
|
3491 | 3497 | if (_wrapper) { |
|
3492 | 3498 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); |
|
3493 | 3499 | PyErr_Clear(); |
|
3494 | 3500 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3495 | 3501 | static const char* argumentList[] ={"" , "QContextMenuEvent*"}; |
|
3496 | 3502 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3497 | 3503 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3498 | 3504 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3499 | 3505 | if (result) { Py_DECREF(result); } |
|
3500 | 3506 | Py_DECREF(obj); |
|
3501 | 3507 | return; |
|
3502 | 3508 | } |
|
3503 | 3509 | } |
|
3504 | 3510 | SocExplorerPlot::contextMenuEvent(arg__1); |
|
3505 | 3511 | } |
|
3506 | 3512 | void PythonQtShell_SocExplorerPlot::customEvent(QEvent* arg__1) |
|
3507 | 3513 | { |
|
3508 | 3514 | if (_wrapper) { |
|
3509 | 3515 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); |
|
3510 | 3516 | PyErr_Clear(); |
|
3511 | 3517 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3512 | 3518 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
3513 | 3519 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3514 | 3520 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3515 | 3521 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3516 | 3522 | if (result) { Py_DECREF(result); } |
|
3517 | 3523 | Py_DECREF(obj); |
|
3518 | 3524 | return; |
|
3519 | 3525 | } |
|
3520 | 3526 | } |
|
3521 | 3527 | SocExplorerPlot::customEvent(arg__1); |
|
3522 | 3528 | } |
|
3523 | 3529 | int PythonQtShell_SocExplorerPlot::devType() const |
|
3524 | 3530 | { |
|
3525 | 3531 | if (_wrapper) { |
|
3526 | 3532 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); |
|
3527 | 3533 | PyErr_Clear(); |
|
3528 | 3534 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3529 | 3535 | static const char* argumentList[] ={"int"}; |
|
3530 | 3536 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
3531 | 3537 | int returnValue; |
|
3532 | 3538 | void* args[1] = {NULL}; |
|
3533 | 3539 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3534 | 3540 | if (result) { |
|
3535 | 3541 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3536 | 3542 | if (args[0]!=&returnValue) { |
|
3537 | 3543 | if (args[0]==NULL) { |
|
3538 | 3544 | PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); |
|
3539 | 3545 | } else { |
|
3540 | 3546 | returnValue = *((int*)args[0]); |
|
3541 | 3547 | } |
|
3542 | 3548 | } |
|
3543 | 3549 | } |
|
3544 | 3550 | if (result) { Py_DECREF(result); } |
|
3545 | 3551 | Py_DECREF(obj); |
|
3546 | 3552 | return returnValue; |
|
3547 | 3553 | } |
|
3548 | 3554 | } |
|
3549 | 3555 | return SocExplorerPlot::devType(); |
|
3550 | 3556 | } |
|
3551 | 3557 | void PythonQtShell_SocExplorerPlot::dragEnterEvent(QDragEnterEvent* arg__1) |
|
3552 | 3558 | { |
|
3553 | 3559 | if (_wrapper) { |
|
3554 | 3560 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); |
|
3555 | 3561 | PyErr_Clear(); |
|
3556 | 3562 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3557 | 3563 | static const char* argumentList[] ={"" , "QDragEnterEvent*"}; |
|
3558 | 3564 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3559 | 3565 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3560 | 3566 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3561 | 3567 | if (result) { Py_DECREF(result); } |
|
3562 | 3568 | Py_DECREF(obj); |
|
3563 | 3569 | return; |
|
3564 | 3570 | } |
|
3565 | 3571 | } |
|
3566 | 3572 | SocExplorerPlot::dragEnterEvent(arg__1); |
|
3567 | 3573 | } |
|
3568 | 3574 | void PythonQtShell_SocExplorerPlot::dragLeaveEvent(QDragLeaveEvent* arg__1) |
|
3569 | 3575 | { |
|
3570 | 3576 | if (_wrapper) { |
|
3571 | 3577 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); |
|
3572 | 3578 | PyErr_Clear(); |
|
3573 | 3579 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3574 | 3580 | static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; |
|
3575 | 3581 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3576 | 3582 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3577 | 3583 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3578 | 3584 | if (result) { Py_DECREF(result); } |
|
3579 | 3585 | Py_DECREF(obj); |
|
3580 | 3586 | return; |
|
3581 | 3587 | } |
|
3582 | 3588 | } |
|
3583 | 3589 | SocExplorerPlot::dragLeaveEvent(arg__1); |
|
3584 | 3590 | } |
|
3585 | 3591 | void PythonQtShell_SocExplorerPlot::dragMoveEvent(QDragMoveEvent* arg__1) |
|
3586 | 3592 | { |
|
3587 | 3593 | if (_wrapper) { |
|
3588 | 3594 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); |
|
3589 | 3595 | PyErr_Clear(); |
|
3590 | 3596 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3591 | 3597 | static const char* argumentList[] ={"" , "QDragMoveEvent*"}; |
|
3592 | 3598 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3593 | 3599 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3594 | 3600 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3595 | 3601 | if (result) { Py_DECREF(result); } |
|
3596 | 3602 | Py_DECREF(obj); |
|
3597 | 3603 | return; |
|
3598 | 3604 | } |
|
3599 | 3605 | } |
|
3600 | 3606 | SocExplorerPlot::dragMoveEvent(arg__1); |
|
3601 | 3607 | } |
|
3602 | 3608 | void PythonQtShell_SocExplorerPlot::dropEvent(QDropEvent* arg__1) |
|
3603 | 3609 | { |
|
3604 | 3610 | if (_wrapper) { |
|
3605 | 3611 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); |
|
3606 | 3612 | PyErr_Clear(); |
|
3607 | 3613 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3608 | 3614 | static const char* argumentList[] ={"" , "QDropEvent*"}; |
|
3609 | 3615 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3610 | 3616 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3611 | 3617 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3612 | 3618 | if (result) { Py_DECREF(result); } |
|
3613 | 3619 | Py_DECREF(obj); |
|
3614 | 3620 | return; |
|
3615 | 3621 | } |
|
3616 | 3622 | } |
|
3617 | 3623 | SocExplorerPlot::dropEvent(arg__1); |
|
3618 | 3624 | } |
|
3619 | 3625 | void PythonQtShell_SocExplorerPlot::enterEvent(QEvent* arg__1) |
|
3620 | 3626 | { |
|
3621 | 3627 | if (_wrapper) { |
|
3622 | 3628 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); |
|
3623 | 3629 | PyErr_Clear(); |
|
3624 | 3630 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3625 | 3631 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
3626 | 3632 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3627 | 3633 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3628 | 3634 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3629 | 3635 | if (result) { Py_DECREF(result); } |
|
3630 | 3636 | Py_DECREF(obj); |
|
3631 | 3637 | return; |
|
3632 | 3638 | } |
|
3633 | 3639 | } |
|
3634 | 3640 | SocExplorerPlot::enterEvent(arg__1); |
|
3635 | 3641 | } |
|
3636 | 3642 | bool PythonQtShell_SocExplorerPlot::event(QEvent* arg__1) |
|
3637 | 3643 | { |
|
3638 | 3644 | if (_wrapper) { |
|
3639 | 3645 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); |
|
3640 | 3646 | PyErr_Clear(); |
|
3641 | 3647 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3642 | 3648 | static const char* argumentList[] ={"bool" , "QEvent*"}; |
|
3643 | 3649 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3644 | 3650 | bool returnValue; |
|
3645 | 3651 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3646 | 3652 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3647 | 3653 | if (result) { |
|
3648 | 3654 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3649 | 3655 | if (args[0]!=&returnValue) { |
|
3650 | 3656 | if (args[0]==NULL) { |
|
3651 | 3657 | PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); |
|
3652 | 3658 | } else { |
|
3653 | 3659 | returnValue = *((bool*)args[0]); |
|
3654 | 3660 | } |
|
3655 | 3661 | } |
|
3656 | 3662 | } |
|
3657 | 3663 | if (result) { Py_DECREF(result); } |
|
3658 | 3664 | Py_DECREF(obj); |
|
3659 | 3665 | return returnValue; |
|
3660 | 3666 | } |
|
3661 | 3667 | } |
|
3662 | 3668 | return SocExplorerPlot::event(arg__1); |
|
3663 | 3669 | } |
|
3664 | 3670 | bool PythonQtShell_SocExplorerPlot::eventFilter(QObject* arg__1, QEvent* arg__2) |
|
3665 | 3671 | { |
|
3666 | 3672 | if (_wrapper) { |
|
3667 | 3673 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); |
|
3668 | 3674 | PyErr_Clear(); |
|
3669 | 3675 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3670 | 3676 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; |
|
3671 | 3677 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); |
|
3672 | 3678 | bool returnValue; |
|
3673 | 3679 | void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; |
|
3674 | 3680 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3675 | 3681 | if (result) { |
|
3676 | 3682 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3677 | 3683 | if (args[0]!=&returnValue) { |
|
3678 | 3684 | if (args[0]==NULL) { |
|
3679 | 3685 | PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); |
|
3680 | 3686 | } else { |
|
3681 | 3687 | returnValue = *((bool*)args[0]); |
|
3682 | 3688 | } |
|
3683 | 3689 | } |
|
3684 | 3690 | } |
|
3685 | 3691 | if (result) { Py_DECREF(result); } |
|
3686 | 3692 | Py_DECREF(obj); |
|
3687 | 3693 | return returnValue; |
|
3688 | 3694 | } |
|
3689 | 3695 | } |
|
3690 | 3696 | return SocExplorerPlot::eventFilter(arg__1, arg__2); |
|
3691 | 3697 | } |
|
3692 | 3698 | void PythonQtShell_SocExplorerPlot::focusInEvent(QFocusEvent* arg__1) |
|
3693 | 3699 | { |
|
3694 | 3700 | if (_wrapper) { |
|
3695 | 3701 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); |
|
3696 | 3702 | PyErr_Clear(); |
|
3697 | 3703 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3698 | 3704 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
3699 | 3705 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3700 | 3706 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3701 | 3707 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3702 | 3708 | if (result) { Py_DECREF(result); } |
|
3703 | 3709 | Py_DECREF(obj); |
|
3704 | 3710 | return; |
|
3705 | 3711 | } |
|
3706 | 3712 | } |
|
3707 | 3713 | SocExplorerPlot::focusInEvent(arg__1); |
|
3708 | 3714 | } |
|
3709 | 3715 | bool PythonQtShell_SocExplorerPlot::focusNextPrevChild(bool next) |
|
3710 | 3716 | { |
|
3711 | 3717 | if (_wrapper) { |
|
3712 | 3718 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); |
|
3713 | 3719 | PyErr_Clear(); |
|
3714 | 3720 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3715 | 3721 | static const char* argumentList[] ={"bool" , "bool"}; |
|
3716 | 3722 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3717 | 3723 | bool returnValue; |
|
3718 | 3724 | void* args[2] = {NULL, (void*)&next}; |
|
3719 | 3725 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3720 | 3726 | if (result) { |
|
3721 | 3727 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3722 | 3728 | if (args[0]!=&returnValue) { |
|
3723 | 3729 | if (args[0]==NULL) { |
|
3724 | 3730 | PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); |
|
3725 | 3731 | } else { |
|
3726 | 3732 | returnValue = *((bool*)args[0]); |
|
3727 | 3733 | } |
|
3728 | 3734 | } |
|
3729 | 3735 | } |
|
3730 | 3736 | if (result) { Py_DECREF(result); } |
|
3731 | 3737 | Py_DECREF(obj); |
|
3732 | 3738 | return returnValue; |
|
3733 | 3739 | } |
|
3734 | 3740 | } |
|
3735 | 3741 | return SocExplorerPlot::focusNextPrevChild(next); |
|
3736 | 3742 | } |
|
3737 | 3743 | void PythonQtShell_SocExplorerPlot::focusOutEvent(QFocusEvent* arg__1) |
|
3738 | 3744 | { |
|
3739 | 3745 | if (_wrapper) { |
|
3740 | 3746 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); |
|
3741 | 3747 | PyErr_Clear(); |
|
3742 | 3748 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3743 | 3749 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
3744 | 3750 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3745 | 3751 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3746 | 3752 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3747 | 3753 | if (result) { Py_DECREF(result); } |
|
3748 | 3754 | Py_DECREF(obj); |
|
3749 | 3755 | return; |
|
3750 | 3756 | } |
|
3751 | 3757 | } |
|
3752 | 3758 | SocExplorerPlot::focusOutEvent(arg__1); |
|
3753 | 3759 | } |
|
3754 | 3760 | bool PythonQtShell_SocExplorerPlot::hasHeightForWidth() const |
|
3755 | 3761 | { |
|
3756 | 3762 | if (_wrapper) { |
|
3757 | 3763 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); |
|
3758 | 3764 | PyErr_Clear(); |
|
3759 | 3765 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3760 | 3766 | static const char* argumentList[] ={"bool"}; |
|
3761 | 3767 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
3762 | 3768 | bool returnValue; |
|
3763 | 3769 | void* args[1] = {NULL}; |
|
3764 | 3770 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3765 | 3771 | if (result) { |
|
3766 | 3772 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3767 | 3773 | if (args[0]!=&returnValue) { |
|
3768 | 3774 | if (args[0]==NULL) { |
|
3769 | 3775 | PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); |
|
3770 | 3776 | } else { |
|
3771 | 3777 | returnValue = *((bool*)args[0]); |
|
3772 | 3778 | } |
|
3773 | 3779 | } |
|
3774 | 3780 | } |
|
3775 | 3781 | if (result) { Py_DECREF(result); } |
|
3776 | 3782 | Py_DECREF(obj); |
|
3777 | 3783 | return returnValue; |
|
3778 | 3784 | } |
|
3779 | 3785 | } |
|
3780 | 3786 | return SocExplorerPlot::hasHeightForWidth(); |
|
3781 | 3787 | } |
|
3782 | 3788 | int PythonQtShell_SocExplorerPlot::heightForWidth(int arg__1) const |
|
3783 | 3789 | { |
|
3784 | 3790 | if (_wrapper) { |
|
3785 | 3791 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); |
|
3786 | 3792 | PyErr_Clear(); |
|
3787 | 3793 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3788 | 3794 | static const char* argumentList[] ={"int" , "int"}; |
|
3789 | 3795 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3790 | 3796 | int returnValue; |
|
3791 | 3797 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3792 | 3798 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3793 | 3799 | if (result) { |
|
3794 | 3800 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3795 | 3801 | if (args[0]!=&returnValue) { |
|
3796 | 3802 | if (args[0]==NULL) { |
|
3797 | 3803 | PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); |
|
3798 | 3804 | } else { |
|
3799 | 3805 | returnValue = *((int*)args[0]); |
|
3800 | 3806 | } |
|
3801 | 3807 | } |
|
3802 | 3808 | } |
|
3803 | 3809 | if (result) { Py_DECREF(result); } |
|
3804 | 3810 | Py_DECREF(obj); |
|
3805 | 3811 | return returnValue; |
|
3806 | 3812 | } |
|
3807 | 3813 | } |
|
3808 | 3814 | return SocExplorerPlot::heightForWidth(arg__1); |
|
3809 | 3815 | } |
|
3810 | 3816 | void PythonQtShell_SocExplorerPlot::hideEvent(QHideEvent* arg__1) |
|
3811 | 3817 | { |
|
3812 | 3818 | if (_wrapper) { |
|
3813 | 3819 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); |
|
3814 | 3820 | PyErr_Clear(); |
|
3815 | 3821 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3816 | 3822 | static const char* argumentList[] ={"" , "QHideEvent*"}; |
|
3817 | 3823 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3818 | 3824 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3819 | 3825 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3820 | 3826 | if (result) { Py_DECREF(result); } |
|
3821 | 3827 | Py_DECREF(obj); |
|
3822 | 3828 | return; |
|
3823 | 3829 | } |
|
3824 | 3830 | } |
|
3825 | 3831 | SocExplorerPlot::hideEvent(arg__1); |
|
3826 | 3832 | } |
|
3827 | 3833 | void PythonQtShell_SocExplorerPlot::initPainter(QPainter* painter) const |
|
3828 | 3834 | { |
|
3829 | 3835 | if (_wrapper) { |
|
3830 | 3836 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); |
|
3831 | 3837 | PyErr_Clear(); |
|
3832 | 3838 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3833 | 3839 | static const char* argumentList[] ={"" , "QPainter*"}; |
|
3834 | 3840 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3835 | 3841 | void* args[2] = {NULL, (void*)&painter}; |
|
3836 | 3842 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3837 | 3843 | if (result) { Py_DECREF(result); } |
|
3838 | 3844 | Py_DECREF(obj); |
|
3839 | 3845 | return; |
|
3840 | 3846 | } |
|
3841 | 3847 | } |
|
3842 | 3848 | SocExplorerPlot::initPainter(painter); |
|
3843 | 3849 | } |
|
3844 | 3850 | void PythonQtShell_SocExplorerPlot::inputMethodEvent(QInputMethodEvent* arg__1) |
|
3845 | 3851 | { |
|
3846 | 3852 | if (_wrapper) { |
|
3847 | 3853 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); |
|
3848 | 3854 | PyErr_Clear(); |
|
3849 | 3855 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3850 | 3856 | static const char* argumentList[] ={"" , "QInputMethodEvent*"}; |
|
3851 | 3857 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3852 | 3858 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3853 | 3859 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3854 | 3860 | if (result) { Py_DECREF(result); } |
|
3855 | 3861 | Py_DECREF(obj); |
|
3856 | 3862 | return; |
|
3857 | 3863 | } |
|
3858 | 3864 | } |
|
3859 | 3865 | SocExplorerPlot::inputMethodEvent(arg__1); |
|
3860 | 3866 | } |
|
3861 | 3867 | QVariant PythonQtShell_SocExplorerPlot::inputMethodQuery(Qt::InputMethodQuery arg__1) const |
|
3862 | 3868 | { |
|
3863 | 3869 | if (_wrapper) { |
|
3864 | 3870 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); |
|
3865 | 3871 | PyErr_Clear(); |
|
3866 | 3872 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3867 | 3873 | static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; |
|
3868 | 3874 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3869 | 3875 | QVariant returnValue; |
|
3870 | 3876 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3871 | 3877 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3872 | 3878 | if (result) { |
|
3873 | 3879 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3874 | 3880 | if (args[0]!=&returnValue) { |
|
3875 | 3881 | if (args[0]==NULL) { |
|
3876 | 3882 | PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); |
|
3877 | 3883 | } else { |
|
3878 | 3884 | returnValue = *((QVariant*)args[0]); |
|
3879 | 3885 | } |
|
3880 | 3886 | } |
|
3881 | 3887 | } |
|
3882 | 3888 | if (result) { Py_DECREF(result); } |
|
3883 | 3889 | Py_DECREF(obj); |
|
3884 | 3890 | return returnValue; |
|
3885 | 3891 | } |
|
3886 | 3892 | } |
|
3887 | 3893 | return SocExplorerPlot::inputMethodQuery(arg__1); |
|
3888 | 3894 | } |
|
3889 | 3895 | void PythonQtShell_SocExplorerPlot::keyPressEvent(QKeyEvent* arg__1) |
|
3890 | 3896 | { |
|
3891 | 3897 | if (_wrapper) { |
|
3892 | 3898 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); |
|
3893 | 3899 | PyErr_Clear(); |
|
3894 | 3900 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3895 | 3901 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
3896 | 3902 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3897 | 3903 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3898 | 3904 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3899 | 3905 | if (result) { Py_DECREF(result); } |
|
3900 | 3906 | Py_DECREF(obj); |
|
3901 | 3907 | return; |
|
3902 | 3908 | } |
|
3903 | 3909 | } |
|
3904 | 3910 | SocExplorerPlot::keyPressEvent(arg__1); |
|
3905 | 3911 | } |
|
3906 | 3912 | void PythonQtShell_SocExplorerPlot::keyReleaseEvent(QKeyEvent* arg__1) |
|
3907 | 3913 | { |
|
3908 | 3914 | if (_wrapper) { |
|
3909 | 3915 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); |
|
3910 | 3916 | PyErr_Clear(); |
|
3911 | 3917 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3912 | 3918 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
3913 | 3919 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3914 | 3920 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3915 | 3921 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3916 | 3922 | if (result) { Py_DECREF(result); } |
|
3917 | 3923 | Py_DECREF(obj); |
|
3918 | 3924 | return; |
|
3919 | 3925 | } |
|
3920 | 3926 | } |
|
3921 | 3927 | SocExplorerPlot::keyReleaseEvent(arg__1); |
|
3922 | 3928 | } |
|
3923 | 3929 | void PythonQtShell_SocExplorerPlot::leaveEvent(QEvent* arg__1) |
|
3924 | 3930 | { |
|
3925 | 3931 | if (_wrapper) { |
|
3926 | 3932 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); |
|
3927 | 3933 | PyErr_Clear(); |
|
3928 | 3934 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3929 | 3935 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
3930 | 3936 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3931 | 3937 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3932 | 3938 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3933 | 3939 | if (result) { Py_DECREF(result); } |
|
3934 | 3940 | Py_DECREF(obj); |
|
3935 | 3941 | return; |
|
3936 | 3942 | } |
|
3937 | 3943 | } |
|
3938 | 3944 | SocExplorerPlot::leaveEvent(arg__1); |
|
3939 | 3945 | } |
|
3940 | 3946 | int PythonQtShell_SocExplorerPlot::metric(QPaintDevice::PaintDeviceMetric arg__1) const |
|
3941 | 3947 | { |
|
3942 | 3948 | if (_wrapper) { |
|
3943 | 3949 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); |
|
3944 | 3950 | PyErr_Clear(); |
|
3945 | 3951 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3946 | 3952 | static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; |
|
3947 | 3953 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
3948 | 3954 | int returnValue; |
|
3949 | 3955 | void* args[2] = {NULL, (void*)&arg__1}; |
|
3950 | 3956 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3951 | 3957 | if (result) { |
|
3952 | 3958 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3953 | 3959 | if (args[0]!=&returnValue) { |
|
3954 | 3960 | if (args[0]==NULL) { |
|
3955 | 3961 | PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); |
|
3956 | 3962 | } else { |
|
3957 | 3963 | returnValue = *((int*)args[0]); |
|
3958 | 3964 | } |
|
3959 | 3965 | } |
|
3960 | 3966 | } |
|
3961 | 3967 | if (result) { Py_DECREF(result); } |
|
3962 | 3968 | Py_DECREF(obj); |
|
3963 | 3969 | return returnValue; |
|
3964 | 3970 | } |
|
3965 | 3971 | } |
|
3966 | 3972 | return SocExplorerPlot::metric(arg__1); |
|
3967 | 3973 | } |
|
3968 | 3974 | QSize PythonQtShell_SocExplorerPlot::minimumSizeHint() const |
|
3969 | 3975 | { |
|
3970 | 3976 | if (_wrapper) { |
|
3971 | 3977 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); |
|
3972 | 3978 | PyErr_Clear(); |
|
3973 | 3979 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
3974 | 3980 | static const char* argumentList[] ={"QSize"}; |
|
3975 | 3981 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
3976 | 3982 | QSize returnValue; |
|
3977 | 3983 | void* args[1] = {NULL}; |
|
3978 | 3984 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
3979 | 3985 | if (result) { |
|
3980 | 3986 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
3981 | 3987 | if (args[0]!=&returnValue) { |
|
3982 | 3988 | if (args[0]==NULL) { |
|
3983 | 3989 | PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); |
|
3984 | 3990 | } else { |
|
3985 | 3991 | returnValue = *((QSize*)args[0]); |
|
3986 | 3992 | } |
|
3987 | 3993 | } |
|
3988 | 3994 | } |
|
3989 | 3995 | if (result) { Py_DECREF(result); } |
|
3990 | 3996 | Py_DECREF(obj); |
|
3991 | 3997 | return returnValue; |
|
3992 | 3998 | } |
|
3993 | 3999 | } |
|
3994 | 4000 | return SocExplorerPlot::minimumSizeHint(); |
|
3995 | 4001 | } |
|
3996 | 4002 | void PythonQtShell_SocExplorerPlot::mouseDoubleClickEvent(QMouseEvent* arg__1) |
|
3997 | 4003 | { |
|
3998 | 4004 | if (_wrapper) { |
|
3999 | 4005 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); |
|
4000 | 4006 | PyErr_Clear(); |
|
4001 | 4007 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4002 | 4008 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
4003 | 4009 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4004 | 4010 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4005 | 4011 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4006 | 4012 | if (result) { Py_DECREF(result); } |
|
4007 | 4013 | Py_DECREF(obj); |
|
4008 | 4014 | return; |
|
4009 | 4015 | } |
|
4010 | 4016 | } |
|
4011 | 4017 | SocExplorerPlot::mouseDoubleClickEvent(arg__1); |
|
4012 | 4018 | } |
|
4013 | 4019 | void PythonQtShell_SocExplorerPlot::mouseMoveEvent(QMouseEvent* arg__1) |
|
4014 | 4020 | { |
|
4015 | 4021 | if (_wrapper) { |
|
4016 | 4022 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); |
|
4017 | 4023 | PyErr_Clear(); |
|
4018 | 4024 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4019 | 4025 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
4020 | 4026 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4021 | 4027 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4022 | 4028 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4023 | 4029 | if (result) { Py_DECREF(result); } |
|
4024 | 4030 | Py_DECREF(obj); |
|
4025 | 4031 | return; |
|
4026 | 4032 | } |
|
4027 | 4033 | } |
|
4028 | 4034 | SocExplorerPlot::mouseMoveEvent(arg__1); |
|
4029 | 4035 | } |
|
4030 | 4036 | void PythonQtShell_SocExplorerPlot::mousePressEvent(QMouseEvent* arg__1) |
|
4031 | 4037 | { |
|
4032 | 4038 | if (_wrapper) { |
|
4033 | 4039 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); |
|
4034 | 4040 | PyErr_Clear(); |
|
4035 | 4041 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4036 | 4042 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
4037 | 4043 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4038 | 4044 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4039 | 4045 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4040 | 4046 | if (result) { Py_DECREF(result); } |
|
4041 | 4047 | Py_DECREF(obj); |
|
4042 | 4048 | return; |
|
4043 | 4049 | } |
|
4044 | 4050 | } |
|
4045 | 4051 | SocExplorerPlot::mousePressEvent(arg__1); |
|
4046 | 4052 | } |
|
4047 | 4053 | void PythonQtShell_SocExplorerPlot::mouseReleaseEvent(QMouseEvent* arg__1) |
|
4048 | 4054 | { |
|
4049 | 4055 | if (_wrapper) { |
|
4050 | 4056 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); |
|
4051 | 4057 | PyErr_Clear(); |
|
4052 | 4058 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4053 | 4059 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
4054 | 4060 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4055 | 4061 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4056 | 4062 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4057 | 4063 | if (result) { Py_DECREF(result); } |
|
4058 | 4064 | Py_DECREF(obj); |
|
4059 | 4065 | return; |
|
4060 | 4066 | } |
|
4061 | 4067 | } |
|
4062 | 4068 | SocExplorerPlot::mouseReleaseEvent(arg__1); |
|
4063 | 4069 | } |
|
4064 | 4070 | void PythonQtShell_SocExplorerPlot::moveEvent(QMoveEvent* arg__1) |
|
4065 | 4071 | { |
|
4066 | 4072 | if (_wrapper) { |
|
4067 | 4073 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); |
|
4068 | 4074 | PyErr_Clear(); |
|
4069 | 4075 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4070 | 4076 | static const char* argumentList[] ={"" , "QMoveEvent*"}; |
|
4071 | 4077 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4072 | 4078 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4073 | 4079 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4074 | 4080 | if (result) { Py_DECREF(result); } |
|
4075 | 4081 | Py_DECREF(obj); |
|
4076 | 4082 | return; |
|
4077 | 4083 | } |
|
4078 | 4084 | } |
|
4079 | 4085 | SocExplorerPlot::moveEvent(arg__1); |
|
4080 | 4086 | } |
|
4081 | 4087 | bool PythonQtShell_SocExplorerPlot::nativeEvent(const QByteArray& eventType, void* message, long* result) |
|
4082 | 4088 | { |
|
4083 | 4089 | if (_wrapper) { |
|
4084 | 4090 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); |
|
4085 | 4091 | PyErr_Clear(); |
|
4086 | 4092 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4087 | 4093 | static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; |
|
4088 | 4094 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); |
|
4089 | 4095 | bool returnValue; |
|
4090 | 4096 | void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; |
|
4091 | 4097 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4092 | 4098 | if (result) { |
|
4093 | 4099 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4094 | 4100 | if (args[0]!=&returnValue) { |
|
4095 | 4101 | if (args[0]==NULL) { |
|
4096 | 4102 | PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); |
|
4097 | 4103 | } else { |
|
4098 | 4104 | returnValue = *((bool*)args[0]); |
|
4099 | 4105 | } |
|
4100 | 4106 | } |
|
4101 | 4107 | } |
|
4102 | 4108 | if (result) { Py_DECREF(result); } |
|
4103 | 4109 | Py_DECREF(obj); |
|
4104 | 4110 | return returnValue; |
|
4105 | 4111 | } |
|
4106 | 4112 | } |
|
4107 | 4113 | return SocExplorerPlot::nativeEvent(eventType, message, result); |
|
4108 | 4114 | } |
|
4109 | 4115 | QPaintEngine* PythonQtShell_SocExplorerPlot::paintEngine() const |
|
4110 | 4116 | { |
|
4111 | 4117 | if (_wrapper) { |
|
4112 | 4118 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); |
|
4113 | 4119 | PyErr_Clear(); |
|
4114 | 4120 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4115 | 4121 | static const char* argumentList[] ={"QPaintEngine*"}; |
|
4116 | 4122 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
4117 | 4123 | QPaintEngine* returnValue; |
|
4118 | 4124 | void* args[1] = {NULL}; |
|
4119 | 4125 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4120 | 4126 | if (result) { |
|
4121 | 4127 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4122 | 4128 | if (args[0]!=&returnValue) { |
|
4123 | 4129 | if (args[0]==NULL) { |
|
4124 | 4130 | PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); |
|
4125 | 4131 | } else { |
|
4126 | 4132 | returnValue = *((QPaintEngine**)args[0]); |
|
4127 | 4133 | } |
|
4128 | 4134 | } |
|
4129 | 4135 | } |
|
4130 | 4136 | if (result) { Py_DECREF(result); } |
|
4131 | 4137 | Py_DECREF(obj); |
|
4132 | 4138 | return returnValue; |
|
4133 | 4139 | } |
|
4134 | 4140 | } |
|
4135 | 4141 | return SocExplorerPlot::paintEngine(); |
|
4136 | 4142 | } |
|
4137 | 4143 | void PythonQtShell_SocExplorerPlot::paintEvent(QPaintEvent* arg__1) |
|
4138 | 4144 | { |
|
4139 | 4145 | if (_wrapper) { |
|
4140 | 4146 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); |
|
4141 | 4147 | PyErr_Clear(); |
|
4142 | 4148 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4143 | 4149 | static const char* argumentList[] ={"" , "QPaintEvent*"}; |
|
4144 | 4150 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4145 | 4151 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4146 | 4152 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4147 | 4153 | if (result) { Py_DECREF(result); } |
|
4148 | 4154 | Py_DECREF(obj); |
|
4149 | 4155 | return; |
|
4150 | 4156 | } |
|
4151 | 4157 | } |
|
4152 | 4158 | SocExplorerPlot::paintEvent(arg__1); |
|
4153 | 4159 | } |
|
4154 | 4160 | QPaintDevice* PythonQtShell_SocExplorerPlot::redirected(QPoint* offset) const |
|
4155 | 4161 | { |
|
4156 | 4162 | if (_wrapper) { |
|
4157 | 4163 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); |
|
4158 | 4164 | PyErr_Clear(); |
|
4159 | 4165 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4160 | 4166 | static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; |
|
4161 | 4167 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4162 | 4168 | QPaintDevice* returnValue; |
|
4163 | 4169 | void* args[2] = {NULL, (void*)&offset}; |
|
4164 | 4170 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4165 | 4171 | if (result) { |
|
4166 | 4172 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4167 | 4173 | if (args[0]!=&returnValue) { |
|
4168 | 4174 | if (args[0]==NULL) { |
|
4169 | 4175 | PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); |
|
4170 | 4176 | } else { |
|
4171 | 4177 | returnValue = *((QPaintDevice**)args[0]); |
|
4172 | 4178 | } |
|
4173 | 4179 | } |
|
4174 | 4180 | } |
|
4175 | 4181 | if (result) { Py_DECREF(result); } |
|
4176 | 4182 | Py_DECREF(obj); |
|
4177 | 4183 | return returnValue; |
|
4178 | 4184 | } |
|
4179 | 4185 | } |
|
4180 | 4186 | return SocExplorerPlot::redirected(offset); |
|
4181 | 4187 | } |
|
4182 | 4188 | void PythonQtShell_SocExplorerPlot::resizeEvent(QResizeEvent* arg__1) |
|
4183 | 4189 | { |
|
4184 | 4190 | if (_wrapper) { |
|
4185 | 4191 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); |
|
4186 | 4192 | PyErr_Clear(); |
|
4187 | 4193 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4188 | 4194 | static const char* argumentList[] ={"" , "QResizeEvent*"}; |
|
4189 | 4195 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4190 | 4196 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4191 | 4197 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4192 | 4198 | if (result) { Py_DECREF(result); } |
|
4193 | 4199 | Py_DECREF(obj); |
|
4194 | 4200 | return; |
|
4195 | 4201 | } |
|
4196 | 4202 | } |
|
4197 | 4203 | SocExplorerPlot::resizeEvent(arg__1); |
|
4198 | 4204 | } |
|
4199 | 4205 | QPainter* PythonQtShell_SocExplorerPlot::sharedPainter() const |
|
4200 | 4206 | { |
|
4201 | 4207 | if (_wrapper) { |
|
4202 | 4208 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); |
|
4203 | 4209 | PyErr_Clear(); |
|
4204 | 4210 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4205 | 4211 | static const char* argumentList[] ={"QPainter*"}; |
|
4206 | 4212 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
4207 | 4213 | QPainter* returnValue; |
|
4208 | 4214 | void* args[1] = {NULL}; |
|
4209 | 4215 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4210 | 4216 | if (result) { |
|
4211 | 4217 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4212 | 4218 | if (args[0]!=&returnValue) { |
|
4213 | 4219 | if (args[0]==NULL) { |
|
4214 | 4220 | PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); |
|
4215 | 4221 | } else { |
|
4216 | 4222 | returnValue = *((QPainter**)args[0]); |
|
4217 | 4223 | } |
|
4218 | 4224 | } |
|
4219 | 4225 | } |
|
4220 | 4226 | if (result) { Py_DECREF(result); } |
|
4221 | 4227 | Py_DECREF(obj); |
|
4222 | 4228 | return returnValue; |
|
4223 | 4229 | } |
|
4224 | 4230 | } |
|
4225 | 4231 | return SocExplorerPlot::sharedPainter(); |
|
4226 | 4232 | } |
|
4227 | 4233 | void PythonQtShell_SocExplorerPlot::showEvent(QShowEvent* arg__1) |
|
4228 | 4234 | { |
|
4229 | 4235 | if (_wrapper) { |
|
4230 | 4236 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); |
|
4231 | 4237 | PyErr_Clear(); |
|
4232 | 4238 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4233 | 4239 | static const char* argumentList[] ={"" , "QShowEvent*"}; |
|
4234 | 4240 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4235 | 4241 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4236 | 4242 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4237 | 4243 | if (result) { Py_DECREF(result); } |
|
4238 | 4244 | Py_DECREF(obj); |
|
4239 | 4245 | return; |
|
4240 | 4246 | } |
|
4241 | 4247 | } |
|
4242 | 4248 | SocExplorerPlot::showEvent(arg__1); |
|
4243 | 4249 | } |
|
4244 | 4250 | QSize PythonQtShell_SocExplorerPlot::sizeHint() const |
|
4245 | 4251 | { |
|
4246 | 4252 | if (_wrapper) { |
|
4247 | 4253 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); |
|
4248 | 4254 | PyErr_Clear(); |
|
4249 | 4255 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4250 | 4256 | static const char* argumentList[] ={"QSize"}; |
|
4251 | 4257 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
4252 | 4258 | QSize returnValue; |
|
4253 | 4259 | void* args[1] = {NULL}; |
|
4254 | 4260 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4255 | 4261 | if (result) { |
|
4256 | 4262 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4257 | 4263 | if (args[0]!=&returnValue) { |
|
4258 | 4264 | if (args[0]==NULL) { |
|
4259 | 4265 | PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); |
|
4260 | 4266 | } else { |
|
4261 | 4267 | returnValue = *((QSize*)args[0]); |
|
4262 | 4268 | } |
|
4263 | 4269 | } |
|
4264 | 4270 | } |
|
4265 | 4271 | if (result) { Py_DECREF(result); } |
|
4266 | 4272 | Py_DECREF(obj); |
|
4267 | 4273 | return returnValue; |
|
4268 | 4274 | } |
|
4269 | 4275 | } |
|
4270 | 4276 | return SocExplorerPlot::sizeHint(); |
|
4271 | 4277 | } |
|
4272 | 4278 | void PythonQtShell_SocExplorerPlot::tabletEvent(QTabletEvent* arg__1) |
|
4273 | 4279 | { |
|
4274 | 4280 | if (_wrapper) { |
|
4275 | 4281 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); |
|
4276 | 4282 | PyErr_Clear(); |
|
4277 | 4283 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4278 | 4284 | static const char* argumentList[] ={"" , "QTabletEvent*"}; |
|
4279 | 4285 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4280 | 4286 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4281 | 4287 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4282 | 4288 | if (result) { Py_DECREF(result); } |
|
4283 | 4289 | Py_DECREF(obj); |
|
4284 | 4290 | return; |
|
4285 | 4291 | } |
|
4286 | 4292 | } |
|
4287 | 4293 | SocExplorerPlot::tabletEvent(arg__1); |
|
4288 | 4294 | } |
|
4289 | 4295 | void PythonQtShell_SocExplorerPlot::timerEvent(QTimerEvent* arg__1) |
|
4290 | 4296 | { |
|
4291 | 4297 | if (_wrapper) { |
|
4292 | 4298 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); |
|
4293 | 4299 | PyErr_Clear(); |
|
4294 | 4300 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4295 | 4301 | static const char* argumentList[] ={"" , "QTimerEvent*"}; |
|
4296 | 4302 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4297 | 4303 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4298 | 4304 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4299 | 4305 | if (result) { Py_DECREF(result); } |
|
4300 | 4306 | Py_DECREF(obj); |
|
4301 | 4307 | return; |
|
4302 | 4308 | } |
|
4303 | 4309 | } |
|
4304 | 4310 | SocExplorerPlot::timerEvent(arg__1); |
|
4305 | 4311 | } |
|
4306 | 4312 | void PythonQtShell_SocExplorerPlot::wheelEvent(QWheelEvent* arg__1) |
|
4307 | 4313 | { |
|
4308 | 4314 | if (_wrapper) { |
|
4309 | 4315 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); |
|
4310 | 4316 | PyErr_Clear(); |
|
4311 | 4317 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4312 | 4318 | static const char* argumentList[] ={"" , "QWheelEvent*"}; |
|
4313 | 4319 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4314 | 4320 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4315 | 4321 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4316 | 4322 | if (result) { Py_DECREF(result); } |
|
4317 | 4323 | Py_DECREF(obj); |
|
4318 | 4324 | return; |
|
4319 | 4325 | } |
|
4320 | 4326 | } |
|
4321 | 4327 | SocExplorerPlot::wheelEvent(arg__1); |
|
4322 | 4328 | } |
|
4323 | 4329 | SocExplorerPlot* PythonQtWrapper_SocExplorerPlot::new_SocExplorerPlot(QWidget* parent) |
|
4324 | 4330 | { |
|
4325 | 4331 | return new PythonQtShell_SocExplorerPlot(parent); } |
|
4326 | 4332 | |
|
4327 | 4333 | int PythonQtWrapper_SocExplorerPlot::addGraph(SocExplorerPlot* theWrappedObject) |
|
4328 | 4334 | { |
|
4329 | 4335 | return ( theWrappedObject->addGraph()); |
|
4330 | 4336 | } |
|
4331 | 4337 | |
|
4332 | 4338 | void PythonQtWrapper_SocExplorerPlot::addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y) |
|
4333 | 4339 | { |
|
4334 | 4340 | ( theWrappedObject->addGraphData(graphIndex, x, y)); |
|
4335 | 4341 | } |
|
4336 | 4342 | |
|
4337 | 4343 | void PythonQtWrapper_SocExplorerPlot::addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y) |
|
4338 | 4344 | { |
|
4339 | 4345 | ( theWrappedObject->addGraphData(graphIndex, x, y)); |
|
4340 | 4346 | } |
|
4341 | 4347 | |
|
4342 | 4348 | QPen PythonQtWrapper_SocExplorerPlot::getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex) |
|
4343 | 4349 | { |
|
4344 | 4350 | return ( theWrappedObject->getGraphPen(graphIndex)); |
|
4345 | 4351 | } |
|
4346 | 4352 | |
|
4347 | 4353 | void PythonQtWrapper_SocExplorerPlot::keyPressEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1) |
|
4348 | 4354 | { |
|
4349 | 4355 | ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_keyPressEvent(arg__1)); |
|
4350 | 4356 | } |
|
4351 | 4357 | |
|
4352 | 4358 | void PythonQtWrapper_SocExplorerPlot::keyReleaseEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1) |
|
4353 | 4359 | { |
|
4354 | 4360 | ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_keyReleaseEvent(arg__1)); |
|
4355 | 4361 | } |
|
4356 | 4362 | |
|
4357 | 4363 | void PythonQtWrapper_SocExplorerPlot::mouseMoveEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1) |
|
4358 | 4364 | { |
|
4359 | 4365 | ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); |
|
4360 | 4366 | } |
|
4361 | 4367 | |
|
4362 | 4368 | void PythonQtWrapper_SocExplorerPlot::mousePressEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1) |
|
4363 | 4369 | { |
|
4364 | 4370 | ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mousePressEvent(arg__1)); |
|
4365 | 4371 | } |
|
4366 | 4372 | |
|
4367 | 4373 | void PythonQtWrapper_SocExplorerPlot::mouseReleaseEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1) |
|
4368 | 4374 | { |
|
4369 | 4375 | ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); |
|
4370 | 4376 | } |
|
4371 | 4377 | |
|
4372 | 4378 | void PythonQtWrapper_SocExplorerPlot::rescaleAxis(SocExplorerPlot* theWrappedObject) |
|
4373 | 4379 | { |
|
4374 | 4380 | ( theWrappedObject->rescaleAxis()); |
|
4375 | 4381 | } |
|
4376 | 4382 | |
|
4377 | 4383 | void PythonQtWrapper_SocExplorerPlot::setAdaptativeSampling(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable) |
|
4378 | 4384 | { |
|
4379 | 4385 | ( theWrappedObject->setAdaptativeSampling(graphIndex, enable)); |
|
4380 | 4386 | } |
|
4381 | 4387 | |
|
4382 | 4388 | void PythonQtWrapper_SocExplorerPlot::setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y) |
|
4383 | 4389 | { |
|
4384 | 4390 | ( theWrappedObject->setGraphData(graphIndex, x, y)); |
|
4385 | 4391 | } |
|
4386 | 4392 | |
|
4387 | 4393 | void PythonQtWrapper_SocExplorerPlot::setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle) |
|
4388 | 4394 | { |
|
4389 | 4395 | ( theWrappedObject->setGraphLineStyle(graphIndex, lineStyle)); |
|
4390 | 4396 | } |
|
4391 | 4397 | |
|
4392 | 4398 | void PythonQtWrapper_SocExplorerPlot::setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name) |
|
4393 | 4399 | { |
|
4394 | 4400 | ( theWrappedObject->setGraphName(graphIndex, name)); |
|
4395 | 4401 | } |
|
4396 | 4402 | |
|
4397 | 4403 | void PythonQtWrapper_SocExplorerPlot::setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen) |
|
4398 | 4404 | { |
|
4399 | 4405 | ( theWrappedObject->setGraphPen(graphIndex, pen)); |
|
4400 | 4406 | } |
|
4401 | 4407 | |
|
4402 | 4408 | void PythonQtWrapper_SocExplorerPlot::setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle) |
|
4403 | 4409 | { |
|
4404 | 4410 | ( theWrappedObject->setGraphScatterStyle(graphIndex, scatterStyle)); |
|
4405 | 4411 | } |
|
4406 | 4412 | |
|
4407 | 4413 | void PythonQtWrapper_SocExplorerPlot::setLegendFont(SocExplorerPlot* theWrappedObject, QFont font) |
|
4408 | 4414 | { |
|
4409 | 4415 | ( theWrappedObject->setLegendFont(font)); |
|
4410 | 4416 | } |
|
4411 | 4417 | |
|
4412 | 4418 | void PythonQtWrapper_SocExplorerPlot::setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font) |
|
4413 | 4419 | { |
|
4414 | 4420 | ( theWrappedObject->setLegendSelectedFont(font)); |
|
4415 | 4421 | } |
|
4416 | 4422 | |
|
4417 | 4423 | void PythonQtWrapper_SocExplorerPlot::setTitle(SocExplorerPlot* theWrappedObject, QString title) |
|
4418 | 4424 | { |
|
4419 | 4425 | ( theWrappedObject->setTitle(title)); |
|
4420 | 4426 | } |
|
4421 | 4427 | |
|
4422 | 4428 | void PythonQtWrapper_SocExplorerPlot::setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label) |
|
4423 | 4429 | { |
|
4424 | 4430 | ( theWrappedObject->setXaxisLabel(label)); |
|
4425 | 4431 | } |
|
4426 | 4432 | |
|
4427 | 4433 | void PythonQtWrapper_SocExplorerPlot::setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper) |
|
4428 | 4434 | { |
|
4429 | 4435 | ( theWrappedObject->setXaxisRange(lower, upper)); |
|
4430 | 4436 | } |
|
4431 | 4437 | |
|
4432 | 4438 | void PythonQtWrapper_SocExplorerPlot::setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label) |
|
4433 | 4439 | { |
|
4434 | 4440 | ( theWrappedObject->setYaxisLabel(label)); |
|
4435 | 4441 | } |
|
4436 | 4442 | |
|
4437 | 4443 | void PythonQtWrapper_SocExplorerPlot::setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper) |
|
4438 | 4444 | { |
|
4439 | 4445 | ( theWrappedObject->setYaxisRange(lower, upper)); |
|
4440 | 4446 | } |
|
4441 | 4447 | |
|
4442 | 4448 | void PythonQtWrapper_SocExplorerPlot::show(SocExplorerPlot* theWrappedObject) |
|
4443 | 4449 | { |
|
4444 | 4450 | ( theWrappedObject->show()); |
|
4445 | 4451 | } |
|
4446 | 4452 | |
|
4447 | 4453 | void PythonQtWrapper_SocExplorerPlot::wheelEvent(SocExplorerPlot* theWrappedObject, QWheelEvent* arg__1) |
|
4448 | 4454 | { |
|
4449 | 4455 | ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_wheelEvent(arg__1)); |
|
4450 | 4456 | } |
|
4451 | 4457 | |
|
4452 | 4458 | |
|
4453 | 4459 | |
|
4454 | 4460 | PythonQtShell_TCP_Terminal_Client::~PythonQtShell_TCP_Terminal_Client() { |
|
4455 | 4461 | PythonQtPrivate* priv = PythonQt::priv(); |
|
4456 | 4462 | if (priv) { priv->shellClassDeleted(this); } |
|
4457 | 4463 | } |
|
4458 | 4464 | void PythonQtShell_TCP_Terminal_Client::childEvent(QChildEvent* arg__1) |
|
4459 | 4465 | { |
|
4460 | 4466 | if (_wrapper) { |
|
4461 | 4467 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); |
|
4462 | 4468 | PyErr_Clear(); |
|
4463 | 4469 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4464 | 4470 | static const char* argumentList[] ={"" , "QChildEvent*"}; |
|
4465 | 4471 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4466 | 4472 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4467 | 4473 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4468 | 4474 | if (result) { Py_DECREF(result); } |
|
4469 | 4475 | Py_DECREF(obj); |
|
4470 | 4476 | return; |
|
4471 | 4477 | } |
|
4472 | 4478 | } |
|
4473 | 4479 | TCP_Terminal_Client::childEvent(arg__1); |
|
4474 | 4480 | } |
|
4475 | 4481 | void PythonQtShell_TCP_Terminal_Client::customEvent(QEvent* arg__1) |
|
4476 | 4482 | { |
|
4477 | 4483 | if (_wrapper) { |
|
4478 | 4484 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); |
|
4479 | 4485 | PyErr_Clear(); |
|
4480 | 4486 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4481 | 4487 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
4482 | 4488 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4483 | 4489 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4484 | 4490 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4485 | 4491 | if (result) { Py_DECREF(result); } |
|
4486 | 4492 | Py_DECREF(obj); |
|
4487 | 4493 | return; |
|
4488 | 4494 | } |
|
4489 | 4495 | } |
|
4490 | 4496 | TCP_Terminal_Client::customEvent(arg__1); |
|
4491 | 4497 | } |
|
4492 | 4498 | bool PythonQtShell_TCP_Terminal_Client::event(QEvent* arg__1) |
|
4493 | 4499 | { |
|
4494 | 4500 | if (_wrapper) { |
|
4495 | 4501 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); |
|
4496 | 4502 | PyErr_Clear(); |
|
4497 | 4503 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4498 | 4504 | static const char* argumentList[] ={"bool" , "QEvent*"}; |
|
4499 | 4505 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4500 | 4506 | bool returnValue; |
|
4501 | 4507 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4502 | 4508 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4503 | 4509 | if (result) { |
|
4504 | 4510 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4505 | 4511 | if (args[0]!=&returnValue) { |
|
4506 | 4512 | if (args[0]==NULL) { |
|
4507 | 4513 | PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); |
|
4508 | 4514 | } else { |
|
4509 | 4515 | returnValue = *((bool*)args[0]); |
|
4510 | 4516 | } |
|
4511 | 4517 | } |
|
4512 | 4518 | } |
|
4513 | 4519 | if (result) { Py_DECREF(result); } |
|
4514 | 4520 | Py_DECREF(obj); |
|
4515 | 4521 | return returnValue; |
|
4516 | 4522 | } |
|
4517 | 4523 | } |
|
4518 | 4524 | return TCP_Terminal_Client::event(arg__1); |
|
4519 | 4525 | } |
|
4520 | 4526 | bool PythonQtShell_TCP_Terminal_Client::eventFilter(QObject* arg__1, QEvent* arg__2) |
|
4521 | 4527 | { |
|
4522 | 4528 | if (_wrapper) { |
|
4523 | 4529 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); |
|
4524 | 4530 | PyErr_Clear(); |
|
4525 | 4531 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4526 | 4532 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; |
|
4527 | 4533 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); |
|
4528 | 4534 | bool returnValue; |
|
4529 | 4535 | void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; |
|
4530 | 4536 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4531 | 4537 | if (result) { |
|
4532 | 4538 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4533 | 4539 | if (args[0]!=&returnValue) { |
|
4534 | 4540 | if (args[0]==NULL) { |
|
4535 | 4541 | PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); |
|
4536 | 4542 | } else { |
|
4537 | 4543 | returnValue = *((bool*)args[0]); |
|
4538 | 4544 | } |
|
4539 | 4545 | } |
|
4540 | 4546 | } |
|
4541 | 4547 | if (result) { Py_DECREF(result); } |
|
4542 | 4548 | Py_DECREF(obj); |
|
4543 | 4549 | return returnValue; |
|
4544 | 4550 | } |
|
4545 | 4551 | } |
|
4546 | 4552 | return TCP_Terminal_Client::eventFilter(arg__1, arg__2); |
|
4547 | 4553 | } |
|
4548 | 4554 | void PythonQtShell_TCP_Terminal_Client::timerEvent(QTimerEvent* arg__1) |
|
4549 | 4555 | { |
|
4550 | 4556 | if (_wrapper) { |
|
4551 | 4557 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); |
|
4552 | 4558 | PyErr_Clear(); |
|
4553 | 4559 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4554 | 4560 | static const char* argumentList[] ={"" , "QTimerEvent*"}; |
|
4555 | 4561 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4556 | 4562 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4557 | 4563 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4558 | 4564 | if (result) { Py_DECREF(result); } |
|
4559 | 4565 | Py_DECREF(obj); |
|
4560 | 4566 | return; |
|
4561 | 4567 | } |
|
4562 | 4568 | } |
|
4563 | 4569 | TCP_Terminal_Client::timerEvent(arg__1); |
|
4564 | 4570 | } |
|
4565 | 4571 | TCP_Terminal_Client* PythonQtWrapper_TCP_Terminal_Client::new_TCP_Terminal_Client(QObject* parent) |
|
4566 | 4572 | { |
|
4567 | 4573 | return new PythonQtShell_TCP_Terminal_Client(parent); } |
|
4568 | 4574 | |
|
4569 | 4575 | void PythonQtWrapper_TCP_Terminal_Client::connectToServer(TCP_Terminal_Client* theWrappedObject) |
|
4570 | 4576 | { |
|
4571 | 4577 | ( theWrappedObject->connectToServer()); |
|
4572 | 4578 | } |
|
4573 | 4579 | |
|
4574 | 4580 | void PythonQtWrapper_TCP_Terminal_Client::connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port) |
|
4575 | 4581 | { |
|
4576 | 4582 | ( theWrappedObject->connectToServer(IP, port)); |
|
4577 | 4583 | } |
|
4578 | 4584 | |
|
4579 | 4585 | bool PythonQtWrapper_TCP_Terminal_Client::isConnected(TCP_Terminal_Client* theWrappedObject) |
|
4580 | 4586 | { |
|
4581 | 4587 | return ( theWrappedObject->isConnected()); |
|
4582 | 4588 | } |
|
4583 | 4589 | |
|
4584 | 4590 | void PythonQtWrapper_TCP_Terminal_Client::sendText(TCP_Terminal_Client* theWrappedObject, const QString& text) |
|
4585 | 4591 | { |
|
4586 | 4592 | ( theWrappedObject->sendText(text)); |
|
4587 | 4593 | } |
|
4588 | 4594 | |
|
4589 | 4595 | void PythonQtWrapper_TCP_Terminal_Client::startServer(TCP_Terminal_Client* theWrappedObject) |
|
4590 | 4596 | { |
|
4591 | 4597 | ( theWrappedObject->startServer()); |
|
4592 | 4598 | } |
|
4593 | 4599 | |
|
4594 | 4600 | void PythonQtWrapper_TCP_Terminal_Client::startServer(TCP_Terminal_Client* theWrappedObject, int port) |
|
4595 | 4601 | { |
|
4596 | 4602 | ( theWrappedObject->startServer(port)); |
|
4597 | 4603 | } |
|
4598 | 4604 | |
|
4599 | 4605 | |
|
4600 | 4606 | |
|
4601 | 4607 | XByteArray* PythonQtWrapper_XByteArray::new_XByteArray() |
|
4602 | 4608 | { |
|
4603 | 4609 | return new XByteArray(); } |
|
4604 | 4610 | |
|
4605 | 4611 | int PythonQtWrapper_XByteArray::addressOffset(XByteArray* theWrappedObject) |
|
4606 | 4612 | { |
|
4607 | 4613 | return ( theWrappedObject->addressOffset()); |
|
4608 | 4614 | } |
|
4609 | 4615 | |
|
4610 | 4616 | int PythonQtWrapper_XByteArray::addressWidth(XByteArray* theWrappedObject) |
|
4611 | 4617 | { |
|
4612 | 4618 | return ( theWrappedObject->addressWidth()); |
|
4613 | 4619 | } |
|
4614 | 4620 | |
|
4615 | 4621 | QChar PythonQtWrapper_XByteArray::asciiChar(XByteArray* theWrappedObject, int index) |
|
4616 | 4622 | { |
|
4617 | 4623 | return ( theWrappedObject->asciiChar(index)); |
|
4618 | 4624 | } |
|
4619 | 4625 | |
|
4620 | 4626 | QByteArray* PythonQtWrapper_XByteArray::data(XByteArray* theWrappedObject) |
|
4621 | 4627 | { |
|
4622 | 4628 | return &( theWrappedObject->data()); |
|
4623 | 4629 | } |
|
4624 | 4630 | |
|
4625 | 4631 | bool PythonQtWrapper_XByteArray::dataChanged(XByteArray* theWrappedObject, int i) |
|
4626 | 4632 | { |
|
4627 | 4633 | return ( theWrappedObject->dataChanged(i)); |
|
4628 | 4634 | } |
|
4629 | 4635 | |
|
4630 | 4636 | QByteArray PythonQtWrapper_XByteArray::dataChanged(XByteArray* theWrappedObject, int i, int len) |
|
4631 | 4637 | { |
|
4632 | 4638 | return ( theWrappedObject->dataChanged(i, len)); |
|
4633 | 4639 | } |
|
4634 | 4640 | |
|
4635 | 4641 | QByteArray* PythonQtWrapper_XByteArray::insert(XByteArray* theWrappedObject, int i, char ch) |
|
4636 | 4642 | { |
|
4637 | 4643 | return &( theWrappedObject->insert(i, ch)); |
|
4638 | 4644 | } |
|
4639 | 4645 | |
|
4640 | 4646 | QByteArray* PythonQtWrapper_XByteArray::insert(XByteArray* theWrappedObject, int i, const QByteArray& ba) |
|
4641 | 4647 | { |
|
4642 | 4648 | return &( theWrappedObject->insert(i, ba)); |
|
4643 | 4649 | } |
|
4644 | 4650 | |
|
4645 | 4651 | int PythonQtWrapper_XByteArray::realAddressNumbers(XByteArray* theWrappedObject) |
|
4646 | 4652 | { |
|
4647 | 4653 | return ( theWrappedObject->realAddressNumbers()); |
|
4648 | 4654 | } |
|
4649 | 4655 | |
|
4650 | 4656 | QByteArray* PythonQtWrapper_XByteArray::remove(XByteArray* theWrappedObject, int pos, int len) |
|
4651 | 4657 | { |
|
4652 | 4658 | return &( theWrappedObject->remove(pos, len)); |
|
4653 | 4659 | } |
|
4654 | 4660 | |
|
4655 | 4661 | QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, char ch) |
|
4656 | 4662 | { |
|
4657 | 4663 | return &( theWrappedObject->replace(index, ch)); |
|
4658 | 4664 | } |
|
4659 | 4665 | |
|
4660 | 4666 | QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, const QByteArray& ba) |
|
4661 | 4667 | { |
|
4662 | 4668 | return &( theWrappedObject->replace(index, ba)); |
|
4663 | 4669 | } |
|
4664 | 4670 | |
|
4665 | 4671 | QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba) |
|
4666 | 4672 | { |
|
4667 | 4673 | return &( theWrappedObject->replace(index, length, ba)); |
|
4668 | 4674 | } |
|
4669 | 4675 | |
|
4670 | 4676 | void PythonQtWrapper_XByteArray::setAddressOffset(XByteArray* theWrappedObject, int offset) |
|
4671 | 4677 | { |
|
4672 | 4678 | ( theWrappedObject->setAddressOffset(offset)); |
|
4673 | 4679 | } |
|
4674 | 4680 | |
|
4675 | 4681 | void PythonQtWrapper_XByteArray::setAddressWidth(XByteArray* theWrappedObject, int width) |
|
4676 | 4682 | { |
|
4677 | 4683 | ( theWrappedObject->setAddressWidth(width)); |
|
4678 | 4684 | } |
|
4679 | 4685 | |
|
4680 | 4686 | void PythonQtWrapper_XByteArray::setData(XByteArray* theWrappedObject, QByteArray data) |
|
4681 | 4687 | { |
|
4682 | 4688 | ( theWrappedObject->setData(data)); |
|
4683 | 4689 | } |
|
4684 | 4690 | |
|
4685 | 4691 | void PythonQtWrapper_XByteArray::setDataChanged(XByteArray* theWrappedObject, int i, bool state) |
|
4686 | 4692 | { |
|
4687 | 4693 | ( theWrappedObject->setDataChanged(i, state)); |
|
4688 | 4694 | } |
|
4689 | 4695 | |
|
4690 | 4696 | void PythonQtWrapper_XByteArray::setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state) |
|
4691 | 4697 | { |
|
4692 | 4698 | ( theWrappedObject->setDataChanged(i, state)); |
|
4693 | 4699 | } |
|
4694 | 4700 | |
|
4695 | 4701 | int PythonQtWrapper_XByteArray::size(XByteArray* theWrappedObject) |
|
4696 | 4702 | { |
|
4697 | 4703 | return ( theWrappedObject->size()); |
|
4698 | 4704 | } |
|
4699 | 4705 | |
|
4700 | 4706 | QString PythonQtWrapper_XByteArray::toRedableString(XByteArray* theWrappedObject, int start, int end) |
|
4701 | 4707 | { |
|
4702 | 4708 | return ( theWrappedObject->toRedableString(start, end)); |
|
4703 | 4709 | } |
|
4704 | 4710 | |
|
4705 | 4711 | |
|
4706 | 4712 | |
|
4707 |
PythonQtShell_abstract |
|
|
4713 | PythonQtShell_abstractBinFile::~PythonQtShell_abstractBinFile() { | |
|
4708 | 4714 | PythonQtPrivate* priv = PythonQt::priv(); |
|
4709 | 4715 | if (priv) { priv->shellClassDeleted(this); } |
|
4710 | 4716 | } |
|
4711 |
void PythonQtShell_abstract |
|
|
4717 | void PythonQtShell_abstractBinFile::childEvent(QChildEvent* arg__1) | |
|
4712 | 4718 | { |
|
4713 | 4719 | if (_wrapper) { |
|
4714 | 4720 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); |
|
4715 | 4721 | PyErr_Clear(); |
|
4716 | 4722 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4717 | 4723 | static const char* argumentList[] ={"" , "QChildEvent*"}; |
|
4718 | 4724 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4719 | 4725 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4720 | 4726 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4721 | 4727 | if (result) { Py_DECREF(result); } |
|
4722 | 4728 | Py_DECREF(obj); |
|
4723 | 4729 | return; |
|
4724 | 4730 | } |
|
4725 | 4731 | } |
|
4726 |
abstract |
|
|
4727 | } | |
|
4728 |
int PythonQtShell_abstract |
|
|
4732 | abstractBinFile::childEvent(arg__1); | |
|
4733 | } | |
|
4734 | int PythonQtShell_abstractBinFile::closeFile() | |
|
4729 | 4735 | { |
|
4730 | 4736 | if (_wrapper) { |
|
4731 | 4737 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile"); |
|
4732 | 4738 | PyErr_Clear(); |
|
4733 | 4739 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4734 | 4740 | static const char* argumentList[] ={"int"}; |
|
4735 | 4741 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
4736 | 4742 | int returnValue; |
|
4737 | 4743 | void* args[1] = {NULL}; |
|
4738 | 4744 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4739 | 4745 | if (result) { |
|
4740 | 4746 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4741 | 4747 | if (args[0]!=&returnValue) { |
|
4742 | 4748 | if (args[0]==NULL) { |
|
4743 | 4749 | PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result); |
|
4744 | 4750 | } else { |
|
4745 | 4751 | returnValue = *((int*)args[0]); |
|
4746 | 4752 | } |
|
4747 | 4753 | } |
|
4748 | 4754 | } |
|
4749 | 4755 | if (result) { Py_DECREF(result); } |
|
4750 | 4756 | Py_DECREF(obj); |
|
4751 | 4757 | return returnValue; |
|
4752 | 4758 | } |
|
4753 | 4759 | } |
|
4754 | 4760 | return int(); |
|
4755 | 4761 | } |
|
4756 |
void PythonQtShell_abstract |
|
|
4762 | void PythonQtShell_abstractBinFile::customEvent(QEvent* arg__1) | |
|
4757 | 4763 | { |
|
4758 | 4764 | if (_wrapper) { |
|
4759 | 4765 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); |
|
4760 | 4766 | PyErr_Clear(); |
|
4761 | 4767 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4762 | 4768 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
4763 | 4769 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4764 | 4770 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4765 | 4771 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4766 | 4772 | if (result) { Py_DECREF(result); } |
|
4767 | 4773 | Py_DECREF(obj); |
|
4768 | 4774 | return; |
|
4769 | 4775 | } |
|
4770 | 4776 | } |
|
4771 |
abstract |
|
|
4772 | } | |
|
4773 |
bool PythonQtShell_abstract |
|
|
4777 | abstractBinFile::customEvent(arg__1); | |
|
4778 | } | |
|
4779 | bool PythonQtShell_abstractBinFile::event(QEvent* arg__1) | |
|
4774 | 4780 | { |
|
4775 | 4781 | if (_wrapper) { |
|
4776 | 4782 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); |
|
4777 | 4783 | PyErr_Clear(); |
|
4778 | 4784 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4779 | 4785 | static const char* argumentList[] ={"bool" , "QEvent*"}; |
|
4780 | 4786 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4781 | 4787 | bool returnValue; |
|
4782 | 4788 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4783 | 4789 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4784 | 4790 | if (result) { |
|
4785 | 4791 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4786 | 4792 | if (args[0]!=&returnValue) { |
|
4787 | 4793 | if (args[0]==NULL) { |
|
4788 | 4794 | PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); |
|
4789 | 4795 | } else { |
|
4790 | 4796 | returnValue = *((bool*)args[0]); |
|
4791 | 4797 | } |
|
4792 | 4798 | } |
|
4793 | 4799 | } |
|
4794 | 4800 | if (result) { Py_DECREF(result); } |
|
4795 | 4801 | Py_DECREF(obj); |
|
4796 | 4802 | return returnValue; |
|
4797 | 4803 | } |
|
4798 | 4804 | } |
|
4799 |
return abstract |
|
|
4800 | } | |
|
4801 |
bool PythonQtShell_abstract |
|
|
4805 | return abstractBinFile::event(arg__1); | |
|
4806 | } | |
|
4807 | bool PythonQtShell_abstractBinFile::eventFilter(QObject* arg__1, QEvent* arg__2) | |
|
4802 | 4808 | { |
|
4803 | 4809 | if (_wrapper) { |
|
4804 | 4810 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); |
|
4805 | 4811 | PyErr_Clear(); |
|
4806 | 4812 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4807 | 4813 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; |
|
4808 | 4814 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); |
|
4809 | 4815 | bool returnValue; |
|
4810 | 4816 | void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; |
|
4811 | 4817 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4812 | 4818 | if (result) { |
|
4813 | 4819 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4814 | 4820 | if (args[0]!=&returnValue) { |
|
4815 | 4821 | if (args[0]==NULL) { |
|
4816 | 4822 | PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); |
|
4817 | 4823 | } else { |
|
4818 | 4824 | returnValue = *((bool*)args[0]); |
|
4819 | 4825 | } |
|
4820 | 4826 | } |
|
4821 | 4827 | } |
|
4822 | 4828 | if (result) { Py_DECREF(result); } |
|
4823 | 4829 | Py_DECREF(obj); |
|
4824 | 4830 | return returnValue; |
|
4825 | 4831 | } |
|
4826 | 4832 | } |
|
4827 |
return abstract |
|
|
4828 | } | |
|
4829 |
QList<codeFragment* > PythonQtShell_abstract |
|
|
4833 | return abstractBinFile::eventFilter(arg__1, arg__2); | |
|
4834 | } | |
|
4835 | QList<codeFragment* > PythonQtShell_abstractBinFile::getFragments() | |
|
4830 | 4836 | { |
|
4831 | 4837 | if (_wrapper) { |
|
4832 | 4838 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments"); |
|
4833 | 4839 | PyErr_Clear(); |
|
4834 | 4840 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4835 | 4841 | static const char* argumentList[] ={"QList<codeFragment* >"}; |
|
4836 | 4842 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
4837 | 4843 | QList<codeFragment* > returnValue; |
|
4838 | 4844 | void* args[1] = {NULL}; |
|
4839 | 4845 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4840 | 4846 | if (result) { |
|
4841 | 4847 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4842 | 4848 | if (args[0]!=&returnValue) { |
|
4843 | 4849 | if (args[0]==NULL) { |
|
4844 | 4850 | PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result); |
|
4845 | 4851 | } else { |
|
4846 | 4852 | returnValue = *((QList<codeFragment* >*)args[0]); |
|
4847 | 4853 | } |
|
4848 | 4854 | } |
|
4849 | 4855 | } |
|
4850 | 4856 | if (result) { Py_DECREF(result); } |
|
4851 | 4857 | Py_DECREF(obj); |
|
4852 | 4858 | return returnValue; |
|
4853 | 4859 | } |
|
4854 | 4860 | } |
|
4855 | 4861 | return QList<codeFragment* >(); |
|
4856 | 4862 | } |
|
4857 |
bool PythonQtShell_abstract |
|
|
4863 | bool PythonQtShell_abstractBinFile::isopened() | |
|
4858 | 4864 | { |
|
4859 | 4865 | if (_wrapper) { |
|
4860 | 4866 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened"); |
|
4861 | 4867 | PyErr_Clear(); |
|
4862 | 4868 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4863 | 4869 | static const char* argumentList[] ={"bool"}; |
|
4864 | 4870 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
4865 | 4871 | bool returnValue; |
|
4866 | 4872 | void* args[1] = {NULL}; |
|
4867 | 4873 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4868 | 4874 | if (result) { |
|
4869 | 4875 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4870 | 4876 | if (args[0]!=&returnValue) { |
|
4871 | 4877 | if (args[0]==NULL) { |
|
4872 | 4878 | PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result); |
|
4873 | 4879 | } else { |
|
4874 | 4880 | returnValue = *((bool*)args[0]); |
|
4875 | 4881 | } |
|
4876 | 4882 | } |
|
4877 | 4883 | } |
|
4878 | 4884 | if (result) { Py_DECREF(result); } |
|
4879 | 4885 | Py_DECREF(obj); |
|
4880 | 4886 | return returnValue; |
|
4881 | 4887 | } |
|
4882 | 4888 | } |
|
4883 | 4889 | return bool(); |
|
4884 | 4890 | } |
|
4885 |
bool PythonQtShell_abstract |
|
|
4891 | bool PythonQtShell_abstractBinFile::openFile(const QString& File) | |
|
4886 | 4892 | { |
|
4887 | 4893 | if (_wrapper) { |
|
4888 | 4894 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile"); |
|
4889 | 4895 | PyErr_Clear(); |
|
4890 | 4896 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4891 | 4897 | static const char* argumentList[] ={"bool" , "const QString&"}; |
|
4892 | 4898 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4893 | 4899 | bool returnValue; |
|
4894 | 4900 | void* args[2] = {NULL, (void*)&File}; |
|
4895 | 4901 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4896 | 4902 | if (result) { |
|
4897 | 4903 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
4898 | 4904 | if (args[0]!=&returnValue) { |
|
4899 | 4905 | if (args[0]==NULL) { |
|
4900 | 4906 | PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result); |
|
4901 | 4907 | } else { |
|
4902 | 4908 | returnValue = *((bool*)args[0]); |
|
4903 | 4909 | } |
|
4904 | 4910 | } |
|
4905 | 4911 | } |
|
4906 | 4912 | if (result) { Py_DECREF(result); } |
|
4907 | 4913 | Py_DECREF(obj); |
|
4908 | 4914 | return returnValue; |
|
4909 | 4915 | } |
|
4910 | 4916 | } |
|
4911 | 4917 | return bool(); |
|
4912 | 4918 | } |
|
4913 |
void PythonQtShell_abstract |
|
|
4919 | void PythonQtShell_abstractBinFile::timerEvent(QTimerEvent* arg__1) | |
|
4914 | 4920 | { |
|
4915 | 4921 | if (_wrapper) { |
|
4916 | 4922 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); |
|
4917 | 4923 | PyErr_Clear(); |
|
4918 | 4924 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4919 | 4925 | static const char* argumentList[] ={"" , "QTimerEvent*"}; |
|
4920 | 4926 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4921 | 4927 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4922 | 4928 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4923 | 4929 | if (result) { Py_DECREF(result); } |
|
4924 | 4930 | Py_DECREF(obj); |
|
4925 | 4931 | return; |
|
4926 | 4932 | } |
|
4927 | 4933 | } |
|
4928 |
abstract |
|
|
4929 | } | |
|
4930 |
abstract |
|
|
4934 | abstractBinFile::timerEvent(arg__1); | |
|
4935 | } | |
|
4936 | abstractBinFile* PythonQtWrapper_abstractBinFile::new_abstractBinFile() | |
|
4931 | 4937 | { |
|
4932 |
return new PythonQtShell_abstract |
|
|
4938 | return new PythonQtShell_abstractBinFile(); } | |
|
4933 | 4939 | |
|
4934 | 4940 | |
|
4935 | 4941 | |
|
4936 | 4942 | PythonQtShell_codeFragment::~PythonQtShell_codeFragment() { |
|
4937 | 4943 | PythonQtPrivate* priv = PythonQt::priv(); |
|
4938 | 4944 | if (priv) { priv->shellClassDeleted(this); } |
|
4939 | 4945 | } |
|
4940 | 4946 | codeFragment* PythonQtWrapper_codeFragment::new_codeFragment() |
|
4941 | 4947 | { |
|
4942 | 4948 | return new PythonQtShell_codeFragment(); } |
|
4943 | 4949 | |
|
4944 |
codeFragment* PythonQtWrapper_codeFragment::new_codeFragment(char* data, u |
|
|
4950 | codeFragment* PythonQtWrapper_codeFragment::new_codeFragment(char* data, quint64 size, quint64 address) | |
|
4945 | 4951 | { |
|
4946 | 4952 | return new PythonQtShell_codeFragment(data, size, address); } |
|
4947 | 4953 | |
|
4948 | 4954 | |
|
4949 | 4955 | |
|
4950 | 4956 | PythonQtShell_elfFileWidget::~PythonQtShell_elfFileWidget() { |
|
4951 | 4957 | PythonQtPrivate* priv = PythonQt::priv(); |
|
4952 | 4958 | if (priv) { priv->shellClassDeleted(this); } |
|
4953 | 4959 | } |
|
4954 | 4960 | void PythonQtShell_elfFileWidget::actionEvent(QActionEvent* arg__1) |
|
4955 | 4961 | { |
|
4956 | 4962 | if (_wrapper) { |
|
4957 | 4963 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); |
|
4958 | 4964 | PyErr_Clear(); |
|
4959 | 4965 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4960 | 4966 | static const char* argumentList[] ={"" , "QActionEvent*"}; |
|
4961 | 4967 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4962 | 4968 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4963 | 4969 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4964 | 4970 | if (result) { Py_DECREF(result); } |
|
4965 | 4971 | Py_DECREF(obj); |
|
4966 | 4972 | return; |
|
4967 | 4973 | } |
|
4968 | 4974 | } |
|
4969 | 4975 | elfFileWidget::actionEvent(arg__1); |
|
4970 | 4976 | } |
|
4971 | 4977 | void PythonQtShell_elfFileWidget::changeEvent(QEvent* arg__1) |
|
4972 | 4978 | { |
|
4973 | 4979 | if (_wrapper) { |
|
4974 | 4980 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); |
|
4975 | 4981 | PyErr_Clear(); |
|
4976 | 4982 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4977 | 4983 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
4978 | 4984 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4979 | 4985 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4980 | 4986 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4981 | 4987 | if (result) { Py_DECREF(result); } |
|
4982 | 4988 | Py_DECREF(obj); |
|
4983 | 4989 | return; |
|
4984 | 4990 | } |
|
4985 | 4991 | } |
|
4986 | 4992 | elfFileWidget::changeEvent(arg__1); |
|
4987 | 4993 | } |
|
4988 | 4994 | void PythonQtShell_elfFileWidget::childEvent(QChildEvent* arg__1) |
|
4989 | 4995 | { |
|
4990 | 4996 | if (_wrapper) { |
|
4991 | 4997 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); |
|
4992 | 4998 | PyErr_Clear(); |
|
4993 | 4999 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
4994 | 5000 | static const char* argumentList[] ={"" , "QChildEvent*"}; |
|
4995 | 5001 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
4996 | 5002 | void* args[2] = {NULL, (void*)&arg__1}; |
|
4997 | 5003 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
4998 | 5004 | if (result) { Py_DECREF(result); } |
|
4999 | 5005 | Py_DECREF(obj); |
|
5000 | 5006 | return; |
|
5001 | 5007 | } |
|
5002 | 5008 | } |
|
5003 | 5009 | elfFileWidget::childEvent(arg__1); |
|
5004 | 5010 | } |
|
5005 | 5011 | void PythonQtShell_elfFileWidget::closeEvent(QCloseEvent* arg__1) |
|
5006 | 5012 | { |
|
5007 | 5013 | if (_wrapper) { |
|
5008 | 5014 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); |
|
5009 | 5015 | PyErr_Clear(); |
|
5010 | 5016 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5011 | 5017 | static const char* argumentList[] ={"" , "QCloseEvent*"}; |
|
5012 | 5018 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5013 | 5019 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5014 | 5020 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5015 | 5021 | if (result) { Py_DECREF(result); } |
|
5016 | 5022 | Py_DECREF(obj); |
|
5017 | 5023 | return; |
|
5018 | 5024 | } |
|
5019 | 5025 | } |
|
5020 | 5026 | elfFileWidget::closeEvent(arg__1); |
|
5021 | 5027 | } |
|
5022 | 5028 | void PythonQtShell_elfFileWidget::contextMenuEvent(QContextMenuEvent* arg__1) |
|
5023 | 5029 | { |
|
5024 | 5030 | if (_wrapper) { |
|
5025 | 5031 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); |
|
5026 | 5032 | PyErr_Clear(); |
|
5027 | 5033 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5028 | 5034 | static const char* argumentList[] ={"" , "QContextMenuEvent*"}; |
|
5029 | 5035 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5030 | 5036 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5031 | 5037 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5032 | 5038 | if (result) { Py_DECREF(result); } |
|
5033 | 5039 | Py_DECREF(obj); |
|
5034 | 5040 | return; |
|
5035 | 5041 | } |
|
5036 | 5042 | } |
|
5037 | 5043 | elfFileWidget::contextMenuEvent(arg__1); |
|
5038 | 5044 | } |
|
5039 | 5045 | void PythonQtShell_elfFileWidget::customEvent(QEvent* arg__1) |
|
5040 | 5046 | { |
|
5041 | 5047 | if (_wrapper) { |
|
5042 | 5048 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); |
|
5043 | 5049 | PyErr_Clear(); |
|
5044 | 5050 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5045 | 5051 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
5046 | 5052 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5047 | 5053 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5048 | 5054 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5049 | 5055 | if (result) { Py_DECREF(result); } |
|
5050 | 5056 | Py_DECREF(obj); |
|
5051 | 5057 | return; |
|
5052 | 5058 | } |
|
5053 | 5059 | } |
|
5054 | 5060 | elfFileWidget::customEvent(arg__1); |
|
5055 | 5061 | } |
|
5056 | 5062 | int PythonQtShell_elfFileWidget::devType() const |
|
5057 | 5063 | { |
|
5058 | 5064 | if (_wrapper) { |
|
5059 | 5065 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); |
|
5060 | 5066 | PyErr_Clear(); |
|
5061 | 5067 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5062 | 5068 | static const char* argumentList[] ={"int"}; |
|
5063 | 5069 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
5064 | 5070 | int returnValue; |
|
5065 | 5071 | void* args[1] = {NULL}; |
|
5066 | 5072 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5067 | 5073 | if (result) { |
|
5068 | 5074 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5069 | 5075 | if (args[0]!=&returnValue) { |
|
5070 | 5076 | if (args[0]==NULL) { |
|
5071 | 5077 | PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); |
|
5072 | 5078 | } else { |
|
5073 | 5079 | returnValue = *((int*)args[0]); |
|
5074 | 5080 | } |
|
5075 | 5081 | } |
|
5076 | 5082 | } |
|
5077 | 5083 | if (result) { Py_DECREF(result); } |
|
5078 | 5084 | Py_DECREF(obj); |
|
5079 | 5085 | return returnValue; |
|
5080 | 5086 | } |
|
5081 | 5087 | } |
|
5082 | 5088 | return elfFileWidget::devType(); |
|
5083 | 5089 | } |
|
5084 | 5090 | void PythonQtShell_elfFileWidget::dragEnterEvent(QDragEnterEvent* arg__1) |
|
5085 | 5091 | { |
|
5086 | 5092 | if (_wrapper) { |
|
5087 | 5093 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); |
|
5088 | 5094 | PyErr_Clear(); |
|
5089 | 5095 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5090 | 5096 | static const char* argumentList[] ={"" , "QDragEnterEvent*"}; |
|
5091 | 5097 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5092 | 5098 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5093 | 5099 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5094 | 5100 | if (result) { Py_DECREF(result); } |
|
5095 | 5101 | Py_DECREF(obj); |
|
5096 | 5102 | return; |
|
5097 | 5103 | } |
|
5098 | 5104 | } |
|
5099 | 5105 | elfFileWidget::dragEnterEvent(arg__1); |
|
5100 | 5106 | } |
|
5101 | 5107 | void PythonQtShell_elfFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) |
|
5102 | 5108 | { |
|
5103 | 5109 | if (_wrapper) { |
|
5104 | 5110 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); |
|
5105 | 5111 | PyErr_Clear(); |
|
5106 | 5112 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5107 | 5113 | static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; |
|
5108 | 5114 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5109 | 5115 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5110 | 5116 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5111 | 5117 | if (result) { Py_DECREF(result); } |
|
5112 | 5118 | Py_DECREF(obj); |
|
5113 | 5119 | return; |
|
5114 | 5120 | } |
|
5115 | 5121 | } |
|
5116 | 5122 | elfFileWidget::dragLeaveEvent(arg__1); |
|
5117 | 5123 | } |
|
5118 | 5124 | void PythonQtShell_elfFileWidget::dragMoveEvent(QDragMoveEvent* arg__1) |
|
5119 | 5125 | { |
|
5120 | 5126 | if (_wrapper) { |
|
5121 | 5127 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); |
|
5122 | 5128 | PyErr_Clear(); |
|
5123 | 5129 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5124 | 5130 | static const char* argumentList[] ={"" , "QDragMoveEvent*"}; |
|
5125 | 5131 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5126 | 5132 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5127 | 5133 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5128 | 5134 | if (result) { Py_DECREF(result); } |
|
5129 | 5135 | Py_DECREF(obj); |
|
5130 | 5136 | return; |
|
5131 | 5137 | } |
|
5132 | 5138 | } |
|
5133 | 5139 | elfFileWidget::dragMoveEvent(arg__1); |
|
5134 | 5140 | } |
|
5135 | 5141 | void PythonQtShell_elfFileWidget::dropEvent(QDropEvent* arg__1) |
|
5136 | 5142 | { |
|
5137 | 5143 | if (_wrapper) { |
|
5138 | 5144 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); |
|
5139 | 5145 | PyErr_Clear(); |
|
5140 | 5146 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5141 | 5147 | static const char* argumentList[] ={"" , "QDropEvent*"}; |
|
5142 | 5148 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5143 | 5149 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5144 | 5150 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5145 | 5151 | if (result) { Py_DECREF(result); } |
|
5146 | 5152 | Py_DECREF(obj); |
|
5147 | 5153 | return; |
|
5148 | 5154 | } |
|
5149 | 5155 | } |
|
5150 | 5156 | elfFileWidget::dropEvent(arg__1); |
|
5151 | 5157 | } |
|
5152 | 5158 | void PythonQtShell_elfFileWidget::enterEvent(QEvent* arg__1) |
|
5153 | 5159 | { |
|
5154 | 5160 | if (_wrapper) { |
|
5155 | 5161 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); |
|
5156 | 5162 | PyErr_Clear(); |
|
5157 | 5163 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5158 | 5164 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
5159 | 5165 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5160 | 5166 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5161 | 5167 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5162 | 5168 | if (result) { Py_DECREF(result); } |
|
5163 | 5169 | Py_DECREF(obj); |
|
5164 | 5170 | return; |
|
5165 | 5171 | } |
|
5166 | 5172 | } |
|
5167 | 5173 | elfFileWidget::enterEvent(arg__1); |
|
5168 | 5174 | } |
|
5169 | 5175 | bool PythonQtShell_elfFileWidget::event(QEvent* arg__1) |
|
5170 | 5176 | { |
|
5171 | 5177 | if (_wrapper) { |
|
5172 | 5178 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); |
|
5173 | 5179 | PyErr_Clear(); |
|
5174 | 5180 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5175 | 5181 | static const char* argumentList[] ={"bool" , "QEvent*"}; |
|
5176 | 5182 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5177 | 5183 | bool returnValue; |
|
5178 | 5184 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5179 | 5185 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5180 | 5186 | if (result) { |
|
5181 | 5187 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5182 | 5188 | if (args[0]!=&returnValue) { |
|
5183 | 5189 | if (args[0]==NULL) { |
|
5184 | 5190 | PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); |
|
5185 | 5191 | } else { |
|
5186 | 5192 | returnValue = *((bool*)args[0]); |
|
5187 | 5193 | } |
|
5188 | 5194 | } |
|
5189 | 5195 | } |
|
5190 | 5196 | if (result) { Py_DECREF(result); } |
|
5191 | 5197 | Py_DECREF(obj); |
|
5192 | 5198 | return returnValue; |
|
5193 | 5199 | } |
|
5194 | 5200 | } |
|
5195 | 5201 | return elfFileWidget::event(arg__1); |
|
5196 | 5202 | } |
|
5197 | 5203 | bool PythonQtShell_elfFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2) |
|
5198 | 5204 | { |
|
5199 | 5205 | if (_wrapper) { |
|
5200 | 5206 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); |
|
5201 | 5207 | PyErr_Clear(); |
|
5202 | 5208 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5203 | 5209 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; |
|
5204 | 5210 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); |
|
5205 | 5211 | bool returnValue; |
|
5206 | 5212 | void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; |
|
5207 | 5213 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5208 | 5214 | if (result) { |
|
5209 | 5215 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5210 | 5216 | if (args[0]!=&returnValue) { |
|
5211 | 5217 | if (args[0]==NULL) { |
|
5212 | 5218 | PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); |
|
5213 | 5219 | } else { |
|
5214 | 5220 | returnValue = *((bool*)args[0]); |
|
5215 | 5221 | } |
|
5216 | 5222 | } |
|
5217 | 5223 | } |
|
5218 | 5224 | if (result) { Py_DECREF(result); } |
|
5219 | 5225 | Py_DECREF(obj); |
|
5220 | 5226 | return returnValue; |
|
5221 | 5227 | } |
|
5222 | 5228 | } |
|
5223 | 5229 | return elfFileWidget::eventFilter(arg__1, arg__2); |
|
5224 | 5230 | } |
|
5225 | 5231 | void PythonQtShell_elfFileWidget::focusInEvent(QFocusEvent* arg__1) |
|
5226 | 5232 | { |
|
5227 | 5233 | if (_wrapper) { |
|
5228 | 5234 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); |
|
5229 | 5235 | PyErr_Clear(); |
|
5230 | 5236 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5231 | 5237 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
5232 | 5238 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5233 | 5239 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5234 | 5240 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5235 | 5241 | if (result) { Py_DECREF(result); } |
|
5236 | 5242 | Py_DECREF(obj); |
|
5237 | 5243 | return; |
|
5238 | 5244 | } |
|
5239 | 5245 | } |
|
5240 | 5246 | elfFileWidget::focusInEvent(arg__1); |
|
5241 | 5247 | } |
|
5242 | 5248 | bool PythonQtShell_elfFileWidget::focusNextPrevChild(bool next) |
|
5243 | 5249 | { |
|
5244 | 5250 | if (_wrapper) { |
|
5245 | 5251 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); |
|
5246 | 5252 | PyErr_Clear(); |
|
5247 | 5253 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5248 | 5254 | static const char* argumentList[] ={"bool" , "bool"}; |
|
5249 | 5255 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5250 | 5256 | bool returnValue; |
|
5251 | 5257 | void* args[2] = {NULL, (void*)&next}; |
|
5252 | 5258 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5253 | 5259 | if (result) { |
|
5254 | 5260 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5255 | 5261 | if (args[0]!=&returnValue) { |
|
5256 | 5262 | if (args[0]==NULL) { |
|
5257 | 5263 | PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); |
|
5258 | 5264 | } else { |
|
5259 | 5265 | returnValue = *((bool*)args[0]); |
|
5260 | 5266 | } |
|
5261 | 5267 | } |
|
5262 | 5268 | } |
|
5263 | 5269 | if (result) { Py_DECREF(result); } |
|
5264 | 5270 | Py_DECREF(obj); |
|
5265 | 5271 | return returnValue; |
|
5266 | 5272 | } |
|
5267 | 5273 | } |
|
5268 | 5274 | return elfFileWidget::focusNextPrevChild(next); |
|
5269 | 5275 | } |
|
5270 | 5276 | void PythonQtShell_elfFileWidget::focusOutEvent(QFocusEvent* arg__1) |
|
5271 | 5277 | { |
|
5272 | 5278 | if (_wrapper) { |
|
5273 | 5279 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); |
|
5274 | 5280 | PyErr_Clear(); |
|
5275 | 5281 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5276 | 5282 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
5277 | 5283 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5278 | 5284 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5279 | 5285 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5280 | 5286 | if (result) { Py_DECREF(result); } |
|
5281 | 5287 | Py_DECREF(obj); |
|
5282 | 5288 | return; |
|
5283 | 5289 | } |
|
5284 | 5290 | } |
|
5285 | 5291 | elfFileWidget::focusOutEvent(arg__1); |
|
5286 | 5292 | } |
|
5287 | 5293 | bool PythonQtShell_elfFileWidget::hasHeightForWidth() const |
|
5288 | 5294 | { |
|
5289 | 5295 | if (_wrapper) { |
|
5290 | 5296 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); |
|
5291 | 5297 | PyErr_Clear(); |
|
5292 | 5298 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5293 | 5299 | static const char* argumentList[] ={"bool"}; |
|
5294 | 5300 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
5295 | 5301 | bool returnValue; |
|
5296 | 5302 | void* args[1] = {NULL}; |
|
5297 | 5303 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5298 | 5304 | if (result) { |
|
5299 | 5305 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5300 | 5306 | if (args[0]!=&returnValue) { |
|
5301 | 5307 | if (args[0]==NULL) { |
|
5302 | 5308 | PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); |
|
5303 | 5309 | } else { |
|
5304 | 5310 | returnValue = *((bool*)args[0]); |
|
5305 | 5311 | } |
|
5306 | 5312 | } |
|
5307 | 5313 | } |
|
5308 | 5314 | if (result) { Py_DECREF(result); } |
|
5309 | 5315 | Py_DECREF(obj); |
|
5310 | 5316 | return returnValue; |
|
5311 | 5317 | } |
|
5312 | 5318 | } |
|
5313 | 5319 | return elfFileWidget::hasHeightForWidth(); |
|
5314 | 5320 | } |
|
5315 | 5321 | int PythonQtShell_elfFileWidget::heightForWidth(int arg__1) const |
|
5316 | 5322 | { |
|
5317 | 5323 | if (_wrapper) { |
|
5318 | 5324 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); |
|
5319 | 5325 | PyErr_Clear(); |
|
5320 | 5326 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5321 | 5327 | static const char* argumentList[] ={"int" , "int"}; |
|
5322 | 5328 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5323 | 5329 | int returnValue; |
|
5324 | 5330 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5325 | 5331 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5326 | 5332 | if (result) { |
|
5327 | 5333 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5328 | 5334 | if (args[0]!=&returnValue) { |
|
5329 | 5335 | if (args[0]==NULL) { |
|
5330 | 5336 | PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); |
|
5331 | 5337 | } else { |
|
5332 | 5338 | returnValue = *((int*)args[0]); |
|
5333 | 5339 | } |
|
5334 | 5340 | } |
|
5335 | 5341 | } |
|
5336 | 5342 | if (result) { Py_DECREF(result); } |
|
5337 | 5343 | Py_DECREF(obj); |
|
5338 | 5344 | return returnValue; |
|
5339 | 5345 | } |
|
5340 | 5346 | } |
|
5341 | 5347 | return elfFileWidget::heightForWidth(arg__1); |
|
5342 | 5348 | } |
|
5343 | 5349 | void PythonQtShell_elfFileWidget::hideEvent(QHideEvent* arg__1) |
|
5344 | 5350 | { |
|
5345 | 5351 | if (_wrapper) { |
|
5346 | 5352 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); |
|
5347 | 5353 | PyErr_Clear(); |
|
5348 | 5354 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5349 | 5355 | static const char* argumentList[] ={"" , "QHideEvent*"}; |
|
5350 | 5356 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5351 | 5357 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5352 | 5358 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5353 | 5359 | if (result) { Py_DECREF(result); } |
|
5354 | 5360 | Py_DECREF(obj); |
|
5355 | 5361 | return; |
|
5356 | 5362 | } |
|
5357 | 5363 | } |
|
5358 | 5364 | elfFileWidget::hideEvent(arg__1); |
|
5359 | 5365 | } |
|
5360 | 5366 | void PythonQtShell_elfFileWidget::initPainter(QPainter* painter) const |
|
5361 | 5367 | { |
|
5362 | 5368 | if (_wrapper) { |
|
5363 | 5369 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); |
|
5364 | 5370 | PyErr_Clear(); |
|
5365 | 5371 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5366 | 5372 | static const char* argumentList[] ={"" , "QPainter*"}; |
|
5367 | 5373 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5368 | 5374 | void* args[2] = {NULL, (void*)&painter}; |
|
5369 | 5375 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5370 | 5376 | if (result) { Py_DECREF(result); } |
|
5371 | 5377 | Py_DECREF(obj); |
|
5372 | 5378 | return; |
|
5373 | 5379 | } |
|
5374 | 5380 | } |
|
5375 | 5381 | elfFileWidget::initPainter(painter); |
|
5376 | 5382 | } |
|
5377 | 5383 | void PythonQtShell_elfFileWidget::inputMethodEvent(QInputMethodEvent* arg__1) |
|
5378 | 5384 | { |
|
5379 | 5385 | if (_wrapper) { |
|
5380 | 5386 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); |
|
5381 | 5387 | PyErr_Clear(); |
|
5382 | 5388 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5383 | 5389 | static const char* argumentList[] ={"" , "QInputMethodEvent*"}; |
|
5384 | 5390 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5385 | 5391 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5386 | 5392 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5387 | 5393 | if (result) { Py_DECREF(result); } |
|
5388 | 5394 | Py_DECREF(obj); |
|
5389 | 5395 | return; |
|
5390 | 5396 | } |
|
5391 | 5397 | } |
|
5392 | 5398 | elfFileWidget::inputMethodEvent(arg__1); |
|
5393 | 5399 | } |
|
5394 | 5400 | QVariant PythonQtShell_elfFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const |
|
5395 | 5401 | { |
|
5396 | 5402 | if (_wrapper) { |
|
5397 | 5403 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); |
|
5398 | 5404 | PyErr_Clear(); |
|
5399 | 5405 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5400 | 5406 | static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; |
|
5401 | 5407 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5402 | 5408 | QVariant returnValue; |
|
5403 | 5409 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5404 | 5410 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5405 | 5411 | if (result) { |
|
5406 | 5412 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5407 | 5413 | if (args[0]!=&returnValue) { |
|
5408 | 5414 | if (args[0]==NULL) { |
|
5409 | 5415 | PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); |
|
5410 | 5416 | } else { |
|
5411 | 5417 | returnValue = *((QVariant*)args[0]); |
|
5412 | 5418 | } |
|
5413 | 5419 | } |
|
5414 | 5420 | } |
|
5415 | 5421 | if (result) { Py_DECREF(result); } |
|
5416 | 5422 | Py_DECREF(obj); |
|
5417 | 5423 | return returnValue; |
|
5418 | 5424 | } |
|
5419 | 5425 | } |
|
5420 | 5426 | return elfFileWidget::inputMethodQuery(arg__1); |
|
5421 | 5427 | } |
|
5422 | 5428 | void PythonQtShell_elfFileWidget::keyPressEvent(QKeyEvent* arg__1) |
|
5423 | 5429 | { |
|
5424 | 5430 | if (_wrapper) { |
|
5425 | 5431 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); |
|
5426 | 5432 | PyErr_Clear(); |
|
5427 | 5433 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5428 | 5434 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
5429 | 5435 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5430 | 5436 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5431 | 5437 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5432 | 5438 | if (result) { Py_DECREF(result); } |
|
5433 | 5439 | Py_DECREF(obj); |
|
5434 | 5440 | return; |
|
5435 | 5441 | } |
|
5436 | 5442 | } |
|
5437 | 5443 | elfFileWidget::keyPressEvent(arg__1); |
|
5438 | 5444 | } |
|
5439 | 5445 | void PythonQtShell_elfFileWidget::keyReleaseEvent(QKeyEvent* arg__1) |
|
5440 | 5446 | { |
|
5441 | 5447 | if (_wrapper) { |
|
5442 | 5448 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); |
|
5443 | 5449 | PyErr_Clear(); |
|
5444 | 5450 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5445 | 5451 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
5446 | 5452 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5447 | 5453 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5448 | 5454 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5449 | 5455 | if (result) { Py_DECREF(result); } |
|
5450 | 5456 | Py_DECREF(obj); |
|
5451 | 5457 | return; |
|
5452 | 5458 | } |
|
5453 | 5459 | } |
|
5454 | 5460 | elfFileWidget::keyReleaseEvent(arg__1); |
|
5455 | 5461 | } |
|
5456 | 5462 | void PythonQtShell_elfFileWidget::leaveEvent(QEvent* arg__1) |
|
5457 | 5463 | { |
|
5458 | 5464 | if (_wrapper) { |
|
5459 | 5465 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); |
|
5460 | 5466 | PyErr_Clear(); |
|
5461 | 5467 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5462 | 5468 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
5463 | 5469 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5464 | 5470 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5465 | 5471 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5466 | 5472 | if (result) { Py_DECREF(result); } |
|
5467 | 5473 | Py_DECREF(obj); |
|
5468 | 5474 | return; |
|
5469 | 5475 | } |
|
5470 | 5476 | } |
|
5471 | 5477 | elfFileWidget::leaveEvent(arg__1); |
|
5472 | 5478 | } |
|
5473 | 5479 | int PythonQtShell_elfFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const |
|
5474 | 5480 | { |
|
5475 | 5481 | if (_wrapper) { |
|
5476 | 5482 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); |
|
5477 | 5483 | PyErr_Clear(); |
|
5478 | 5484 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5479 | 5485 | static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; |
|
5480 | 5486 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5481 | 5487 | int returnValue; |
|
5482 | 5488 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5483 | 5489 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5484 | 5490 | if (result) { |
|
5485 | 5491 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5486 | 5492 | if (args[0]!=&returnValue) { |
|
5487 | 5493 | if (args[0]==NULL) { |
|
5488 | 5494 | PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); |
|
5489 | 5495 | } else { |
|
5490 | 5496 | returnValue = *((int*)args[0]); |
|
5491 | 5497 | } |
|
5492 | 5498 | } |
|
5493 | 5499 | } |
|
5494 | 5500 | if (result) { Py_DECREF(result); } |
|
5495 | 5501 | Py_DECREF(obj); |
|
5496 | 5502 | return returnValue; |
|
5497 | 5503 | } |
|
5498 | 5504 | } |
|
5499 | 5505 | return elfFileWidget::metric(arg__1); |
|
5500 | 5506 | } |
|
5501 | 5507 | QSize PythonQtShell_elfFileWidget::minimumSizeHint() const |
|
5502 | 5508 | { |
|
5503 | 5509 | if (_wrapper) { |
|
5504 | 5510 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); |
|
5505 | 5511 | PyErr_Clear(); |
|
5506 | 5512 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5507 | 5513 | static const char* argumentList[] ={"QSize"}; |
|
5508 | 5514 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
5509 | 5515 | QSize returnValue; |
|
5510 | 5516 | void* args[1] = {NULL}; |
|
5511 | 5517 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5512 | 5518 | if (result) { |
|
5513 | 5519 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5514 | 5520 | if (args[0]!=&returnValue) { |
|
5515 | 5521 | if (args[0]==NULL) { |
|
5516 | 5522 | PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); |
|
5517 | 5523 | } else { |
|
5518 | 5524 | returnValue = *((QSize*)args[0]); |
|
5519 | 5525 | } |
|
5520 | 5526 | } |
|
5521 | 5527 | } |
|
5522 | 5528 | if (result) { Py_DECREF(result); } |
|
5523 | 5529 | Py_DECREF(obj); |
|
5524 | 5530 | return returnValue; |
|
5525 | 5531 | } |
|
5526 | 5532 | } |
|
5527 | 5533 | return elfFileWidget::minimumSizeHint(); |
|
5528 | 5534 | } |
|
5529 | 5535 | void PythonQtShell_elfFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) |
|
5530 | 5536 | { |
|
5531 | 5537 | if (_wrapper) { |
|
5532 | 5538 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); |
|
5533 | 5539 | PyErr_Clear(); |
|
5534 | 5540 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5535 | 5541 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
5536 | 5542 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5537 | 5543 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5538 | 5544 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5539 | 5545 | if (result) { Py_DECREF(result); } |
|
5540 | 5546 | Py_DECREF(obj); |
|
5541 | 5547 | return; |
|
5542 | 5548 | } |
|
5543 | 5549 | } |
|
5544 | 5550 | elfFileWidget::mouseDoubleClickEvent(arg__1); |
|
5545 | 5551 | } |
|
5546 | 5552 | void PythonQtShell_elfFileWidget::mouseMoveEvent(QMouseEvent* arg__1) |
|
5547 | 5553 | { |
|
5548 | 5554 | if (_wrapper) { |
|
5549 | 5555 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); |
|
5550 | 5556 | PyErr_Clear(); |
|
5551 | 5557 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5552 | 5558 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
5553 | 5559 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5554 | 5560 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5555 | 5561 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5556 | 5562 | if (result) { Py_DECREF(result); } |
|
5557 | 5563 | Py_DECREF(obj); |
|
5558 | 5564 | return; |
|
5559 | 5565 | } |
|
5560 | 5566 | } |
|
5561 | 5567 | elfFileWidget::mouseMoveEvent(arg__1); |
|
5562 | 5568 | } |
|
5563 | 5569 | void PythonQtShell_elfFileWidget::mousePressEvent(QMouseEvent* arg__1) |
|
5564 | 5570 | { |
|
5565 | 5571 | if (_wrapper) { |
|
5566 | 5572 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); |
|
5567 | 5573 | PyErr_Clear(); |
|
5568 | 5574 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5569 | 5575 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
5570 | 5576 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5571 | 5577 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5572 | 5578 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5573 | 5579 | if (result) { Py_DECREF(result); } |
|
5574 | 5580 | Py_DECREF(obj); |
|
5575 | 5581 | return; |
|
5576 | 5582 | } |
|
5577 | 5583 | } |
|
5578 | 5584 | elfFileWidget::mousePressEvent(arg__1); |
|
5579 | 5585 | } |
|
5580 | 5586 | void PythonQtShell_elfFileWidget::mouseReleaseEvent(QMouseEvent* arg__1) |
|
5581 | 5587 | { |
|
5582 | 5588 | if (_wrapper) { |
|
5583 | 5589 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); |
|
5584 | 5590 | PyErr_Clear(); |
|
5585 | 5591 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5586 | 5592 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
5587 | 5593 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5588 | 5594 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5589 | 5595 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5590 | 5596 | if (result) { Py_DECREF(result); } |
|
5591 | 5597 | Py_DECREF(obj); |
|
5592 | 5598 | return; |
|
5593 | 5599 | } |
|
5594 | 5600 | } |
|
5595 | 5601 | elfFileWidget::mouseReleaseEvent(arg__1); |
|
5596 | 5602 | } |
|
5597 | 5603 | void PythonQtShell_elfFileWidget::moveEvent(QMoveEvent* arg__1) |
|
5598 | 5604 | { |
|
5599 | 5605 | if (_wrapper) { |
|
5600 | 5606 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); |
|
5601 | 5607 | PyErr_Clear(); |
|
5602 | 5608 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5603 | 5609 | static const char* argumentList[] ={"" , "QMoveEvent*"}; |
|
5604 | 5610 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5605 | 5611 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5606 | 5612 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5607 | 5613 | if (result) { Py_DECREF(result); } |
|
5608 | 5614 | Py_DECREF(obj); |
|
5609 | 5615 | return; |
|
5610 | 5616 | } |
|
5611 | 5617 | } |
|
5612 | 5618 | elfFileWidget::moveEvent(arg__1); |
|
5613 | 5619 | } |
|
5614 | 5620 | bool PythonQtShell_elfFileWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) |
|
5615 | 5621 | { |
|
5616 | 5622 | if (_wrapper) { |
|
5617 | 5623 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); |
|
5618 | 5624 | PyErr_Clear(); |
|
5619 | 5625 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5620 | 5626 | static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; |
|
5621 | 5627 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); |
|
5622 | 5628 | bool returnValue; |
|
5623 | 5629 | void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; |
|
5624 | 5630 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5625 | 5631 | if (result) { |
|
5626 | 5632 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5627 | 5633 | if (args[0]!=&returnValue) { |
|
5628 | 5634 | if (args[0]==NULL) { |
|
5629 | 5635 | PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); |
|
5630 | 5636 | } else { |
|
5631 | 5637 | returnValue = *((bool*)args[0]); |
|
5632 | 5638 | } |
|
5633 | 5639 | } |
|
5634 | 5640 | } |
|
5635 | 5641 | if (result) { Py_DECREF(result); } |
|
5636 | 5642 | Py_DECREF(obj); |
|
5637 | 5643 | return returnValue; |
|
5638 | 5644 | } |
|
5639 | 5645 | } |
|
5640 | 5646 | return elfFileWidget::nativeEvent(eventType, message, result); |
|
5641 | 5647 | } |
|
5642 | 5648 | QPaintEngine* PythonQtShell_elfFileWidget::paintEngine() const |
|
5643 | 5649 | { |
|
5644 | 5650 | if (_wrapper) { |
|
5645 | 5651 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); |
|
5646 | 5652 | PyErr_Clear(); |
|
5647 | 5653 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5648 | 5654 | static const char* argumentList[] ={"QPaintEngine*"}; |
|
5649 | 5655 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
5650 | 5656 | QPaintEngine* returnValue; |
|
5651 | 5657 | void* args[1] = {NULL}; |
|
5652 | 5658 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5653 | 5659 | if (result) { |
|
5654 | 5660 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5655 | 5661 | if (args[0]!=&returnValue) { |
|
5656 | 5662 | if (args[0]==NULL) { |
|
5657 | 5663 | PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); |
|
5658 | 5664 | } else { |
|
5659 | 5665 | returnValue = *((QPaintEngine**)args[0]); |
|
5660 | 5666 | } |
|
5661 | 5667 | } |
|
5662 | 5668 | } |
|
5663 | 5669 | if (result) { Py_DECREF(result); } |
|
5664 | 5670 | Py_DECREF(obj); |
|
5665 | 5671 | return returnValue; |
|
5666 | 5672 | } |
|
5667 | 5673 | } |
|
5668 | 5674 | return elfFileWidget::paintEngine(); |
|
5669 | 5675 | } |
|
5670 | 5676 | void PythonQtShell_elfFileWidget::paintEvent(QPaintEvent* arg__1) |
|
5671 | 5677 | { |
|
5672 | 5678 | if (_wrapper) { |
|
5673 | 5679 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); |
|
5674 | 5680 | PyErr_Clear(); |
|
5675 | 5681 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5676 | 5682 | static const char* argumentList[] ={"" , "QPaintEvent*"}; |
|
5677 | 5683 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5678 | 5684 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5679 | 5685 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5680 | 5686 | if (result) { Py_DECREF(result); } |
|
5681 | 5687 | Py_DECREF(obj); |
|
5682 | 5688 | return; |
|
5683 | 5689 | } |
|
5684 | 5690 | } |
|
5685 | 5691 | elfFileWidget::paintEvent(arg__1); |
|
5686 | 5692 | } |
|
5687 | 5693 | QPaintDevice* PythonQtShell_elfFileWidget::redirected(QPoint* offset) const |
|
5688 | 5694 | { |
|
5689 | 5695 | if (_wrapper) { |
|
5690 | 5696 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); |
|
5691 | 5697 | PyErr_Clear(); |
|
5692 | 5698 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5693 | 5699 | static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; |
|
5694 | 5700 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5695 | 5701 | QPaintDevice* returnValue; |
|
5696 | 5702 | void* args[2] = {NULL, (void*)&offset}; |
|
5697 | 5703 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5698 | 5704 | if (result) { |
|
5699 | 5705 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5700 | 5706 | if (args[0]!=&returnValue) { |
|
5701 | 5707 | if (args[0]==NULL) { |
|
5702 | 5708 | PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); |
|
5703 | 5709 | } else { |
|
5704 | 5710 | returnValue = *((QPaintDevice**)args[0]); |
|
5705 | 5711 | } |
|
5706 | 5712 | } |
|
5707 | 5713 | } |
|
5708 | 5714 | if (result) { Py_DECREF(result); } |
|
5709 | 5715 | Py_DECREF(obj); |
|
5710 | 5716 | return returnValue; |
|
5711 | 5717 | } |
|
5712 | 5718 | } |
|
5713 | 5719 | return elfFileWidget::redirected(offset); |
|
5714 | 5720 | } |
|
5715 | 5721 | void PythonQtShell_elfFileWidget::resizeEvent(QResizeEvent* arg__1) |
|
5716 | 5722 | { |
|
5717 | 5723 | if (_wrapper) { |
|
5718 | 5724 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); |
|
5719 | 5725 | PyErr_Clear(); |
|
5720 | 5726 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5721 | 5727 | static const char* argumentList[] ={"" , "QResizeEvent*"}; |
|
5722 | 5728 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5723 | 5729 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5724 | 5730 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5725 | 5731 | if (result) { Py_DECREF(result); } |
|
5726 | 5732 | Py_DECREF(obj); |
|
5727 | 5733 | return; |
|
5728 | 5734 | } |
|
5729 | 5735 | } |
|
5730 | 5736 | elfFileWidget::resizeEvent(arg__1); |
|
5731 | 5737 | } |
|
5732 | 5738 | QPainter* PythonQtShell_elfFileWidget::sharedPainter() const |
|
5733 | 5739 | { |
|
5734 | 5740 | if (_wrapper) { |
|
5735 | 5741 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); |
|
5736 | 5742 | PyErr_Clear(); |
|
5737 | 5743 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5738 | 5744 | static const char* argumentList[] ={"QPainter*"}; |
|
5739 | 5745 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
5740 | 5746 | QPainter* returnValue; |
|
5741 | 5747 | void* args[1] = {NULL}; |
|
5742 | 5748 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5743 | 5749 | if (result) { |
|
5744 | 5750 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5745 | 5751 | if (args[0]!=&returnValue) { |
|
5746 | 5752 | if (args[0]==NULL) { |
|
5747 | 5753 | PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); |
|
5748 | 5754 | } else { |
|
5749 | 5755 | returnValue = *((QPainter**)args[0]); |
|
5750 | 5756 | } |
|
5751 | 5757 | } |
|
5752 | 5758 | } |
|
5753 | 5759 | if (result) { Py_DECREF(result); } |
|
5754 | 5760 | Py_DECREF(obj); |
|
5755 | 5761 | return returnValue; |
|
5756 | 5762 | } |
|
5757 | 5763 | } |
|
5758 | 5764 | return elfFileWidget::sharedPainter(); |
|
5759 | 5765 | } |
|
5760 | 5766 | void PythonQtShell_elfFileWidget::showEvent(QShowEvent* arg__1) |
|
5761 | 5767 | { |
|
5762 | 5768 | if (_wrapper) { |
|
5763 | 5769 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); |
|
5764 | 5770 | PyErr_Clear(); |
|
5765 | 5771 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5766 | 5772 | static const char* argumentList[] ={"" , "QShowEvent*"}; |
|
5767 | 5773 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5768 | 5774 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5769 | 5775 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5770 | 5776 | if (result) { Py_DECREF(result); } |
|
5771 | 5777 | Py_DECREF(obj); |
|
5772 | 5778 | return; |
|
5773 | 5779 | } |
|
5774 | 5780 | } |
|
5775 | 5781 | elfFileWidget::showEvent(arg__1); |
|
5776 | 5782 | } |
|
5777 | 5783 | QSize PythonQtShell_elfFileWidget::sizeHint() const |
|
5778 | 5784 | { |
|
5779 | 5785 | if (_wrapper) { |
|
5780 | 5786 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); |
|
5781 | 5787 | PyErr_Clear(); |
|
5782 | 5788 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5783 | 5789 | static const char* argumentList[] ={"QSize"}; |
|
5784 | 5790 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
5785 | 5791 | QSize returnValue; |
|
5786 | 5792 | void* args[1] = {NULL}; |
|
5787 | 5793 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5788 | 5794 | if (result) { |
|
5789 | 5795 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5790 | 5796 | if (args[0]!=&returnValue) { |
|
5791 | 5797 | if (args[0]==NULL) { |
|
5792 | 5798 | PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); |
|
5793 | 5799 | } else { |
|
5794 | 5800 | returnValue = *((QSize*)args[0]); |
|
5795 | 5801 | } |
|
5796 | 5802 | } |
|
5797 | 5803 | } |
|
5798 | 5804 | if (result) { Py_DECREF(result); } |
|
5799 | 5805 | Py_DECREF(obj); |
|
5800 | 5806 | return returnValue; |
|
5801 | 5807 | } |
|
5802 | 5808 | } |
|
5803 | 5809 | return elfFileWidget::sizeHint(); |
|
5804 | 5810 | } |
|
5805 | 5811 | void PythonQtShell_elfFileWidget::tabletEvent(QTabletEvent* arg__1) |
|
5806 | 5812 | { |
|
5807 | 5813 | if (_wrapper) { |
|
5808 | 5814 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); |
|
5809 | 5815 | PyErr_Clear(); |
|
5810 | 5816 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5811 | 5817 | static const char* argumentList[] ={"" , "QTabletEvent*"}; |
|
5812 | 5818 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5813 | 5819 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5814 | 5820 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5815 | 5821 | if (result) { Py_DECREF(result); } |
|
5816 | 5822 | Py_DECREF(obj); |
|
5817 | 5823 | return; |
|
5818 | 5824 | } |
|
5819 | 5825 | } |
|
5820 | 5826 | elfFileWidget::tabletEvent(arg__1); |
|
5821 | 5827 | } |
|
5822 | 5828 | void PythonQtShell_elfFileWidget::timerEvent(QTimerEvent* arg__1) |
|
5823 | 5829 | { |
|
5824 | 5830 | if (_wrapper) { |
|
5825 | 5831 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); |
|
5826 | 5832 | PyErr_Clear(); |
|
5827 | 5833 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5828 | 5834 | static const char* argumentList[] ={"" , "QTimerEvent*"}; |
|
5829 | 5835 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5830 | 5836 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5831 | 5837 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5832 | 5838 | if (result) { Py_DECREF(result); } |
|
5833 | 5839 | Py_DECREF(obj); |
|
5834 | 5840 | return; |
|
5835 | 5841 | } |
|
5836 | 5842 | } |
|
5837 | 5843 | elfFileWidget::timerEvent(arg__1); |
|
5838 | 5844 | } |
|
5839 | 5845 | void PythonQtShell_elfFileWidget::wheelEvent(QWheelEvent* arg__1) |
|
5840 | 5846 | { |
|
5841 | 5847 | if (_wrapper) { |
|
5842 | 5848 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); |
|
5843 | 5849 | PyErr_Clear(); |
|
5844 | 5850 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5845 | 5851 | static const char* argumentList[] ={"" , "QWheelEvent*"}; |
|
5846 | 5852 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5847 | 5853 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5848 | 5854 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5849 | 5855 | if (result) { Py_DECREF(result); } |
|
5850 | 5856 | Py_DECREF(obj); |
|
5851 | 5857 | return; |
|
5852 | 5858 | } |
|
5853 | 5859 | } |
|
5854 | 5860 | elfFileWidget::wheelEvent(arg__1); |
|
5855 | 5861 | } |
|
5856 | 5862 | elfFileWidget* PythonQtWrapper_elfFileWidget::new_elfFileWidget(QWidget* parent) |
|
5857 | 5863 | { |
|
5858 | 5864 | return new PythonQtShell_elfFileWidget(parent); } |
|
5859 | 5865 | |
|
5860 | 5866 | |
|
5861 | 5867 | |
|
5862 | 5868 | PythonQtShell_elfInfoWdgt::~PythonQtShell_elfInfoWdgt() { |
|
5863 | 5869 | PythonQtPrivate* priv = PythonQt::priv(); |
|
5864 | 5870 | if (priv) { priv->shellClassDeleted(this); } |
|
5865 | 5871 | } |
|
5866 | 5872 | void PythonQtShell_elfInfoWdgt::actionEvent(QActionEvent* arg__1) |
|
5867 | 5873 | { |
|
5868 | 5874 | if (_wrapper) { |
|
5869 | 5875 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); |
|
5870 | 5876 | PyErr_Clear(); |
|
5871 | 5877 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5872 | 5878 | static const char* argumentList[] ={"" , "QActionEvent*"}; |
|
5873 | 5879 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5874 | 5880 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5875 | 5881 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5876 | 5882 | if (result) { Py_DECREF(result); } |
|
5877 | 5883 | Py_DECREF(obj); |
|
5878 | 5884 | return; |
|
5879 | 5885 | } |
|
5880 | 5886 | } |
|
5881 | 5887 | elfInfoWdgt::actionEvent(arg__1); |
|
5882 | 5888 | } |
|
5883 | 5889 | void PythonQtShell_elfInfoWdgt::changeEvent(QEvent* arg__1) |
|
5884 | 5890 | { |
|
5885 | 5891 | if (_wrapper) { |
|
5886 | 5892 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); |
|
5887 | 5893 | PyErr_Clear(); |
|
5888 | 5894 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5889 | 5895 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
5890 | 5896 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5891 | 5897 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5892 | 5898 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5893 | 5899 | if (result) { Py_DECREF(result); } |
|
5894 | 5900 | Py_DECREF(obj); |
|
5895 | 5901 | return; |
|
5896 | 5902 | } |
|
5897 | 5903 | } |
|
5898 | 5904 | elfInfoWdgt::changeEvent(arg__1); |
|
5899 | 5905 | } |
|
5900 | 5906 | void PythonQtShell_elfInfoWdgt::childEvent(QChildEvent* arg__1) |
|
5901 | 5907 | { |
|
5902 | 5908 | if (_wrapper) { |
|
5903 | 5909 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); |
|
5904 | 5910 | PyErr_Clear(); |
|
5905 | 5911 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5906 | 5912 | static const char* argumentList[] ={"" , "QChildEvent*"}; |
|
5907 | 5913 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5908 | 5914 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5909 | 5915 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5910 | 5916 | if (result) { Py_DECREF(result); } |
|
5911 | 5917 | Py_DECREF(obj); |
|
5912 | 5918 | return; |
|
5913 | 5919 | } |
|
5914 | 5920 | } |
|
5915 | 5921 | elfInfoWdgt::childEvent(arg__1); |
|
5916 | 5922 | } |
|
5917 | 5923 | void PythonQtShell_elfInfoWdgt::closeEvent(QCloseEvent* arg__1) |
|
5918 | 5924 | { |
|
5919 | 5925 | if (_wrapper) { |
|
5920 | 5926 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); |
|
5921 | 5927 | PyErr_Clear(); |
|
5922 | 5928 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5923 | 5929 | static const char* argumentList[] ={"" , "QCloseEvent*"}; |
|
5924 | 5930 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5925 | 5931 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5926 | 5932 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5927 | 5933 | if (result) { Py_DECREF(result); } |
|
5928 | 5934 | Py_DECREF(obj); |
|
5929 | 5935 | return; |
|
5930 | 5936 | } |
|
5931 | 5937 | } |
|
5932 | 5938 | elfInfoWdgt::closeEvent(arg__1); |
|
5933 | 5939 | } |
|
5934 | 5940 | void PythonQtShell_elfInfoWdgt::contextMenuEvent(QContextMenuEvent* arg__1) |
|
5935 | 5941 | { |
|
5936 | 5942 | if (_wrapper) { |
|
5937 | 5943 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); |
|
5938 | 5944 | PyErr_Clear(); |
|
5939 | 5945 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5940 | 5946 | static const char* argumentList[] ={"" , "QContextMenuEvent*"}; |
|
5941 | 5947 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5942 | 5948 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5943 | 5949 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5944 | 5950 | if (result) { Py_DECREF(result); } |
|
5945 | 5951 | Py_DECREF(obj); |
|
5946 | 5952 | return; |
|
5947 | 5953 | } |
|
5948 | 5954 | } |
|
5949 | 5955 | elfInfoWdgt::contextMenuEvent(arg__1); |
|
5950 | 5956 | } |
|
5951 | 5957 | void PythonQtShell_elfInfoWdgt::customEvent(QEvent* arg__1) |
|
5952 | 5958 | { |
|
5953 | 5959 | if (_wrapper) { |
|
5954 | 5960 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); |
|
5955 | 5961 | PyErr_Clear(); |
|
5956 | 5962 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5957 | 5963 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
5958 | 5964 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
5959 | 5965 | void* args[2] = {NULL, (void*)&arg__1}; |
|
5960 | 5966 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5961 | 5967 | if (result) { Py_DECREF(result); } |
|
5962 | 5968 | Py_DECREF(obj); |
|
5963 | 5969 | return; |
|
5964 | 5970 | } |
|
5965 | 5971 | } |
|
5966 | 5972 | elfInfoWdgt::customEvent(arg__1); |
|
5967 | 5973 | } |
|
5968 | 5974 | int PythonQtShell_elfInfoWdgt::devType() const |
|
5969 | 5975 | { |
|
5970 | 5976 | if (_wrapper) { |
|
5971 | 5977 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); |
|
5972 | 5978 | PyErr_Clear(); |
|
5973 | 5979 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
5974 | 5980 | static const char* argumentList[] ={"int"}; |
|
5975 | 5981 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
5976 | 5982 | int returnValue; |
|
5977 | 5983 | void* args[1] = {NULL}; |
|
5978 | 5984 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
5979 | 5985 | if (result) { |
|
5980 | 5986 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
5981 | 5987 | if (args[0]!=&returnValue) { |
|
5982 | 5988 | if (args[0]==NULL) { |
|
5983 | 5989 | PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); |
|
5984 | 5990 | } else { |
|
5985 | 5991 | returnValue = *((int*)args[0]); |
|
5986 | 5992 | } |
|
5987 | 5993 | } |
|
5988 | 5994 | } |
|
5989 | 5995 | if (result) { Py_DECREF(result); } |
|
5990 | 5996 | Py_DECREF(obj); |
|
5991 | 5997 | return returnValue; |
|
5992 | 5998 | } |
|
5993 | 5999 | } |
|
5994 | 6000 | return elfInfoWdgt::devType(); |
|
5995 | 6001 | } |
|
5996 | 6002 | void PythonQtShell_elfInfoWdgt::dragEnterEvent(QDragEnterEvent* arg__1) |
|
5997 | 6003 | { |
|
5998 | 6004 | if (_wrapper) { |
|
5999 | 6005 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); |
|
6000 | 6006 | PyErr_Clear(); |
|
6001 | 6007 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6002 | 6008 | static const char* argumentList[] ={"" , "QDragEnterEvent*"}; |
|
6003 | 6009 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6004 | 6010 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6005 | 6011 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6006 | 6012 | if (result) { Py_DECREF(result); } |
|
6007 | 6013 | Py_DECREF(obj); |
|
6008 | 6014 | return; |
|
6009 | 6015 | } |
|
6010 | 6016 | } |
|
6011 | 6017 | elfInfoWdgt::dragEnterEvent(arg__1); |
|
6012 | 6018 | } |
|
6013 | 6019 | void PythonQtShell_elfInfoWdgt::dragLeaveEvent(QDragLeaveEvent* arg__1) |
|
6014 | 6020 | { |
|
6015 | 6021 | if (_wrapper) { |
|
6016 | 6022 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); |
|
6017 | 6023 | PyErr_Clear(); |
|
6018 | 6024 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6019 | 6025 | static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; |
|
6020 | 6026 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6021 | 6027 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6022 | 6028 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6023 | 6029 | if (result) { Py_DECREF(result); } |
|
6024 | 6030 | Py_DECREF(obj); |
|
6025 | 6031 | return; |
|
6026 | 6032 | } |
|
6027 | 6033 | } |
|
6028 | 6034 | elfInfoWdgt::dragLeaveEvent(arg__1); |
|
6029 | 6035 | } |
|
6030 | 6036 | void PythonQtShell_elfInfoWdgt::dragMoveEvent(QDragMoveEvent* arg__1) |
|
6031 | 6037 | { |
|
6032 | 6038 | if (_wrapper) { |
|
6033 | 6039 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); |
|
6034 | 6040 | PyErr_Clear(); |
|
6035 | 6041 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6036 | 6042 | static const char* argumentList[] ={"" , "QDragMoveEvent*"}; |
|
6037 | 6043 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6038 | 6044 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6039 | 6045 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6040 | 6046 | if (result) { Py_DECREF(result); } |
|
6041 | 6047 | Py_DECREF(obj); |
|
6042 | 6048 | return; |
|
6043 | 6049 | } |
|
6044 | 6050 | } |
|
6045 | 6051 | elfInfoWdgt::dragMoveEvent(arg__1); |
|
6046 | 6052 | } |
|
6047 | 6053 | void PythonQtShell_elfInfoWdgt::dropEvent(QDropEvent* arg__1) |
|
6048 | 6054 | { |
|
6049 | 6055 | if (_wrapper) { |
|
6050 | 6056 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); |
|
6051 | 6057 | PyErr_Clear(); |
|
6052 | 6058 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6053 | 6059 | static const char* argumentList[] ={"" , "QDropEvent*"}; |
|
6054 | 6060 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6055 | 6061 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6056 | 6062 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6057 | 6063 | if (result) { Py_DECREF(result); } |
|
6058 | 6064 | Py_DECREF(obj); |
|
6059 | 6065 | return; |
|
6060 | 6066 | } |
|
6061 | 6067 | } |
|
6062 | 6068 | elfInfoWdgt::dropEvent(arg__1); |
|
6063 | 6069 | } |
|
6064 | 6070 | void PythonQtShell_elfInfoWdgt::enterEvent(QEvent* arg__1) |
|
6065 | 6071 | { |
|
6066 | 6072 | if (_wrapper) { |
|
6067 | 6073 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); |
|
6068 | 6074 | PyErr_Clear(); |
|
6069 | 6075 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6070 | 6076 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
6071 | 6077 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6072 | 6078 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6073 | 6079 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6074 | 6080 | if (result) { Py_DECREF(result); } |
|
6075 | 6081 | Py_DECREF(obj); |
|
6076 | 6082 | return; |
|
6077 | 6083 | } |
|
6078 | 6084 | } |
|
6079 | 6085 | elfInfoWdgt::enterEvent(arg__1); |
|
6080 | 6086 | } |
|
6081 | 6087 | bool PythonQtShell_elfInfoWdgt::event(QEvent* arg__1) |
|
6082 | 6088 | { |
|
6083 | 6089 | if (_wrapper) { |
|
6084 | 6090 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); |
|
6085 | 6091 | PyErr_Clear(); |
|
6086 | 6092 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6087 | 6093 | static const char* argumentList[] ={"bool" , "QEvent*"}; |
|
6088 | 6094 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6089 | 6095 | bool returnValue; |
|
6090 | 6096 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6091 | 6097 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6092 | 6098 | if (result) { |
|
6093 | 6099 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6094 | 6100 | if (args[0]!=&returnValue) { |
|
6095 | 6101 | if (args[0]==NULL) { |
|
6096 | 6102 | PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); |
|
6097 | 6103 | } else { |
|
6098 | 6104 | returnValue = *((bool*)args[0]); |
|
6099 | 6105 | } |
|
6100 | 6106 | } |
|
6101 | 6107 | } |
|
6102 | 6108 | if (result) { Py_DECREF(result); } |
|
6103 | 6109 | Py_DECREF(obj); |
|
6104 | 6110 | return returnValue; |
|
6105 | 6111 | } |
|
6106 | 6112 | } |
|
6107 | 6113 | return elfInfoWdgt::event(arg__1); |
|
6108 | 6114 | } |
|
6109 | 6115 | bool PythonQtShell_elfInfoWdgt::eventFilter(QObject* arg__1, QEvent* arg__2) |
|
6110 | 6116 | { |
|
6111 | 6117 | if (_wrapper) { |
|
6112 | 6118 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); |
|
6113 | 6119 | PyErr_Clear(); |
|
6114 | 6120 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6115 | 6121 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; |
|
6116 | 6122 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); |
|
6117 | 6123 | bool returnValue; |
|
6118 | 6124 | void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; |
|
6119 | 6125 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6120 | 6126 | if (result) { |
|
6121 | 6127 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6122 | 6128 | if (args[0]!=&returnValue) { |
|
6123 | 6129 | if (args[0]==NULL) { |
|
6124 | 6130 | PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); |
|
6125 | 6131 | } else { |
|
6126 | 6132 | returnValue = *((bool*)args[0]); |
|
6127 | 6133 | } |
|
6128 | 6134 | } |
|
6129 | 6135 | } |
|
6130 | 6136 | if (result) { Py_DECREF(result); } |
|
6131 | 6137 | Py_DECREF(obj); |
|
6132 | 6138 | return returnValue; |
|
6133 | 6139 | } |
|
6134 | 6140 | } |
|
6135 | 6141 | return elfInfoWdgt::eventFilter(arg__1, arg__2); |
|
6136 | 6142 | } |
|
6137 | 6143 | void PythonQtShell_elfInfoWdgt::focusInEvent(QFocusEvent* arg__1) |
|
6138 | 6144 | { |
|
6139 | 6145 | if (_wrapper) { |
|
6140 | 6146 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); |
|
6141 | 6147 | PyErr_Clear(); |
|
6142 | 6148 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6143 | 6149 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
6144 | 6150 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6145 | 6151 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6146 | 6152 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6147 | 6153 | if (result) { Py_DECREF(result); } |
|
6148 | 6154 | Py_DECREF(obj); |
|
6149 | 6155 | return; |
|
6150 | 6156 | } |
|
6151 | 6157 | } |
|
6152 | 6158 | elfInfoWdgt::focusInEvent(arg__1); |
|
6153 | 6159 | } |
|
6154 | 6160 | bool PythonQtShell_elfInfoWdgt::focusNextPrevChild(bool next) |
|
6155 | 6161 | { |
|
6156 | 6162 | if (_wrapper) { |
|
6157 | 6163 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); |
|
6158 | 6164 | PyErr_Clear(); |
|
6159 | 6165 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6160 | 6166 | static const char* argumentList[] ={"bool" , "bool"}; |
|
6161 | 6167 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6162 | 6168 | bool returnValue; |
|
6163 | 6169 | void* args[2] = {NULL, (void*)&next}; |
|
6164 | 6170 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6165 | 6171 | if (result) { |
|
6166 | 6172 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6167 | 6173 | if (args[0]!=&returnValue) { |
|
6168 | 6174 | if (args[0]==NULL) { |
|
6169 | 6175 | PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); |
|
6170 | 6176 | } else { |
|
6171 | 6177 | returnValue = *((bool*)args[0]); |
|
6172 | 6178 | } |
|
6173 | 6179 | } |
|
6174 | 6180 | } |
|
6175 | 6181 | if (result) { Py_DECREF(result); } |
|
6176 | 6182 | Py_DECREF(obj); |
|
6177 | 6183 | return returnValue; |
|
6178 | 6184 | } |
|
6179 | 6185 | } |
|
6180 | 6186 | return elfInfoWdgt::focusNextPrevChild(next); |
|
6181 | 6187 | } |
|
6182 | 6188 | void PythonQtShell_elfInfoWdgt::focusOutEvent(QFocusEvent* arg__1) |
|
6183 | 6189 | { |
|
6184 | 6190 | if (_wrapper) { |
|
6185 | 6191 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); |
|
6186 | 6192 | PyErr_Clear(); |
|
6187 | 6193 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6188 | 6194 | static const char* argumentList[] ={"" , "QFocusEvent*"}; |
|
6189 | 6195 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6190 | 6196 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6191 | 6197 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6192 | 6198 | if (result) { Py_DECREF(result); } |
|
6193 | 6199 | Py_DECREF(obj); |
|
6194 | 6200 | return; |
|
6195 | 6201 | } |
|
6196 | 6202 | } |
|
6197 | 6203 | elfInfoWdgt::focusOutEvent(arg__1); |
|
6198 | 6204 | } |
|
6199 | 6205 | bool PythonQtShell_elfInfoWdgt::hasHeightForWidth() const |
|
6200 | 6206 | { |
|
6201 | 6207 | if (_wrapper) { |
|
6202 | 6208 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); |
|
6203 | 6209 | PyErr_Clear(); |
|
6204 | 6210 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6205 | 6211 | static const char* argumentList[] ={"bool"}; |
|
6206 | 6212 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
6207 | 6213 | bool returnValue; |
|
6208 | 6214 | void* args[1] = {NULL}; |
|
6209 | 6215 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6210 | 6216 | if (result) { |
|
6211 | 6217 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6212 | 6218 | if (args[0]!=&returnValue) { |
|
6213 | 6219 | if (args[0]==NULL) { |
|
6214 | 6220 | PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); |
|
6215 | 6221 | } else { |
|
6216 | 6222 | returnValue = *((bool*)args[0]); |
|
6217 | 6223 | } |
|
6218 | 6224 | } |
|
6219 | 6225 | } |
|
6220 | 6226 | if (result) { Py_DECREF(result); } |
|
6221 | 6227 | Py_DECREF(obj); |
|
6222 | 6228 | return returnValue; |
|
6223 | 6229 | } |
|
6224 | 6230 | } |
|
6225 | 6231 | return elfInfoWdgt::hasHeightForWidth(); |
|
6226 | 6232 | } |
|
6227 | 6233 | int PythonQtShell_elfInfoWdgt::heightForWidth(int arg__1) const |
|
6228 | 6234 | { |
|
6229 | 6235 | if (_wrapper) { |
|
6230 | 6236 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); |
|
6231 | 6237 | PyErr_Clear(); |
|
6232 | 6238 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6233 | 6239 | static const char* argumentList[] ={"int" , "int"}; |
|
6234 | 6240 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6235 | 6241 | int returnValue; |
|
6236 | 6242 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6237 | 6243 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6238 | 6244 | if (result) { |
|
6239 | 6245 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6240 | 6246 | if (args[0]!=&returnValue) { |
|
6241 | 6247 | if (args[0]==NULL) { |
|
6242 | 6248 | PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); |
|
6243 | 6249 | } else { |
|
6244 | 6250 | returnValue = *((int*)args[0]); |
|
6245 | 6251 | } |
|
6246 | 6252 | } |
|
6247 | 6253 | } |
|
6248 | 6254 | if (result) { Py_DECREF(result); } |
|
6249 | 6255 | Py_DECREF(obj); |
|
6250 | 6256 | return returnValue; |
|
6251 | 6257 | } |
|
6252 | 6258 | } |
|
6253 | 6259 | return elfInfoWdgt::heightForWidth(arg__1); |
|
6254 | 6260 | } |
|
6255 | 6261 | void PythonQtShell_elfInfoWdgt::hideEvent(QHideEvent* arg__1) |
|
6256 | 6262 | { |
|
6257 | 6263 | if (_wrapper) { |
|
6258 | 6264 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); |
|
6259 | 6265 | PyErr_Clear(); |
|
6260 | 6266 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6261 | 6267 | static const char* argumentList[] ={"" , "QHideEvent*"}; |
|
6262 | 6268 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6263 | 6269 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6264 | 6270 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6265 | 6271 | if (result) { Py_DECREF(result); } |
|
6266 | 6272 | Py_DECREF(obj); |
|
6267 | 6273 | return; |
|
6268 | 6274 | } |
|
6269 | 6275 | } |
|
6270 | 6276 | elfInfoWdgt::hideEvent(arg__1); |
|
6271 | 6277 | } |
|
6272 | 6278 | void PythonQtShell_elfInfoWdgt::initPainter(QPainter* painter) const |
|
6273 | 6279 | { |
|
6274 | 6280 | if (_wrapper) { |
|
6275 | 6281 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); |
|
6276 | 6282 | PyErr_Clear(); |
|
6277 | 6283 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6278 | 6284 | static const char* argumentList[] ={"" , "QPainter*"}; |
|
6279 | 6285 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6280 | 6286 | void* args[2] = {NULL, (void*)&painter}; |
|
6281 | 6287 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6282 | 6288 | if (result) { Py_DECREF(result); } |
|
6283 | 6289 | Py_DECREF(obj); |
|
6284 | 6290 | return; |
|
6285 | 6291 | } |
|
6286 | 6292 | } |
|
6287 | 6293 | elfInfoWdgt::initPainter(painter); |
|
6288 | 6294 | } |
|
6289 | 6295 | void PythonQtShell_elfInfoWdgt::inputMethodEvent(QInputMethodEvent* arg__1) |
|
6290 | 6296 | { |
|
6291 | 6297 | if (_wrapper) { |
|
6292 | 6298 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); |
|
6293 | 6299 | PyErr_Clear(); |
|
6294 | 6300 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6295 | 6301 | static const char* argumentList[] ={"" , "QInputMethodEvent*"}; |
|
6296 | 6302 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6297 | 6303 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6298 | 6304 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6299 | 6305 | if (result) { Py_DECREF(result); } |
|
6300 | 6306 | Py_DECREF(obj); |
|
6301 | 6307 | return; |
|
6302 | 6308 | } |
|
6303 | 6309 | } |
|
6304 | 6310 | elfInfoWdgt::inputMethodEvent(arg__1); |
|
6305 | 6311 | } |
|
6306 | 6312 | QVariant PythonQtShell_elfInfoWdgt::inputMethodQuery(Qt::InputMethodQuery arg__1) const |
|
6307 | 6313 | { |
|
6308 | 6314 | if (_wrapper) { |
|
6309 | 6315 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); |
|
6310 | 6316 | PyErr_Clear(); |
|
6311 | 6317 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6312 | 6318 | static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; |
|
6313 | 6319 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6314 | 6320 | QVariant returnValue; |
|
6315 | 6321 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6316 | 6322 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6317 | 6323 | if (result) { |
|
6318 | 6324 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6319 | 6325 | if (args[0]!=&returnValue) { |
|
6320 | 6326 | if (args[0]==NULL) { |
|
6321 | 6327 | PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); |
|
6322 | 6328 | } else { |
|
6323 | 6329 | returnValue = *((QVariant*)args[0]); |
|
6324 | 6330 | } |
|
6325 | 6331 | } |
|
6326 | 6332 | } |
|
6327 | 6333 | if (result) { Py_DECREF(result); } |
|
6328 | 6334 | Py_DECREF(obj); |
|
6329 | 6335 | return returnValue; |
|
6330 | 6336 | } |
|
6331 | 6337 | } |
|
6332 | 6338 | return elfInfoWdgt::inputMethodQuery(arg__1); |
|
6333 | 6339 | } |
|
6334 | 6340 | void PythonQtShell_elfInfoWdgt::keyPressEvent(QKeyEvent* arg__1) |
|
6335 | 6341 | { |
|
6336 | 6342 | if (_wrapper) { |
|
6337 | 6343 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); |
|
6338 | 6344 | PyErr_Clear(); |
|
6339 | 6345 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6340 | 6346 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
6341 | 6347 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6342 | 6348 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6343 | 6349 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6344 | 6350 | if (result) { Py_DECREF(result); } |
|
6345 | 6351 | Py_DECREF(obj); |
|
6346 | 6352 | return; |
|
6347 | 6353 | } |
|
6348 | 6354 | } |
|
6349 | 6355 | elfInfoWdgt::keyPressEvent(arg__1); |
|
6350 | 6356 | } |
|
6351 | 6357 | void PythonQtShell_elfInfoWdgt::keyReleaseEvent(QKeyEvent* arg__1) |
|
6352 | 6358 | { |
|
6353 | 6359 | if (_wrapper) { |
|
6354 | 6360 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); |
|
6355 | 6361 | PyErr_Clear(); |
|
6356 | 6362 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6357 | 6363 | static const char* argumentList[] ={"" , "QKeyEvent*"}; |
|
6358 | 6364 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6359 | 6365 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6360 | 6366 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6361 | 6367 | if (result) { Py_DECREF(result); } |
|
6362 | 6368 | Py_DECREF(obj); |
|
6363 | 6369 | return; |
|
6364 | 6370 | } |
|
6365 | 6371 | } |
|
6366 | 6372 | elfInfoWdgt::keyReleaseEvent(arg__1); |
|
6367 | 6373 | } |
|
6368 | 6374 | void PythonQtShell_elfInfoWdgt::leaveEvent(QEvent* arg__1) |
|
6369 | 6375 | { |
|
6370 | 6376 | if (_wrapper) { |
|
6371 | 6377 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); |
|
6372 | 6378 | PyErr_Clear(); |
|
6373 | 6379 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6374 | 6380 | static const char* argumentList[] ={"" , "QEvent*"}; |
|
6375 | 6381 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6376 | 6382 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6377 | 6383 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6378 | 6384 | if (result) { Py_DECREF(result); } |
|
6379 | 6385 | Py_DECREF(obj); |
|
6380 | 6386 | return; |
|
6381 | 6387 | } |
|
6382 | 6388 | } |
|
6383 | 6389 | elfInfoWdgt::leaveEvent(arg__1); |
|
6384 | 6390 | } |
|
6385 | 6391 | int PythonQtShell_elfInfoWdgt::metric(QPaintDevice::PaintDeviceMetric arg__1) const |
|
6386 | 6392 | { |
|
6387 | 6393 | if (_wrapper) { |
|
6388 | 6394 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); |
|
6389 | 6395 | PyErr_Clear(); |
|
6390 | 6396 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6391 | 6397 | static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; |
|
6392 | 6398 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6393 | 6399 | int returnValue; |
|
6394 | 6400 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6395 | 6401 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6396 | 6402 | if (result) { |
|
6397 | 6403 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6398 | 6404 | if (args[0]!=&returnValue) { |
|
6399 | 6405 | if (args[0]==NULL) { |
|
6400 | 6406 | PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); |
|
6401 | 6407 | } else { |
|
6402 | 6408 | returnValue = *((int*)args[0]); |
|
6403 | 6409 | } |
|
6404 | 6410 | } |
|
6405 | 6411 | } |
|
6406 | 6412 | if (result) { Py_DECREF(result); } |
|
6407 | 6413 | Py_DECREF(obj); |
|
6408 | 6414 | return returnValue; |
|
6409 | 6415 | } |
|
6410 | 6416 | } |
|
6411 | 6417 | return elfInfoWdgt::metric(arg__1); |
|
6412 | 6418 | } |
|
6413 | 6419 | QSize PythonQtShell_elfInfoWdgt::minimumSizeHint() const |
|
6414 | 6420 | { |
|
6415 | 6421 | if (_wrapper) { |
|
6416 | 6422 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); |
|
6417 | 6423 | PyErr_Clear(); |
|
6418 | 6424 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6419 | 6425 | static const char* argumentList[] ={"QSize"}; |
|
6420 | 6426 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
6421 | 6427 | QSize returnValue; |
|
6422 | 6428 | void* args[1] = {NULL}; |
|
6423 | 6429 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6424 | 6430 | if (result) { |
|
6425 | 6431 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6426 | 6432 | if (args[0]!=&returnValue) { |
|
6427 | 6433 | if (args[0]==NULL) { |
|
6428 | 6434 | PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); |
|
6429 | 6435 | } else { |
|
6430 | 6436 | returnValue = *((QSize*)args[0]); |
|
6431 | 6437 | } |
|
6432 | 6438 | } |
|
6433 | 6439 | } |
|
6434 | 6440 | if (result) { Py_DECREF(result); } |
|
6435 | 6441 | Py_DECREF(obj); |
|
6436 | 6442 | return returnValue; |
|
6437 | 6443 | } |
|
6438 | 6444 | } |
|
6439 | 6445 | return elfInfoWdgt::minimumSizeHint(); |
|
6440 | 6446 | } |
|
6441 | 6447 | void PythonQtShell_elfInfoWdgt::mouseDoubleClickEvent(QMouseEvent* arg__1) |
|
6442 | 6448 | { |
|
6443 | 6449 | if (_wrapper) { |
|
6444 | 6450 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); |
|
6445 | 6451 | PyErr_Clear(); |
|
6446 | 6452 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6447 | 6453 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
6448 | 6454 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6449 | 6455 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6450 | 6456 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6451 | 6457 | if (result) { Py_DECREF(result); } |
|
6452 | 6458 | Py_DECREF(obj); |
|
6453 | 6459 | return; |
|
6454 | 6460 | } |
|
6455 | 6461 | } |
|
6456 | 6462 | elfInfoWdgt::mouseDoubleClickEvent(arg__1); |
|
6457 | 6463 | } |
|
6458 | 6464 | void PythonQtShell_elfInfoWdgt::mouseMoveEvent(QMouseEvent* arg__1) |
|
6459 | 6465 | { |
|
6460 | 6466 | if (_wrapper) { |
|
6461 | 6467 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); |
|
6462 | 6468 | PyErr_Clear(); |
|
6463 | 6469 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6464 | 6470 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
6465 | 6471 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6466 | 6472 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6467 | 6473 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6468 | 6474 | if (result) { Py_DECREF(result); } |
|
6469 | 6475 | Py_DECREF(obj); |
|
6470 | 6476 | return; |
|
6471 | 6477 | } |
|
6472 | 6478 | } |
|
6473 | 6479 | elfInfoWdgt::mouseMoveEvent(arg__1); |
|
6474 | 6480 | } |
|
6475 | 6481 | void PythonQtShell_elfInfoWdgt::mousePressEvent(QMouseEvent* arg__1) |
|
6476 | 6482 | { |
|
6477 | 6483 | if (_wrapper) { |
|
6478 | 6484 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); |
|
6479 | 6485 | PyErr_Clear(); |
|
6480 | 6486 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6481 | 6487 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
6482 | 6488 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6483 | 6489 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6484 | 6490 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6485 | 6491 | if (result) { Py_DECREF(result); } |
|
6486 | 6492 | Py_DECREF(obj); |
|
6487 | 6493 | return; |
|
6488 | 6494 | } |
|
6489 | 6495 | } |
|
6490 | 6496 | elfInfoWdgt::mousePressEvent(arg__1); |
|
6491 | 6497 | } |
|
6492 | 6498 | void PythonQtShell_elfInfoWdgt::mouseReleaseEvent(QMouseEvent* arg__1) |
|
6493 | 6499 | { |
|
6494 | 6500 | if (_wrapper) { |
|
6495 | 6501 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); |
|
6496 | 6502 | PyErr_Clear(); |
|
6497 | 6503 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6498 | 6504 | static const char* argumentList[] ={"" , "QMouseEvent*"}; |
|
6499 | 6505 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6500 | 6506 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6501 | 6507 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6502 | 6508 | if (result) { Py_DECREF(result); } |
|
6503 | 6509 | Py_DECREF(obj); |
|
6504 | 6510 | return; |
|
6505 | 6511 | } |
|
6506 | 6512 | } |
|
6507 | 6513 | elfInfoWdgt::mouseReleaseEvent(arg__1); |
|
6508 | 6514 | } |
|
6509 | 6515 | void PythonQtShell_elfInfoWdgt::moveEvent(QMoveEvent* arg__1) |
|
6510 | 6516 | { |
|
6511 | 6517 | if (_wrapper) { |
|
6512 | 6518 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); |
|
6513 | 6519 | PyErr_Clear(); |
|
6514 | 6520 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6515 | 6521 | static const char* argumentList[] ={"" , "QMoveEvent*"}; |
|
6516 | 6522 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6517 | 6523 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6518 | 6524 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6519 | 6525 | if (result) { Py_DECREF(result); } |
|
6520 | 6526 | Py_DECREF(obj); |
|
6521 | 6527 | return; |
|
6522 | 6528 | } |
|
6523 | 6529 | } |
|
6524 | 6530 | elfInfoWdgt::moveEvent(arg__1); |
|
6525 | 6531 | } |
|
6526 | 6532 | bool PythonQtShell_elfInfoWdgt::nativeEvent(const QByteArray& eventType, void* message, long* result) |
|
6527 | 6533 | { |
|
6528 | 6534 | if (_wrapper) { |
|
6529 | 6535 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); |
|
6530 | 6536 | PyErr_Clear(); |
|
6531 | 6537 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6532 | 6538 | static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; |
|
6533 | 6539 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); |
|
6534 | 6540 | bool returnValue; |
|
6535 | 6541 | void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; |
|
6536 | 6542 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6537 | 6543 | if (result) { |
|
6538 | 6544 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6539 | 6545 | if (args[0]!=&returnValue) { |
|
6540 | 6546 | if (args[0]==NULL) { |
|
6541 | 6547 | PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); |
|
6542 | 6548 | } else { |
|
6543 | 6549 | returnValue = *((bool*)args[0]); |
|
6544 | 6550 | } |
|
6545 | 6551 | } |
|
6546 | 6552 | } |
|
6547 | 6553 | if (result) { Py_DECREF(result); } |
|
6548 | 6554 | Py_DECREF(obj); |
|
6549 | 6555 | return returnValue; |
|
6550 | 6556 | } |
|
6551 | 6557 | } |
|
6552 | 6558 | return elfInfoWdgt::nativeEvent(eventType, message, result); |
|
6553 | 6559 | } |
|
6554 | 6560 | QPaintEngine* PythonQtShell_elfInfoWdgt::paintEngine() const |
|
6555 | 6561 | { |
|
6556 | 6562 | if (_wrapper) { |
|
6557 | 6563 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); |
|
6558 | 6564 | PyErr_Clear(); |
|
6559 | 6565 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6560 | 6566 | static const char* argumentList[] ={"QPaintEngine*"}; |
|
6561 | 6567 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
6562 | 6568 | QPaintEngine* returnValue; |
|
6563 | 6569 | void* args[1] = {NULL}; |
|
6564 | 6570 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6565 | 6571 | if (result) { |
|
6566 | 6572 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6567 | 6573 | if (args[0]!=&returnValue) { |
|
6568 | 6574 | if (args[0]==NULL) { |
|
6569 | 6575 | PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); |
|
6570 | 6576 | } else { |
|
6571 | 6577 | returnValue = *((QPaintEngine**)args[0]); |
|
6572 | 6578 | } |
|
6573 | 6579 | } |
|
6574 | 6580 | } |
|
6575 | 6581 | if (result) { Py_DECREF(result); } |
|
6576 | 6582 | Py_DECREF(obj); |
|
6577 | 6583 | return returnValue; |
|
6578 | 6584 | } |
|
6579 | 6585 | } |
|
6580 | 6586 | return elfInfoWdgt::paintEngine(); |
|
6581 | 6587 | } |
|
6582 | 6588 | void PythonQtShell_elfInfoWdgt::paintEvent(QPaintEvent* arg__1) |
|
6583 | 6589 | { |
|
6584 | 6590 | if (_wrapper) { |
|
6585 | 6591 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); |
|
6586 | 6592 | PyErr_Clear(); |
|
6587 | 6593 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6588 | 6594 | static const char* argumentList[] ={"" , "QPaintEvent*"}; |
|
6589 | 6595 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6590 | 6596 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6591 | 6597 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6592 | 6598 | if (result) { Py_DECREF(result); } |
|
6593 | 6599 | Py_DECREF(obj); |
|
6594 | 6600 | return; |
|
6595 | 6601 | } |
|
6596 | 6602 | } |
|
6597 | 6603 | elfInfoWdgt::paintEvent(arg__1); |
|
6598 | 6604 | } |
|
6599 | 6605 | QPaintDevice* PythonQtShell_elfInfoWdgt::redirected(QPoint* offset) const |
|
6600 | 6606 | { |
|
6601 | 6607 | if (_wrapper) { |
|
6602 | 6608 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); |
|
6603 | 6609 | PyErr_Clear(); |
|
6604 | 6610 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6605 | 6611 | static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; |
|
6606 | 6612 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6607 | 6613 | QPaintDevice* returnValue; |
|
6608 | 6614 | void* args[2] = {NULL, (void*)&offset}; |
|
6609 | 6615 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6610 | 6616 | if (result) { |
|
6611 | 6617 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6612 | 6618 | if (args[0]!=&returnValue) { |
|
6613 | 6619 | if (args[0]==NULL) { |
|
6614 | 6620 | PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); |
|
6615 | 6621 | } else { |
|
6616 | 6622 | returnValue = *((QPaintDevice**)args[0]); |
|
6617 | 6623 | } |
|
6618 | 6624 | } |
|
6619 | 6625 | } |
|
6620 | 6626 | if (result) { Py_DECREF(result); } |
|
6621 | 6627 | Py_DECREF(obj); |
|
6622 | 6628 | return returnValue; |
|
6623 | 6629 | } |
|
6624 | 6630 | } |
|
6625 | 6631 | return elfInfoWdgt::redirected(offset); |
|
6626 | 6632 | } |
|
6627 | 6633 | void PythonQtShell_elfInfoWdgt::resizeEvent(QResizeEvent* arg__1) |
|
6628 | 6634 | { |
|
6629 | 6635 | if (_wrapper) { |
|
6630 | 6636 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); |
|
6631 | 6637 | PyErr_Clear(); |
|
6632 | 6638 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6633 | 6639 | static const char* argumentList[] ={"" , "QResizeEvent*"}; |
|
6634 | 6640 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6635 | 6641 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6636 | 6642 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6637 | 6643 | if (result) { Py_DECREF(result); } |
|
6638 | 6644 | Py_DECREF(obj); |
|
6639 | 6645 | return; |
|
6640 | 6646 | } |
|
6641 | 6647 | } |
|
6642 | 6648 | elfInfoWdgt::resizeEvent(arg__1); |
|
6643 | 6649 | } |
|
6644 | 6650 | QPainter* PythonQtShell_elfInfoWdgt::sharedPainter() const |
|
6645 | 6651 | { |
|
6646 | 6652 | if (_wrapper) { |
|
6647 | 6653 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); |
|
6648 | 6654 | PyErr_Clear(); |
|
6649 | 6655 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6650 | 6656 | static const char* argumentList[] ={"QPainter*"}; |
|
6651 | 6657 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
6652 | 6658 | QPainter* returnValue; |
|
6653 | 6659 | void* args[1] = {NULL}; |
|
6654 | 6660 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6655 | 6661 | if (result) { |
|
6656 | 6662 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6657 | 6663 | if (args[0]!=&returnValue) { |
|
6658 | 6664 | if (args[0]==NULL) { |
|
6659 | 6665 | PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); |
|
6660 | 6666 | } else { |
|
6661 | 6667 | returnValue = *((QPainter**)args[0]); |
|
6662 | 6668 | } |
|
6663 | 6669 | } |
|
6664 | 6670 | } |
|
6665 | 6671 | if (result) { Py_DECREF(result); } |
|
6666 | 6672 | Py_DECREF(obj); |
|
6667 | 6673 | return returnValue; |
|
6668 | 6674 | } |
|
6669 | 6675 | } |
|
6670 | 6676 | return elfInfoWdgt::sharedPainter(); |
|
6671 | 6677 | } |
|
6672 | 6678 | void PythonQtShell_elfInfoWdgt::showEvent(QShowEvent* arg__1) |
|
6673 | 6679 | { |
|
6674 | 6680 | if (_wrapper) { |
|
6675 | 6681 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); |
|
6676 | 6682 | PyErr_Clear(); |
|
6677 | 6683 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6678 | 6684 | static const char* argumentList[] ={"" , "QShowEvent*"}; |
|
6679 | 6685 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6680 | 6686 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6681 | 6687 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6682 | 6688 | if (result) { Py_DECREF(result); } |
|
6683 | 6689 | Py_DECREF(obj); |
|
6684 | 6690 | return; |
|
6685 | 6691 | } |
|
6686 | 6692 | } |
|
6687 | 6693 | elfInfoWdgt::showEvent(arg__1); |
|
6688 | 6694 | } |
|
6689 | 6695 | QSize PythonQtShell_elfInfoWdgt::sizeHint() const |
|
6690 | 6696 | { |
|
6691 | 6697 | if (_wrapper) { |
|
6692 | 6698 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); |
|
6693 | 6699 | PyErr_Clear(); |
|
6694 | 6700 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6695 | 6701 | static const char* argumentList[] ={"QSize"}; |
|
6696 | 6702 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
6697 | 6703 | QSize returnValue; |
|
6698 | 6704 | void* args[1] = {NULL}; |
|
6699 | 6705 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6700 | 6706 | if (result) { |
|
6701 | 6707 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6702 | 6708 | if (args[0]!=&returnValue) { |
|
6703 | 6709 | if (args[0]==NULL) { |
|
6704 | 6710 | PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); |
|
6705 | 6711 | } else { |
|
6706 | 6712 | returnValue = *((QSize*)args[0]); |
|
6707 | 6713 | } |
|
6708 | 6714 | } |
|
6709 | 6715 | } |
|
6710 | 6716 | if (result) { Py_DECREF(result); } |
|
6711 | 6717 | Py_DECREF(obj); |
|
6712 | 6718 | return returnValue; |
|
6713 | 6719 | } |
|
6714 | 6720 | } |
|
6715 | 6721 | return elfInfoWdgt::sizeHint(); |
|
6716 | 6722 | } |
|
6717 | 6723 | void PythonQtShell_elfInfoWdgt::tabletEvent(QTabletEvent* arg__1) |
|
6718 | 6724 | { |
|
6719 | 6725 | if (_wrapper) { |
|
6720 | 6726 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); |
|
6721 | 6727 | PyErr_Clear(); |
|
6722 | 6728 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6723 | 6729 | static const char* argumentList[] ={"" , "QTabletEvent*"}; |
|
6724 | 6730 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6725 | 6731 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6726 | 6732 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6727 | 6733 | if (result) { Py_DECREF(result); } |
|
6728 | 6734 | Py_DECREF(obj); |
|
6729 | 6735 | return; |
|
6730 | 6736 | } |
|
6731 | 6737 | } |
|
6732 | 6738 | elfInfoWdgt::tabletEvent(arg__1); |
|
6733 | 6739 | } |
|
6734 | 6740 | void PythonQtShell_elfInfoWdgt::timerEvent(QTimerEvent* arg__1) |
|
6735 | 6741 | { |
|
6736 | 6742 | if (_wrapper) { |
|
6737 | 6743 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); |
|
6738 | 6744 | PyErr_Clear(); |
|
6739 | 6745 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6740 | 6746 | static const char* argumentList[] ={"" , "QTimerEvent*"}; |
|
6741 | 6747 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6742 | 6748 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6743 | 6749 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6744 | 6750 | if (result) { Py_DECREF(result); } |
|
6745 | 6751 | Py_DECREF(obj); |
|
6746 | 6752 | return; |
|
6747 | 6753 | } |
|
6748 | 6754 | } |
|
6749 | 6755 | elfInfoWdgt::timerEvent(arg__1); |
|
6750 | 6756 | } |
|
6751 | 6757 | void PythonQtShell_elfInfoWdgt::wheelEvent(QWheelEvent* arg__1) |
|
6752 | 6758 | { |
|
6753 | 6759 | if (_wrapper) { |
|
6754 | 6760 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); |
|
6755 | 6761 | PyErr_Clear(); |
|
6756 | 6762 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6757 | 6763 | static const char* argumentList[] ={"" , "QWheelEvent*"}; |
|
6758 | 6764 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
6759 | 6765 | void* args[2] = {NULL, (void*)&arg__1}; |
|
6760 | 6766 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6761 | 6767 | if (result) { Py_DECREF(result); } |
|
6762 | 6768 | Py_DECREF(obj); |
|
6763 | 6769 | return; |
|
6764 | 6770 | } |
|
6765 | 6771 | } |
|
6766 | 6772 | elfInfoWdgt::wheelEvent(arg__1); |
|
6767 | 6773 | } |
|
6768 | 6774 | elfInfoWdgt* PythonQtWrapper_elfInfoWdgt::new_elfInfoWdgt(QWidget* parent) |
|
6769 | 6775 | { |
|
6770 | 6776 | return new PythonQtShell_elfInfoWdgt(parent); } |
|
6771 | 6777 | |
|
6772 | 6778 | |
|
6773 | 6779 | |
|
6774 | 6780 | elfparser* PythonQtWrapper_elfparser::new_elfparser() |
|
6775 | 6781 | { |
|
6776 | 6782 | return new elfparser(); } |
|
6777 | 6783 | |
|
6778 | 6784 | int PythonQtWrapper_elfparser::closeFile(elfparser* theWrappedObject) |
|
6779 | 6785 | { |
|
6780 | 6786 | return ( theWrappedObject->closeFile()); |
|
6781 | 6787 | } |
|
6782 | 6788 | |
|
6783 | 6789 | QString PythonQtWrapper_elfparser::getABI(elfparser* theWrappedObject) |
|
6784 | 6790 | { |
|
6785 | 6791 | return ( theWrappedObject->getABI()); |
|
6786 | 6792 | } |
|
6787 | 6793 | |
|
6788 | 6794 | QString PythonQtWrapper_elfparser::getArchitecture(elfparser* theWrappedObject) |
|
6789 | 6795 | { |
|
6790 | 6796 | return ( theWrappedObject->getArchitecture()); |
|
6791 | 6797 | } |
|
6792 | 6798 | |
|
6793 | 6799 | QString PythonQtWrapper_elfparser::getClass(elfparser* theWrappedObject) |
|
6794 | 6800 | { |
|
6795 | 6801 | return ( theWrappedObject->getClass()); |
|
6796 | 6802 | } |
|
6797 | 6803 | |
|
6798 | 6804 | QString PythonQtWrapper_elfparser::getEndianness(elfparser* theWrappedObject) |
|
6799 | 6805 | { |
|
6800 | 6806 | return ( theWrappedObject->getEndianness()); |
|
6801 | 6807 | } |
|
6802 | 6808 | |
|
6803 | 6809 | qint64 PythonQtWrapper_elfparser::getEntryPointAddress(elfparser* theWrappedObject) |
|
6804 | 6810 | { |
|
6805 | 6811 | return ( theWrappedObject->getEntryPointAddress()); |
|
6806 | 6812 | } |
|
6807 | 6813 | |
|
6808 | 6814 | bool PythonQtWrapper_elfparser::getSectionData(elfparser* theWrappedObject, int index, char** buffer) |
|
6809 | 6815 | { |
|
6810 | 6816 | return ( theWrappedObject->getSectionData(index, buffer)); |
|
6811 | 6817 | } |
|
6812 | 6818 | |
|
6813 | 6819 | qint64 PythonQtWrapper_elfparser::getSectionDatasz(elfparser* theWrappedObject, int index) |
|
6814 | 6820 | { |
|
6815 | 6821 | return ( theWrappedObject->getSectionDatasz(index)); |
|
6816 | 6822 | } |
|
6817 | 6823 | |
|
6818 | 6824 | qint64 PythonQtWrapper_elfparser::getSectionMemsz(elfparser* theWrappedObject, int index) |
|
6819 | 6825 | { |
|
6820 | 6826 | return ( theWrappedObject->getSectionMemsz(index)); |
|
6821 | 6827 | } |
|
6822 | 6828 | |
|
6823 | 6829 | QString PythonQtWrapper_elfparser::getSectionName(elfparser* theWrappedObject, int index) |
|
6824 | 6830 | { |
|
6825 | 6831 | return ( theWrappedObject->getSectionName(index)); |
|
6826 | 6832 | } |
|
6827 | 6833 | |
|
6828 | 6834 | qint64 PythonQtWrapper_elfparser::getSectionPaddr(elfparser* theWrappedObject, int index) |
|
6829 | 6835 | { |
|
6830 | 6836 | return ( theWrappedObject->getSectionPaddr(index)); |
|
6831 | 6837 | } |
|
6832 | 6838 | |
|
6833 | 6839 | QString PythonQtWrapper_elfparser::getSectionType(elfparser* theWrappedObject, int index) |
|
6834 | 6840 | { |
|
6835 | 6841 | return ( theWrappedObject->getSectionType(index)); |
|
6836 | 6842 | } |
|
6837 | 6843 | |
|
6838 | 6844 | int PythonQtWrapper_elfparser::getSectioncount(elfparser* theWrappedObject) |
|
6839 | 6845 | { |
|
6840 | 6846 | return ( theWrappedObject->getSectioncount()); |
|
6841 | 6847 | } |
|
6842 | 6848 | |
|
6843 | 6849 | qint64 PythonQtWrapper_elfparser::getSegmentFilesz(elfparser* theWrappedObject, int index) |
|
6844 | 6850 | { |
|
6845 | 6851 | return ( theWrappedObject->getSegmentFilesz(index)); |
|
6846 | 6852 | } |
|
6847 | 6853 | |
|
6848 | 6854 | QString PythonQtWrapper_elfparser::getSegmentFlags(elfparser* theWrappedObject, int index) |
|
6849 | 6855 | { |
|
6850 | 6856 | return ( theWrappedObject->getSegmentFlags(index)); |
|
6851 | 6857 | } |
|
6852 | 6858 | |
|
6853 | 6859 | qint64 PythonQtWrapper_elfparser::getSegmentMemsz(elfparser* theWrappedObject, int index) |
|
6854 | 6860 | { |
|
6855 | 6861 | return ( theWrappedObject->getSegmentMemsz(index)); |
|
6856 | 6862 | } |
|
6857 | 6863 | |
|
6858 | 6864 | qint64 PythonQtWrapper_elfparser::getSegmentOffset(elfparser* theWrappedObject, int index) |
|
6859 | 6865 | { |
|
6860 | 6866 | return ( theWrappedObject->getSegmentOffset(index)); |
|
6861 | 6867 | } |
|
6862 | 6868 | |
|
6863 | 6869 | qint64 PythonQtWrapper_elfparser::getSegmentPaddr(elfparser* theWrappedObject, int index) |
|
6864 | 6870 | { |
|
6865 | 6871 | return ( theWrappedObject->getSegmentPaddr(index)); |
|
6866 | 6872 | } |
|
6867 | 6873 | |
|
6868 | 6874 | QString PythonQtWrapper_elfparser::getSegmentType(elfparser* theWrappedObject, int index) |
|
6869 | 6875 | { |
|
6870 | 6876 | return ( theWrappedObject->getSegmentType(index)); |
|
6871 | 6877 | } |
|
6872 | 6878 | |
|
6873 | 6879 | qint64 PythonQtWrapper_elfparser::getSegmentVaddr(elfparser* theWrappedObject, int index) |
|
6874 | 6880 | { |
|
6875 | 6881 | return ( theWrappedObject->getSegmentVaddr(index)); |
|
6876 | 6882 | } |
|
6877 | 6883 | |
|
6878 | 6884 | int PythonQtWrapper_elfparser::getSegmentcount(elfparser* theWrappedObject) |
|
6879 | 6885 | { |
|
6880 | 6886 | return ( theWrappedObject->getSegmentcount()); |
|
6881 | 6887 | } |
|
6882 | 6888 | |
|
6883 | 6889 | QString PythonQtWrapper_elfparser::getType(elfparser* theWrappedObject) |
|
6884 | 6890 | { |
|
6885 | 6891 | return ( theWrappedObject->getType()); |
|
6886 | 6892 | } |
|
6887 | 6893 | |
|
6888 | 6894 | qint64 PythonQtWrapper_elfparser::getVersion(elfparser* theWrappedObject) |
|
6889 | 6895 | { |
|
6890 | 6896 | return ( theWrappedObject->getVersion()); |
|
6891 | 6897 | } |
|
6892 | 6898 | |
|
6893 | 6899 | bool PythonQtWrapper_elfparser::static_elfparser_isElf(const QString& File) |
|
6894 | 6900 | { |
|
6895 | 6901 | return (elfparser::isElf(File)); |
|
6896 | 6902 | } |
|
6897 | 6903 | |
|
6898 | 6904 | bool PythonQtWrapper_elfparser::iself(elfparser* theWrappedObject) |
|
6899 | 6905 | { |
|
6900 | 6906 | return ( theWrappedObject->iself()); |
|
6901 | 6907 | } |
|
6902 | 6908 | |
|
6903 | 6909 | bool PythonQtWrapper_elfparser::isopened(elfparser* theWrappedObject) |
|
6904 | 6910 | { |
|
6905 | 6911 | return ( theWrappedObject->isopened()); |
|
6906 | 6912 | } |
|
6907 | 6913 | |
|
6908 | 6914 | int PythonQtWrapper_elfparser::setFilename(elfparser* theWrappedObject, const QString& name) |
|
6909 | 6915 | { |
|
6910 | 6916 | return ( theWrappedObject->setFilename(name)); |
|
6911 | 6917 | } |
|
6912 | 6918 | |
|
6913 | 6919 | |
|
6914 | 6920 | |
|
6915 | 6921 | PythonQtShell_srecFile::~PythonQtShell_srecFile() { |
|
6916 | 6922 | PythonQtPrivate* priv = PythonQt::priv(); |
|
6917 | 6923 | if (priv) { priv->shellClassDeleted(this); } |
|
6918 | 6924 | } |
|
6919 | 6925 | int PythonQtShell_srecFile::closeFile() |
|
6920 | 6926 | { |
|
6921 | 6927 | if (_wrapper) { |
|
6922 | 6928 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile"); |
|
6923 | 6929 | PyErr_Clear(); |
|
6924 | 6930 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6925 | 6931 | static const char* argumentList[] ={"int"}; |
|
6926 | 6932 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
6927 | 6933 | int returnValue; |
|
6928 | 6934 | void* args[1] = {NULL}; |
|
6929 | 6935 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6930 | 6936 | if (result) { |
|
6931 | 6937 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6932 | 6938 | if (args[0]!=&returnValue) { |
|
6933 | 6939 | if (args[0]==NULL) { |
|
6934 | 6940 | PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result); |
|
6935 | 6941 | } else { |
|
6936 | 6942 | returnValue = *((int*)args[0]); |
|
6937 | 6943 | } |
|
6938 | 6944 | } |
|
6939 | 6945 | } |
|
6940 | 6946 | if (result) { Py_DECREF(result); } |
|
6941 | 6947 | Py_DECREF(obj); |
|
6942 | 6948 | return returnValue; |
|
6943 | 6949 | } |
|
6944 | 6950 | } |
|
6945 | 6951 | return srecFile::closeFile(); |
|
6946 | 6952 | } |
|
6947 | 6953 | QList<codeFragment* > PythonQtShell_srecFile::getFragments() |
|
6948 | 6954 | { |
|
6949 | 6955 | if (_wrapper) { |
|
6950 | 6956 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments"); |
|
6951 | 6957 | PyErr_Clear(); |
|
6952 | 6958 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6953 | 6959 | static const char* argumentList[] ={"QList<codeFragment* >"}; |
|
6954 | 6960 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
6955 | 6961 | QList<codeFragment* > returnValue; |
|
6956 | 6962 | void* args[1] = {NULL}; |
|
6957 | 6963 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6958 | 6964 | if (result) { |
|
6959 | 6965 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6960 | 6966 | if (args[0]!=&returnValue) { |
|
6961 | 6967 | if (args[0]==NULL) { |
|
6962 | 6968 | PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result); |
|
6963 | 6969 | } else { |
|
6964 | 6970 | returnValue = *((QList<codeFragment* >*)args[0]); |
|
6965 | 6971 | } |
|
6966 | 6972 | } |
|
6967 | 6973 | } |
|
6968 | 6974 | if (result) { Py_DECREF(result); } |
|
6969 | 6975 | Py_DECREF(obj); |
|
6970 | 6976 | return returnValue; |
|
6971 | 6977 | } |
|
6972 | 6978 | } |
|
6973 | 6979 | return srecFile::getFragments(); |
|
6974 | 6980 | } |
|
6975 | 6981 | bool PythonQtShell_srecFile::isopened() |
|
6976 | 6982 | { |
|
6977 | 6983 | if (_wrapper) { |
|
6978 | 6984 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened"); |
|
6979 | 6985 | PyErr_Clear(); |
|
6980 | 6986 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
6981 | 6987 | static const char* argumentList[] ={"bool"}; |
|
6982 | 6988 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); |
|
6983 | 6989 | bool returnValue; |
|
6984 | 6990 | void* args[1] = {NULL}; |
|
6985 | 6991 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
6986 | 6992 | if (result) { |
|
6987 | 6993 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
6988 | 6994 | if (args[0]!=&returnValue) { |
|
6989 | 6995 | if (args[0]==NULL) { |
|
6990 | 6996 | PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result); |
|
6991 | 6997 | } else { |
|
6992 | 6998 | returnValue = *((bool*)args[0]); |
|
6993 | 6999 | } |
|
6994 | 7000 | } |
|
6995 | 7001 | } |
|
6996 | 7002 | if (result) { Py_DECREF(result); } |
|
6997 | 7003 | Py_DECREF(obj); |
|
6998 | 7004 | return returnValue; |
|
6999 | 7005 | } |
|
7000 | 7006 | } |
|
7001 | 7007 | return srecFile::isopened(); |
|
7002 | 7008 | } |
|
7003 | 7009 | bool PythonQtShell_srecFile::openFile(const QString& File) |
|
7004 | 7010 | { |
|
7005 | 7011 | if (_wrapper) { |
|
7006 | 7012 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile"); |
|
7007 | 7013 | PyErr_Clear(); |
|
7008 | 7014 | if (obj && !PythonQtSlotFunction_Check(obj)) { |
|
7009 | 7015 | static const char* argumentList[] ={"bool" , "const QString&"}; |
|
7010 | 7016 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); |
|
7011 | 7017 | bool returnValue; |
|
7012 | 7018 | void* args[2] = {NULL, (void*)&File}; |
|
7013 | 7019 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); |
|
7014 | 7020 | if (result) { |
|
7015 | 7021 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); |
|
7016 | 7022 | if (args[0]!=&returnValue) { |
|
7017 | 7023 | if (args[0]==NULL) { |
|
7018 | 7024 | PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result); |
|
7019 | 7025 | } else { |
|
7020 | 7026 | returnValue = *((bool*)args[0]); |
|
7021 | 7027 | } |
|
7022 | 7028 | } |
|
7023 | 7029 | } |
|
7024 | 7030 | if (result) { Py_DECREF(result); } |
|
7025 | 7031 | Py_DECREF(obj); |
|
7026 | 7032 | return returnValue; |
|
7027 | 7033 | } |
|
7028 | 7034 | } |
|
7029 | 7035 | return srecFile::openFile(File); |
|
7030 | 7036 | } |
|
7031 | 7037 | srecFile* PythonQtWrapper_srecFile::new_srecFile() |
|
7032 | 7038 | { |
|
7033 | 7039 | return new PythonQtShell_srecFile(); } |
|
7034 | 7040 | |
|
7035 | 7041 | srecFile* PythonQtWrapper_srecFile::new_srecFile(const QString& File) |
|
7036 | 7042 | { |
|
7037 | 7043 | return new PythonQtShell_srecFile(File); } |
|
7038 | 7044 | |
|
7039 | 7045 | srecFile* PythonQtWrapper_srecFile::new_srecFile(const QStringList& Files) |
|
7040 | 7046 | { |
|
7041 | 7047 | return new PythonQtShell_srecFile(Files); } |
|
7042 | 7048 | |
|
7043 | 7049 | int PythonQtWrapper_srecFile::closeFile(srecFile* theWrappedObject) |
|
7044 | 7050 | { |
|
7045 | 7051 | return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_closeFile()); |
|
7046 | 7052 | } |
|
7047 | 7053 | |
|
7054 | int PythonQtWrapper_srecFile::getFragmentAddress(srecFile* theWrappedObject, int index) | |
|
7055 | { | |
|
7056 | return ( theWrappedObject->getFragmentAddress(index)); | |
|
7057 | } | |
|
7058 | ||
|
7059 | bool PythonQtWrapper_srecFile::getFragmentData(srecFile* theWrappedObject, int index, char** buffer) | |
|
7060 | { | |
|
7061 | return ( theWrappedObject->getFragmentData(index, buffer)); | |
|
7062 | } | |
|
7063 | ||
|
7064 | QString PythonQtWrapper_srecFile::getFragmentHeader(srecFile* theWrappedObject, int index) | |
|
7065 | { | |
|
7066 | return ( theWrappedObject->getFragmentHeader(index)); | |
|
7067 | } | |
|
7068 | ||
|
7069 | int PythonQtWrapper_srecFile::getFragmentSize(srecFile* theWrappedObject, int index) | |
|
7070 | { | |
|
7071 | return ( theWrappedObject->getFragmentSize(index)); | |
|
7072 | } | |
|
7073 | ||
|
7048 | 7074 | QList<codeFragment* > PythonQtWrapper_srecFile::getFragments(srecFile* theWrappedObject) |
|
7049 | 7075 | { |
|
7050 | 7076 | return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_getFragments()); |
|
7051 | 7077 | } |
|
7052 | 7078 | |
|
7079 | int PythonQtWrapper_srecFile::getFragmentsCount(srecFile* theWrappedObject) | |
|
7080 | { | |
|
7081 | return ( theWrappedObject->getFragmentsCount()); | |
|
7082 | } | |
|
7083 | ||
|
7084 | bool PythonQtWrapper_srecFile::isSREC(srecFile* theWrappedObject) | |
|
7085 | { | |
|
7086 | return ( theWrappedObject->isSREC()); | |
|
7087 | } | |
|
7088 | ||
|
7089 | bool PythonQtWrapper_srecFile::static_srecFile_isSREC(const QString& File) | |
|
7090 | { | |
|
7091 | return (srecFile::isSREC(File)); | |
|
7092 | } | |
|
7093 | ||
|
7053 | 7094 | bool PythonQtWrapper_srecFile::isopened(srecFile* theWrappedObject) |
|
7054 | 7095 | { |
|
7055 | 7096 | return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_isopened()); |
|
7056 | 7097 | } |
|
7057 | 7098 | |
|
7099 | int PythonQtWrapper_srecFile::lineCount(srecFile* theWrappedObject) | |
|
7100 | { | |
|
7101 | return ( theWrappedObject->lineCount()); | |
|
7102 | } | |
|
7103 | ||
|
7058 | 7104 | bool PythonQtWrapper_srecFile::openFile(srecFile* theWrappedObject, const QString& File) |
|
7059 | 7105 | { |
|
7060 | 7106 | return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_openFile(File)); |
|
7061 | 7107 | } |
|
7062 | 7108 | |
|
7063 | 7109 | bool PythonQtWrapper_srecFile::openFiles(srecFile* theWrappedObject, const QStringList& Files) |
|
7064 | 7110 | { |
|
7065 | 7111 | return ( theWrappedObject->openFiles(Files)); |
|
7066 | 7112 | } |
|
7067 | 7113 | |
|
7068 | ||
|
7114 | bool PythonQtWrapper_srecFile::static_srecFile_toSrec(QList<codeFragment* > fragments, const QString& File) | |
|
7115 | { | |
|
7116 | return (srecFile::toSrec(fragments, File)); | |
|
7117 | } | |
|
7118 | ||
|
7119 | ||
|
7120 | ||
|
7121 | PythonQtShell_srecFileWidget::~PythonQtShell_srecFileWidget() { | |
|
7122 | PythonQtPrivate* priv = PythonQt::priv(); | |
|
7123 | if (priv) { priv->shellClassDeleted(this); } | |
|
7124 | } | |
|
7125 | void PythonQtShell_srecFileWidget::actionEvent(QActionEvent* arg__1) | |
|
7126 | { | |
|
7127 | if (_wrapper) { | |
|
7128 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); | |
|
7129 | PyErr_Clear(); | |
|
7130 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7131 | static const char* argumentList[] ={"" , "QActionEvent*"}; | |
|
7132 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7133 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7134 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7135 | if (result) { Py_DECREF(result); } | |
|
7136 | Py_DECREF(obj); | |
|
7137 | return; | |
|
7138 | } | |
|
7139 | } | |
|
7140 | srecFileWidget::actionEvent(arg__1); | |
|
7141 | } | |
|
7142 | void PythonQtShell_srecFileWidget::changeEvent(QEvent* arg__1) | |
|
7143 | { | |
|
7144 | if (_wrapper) { | |
|
7145 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); | |
|
7146 | PyErr_Clear(); | |
|
7147 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7148 | static const char* argumentList[] ={"" , "QEvent*"}; | |
|
7149 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7150 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7151 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7152 | if (result) { Py_DECREF(result); } | |
|
7153 | Py_DECREF(obj); | |
|
7154 | return; | |
|
7155 | } | |
|
7156 | } | |
|
7157 | srecFileWidget::changeEvent(arg__1); | |
|
7158 | } | |
|
7159 | void PythonQtShell_srecFileWidget::childEvent(QChildEvent* arg__1) | |
|
7160 | { | |
|
7161 | if (_wrapper) { | |
|
7162 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); | |
|
7163 | PyErr_Clear(); | |
|
7164 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7165 | static const char* argumentList[] ={"" , "QChildEvent*"}; | |
|
7166 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7167 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7168 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7169 | if (result) { Py_DECREF(result); } | |
|
7170 | Py_DECREF(obj); | |
|
7171 | return; | |
|
7172 | } | |
|
7173 | } | |
|
7174 | srecFileWidget::childEvent(arg__1); | |
|
7175 | } | |
|
7176 | void PythonQtShell_srecFileWidget::closeEvent(QCloseEvent* arg__1) | |
|
7177 | { | |
|
7178 | if (_wrapper) { | |
|
7179 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); | |
|
7180 | PyErr_Clear(); | |
|
7181 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7182 | static const char* argumentList[] ={"" , "QCloseEvent*"}; | |
|
7183 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7184 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7185 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7186 | if (result) { Py_DECREF(result); } | |
|
7187 | Py_DECREF(obj); | |
|
7188 | return; | |
|
7189 | } | |
|
7190 | } | |
|
7191 | srecFileWidget::closeEvent(arg__1); | |
|
7192 | } | |
|
7193 | void PythonQtShell_srecFileWidget::contextMenuEvent(QContextMenuEvent* arg__1) | |
|
7194 | { | |
|
7195 | if (_wrapper) { | |
|
7196 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); | |
|
7197 | PyErr_Clear(); | |
|
7198 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7199 | static const char* argumentList[] ={"" , "QContextMenuEvent*"}; | |
|
7200 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7201 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7202 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7203 | if (result) { Py_DECREF(result); } | |
|
7204 | Py_DECREF(obj); | |
|
7205 | return; | |
|
7206 | } | |
|
7207 | } | |
|
7208 | srecFileWidget::contextMenuEvent(arg__1); | |
|
7209 | } | |
|
7210 | void PythonQtShell_srecFileWidget::customEvent(QEvent* arg__1) | |
|
7211 | { | |
|
7212 | if (_wrapper) { | |
|
7213 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); | |
|
7214 | PyErr_Clear(); | |
|
7215 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7216 | static const char* argumentList[] ={"" , "QEvent*"}; | |
|
7217 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7218 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7219 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7220 | if (result) { Py_DECREF(result); } | |
|
7221 | Py_DECREF(obj); | |
|
7222 | return; | |
|
7223 | } | |
|
7224 | } | |
|
7225 | srecFileWidget::customEvent(arg__1); | |
|
7226 | } | |
|
7227 | int PythonQtShell_srecFileWidget::devType() const | |
|
7228 | { | |
|
7229 | if (_wrapper) { | |
|
7230 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); | |
|
7231 | PyErr_Clear(); | |
|
7232 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7233 | static const char* argumentList[] ={"int"}; | |
|
7234 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | |
|
7235 | int returnValue; | |
|
7236 | void* args[1] = {NULL}; | |
|
7237 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7238 | if (result) { | |
|
7239 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7240 | if (args[0]!=&returnValue) { | |
|
7241 | if (args[0]==NULL) { | |
|
7242 | PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); | |
|
7243 | } else { | |
|
7244 | returnValue = *((int*)args[0]); | |
|
7245 | } | |
|
7246 | } | |
|
7247 | } | |
|
7248 | if (result) { Py_DECREF(result); } | |
|
7249 | Py_DECREF(obj); | |
|
7250 | return returnValue; | |
|
7251 | } | |
|
7252 | } | |
|
7253 | return srecFileWidget::devType(); | |
|
7254 | } | |
|
7255 | void PythonQtShell_srecFileWidget::dragEnterEvent(QDragEnterEvent* arg__1) | |
|
7256 | { | |
|
7257 | if (_wrapper) { | |
|
7258 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); | |
|
7259 | PyErr_Clear(); | |
|
7260 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7261 | static const char* argumentList[] ={"" , "QDragEnterEvent*"}; | |
|
7262 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7263 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7264 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7265 | if (result) { Py_DECREF(result); } | |
|
7266 | Py_DECREF(obj); | |
|
7267 | return; | |
|
7268 | } | |
|
7269 | } | |
|
7270 | srecFileWidget::dragEnterEvent(arg__1); | |
|
7271 | } | |
|
7272 | void PythonQtShell_srecFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) | |
|
7273 | { | |
|
7274 | if (_wrapper) { | |
|
7275 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); | |
|
7276 | PyErr_Clear(); | |
|
7277 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7278 | static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; | |
|
7279 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7280 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7281 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7282 | if (result) { Py_DECREF(result); } | |
|
7283 | Py_DECREF(obj); | |
|
7284 | return; | |
|
7285 | } | |
|
7286 | } | |
|
7287 | srecFileWidget::dragLeaveEvent(arg__1); | |
|
7288 | } | |
|
7289 | void PythonQtShell_srecFileWidget::dragMoveEvent(QDragMoveEvent* arg__1) | |
|
7290 | { | |
|
7291 | if (_wrapper) { | |
|
7292 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); | |
|
7293 | PyErr_Clear(); | |
|
7294 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7295 | static const char* argumentList[] ={"" , "QDragMoveEvent*"}; | |
|
7296 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7297 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7298 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7299 | if (result) { Py_DECREF(result); } | |
|
7300 | Py_DECREF(obj); | |
|
7301 | return; | |
|
7302 | } | |
|
7303 | } | |
|
7304 | srecFileWidget::dragMoveEvent(arg__1); | |
|
7305 | } | |
|
7306 | void PythonQtShell_srecFileWidget::dropEvent(QDropEvent* arg__1) | |
|
7307 | { | |
|
7308 | if (_wrapper) { | |
|
7309 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); | |
|
7310 | PyErr_Clear(); | |
|
7311 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7312 | static const char* argumentList[] ={"" , "QDropEvent*"}; | |
|
7313 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7314 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7315 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7316 | if (result) { Py_DECREF(result); } | |
|
7317 | Py_DECREF(obj); | |
|
7318 | return; | |
|
7319 | } | |
|
7320 | } | |
|
7321 | srecFileWidget::dropEvent(arg__1); | |
|
7322 | } | |
|
7323 | void PythonQtShell_srecFileWidget::enterEvent(QEvent* arg__1) | |
|
7324 | { | |
|
7325 | if (_wrapper) { | |
|
7326 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); | |
|
7327 | PyErr_Clear(); | |
|
7328 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7329 | static const char* argumentList[] ={"" , "QEvent*"}; | |
|
7330 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7331 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7332 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7333 | if (result) { Py_DECREF(result); } | |
|
7334 | Py_DECREF(obj); | |
|
7335 | return; | |
|
7336 | } | |
|
7337 | } | |
|
7338 | srecFileWidget::enterEvent(arg__1); | |
|
7339 | } | |
|
7340 | bool PythonQtShell_srecFileWidget::event(QEvent* arg__1) | |
|
7341 | { | |
|
7342 | if (_wrapper) { | |
|
7343 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); | |
|
7344 | PyErr_Clear(); | |
|
7345 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7346 | static const char* argumentList[] ={"bool" , "QEvent*"}; | |
|
7347 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7348 | bool returnValue; | |
|
7349 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7350 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7351 | if (result) { | |
|
7352 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7353 | if (args[0]!=&returnValue) { | |
|
7354 | if (args[0]==NULL) { | |
|
7355 | PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); | |
|
7356 | } else { | |
|
7357 | returnValue = *((bool*)args[0]); | |
|
7358 | } | |
|
7359 | } | |
|
7360 | } | |
|
7361 | if (result) { Py_DECREF(result); } | |
|
7362 | Py_DECREF(obj); | |
|
7363 | return returnValue; | |
|
7364 | } | |
|
7365 | } | |
|
7366 | return srecFileWidget::event(arg__1); | |
|
7367 | } | |
|
7368 | bool PythonQtShell_srecFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2) | |
|
7369 | { | |
|
7370 | if (_wrapper) { | |
|
7371 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); | |
|
7372 | PyErr_Clear(); | |
|
7373 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7374 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; | |
|
7375 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); | |
|
7376 | bool returnValue; | |
|
7377 | void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; | |
|
7378 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7379 | if (result) { | |
|
7380 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7381 | if (args[0]!=&returnValue) { | |
|
7382 | if (args[0]==NULL) { | |
|
7383 | PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); | |
|
7384 | } else { | |
|
7385 | returnValue = *((bool*)args[0]); | |
|
7386 | } | |
|
7387 | } | |
|
7388 | } | |
|
7389 | if (result) { Py_DECREF(result); } | |
|
7390 | Py_DECREF(obj); | |
|
7391 | return returnValue; | |
|
7392 | } | |
|
7393 | } | |
|
7394 | return srecFileWidget::eventFilter(arg__1, arg__2); | |
|
7395 | } | |
|
7396 | void PythonQtShell_srecFileWidget::focusInEvent(QFocusEvent* arg__1) | |
|
7397 | { | |
|
7398 | if (_wrapper) { | |
|
7399 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); | |
|
7400 | PyErr_Clear(); | |
|
7401 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7402 | static const char* argumentList[] ={"" , "QFocusEvent*"}; | |
|
7403 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7404 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7405 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7406 | if (result) { Py_DECREF(result); } | |
|
7407 | Py_DECREF(obj); | |
|
7408 | return; | |
|
7409 | } | |
|
7410 | } | |
|
7411 | srecFileWidget::focusInEvent(arg__1); | |
|
7412 | } | |
|
7413 | bool PythonQtShell_srecFileWidget::focusNextPrevChild(bool next) | |
|
7414 | { | |
|
7415 | if (_wrapper) { | |
|
7416 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); | |
|
7417 | PyErr_Clear(); | |
|
7418 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7419 | static const char* argumentList[] ={"bool" , "bool"}; | |
|
7420 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7421 | bool returnValue; | |
|
7422 | void* args[2] = {NULL, (void*)&next}; | |
|
7423 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7424 | if (result) { | |
|
7425 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7426 | if (args[0]!=&returnValue) { | |
|
7427 | if (args[0]==NULL) { | |
|
7428 | PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); | |
|
7429 | } else { | |
|
7430 | returnValue = *((bool*)args[0]); | |
|
7431 | } | |
|
7432 | } | |
|
7433 | } | |
|
7434 | if (result) { Py_DECREF(result); } | |
|
7435 | Py_DECREF(obj); | |
|
7436 | return returnValue; | |
|
7437 | } | |
|
7438 | } | |
|
7439 | return srecFileWidget::focusNextPrevChild(next); | |
|
7440 | } | |
|
7441 | void PythonQtShell_srecFileWidget::focusOutEvent(QFocusEvent* arg__1) | |
|
7442 | { | |
|
7443 | if (_wrapper) { | |
|
7444 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); | |
|
7445 | PyErr_Clear(); | |
|
7446 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7447 | static const char* argumentList[] ={"" , "QFocusEvent*"}; | |
|
7448 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7449 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7450 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7451 | if (result) { Py_DECREF(result); } | |
|
7452 | Py_DECREF(obj); | |
|
7453 | return; | |
|
7454 | } | |
|
7455 | } | |
|
7456 | srecFileWidget::focusOutEvent(arg__1); | |
|
7457 | } | |
|
7458 | bool PythonQtShell_srecFileWidget::hasHeightForWidth() const | |
|
7459 | { | |
|
7460 | if (_wrapper) { | |
|
7461 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); | |
|
7462 | PyErr_Clear(); | |
|
7463 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7464 | static const char* argumentList[] ={"bool"}; | |
|
7465 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | |
|
7466 | bool returnValue; | |
|
7467 | void* args[1] = {NULL}; | |
|
7468 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7469 | if (result) { | |
|
7470 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7471 | if (args[0]!=&returnValue) { | |
|
7472 | if (args[0]==NULL) { | |
|
7473 | PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); | |
|
7474 | } else { | |
|
7475 | returnValue = *((bool*)args[0]); | |
|
7476 | } | |
|
7477 | } | |
|
7478 | } | |
|
7479 | if (result) { Py_DECREF(result); } | |
|
7480 | Py_DECREF(obj); | |
|
7481 | return returnValue; | |
|
7482 | } | |
|
7483 | } | |
|
7484 | return srecFileWidget::hasHeightForWidth(); | |
|
7485 | } | |
|
7486 | int PythonQtShell_srecFileWidget::heightForWidth(int arg__1) const | |
|
7487 | { | |
|
7488 | if (_wrapper) { | |
|
7489 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); | |
|
7490 | PyErr_Clear(); | |
|
7491 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7492 | static const char* argumentList[] ={"int" , "int"}; | |
|
7493 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7494 | int returnValue; | |
|
7495 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7496 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7497 | if (result) { | |
|
7498 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7499 | if (args[0]!=&returnValue) { | |
|
7500 | if (args[0]==NULL) { | |
|
7501 | PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); | |
|
7502 | } else { | |
|
7503 | returnValue = *((int*)args[0]); | |
|
7504 | } | |
|
7505 | } | |
|
7506 | } | |
|
7507 | if (result) { Py_DECREF(result); } | |
|
7508 | Py_DECREF(obj); | |
|
7509 | return returnValue; | |
|
7510 | } | |
|
7511 | } | |
|
7512 | return srecFileWidget::heightForWidth(arg__1); | |
|
7513 | } | |
|
7514 | void PythonQtShell_srecFileWidget::hideEvent(QHideEvent* arg__1) | |
|
7515 | { | |
|
7516 | if (_wrapper) { | |
|
7517 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); | |
|
7518 | PyErr_Clear(); | |
|
7519 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7520 | static const char* argumentList[] ={"" , "QHideEvent*"}; | |
|
7521 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7522 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7523 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7524 | if (result) { Py_DECREF(result); } | |
|
7525 | Py_DECREF(obj); | |
|
7526 | return; | |
|
7527 | } | |
|
7528 | } | |
|
7529 | srecFileWidget::hideEvent(arg__1); | |
|
7530 | } | |
|
7531 | void PythonQtShell_srecFileWidget::initPainter(QPainter* painter) const | |
|
7532 | { | |
|
7533 | if (_wrapper) { | |
|
7534 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); | |
|
7535 | PyErr_Clear(); | |
|
7536 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7537 | static const char* argumentList[] ={"" , "QPainter*"}; | |
|
7538 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7539 | void* args[2] = {NULL, (void*)&painter}; | |
|
7540 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7541 | if (result) { Py_DECREF(result); } | |
|
7542 | Py_DECREF(obj); | |
|
7543 | return; | |
|
7544 | } | |
|
7545 | } | |
|
7546 | srecFileWidget::initPainter(painter); | |
|
7547 | } | |
|
7548 | void PythonQtShell_srecFileWidget::inputMethodEvent(QInputMethodEvent* arg__1) | |
|
7549 | { | |
|
7550 | if (_wrapper) { | |
|
7551 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); | |
|
7552 | PyErr_Clear(); | |
|
7553 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7554 | static const char* argumentList[] ={"" , "QInputMethodEvent*"}; | |
|
7555 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7556 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7557 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7558 | if (result) { Py_DECREF(result); } | |
|
7559 | Py_DECREF(obj); | |
|
7560 | return; | |
|
7561 | } | |
|
7562 | } | |
|
7563 | srecFileWidget::inputMethodEvent(arg__1); | |
|
7564 | } | |
|
7565 | QVariant PythonQtShell_srecFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const | |
|
7566 | { | |
|
7567 | if (_wrapper) { | |
|
7568 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); | |
|
7569 | PyErr_Clear(); | |
|
7570 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7571 | static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; | |
|
7572 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7573 | QVariant returnValue; | |
|
7574 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7575 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7576 | if (result) { | |
|
7577 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7578 | if (args[0]!=&returnValue) { | |
|
7579 | if (args[0]==NULL) { | |
|
7580 | PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); | |
|
7581 | } else { | |
|
7582 | returnValue = *((QVariant*)args[0]); | |
|
7583 | } | |
|
7584 | } | |
|
7585 | } | |
|
7586 | if (result) { Py_DECREF(result); } | |
|
7587 | Py_DECREF(obj); | |
|
7588 | return returnValue; | |
|
7589 | } | |
|
7590 | } | |
|
7591 | return srecFileWidget::inputMethodQuery(arg__1); | |
|
7592 | } | |
|
7593 | void PythonQtShell_srecFileWidget::keyPressEvent(QKeyEvent* arg__1) | |
|
7594 | { | |
|
7595 | if (_wrapper) { | |
|
7596 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); | |
|
7597 | PyErr_Clear(); | |
|
7598 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7599 | static const char* argumentList[] ={"" , "QKeyEvent*"}; | |
|
7600 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7601 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7602 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7603 | if (result) { Py_DECREF(result); } | |
|
7604 | Py_DECREF(obj); | |
|
7605 | return; | |
|
7606 | } | |
|
7607 | } | |
|
7608 | srecFileWidget::keyPressEvent(arg__1); | |
|
7609 | } | |
|
7610 | void PythonQtShell_srecFileWidget::keyReleaseEvent(QKeyEvent* arg__1) | |
|
7611 | { | |
|
7612 | if (_wrapper) { | |
|
7613 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); | |
|
7614 | PyErr_Clear(); | |
|
7615 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7616 | static const char* argumentList[] ={"" , "QKeyEvent*"}; | |
|
7617 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7618 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7619 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7620 | if (result) { Py_DECREF(result); } | |
|
7621 | Py_DECREF(obj); | |
|
7622 | return; | |
|
7623 | } | |
|
7624 | } | |
|
7625 | srecFileWidget::keyReleaseEvent(arg__1); | |
|
7626 | } | |
|
7627 | void PythonQtShell_srecFileWidget::leaveEvent(QEvent* arg__1) | |
|
7628 | { | |
|
7629 | if (_wrapper) { | |
|
7630 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); | |
|
7631 | PyErr_Clear(); | |
|
7632 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7633 | static const char* argumentList[] ={"" , "QEvent*"}; | |
|
7634 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7635 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7636 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7637 | if (result) { Py_DECREF(result); } | |
|
7638 | Py_DECREF(obj); | |
|
7639 | return; | |
|
7640 | } | |
|
7641 | } | |
|
7642 | srecFileWidget::leaveEvent(arg__1); | |
|
7643 | } | |
|
7644 | int PythonQtShell_srecFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const | |
|
7645 | { | |
|
7646 | if (_wrapper) { | |
|
7647 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); | |
|
7648 | PyErr_Clear(); | |
|
7649 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7650 | static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; | |
|
7651 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7652 | int returnValue; | |
|
7653 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7654 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7655 | if (result) { | |
|
7656 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7657 | if (args[0]!=&returnValue) { | |
|
7658 | if (args[0]==NULL) { | |
|
7659 | PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); | |
|
7660 | } else { | |
|
7661 | returnValue = *((int*)args[0]); | |
|
7662 | } | |
|
7663 | } | |
|
7664 | } | |
|
7665 | if (result) { Py_DECREF(result); } | |
|
7666 | Py_DECREF(obj); | |
|
7667 | return returnValue; | |
|
7668 | } | |
|
7669 | } | |
|
7670 | return srecFileWidget::metric(arg__1); | |
|
7671 | } | |
|
7672 | QSize PythonQtShell_srecFileWidget::minimumSizeHint() const | |
|
7673 | { | |
|
7674 | if (_wrapper) { | |
|
7675 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); | |
|
7676 | PyErr_Clear(); | |
|
7677 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7678 | static const char* argumentList[] ={"QSize"}; | |
|
7679 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | |
|
7680 | QSize returnValue; | |
|
7681 | void* args[1] = {NULL}; | |
|
7682 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7683 | if (result) { | |
|
7684 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7685 | if (args[0]!=&returnValue) { | |
|
7686 | if (args[0]==NULL) { | |
|
7687 | PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); | |
|
7688 | } else { | |
|
7689 | returnValue = *((QSize*)args[0]); | |
|
7690 | } | |
|
7691 | } | |
|
7692 | } | |
|
7693 | if (result) { Py_DECREF(result); } | |
|
7694 | Py_DECREF(obj); | |
|
7695 | return returnValue; | |
|
7696 | } | |
|
7697 | } | |
|
7698 | return srecFileWidget::minimumSizeHint(); | |
|
7699 | } | |
|
7700 | void PythonQtShell_srecFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) | |
|
7701 | { | |
|
7702 | if (_wrapper) { | |
|
7703 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); | |
|
7704 | PyErr_Clear(); | |
|
7705 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7706 | static const char* argumentList[] ={"" , "QMouseEvent*"}; | |
|
7707 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7708 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7709 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7710 | if (result) { Py_DECREF(result); } | |
|
7711 | Py_DECREF(obj); | |
|
7712 | return; | |
|
7713 | } | |
|
7714 | } | |
|
7715 | srecFileWidget::mouseDoubleClickEvent(arg__1); | |
|
7716 | } | |
|
7717 | void PythonQtShell_srecFileWidget::mouseMoveEvent(QMouseEvent* arg__1) | |
|
7718 | { | |
|
7719 | if (_wrapper) { | |
|
7720 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); | |
|
7721 | PyErr_Clear(); | |
|
7722 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7723 | static const char* argumentList[] ={"" , "QMouseEvent*"}; | |
|
7724 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7725 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7726 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7727 | if (result) { Py_DECREF(result); } | |
|
7728 | Py_DECREF(obj); | |
|
7729 | return; | |
|
7730 | } | |
|
7731 | } | |
|
7732 | srecFileWidget::mouseMoveEvent(arg__1); | |
|
7733 | } | |
|
7734 | void PythonQtShell_srecFileWidget::mousePressEvent(QMouseEvent* arg__1) | |
|
7735 | { | |
|
7736 | if (_wrapper) { | |
|
7737 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); | |
|
7738 | PyErr_Clear(); | |
|
7739 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7740 | static const char* argumentList[] ={"" , "QMouseEvent*"}; | |
|
7741 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7742 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7743 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7744 | if (result) { Py_DECREF(result); } | |
|
7745 | Py_DECREF(obj); | |
|
7746 | return; | |
|
7747 | } | |
|
7748 | } | |
|
7749 | srecFileWidget::mousePressEvent(arg__1); | |
|
7750 | } | |
|
7751 | void PythonQtShell_srecFileWidget::mouseReleaseEvent(QMouseEvent* arg__1) | |
|
7752 | { | |
|
7753 | if (_wrapper) { | |
|
7754 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); | |
|
7755 | PyErr_Clear(); | |
|
7756 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7757 | static const char* argumentList[] ={"" , "QMouseEvent*"}; | |
|
7758 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7759 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7760 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7761 | if (result) { Py_DECREF(result); } | |
|
7762 | Py_DECREF(obj); | |
|
7763 | return; | |
|
7764 | } | |
|
7765 | } | |
|
7766 | srecFileWidget::mouseReleaseEvent(arg__1); | |
|
7767 | } | |
|
7768 | void PythonQtShell_srecFileWidget::moveEvent(QMoveEvent* arg__1) | |
|
7769 | { | |
|
7770 | if (_wrapper) { | |
|
7771 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); | |
|
7772 | PyErr_Clear(); | |
|
7773 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7774 | static const char* argumentList[] ={"" , "QMoveEvent*"}; | |
|
7775 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7776 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7777 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7778 | if (result) { Py_DECREF(result); } | |
|
7779 | Py_DECREF(obj); | |
|
7780 | return; | |
|
7781 | } | |
|
7782 | } | |
|
7783 | srecFileWidget::moveEvent(arg__1); | |
|
7784 | } | |
|
7785 | bool PythonQtShell_srecFileWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) | |
|
7786 | { | |
|
7787 | if (_wrapper) { | |
|
7788 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); | |
|
7789 | PyErr_Clear(); | |
|
7790 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7791 | static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; | |
|
7792 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); | |
|
7793 | bool returnValue; | |
|
7794 | void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; | |
|
7795 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7796 | if (result) { | |
|
7797 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7798 | if (args[0]!=&returnValue) { | |
|
7799 | if (args[0]==NULL) { | |
|
7800 | PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); | |
|
7801 | } else { | |
|
7802 | returnValue = *((bool*)args[0]); | |
|
7803 | } | |
|
7804 | } | |
|
7805 | } | |
|
7806 | if (result) { Py_DECREF(result); } | |
|
7807 | Py_DECREF(obj); | |
|
7808 | return returnValue; | |
|
7809 | } | |
|
7810 | } | |
|
7811 | return srecFileWidget::nativeEvent(eventType, message, result); | |
|
7812 | } | |
|
7813 | QPaintEngine* PythonQtShell_srecFileWidget::paintEngine() const | |
|
7814 | { | |
|
7815 | if (_wrapper) { | |
|
7816 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); | |
|
7817 | PyErr_Clear(); | |
|
7818 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7819 | static const char* argumentList[] ={"QPaintEngine*"}; | |
|
7820 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | |
|
7821 | QPaintEngine* returnValue; | |
|
7822 | void* args[1] = {NULL}; | |
|
7823 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7824 | if (result) { | |
|
7825 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7826 | if (args[0]!=&returnValue) { | |
|
7827 | if (args[0]==NULL) { | |
|
7828 | PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); | |
|
7829 | } else { | |
|
7830 | returnValue = *((QPaintEngine**)args[0]); | |
|
7831 | } | |
|
7832 | } | |
|
7833 | } | |
|
7834 | if (result) { Py_DECREF(result); } | |
|
7835 | Py_DECREF(obj); | |
|
7836 | return returnValue; | |
|
7837 | } | |
|
7838 | } | |
|
7839 | return srecFileWidget::paintEngine(); | |
|
7840 | } | |
|
7841 | void PythonQtShell_srecFileWidget::paintEvent(QPaintEvent* arg__1) | |
|
7842 | { | |
|
7843 | if (_wrapper) { | |
|
7844 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); | |
|
7845 | PyErr_Clear(); | |
|
7846 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7847 | static const char* argumentList[] ={"" , "QPaintEvent*"}; | |
|
7848 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7849 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7850 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7851 | if (result) { Py_DECREF(result); } | |
|
7852 | Py_DECREF(obj); | |
|
7853 | return; | |
|
7854 | } | |
|
7855 | } | |
|
7856 | srecFileWidget::paintEvent(arg__1); | |
|
7857 | } | |
|
7858 | QPaintDevice* PythonQtShell_srecFileWidget::redirected(QPoint* offset) const | |
|
7859 | { | |
|
7860 | if (_wrapper) { | |
|
7861 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); | |
|
7862 | PyErr_Clear(); | |
|
7863 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7864 | static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; | |
|
7865 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7866 | QPaintDevice* returnValue; | |
|
7867 | void* args[2] = {NULL, (void*)&offset}; | |
|
7868 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7869 | if (result) { | |
|
7870 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7871 | if (args[0]!=&returnValue) { | |
|
7872 | if (args[0]==NULL) { | |
|
7873 | PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); | |
|
7874 | } else { | |
|
7875 | returnValue = *((QPaintDevice**)args[0]); | |
|
7876 | } | |
|
7877 | } | |
|
7878 | } | |
|
7879 | if (result) { Py_DECREF(result); } | |
|
7880 | Py_DECREF(obj); | |
|
7881 | return returnValue; | |
|
7882 | } | |
|
7883 | } | |
|
7884 | return srecFileWidget::redirected(offset); | |
|
7885 | } | |
|
7886 | void PythonQtShell_srecFileWidget::resizeEvent(QResizeEvent* arg__1) | |
|
7887 | { | |
|
7888 | if (_wrapper) { | |
|
7889 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); | |
|
7890 | PyErr_Clear(); | |
|
7891 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7892 | static const char* argumentList[] ={"" , "QResizeEvent*"}; | |
|
7893 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7894 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7895 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7896 | if (result) { Py_DECREF(result); } | |
|
7897 | Py_DECREF(obj); | |
|
7898 | return; | |
|
7899 | } | |
|
7900 | } | |
|
7901 | srecFileWidget::resizeEvent(arg__1); | |
|
7902 | } | |
|
7903 | QPainter* PythonQtShell_srecFileWidget::sharedPainter() const | |
|
7904 | { | |
|
7905 | if (_wrapper) { | |
|
7906 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); | |
|
7907 | PyErr_Clear(); | |
|
7908 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7909 | static const char* argumentList[] ={"QPainter*"}; | |
|
7910 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | |
|
7911 | QPainter* returnValue; | |
|
7912 | void* args[1] = {NULL}; | |
|
7913 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7914 | if (result) { | |
|
7915 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7916 | if (args[0]!=&returnValue) { | |
|
7917 | if (args[0]==NULL) { | |
|
7918 | PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); | |
|
7919 | } else { | |
|
7920 | returnValue = *((QPainter**)args[0]); | |
|
7921 | } | |
|
7922 | } | |
|
7923 | } | |
|
7924 | if (result) { Py_DECREF(result); } | |
|
7925 | Py_DECREF(obj); | |
|
7926 | return returnValue; | |
|
7927 | } | |
|
7928 | } | |
|
7929 | return srecFileWidget::sharedPainter(); | |
|
7930 | } | |
|
7931 | void PythonQtShell_srecFileWidget::showEvent(QShowEvent* arg__1) | |
|
7932 | { | |
|
7933 | if (_wrapper) { | |
|
7934 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); | |
|
7935 | PyErr_Clear(); | |
|
7936 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7937 | static const char* argumentList[] ={"" , "QShowEvent*"}; | |
|
7938 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7939 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7940 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7941 | if (result) { Py_DECREF(result); } | |
|
7942 | Py_DECREF(obj); | |
|
7943 | return; | |
|
7944 | } | |
|
7945 | } | |
|
7946 | srecFileWidget::showEvent(arg__1); | |
|
7947 | } | |
|
7948 | QSize PythonQtShell_srecFileWidget::sizeHint() const | |
|
7949 | { | |
|
7950 | if (_wrapper) { | |
|
7951 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); | |
|
7952 | PyErr_Clear(); | |
|
7953 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7954 | static const char* argumentList[] ={"QSize"}; | |
|
7955 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | |
|
7956 | QSize returnValue; | |
|
7957 | void* args[1] = {NULL}; | |
|
7958 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7959 | if (result) { | |
|
7960 | args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | |
|
7961 | if (args[0]!=&returnValue) { | |
|
7962 | if (args[0]==NULL) { | |
|
7963 | PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); | |
|
7964 | } else { | |
|
7965 | returnValue = *((QSize*)args[0]); | |
|
7966 | } | |
|
7967 | } | |
|
7968 | } | |
|
7969 | if (result) { Py_DECREF(result); } | |
|
7970 | Py_DECREF(obj); | |
|
7971 | return returnValue; | |
|
7972 | } | |
|
7973 | } | |
|
7974 | return srecFileWidget::sizeHint(); | |
|
7975 | } | |
|
7976 | void PythonQtShell_srecFileWidget::tabletEvent(QTabletEvent* arg__1) | |
|
7977 | { | |
|
7978 | if (_wrapper) { | |
|
7979 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); | |
|
7980 | PyErr_Clear(); | |
|
7981 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7982 | static const char* argumentList[] ={"" , "QTabletEvent*"}; | |
|
7983 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
7984 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
7985 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
7986 | if (result) { Py_DECREF(result); } | |
|
7987 | Py_DECREF(obj); | |
|
7988 | return; | |
|
7989 | } | |
|
7990 | } | |
|
7991 | srecFileWidget::tabletEvent(arg__1); | |
|
7992 | } | |
|
7993 | void PythonQtShell_srecFileWidget::timerEvent(QTimerEvent* arg__1) | |
|
7994 | { | |
|
7995 | if (_wrapper) { | |
|
7996 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); | |
|
7997 | PyErr_Clear(); | |
|
7998 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
7999 | static const char* argumentList[] ={"" , "QTimerEvent*"}; | |
|
8000 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
8001 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
8002 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
8003 | if (result) { Py_DECREF(result); } | |
|
8004 | Py_DECREF(obj); | |
|
8005 | return; | |
|
8006 | } | |
|
8007 | } | |
|
8008 | srecFileWidget::timerEvent(arg__1); | |
|
8009 | } | |
|
8010 | void PythonQtShell_srecFileWidget::wheelEvent(QWheelEvent* arg__1) | |
|
8011 | { | |
|
8012 | if (_wrapper) { | |
|
8013 | PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); | |
|
8014 | PyErr_Clear(); | |
|
8015 | if (obj && !PythonQtSlotFunction_Check(obj)) { | |
|
8016 | static const char* argumentList[] ={"" , "QWheelEvent*"}; | |
|
8017 | static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | |
|
8018 | void* args[2] = {NULL, (void*)&arg__1}; | |
|
8019 | PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | |
|
8020 | if (result) { Py_DECREF(result); } | |
|
8021 | Py_DECREF(obj); | |
|
8022 | return; | |
|
8023 | } | |
|
8024 | } | |
|
8025 | srecFileWidget::wheelEvent(arg__1); | |
|
8026 | } | |
|
8027 | srecFileWidget* PythonQtWrapper_srecFileWidget::new_srecFileWidget(QWidget* parent) | |
|
8028 | { | |
|
8029 | return new PythonQtShell_srecFileWidget(parent); } | |
|
8030 | ||
|
8031 |
@@ -1,828 +1,908 | |||
|
1 | 1 | #include <PythonQt.h> |
|
2 | 2 | #include <QIconEngine> |
|
3 | 3 | #include <QObject> |
|
4 | 4 | #include <QSpinBox> |
|
5 | 5 | #include <QVariant> |
|
6 | 6 | #include <QWidget> |
|
7 | 7 | #include <SocExplorerPlot.h> |
|
8 |
#include <abstract |
|
|
8 | #include <abstractbinfile.h> | |
|
9 | 9 | #include <elffile.h> |
|
10 | 10 | #include <elffilewidget.h> |
|
11 | 11 | #include <elfinfowdgt.h> |
|
12 | 12 | #include <elfparser.h> |
|
13 | 13 | #include <memsizewdgt.h> |
|
14 | 14 | #include <qaction.h> |
|
15 | 15 | #include <qbitmap.h> |
|
16 | 16 | #include <qbytearray.h> |
|
17 | 17 | #include <qcolor.h> |
|
18 | 18 | #include <qcoreevent.h> |
|
19 | 19 | #include <qcursor.h> |
|
20 | 20 | #include <qevent.h> |
|
21 | 21 | #include <qfile.h> |
|
22 | 22 | #include <qfont.h> |
|
23 | 23 | #include <qgraphicseffect.h> |
|
24 | 24 | #include <qgraphicsproxywidget.h> |
|
25 | 25 | #include <qhexedit.h> |
|
26 | 26 | #include <qhexspinbox.h> |
|
27 | 27 | #include <qkeysequence.h> |
|
28 | 28 | #include <qlayout.h> |
|
29 | 29 | #include <qlineedit.h> |
|
30 | 30 | #include <qlist.h> |
|
31 | 31 | #include <qlocale.h> |
|
32 | 32 | #include <qmargins.h> |
|
33 | 33 | #include <qobject.h> |
|
34 | 34 | #include <qpaintdevice.h> |
|
35 | 35 | #include <qpaintengine.h> |
|
36 | 36 | #include <qpainter.h> |
|
37 | 37 | #include <qpalette.h> |
|
38 | 38 | #include <qpen.h> |
|
39 | 39 | #include <qpixmap.h> |
|
40 | 40 | #include <qpoint.h> |
|
41 | 41 | #include <qrect.h> |
|
42 | 42 | #include <qregion.h> |
|
43 | 43 | #include <qscrollarea.h> |
|
44 | 44 | #include <qscrollbar.h> |
|
45 | 45 | #include <qsize.h> |
|
46 | 46 | #include <qsizepolicy.h> |
|
47 | 47 | #include <qspinbox.h> |
|
48 | 48 | #include <qstringlist.h> |
|
49 | 49 | #include <qstyle.h> |
|
50 | 50 | #include <qstyleoption.h> |
|
51 | 51 | #include <qwidget.h> |
|
52 | 52 | #include <srecfile.h> |
|
53 | #include <srecfilewidget.h> | |
|
53 | 54 | #include <tcp_terminal_client.h> |
|
54 | 55 | #include <xbytearray.h> |
|
55 | 56 | |
|
56 | 57 | |
|
57 | 58 | |
|
58 | 59 | class PythonQtShell_ElfFile : public ElfFile |
|
59 | 60 | { |
|
60 | 61 | public: |
|
61 | 62 | PythonQtShell_ElfFile():ElfFile(),_wrapper(NULL) {}; |
|
62 | 63 | PythonQtShell_ElfFile(const QString& File):ElfFile(File),_wrapper(NULL) {}; |
|
63 | 64 | |
|
64 | 65 | ~PythonQtShell_ElfFile(); |
|
65 | 66 | |
|
66 | 67 | virtual int closeFile(); |
|
67 | 68 | virtual QList<codeFragment* > getFragments(); |
|
68 | 69 | virtual bool isopened(); |
|
69 | 70 | virtual bool openFile(const QString& File); |
|
70 | 71 | |
|
71 | 72 | PythonQtInstanceWrapper* _wrapper; |
|
72 | 73 | }; |
|
73 | 74 | |
|
74 | 75 | class PythonQtPublicPromoter_ElfFile : public ElfFile |
|
75 | 76 | { public: |
|
76 | 77 | inline int promoted_closeFile() { return ElfFile::closeFile(); } |
|
77 | 78 | inline QList<codeFragment* > promoted_getFragments() { return ElfFile::getFragments(); } |
|
78 | 79 | inline bool promoted_isopened() { return ElfFile::isopened(); } |
|
79 | 80 | inline bool promoted_openFile(const QString& File) { return ElfFile::openFile(File); } |
|
80 | 81 | }; |
|
81 | 82 | |
|
82 | 83 | class PythonQtWrapper_ElfFile : public QObject |
|
83 | 84 | { Q_OBJECT |
|
84 | 85 | public: |
|
85 | 86 | public slots: |
|
86 | 87 | ElfFile* new_ElfFile(); |
|
87 | 88 | ElfFile* new_ElfFile(const QString& File); |
|
88 | 89 | void delete_ElfFile(ElfFile* obj) { delete obj; } |
|
89 | 90 | int closeFile(ElfFile* theWrappedObject); |
|
90 | 91 | QString getABI(ElfFile* theWrappedObject); |
|
91 | 92 | QString getArchitecture(ElfFile* theWrappedObject); |
|
92 | 93 | QString getClass(ElfFile* theWrappedObject); |
|
93 | 94 | QString getEndianness(ElfFile* theWrappedObject); |
|
94 | 95 | qint64 getEntryPointAddress(ElfFile* theWrappedObject); |
|
95 | 96 | QList<codeFragment* > getFragments(ElfFile* theWrappedObject); |
|
96 | 97 | QList<codeFragment* > getFragments(ElfFile* theWrappedObject, QStringList fragmentList); |
|
97 | 98 | int getSectionCount(ElfFile* theWrappedObject); |
|
98 | 99 | bool getSectionData(ElfFile* theWrappedObject, int index, char** buffer); |
|
99 | 100 | qint64 getSectionDatasz(ElfFile* theWrappedObject, int index); |
|
100 | 101 | int getSectionIndex(ElfFile* theWrappedObject, QString name); |
|
101 | 102 | qint64 getSectionMemsz(ElfFile* theWrappedObject, int index); |
|
102 | 103 | QString getSectionName(ElfFile* theWrappedObject, int index); |
|
103 | 104 | qint64 getSectionPaddr(ElfFile* theWrappedObject, int index); |
|
104 | 105 | QString getSectionType(ElfFile* theWrappedObject, int index); |
|
105 | 106 | int getSegmentCount(ElfFile* theWrappedObject); |
|
106 | 107 | qint64 getSegmentFilesz(ElfFile* theWrappedObject, int index); |
|
107 | 108 | QString getSegmentFlags(ElfFile* theWrappedObject, int index); |
|
108 | 109 | qint64 getSegmentMemsz(ElfFile* theWrappedObject, int index); |
|
109 | 110 | qint64 getSegmentOffset(ElfFile* theWrappedObject, int index); |
|
110 | 111 | qint64 getSegmentPaddr(ElfFile* theWrappedObject, int index); |
|
111 | 112 | QString getSegmentType(ElfFile* theWrappedObject, int index); |
|
112 | 113 | qint64 getSegmentVaddr(ElfFile* theWrappedObject, int index); |
|
113 | 114 | quint64 getSymbolAddress(ElfFile* theWrappedObject, int index); |
|
114 | 115 | int getSymbolCount(ElfFile* theWrappedObject); |
|
115 | 116 | QString getSymbolLinkType(ElfFile* theWrappedObject, int index); |
|
116 | 117 | QString getSymbolName(ElfFile* theWrappedObject, int index); |
|
117 | 118 | int getSymbolSectionIndex(ElfFile* theWrappedObject, int index); |
|
118 | 119 | QString getSymbolSectionName(ElfFile* theWrappedObject, int index); |
|
119 | 120 | quint64 getSymbolSize(ElfFile* theWrappedObject, int index); |
|
120 | 121 | QString getSymbolType(ElfFile* theWrappedObject, int index); |
|
121 | 122 | QString getType(ElfFile* theWrappedObject); |
|
122 | 123 | qint64 getVersion(ElfFile* theWrappedObject); |
|
123 | 124 | bool static_ElfFile_isElf(const QString& File); |
|
124 | 125 | bool iself(ElfFile* theWrappedObject); |
|
125 | 126 | bool isopened(ElfFile* theWrappedObject); |
|
126 | 127 | bool openFile(ElfFile* theWrappedObject, const QString& File); |
|
128 | bool toSrec(ElfFile* theWrappedObject, const QString& File); | |
|
127 | 129 | }; |
|
128 | 130 | |
|
129 | 131 | |
|
130 | 132 | |
|
131 | 133 | |
|
132 | 134 | |
|
133 | 135 | class PythonQtShell_MemSizeWdgt : public MemSizeWdgt |
|
134 | 136 | { |
|
135 | 137 | public: |
|
136 | 138 | PythonQtShell_MemSizeWdgt(QWidget* parent = 0):MemSizeWdgt(parent),_wrapper(NULL) {}; |
|
137 | 139 | PythonQtShell_MemSizeWdgt(int defaultSize, QWidget* parent = 0):MemSizeWdgt(defaultSize, parent),_wrapper(NULL) {}; |
|
138 | 140 | |
|
139 | 141 | ~PythonQtShell_MemSizeWdgt(); |
|
140 | 142 | |
|
141 | 143 | virtual void actionEvent(QActionEvent* arg__1); |
|
142 | 144 | virtual void changeEvent(QEvent* arg__1); |
|
143 | 145 | virtual void childEvent(QChildEvent* arg__1); |
|
144 | 146 | virtual void closeEvent(QCloseEvent* arg__1); |
|
145 | 147 | virtual void contextMenuEvent(QContextMenuEvent* arg__1); |
|
146 | 148 | virtual void customEvent(QEvent* arg__1); |
|
147 | 149 | virtual int devType() const; |
|
148 | 150 | virtual void dragEnterEvent(QDragEnterEvent* arg__1); |
|
149 | 151 | virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); |
|
150 | 152 | virtual void dragMoveEvent(QDragMoveEvent* arg__1); |
|
151 | 153 | virtual void dropEvent(QDropEvent* arg__1); |
|
152 | 154 | virtual void enterEvent(QEvent* arg__1); |
|
153 | 155 | virtual bool event(QEvent* arg__1); |
|
154 | 156 | virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); |
|
155 | 157 | virtual void focusInEvent(QFocusEvent* arg__1); |
|
156 | 158 | virtual bool focusNextPrevChild(bool next); |
|
157 | 159 | virtual void focusOutEvent(QFocusEvent* arg__1); |
|
158 | 160 | virtual bool hasHeightForWidth() const; |
|
159 | 161 | virtual int heightForWidth(int arg__1) const; |
|
160 | 162 | virtual void hideEvent(QHideEvent* arg__1); |
|
161 | 163 | virtual void initPainter(QPainter* painter) const; |
|
162 | 164 | virtual void inputMethodEvent(QInputMethodEvent* arg__1); |
|
163 | 165 | virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; |
|
164 | 166 | virtual void keyPressEvent(QKeyEvent* arg__1); |
|
165 | 167 | virtual void keyReleaseEvent(QKeyEvent* arg__1); |
|
166 | 168 | virtual void leaveEvent(QEvent* arg__1); |
|
167 | 169 | virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; |
|
168 | 170 | virtual QSize minimumSizeHint() const; |
|
169 | 171 | virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); |
|
170 | 172 | virtual void mouseMoveEvent(QMouseEvent* arg__1); |
|
171 | 173 | virtual void mousePressEvent(QMouseEvent* arg__1); |
|
172 | 174 | virtual void mouseReleaseEvent(QMouseEvent* arg__1); |
|
173 | 175 | virtual void moveEvent(QMoveEvent* arg__1); |
|
174 | 176 | virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); |
|
175 | 177 | virtual QPaintEngine* paintEngine() const; |
|
176 | 178 | virtual void paintEvent(QPaintEvent* arg__1); |
|
177 | 179 | virtual QPaintDevice* redirected(QPoint* offset) const; |
|
178 | 180 | virtual void resizeEvent(QResizeEvent* arg__1); |
|
179 | 181 | virtual QPainter* sharedPainter() const; |
|
180 | 182 | virtual void showEvent(QShowEvent* arg__1); |
|
181 | 183 | virtual QSize sizeHint() const; |
|
182 | 184 | virtual void tabletEvent(QTabletEvent* arg__1); |
|
183 | 185 | virtual void timerEvent(QTimerEvent* arg__1); |
|
184 | 186 | virtual void wheelEvent(QWheelEvent* arg__1); |
|
185 | 187 | |
|
186 | 188 | PythonQtInstanceWrapper* _wrapper; |
|
187 | 189 | }; |
|
188 | 190 | |
|
189 | 191 | class PythonQtWrapper_MemSizeWdgt : public QObject |
|
190 | 192 | { Q_OBJECT |
|
191 | 193 | public: |
|
192 | 194 | public slots: |
|
193 | 195 | MemSizeWdgt* new_MemSizeWdgt(QWidget* parent = 0); |
|
194 | 196 | MemSizeWdgt* new_MemSizeWdgt(int defaultSize, QWidget* parent = 0); |
|
195 | 197 | void delete_MemSizeWdgt(MemSizeWdgt* obj) { delete obj; } |
|
196 | 198 | int getsize(MemSizeWdgt* theWrappedObject); |
|
197 | 199 | void setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max); |
|
198 | 200 | void show(MemSizeWdgt* theWrappedObject); |
|
199 | 201 | void updateSizeValue(MemSizeWdgt* theWrappedObject); |
|
200 | 202 | }; |
|
201 | 203 | |
|
202 | 204 | |
|
203 | 205 | |
|
204 | 206 | |
|
205 | 207 | |
|
206 | 208 | class PythonQtShell_QHexEdit : public QHexEdit |
|
207 | 209 | { |
|
208 | 210 | public: |
|
209 | 211 | PythonQtShell_QHexEdit(QWidget* parent = 0):QHexEdit(parent),_wrapper(NULL) {}; |
|
210 | 212 | |
|
211 | 213 | ~PythonQtShell_QHexEdit(); |
|
212 | 214 | |
|
213 | 215 | virtual void actionEvent(QActionEvent* arg__1); |
|
214 | 216 | virtual void changeEvent(QEvent* arg__1); |
|
215 | 217 | virtual void childEvent(QChildEvent* arg__1); |
|
216 | 218 | virtual void closeEvent(QCloseEvent* arg__1); |
|
217 | 219 | virtual void contextMenuEvent(QContextMenuEvent* arg__1); |
|
218 | 220 | virtual void customEvent(QEvent* arg__1); |
|
219 | 221 | virtual int devType() const; |
|
220 | 222 | virtual void dragEnterEvent(QDragEnterEvent* arg__1); |
|
221 | 223 | virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); |
|
222 | 224 | virtual void dragMoveEvent(QDragMoveEvent* arg__1); |
|
223 | 225 | virtual void dropEvent(QDropEvent* arg__1); |
|
224 | 226 | virtual void enterEvent(QEvent* arg__1); |
|
225 | 227 | virtual bool event(QEvent* arg__1); |
|
226 | 228 | virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); |
|
227 | 229 | virtual void focusInEvent(QFocusEvent* arg__1); |
|
228 | 230 | virtual bool focusNextPrevChild(bool next); |
|
229 | 231 | virtual void focusOutEvent(QFocusEvent* arg__1); |
|
230 | 232 | virtual bool hasHeightForWidth() const; |
|
231 | 233 | virtual int heightForWidth(int arg__1) const; |
|
232 | 234 | virtual void hideEvent(QHideEvent* arg__1); |
|
233 | 235 | virtual void initPainter(QPainter* painter) const; |
|
234 | 236 | virtual void inputMethodEvent(QInputMethodEvent* arg__1); |
|
235 | 237 | virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; |
|
236 | 238 | virtual void keyPressEvent(QKeyEvent* arg__1); |
|
237 | 239 | virtual void keyReleaseEvent(QKeyEvent* arg__1); |
|
238 | 240 | virtual void leaveEvent(QEvent* arg__1); |
|
239 | 241 | virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; |
|
240 | 242 | virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); |
|
241 | 243 | virtual void mouseMoveEvent(QMouseEvent* arg__1); |
|
242 | 244 | virtual void mousePressEvent(QMouseEvent* arg__1); |
|
243 | 245 | virtual void mouseReleaseEvent(QMouseEvent* arg__1); |
|
244 | 246 | virtual void moveEvent(QMoveEvent* arg__1); |
|
245 | 247 | virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); |
|
246 | 248 | virtual QPaintEngine* paintEngine() const; |
|
247 | 249 | virtual void paintEvent(QPaintEvent* arg__1); |
|
248 | 250 | virtual QPaintDevice* redirected(QPoint* offset) const; |
|
249 | 251 | virtual void resizeEvent(QResizeEvent* arg__1); |
|
250 | 252 | virtual void scrollContentsBy(int dx, int dy); |
|
251 | 253 | virtual void setupViewport(QWidget* viewport); |
|
252 | 254 | virtual QPainter* sharedPainter() const; |
|
253 | 255 | virtual void showEvent(QShowEvent* arg__1); |
|
254 | 256 | virtual void tabletEvent(QTabletEvent* arg__1); |
|
255 | 257 | virtual void timerEvent(QTimerEvent* arg__1); |
|
256 | 258 | virtual bool viewportEvent(QEvent* arg__1); |
|
257 | 259 | virtual QSize viewportSizeHint() const; |
|
258 | 260 | virtual void wheelEvent(QWheelEvent* arg__1); |
|
259 | 261 | |
|
260 | 262 | PythonQtInstanceWrapper* _wrapper; |
|
261 | 263 | }; |
|
262 | 264 | |
|
263 | 265 | class PythonQtWrapper_QHexEdit : public QObject |
|
264 | 266 | { Q_OBJECT |
|
265 | 267 | public: |
|
266 | 268 | public slots: |
|
267 | 269 | QHexEdit* new_QHexEdit(QWidget* parent = 0); |
|
268 | 270 | void delete_QHexEdit(QHexEdit* obj) { delete obj; } |
|
269 | 271 | QColor addressAreaColor(QHexEdit* theWrappedObject); |
|
270 | 272 | int addressOffset(QHexEdit* theWrappedObject); |
|
271 | 273 | int cursorPosition(QHexEdit* theWrappedObject); |
|
272 | 274 | QByteArray data(QHexEdit* theWrappedObject); |
|
273 | 275 | const QFont* font(QHexEdit* theWrappedObject) const; |
|
274 | 276 | QColor highlightingColor(QHexEdit* theWrappedObject); |
|
275 | 277 | int indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const; |
|
276 | 278 | void insert(QHexEdit* theWrappedObject, int i, char ch); |
|
277 | 279 | void insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba); |
|
278 | 280 | bool isReadOnly(QHexEdit* theWrappedObject); |
|
279 | 281 | int lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const; |
|
280 | 282 | bool overwriteMode(QHexEdit* theWrappedObject); |
|
281 | 283 | void remove(QHexEdit* theWrappedObject, int pos, int len = 1); |
|
282 | 284 | void replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after); |
|
283 | 285 | QColor selectionColor(QHexEdit* theWrappedObject); |
|
284 | 286 | QString selectionToReadableString(QHexEdit* theWrappedObject); |
|
285 | 287 | void setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color); |
|
286 | 288 | void setAddressOffset(QHexEdit* theWrappedObject, int offset); |
|
287 | 289 | void setCursorPosition(QHexEdit* theWrappedObject, int cusorPos); |
|
288 | 290 | void setData(QHexEdit* theWrappedObject, const QByteArray& data); |
|
289 | 291 | void setFont(QHexEdit* theWrappedObject, const QFont& arg__1); |
|
290 | 292 | void setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color); |
|
291 | 293 | void setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1); |
|
292 | 294 | void setReadOnly(QHexEdit* theWrappedObject, bool arg__1); |
|
293 | 295 | void setSelectionColor(QHexEdit* theWrappedObject, const QColor& color); |
|
294 | 296 | QString toReadableString(QHexEdit* theWrappedObject); |
|
295 | 297 | }; |
|
296 | 298 | |
|
297 | 299 | |
|
298 | 300 | |
|
299 | 301 | |
|
300 | 302 | |
|
301 | 303 | class PythonQtShell_QHexSpinBox : public QHexSpinBox |
|
302 | 304 | { |
|
303 | 305 | public: |
|
304 | 306 | PythonQtShell_QHexSpinBox(QWidget* parent = 0):QHexSpinBox(parent),_wrapper(NULL) {}; |
|
305 | 307 | |
|
306 | 308 | ~PythonQtShell_QHexSpinBox(); |
|
307 | 309 | |
|
308 | 310 | virtual void actionEvent(QActionEvent* arg__1); |
|
309 | 311 | virtual void changeEvent(QEvent* event); |
|
310 | 312 | virtual void childEvent(QChildEvent* arg__1); |
|
311 | 313 | virtual void clear(); |
|
312 | 314 | virtual void closeEvent(QCloseEvent* event); |
|
313 | 315 | virtual void contextMenuEvent(QContextMenuEvent* event); |
|
314 | 316 | virtual void customEvent(QEvent* arg__1); |
|
315 | 317 | virtual int devType() const; |
|
316 | 318 | virtual void dragEnterEvent(QDragEnterEvent* arg__1); |
|
317 | 319 | virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); |
|
318 | 320 | virtual void dragMoveEvent(QDragMoveEvent* arg__1); |
|
319 | 321 | virtual void dropEvent(QDropEvent* arg__1); |
|
320 | 322 | virtual void enterEvent(QEvent* arg__1); |
|
321 | 323 | virtual bool event(QEvent* event); |
|
322 | 324 | virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); |
|
323 | 325 | virtual void fixup(QString& str) const; |
|
324 | 326 | virtual void focusInEvent(QFocusEvent* event); |
|
325 | 327 | virtual bool focusNextPrevChild(bool next); |
|
326 | 328 | virtual void focusOutEvent(QFocusEvent* event); |
|
327 | 329 | virtual bool hasHeightForWidth() const; |
|
328 | 330 | virtual int heightForWidth(int arg__1) const; |
|
329 | 331 | virtual void hideEvent(QHideEvent* event); |
|
330 | 332 | virtual void initPainter(QPainter* painter) const; |
|
331 | 333 | virtual void inputMethodEvent(QInputMethodEvent* arg__1); |
|
332 | 334 | virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; |
|
333 | 335 | virtual void keyPressEvent(QKeyEvent* event); |
|
334 | 336 | virtual void keyReleaseEvent(QKeyEvent* event); |
|
335 | 337 | virtual void leaveEvent(QEvent* arg__1); |
|
336 | 338 | virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; |
|
337 | 339 | virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); |
|
338 | 340 | virtual void mouseMoveEvent(QMouseEvent* event); |
|
339 | 341 | virtual void mousePressEvent(QMouseEvent* event); |
|
340 | 342 | virtual void mouseReleaseEvent(QMouseEvent* event); |
|
341 | 343 | virtual void moveEvent(QMoveEvent* arg__1); |
|
342 | 344 | virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); |
|
343 | 345 | virtual QPaintEngine* paintEngine() const; |
|
344 | 346 | virtual void paintEvent(QPaintEvent* event); |
|
345 | 347 | virtual QPaintDevice* redirected(QPoint* offset) const; |
|
346 | 348 | virtual void resizeEvent(QResizeEvent* event); |
|
347 | 349 | virtual QPainter* sharedPainter() const; |
|
348 | 350 | virtual void showEvent(QShowEvent* event); |
|
349 | 351 | virtual void stepBy(int steps); |
|
350 | 352 | virtual QAbstractSpinBox::StepEnabled stepEnabled() const; |
|
351 | 353 | virtual void tabletEvent(QTabletEvent* arg__1); |
|
352 | 354 | virtual QString textFromValue(int value) const; |
|
353 | 355 | virtual void timerEvent(QTimerEvent* event); |
|
354 | 356 | virtual QValidator::State validate(QString& input, int& pos) const; |
|
355 | 357 | virtual int valueFromText(const QString& text) const; |
|
356 | 358 | virtual void wheelEvent(QWheelEvent* event); |
|
357 | 359 | |
|
358 | 360 | PythonQtInstanceWrapper* _wrapper; |
|
359 | 361 | }; |
|
360 | 362 | |
|
361 | 363 | class PythonQtPublicPromoter_QHexSpinBox : public QHexSpinBox |
|
362 | 364 | { public: |
|
363 | 365 | inline QString promoted_textFromValue(int value) const { return QHexSpinBox::textFromValue(value); } |
|
364 | 366 | inline QValidator::State promoted_validate(QString& input, int& pos) const { return QHexSpinBox::validate(input, pos); } |
|
365 | 367 | inline int promoted_valueFromText(const QString& text) const { return QHexSpinBox::valueFromText(text); } |
|
366 | 368 | }; |
|
367 | 369 | |
|
368 | 370 | class PythonQtWrapper_QHexSpinBox : public QObject |
|
369 | 371 | { Q_OBJECT |
|
370 | 372 | public: |
|
371 | 373 | public slots: |
|
372 | 374 | QHexSpinBox* new_QHexSpinBox(QWidget* parent = 0); |
|
373 | 375 | void delete_QHexSpinBox(QHexSpinBox* obj) { delete obj; } |
|
374 | 376 | void show(QHexSpinBox* theWrappedObject); |
|
375 | 377 | QString textFromValue(QHexSpinBox* theWrappedObject, int value) const; |
|
376 | 378 | QValidator::State validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const; |
|
377 | 379 | int valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const; |
|
378 | 380 | }; |
|
379 | 381 | |
|
380 | 382 | |
|
381 | 383 | |
|
382 | 384 | |
|
383 | 385 | |
|
384 | 386 | class PythonQtShell_SocExplorerPlot : public SocExplorerPlot |
|
385 | 387 | { |
|
386 | 388 | public: |
|
387 | 389 | PythonQtShell_SocExplorerPlot(QWidget* parent = 0):SocExplorerPlot(parent),_wrapper(NULL) {}; |
|
388 | 390 | |
|
389 | 391 | ~PythonQtShell_SocExplorerPlot(); |
|
390 | 392 | |
|
391 | 393 | virtual void actionEvent(QActionEvent* arg__1); |
|
392 | 394 | virtual void changeEvent(QEvent* arg__1); |
|
393 | 395 | virtual void childEvent(QChildEvent* arg__1); |
|
394 | 396 | virtual void closeEvent(QCloseEvent* arg__1); |
|
395 | 397 | virtual void contextMenuEvent(QContextMenuEvent* arg__1); |
|
396 | 398 | virtual void customEvent(QEvent* arg__1); |
|
397 | 399 | virtual int devType() const; |
|
398 | 400 | virtual void dragEnterEvent(QDragEnterEvent* arg__1); |
|
399 | 401 | virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); |
|
400 | 402 | virtual void dragMoveEvent(QDragMoveEvent* arg__1); |
|
401 | 403 | virtual void dropEvent(QDropEvent* arg__1); |
|
402 | 404 | virtual void enterEvent(QEvent* arg__1); |
|
403 | 405 | virtual bool event(QEvent* arg__1); |
|
404 | 406 | virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); |
|
405 | 407 | virtual void focusInEvent(QFocusEvent* arg__1); |
|
406 | 408 | virtual bool focusNextPrevChild(bool next); |
|
407 | 409 | virtual void focusOutEvent(QFocusEvent* arg__1); |
|
408 | 410 | virtual bool hasHeightForWidth() const; |
|
409 | 411 | virtual int heightForWidth(int arg__1) const; |
|
410 | 412 | virtual void hideEvent(QHideEvent* arg__1); |
|
411 | 413 | virtual void initPainter(QPainter* painter) const; |
|
412 | 414 | virtual void inputMethodEvent(QInputMethodEvent* arg__1); |
|
413 | 415 | virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; |
|
414 | 416 | virtual void keyPressEvent(QKeyEvent* arg__1); |
|
415 | 417 | virtual void keyReleaseEvent(QKeyEvent* arg__1); |
|
416 | 418 | virtual void leaveEvent(QEvent* arg__1); |
|
417 | 419 | virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; |
|
418 | 420 | virtual QSize minimumSizeHint() const; |
|
419 | 421 | virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); |
|
420 | 422 | virtual void mouseMoveEvent(QMouseEvent* arg__1); |
|
421 | 423 | virtual void mousePressEvent(QMouseEvent* arg__1); |
|
422 | 424 | virtual void mouseReleaseEvent(QMouseEvent* arg__1); |
|
423 | 425 | virtual void moveEvent(QMoveEvent* arg__1); |
|
424 | 426 | virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); |
|
425 | 427 | virtual QPaintEngine* paintEngine() const; |
|
426 | 428 | virtual void paintEvent(QPaintEvent* arg__1); |
|
427 | 429 | virtual QPaintDevice* redirected(QPoint* offset) const; |
|
428 | 430 | virtual void resizeEvent(QResizeEvent* arg__1); |
|
429 | 431 | virtual QPainter* sharedPainter() const; |
|
430 | 432 | virtual void showEvent(QShowEvent* arg__1); |
|
431 | 433 | virtual QSize sizeHint() const; |
|
432 | 434 | virtual void tabletEvent(QTabletEvent* arg__1); |
|
433 | 435 | virtual void timerEvent(QTimerEvent* arg__1); |
|
434 | 436 | virtual void wheelEvent(QWheelEvent* arg__1); |
|
435 | 437 | |
|
436 | 438 | PythonQtInstanceWrapper* _wrapper; |
|
437 | 439 | }; |
|
438 | 440 | |
|
439 | 441 | class PythonQtPublicPromoter_SocExplorerPlot : public SocExplorerPlot |
|
440 | 442 | { public: |
|
441 | 443 | inline void promoted_keyPressEvent(QKeyEvent* arg__1) { SocExplorerPlot::keyPressEvent(arg__1); } |
|
442 | 444 | inline void promoted_keyReleaseEvent(QKeyEvent* arg__1) { SocExplorerPlot::keyReleaseEvent(arg__1); } |
|
443 | 445 | inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { SocExplorerPlot::mouseMoveEvent(arg__1); } |
|
444 | 446 | inline void promoted_mousePressEvent(QMouseEvent* arg__1) { SocExplorerPlot::mousePressEvent(arg__1); } |
|
445 | 447 | inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { SocExplorerPlot::mouseReleaseEvent(arg__1); } |
|
446 | 448 | inline void promoted_wheelEvent(QWheelEvent* arg__1) { SocExplorerPlot::wheelEvent(arg__1); } |
|
447 | 449 | }; |
|
448 | 450 | |
|
449 | 451 | class PythonQtWrapper_SocExplorerPlot : public QObject |
|
450 | 452 | { Q_OBJECT |
|
451 | 453 | public: |
|
452 | 454 | public slots: |
|
453 | 455 | SocExplorerPlot* new_SocExplorerPlot(QWidget* parent = 0); |
|
454 | 456 | void delete_SocExplorerPlot(SocExplorerPlot* obj) { delete obj; } |
|
455 | 457 | int addGraph(SocExplorerPlot* theWrappedObject); |
|
456 | 458 | void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y); |
|
457 | 459 | void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y); |
|
458 | 460 | QPen getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex); |
|
459 | 461 | void keyPressEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1); |
|
460 | 462 | void keyReleaseEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1); |
|
461 | 463 | void mouseMoveEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1); |
|
462 | 464 | void mousePressEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1); |
|
463 | 465 | void mouseReleaseEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1); |
|
464 | 466 | void rescaleAxis(SocExplorerPlot* theWrappedObject); |
|
465 | 467 | void setAdaptativeSampling(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable); |
|
466 | 468 | void setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y); |
|
467 | 469 | void setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle); |
|
468 | 470 | void setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name); |
|
469 | 471 | void setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen); |
|
470 | 472 | void setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle); |
|
471 | 473 | void setLegendFont(SocExplorerPlot* theWrappedObject, QFont font); |
|
472 | 474 | void setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font); |
|
473 | 475 | void setTitle(SocExplorerPlot* theWrappedObject, QString title); |
|
474 | 476 | void setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label); |
|
475 | 477 | void setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper); |
|
476 | 478 | void setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label); |
|
477 | 479 | void setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper); |
|
478 | 480 | void show(SocExplorerPlot* theWrappedObject); |
|
479 | 481 | void wheelEvent(SocExplorerPlot* theWrappedObject, QWheelEvent* arg__1); |
|
480 | 482 | }; |
|
481 | 483 | |
|
482 | 484 | |
|
483 | 485 | |
|
484 | 486 | |
|
485 | 487 | |
|
486 | 488 | class PythonQtShell_TCP_Terminal_Client : public TCP_Terminal_Client |
|
487 | 489 | { |
|
488 | 490 | public: |
|
489 | 491 | PythonQtShell_TCP_Terminal_Client(QObject* parent = 0):TCP_Terminal_Client(parent),_wrapper(NULL) {}; |
|
490 | 492 | |
|
491 | 493 | ~PythonQtShell_TCP_Terminal_Client(); |
|
492 | 494 | |
|
493 | 495 | virtual void childEvent(QChildEvent* arg__1); |
|
494 | 496 | virtual void customEvent(QEvent* arg__1); |
|
495 | 497 | virtual bool event(QEvent* arg__1); |
|
496 | 498 | virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); |
|
497 | 499 | virtual void timerEvent(QTimerEvent* arg__1); |
|
498 | 500 | |
|
499 | 501 | PythonQtInstanceWrapper* _wrapper; |
|
500 | 502 | }; |
|
501 | 503 | |
|
502 | 504 | class PythonQtWrapper_TCP_Terminal_Client : public QObject |
|
503 | 505 | { Q_OBJECT |
|
504 | 506 | public: |
|
505 | 507 | public slots: |
|
506 | 508 | TCP_Terminal_Client* new_TCP_Terminal_Client(QObject* parent = 0); |
|
507 | 509 | void delete_TCP_Terminal_Client(TCP_Terminal_Client* obj) { delete obj; } |
|
508 | 510 | void connectToServer(TCP_Terminal_Client* theWrappedObject); |
|
509 | 511 | void connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port); |
|
510 | 512 | bool isConnected(TCP_Terminal_Client* theWrappedObject); |
|
511 | 513 | void sendText(TCP_Terminal_Client* theWrappedObject, const QString& text); |
|
512 | 514 | void startServer(TCP_Terminal_Client* theWrappedObject); |
|
513 | 515 | void startServer(TCP_Terminal_Client* theWrappedObject, int port); |
|
514 | 516 | }; |
|
515 | 517 | |
|
516 | 518 | |
|
517 | 519 | |
|
518 | 520 | |
|
519 | 521 | |
|
520 | 522 | class PythonQtWrapper_XByteArray : public QObject |
|
521 | 523 | { Q_OBJECT |
|
522 | 524 | public: |
|
523 | 525 | public slots: |
|
524 | 526 | XByteArray* new_XByteArray(); |
|
525 | 527 | void delete_XByteArray(XByteArray* obj) { delete obj; } |
|
526 | 528 | int addressOffset(XByteArray* theWrappedObject); |
|
527 | 529 | int addressWidth(XByteArray* theWrappedObject); |
|
528 | 530 | QChar asciiChar(XByteArray* theWrappedObject, int index); |
|
529 | 531 | QByteArray* data(XByteArray* theWrappedObject); |
|
530 | 532 | bool dataChanged(XByteArray* theWrappedObject, int i); |
|
531 | 533 | QByteArray dataChanged(XByteArray* theWrappedObject, int i, int len); |
|
532 | 534 | QByteArray* insert(XByteArray* theWrappedObject, int i, char ch); |
|
533 | 535 | QByteArray* insert(XByteArray* theWrappedObject, int i, const QByteArray& ba); |
|
534 | 536 | int realAddressNumbers(XByteArray* theWrappedObject); |
|
535 | 537 | QByteArray* remove(XByteArray* theWrappedObject, int pos, int len); |
|
536 | 538 | QByteArray* replace(XByteArray* theWrappedObject, int index, char ch); |
|
537 | 539 | QByteArray* replace(XByteArray* theWrappedObject, int index, const QByteArray& ba); |
|
538 | 540 | QByteArray* replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba); |
|
539 | 541 | void setAddressOffset(XByteArray* theWrappedObject, int offset); |
|
540 | 542 | void setAddressWidth(XByteArray* theWrappedObject, int width); |
|
541 | 543 | void setData(XByteArray* theWrappedObject, QByteArray data); |
|
542 | 544 | void setDataChanged(XByteArray* theWrappedObject, int i, bool state); |
|
543 | 545 | void setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state); |
|
544 | 546 | int size(XByteArray* theWrappedObject); |
|
545 | 547 | QString toRedableString(XByteArray* theWrappedObject, int start = 0, int end = -1); |
|
546 | 548 | }; |
|
547 | 549 | |
|
548 | 550 | |
|
549 | 551 | |
|
550 | 552 | |
|
551 | 553 | |
|
552 |
class PythonQtShell_abstract |
|
|
554 | class PythonQtShell_abstractBinFile : public abstractBinFile | |
|
553 | 555 | { |
|
554 | 556 | public: |
|
555 |
PythonQtShell_abstract |
|
|
557 | PythonQtShell_abstractBinFile():abstractBinFile(),_wrapper(NULL) {}; | |
|
556 | 558 | |
|
557 |
~PythonQtShell_abstract |
|
|
559 | ~PythonQtShell_abstractBinFile(); | |
|
558 | 560 | |
|
559 | 561 | virtual void childEvent(QChildEvent* arg__1); |
|
560 | 562 | virtual int closeFile(); |
|
561 | 563 | virtual void customEvent(QEvent* arg__1); |
|
562 | 564 | virtual bool event(QEvent* arg__1); |
|
563 | 565 | virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); |
|
564 | 566 | virtual QList<codeFragment* > getFragments(); |
|
565 | 567 | virtual bool isopened(); |
|
566 | 568 | virtual bool openFile(const QString& File); |
|
567 | 569 | virtual void timerEvent(QTimerEvent* arg__1); |
|
568 | 570 | |
|
569 | 571 | PythonQtInstanceWrapper* _wrapper; |
|
570 | 572 | }; |
|
571 | 573 | |
|
572 |
class PythonQtWrapper_abstract |
|
|
574 | class PythonQtWrapper_abstractBinFile : public QObject | |
|
573 | 575 | { Q_OBJECT |
|
574 | 576 | public: |
|
575 | 577 | public slots: |
|
576 |
abstract |
|
|
577 |
void delete_abstract |
|
|
578 | abstractBinFile* new_abstractBinFile(); | |
|
579 | void delete_abstractBinFile(abstractBinFile* obj) { delete obj; } | |
|
578 | 580 | }; |
|
579 | 581 | |
|
580 | 582 | |
|
581 | 583 | |
|
582 | 584 | |
|
583 | 585 | |
|
584 | 586 | class PythonQtShell_codeFragment : public codeFragment |
|
585 | 587 | { |
|
586 | 588 | public: |
|
587 | 589 | PythonQtShell_codeFragment():codeFragment(),_wrapper(NULL) {}; |
|
588 |
PythonQtShell_codeFragment(char* data, u |
|
|
590 | PythonQtShell_codeFragment(char* data, quint64 size, quint64 address):codeFragment(data, size, address),_wrapper(NULL) {}; | |
|
589 | 591 | |
|
590 | 592 | ~PythonQtShell_codeFragment(); |
|
591 | 593 | |
|
592 | 594 | |
|
593 | 595 | PythonQtInstanceWrapper* _wrapper; |
|
594 | 596 | }; |
|
595 | 597 | |
|
596 | 598 | class PythonQtWrapper_codeFragment : public QObject |
|
597 | 599 | { Q_OBJECT |
|
598 | 600 | public: |
|
599 | 601 | public slots: |
|
600 | 602 | codeFragment* new_codeFragment(); |
|
601 |
codeFragment* new_codeFragment(char* data, u |
|
|
603 | codeFragment* new_codeFragment(char* data, quint64 size, quint64 address); | |
|
602 | 604 | void delete_codeFragment(codeFragment* obj) { delete obj; } |
|
603 |
void py_set_ |
|
|
604 |
u |
|
|
605 | void py_set_size(codeFragment* theWrappedObject, quint64 size){ theWrappedObject->size = size; } | |
|
606 | quint64 py_get_size(codeFragment* theWrappedObject){ return theWrappedObject->size; } | |
|
607 | void py_set_header(codeFragment* theWrappedObject, QString header){ theWrappedObject->header = header; } | |
|
608 | QString py_get_header(codeFragment* theWrappedObject){ return theWrappedObject->header; } | |
|
609 | void py_set_address(codeFragment* theWrappedObject, quint64 address){ theWrappedObject->address = address; } | |
|
610 | quint64 py_get_address(codeFragment* theWrappedObject){ return theWrappedObject->address; } | |
|
605 | 611 | void py_set_data(codeFragment* theWrappedObject, char* data){ theWrappedObject->data = data; } |
|
606 | 612 | char* py_get_data(codeFragment* theWrappedObject){ return theWrappedObject->data; } |
|
607 | void py_set_size(codeFragment* theWrappedObject, unsigned int size){ theWrappedObject->size = size; } | |
|
608 | unsigned int py_get_size(codeFragment* theWrappedObject){ return theWrappedObject->size; } | |
|
609 | 613 | }; |
|
610 | 614 | |
|
611 | 615 | |
|
612 | 616 | |
|
613 | 617 | |
|
614 | 618 | |
|
615 | 619 | class PythonQtShell_elfFileWidget : public elfFileWidget |
|
616 | 620 | { |
|
617 | 621 | public: |
|
618 | 622 | PythonQtShell_elfFileWidget(QWidget* parent = 0):elfFileWidget(parent),_wrapper(NULL) {}; |
|
619 | 623 | |
|
620 | 624 | ~PythonQtShell_elfFileWidget(); |
|
621 | 625 | |
|
622 | 626 | virtual void actionEvent(QActionEvent* arg__1); |
|
623 | 627 | virtual void changeEvent(QEvent* arg__1); |
|
624 | 628 | virtual void childEvent(QChildEvent* arg__1); |
|
625 | 629 | virtual void closeEvent(QCloseEvent* arg__1); |
|
626 | 630 | virtual void contextMenuEvent(QContextMenuEvent* arg__1); |
|
627 | 631 | virtual void customEvent(QEvent* arg__1); |
|
628 | 632 | virtual int devType() const; |
|
629 | 633 | virtual void dragEnterEvent(QDragEnterEvent* arg__1); |
|
630 | 634 | virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); |
|
631 | 635 | virtual void dragMoveEvent(QDragMoveEvent* arg__1); |
|
632 | 636 | virtual void dropEvent(QDropEvent* arg__1); |
|
633 | 637 | virtual void enterEvent(QEvent* arg__1); |
|
634 | 638 | virtual bool event(QEvent* arg__1); |
|
635 | 639 | virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); |
|
636 | 640 | virtual void focusInEvent(QFocusEvent* arg__1); |
|
637 | 641 | virtual bool focusNextPrevChild(bool next); |
|
638 | 642 | virtual void focusOutEvent(QFocusEvent* arg__1); |
|
639 | 643 | virtual bool hasHeightForWidth() const; |
|
640 | 644 | virtual int heightForWidth(int arg__1) const; |
|
641 | 645 | virtual void hideEvent(QHideEvent* arg__1); |
|
642 | 646 | virtual void initPainter(QPainter* painter) const; |
|
643 | 647 | virtual void inputMethodEvent(QInputMethodEvent* arg__1); |
|
644 | 648 | virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; |
|
645 | 649 | virtual void keyPressEvent(QKeyEvent* arg__1); |
|
646 | 650 | virtual void keyReleaseEvent(QKeyEvent* arg__1); |
|
647 | 651 | virtual void leaveEvent(QEvent* arg__1); |
|
648 | 652 | virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; |
|
649 | 653 | virtual QSize minimumSizeHint() const; |
|
650 | 654 | virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); |
|
651 | 655 | virtual void mouseMoveEvent(QMouseEvent* arg__1); |
|
652 | 656 | virtual void mousePressEvent(QMouseEvent* arg__1); |
|
653 | 657 | virtual void mouseReleaseEvent(QMouseEvent* arg__1); |
|
654 | 658 | virtual void moveEvent(QMoveEvent* arg__1); |
|
655 | 659 | virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); |
|
656 | 660 | virtual QPaintEngine* paintEngine() const; |
|
657 | 661 | virtual void paintEvent(QPaintEvent* arg__1); |
|
658 | 662 | virtual QPaintDevice* redirected(QPoint* offset) const; |
|
659 | 663 | virtual void resizeEvent(QResizeEvent* arg__1); |
|
660 | 664 | virtual QPainter* sharedPainter() const; |
|
661 | 665 | virtual void showEvent(QShowEvent* arg__1); |
|
662 | 666 | virtual QSize sizeHint() const; |
|
663 | 667 | virtual void tabletEvent(QTabletEvent* arg__1); |
|
664 | 668 | virtual void timerEvent(QTimerEvent* arg__1); |
|
665 | 669 | virtual void wheelEvent(QWheelEvent* arg__1); |
|
666 | 670 | |
|
667 | 671 | PythonQtInstanceWrapper* _wrapper; |
|
668 | 672 | }; |
|
669 | 673 | |
|
670 | 674 | class PythonQtWrapper_elfFileWidget : public QObject |
|
671 | 675 | { Q_OBJECT |
|
672 | 676 | public: |
|
673 | 677 | public slots: |
|
674 | 678 | elfFileWidget* new_elfFileWidget(QWidget* parent = 0); |
|
675 | 679 | void delete_elfFileWidget(elfFileWidget* obj) { delete obj; } |
|
676 | 680 | }; |
|
677 | 681 | |
|
678 | 682 | |
|
679 | 683 | |
|
680 | 684 | |
|
681 | 685 | |
|
682 | 686 | class PythonQtShell_elfInfoWdgt : public elfInfoWdgt |
|
683 | 687 | { |
|
684 | 688 | public: |
|
685 | 689 | PythonQtShell_elfInfoWdgt(QWidget* parent = 0):elfInfoWdgt(parent),_wrapper(NULL) {}; |
|
686 | 690 | |
|
687 | 691 | ~PythonQtShell_elfInfoWdgt(); |
|
688 | 692 | |
|
689 | 693 | virtual void actionEvent(QActionEvent* arg__1); |
|
690 | 694 | virtual void changeEvent(QEvent* arg__1); |
|
691 | 695 | virtual void childEvent(QChildEvent* arg__1); |
|
692 | 696 | virtual void closeEvent(QCloseEvent* arg__1); |
|
693 | 697 | virtual void contextMenuEvent(QContextMenuEvent* arg__1); |
|
694 | 698 | virtual void customEvent(QEvent* arg__1); |
|
695 | 699 | virtual int devType() const; |
|
696 | 700 | virtual void dragEnterEvent(QDragEnterEvent* arg__1); |
|
697 | 701 | virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); |
|
698 | 702 | virtual void dragMoveEvent(QDragMoveEvent* arg__1); |
|
699 | 703 | virtual void dropEvent(QDropEvent* arg__1); |
|
700 | 704 | virtual void enterEvent(QEvent* arg__1); |
|
701 | 705 | virtual bool event(QEvent* arg__1); |
|
702 | 706 | virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); |
|
703 | 707 | virtual void focusInEvent(QFocusEvent* arg__1); |
|
704 | 708 | virtual bool focusNextPrevChild(bool next); |
|
705 | 709 | virtual void focusOutEvent(QFocusEvent* arg__1); |
|
706 | 710 | virtual bool hasHeightForWidth() const; |
|
707 | 711 | virtual int heightForWidth(int arg__1) const; |
|
708 | 712 | virtual void hideEvent(QHideEvent* arg__1); |
|
709 | 713 | virtual void initPainter(QPainter* painter) const; |
|
710 | 714 | virtual void inputMethodEvent(QInputMethodEvent* arg__1); |
|
711 | 715 | virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; |
|
712 | 716 | virtual void keyPressEvent(QKeyEvent* arg__1); |
|
713 | 717 | virtual void keyReleaseEvent(QKeyEvent* arg__1); |
|
714 | 718 | virtual void leaveEvent(QEvent* arg__1); |
|
715 | 719 | virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; |
|
716 | 720 | virtual QSize minimumSizeHint() const; |
|
717 | 721 | virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); |
|
718 | 722 | virtual void mouseMoveEvent(QMouseEvent* arg__1); |
|
719 | 723 | virtual void mousePressEvent(QMouseEvent* arg__1); |
|
720 | 724 | virtual void mouseReleaseEvent(QMouseEvent* arg__1); |
|
721 | 725 | virtual void moveEvent(QMoveEvent* arg__1); |
|
722 | 726 | virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); |
|
723 | 727 | virtual QPaintEngine* paintEngine() const; |
|
724 | 728 | virtual void paintEvent(QPaintEvent* arg__1); |
|
725 | 729 | virtual QPaintDevice* redirected(QPoint* offset) const; |
|
726 | 730 | virtual void resizeEvent(QResizeEvent* arg__1); |
|
727 | 731 | virtual QPainter* sharedPainter() const; |
|
728 | 732 | virtual void showEvent(QShowEvent* arg__1); |
|
729 | 733 | virtual QSize sizeHint() const; |
|
730 | 734 | virtual void tabletEvent(QTabletEvent* arg__1); |
|
731 | 735 | virtual void timerEvent(QTimerEvent* arg__1); |
|
732 | 736 | virtual void wheelEvent(QWheelEvent* arg__1); |
|
733 | 737 | |
|
734 | 738 | PythonQtInstanceWrapper* _wrapper; |
|
735 | 739 | }; |
|
736 | 740 | |
|
737 | 741 | class PythonQtWrapper_elfInfoWdgt : public QObject |
|
738 | 742 | { Q_OBJECT |
|
739 | 743 | public: |
|
740 | 744 | public slots: |
|
741 | 745 | elfInfoWdgt* new_elfInfoWdgt(QWidget* parent = 0); |
|
742 | 746 | void delete_elfInfoWdgt(elfInfoWdgt* obj) { delete obj; } |
|
743 | 747 | }; |
|
744 | 748 | |
|
745 | 749 | |
|
746 | 750 | |
|
747 | 751 | |
|
748 | 752 | |
|
749 | 753 | class PythonQtWrapper_elfparser : public QObject |
|
750 | 754 | { Q_OBJECT |
|
751 | 755 | public: |
|
752 | 756 | public slots: |
|
753 | 757 | elfparser* new_elfparser(); |
|
754 | 758 | void delete_elfparser(elfparser* obj) { delete obj; } |
|
755 | 759 | int closeFile(elfparser* theWrappedObject); |
|
756 | 760 | QString getABI(elfparser* theWrappedObject); |
|
757 | 761 | QString getArchitecture(elfparser* theWrappedObject); |
|
758 | 762 | QString getClass(elfparser* theWrappedObject); |
|
759 | 763 | QString getEndianness(elfparser* theWrappedObject); |
|
760 | 764 | qint64 getEntryPointAddress(elfparser* theWrappedObject); |
|
761 | 765 | bool getSectionData(elfparser* theWrappedObject, int index, char** buffer); |
|
762 | 766 | qint64 getSectionDatasz(elfparser* theWrappedObject, int index); |
|
763 | 767 | qint64 getSectionMemsz(elfparser* theWrappedObject, int index); |
|
764 | 768 | QString getSectionName(elfparser* theWrappedObject, int index); |
|
765 | 769 | qint64 getSectionPaddr(elfparser* theWrappedObject, int index); |
|
766 | 770 | QString getSectionType(elfparser* theWrappedObject, int index); |
|
767 | 771 | int getSectioncount(elfparser* theWrappedObject); |
|
768 | 772 | qint64 getSegmentFilesz(elfparser* theWrappedObject, int index); |
|
769 | 773 | QString getSegmentFlags(elfparser* theWrappedObject, int index); |
|
770 | 774 | qint64 getSegmentMemsz(elfparser* theWrappedObject, int index); |
|
771 | 775 | qint64 getSegmentOffset(elfparser* theWrappedObject, int index); |
|
772 | 776 | qint64 getSegmentPaddr(elfparser* theWrappedObject, int index); |
|
773 | 777 | QString getSegmentType(elfparser* theWrappedObject, int index); |
|
774 | 778 | qint64 getSegmentVaddr(elfparser* theWrappedObject, int index); |
|
775 | 779 | int getSegmentcount(elfparser* theWrappedObject); |
|
776 | 780 | QString getType(elfparser* theWrappedObject); |
|
777 | 781 | qint64 getVersion(elfparser* theWrappedObject); |
|
778 | 782 | bool static_elfparser_isElf(const QString& File); |
|
779 | 783 | bool iself(elfparser* theWrappedObject); |
|
780 | 784 | bool isopened(elfparser* theWrappedObject); |
|
781 | 785 | int setFilename(elfparser* theWrappedObject, const QString& name); |
|
782 | 786 | }; |
|
783 | 787 | |
|
784 | 788 | |
|
785 | 789 | |
|
786 | 790 | |
|
787 | 791 | |
|
788 | 792 | class PythonQtShell_srecFile : public srecFile |
|
789 | 793 | { |
|
790 | 794 | public: |
|
791 | 795 | PythonQtShell_srecFile():srecFile(),_wrapper(NULL) {}; |
|
792 | 796 | PythonQtShell_srecFile(const QString& File):srecFile(File),_wrapper(NULL) {}; |
|
793 | 797 | PythonQtShell_srecFile(const QStringList& Files):srecFile(Files),_wrapper(NULL) {}; |
|
794 | 798 | |
|
795 | 799 | ~PythonQtShell_srecFile(); |
|
796 | 800 | |
|
797 | 801 | virtual int closeFile(); |
|
798 | 802 | virtual QList<codeFragment* > getFragments(); |
|
799 | 803 | virtual bool isopened(); |
|
800 | 804 | virtual bool openFile(const QString& File); |
|
801 | 805 | |
|
802 | 806 | PythonQtInstanceWrapper* _wrapper; |
|
803 | 807 | }; |
|
804 | 808 | |
|
805 | 809 | class PythonQtPublicPromoter_srecFile : public srecFile |
|
806 | 810 | { public: |
|
807 | 811 | inline int promoted_closeFile() { return srecFile::closeFile(); } |
|
808 | 812 | inline QList<codeFragment* > promoted_getFragments() { return srecFile::getFragments(); } |
|
809 | 813 | inline bool promoted_isopened() { return srecFile::isopened(); } |
|
810 | 814 | inline bool promoted_openFile(const QString& File) { return srecFile::openFile(File); } |
|
811 | 815 | }; |
|
812 | 816 | |
|
813 | 817 | class PythonQtWrapper_srecFile : public QObject |
|
814 | 818 | { Q_OBJECT |
|
815 | 819 | public: |
|
816 | 820 | public slots: |
|
817 | 821 | srecFile* new_srecFile(); |
|
818 | 822 | srecFile* new_srecFile(const QString& File); |
|
819 | 823 | srecFile* new_srecFile(const QStringList& Files); |
|
820 | 824 | void delete_srecFile(srecFile* obj) { delete obj; } |
|
821 | 825 | int closeFile(srecFile* theWrappedObject); |
|
826 | int getFragmentAddress(srecFile* theWrappedObject, int index); | |
|
827 | bool getFragmentData(srecFile* theWrappedObject, int index, char** buffer); | |
|
828 | QString getFragmentHeader(srecFile* theWrappedObject, int index); | |
|
829 | int getFragmentSize(srecFile* theWrappedObject, int index); | |
|
822 | 830 | QList<codeFragment* > getFragments(srecFile* theWrappedObject); |
|
831 | int getFragmentsCount(srecFile* theWrappedObject); | |
|
832 | bool isSREC(srecFile* theWrappedObject); | |
|
833 | bool static_srecFile_isSREC(const QString& File); | |
|
823 | 834 | bool isopened(srecFile* theWrappedObject); |
|
835 | int lineCount(srecFile* theWrappedObject); | |
|
824 | 836 | bool openFile(srecFile* theWrappedObject, const QString& File); |
|
825 | 837 | bool openFiles(srecFile* theWrappedObject, const QStringList& Files); |
|
838 | bool static_srecFile_toSrec(QList<codeFragment* > fragments, const QString& File); | |
|
826 | 839 | }; |
|
827 | 840 | |
|
828 | 841 | |
|
842 | ||
|
843 | ||
|
844 | ||
|
845 | class PythonQtShell_srecFileWidget : public srecFileWidget | |
|
846 | { | |
|
847 | public: | |
|
848 | PythonQtShell_srecFileWidget(QWidget* parent = 0):srecFileWidget(parent),_wrapper(NULL) {}; | |
|
849 | ||
|
850 | ~PythonQtShell_srecFileWidget(); | |
|
851 | ||
|
852 | virtual void actionEvent(QActionEvent* arg__1); | |
|
853 | virtual void changeEvent(QEvent* arg__1); | |
|
854 | virtual void childEvent(QChildEvent* arg__1); | |
|
855 | virtual void closeEvent(QCloseEvent* arg__1); | |
|
856 | virtual void contextMenuEvent(QContextMenuEvent* arg__1); | |
|
857 | virtual void customEvent(QEvent* arg__1); | |
|
858 | virtual int devType() const; | |
|
859 | virtual void dragEnterEvent(QDragEnterEvent* arg__1); | |
|
860 | virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); | |
|
861 | virtual void dragMoveEvent(QDragMoveEvent* arg__1); | |
|
862 | virtual void dropEvent(QDropEvent* arg__1); | |
|
863 | virtual void enterEvent(QEvent* arg__1); | |
|
864 | virtual bool event(QEvent* arg__1); | |
|
865 | virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | |
|
866 | virtual void focusInEvent(QFocusEvent* arg__1); | |
|
867 | virtual bool focusNextPrevChild(bool next); | |
|
868 | virtual void focusOutEvent(QFocusEvent* arg__1); | |
|
869 | virtual bool hasHeightForWidth() const; | |
|
870 | virtual int heightForWidth(int arg__1) const; | |
|
871 | virtual void hideEvent(QHideEvent* arg__1); | |
|
872 | virtual void initPainter(QPainter* painter) const; | |
|
873 | virtual void inputMethodEvent(QInputMethodEvent* arg__1); | |
|
874 | virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; | |
|
875 | virtual void keyPressEvent(QKeyEvent* arg__1); | |
|
876 | virtual void keyReleaseEvent(QKeyEvent* arg__1); | |
|
877 | virtual void leaveEvent(QEvent* arg__1); | |
|
878 | virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; | |
|
879 | virtual QSize minimumSizeHint() const; | |
|
880 | virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); | |
|
881 | virtual void mouseMoveEvent(QMouseEvent* arg__1); | |
|
882 | virtual void mousePressEvent(QMouseEvent* arg__1); | |
|
883 | virtual void mouseReleaseEvent(QMouseEvent* arg__1); | |
|
884 | virtual void moveEvent(QMoveEvent* arg__1); | |
|
885 | virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); | |
|
886 | virtual QPaintEngine* paintEngine() const; | |
|
887 | virtual void paintEvent(QPaintEvent* arg__1); | |
|
888 | virtual QPaintDevice* redirected(QPoint* offset) const; | |
|
889 | virtual void resizeEvent(QResizeEvent* arg__1); | |
|
890 | virtual QPainter* sharedPainter() const; | |
|
891 | virtual void showEvent(QShowEvent* arg__1); | |
|
892 | virtual QSize sizeHint() const; | |
|
893 | virtual void tabletEvent(QTabletEvent* arg__1); | |
|
894 | virtual void timerEvent(QTimerEvent* arg__1); | |
|
895 | virtual void wheelEvent(QWheelEvent* arg__1); | |
|
896 | ||
|
897 | PythonQtInstanceWrapper* _wrapper; | |
|
898 | }; | |
|
899 | ||
|
900 | class PythonQtWrapper_srecFileWidget : public QObject | |
|
901 | { Q_OBJECT | |
|
902 | public: | |
|
903 | public slots: | |
|
904 | srecFileWidget* new_srecFileWidget(QWidget* parent = 0); | |
|
905 | void delete_srecFileWidget(srecFileWidget* obj) { delete obj; } | |
|
906 | }; | |
|
907 | ||
|
908 |
@@ -1,22 +1,23 | |||
|
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()->registerClass(&ElfFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_ElfFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_ElfFile>, module, 0); |
|
7 |
PythonQt::self()->addParentClass("ElfFile", "abstract |
|
|
7 | PythonQt::self()->addParentClass("ElfFile", "abstractBinFile",PythonQtUpcastingOffset<ElfFile,abstractBinFile>()); | |
|
8 | 8 | PythonQt::priv()->registerClass(&MemSizeWdgt::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_MemSizeWdgt>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_MemSizeWdgt>, module, 0); |
|
9 | 9 | PythonQt::priv()->registerClass(&QHexEdit::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_QHexEdit>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHexEdit>, module, 0); |
|
10 | 10 | PythonQt::priv()->registerClass(&QHexSpinBox::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_QHexSpinBox>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHexSpinBox>, module, 0); |
|
11 | 11 | PythonQt::priv()->registerClass(&SocExplorerPlot::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_SocExplorerPlot>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_SocExplorerPlot>, module, 0); |
|
12 | 12 | PythonQt::priv()->registerClass(&TCP_Terminal_Client::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_TCP_Terminal_Client>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_TCP_Terminal_Client>, module, 0); |
|
13 | 13 | PythonQt::priv()->registerCPPClass("XByteArray", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_XByteArray>, NULL, module, 0); |
|
14 | PythonQt::priv()->registerClass(&abstractExecFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_abstractExecFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_abstractExecFile>, module, 0); | |
|
14 | PythonQt::priv()->registerClass(&abstractBinFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_abstractBinFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_abstractBinFile>, module, 0); | |
|
15 | 15 | PythonQt::priv()->registerCPPClass("codeFragment", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_codeFragment>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_codeFragment>, module, 0); |
|
16 | 16 | PythonQt::priv()->registerClass(&elfFileWidget::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_elfFileWidget>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_elfFileWidget>, module, 0); |
|
17 | 17 | PythonQt::priv()->registerClass(&elfInfoWdgt::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_elfInfoWdgt>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_elfInfoWdgt>, module, 0); |
|
18 | 18 | PythonQt::priv()->registerCPPClass("elfparser", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_elfparser>, NULL, module, 0); |
|
19 | 19 | PythonQt::priv()->registerClass(&srecFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_srecFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_srecFile>, module, 0); |
|
20 |
PythonQt::self()->addParentClass("srecFile", "abstract |
|
|
20 | PythonQt::self()->addParentClass("srecFile", "abstractBinFile",PythonQtUpcastingOffset<srecFile,abstractBinFile>()); | |
|
21 | PythonQt::priv()->registerClass(&srecFileWidget::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_srecFileWidget>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_srecFileWidget>, module, 0); | |
|
21 | 22 | |
|
22 | 23 | } |
@@ -1,56 +1,62 | |||
|
1 | 1 | <typesystem package="PySocExplorer" default-superclass="com.trolltech.qt.QtJambiObject"> |
|
2 | 2 | <load-typesystem name=":/trolltech/generator/typesystem_core.txt" generate="no" /> |
|
3 | 3 | <load-typesystem name=":/trolltech/generator/typesystem_gui.txt" generate="no" /> |
|
4 | 4 | <load-typesystem name=":/trolltech/generator/typesystem_network.txt" generate="no" /> |
|
5 | 5 | |
|
6 | 6 | |
|
7 | 7 | <object-type name="QHexSpinBox"> |
|
8 | 8 | <extra-includes> |
|
9 | 9 | <include file-name="QWidget" location="global"/> |
|
10 | 10 | <include file-name="QObject" location="global"/> |
|
11 | 11 | <include file-name="QSpinBox" location="global"/> |
|
12 | 12 | </extra-includes> |
|
13 | 13 | </object-type> |
|
14 | 14 | <object-type name="MemSizeWdgt" /> |
|
15 | 15 | <object-type name="QHexEdit" /> |
|
16 | 16 | <object-type name="XByteArray" /> |
|
17 | 17 | <object-type name="SocExplorerPlot" /> |
|
18 | 18 | <object-type name="TCP_Terminal_Client" /> |
|
19 | 19 | <object-type name="codeFragment" /> |
|
20 | 20 | <object-type name="srecFile" /> |
|
21 | 21 | <rejection class="Elf_Section"/> |
|
22 | 22 | <object-type name="elfparser" /> |
|
23 |
<interface-type name="abstract |
|
|
23 | <interface-type name="abstractBinFile"> | |
|
24 | 24 | <extra-includes> |
|
25 | 25 | <include file-name="QWidget" location="global"/> |
|
26 | 26 | <include file-name="QObject" location="global"/> |
|
27 | 27 | </extra-includes> |
|
28 | 28 | </interface-type> |
|
29 | 29 | <object-type name="ElfFile"> |
|
30 | 30 | <extra-includes> |
|
31 | 31 | <include file-name="QWidget" location="global"/> |
|
32 | 32 | <include file-name="QObject" location="global"/> |
|
33 | 33 | </extra-includes> |
|
34 | 34 | </object-type> |
|
35 | 35 | <object-type name="elfFileWidget"> |
|
36 | 36 | <extra-includes> |
|
37 | 37 | <include file-name="QWidget" location="global"/> |
|
38 | 38 | <include file-name="QObject" location="global"/> |
|
39 | 39 | </extra-includes> |
|
40 | 40 | </object-type> |
|
41 | <object-type name="srecFileWidget"> | |
|
42 | <extra-includes> | |
|
43 | <include file-name="QWidget" location="global"/> | |
|
44 | <include file-name="QObject" location="global"/> | |
|
45 | </extra-includes> | |
|
46 | </object-type> | |
|
41 | 47 | <object-type name="elfInfoWdgt"> |
|
42 | 48 | <extra-includes> |
|
43 | 49 | <include file-name="QWidget" location="global"/> |
|
44 | 50 | <include file-name="QObject" location="global"/> |
|
45 | 51 | </extra-includes> |
|
46 | 52 | </object-type> |
|
47 | 53 | |
|
48 | 54 | </typesystem> |
|
49 | 55 | |
|
50 | 56 | |
|
51 | 57 | |
|
52 | 58 | |
|
53 | 59 | |
|
54 | 60 | |
|
55 | 61 | |
|
56 | 62 |
@@ -1,154 +1,319 | |||
|
1 | 1 | #include "srecfile.h" |
|
2 | #include <QTextStream> | |
|
2 | 3 | |
|
3 | 4 | srecFile::srecFile() |
|
4 | 5 | { |
|
5 | 6 | } |
|
6 | 7 | |
|
7 | 8 | srecFile::srecFile(const QString &File) |
|
8 | 9 | { |
|
9 | 10 | openFile(File); |
|
10 | 11 | } |
|
11 | 12 | |
|
12 | 13 | srecFile::srecFile(const QStringList &Files) |
|
13 | 14 | { |
|
14 | 15 | openFiles(Files); |
|
15 | 16 | } |
|
16 | 17 | |
|
17 | 18 | srecFile::~srecFile() |
|
18 | 19 | { |
|
19 | 20 | |
|
20 | 21 | } |
|
21 | 22 | |
|
22 | 23 | bool srecFile::openFile(const QString &File) |
|
23 | 24 | { |
|
24 | openFiles(QStringList()<<File); | |
|
25 | return openFiles(QStringList()<<File); | |
|
25 | 26 | } |
|
26 | 27 | |
|
27 | 28 | bool srecFile::openFiles(const QStringList &Files) |
|
28 | 29 | { |
|
29 | 30 | this->p_fileNames.clear(); |
|
30 | 31 | this->p_fileNames.append(Files); |
|
31 | 32 | for(int i=0;i<p_files.count();i++) |
|
32 | 33 | { |
|
33 | 34 | delete p_files.at(i); |
|
34 | 35 | } |
|
35 | 36 | this->p_files.clear(); |
|
36 | 37 | for(int i=0;i<Files.count();i++) |
|
37 | 38 | { |
|
39 | this->p_isSrec=true; | |
|
40 | this->p_isSrec &= isSREC(Files.at(i)); | |
|
38 | 41 | this->p_files.append(new QFile(Files.at(i))); |
|
39 | 42 | this->p_files.at(i)->open(QIODevice::ReadOnly); |
|
40 | 43 | parseFile(this->p_files.at(i)); |
|
41 | 44 | } |
|
45 | return true; | |
|
42 | 46 | } |
|
43 | 47 | |
|
44 | 48 | bool srecFile::isopened() |
|
45 | 49 | { |
|
46 | 50 | bool opened = true; |
|
47 | 51 | for(int i=0;i<this->p_files.count();i++) |
|
48 | 52 | { |
|
49 | 53 | opened &= p_files.at(i)->isOpen(); |
|
50 | 54 | } |
|
51 | 55 | return opened; |
|
52 | 56 | } |
|
53 | 57 | |
|
54 | 58 | int srecFile::closeFile() |
|
55 | 59 | { |
|
56 | ||
|
60 | for(int i=0;i<p_files.count();i++) | |
|
61 | { | |
|
62 | delete p_files.at(i); | |
|
63 | } | |
|
64 | p_files.clear(); | |
|
65 | p_fileName.clear(); | |
|
57 | 66 | } |
|
58 | 67 | |
|
59 | 68 | QList<codeFragment *> srecFile::getFragments() |
|
60 | 69 | { |
|
61 | 70 | return p_fragments; |
|
62 | 71 | } |
|
63 | 72 | |
|
73 | bool srecFile::toSrec(QList<codeFragment *> fragments, const QString &File) | |
|
74 | { | |
|
75 | QString line; | |
|
76 | QFile file(File); | |
|
77 | file.open(QIODevice::WriteOnly); | |
|
78 | if(file.isOpen()) | |
|
79 | { | |
|
80 | QTextStream stream( &file ); | |
|
81 | //First build header | |
|
82 | line.append("S0"); | |
|
83 | line.append(QString("%1").arg(File.count()+3,2,16).replace(' ','0')); | |
|
84 | line.append("0000"); | |
|
85 | for(int i=0;i<File.count();i++) | |
|
86 | { | |
|
87 | line.append(QString("%1").arg((uchar)File.at(i).toLatin1(),2,16).replace(' ','0')); | |
|
88 | } | |
|
89 | line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0')); | |
|
90 | line.append('\n'); | |
|
91 | stream << line.toUpper(); | |
|
92 | for(int i=0;i<fragments.count();i++) | |
|
93 | { | |
|
94 | codeFragment *fragment = fragments.at(i); | |
|
95 | for(int j=0;j<(int)(fragment->size);j+=16) | |
|
96 | { | |
|
97 | line.clear(); | |
|
98 | line.append("S315"); | |
|
99 | line.append(QString("%1").arg(fragment->address+j,8,16).replace(' ','0')); | |
|
100 | for(int k=0;k<16;k++) | |
|
101 | { | |
|
102 | line.append(QString("%1").arg((uchar)fragment->data[j+k],2,16).replace(' ','0')); | |
|
103 | } | |
|
104 | line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0')); | |
|
105 | line.append('\n'); | |
|
106 | stream << line.toUpper(); | |
|
107 | } | |
|
108 | int rem = fragment->size%16; | |
|
109 | if(rem) | |
|
110 | { | |
|
111 | line.clear(); | |
|
112 | line.append("S3"); | |
|
113 | line.append(QString("%1").arg(rem,2,16).replace(' ','0')); | |
|
114 | line.append(QString("%1").arg(fragment->address+fragment->size-rem,8,16).replace(' ','0')); | |
|
115 | for(int k=0;k<rem;k++) | |
|
116 | { | |
|
117 | line.append(QString("%1").arg((uchar)fragment->data[fragment->size-rem+k],2,16).replace(' ','0')); | |
|
118 | } | |
|
119 | line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0')); | |
|
120 | line.append('\n'); | |
|
121 | stream << line.toUpper(); | |
|
122 | } | |
|
123 | line.clear(); | |
|
124 | line.append("S705"); | |
|
125 | line.append(QString("%1").arg(fragment->address,8,16).replace(' ','0')); | |
|
126 | line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0')); | |
|
127 | line.append('\n'); | |
|
128 | stream << line.toUpper(); | |
|
129 | } | |
|
130 | file.close(); | |
|
131 | return true; | |
|
132 | } | |
|
133 | ||
|
134 | return false; | |
|
135 | } | |
|
136 | ||
|
137 | int srecFile::lineCount() | |
|
138 | { | |
|
139 | return p_lineCount; | |
|
140 | } | |
|
141 | ||
|
142 | int srecFile::getFragmentsCount() | |
|
143 | { | |
|
144 | return p_fragments.count(); | |
|
145 | } | |
|
146 | ||
|
147 | int srecFile::getFragmentAddress(int index) | |
|
148 | { | |
|
149 | if((index < p_fragments.count()) && (index>=0)) | |
|
150 | { | |
|
151 | return p_fragments.at(index)->address; | |
|
152 | } | |
|
153 | return 0; | |
|
154 | } | |
|
155 | ||
|
156 | int srecFile::getFragmentSize(int index) | |
|
157 | { | |
|
158 | if((index < p_fragments.count()) && (index>=0)) | |
|
159 | { | |
|
160 | return p_fragments.at(index)->size; | |
|
161 | } | |
|
162 | return 0; | |
|
163 | } | |
|
164 | ||
|
165 | QString srecFile::getFragmentHeader(int index) | |
|
166 | { | |
|
167 | if((index < p_fragments.count()) && (index>=0)) | |
|
168 | { | |
|
169 | return p_fragments.at(index)->header; | |
|
170 | } | |
|
171 | return ""; | |
|
172 | } | |
|
173 | ||
|
174 | bool srecFile::getFragmentData(int index, char **buffer) | |
|
175 | { | |
|
176 | ||
|
177 | if((index < p_fragments.count()) && (index>=0)) | |
|
178 | { | |
|
179 | *buffer = (char *)this->p_fragments.at(index)->data; | |
|
180 | return true; | |
|
181 | } | |
|
182 | return false; | |
|
183 | } | |
|
184 | ||
|
185 | bool srecFile::isSREC() | |
|
186 | { | |
|
187 | return p_isSrec & isopened(); | |
|
188 | } | |
|
189 | ||
|
190 | bool srecFile::isSREC(const QString &File) | |
|
191 | { | |
|
192 | QFile file(File); | |
|
193 | file.open(QIODevice::ReadOnly); | |
|
194 | if(file.isOpen()) | |
|
195 | { | |
|
196 | file.seek(0); | |
|
197 | QString line=file.readLine(); | |
|
198 | file.close(); | |
|
199 | return ((line.at(0)=='S')&&(line.at(1)=='0')); | |
|
200 | } | |
|
201 | return false; | |
|
202 | } | |
|
203 | ||
|
64 | 204 | void srecFile::parseFile(QFile *file) |
|
65 | 205 | { |
|
66 | 206 | if(file->isOpen()) |
|
67 | 207 | { |
|
208 | this->p_lineCount = 0; | |
|
68 | 209 | file->seek(0); |
|
69 | 210 | codeFragment* fragment=NULL; |
|
70 | 211 | QByteArray data; |
|
71 |
quint |
|
|
72 |
quint |
|
|
212 | quint64 size=0; | |
|
213 | quint64 address=-1; | |
|
214 | QString header; | |
|
73 | 215 | while (!file->atEnd()) |
|
74 | 216 | { |
|
75 | 217 | QString line = file->readLine(); |
|
218 | p_lineCount++; | |
|
76 | 219 | if(line.count()>4) |
|
77 | 220 | { |
|
78 | 221 | if(line.at(0)=='S') |
|
79 | 222 | { |
|
80 | 223 | bool ok; |
|
81 | 224 | int count = line.mid(2,2).toInt(&ok,16); |
|
82 | 225 | if(line.at(1)=='0') |
|
83 | 226 | { |
|
227 | header.clear(); | |
|
228 | for(int i=0;i<(count-3);i++) | |
|
229 | { | |
|
230 | header.append((char)line.mid((2*i)+8,2).toInt(&ok,16)); | |
|
231 | } | |
|
84 | 232 | } |
|
85 | 233 | if(line.at(1)=='1') |
|
86 | 234 | { |
|
87 | 235 | } |
|
88 | 236 | if(line.at(1)=='2') |
|
89 | 237 | { |
|
90 | 238 | |
|
91 | 239 | } |
|
92 | 240 | if(line.at(1)=='3') |
|
93 | 241 | { |
|
94 | 242 | int naddress =line.mid(4,8).toInt(&ok,16); |
|
95 | 243 | if(address !=naddress) |
|
96 | 244 | { |
|
97 | 245 | if(fragment!=NULL) |
|
98 | 246 | { |
|
99 | 247 | fragment->size = data.size(); |
|
100 | 248 | fragment->data = (char*)malloc(data.size()); |
|
101 | 249 | for(int i =0;i<data.size();i++) |
|
102 | 250 | { |
|
103 | 251 | fragment->data[i]=data.at(i); |
|
104 | 252 | } |
|
105 | 253 | data.clear(); |
|
106 | 254 | p_fragments.append(fragment); |
|
107 | 255 | } |
|
108 | 256 | fragment = new codeFragment(); |
|
109 | 257 | fragment->address = naddress; |
|
258 | fragment->header = header; | |
|
110 | 259 | } |
|
111 | 260 | address = naddress+count-5; |
|
112 | 261 | for(int i=0;i<(count-5);i++) |
|
113 | 262 | { |
|
114 |
data.append((char)line.mid((2*i)+ |
|
|
263 | data.append((char)line.mid((2*i)+12,2).toInt(&ok,16)); | |
|
115 | 264 | } |
|
116 | 265 | } |
|
117 | 266 | if(line.at(1)=='5') |
|
118 | 267 | { |
|
119 | 268 | |
|
120 | 269 | } |
|
121 | 270 | if(line.at(1)=='6') |
|
122 | 271 | { |
|
123 | 272 | |
|
124 | 273 | } |
|
125 | 274 | if(line.at(1)=='7') |
|
126 | 275 | { |
|
127 | 276 | |
|
128 | 277 | } |
|
129 | 278 | if(line.at(1)=='8') |
|
130 | 279 | { |
|
131 | 280 | |
|
132 | 281 | } |
|
133 | 282 | if(line.at(1)=='9') |
|
134 | 283 | { |
|
135 | 284 | |
|
136 | 285 | } |
|
137 | 286 | } |
|
138 | 287 | } |
|
139 | 288 | } |
|
140 | 289 | if(data.size()!=0) |
|
141 | 290 | { |
|
142 | 291 | fragment->size = data.size(); |
|
143 | 292 | fragment->data = (char*)malloc(data.size()); |
|
144 | 293 | for(int i =0;i<data.size();i++) |
|
145 | 294 | { |
|
146 | 295 | fragment->data[i]=data.at(i); |
|
147 | 296 | } |
|
148 | 297 | data.clear(); |
|
149 | 298 | p_fragments.append(fragment); |
|
150 | 299 | } |
|
151 | 300 | |
|
152 | 301 | } |
|
153 | 302 | } |
|
154 | 303 | |
|
304 | char srecFile::lineCheckSum(const QString &line) | |
|
305 | { | |
|
306 | char sum=0; | |
|
307 | QString localLine = line; | |
|
308 | bool ok; | |
|
309 | if(localLine.at(0)=='S') // then should skip the first two digits | |
|
310 | { | |
|
311 | localLine.remove(0,2); | |
|
312 | } | |
|
313 | for(int i=0;i<localLine.count();i+=2) | |
|
314 | { | |
|
315 | sum+=(char)(localLine.mid(i,2).toInt(&ok,16)); | |
|
316 | } | |
|
317 | return ~sum; | |
|
318 | } | |
|
319 |
@@ -1,34 +1,46 | |||
|
1 | 1 | #ifndef SRECFILE_H |
|
2 | 2 | #define SRECFILE_H |
|
3 | 3 | |
|
4 | 4 | #include <QObject> |
|
5 |
#include <abstract |
|
|
5 | #include <abstractbinfile.h> | |
|
6 | 6 | #include <QFile> |
|
7 | 7 | #include <QStringList> |
|
8 | 8 | |
|
9 |
class srecFile : public abstract |
|
|
9 | class srecFile : public abstractBinFile | |
|
10 | 10 | { |
|
11 | 11 | Q_OBJECT |
|
12 | 12 | public: |
|
13 | 13 | explicit srecFile(); |
|
14 | 14 | srecFile(const QString& File); |
|
15 | 15 | srecFile(const QStringList& Files); |
|
16 | 16 | ~srecFile(); |
|
17 | 17 | bool openFile(const QString& File); |
|
18 | 18 | bool openFiles(const QStringList& Files); |
|
19 | 19 | bool isopened(); |
|
20 | 20 | int closeFile(); |
|
21 | 21 | QList<codeFragment*> getFragments(); |
|
22 | static bool toSrec(QList<codeFragment*> fragments,const QString& File); | |
|
23 | int lineCount(); | |
|
24 | int getFragmentsCount(); | |
|
25 | int getFragmentAddress(int index); | |
|
26 | int getFragmentSize(int index); | |
|
27 | QString getFragmentHeader(int index); | |
|
28 | bool getFragmentData(int index, char **buffer); | |
|
22 | 29 | |
|
30 | bool isSREC(); | |
|
31 | static bool isSREC(const QString& File); | |
|
23 | 32 | signals: |
|
24 | 33 | |
|
25 | 34 | public slots: |
|
26 | 35 | private: |
|
27 | 36 | void parseFile(QFile* file); |
|
37 | static char lineCheckSum(const QString& line); | |
|
28 | 38 | QStringList p_fileNames; |
|
29 | 39 | QList<QFile*>p_files; |
|
30 | 40 | QList<codeFragment*> p_fragments; |
|
41 | int p_lineCount; | |
|
42 | bool p_isSrec; | |
|
31 | 43 | |
|
32 | 44 | }; |
|
33 | 45 | |
|
34 | 46 | #endif // SRECFILE_H |
General Comments 0
You need to be logged in to leave comments.
Login now