##// END OF EJS Templates
added binary file loader, improved elf and srec loaders
jeandet -
r47:f8c5117dac7c default
parent child
Show More
@@ -0,0 +1,150
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 --
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 2 of the License, or
8 -- (at your option) any later version.
9 --
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
14 --
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
22 #include "binaryfile.h"
23
24 binaryFile::binaryFile()
25 {
26 }
27
28 binaryFile::binaryFile(const QString &File)
29 {
30 openFile(File);
31 }
32
33 binaryFile::binaryFile(const QStringList &Files)
34 {
35 openFiles(Files);
36 }
37
38 binaryFile::~binaryFile()
39 {
40
41 }
42
43 bool binaryFile::openFile(const QString &File)
44 {
45 return openFiles(QStringList()<<File);
46 }
47
48 bool binaryFile::openFiles(const QStringList &Files)
49 {
50 this->p_fileNames.clear();
51 this->p_fileNames.append(Files);
52 for(int i=0;i<p_files.count();i++)
53 {
54 delete p_files.at(i);
55 }
56 this->p_files.clear();
57 for(int i=0;i<Files.count();i++)
58 {
59 this->p_files.append(new QFile(Files.at(i)));
60 this->p_files.at(i)->open(QIODevice::ReadOnly);
61 loadFile(this->p_files.at(i));
62 }
63 return true;
64 }
65
66 bool binaryFile::isopened()
67 {
68 bool opened = true;
69 for(int i=0;i<this->p_files.count();i++)
70 {
71 opened &= p_files.at(i)->isOpen();
72 }
73 return opened;
74 }
75
76 int binaryFile::closeFile()
77 {
78 for(int i=0;i<p_files.count();i++)
79 {
80 delete p_files.at(i);
81 for(int j=0;j<p_fragments.count();j++)
82 {
83 if(p_fragments.at(j)->header == p_files.at(i)->fileName())
84 {
85 codeFragment* fragment = p_fragments.at(j);
86 p_fragments.removeAt(j);
87 free(fragment->data);
88 delete fragment;
89 }
90 }
91 }
92 p_files.clear();
93 p_fileName.clear();
94 return 0;
95 }
96
97 QList<codeFragment *> binaryFile::getFragments()
98 {
99 return p_fragments;
100 }
101
102 int binaryFile::getFragmentsCount()
103 {
104 return p_fragments.count();
105 }
106
107 int binaryFile::getFragmentAddress(int index)
108 {
109 if((index>=0)&&(index<p_fragments.count()))
110 return p_fragments.at(index)->address;
111 return 0;
112 }
113
114 int binaryFile::getFragmentSize(int index)
115 {
116 if((index>=0)&&(index<p_fragments.count()))
117 return p_fragments.at(index)->size;
118 return 0;
119 }
120
121 QString binaryFile::getFragmentHeader(int index)
122 {
123 if((index>=0)&&(index<p_fragments.count()))
124 return p_fragments.at(index)->header;
125 return "";
126 }
127
128 bool binaryFile::getFragmentData(int index, char **buffer)
129 {
130 if((index>=0)&&(index<p_fragments.count()))
131 {
132 *buffer = p_fragments.at(index)->data;
133 return true;
134 }
135 return false;
136 }
137
138 void binaryFile::loadFile(QFile *file)
139 {
140 if (file->isOpen())
141 {
142 codeFragment* fragment = new codeFragment();
143 fragment->header = file->fileName();
144 fragment->address = 0;
145 fragment->size = file->size();
146 fragment->data = (char*)malloc(file->size());
147 file->read(fragment->data,file->size());
148 p_fragments.append(fragment);
149 }
150 }
@@ -0,0 +1,60
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 --
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 2 of the License, or
8 -- (at your option) any later version.
9 --
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
14 --
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
22 #ifndef BINARYFILE_H
23 #define BINARYFILE_H
24 #include "abstractbinfile.h"
25 #include <QObject>
26 #include <QString>
27 #include <QList>
28 #include <QStringList>
29 #include <QFile>
30
31 class binaryFile : public abstractBinFile
32 {
33 Q_OBJECT
34 public:
35 explicit binaryFile();
36 binaryFile(const QString& File);
37 binaryFile(const QStringList& Files);
38 ~binaryFile();
39 bool openFile(const QString& File);
40 bool openFiles(const QStringList& Files);
41 bool isopened();
42 int closeFile();
43 QList<codeFragment*> getFragments();
44 int getFragmentsCount();
45 int getFragmentAddress(int index);
46 int getFragmentSize(int index);
47 QString getFragmentHeader(int index);
48 bool getFragmentData(int index, char **buffer);
49 signals:
50
51 public slots:
52
53 private:
54 void loadFile(QFile *file);
55 QStringList p_fileNames;
56 QList<QFile*>p_files;
57 QList<codeFragment*> p_fragments;
58 };
59
60 #endif // BINARYFILE_H
@@ -0,0 +1,82
1 #include "binaryfilewidget.h"
2 #include "ui_binaryfilewidget.h"
3 #include "qtablewidgetintitem.h"
4 #include <QtWidgets/QTableWidget>
5
6 binaryFileWidget::binaryFileWidget(QWidget *parent) :
7 QWidget(parent),
8 ui(new Ui::binaryFileWidget)
9 {
10 ui->setupUi(this);
11 connect(this->ui->fragmentList,SIGNAL(cellActivated(int,int)),this,SLOT(fragmentCellActivated(int,int)));
12 connect(this->ui->fragmentList,SIGNAL(cellChanged(int,int)),this,SLOT(fragmentCellChanged(int,int)));
13 }
14
15 binaryFileWidget::~binaryFileWidget()
16 {
17 delete ui;
18 }
19
20 void binaryFileWidget::updateBinaryFile(binaryFile *file)
21 {
22 this->p_binfile = file;
23 if(p_binfile->isopened())
24 {
25 updateFragments();
26 }
27 }
28
29 void binaryFileWidget::updateFragments()
30 {
31 this->ui->fragmentList->clear();
32 this->ui->fragmentList->setRowCount(p_binfile->getFragmentsCount());
33 this->ui->fragmentList->setHorizontalHeaderLabels(QStringList()<<"File"<<"Size"<<"Address");
34 for(int i=0;i<p_binfile->getFragmentsCount();i++)
35 {
36 QTableWidgetItem *newItem = new QTableWidgetItem(p_binfile->getFragmentHeader(i));
37 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
38 this->ui->fragmentList->setItem(i, 0, newItem);
39
40 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(p_binfile->getFragmentSize(i)),DecimalItem);
41 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
42 this->ui->fragmentList->setItem(i, 1, newItem);
43
44 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("0x%1").arg(p_binfile->getFragmentAddress(i),8,16).replace(" ","0"),HexaDecimalItem);
45 // newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
46 this->ui->fragmentList->setItem(i, 2, newItem);
47
48 }
49 this->ui->fragmentList->resizeColumnsToContents();
50 }
51
52 void binaryFileWidget::fragmentCellActivated(int row, int column)
53 {
54 Q_UNUSED(column)
55 char* buff=NULL;
56 int index = this->ui->fragmentList->item(row,0)->text().toInt();
57 if(index!=-1)
58 {
59 this->p_binfile->getFragmentData(index,&buff);
60 this->ui->hexViewer->setData(QByteArray(buff,this->p_binfile->getFragmentSize(index)));
61 this->ui->hexViewer->setAddressOffset(this->p_binfile->getFragmentAddress(index));
62 }
63 }
64
65 void binaryFileWidget::fragmentCellChanged(int row, int column)
66 {
67 if(column==2)
68 {
69 QString newAddressStr = this->ui->fragmentList->item(row,column)->text();
70 int newAddress = 0;
71 newAddressStr.remove(" ");
72 if(newAddressStr.at(0)=='0' && newAddressStr.at(1)=='x')
73 {
74 newAddress = newAddressStr.remove("0x").toUInt(0,16);
75 }
76 else
77 {
78 newAddress = newAddressStr.toUInt();
79 }
80 this->p_binfile->getFragments().at(row)->address = newAddress;
81 }
82 }
@@ -0,0 +1,32
1 #ifndef BINARYFILEWIDGET_H
2 #define BINARYFILEWIDGET_H
3
4 #include <QWidget>
5 #include "binaryfile.h"
6
7 namespace Ui {
8 class binaryFileWidget;
9 }
10
11 class binaryFileWidget : public QWidget
12 {
13 Q_OBJECT
14
15 public:
16 explicit binaryFileWidget(QWidget *parent = 0);
17 ~binaryFileWidget();
18
19 public slots:
20 void updateBinaryFile(binaryFile* file);
21 void updateFragments();
22
23 private slots:
24 void fragmentCellActivated(int row, int column);
25 void fragmentCellChanged(int row, int column);
26
27 private:
28 Ui::binaryFileWidget *ui;
29 binaryFile* p_binfile;
30 };
31
32 #endif // BINARYFILEWIDGET_H
@@ -0,0 +1,61
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <class>binaryFileWidget</class>
4 <widget class="QWidget" name="binaryFileWidget">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>637</width>
10 <height>342</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="0">
18 <widget class="QSplitter" name="splitter">
19 <property name="orientation">
20 <enum>Qt::Horizontal</enum>
21 </property>
22 <widget class="QHexEdit" name="hexViewer" native="true">
23 <property name="minimumSize">
24 <size>
25 <width>200</width>
26 <height>0</height>
27 </size>
28 </property>
29 </widget>
30 <widget class="QTableWidget" name="fragmentList">
31 <column>
32 <property name="text">
33 <string>File</string>
34 </property>
35 </column>
36 <column>
37 <property name="text">
38 <string>Size</string>
39 </property>
40 </column>
41 <column>
42 <property name="text">
43 <string>Address</string>
44 </property>
45 </column>
46 </widget>
47 </widget>
48 </item>
49 </layout>
50 </widget>
51 <customwidgets>
52 <customwidget>
53 <class>QHexEdit</class>
54 <extends>QWidget</extends>
55 <header location="global">qhexedit.h</header>
56 <container>1</container>
57 </customwidget>
58 </customwidgets>
59 <resources/>
60 <connections/>
61 </ui>
@@ -1,180 +1,180
1 /*------------------------------------------------------------------------------
1 /*------------------------------------------------------------------------------
2 ███████╗ ██████╗ ██████╗ ███████╗██╗ ██╗██████╗ ██╗ ██████╗ ██████╗ ███████╗██████╗
2 ███████╗ ██████╗ ██████╗ ███████╗██╗ ██╗██████╗ ██╗ ██████╗ ██████╗ ███████╗██████╗
3 ██╔════╝██╔═══██╗██╔════╝ ██╔════╝╚██╗██╔╝██╔══██╗██║ ██╔═══██╗██╔══██╗██╔════╝██╔══██╗
3 ██╔════╝██╔═══██╗██╔════╝ ██╔════╝╚██╗██╔╝██╔══██╗██║ ██╔═══██╗██╔══██╗██╔════╝██╔══██╗
4 ███████╗██║ ██║██║ █████╗ ╚███╔╝ ██████╔╝██║ ██║ ██║██████╔╝█████╗ ██████╔╝
4 ███████╗██║ ██║██║ █████╗ ╚███╔╝ ██████╔╝██║ ██║ ██║██████╔╝█████╗ ██████╔╝
5 ╚════██║██║ ██║██║ ██╔══╝ ██╔██╗ ██╔═══╝ ██║ ██║ ██║██╔══██╗██╔══╝ ██╔══██╗
5 ╚════██║██║ ██║██║ ██╔══╝ ██╔██╗ ██╔═══╝ ██║ ██║ ██║██╔══██╗██╔══╝ ██╔══██╗
6 ███████║╚██████╔╝╚██████╗ ███████╗██╔╝ ██╗██║ ███████╗╚██████╔╝██║ ██║███████╗██║ ██║
6 ███████║╚██████╔╝╚██████╗ ███████╗██╔╝ ██╗██║ ███████╗╚██████╔╝██║ ██║███████╗██║ ██║
7 ╚══════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
7 ╚══════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
8
8
9 -- This file is a part of the SOC Explorer Software
9 -- This file is a part of the SOC Explorer Software
10 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
10 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
11 --
11 --
12 -- This program is free software; you can redistribute it and/or modify
12 -- This program is free software; you can redistribute it and/or modify
13 -- it under the terms of the GNU General Public License as published by
13 -- it under the terms of the GNU General Public License as published by
14 -- the Free Software Foundation; either version 2 of the License, or
14 -- the Free Software Foundation; either version 2 of the License, or
15 -- (at your option) any later version.
15 -- (at your option) any later version.
16 --
16 --
17 -- This program is distributed in the hope that it will be useful,
17 -- This program is distributed in the hope that it will be useful,
18 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
18 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
19 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 -- GNU General Public License for more details.
20 -- GNU General Public License for more details.
21 --
21 --
22 -- You should have received a copy of the GNU General Public License
22 -- You should have received a copy of the GNU General Public License
23 -- along with this program; if not, write to the Free Software
23 -- along with this program; if not, write to the Free Software
24 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 -------------------------------------------------------------------------------*/
25 -------------------------------------------------------------------------------*/
26 /*-- Author : Alexis Jeandet
26 /*-- Author : Alexis Jeandet
27 -- Mail : alexis.jeandet@lpp.polytechnique.fr
27 -- Mail : alexis.jeandet@lpp.polytechnique.fr
28 ----------------------------------------------------------------------------*/
28 ----------------------------------------------------------------------------*/
29 #ifndef SOCEXPLORERPLUGIN_H
29 #ifndef SOCEXPLORERPLUGIN_H
30 #define SOCEXPLORERPLUGIN_H
30 #define SOCEXPLORERPLUGIN_H
31 #include <QWidget>
31 #include <QWidget>
32 #include <QAction>
32 #include <QAction>
33 #include <QDockWidget>
33 #include <QDockWidget>
34 #include <QMainWindow>
34 #include <QMainWindow>
35 #include <QList>
35 #include <QList>
36 #include <QMenu>
36 #include <QMenu>
37 #include <socexplorer.h>
37 #include <socexplorer.h>
38 #include <QObject>
38 #include <QObject>
39 #include <QVariant>
39 #include <QVariant>
40 #include <QVariantList>
40 #include <QVariantList>
41 #include <malloc.h>
41 #include <malloc.h>
42 #include <QFile>
42 #include <QFile>
43 #include <stdint.h>
43 #include <stdint.h>
44 #include <QTextStream>
44 #include <QTextStream>
45 #include <genericPySysdriver.h>
45 #include <genericPySysdriver.h>
46 #ifndef driver_Name
46 #ifndef driver_Name
47 #define driver_Name "Plugin"
47 #define driver_Name "Plugin"
48 #endif
48 #endif
49 #ifndef driver_Author
49 #ifndef driver_Author
50 #define driver_Author "No Author"
50 #define driver_Author "No Author"
51 #endif
51 #endif
52 #ifndef driver_Version
52 #ifndef driver_Version
53 #define driver_Version "0.0.0"
53 #define driver_Version "0.0.0"
54 #endif
54 #endif
55 #ifndef driver_Description
55 #ifndef driver_Description
56 #define driver_Description "No description."
56 #define driver_Description "No description."
57 #endif
57 #endif
58 #ifndef driver_can_be_root
58 #ifndef driver_can_be_root
59 #define driver_can_be_root 0
59 #define driver_can_be_root 0
60 #endif
60 #endif
61 #ifndef driver_can_be_child
61 #ifndef driver_can_be_child
62 #define driver_can_be_child 0
62 #define driver_can_be_child 0
63 #endif
63 #endif
64 #ifndef driver_VID
64 #ifndef driver_VID
65 #define driver_VID 0
65 #define driver_VID 0
66 #endif
66 #endif
67 #ifndef driver_PID
67 #ifndef driver_PID
68 #define driver_PID 0
68 #define driver_PID 0
69 #endif
69 #endif
70
70
71 #if defined(SOCEXPLORER_SDK_BUILD)
71 #if defined(SOCEXPLORER_SDK_BUILD)
72 # define SOCEXPLORER_SDK_EXPORT Q_DECL_EXPORT
72 # define SOCEXPLORER_SDK_EXPORT Q_DECL_EXPORT
73 #else
73 #else
74 # define SOCEXPLORER_SDK_EXPORT Q_DECL_IMPORT
74 # define SOCEXPLORER_SDK_EXPORT Q_DECL_IMPORT
75 #endif
75 #endif
76
76
77 class genericPySysdriver;
77 class genericPySysdriver;
78
78
79 //! socexplorerplugin is the base class for any SocExplorer plugin, it gives a standard interface to communicate
79 //! socexplorerplugin is the base class for any SocExplorer plugin, it gives a standard interface to communicate
80 //! between each plugins and to interact with SocExplorer software.
80 //! between each plugins and to interact with SocExplorer software.
81
81
82 class SOCEXPLORER_SDK_EXPORT socexplorerplugin : public QDockWidget
82 class SOCEXPLORER_SDK_EXPORT socexplorerplugin : public QDockWidget
83 {
83 {
84 Q_OBJECT
84 Q_OBJECT
85 public:
85 public:
86 //! Default plugin constructor, any plugin should call this constructor. This constructor creates a
86 //! Default plugin constructor, any plugin should call this constructor. This constructor creates a
87 //! default python wrapper instance. If you want to connect your own python wrapper, you have to clear
87 //! default python wrapper instance. If you want to connect your own python wrapper, you have to clear
88 //! createPyObject option and instanciate your own genericPySysdriver derivated object.
88 //! createPyObject option and instanciate your own genericPySysdriver derivated object.
89 socexplorerplugin(QWidget *parent = 0,bool createPyObject=true):QDockWidget(parent)
89 socexplorerplugin(QWidget *parent = 0,bool createPyObject=true):QDockWidget(parent)
90 {
90 {
91 closeAction=NULL;
91 closeAction=NULL;
92 menu=NULL;
92 menu=NULL;
93 ChildsMenu=NULL;
93 ChildsMenu=NULL;
94 this->Connected = false;
94 this->Connected = false;
95 this->setFeatures(QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetVerticalTitleBar);
95 this->setFeatures(QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetVerticalTitleBar);
96 _Name = new QString(driver_Name);
96 _Name = new QString(driver_Name);
97 _Author = new QString(driver_Author);
97 _Author = new QString(driver_Author);
98 _Version = new QString(driver_Version);
98 _Version = new QString(driver_Version);
99 _Description = new QString(driver_Description);
99 _Description = new QString(driver_Description);
100 _canBeChild = driver_can_be_child;
100 _canBeChild = driver_can_be_child;
101 _canBeRoot = driver_can_be_root;
101 _canBeRoot = driver_can_be_root;
102 _VID = driver_VID;
102 _VID = driver_VID;
103 _PID = driver_PID;
103 _PID = driver_PID;
104 if(createPyObject)
104 if(createPyObject)
105 {
105 {
106 this->makeGenericPyWrapper();
106 this->makeGenericPyWrapper();
107 }
107 }
108 }
108 }
109 //! Tells if the plugin is connected, it is used to enable or disable all childrens interfaces.
109 //! Tells if the plugin is connected, it is used to enable or disable all childrens interfaces.
110 virtual int isConnected();
110 virtual int isConnected();
111 //! Gives the associated Vendor IDentifier, usefull to automatically associate plugins with found
111 //! Gives the associated Vendor IDentifier, usefull to automatically associate plugins with found
112 //! hardware while board enumeration.
112 //! hardware while board enumeration.
113 virtual int VID(){return _PID;}
113 virtual int VID(){return _PID;}
114 //! Gives the associated Product IDentifier, usefull to automatically associate plugins with found
114 //! Gives the associated Product IDentifier, usefull to automatically associate plugins with found
115 //! hardware while board enumeration.
115 //! hardware while board enumeration.
116 virtual int PID(){return _VID;}
116 virtual int PID(){return _VID;}
117 //! Gives the plugin's base name, usefull to automatically generate instance name.
117 //! Gives the plugin's base name, usefull to automatically generate instance name.
118 virtual QString baseName();
118 virtual QString baseName();
119 //! Gives the base address of the current instance, for example if your plugin is supposed to drive
119 //! Gives the base address of the current instance, for example if your plugin is supposed to drive
120 //! an UART it will correspond to the address of it's first register. This address have at least to
120 //! an UART it will correspond to the address of it's first register. This address have at least to
121 //! be set by SocExplorer and it can be user accessible if you want.
121 //! be set by SocExplorer and it can be user accessible if you want.
122 virtual int baseAddress();
122 virtual int baseAddress();
123 //! Sets the base address of the current instance, for example if your plugin is supposed to drive
123 //! Sets the base address of the current instance, for example if your plugin is supposed to drive
124 //! an UART it will correspond to the address of it's first register. This address have at least to
124 //! an UART it will correspond to the address of it's first register. This address have at least to
125 //! be set by lppSocExplorer and it can be user accessible if you want.
125 //! be set by SocExplorer and it can be user accessible if you want.
126 virtual void setBaseAddress(unsigned int baseAddress);
126 virtual void setBaseAddress(unsigned int baseAddress);
127
127
128 genericPySysdriver* getPyObjectWrapper(){return this->pyObject;}
128 genericPySysdriver* getPyObjectWrapper(){return this->pyObject;}
129 QList<socexplorerplugin*> childs;
129 QList<socexplorerplugin*> childs;
130 socexplorerplugin* parent;
130 socexplorerplugin* parent;
131 QAction* closeAction;
131 QAction* closeAction;
132 QString instanceName();
132 QString instanceName();
133 QMenu* menu;
133 QMenu* menu;
134 QMenu* ChildsMenu;
134 QMenu* ChildsMenu;
135
135
136 signals:
136 signals:
137 //! Signal emited each time the plugin is about to be closed.
137 //! Signal emited each time the plugin is about to be closed.
138 void closePlugin(socexplorerplugin* driver);
138 void closePlugin(socexplorerplugin* driver);
139 void activateSig(bool flag);
139 void activateSig(bool flag);
140 void registerObject(QObject* object,const QString& instanceName);
140 void registerObject(QObject* object,const QString& instanceName);
141
141
142 public slots:
142 public slots:
143 virtual int registermenu(QMenu* menu);
143 virtual int registermenu(QMenu* menu);
144 virtual void postInstantiationTrigger();
144 virtual void postInstantiationTrigger();
145 //! Write slot this is the way your children plugins ask you for writing data.
145 //! Write slot this is the way your children plugins ask you for writing data.
146 //! If your plugin is supposed to have childern drivers you should implement this methode.
146 //! If your plugin is supposed to have childern drivers you should implement this methode.
147 //! By default this methode forward the write request to the parent plugin.
147 //! By default this methode forward the write request to the parent plugin.
148 //! \param Value Pointer the data buffer.
148 //! \param Value Pointer the data buffer.
149 //! \param count Number of 32 bits words you should to write.
149 //! \param count Number of 32 bits words you should to write.
150 //! \param address Address from where you should to start to write.
150 //! \param address Address from where you should to start to write.
151 //! \return Quantity of 32 bits words writtens.
151 //! \return Quantity of 32 bits words writtens.
152 virtual unsigned int Write(unsigned int* Value, unsigned int count,unsigned int address);
152 virtual unsigned int Write(unsigned int* Value, unsigned int count,unsigned int address);
153 //! Read slot this is the way your children plugins ask you for reading data.
153 //! Read slot this is the way your children plugins ask you for reading data.
154 //! If your plugin is supposed to have childern drivers you should implement this methode.
154 //! If your plugin is supposed to have childern drivers you should implement this methode.
155 //! By default this methode forward the write request to the parent plugin.
155 //! By default this methode forward the write request to the parent plugin.
156 //! \param Value Pointer the data buffer.
156 //! \param Value Pointer the data buffer.
157 //! \param count Number of 32 bits words you should to read.
157 //! \param count Number of 32 bits words you should to read.
158 //! \param address Address from where you should to start to read.
158 //! \param address Address from where you should to start to read.
159 //! \return Quantity of 32 bits words read.
159 //! \return Quantity of 32 bits words read.
160 virtual unsigned int Read(unsigned int* Value, unsigned int count,unsigned int address);
160 virtual unsigned int Read(unsigned int* Value, unsigned int count,unsigned int address);
161 virtual void closeMe();
161 virtual void closeMe();
162 virtual void activate(bool flag);
162 virtual void activate(bool flag);
163 virtual void setInstanceName(const QString& newName);
163 virtual void setInstanceName(const QString& newName);
164 protected:
164 protected:
165 void makeGenericPyWrapper();
165 void makeGenericPyWrapper();
166 int BaseAddress;
166 int BaseAddress;
167 bool Connected;
167 bool Connected;
168 genericPySysdriver* pyObject;
168 genericPySysdriver* pyObject;
169 QString* _Name;
169 QString* _Name;
170 QString* _Author;
170 QString* _Author;
171 QString* _Version;
171 QString* _Version;
172 QString* _Description;
172 QString* _Description;
173 QString _instanceName;
173 QString _instanceName;
174 int _canBeChild;
174 int _canBeChild;
175 int _canBeRoot;
175 int _canBeRoot;
176 int _VID;
176 int _VID;
177 int _PID;
177 int _PID;
178 };
178 };
179
179
180 #endif // SOCEXPLORERPLUGIN_H
180 #endif // SOCEXPLORERPLUGIN_H
@@ -1,15 +1,17
1 #include <QtCore/QObject>
1 #include <QtCore/QObject>
2 #include <QtWidgets/QtWidgets>
2 #include <QtWidgets/QtWidgets>
3 #include "qhexspinbox.h"
3 #include "qhexspinbox.h"
4 #include "memsizewdgt.h"
4 #include "memsizewdgt.h"
5 #include "qhexedit/qhexedit.h"
5 #include "qhexedit/qhexedit.h"
6 #include "SocExplorerPlot.h"
6 #include "SocExplorerPlot.h"
7 #include "tcp_terminal_client.h"
7 #include "tcp_terminal_client.h"
8 #include "elf/elfparser.h"
8 #include "elf/elfparser.h"
9 #include "abstractbinfile.h"
9 #include "abstractbinfile.h"
10 #include "elf/elffile.h"
10 #include "elf/elffile.h"
11 #include "elf/elffilewidget.h"
11 #include "elf/elffilewidget.h"
12 #include "elf/elfinfowdgt.h"
12 #include "elf/elfinfowdgt.h"
13 #include "QCustomPlot/qcustomplot.h"
13 #include "QCustomPlot/qcustomplot.h"
14 #include "srec/srecfile.h"
14 #include "srec/srecfile.h"
15 #include "srec/srecfilewidget.h"
15 #include "srec/srecfilewidget.h"
16 #include "BinFile/binaryfile.h"
17 #include "BinFile/binaryfilewidget.h"
@@ -1,128 +1,136
1 SOCEXPLORER_ROOT = \"$${PWD}/../..\"
1 SOCEXPLORER_ROOT = \"$${PWD}/../..\"
2 include($${PWD}/../../build_cfg/socexplorer.pri)
2 include($${PWD}/../../build_cfg/socexplorer.pri)
3 include($${PWD}/lppserial/lppserial.pri)
3 include($${PWD}/lppserial/lppserial.pri)
4
4
5 TEMPLATE = lib
5 TEMPLATE = lib
6 TARGET = socexplorercommon$${DEBUG_EXT}
6 TARGET = socexplorercommon$${DEBUG_EXT}
7
7
8 win32:CONFIG += dll
8 win32:CONFIG += dll
9 win32:CONFIG -= static
9 win32:CONFIG -= static
10
10
11 win32:INCLUDEPATH += $${PWD}/elf/libelfWin32/include
11 win32:INCLUDEPATH += $${PWD}/elf/libelfWin32/include
12 win32:INCLUDEPATH += $${PWD}/elf/libelfWin32/include/libelf
12 win32:INCLUDEPATH += $${PWD}/elf/libelfWin32/include/libelf
13 win32:DEFINES+=_ELF_WINDOWS_
13 win32:DEFINES+=_ELF_WINDOWS_
14 DEFINES+=RS232_debug
14 DEFINES+=RS232_debug
15
15
16 win32:LIBS += $${PWD}/elf/libelfWin32/bin/libelf.a
16 win32:LIBS += $${PWD}/elf/libelfWin32/bin/libelf.a
17 unix:LIBS += -lelf
17 unix:LIBS += -lelf
18
18
19 QMAKE_LFLAGS_RELEASE += --enable-auto-import
19 QMAKE_LFLAGS_RELEASE += --enable-auto-import
20 QMAKE_LFLAGS_DEBUG += --enable-auto-import
20 QMAKE_LFLAGS_DEBUG += --enable-auto-import
21
21
22 target.path = $$[QT_INSTALL_LIBS]
22 target.path = $$[QT_INSTALL_LIBS]
23 isEmpty(target.path) {
23 isEmpty(target.path) {
24 error(can\'t get QT_INSTALL_LIBS)
24 error(can\'t get QT_INSTALL_LIBS)
25 }
25 }
26
26
27 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common
27 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common
28 header.files = \
28 header.files = \
29 memsizewdgt.h \
29 memsizewdgt.h \
30 qhexspinbox.h \
30 qhexspinbox.h \
31 qsvgicon.h \
31 qsvgicon.h \
32 qhexedit/qhexedit_p.h \
32 qhexedit/qhexedit_p.h \
33 qhexedit/qhexedit.h \
33 qhexedit/qhexedit.h \
34 qhexedit/xbytearray.h \
34 qhexedit/xbytearray.h \
35 QCustomPlot/qcustomplot.h \
35 QCustomPlot/qcustomplot.h \
36 SocExplorerPlot.h \
36 SocExplorerPlot.h \
37 tcp_terminal_client.h \
37 tcp_terminal_client.h \
38 elf/elfinfowdgt.h \
38 elf/elfinfowdgt.h \
39 elf/elfparser.h \
39 elf/elfparser.h \
40 elf/elffile.h \
40 elf/elffile.h \
41 elf/elffilewidget.h \
41 elf/elffilewidget.h \
42 qipdialogbox.h \
42 qipdialogbox.h \
43 lppserial/src/RS232.h \
43 lppserial/src/RS232.h \
44 qtablewidgetintitem.h \
44 qtablewidgetintitem.h \
45 srec/srecfile.h \
45 srec/srecfile.h \
46 srec/srecfilewidget.h \
46 srec/srecfilewidget.h \
47 abstractbinfile.cpp
47 abstractbinfile.h \
48 BinFile/binaryfile.h \
49 BinFile/binaryfilewidget.h
50
48
51
49 win32{
52 win32{
50 elfheader.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common/libelf
53 elfheader.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common/libelf
51 elfheader.files += \
54 elfheader.files += \
52 elf/libelfWin32/include/libelf/byteswap.h \
55 elf/libelfWin32/include/libelf/byteswap.h \
53 elf/libelfWin32/include/libelf/errors.h \
56 elf/libelfWin32/include/libelf/errors.h \
54 elf/libelfWin32/include/libelf/gelf.h \
57 elf/libelfWin32/include/libelf/gelf.h \
55 elf/libelfWin32/include/libelf/nlist.h \
58 elf/libelfWin32/include/libelf/nlist.h \
56 elf/libelfWin32/include/libelf/sys_elf.h \
59 elf/libelfWin32/include/libelf/sys_elf.h \
57 elf/libelfWin32/include/libelf/verneed.h \
60 elf/libelfWin32/include/libelf/verneed.h \
58 elf/libelfWin32/include/libelf/elf_repl.h \
61 elf/libelfWin32/include/libelf/elf_repl.h \
59 elf/libelfWin32/include/libelf/ext_types.h \
62 elf/libelfWin32/include/libelf/ext_types.h \
60 elf/libelfWin32/include/libelf/libelf.h \
63 elf/libelfWin32/include/libelf/libelf.h \
61 elf/libelfWin32/include/libelf/private.h \
64 elf/libelfWin32/include/libelf/private.h \
62 elf/libelfWin32/include/libelf/verdef.h
65 elf/libelfWin32/include/libelf/verdef.h
63 INSTALLS += elfheader
66 INSTALLS += elfheader
64 }
67 }
65
68
66
69
67 isEmpty(header.path) {
70 isEmpty(header.path) {
68 error(can\'t get QT_INSTALL_HEADERS)
71 error(can\'t get QT_INSTALL_HEADERS)
69 }
72 }
70
73
71 INSTALLS += target header
74 INSTALLS += target header
72
75
73 INCLUDEPATH += QCustomPlot qhexedit srec
76 INCLUDEPATH += QCustomPlot qhexedit srec
74
77
75 HEADERS += \
78 HEADERS += \
76 memsizewdgt.h \
79 memsizewdgt.h \
77 qhexspinbox.h \
80 qhexspinbox.h \
78 qsvgicon.h \
81 qsvgicon.h \
79 qhexedit/qhexedit_p.h \
82 qhexedit/qhexedit_p.h \
80 qhexedit/qhexedit.h \
83 qhexedit/qhexedit.h \
81 qhexedit/xbytearray.h \
84 qhexedit/xbytearray.h \
82 qhexedit/commands.h \
85 qhexedit/commands.h \
83 QCustomPlot/qcustomplot.h \
86 QCustomPlot/qcustomplot.h \
84 tcp_terminal_client.h \
87 tcp_terminal_client.h \
85 elf/elfinfowdgt.h \
88 elf/elfinfowdgt.h \
86 elf/elfparser.h \
89 elf/elfparser.h \
87 elf/elffile.h \
90 elf/elffile.h \
88 qipdialogbox.h \
91 qipdialogbox.h \
89 PySocExplorer.h \
92 PySocExplorer.h \
90 SocExplorerPlot.h \
93 SocExplorerPlot.h \
91 elf/elffilewidget.h \
94 elf/elffilewidget.h \
92 qtablewidgetintitem.h \
95 qtablewidgetintitem.h \
93 srec/srecfile.h \
96 srec/srecfile.h \
94 srec/srecfilewidget.h \
97 srec/srecfilewidget.h \
95 abstractbinfile.h
98 abstractbinfile.h \
99 BinFile/binaryfile.h \
100 BinFile/binaryfilewidget.h
96
101
97
102
98 SOURCES += \
103 SOURCES += \
99 memsizewdgt.cpp \
104 memsizewdgt.cpp \
100 qhexspinbox.cpp \
105 qhexspinbox.cpp \
101 qsvgicon.cpp \
106 qsvgicon.cpp \
102 qhexedit/qhexedit_p.cpp \
107 qhexedit/qhexedit_p.cpp \
103 qhexedit/qhexedit.cpp \
108 qhexedit/qhexedit.cpp \
104 qhexedit/xbytearray.cpp \
109 qhexedit/xbytearray.cpp \
105 qhexedit/commands.cpp \
110 qhexedit/commands.cpp \
106 QCustomPlot/qcustomplot.cpp \
111 QCustomPlot/qcustomplot.cpp \
107 tcp_terminal_client.cpp \
112 tcp_terminal_client.cpp \
108 elf/elfinfowdgt.cpp \
113 elf/elfinfowdgt.cpp \
109 elf/elfparser.cpp \
114 elf/elfparser.cpp \
110 elf/elffile.cpp \
115 elf/elffile.cpp \
111 qipdialogbox.cpp \
116 qipdialogbox.cpp \
112 SocExplorerPlot.cpp \
117 SocExplorerPlot.cpp \
113 elf/elffilewidget.cpp \
118 elf/elffilewidget.cpp \
114 qtablewidgetintitem.cpp \
119 qtablewidgetintitem.cpp \
115 srec/srecfile.cpp \
120 srec/srecfile.cpp \
116 srec/srecfilewidget.cpp \
121 srec/srecfilewidget.cpp \
117 abstractbinfile.cpp
122 abstractbinfile.cpp \
123 BinFile/binaryfile.cpp \
124 BinFile/binaryfilewidget.cpp
118
125
119 FORMS += \
126 FORMS += \
120 elf/elffilewidget.ui \
127 elf/elffilewidget.ui \
121 srec/srecfilewidget.ui
128 srec/srecfilewidget.ui \
129 BinFile/binaryfilewidget.ui
122
130
123 OTHER_FILES += \
131 OTHER_FILES += \
124 ./pythongenerator.sh \
132 ./pythongenerator.sh \
125 ./pythonQtgeneratorCfg.txt
133 ./pythonQtgeneratorCfg.txt
126
134
127
135
128
136
@@ -1,1047 +1,1068
1 /*------------------------------------------------------------------------------
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 --
4 --
5 -- This program is free software; you can redistribute it and/or modify
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 2 of the License, or
7 -- the Free Software Foundation; either version 2 of the License, or
8 -- (at your option) any later version.
8 -- (at your option) any later version.
9 --
9 --
10 -- This program is distributed in the hope that it will be useful,
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
13 -- GNU General Public License for more details.
14 --
14 --
15 -- You should have received a copy of the GNU General Public License
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
18 -------------------------------------------------------------------------------*/
19 /*-- Author :
19 /*-- Author :
20 Alexis Jeandet
20 Alexis Jeandet
21 -- Mail :
21 -- Mail :
22 alexis.jeandet@member.fsf.org
22 alexis.jeandet@member.fsf.org
23 ----------------------------------------------------------------------------*/
23 ----------------------------------------------------------------------------*/
24 #include "elffile.h"
24 #include "elffile.h"
25 #include "srec/srecfile.h"
25 #include "srec/srecfile.h"
26
26
27 ElfFile::ElfFile()
27 ElfFile::ElfFile()
28 :abstractBinFile()
28 :abstractBinFile()
29 {
29 {
30 this->opened = false;
30 this->opened = false;
31 this->type_elf = false;
31 this->type_elf = false;
32 this->elfFile = NULL;
32 this->elfFile = (int)NULL;
33 this->e = NULL;
33 this->e = NULL;
34 }
34 }
35
35
36 ElfFile::ElfFile(const QString &File)
36 ElfFile::ElfFile(const QString &File)
37 :abstractBinFile()
37 :abstractBinFile()
38 {
38 {
39 this->opened = false;
39 this->opened = false;
40 this->type_elf = false;
40 this->type_elf = false;
41 this->elfFile = NULL;
41 this->elfFile = (int)NULL;
42 this->e = NULL;
42 this->e = NULL;
43 this->p_fileName = File;
43 this->p_fileName = File;
44 openFile(File);
44 openFile(File);
45 }
45 }
46
46
47 ElfFile::~ElfFile()
47 ElfFile::~ElfFile()
48 {
48 {
49 closeFile();
49 closeFile();
50 if(scn)free(scn);
50 if(scn)free(scn);
51 if(data)free(data);
51 if(data)free(data);
52 for(int i=0;i<this->sections.count();i++)
52 for(int i=0;i<this->sections.count();i++)
53 {
53 {
54 delete this->sections.at(i);
54 delete this->sections.at(i);
55 }
55 }
56 this->sections.clear();
56 this->sections.clear();
57 for(int i=0;i<this->Segments.count();i++)
57 for(int i=0;i<this->Segments.count();i++)
58 {
58 {
59 free(this->Segments.at(i));
59 free(this->Segments.at(i));
60 }
60 }
61 this->Segments.clear();
61 this->Segments.clear();
62 for(int i=0;i<symbols.count();i++)
62 for(int i=0;i<symbols.count();i++)
63 {
63 {
64 delete this->symbols.at(i);
64 delete this->symbols.at(i);
65 }
65 }
66 this->symbols.clear();
66 this->symbols.clear();
67 }
67 }
68
68
69 bool ElfFile::openFile(const QString &File)
69 bool ElfFile::openFile(const QString &File)
70 {
70 {
71 this->p_fileName = File;
71 this->p_fileName = File;
72 this->closeFile();
72 this->closeFile();
73 if(elf_version(EV_CURRENT)==EV_NONE)return 0;
73 if(elf_version(EV_CURRENT)==EV_NONE)return 0;
74 #ifdef _ELF_WINDOWS_
74 #ifdef _ELF_WINDOWS_
75 this->elfFile = open(File.toStdString().c_str(),O_RDONLY|O_BINARY ,0);
75 this->elfFile = open(File.toStdString().c_str(),O_RDONLY|O_BINARY ,0);
76 #else
76 #else
77 this->elfFile = open(File.toStdString().c_str(),O_RDONLY ,0);
77 this->elfFile = open(File.toStdString().c_str(),O_RDONLY ,0);
78 #endif
78 #endif
79 if(this->elfFile==NULL)return 0;
79 if(this->elfFile==(int)NULL)return 0;
80 this->e = elf_begin(this->elfFile,ELF_C_READ,NULL);
80 this->e = elf_begin(this->elfFile,ELF_C_READ,NULL);
81 if(this->e==NULL)return 0;
81 if(this->e==NULL)return 0;
82 this->ek = elf_kind(this->e);
82 this->ek = elf_kind(this->e);
83 gelf_getehdr (this->e, &this->ehdr );
83 gelf_getehdr (this->e, &this->ehdr );
84 elf_getshdrstrndx (this->e, &this->shstrndx);
84 elf_getshdrstrndx (this->e, &this->shstrndx);
85 this->updateSegments();
85 this->updateSegments();
86 this->updateSections();
86 this->updateSections();
87 this->updateSymbols();
87 this->updateSymbols();
88 this->opened = true;
88 this->opened = true;
89 return 1;
89 return 1;
90 }
90 }
91
91
92 bool ElfFile::isopened()
92 bool ElfFile::isopened()
93 {
93 {
94 return this->opened;
94 return this->opened;
95 }
95 }
96
96
97 int ElfFile::closeFile()
97 int ElfFile::closeFile()
98 {
98 {
99 if(this->elfFile!=NULL)
99 if(this->elfFile!=(int)NULL)
100 {
100 {
101 if(this->e!=NULL)
101 if(this->e!=NULL)
102 {
102 {
103 elf_end(this->e);
103 elf_end(this->e);
104 this->e = NULL;
104 this->e = NULL;
105 }
105 }
106 close(this->elfFile);
106 close(this->elfFile);
107 this->elfFile = NULL;
107 this->elfFile = (int)NULL;
108 }
108 }
109 this->opened = false;
109 this->opened = false;
110 return 0;
110 return 0;
111 }
111 }
112
112
113
113
114 QList<codeFragment*> ElfFile::getFragments(QStringList fragmentList)
114 QList<codeFragment*> ElfFile::getFragments(QStringList fragmentList)
115 {
115 {
116 QList<codeFragment*> fragments;
116 QList<codeFragment*> fragments;
117 if (isopened())
117 if (isopened())
118 {
118 {
119 for(int i =0;i<fragmentList.count();i++)
119 for(int i =0;i<fragmentList.count();i++)
120 {
120 {
121 fragments.append(getFragment(fragmentList.at(i)));
121 fragments.append(getFragment(fragmentList.at(i)));
122 }
122 }
123 }
123 }
124 return fragments;
124 return fragments;
125 }
125 }
126
126
127 QList<codeFragment*> ElfFile::getFragments()
127 QList<codeFragment*> ElfFile::getFragments()
128 {
128 {
129 return getFragments(QStringList()<<".data"<<".text");
129 return getFragments(QStringList()<<".data"<<".text");
130 }
130 }
131
131
132 codeFragment *ElfFile::getFragment(const QString &name)
132 codeFragment *ElfFile::getFragment(const QString &name)
133 {
133 {
134 codeFragment* fragment= new codeFragment();
134 codeFragment* fragment= new codeFragment();
135 for(int i=0;i<getSectionCount();i++)
135 for(int i=0;i<getSectionCount();i++)
136 {
136 {
137 if(getSectionName(i) == name)
137 if(getSectionName(i) == name)
138 {
138 {
139 fragment->data =NULL;
139 fragment->data =NULL;
140 fragment->size = getSectionDatasz(i);
140 fragment->size = getSectionDatasz(i);
141 fragment->address = getSectionPaddr(i);
141 fragment->address = getSectionPaddr(i);
142 getSectionData(i,&fragment->data);
142 getSectionData(i,&fragment->data);
143 }
143 }
144 }
144 }
145 return fragment;
145 return fragment;
146 }
146 }
147
147
148
148
149
149
150
150
151
151
152
152
153
153
154 QString elfresolveMachine(Elf64_Half e_machine)
154 QString elfresolveMachine(Elf64_Half e_machine)
155 {
155 {
156 QString machineName;
156 QString machineName;
157 //Update from with bash script don't write it by yourself!
157 //Update from with bash script don't write it by yourself!
158 switch(e_machine)
158 switch(e_machine)
159 {
159 {
160 case EM_NONE:
160 case EM_NONE:
161 machineName = " No machine ";
161 machineName = " No machine ";
162 break;
162 break;
163 case EM_M32:
163 case EM_M32:
164 machineName = " AT&T WE 32100 ";
164 machineName = " AT&T WE 32100 ";
165 break;
165 break;
166 case EM_SPARC:
166 case EM_SPARC:
167 machineName = " SUN SPARC ";
167 machineName = " SUN SPARC ";
168 break;
168 break;
169 case EM_386:
169 case EM_386:
170 machineName = " Intel 80386 ";
170 machineName = " Intel 80386 ";
171 break;
171 break;
172 case EM_68K:
172 case EM_68K:
173 machineName = " Motorola m68k family ";
173 machineName = " Motorola m68k family ";
174 break;
174 break;
175 case EM_88K:
175 case EM_88K:
176 machineName = " Motorola m88k family ";
176 machineName = " Motorola m88k family ";
177 break;
177 break;
178 case EM_860:
178 case EM_860:
179 machineName = " Intel 80860 ";
179 machineName = " Intel 80860 ";
180 break;
180 break;
181 case EM_MIPS:
181 case EM_MIPS:
182 machineName = " MIPS R3000 big-endian ";
182 machineName = " MIPS R3000 big-endian ";
183 break;
183 break;
184 case EM_S370:
184 case EM_S370:
185 machineName = " IBM System/370 ";
185 machineName = " IBM System/370 ";
186 break;
186 break;
187 case EM_MIPS_RS3_LE:
187 case EM_MIPS_RS3_LE:
188 machineName = " MIPS R3000 little-endian ";
188 machineName = " MIPS R3000 little-endian ";
189 break;
189 break;
190 case EM_PARISC:
190 case EM_PARISC:
191 machineName = " HPPA ";
191 machineName = " HPPA ";
192 break;
192 break;
193 case EM_VPP500:
193 case EM_VPP500:
194 machineName = " Fujitsu VPP500 ";
194 machineName = " Fujitsu VPP500 ";
195 break;
195 break;
196 case EM_SPARC32PLUS:
196 case EM_SPARC32PLUS:
197 machineName = " Sun's \"v8plus\" ";
197 machineName = " Sun's \"v8plus\" ";
198 break;
198 break;
199 case EM_960:
199 case EM_960:
200 machineName = " Intel 80960 ";
200 machineName = " Intel 80960 ";
201 break;
201 break;
202 case EM_PPC:
202 case EM_PPC:
203 machineName = " PowerPC ";
203 machineName = " PowerPC ";
204 break;
204 break;
205 case EM_PPC64:
205 case EM_PPC64:
206 machineName = " PowerPC 64-bit ";
206 machineName = " PowerPC 64-bit ";
207 break;
207 break;
208 case EM_S390:
208 case EM_S390:
209 machineName = " IBM S390 ";
209 machineName = " IBM S390 ";
210 break;
210 break;
211 case EM_V800:
211 case EM_V800:
212 machineName = " NEC V800 series ";
212 machineName = " NEC V800 series ";
213 break;
213 break;
214 case EM_FR20:
214 case EM_FR20:
215 machineName = " Fujitsu FR20 ";
215 machineName = " Fujitsu FR20 ";
216 break;
216 break;
217 case EM_RH32:
217 case EM_RH32:
218 machineName = " TRW RH-32 ";
218 machineName = " TRW RH-32 ";
219 break;
219 break;
220 case EM_RCE:
220 case EM_RCE:
221 machineName = " Motorola RCE ";
221 machineName = " Motorola RCE ";
222 break;
222 break;
223 case EM_ARM:
223 case EM_ARM:
224 machineName = " ARM ";
224 machineName = " ARM ";
225 break;
225 break;
226 case EM_FAKE_ALPHA:
226 case EM_FAKE_ALPHA:
227 machineName = " Digital Alpha ";
227 machineName = " Digital Alpha ";
228 break;
228 break;
229 case EM_SH:
229 case EM_SH:
230 machineName = " Hitachi SH ";
230 machineName = " Hitachi SH ";
231 break;
231 break;
232 case EM_SPARCV9:
232 case EM_SPARCV9:
233 machineName = " SPARC v9 64-bit ";
233 machineName = " SPARC v9 64-bit ";
234 break;
234 break;
235 case EM_TRICORE:
235 case EM_TRICORE:
236 machineName = " Siemens Tricore ";
236 machineName = " Siemens Tricore ";
237 break;
237 break;
238 case EM_ARC:
238 case EM_ARC:
239 machineName = " Argonaut RISC Core ";
239 machineName = " Argonaut RISC Core ";
240 break;
240 break;
241 case EM_H8_300:
241 case EM_H8_300:
242 machineName = " Hitachi H8/300 ";
242 machineName = " Hitachi H8/300 ";
243 break;
243 break;
244 case EM_H8_300H:
244 case EM_H8_300H:
245 machineName = " Hitachi H8/300H ";
245 machineName = " Hitachi H8/300H ";
246 break;
246 break;
247 case EM_H8S:
247 case EM_H8S:
248 machineName = " Hitachi H8S ";
248 machineName = " Hitachi H8S ";
249 break;
249 break;
250 case EM_H8_500:
250 case EM_H8_500:
251 machineName = " Hitachi H8/500 ";
251 machineName = " Hitachi H8/500 ";
252 break;
252 break;
253 case EM_IA_64:
253 case EM_IA_64:
254 machineName = " Intel Merced ";
254 machineName = " Intel Merced ";
255 break;
255 break;
256 case EM_MIPS_X:
256 case EM_MIPS_X:
257 machineName = " Stanford MIPS-X ";
257 machineName = " Stanford MIPS-X ";
258 break;
258 break;
259 case EM_COLDFIRE:
259 case EM_COLDFIRE:
260 machineName = " Motorola Coldfire ";
260 machineName = " Motorola Coldfire ";
261 break;
261 break;
262 case EM_68HC12:
262 case EM_68HC12:
263 machineName = " Motorola M68HC12 ";
263 machineName = " Motorola M68HC12 ";
264 break;
264 break;
265 case EM_MMA:
265 case EM_MMA:
266 machineName = " Fujitsu MMA Multimedia Accelerator";
266 machineName = " Fujitsu MMA Multimedia Accelerator";
267 break;
267 break;
268 case EM_PCP:
268 case EM_PCP:
269 machineName = " Siemens PCP ";
269 machineName = " Siemens PCP ";
270 break;
270 break;
271 case EM_NCPU:
271 case EM_NCPU:
272 machineName = " Sony nCPU embeeded RISC ";
272 machineName = " Sony nCPU embeeded RISC ";
273 break;
273 break;
274 case EM_NDR1:
274 case EM_NDR1:
275 machineName = " Denso NDR1 microprocessor ";
275 machineName = " Denso NDR1 microprocessor ";
276 break;
276 break;
277 case EM_STARCORE:
277 case EM_STARCORE:
278 machineName = " Motorola Start*Core processor ";
278 machineName = " Motorola Start*Core processor ";
279 break;
279 break;
280 case EM_ME16:
280 case EM_ME16:
281 machineName = " Toyota ME16 processor ";
281 machineName = " Toyota ME16 processor ";
282 break;
282 break;
283 case EM_ST100:
283 case EM_ST100:
284 machineName = " STMicroelectronic ST100 processor ";
284 machineName = " STMicroelectronic ST100 processor ";
285 break;
285 break;
286 case EM_TINYJ:
286 case EM_TINYJ:
287 machineName = " Advanced Logic Corp. Tinyj emb.fam";
287 machineName = " Advanced Logic Corp. Tinyj emb.fam";
288 break;
288 break;
289 case EM_X86_64:
289 case EM_X86_64:
290 machineName = " AMD x86-64 architecture ";
290 machineName = " AMD x86-64 architecture ";
291 break;
291 break;
292 case EM_PDSP:
292 case EM_PDSP:
293 machineName = " Sony DSP Processor ";
293 machineName = " Sony DSP Processor ";
294 break;
294 break;
295 case EM_FX66:
295 case EM_FX66:
296 machineName = " Siemens FX66 microcontroller ";
296 machineName = " Siemens FX66 microcontroller ";
297 break;
297 break;
298 case EM_ST9PLUS:
298 case EM_ST9PLUS:
299 machineName = " STMicroelectronics ST9+ 8/16 mc ";
299 machineName = " STMicroelectronics ST9+ 8/16 mc ";
300 break;
300 break;
301 case EM_ST7:
301 case EM_ST7:
302 machineName = " STmicroelectronics ST7 8 bit mc ";
302 machineName = " STmicroelectronics ST7 8 bit mc ";
303 break;
303 break;
304 case EM_68HC16:
304 case EM_68HC16:
305 machineName = " Motorola MC68HC16 microcontroller ";
305 machineName = " Motorola MC68HC16 microcontroller ";
306 break;
306 break;
307 case EM_68HC11:
307 case EM_68HC11:
308 machineName = " Motorola MC68HC11 microcontroller ";
308 machineName = " Motorola MC68HC11 microcontroller ";
309 break;
309 break;
310 case EM_68HC08:
310 case EM_68HC08:
311 machineName = " Motorola MC68HC08 microcontroller ";
311 machineName = " Motorola MC68HC08 microcontroller ";
312 break;
312 break;
313 case EM_68HC05:
313 case EM_68HC05:
314 machineName = " Motorola MC68HC05 microcontroller ";
314 machineName = " Motorola MC68HC05 microcontroller ";
315 break;
315 break;
316 case EM_SVX:
316 case EM_SVX:
317 machineName = " Silicon Graphics SVx ";
317 machineName = " Silicon Graphics SVx ";
318 break;
318 break;
319 case EM_ST19:
319 case EM_ST19:
320 machineName = " STMicroelectronics ST19 8 bit mc ";
320 machineName = " STMicroelectronics ST19 8 bit mc ";
321 break;
321 break;
322 case EM_VAX:
322 case EM_VAX:
323 machineName = " Digital VAX ";
323 machineName = " Digital VAX ";
324 break;
324 break;
325 case EM_CRIS:
325 case EM_CRIS:
326 machineName = " Axis Communications 32-bit embedded processor ";
326 machineName = " Axis Communications 32-bit embedded processor ";
327 break;
327 break;
328 case EM_JAVELIN:
328 case EM_JAVELIN:
329 machineName = " Infineon Technologies 32-bit embedded processor ";
329 machineName = " Infineon Technologies 32-bit embedded processor ";
330 break;
330 break;
331 case EM_FIREPATH:
331 case EM_FIREPATH:
332 machineName = " Element 14 64-bit DSP Processor ";
332 machineName = " Element 14 64-bit DSP Processor ";
333 break;
333 break;
334 case EM_ZSP:
334 case EM_ZSP:
335 machineName = " LSI Logic 16-bit DSP Processor ";
335 machineName = " LSI Logic 16-bit DSP Processor ";
336 break;
336 break;
337 case EM_MMIX:
337 case EM_MMIX:
338 machineName = " Donald Knuth's educational 64-bit processor ";
338 machineName = " Donald Knuth's educational 64-bit processor ";
339 break;
339 break;
340 case EM_HUANY:
340 case EM_HUANY:
341 machineName = " Harvard University machine-independent object files ";
341 machineName = " Harvard University machine-independent object files ";
342 break;
342 break;
343 case EM_PRISM:
343 case EM_PRISM:
344 machineName = " SiTera Prism ";
344 machineName = " SiTera Prism ";
345 break;
345 break;
346 case EM_AVR:
346 case EM_AVR:
347 machineName = " Atmel AVR 8-bit microcontroller ";
347 machineName = " Atmel AVR 8-bit microcontroller ";
348 break;
348 break;
349 case EM_FR30:
349 case EM_FR30:
350 machineName = " Fujitsu FR30 ";
350 machineName = " Fujitsu FR30 ";
351 break;
351 break;
352 case EM_D10V:
352 case EM_D10V:
353 machineName = " Mitsubishi D10V ";
353 machineName = " Mitsubishi D10V ";
354 break;
354 break;
355 case EM_D30V:
355 case EM_D30V:
356 machineName = " Mitsubishi D30V ";
356 machineName = " Mitsubishi D30V ";
357 break;
357 break;
358 case EM_V850:
358 case EM_V850:
359 machineName = " NEC v850 ";
359 machineName = " NEC v850 ";
360 break;
360 break;
361 case EM_M32R:
361 case EM_M32R:
362 machineName = " Mitsubishi M32R ";
362 machineName = " Mitsubishi M32R ";
363 break;
363 break;
364 case EM_MN10300:
364 case EM_MN10300:
365 machineName = " Matsushita MN10300 ";
365 machineName = " Matsushita MN10300 ";
366 break;
366 break;
367 case EM_MN10200:
367 case EM_MN10200:
368 machineName = " Matsushita MN10200 ";
368 machineName = " Matsushita MN10200 ";
369 break;
369 break;
370 case EM_PJ:
370 case EM_PJ:
371 machineName = " picoJava ";
371 machineName = " picoJava ";
372 break;
372 break;
373 case EM_OPENRISC:
373 case EM_OPENRISC:
374 machineName = " OpenRISC 32-bit embedded processor ";
374 machineName = " OpenRISC 32-bit embedded processor ";
375 break;
375 break;
376 case EM_ARC_A5:
376 case EM_ARC_A5:
377 machineName = " ARC Cores Tangent-A5 ";
377 machineName = " ARC Cores Tangent-A5 ";
378 break;
378 break;
379 case EM_XTENSA:
379 case EM_XTENSA:
380 machineName = " Tensilica Xtensa Architecture ";
380 machineName = " Tensilica Xtensa Architecture ";
381 break;
381 break;
382 case EM_AARCH64:
382 case EM_AARCH64:
383 machineName = " ARM AARCH64 ";
383 machineName = " ARM AARCH64 ";
384 break;
384 break;
385 case EM_TILEPRO:
385 case EM_TILEPRO:
386 machineName = " Tilera TILEPro ";
386 machineName = " Tilera TILEPro ";
387 break;
387 break;
388 case EM_MICROBLAZE:
388 case EM_MICROBLAZE:
389 machineName = " Xilinx MicroBlaze ";
389 machineName = " Xilinx MicroBlaze ";
390 break;
390 break;
391 case EM_TILEGX:
391 case EM_TILEGX:
392 machineName = " Tilera TILE-Gx ";
392 machineName = " Tilera TILE-Gx ";
393 break;
393 break;
394 case EM_NUM:
394 case EM_NUM:
395 machineName = "";
395 machineName = "";
396 break;
396 break;
397 default:
397 default:
398 machineName ="Unknow Machine";
398 machineName ="Unknow Machine";
399 break;
399 break;
400 }
400 }
401 return machineName;
401 return machineName;
402 }
402 }
403
403
404
404
405
405
406
406
407 QString ElfFile::getClass()
407 QString ElfFile::getClass()
408 {
408 {
409 if(this->e!=NULL)
409 if(this->e!=NULL)
410 {
410 {
411 int eclass = gelf_getclass(this->e);
411 int eclass = gelf_getclass(this->e);
412 if(eclass==ELFCLASS32)return "ELF32";
412 if(eclass==ELFCLASS32)return "ELF32";
413 if(eclass==ELFCLASS64)return "ELF64";
413 if(eclass==ELFCLASS64)return "ELF64";
414 }
414 }
415 return "none";
415 return "none";
416 }
416 }
417
417
418
418
419 bool ElfFile::iself()
419 bool ElfFile::iself()
420 {
420 {
421 return (this->getType()!="Unknow");
421 return (this->getType()!="Unknow");
422 }
422 }
423
423
424 QString ElfFile::getArchitecture()
424 QString ElfFile::getArchitecture()
425 {
425 {
426 if(this->e!=NULL)
426 if(this->e!=NULL)
427 {
427 {
428 return elfresolveMachine(this->ehdr.e_machine);
428 return elfresolveMachine(this->ehdr.e_machine);
429 }
429 }
430 return "";
430 return "";
431 }
431 }
432
432
433
433
434 QString ElfFile::getType()
434 QString ElfFile::getType()
435 {
435 {
436 QString kind("");
436 QString kind("");
437 if(this->e!=NULL)
437 if(this->e!=NULL)
438 {
438 {
439 switch(this->ek)
439 switch(this->ek)
440 {
440 {
441 case ELF_K_AR:
441 case ELF_K_AR:
442 kind = "Archive";
442 kind = "Archive";
443 break;
443 break;
444 case ELF_K_ELF:
444 case ELF_K_ELF:
445 kind = "Elf";
445 kind = "Elf";
446 break;
446 break;
447 case ELF_K_COFF:
447 case ELF_K_COFF:
448 kind = "COFF";
448 kind = "COFF";
449 break;
449 break;
450 case ELF_K_NUM:
450 case ELF_K_NUM:
451 kind = "NUM";
451 kind = "NUM";
452 break;
452 break;
453 case ELF_K_NONE:
453 case ELF_K_NONE:
454 kind = "Data";
454 kind = "Data";
455 break;
455 break;
456 default:
456 default:
457 kind = "Unknow";
457 kind = "Unknow";
458 break;
458 break;
459 }
459 }
460 }
460 }
461 return kind;
461 return kind;
462 }
462 }
463
463
464 QString ElfFile::getEndianness()
464 QString ElfFile::getEndianness()
465 {
465 {
466 if(this->e!=NULL)
466 if(this->e!=NULL)
467 {
467 {
468 if(this->ehdr.e_ident[EI_DATA]==ELFDATA2LSB)return "2's complement, little endian";
468 if(this->ehdr.e_ident[EI_DATA]==ELFDATA2LSB)return "2's complement, little endian";
469 if(this->ehdr.e_ident[EI_DATA]==ELFDATA2MSB)return "2's complement, big endian";
469 if(this->ehdr.e_ident[EI_DATA]==ELFDATA2MSB)return "2's complement, big endian";
470 }
470 }
471 return "none";
471 return "none";
472 }
472 }
473
473
474 QString ElfFile::getABI()
474 QString ElfFile::getABI()
475 {
475 {
476 if(this->e!=NULL)
476 if(this->e!=NULL)
477 {
477 {
478 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_NONE)return "UNIX System V ABI";
478 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_NONE)return "UNIX System V ABI";
479 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_SYSV)return "Alias";
479 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_SYSV)return "Alias";
480 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_HPUX)return "HP-UX";
480 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_HPUX)return "HP-UX";
481 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_NETBSD)return "NetBSD";
481 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_NETBSD)return "NetBSD";
482 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_GNU)return "Object uses GNU ELF extensions";
482 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_GNU)return "Object uses GNU ELF extensions";
483 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_LINUX)return "Compatibility alias";
483 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_LINUX)return "Compatibility alias";
484 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_SOLARIS)return "Sun Solaris";
484 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_SOLARIS)return "Sun Solaris";
485 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_AIX)return "IBM AIX";
485 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_AIX)return "IBM AIX";
486 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_IRIX)return "SGI Irix";
486 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_IRIX)return "SGI Irix";
487 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_FREEBSD)return "FreeBSD";
487 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_FREEBSD)return "FreeBSD";
488 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX";
488 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX";
489 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto";
489 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto";
490 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD";
490 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD";
491 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI";
491 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI";
492 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM";
492 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM";
493 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application";
493 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application";
494 }
494 }
495 return "none";
495 return "none";
496 }
496 }
497
497
498
498
499 qint64 ElfFile::getVersion()
499 qint64 ElfFile::getVersion()
500 {
500 {
501 if(this->e!=NULL)
501 if(this->e!=NULL)
502 {
502 {
503 return this->ehdr.e_version;
503 return this->ehdr.e_version;
504 }
504 }
505 return -1;
505 }
506 }
506
507
507 qint64 ElfFile::getEntryPointAddress()
508 qint64 ElfFile::getEntryPointAddress()
508 {
509 {
509 if(this->e!=NULL)
510 if(this->e!=NULL)
510 {
511 {
511 return this->ehdr.e_entry;
512 return this->ehdr.e_entry;
512 }
513 }
514 return -1;
513 }
515 }
514
516
515
517
516 int ElfFile::getSectionCount()
518 int ElfFile::getSectionCount()
517 {
519 {
518 return (int)this->SectionCount;
520 return (int)this->SectionCount;
519 }
521 }
520
522
521 int ElfFile::getSymbolCount()
523 int ElfFile::getSymbolCount()
522 {
524 {
523 return (int)this->SymbolCount;
525 return (int)this->SymbolCount;
524 }
526 }
525
527
526
528
527 int ElfFile::getSegmentCount()
529 int ElfFile::getSegmentCount()
528 {
530 {
529 return (int)this->SegmentCount;
531 return (int)this->SegmentCount;
530 }
532 }
531
533
532
534
533 QString ElfFile::getSegmentType(int index)
535 QString ElfFile::getSegmentType(int index)
534 {
536 {
535 QString type("");
537 QString type("");
536 if(this->e!=NULL)
538 if(this->e!=NULL)
537 {
539 {
538 if(index < this->Segments.count())
540 if(index < this->Segments.count())
539 {
541 {
540 switch(this->Segments.at(index)->p_type)
542 switch(this->Segments.at(index)->p_type)
541 {
543 {
542 case PT_NULL:
544 case PT_NULL:
543 type = "Program header table entry unused";
545 type = "Program header table entry unused";
544 break;
546 break;
545 case PT_LOAD:
547 case PT_LOAD:
546 type = "Loadable program segment";
548 type = "Loadable program segment";
547 break;
549 break;
548 case PT_DYNAMIC :
550 case PT_DYNAMIC :
549 type = "Dynamic linking information";
551 type = "Dynamic linking information";
550 break;
552 break;
551 case PT_INTERP:
553 case PT_INTERP:
552 type ="Program interpreter";
554 type ="Program interpreter";
553 break;
555 break;
554 case PT_NOTE:
556 case PT_NOTE:
555 type = "Auxiliary information";
557 type = "Auxiliary information";
556 break;
558 break;
557 case PT_SHLIB:
559 case PT_SHLIB:
558 type = "Reserved";
560 type = "Reserved";
559 break;
561 break;
560 case PT_PHDR:
562 case PT_PHDR:
561 type = "Entry for header table itself";
563 type = "Entry for header table itself";
562 break;
564 break;
563 case PT_TLS:
565 case PT_TLS:
564 type = "Thread-local storage segment";
566 type = "Thread-local storage segment";
565 break;
567 break;
566 case PT_NUM:
568 case PT_NUM:
567 type = "Number of defined types";
569 type = "Number of defined types";
568 break;
570 break;
569 case PT_LOOS:
571 case PT_LOOS:
570 type = "Start of OS-specific";
572 type = "Start of OS-specific";
571 break;
573 break;
572 case PT_SUNWSTACK:
574 case PT_SUNWSTACK:
573 type = "Stack segment";
575 type = "Stack segment";
574 break;
576 break;
575 case PT_LOPROC:
577 case PT_LOPROC:
576 type = "Start of processor-specific";
578 type = "Start of processor-specific";
577 break;
579 break;
578 case PT_HIPROC:
580 case PT_HIPROC:
579 type = "End of processor-specific";
581 type = "End of processor-specific";
580 break;
582 break;
581 default:
583 default:
582 type = "Unknow Section Type";
584 type = "Unknow Section Type";
583 break;
585 break;
584 }
586 }
585 }
587 }
586 }
588 }
587
589
588 return type;
590 return type;
589 }
591 }
590
592
591
593
592 qint64 ElfFile::getSegmentOffset(int index)
594 qint64 ElfFile::getSegmentOffset(int index)
593 {
595 {
594 int64_t Offset;
596 qint64 Offset = -1;
595 if(this->e!=NULL)
597 if(this->e!=NULL)
596 {
598 {
597 if(index < this->Segments.count())
599 if(index < this->Segments.count())
598 {
600 {
599 Offset = (int64_t)this->Segments.at(index)->p_offset;
601 Offset = (qint64)this->Segments.at(index)->p_offset;
600 }
602 }
601 }
603 }
602 return Offset;
604 return Offset;
603 }
605 }
604
606
605
607
606 qint64 ElfFile::getSegmentVaddr(int index)
608 qint64 ElfFile::getSegmentVaddr(int index)
607 {
609 {
608 int64_t Vaddr = 0;
610 int64_t Vaddr = 0;
609 if(this->e!=NULL)
611 if(this->e!=NULL)
610 {
612 {
611 if(index < this->Segments.count())
613 if(index < this->Segments.count())
612 {
614 {
613 Vaddr = (int64_t)this->Segments.at(index)->p_vaddr;
615 Vaddr = (int64_t)this->Segments.at(index)->p_vaddr;
614 }
616 }
615 }
617 }
616 return Vaddr;
618 return Vaddr;
617 }
619 }
618
620
619
621
620 qint64 ElfFile::getSegmentPaddr(int index)
622 qint64 ElfFile::getSegmentPaddr(int index)
621 {
623 {
622 int64_t Paddr=0;
624 int64_t Paddr=0;
623 if(this->e!=NULL)
625 if(this->e!=NULL)
624 {
626 {
625 if(index < this->Segments.count())
627 if(index < this->Segments.count())
626 {
628 {
627 Paddr = (int64_t)this->Segments.at(index)->p_paddr;
629 Paddr = (int64_t)this->Segments.at(index)->p_paddr;
628 }
630 }
629 }
631 }
630 return Paddr;
632 return Paddr;
631 }
633 }
632
634
633 qint64 ElfFile::getSectionPaddr(int index)
635 qint64 ElfFile::getSectionPaddr(int index)
634 {
636 {
635 int64_t Paddr=0;
637 int64_t Paddr=0;
636 if(this->e!=NULL)
638 if(this->e!=NULL)
637 {
639 {
638 if(index < this->sections.count())
640 if(index < this->sections.count())
639 {
641 {
640 Paddr = (int64_t)this->sections.at(index)->section_header->sh_addr;
642 Paddr = (int64_t)this->sections.at(index)->section_header->sh_addr;
641 }
643 }
642 }
644 }
643 return Paddr;
645 return Paddr;
644 }
646 }
645
647
646
648
647 qint64 ElfFile::getSegmentFilesz(int index)
649 qint64 ElfFile::getSegmentFilesz(int index)
648 {
650 {
649 int64_t FileSz=0;
651 int64_t FileSz=0;
650 if(this->e!=NULL)
652 if(this->e!=NULL)
651 {
653 {
652 if(index < this->Segments.count())
654 if(index < this->Segments.count())
653 {
655 {
654 FileSz = (int64_t)this->Segments.at(index)->p_filesz;
656 FileSz = (int64_t)this->Segments.at(index)->p_filesz;
655 }
657 }
656 }
658 }
657 return FileSz;
659 return FileSz;
658 }
660 }
659
661
660 qint64 ElfFile::getSectionDatasz(int index)
662 qint64 ElfFile::getSectionDatasz(int index)
661 {
663 {
662 int64_t DataSz=0;
664 int64_t DataSz=0;
663 if(this->e!=NULL)
665 if(this->e!=NULL)
664 {
666 {
665 if(index < this->sections.count())
667 if(index < this->sections.count())
666 {
668 {
667 DataSz = (int64_t)this->sections.at(index)->data->d_size;
669 if(this->sections.at(index)->section_header->sh_type==SHT_NOBITS)
670 {
671 DataSz=0;
672 }
673 else
674 {
675 DataSz = (int64_t)this->sections.at(index)->data->d_size;
676 }
668 }
677 }
669 }
678 }
670 return DataSz;
679 return DataSz;
671 }
680 }
672
681
673 bool ElfFile::getSectionData(int index, char **buffer)
682 bool ElfFile::getSectionData(int index, char **buffer)
674 {
683 {
675 if(this->e!=NULL)
684 if(this->e!=NULL)
676 {
685 {
677 if(index < this->sections.count())
686 if(index < this->sections.count())
678 {
687 {
679 *buffer = (char *)this->sections.at(index)->data->d_buf;
688 *buffer = (char *)this->sections.at(index)->data->d_buf;
680 return true;
689 return true;
681 }
690 }
682 }
691 }
683 return false;
692 return false;
684 }
693 }
685
694
686
695
687 qint64 ElfFile::getSegmentMemsz(int index)
696 qint64 ElfFile::getSegmentMemsz(int index)
688 {
697 {
689 int64_t MemSz=0;
698 int64_t MemSz=0;
690 if(this->e!=NULL)
699 if(this->e!=NULL)
691 {
700 {
692 if(index < this->Segments.count())
701 if(index < this->Segments.count())
693 {
702 {
694 MemSz = (int64_t)this->Segments.at(index)->p_memsz;
703 MemSz = (int64_t)this->Segments.at(index)->p_memsz;
695 }
704 }
696 }
705 }
697 return MemSz;
706 return MemSz;
698 }
707 }
699
708
700 qint64 ElfFile::getSectionMemsz(int index)
709 qint64 ElfFile::getSectionMemsz(int index)
701 {
710 {
702 int64_t MemSz=0;
711 int64_t MemSz=0;
703 if(this->e!=NULL)
712 if(this->e!=NULL)
704 {
713 {
705 if(index < this->sections.count())
714 if(index < this->sections.count())
706 {
715 {
707 MemSz = (int64_t)this->sections.at(index)->section_header->sh_size;
716 MemSz = (int64_t)this->sections.at(index)->section_header->sh_size;
708 }
717 }
709 }
718 }
710 return MemSz;
719 return MemSz;
711 }
720 }
712
721
713
722
714 QString ElfFile::getSegmentFlags(int index)
723 QString ElfFile::getSegmentFlags(int index)
715 {
724 {
716 QString flags("");
725 QString flags("");
717 if(this->e!=NULL)
726 if(this->e!=NULL)
718 {
727 {
719 if(index < this->Segments.count())
728 if(index < this->Segments.count())
720 {
729 {
721 if((this->Segments.at(index)->p_flags&PF_X) == PF_X)flags+="x";
730 if((this->Segments.at(index)->p_flags&PF_X) == PF_X)flags+="x";
722 if((this->Segments.at(index)->p_flags&PF_W) == PF_W)flags+="w";
731 if((this->Segments.at(index)->p_flags&PF_W) == PF_W)flags+="w";
723 if((this->Segments.at(index)->p_flags&PF_R) == PF_R)flags+="r";
732 if((this->Segments.at(index)->p_flags&PF_R) == PF_R)flags+="r";
724 if((this->Segments.at(index)->p_flags&PF_MASKOS) == PF_MASKOS)flags+=" OS-specific";
733 if((this->Segments.at(index)->p_flags&PF_MASKOS) == PF_MASKOS)flags+=" OS-specific";
725 if((this->Segments.at(index)->p_flags&PF_MASKPROC) == PF_MASKPROC)flags+=" Processor-specific";
734 if((this->Segments.at(index)->p_flags&PF_MASKPROC) == PF_MASKPROC)flags+=" Processor-specific";
726 }
735 }
727 }
736 }
728 return flags;
737 return flags;
729 }
738 }
730
739
731
740
732 QString ElfFile::getSectionName(int index)
741 QString ElfFile::getSectionName(int index)
733 {
742 {
734 if((index<sections.count()) && (index>=0))
743 if((index<sections.count()) && (index>=0))
735 {
744 {
736 char* nameChr = elf_strptr(this->e , this->shstrndx , this->sections.at(index)->section_header->sh_name);
745 char* nameChr = elf_strptr(this->e , this->shstrndx , this->sections.at(index)->section_header->sh_name);
737 return QString(nameChr);
746 return QString(nameChr);
738 }
747 }
739 return "";
748 return "";
740 }
749 }
741
750
742
751
743 void ElfFile::updateSections()
752 void ElfFile::updateSections()
744 {
753 {
745 for(int i=0;i<this->sections.count();i++)
754 for(int i=0;i<this->sections.count();i++)
746 {
755 {
747 delete this->sections.at(i);
756 delete this->sections.at(i);
748 }
757 }
749 this->sections.clear();
758 this->sections.clear();
750 this->scn = elf_nextscn (this->e , NULL );
759 this->scn = elf_nextscn (this->e , NULL );
751 this->SectionCount = 0;
760 this->SectionCount = 0;
752 while( this->scn != NULL )
761 while( this->scn != NULL )
753 {
762 {
754 GElf_Shdr* shdr = (GElf_Shdr*)malloc(sizeof(GElf_Shdr));
763 GElf_Shdr* shdr = (GElf_Shdr*)malloc(sizeof(GElf_Shdr));
755 gelf_getshdr ( this->scn , shdr );
764 gelf_getshdr ( this->scn , shdr );
756 Elf_Data* data = elf_getdata(this->scn, NULL);
765 Elf_Data* data = elf_getdata(this->scn, NULL);
757 this->sections.append(new Elf_Section(data,shdr));
766 this->sections.append(new Elf_Section(data,shdr));
758 this->SectionCount+=1;
767 this->SectionCount+=1;
759 this->scn = elf_nextscn(e , scn);
768 this->scn = elf_nextscn(e , scn);
760 }
769 }
761 }
770 }
762
771
763
772
764 void ElfFile::updateSegments()
773 void ElfFile::updateSegments()
765 {
774 {
766 elf_getphdrnum (this->e , &this->SegmentCount);
775 elf_getphdrnum (this->e , &this->SegmentCount);
767 for(int i=0;i<this->Segments.count();i++)
776 for(int i=0;i<this->Segments.count();i++)
768 {
777 {
769 free(this->Segments.at(i));
778 free(this->Segments.at(i));
770 }
779 }
771 this->Segments.clear();
780 this->Segments.clear();
772 for(int i=0;i<this->SegmentCount;i++)
781 for(int i=0;i<(int)this->SegmentCount;i++)
773 {
782 {
774 GElf_Phdr* header=(GElf_Phdr*)malloc(sizeof(GElf_Phdr));
783 GElf_Phdr* header=(GElf_Phdr*)malloc(sizeof(GElf_Phdr));
775 gelf_getphdr (this->e , i , header );
784 gelf_getphdr (this->e , i , header );
776 this->Segments.append(header);
785 this->Segments.append(header);
777 }
786 }
778 }
787 }
779
788
780 void ElfFile::updateSymbols()
789 void ElfFile::updateSymbols()
781 {
790 {
782 for(int i=0;i<symbols.count();i++)
791 for(int i=0;i<symbols.count();i++)
783 {
792 {
784 delete this->symbols.at(i);
793 delete this->symbols.at(i);
785 }
794 }
786 this->symbols.clear();
795 this->symbols.clear();
787 updateSections(); //Useless in most case but safer to do it
796 updateSections(); //Useless in most case but safer to do it
788 for(int i=0;i<SectionCount;i++)
797 for(int i=0;i<(int)SectionCount;i++)
789 {
798 {
790 //First find Symbol table
799 //First find Symbol table
791 if(this->getSectionName(i)==".symtab")
800 if(this->getSectionName(i)==".symtab")
792 {
801 {
793 Elf_Section* sec = sections.at(i);
802 Elf_Section* sec = sections.at(i);
794 this->SymbolCount = sec->section_header->sh_size / sec->section_header->sh_entsize;
803 this->SymbolCount = sec->section_header->sh_size / sec->section_header->sh_entsize;
795 //Then list all symbols
804 //Then list all symbols
796 for(int j=0;j<this->SymbolCount;j++)
805 for(int j=0;j<(int)this->SymbolCount;j++)
797 {
806 {
798 GElf_Sym* esym = (GElf_Sym*)malloc(sizeof(GElf_Sym));
807 GElf_Sym* esym = (GElf_Sym*)malloc(sizeof(GElf_Sym));
799 gelf_getsym(sec->data, j, esym);
808 gelf_getsym(sec->data, j, esym);
800 QString name = elf_strptr(this->e,sec->section_header->sh_link,esym->st_name);
809 QString name = elf_strptr(this->e,sec->section_header->sh_link,esym->st_name);
801 Elf_Symbol* sym = new Elf_Symbol(name,esym);
810 Elf_Symbol* sym = new Elf_Symbol(name,esym);
802 symbols.append(sym);
811 symbols.append(sym);
803 }
812 }
804 }
813 }
805 }
814 }
806
815
807 }
816 }
808
817
809
818
810
819
811 QString ElfFile::getSectionType(int index)
820 QString ElfFile::getSectionType(int index)
812 {
821 {
813 QString type("");
822 QString type("");
814 if(this->e!=NULL)
823 if(this->e!=NULL)
815 {
824 {
816 if(index < this->Segments.count())
825 if(index < this->sections.count())
817 {
826 {
818 switch(this->Segments.at(index)->p_type)
827 switch(this->sections.at(index)->section_header->sh_type)
819 {
828 {
820 case SHT_NULL : type = "Section header table entry unused"; break;
829 case SHT_NULL : type = "Section header table entry unused"; break;
821 case SHT_PROGBITS : type = "Program data"; break;
830 case SHT_PROGBITS : type = "Program data"; break;
822 case SHT_SYMTAB : type = "Symbol table"; break;
831 case SHT_SYMTAB : type = "Symbol table"; break;
823 case SHT_STRTAB : type = "String table"; break;
832 case SHT_STRTAB : type = "String table"; break;
824 case SHT_RELA : type = "Relocation entries with addends"; break;
833 case SHT_RELA : type = "Relocation entries with addends"; break;
825 case SHT_HASH : type = "Symbol hash table"; break;
834 case SHT_HASH : type = "Symbol hash table"; break;
826 case SHT_DYNAMIC : type = "Dynamic linking information"; break;
835 case SHT_DYNAMIC : type = "Dynamic linking information"; break;
827 case SHT_NOTE : type = "Notes"; break;
836 case SHT_NOTE : type = "Notes"; break;
828 case SHT_NOBITS :type = "Program space with no data (bss)"; break;
837 case SHT_NOBITS :type = "Program space with no data (bss)"; break;
829 case SHT_REL :type = "Relocation entries, no addends"; break;
838 case SHT_REL :type = "Relocation entries, no addends"; break;
830 case SHT_SHLIB : type = "Reserved"; break;
839 case SHT_SHLIB : type = "Reserved"; break;
831 case SHT_DYNSYM : type = "Dynamic linker symbol table"; break;
840 case SHT_DYNSYM : type = "Dynamic linker symbol table"; break;
832 case SHT_INIT_ARRAY : type = "Array of constructors"; break;
841 case SHT_INIT_ARRAY : type = "Array of constructors"; break;
833 case SHT_FINI_ARRAY : type = "Array of destructors"; break;
842 case SHT_FINI_ARRAY : type = "Array of destructors"; break;
834 case SHT_PREINIT_ARRAY : type = "Array of pre-constructors"; break;
843 case SHT_PREINIT_ARRAY : type = "Array of pre-constructors"; break;
835 case SHT_GROUP : type = "Section group"; break;
844 case SHT_GROUP : type = "Section group"; break;
836 case SHT_SYMTAB_SHNDX : type = "Extended section indeces"; break;
845 case SHT_SYMTAB_SHNDX : type = "Extended section indeces"; break;
837 case SHT_NUM : type = "Number of defined types. "; break;
846 case SHT_NUM : type = "Number of defined types. "; break;
838 case SHT_LOOS : type = "Start OS-specific. "; break;
847 case SHT_LOOS : type = "Start OS-specific. "; break;
839 case SHT_LOSUNW : type = "Sun-specific low bound. "; break;
848 case SHT_LOSUNW : type = "Sun-specific low bound. "; break;
840 case SHT_SUNW_COMDAT : type = " "; break;
849 case SHT_SUNW_COMDAT : type = " "; break;
841 case SHT_SUNW_syminfo : type = " "; break;
850 case SHT_SUNW_syminfo : type = " "; break;
842 case SHT_GNU_verdef : type = "Version definition section. "; break;
851 case SHT_GNU_verdef : type = "Version definition section. "; break;
843 case SHT_GNU_verneed : type = "Version needs section. "; break;
852 case SHT_GNU_verneed : type = "Version needs section. "; break;
844 case SHT_GNU_versym : type = "Version symbol table. "; break;
853 case SHT_GNU_versym : type = "Version symbol table. "; break;
845 case SHT_LOPROC : type = "Start of processor-specific"; break;
854 case SHT_LOPROC : type = "Start of processor-specific"; break;
846 case SHT_HIPROC : type = "End of processor-specific"; break;
855 case SHT_HIPROC : type = "End of processor-specific"; break;
847 case SHT_HIUSER : type = "End of application-specific"; break;
856 case SHT_HIUSER : type = "End of application-specific"; break;
848 }
857 }
849 }
858 }
850 }
859 }
851 return type;
860 return type;
852 }
861 }
853
862
854 int ElfFile::getSectionIndex(QString name)
863 int ElfFile::getSectionIndex(QString name)
855 {
864 {
856 if(this->e!=NULL)
865 if(this->e!=NULL)
857 {
866 {
858 for(int i=0;i<sections.count();i++)
867 for(int i=0;i<sections.count();i++)
859 {
868 {
860 if(getSectionName(i)==name)
869 if(getSectionName(i)==name)
861 return i;
870 return i;
862 }
871 }
863 }
872 }
864 return -1;
873 return -1;
865 }
874 }
866
875
876 bool ElfFile::sectionIsNobits(int index)
877 {
878 if(this->e!=NULL)
879 {
880 if(index < this->sections.count())
881 {
882 return this->sections.at(index)->section_header->sh_type== SHT_NOBITS;
883 }
884 }
885 return false;
886 }
887
867 QString ElfFile::getSymbolName(int index)
888 QString ElfFile::getSymbolName(int index)
868 {
889 {
869 if(this->e!=NULL)
890 if(this->e!=NULL)
870 {
891 {
871 if(index < this->symbols.count())
892 if(index < this->symbols.count())
872 {
893 {
873 return symbols.at(index)->name;
894 return symbols.at(index)->name;
874 }
895 }
875 }
896 }
876 return "";
897 return "";
877 }
898 }
878
899
879 QString ElfFile::getSymbolType(int index)
900 QString ElfFile::getSymbolType(int index)
880 {
901 {
881 if(this->e!=NULL)
902 if(this->e!=NULL)
882 {
903 {
883 if(index < this->symbols.count())
904 if(index < this->symbols.count())
884 {
905 {
885 int type = GELF_ST_TYPE(symbols.at(index)->sym->st_info);
906 int type = GELF_ST_TYPE(symbols.at(index)->sym->st_info);
886 switch(type)
907 switch(type)
887 {
908 {
888 case STT_NOTYPE:
909 case STT_NOTYPE:
889 return "No Type";
910 return "No Type";
890 break;
911 break;
891 case STT_OBJECT:
912 case STT_OBJECT:
892 return "Object";
913 return "Object";
893 break;
914 break;
894 case STT_FUNC:
915 case STT_FUNC:
895 return "Function";
916 return "Function";
896 break;
917 break;
897 case STT_SECTION:
918 case STT_SECTION:
898 return "Section";
919 return "Section";
899 break;
920 break;
900 case STT_FILE:
921 case STT_FILE:
901 return "File";
922 return "File";
902 break;
923 break;
903 case STT_COMMON:
924 case STT_COMMON:
904 return "Common data object";
925 return "Common data object";
905 break;
926 break;
906 case STT_TLS:
927 case STT_TLS:
907 return "Thread-local data object";
928 return "Thread-local data object";
908 break;
929 break;
909 case STT_NUM:
930 case STT_NUM:
910 return "Number of defined types";
931 return "Number of defined types";
911 break;
932 break;
912 case STT_LOOS:
933 case STT_LOOS:
913 return "Start of OS-specific";
934 return "Start of OS-specific";
914 break;
935 break;
915 case STT_HIOS:
936 case STT_HIOS:
916 return "End of OS-specific";
937 return "End of OS-specific";
917 break;
938 break;
918 case STT_LOPROC:
939 case STT_LOPROC:
919 return "Start of processor-specific";
940 return "Start of processor-specific";
920 break;
941 break;
921 case STT_HIPROC:
942 case STT_HIPROC:
922 return "End of processor-specific";
943 return "End of processor-specific";
923 break;
944 break;
924 default:
945 default:
925 return "none";
946 return "none";
926 break;
947 break;
927 }
948 }
928 }
949 }
929 }
950 }
930 return "none";
951 return "none";
931 }
952 }
932
953
933 quint64 ElfFile::getSymbolSize(int index)
954 quint64 ElfFile::getSymbolSize(int index)
934 {
955 {
935 if(this->e!=NULL)
956 if(this->e!=NULL)
936 {
957 {
937 if((index < this->symbols.count()) && (index>=0))
958 if((index < this->symbols.count()) && (index>=0))
938 {
959 {
939 return symbols.at(index)->sym->st_size;
960 return symbols.at(index)->sym->st_size;
940 }
961 }
941 }
962 }
942 return 0;
963 return 0;
943 }
964 }
944
965
945 QString ElfFile::getSymbolSectionName(int index)
966 QString ElfFile::getSymbolSectionName(int index)
946 {
967 {
947 if(this->e!=NULL)
968 if(this->e!=NULL)
948 {
969 {
949 if((index < this->symbols.count()) && (index>=0))
970 if((index < this->symbols.count()) && (index>=0))
950 {
971 {
951 return getSectionName(symbols.at(index)->sym->st_shndx-1);
972 return getSectionName(symbols.at(index)->sym->st_shndx-1);
952 }
973 }
953 }
974 }
954 return "none";
975 return "none";
955 }
976 }
956
977
957 int ElfFile::getSymbolSectionIndex(int index)
978 int ElfFile::getSymbolSectionIndex(int index)
958 {
979 {
959 if(this->e!=NULL)
980 if(this->e!=NULL)
960 {
981 {
961 if((index < this->symbols.count()) && (index>=0))
982 if((index < this->symbols.count()) && (index>=0))
962 {
983 {
963 return symbols.at(index)->sym->st_shndx;
984 return symbols.at(index)->sym->st_shndx;
964 }
985 }
965 }
986 }
966 return 0;
987 return 0;
967 }
988 }
968
989
969 quint64 ElfFile::getSymbolAddress(int index)
990 quint64 ElfFile::getSymbolAddress(int index)
970 {
991 {
971 if(this->e!=NULL)
992 if(this->e!=NULL)
972 {
993 {
973 if((index < this->symbols.count()) && (index>=0))
994 if((index < this->symbols.count()) && (index>=0))
974 {
995 {
975 return symbols.at(index)->sym->st_value;
996 return symbols.at(index)->sym->st_value;
976 }
997 }
977 }
998 }
978 return 0;
999 return 0;
979 }
1000 }
980
1001
981 QString ElfFile::getSymbolLinkType(int index)
1002 QString ElfFile::getSymbolLinkType(int index)
982 {
1003 {
983 if(this->e!=NULL)
1004 if(this->e!=NULL)
984 {
1005 {
985 if(index < this->symbols.count())
1006 if(index < this->symbols.count())
986 {
1007 {
987 int btype = GELF_ST_BIND(symbols.at(index)->sym->st_info);
1008 int btype = GELF_ST_BIND(symbols.at(index)->sym->st_info);
988 switch(btype)
1009 switch(btype)
989 {
1010 {
990 case STB_LOCAL:
1011 case STB_LOCAL:
991 return "Local";
1012 return "Local";
992 break;
1013 break;
993 case STB_GLOBAL:
1014 case STB_GLOBAL:
994 return "Global";
1015 return "Global";
995 break;
1016 break;
996 case STB_WEAK:
1017 case STB_WEAK:
997 return "Weak";
1018 return "Weak";
998 break;
1019 break;
999 case STB_NUM:
1020 case STB_NUM:
1000 return "Number of defined types";
1021 return "Number of defined types";
1001 break;
1022 break;
1002 case STB_LOOS:
1023 case STB_LOOS:
1003 return "Start of OS-specific";
1024 return "Start of OS-specific";
1004 break;
1025 break;
1005 case STB_HIOS:
1026 case STB_HIOS:
1006 return "End of OS-specific";
1027 return "End of OS-specific";
1007 break;
1028 break;
1008 case STB_LOPROC:
1029 case STB_LOPROC:
1009 return "Start of processor-specific";
1030 return "Start of processor-specific";
1010 break;
1031 break;
1011 case STB_HIPROC:
1032 case STB_HIPROC:
1012 return "End of processor-specific";
1033 return "End of processor-specific";
1013 break;
1034 break;
1014 default:
1035 default:
1015 return "none";
1036 return "none";
1016 break;
1037 break;
1017 }
1038 }
1018 }
1039 }
1019 }
1040 }
1020 return "none";
1041 return "none";
1021 }
1042 }
1022
1043
1023 bool ElfFile::isElf(const QString &File)
1044 bool ElfFile::isElf(const QString &File)
1024 {
1045 {
1025 int file =0;
1046 int file =0;
1026 #ifdef _ELF_WINDOWS_
1047 #ifdef _ELF_WINDOWS_
1027 file = open(File.toStdString().c_str(),O_RDONLY|O_BINARY ,0);
1048 file = open(File.toStdString().c_str(),O_RDONLY|O_BINARY ,0);
1028 #else
1049 #else
1029 file = open(File.toStdString().c_str(),O_RDONLY ,0);
1050 file = open(File.toStdString().c_str(),O_RDONLY ,0);
1030 #endif
1051 #endif
1031 char Magic[4];
1052 char Magic[4];
1032 if(file!=-1)
1053 if(file!=-1)
1033 {
1054 {
1034 read(file,Magic,4);
1055 size_t res = read(file,Magic,4);
1035 close(file);
1056 close(file);
1036 if(Magic[0]==0x7f && Magic[1]==0x45 && Magic[2]==0x4c && Magic[3]==0x46)
1057 if((res==4) && (Magic[0]==0x7f) && (Magic[1]==0x45) && (Magic[2]==0x4c) && (Magic[3]==0x46))
1037 {
1058 {
1038 return true;
1059 return true;
1039 }
1060 }
1040 }
1061 }
1041 return false;
1062 return false;
1042 }
1063 }
1043
1064
1044 bool ElfFile::toSrec(const QString &File)
1065 bool ElfFile::toSrec(const QString &File)
1045 {
1066 {
1046 return srecFile::toSrec(this->getFragments(),File);
1067 return srecFile::toSrec(this->getFragments(),File);
1047 }
1068 }
@@ -1,134 +1,135
1 /*------------------------------------------------------------------------------
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 --
4 --
5 -- This program is free software; you can redistribute it and/or modify
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 2 of the License, or
7 -- the Free Software Foundation; either version 2 of the License, or
8 -- (at your option) any later version.
8 -- (at your option) any later version.
9 --
9 --
10 -- This program is distributed in the hope that it will be useful,
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
13 -- GNU General Public License for more details.
14 --
14 --
15 -- You should have received a copy of the GNU General Public License
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
18 -------------------------------------------------------------------------------*/
19 /*-- Author : Alexis Jeandet
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
21 ----------------------------------------------------------------------------*/
22 #include <abstractbinfile.h>
22 #include <abstractbinfile.h>
23 #include <QtCore/QObject>
23 #include <QtCore/QObject>
24 #include <QtCore/QStringList>
24 #include <QtCore/QStringList>
25 #include <libelf.h>
25 #include <libelf.h>
26 #include <gelf.h>
26 #include <gelf.h>
27 #include <sys/types.h>
27 #include <sys/types.h>
28 #include <sys/stat.h>
28 #include <sys/stat.h>
29 #include <fcntl.h>
29 #include <fcntl.h>
30 #include <unistd.h>
30 #include <unistd.h>
31 #ifndef ELFFILE_H
31 #ifndef ELFFILE_H
32 #define ELFFILE_H
32 #define ELFFILE_H
33
33
34 class Elf_Section
34 class Elf_Section
35 {
35 {
36 public:
36 public:
37 Elf_Section(){}
37 Elf_Section(){}
38 Elf_Section(Elf_Data* data,GElf_Shdr* section_header)
38 Elf_Section(Elf_Data* data,GElf_Shdr* section_header)
39 {
39 {
40 this->data = data;
40 this->data = data;
41 this->section_header = section_header;
41 this->section_header = section_header;
42 }
42 }
43 ~Elf_Section()
43 ~Elf_Section()
44 {
44 {
45 free(section_header);
45 free(section_header);
46 }
46 }
47 Elf_Data* data;
47 Elf_Data* data;
48 GElf_Shdr* section_header;
48 GElf_Shdr* section_header;
49 };
49 };
50
50
51 class Elf_Symbol
51 class Elf_Symbol
52 {
52 {
53 public:
53 public:
54 Elf_Symbol(){}
54 Elf_Symbol(){}
55 Elf_Symbol(const QString& name,GElf_Sym* sym):name(name),sym(sym){}
55 Elf_Symbol(const QString& name,GElf_Sym* sym):name(name),sym(sym){}
56 ~Elf_Symbol(){free(sym);}
56 ~Elf_Symbol(){free(sym);}
57 QString name;
57 QString name;
58 GElf_Sym* sym;
58 GElf_Sym* sym;
59 };
59 };
60
60
61 class ElfFile : public abstractBinFile
61 class ElfFile : public abstractBinFile
62 {
62 {
63 Q_OBJECT
63 Q_OBJECT
64 public:
64 public:
65 ElfFile();
65 ElfFile();
66 ElfFile(const QString& File);
66 ElfFile(const QString& File);
67 ~ElfFile();
67 ~ElfFile();
68 bool openFile(const QString& File);
68 bool openFile(const QString& File);
69 bool isopened();
69 bool isopened();
70 int closeFile();
70 int closeFile();
71 QList<codeFragment*> getFragments();
71 QList<codeFragment*> getFragments();
72 QList<codeFragment*> getFragments(QStringList fragmentList);
72 QList<codeFragment*> getFragments(QStringList fragmentList);
73
73
74 QString getClass();
74 QString getClass();
75 QString getArchitecture();
75 QString getArchitecture();
76 QString getType();
76 QString getType();
77 QString getEndianness();
77 QString getEndianness();
78 QString getABI();
78 QString getABI();
79 qint64 getVersion();
79 qint64 getVersion();
80 qint64 getEntryPointAddress();
80 qint64 getEntryPointAddress();
81
81
82 int getSectionCount();
82 int getSectionCount();
83 int getSymbolCount();
83 int getSymbolCount();
84 int getSegmentCount();
84 int getSegmentCount();
85
85
86 QString getSegmentType(int index);
86 QString getSegmentType(int index);
87 qint64 getSegmentOffset(int index);
87 qint64 getSegmentOffset(int index);
88 qint64 getSegmentVaddr(int index);
88 qint64 getSegmentVaddr(int index);
89 qint64 getSegmentPaddr(int index);
89 qint64 getSegmentPaddr(int index);
90 qint64 getSegmentFilesz(int index);
90 qint64 getSegmentFilesz(int index);
91 qint64 getSectionDatasz(int index);
92 qint64 getSegmentMemsz(int index);
91 qint64 getSegmentMemsz(int index);
93 QString getSegmentFlags(int index);
92 QString getSegmentFlags(int index);
94
93
95 bool getSectionData(int index, char **buffer);
94 bool getSectionData(int index, char **buffer);
96 qint64 getSectionPaddr(int index);
95 qint64 getSectionPaddr(int index);
97 qint64 getSectionMemsz(int index);
96 qint64 getSectionMemsz(int index);
97 qint64 getSectionDatasz(int index);
98 QString getSectionName(int index);
98 QString getSectionName(int index);
99 QString getSectionType(int index);
99 QString getSectionType(int index);
100 int getSectionIndex(QString name);
100 int getSectionIndex(QString name);
101 bool sectionIsNobits(int index);
101
102
102 QString getSymbolName(int index);
103 QString getSymbolName(int index);
103 QString getSymbolType(int index);
104 QString getSymbolType(int index);
104 quint64 getSymbolSize(int index);
105 quint64 getSymbolSize(int index);
105 QString getSymbolSectionName(int index);
106 QString getSymbolSectionName(int index);
106 int getSymbolSectionIndex(int index);
107 int getSymbolSectionIndex(int index);
107 quint64 getSymbolAddress(int index);
108 quint64 getSymbolAddress(int index);
108 QString getSymbolLinkType(int index);
109 QString getSymbolLinkType(int index);
109 bool iself();
110 bool iself();
110 static bool isElf(const QString& File);
111 static bool isElf(const QString& File);
111
112
112 bool toSrec(const QString& File);
113 bool toSrec(const QString& File);
113
114
114 private:
115 private:
115 codeFragment* getFragment(const QString& name);
116 codeFragment* getFragment(const QString& name);
116 void updateSections();
117 void updateSections();
117 void updateSegments();
118 void updateSegments();
118 void updateSymbols();
119 void updateSymbols();
119 int elfFile;
120 int elfFile;
120 bool opened;
121 bool opened;
121 bool type_elf;
122 bool type_elf;
122 Elf* e;
123 Elf* e;
123 Elf_Kind ek;
124 Elf_Kind ek;
124 GElf_Ehdr ehdr;
125 GElf_Ehdr ehdr;
125 Elf_Scn * scn;
126 Elf_Scn * scn;
126 Elf_Data * data;
127 Elf_Data * data;
127 size_t SymbolCount,SectionCount,SegmentCount, shstrndx;
128 size_t SymbolCount,SectionCount,SegmentCount, shstrndx;
128 QList<GElf_Phdr*> Segments;
129 QList<GElf_Phdr*> Segments;
129 QList<Elf_Section*> sections;
130 QList<Elf_Section*> sections;
130 QList<Elf_Symbol*> symbols;
131 QList<Elf_Symbol*> symbols;
131
132
132 };
133 };
133
134
134 #endif // ELFFILE_H
135 #endif // ELFFILE_H
@@ -1,135 +1,273
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 --
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 2 of the License, or
8 -- (at your option) any later version.
9 --
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
14 --
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
1 #include "elffilewidget.h"
22 #include "elffilewidget.h"
2 #include "ui_elffilewidget.h"
23 #include "ui_elffilewidget.h"
3 #include <QtWidgets/QTableWidgetItem>
24 #include <QtWidgets/QTableWidgetItem>
25 #include <QtWidgets/QFileDialog>
4 #include "qhexedit.h"
26 #include "qhexedit.h"
5 #include "qtablewidgetintitem.h"
27 #include "qtablewidgetintitem.h"
28 #include "srec/srecfile.h"
6
29
7 elfFileWidget::elfFileWidget(QWidget *parent) :
30 elfFileWidget::elfFileWidget(QWidget *parent) :
8 QWidget(parent),
31 QWidget(parent),
9 ui(new Ui::elfFileWidget)
32 ui(new Ui::elfFileWidget)
10 {
33 {
11 ui->setupUi(this);
34 ui->setupUi(this);
35 exportToSREC_action = new QAction(tr("Export to SREC"),this);
36 exportToBIN_action = new QAction(tr("Export to Binary"),this);
37 pointInSections_action = new QAction(tr("View in Hexviewer"),this);
12 connect(this->ui->sectionsList,SIGNAL(cellActivated(int,int)),this,SLOT(sectionCellActivated(int,int)));
38 connect(this->ui->sectionsList,SIGNAL(cellActivated(int,int)),this,SLOT(sectionCellActivated(int,int)));
39 this->ui->sectionsList->addAction(exportToSREC_action);
40 this->ui->sectionsList->addAction(exportToBIN_action);
41 this->ui->symbolsList->addAction(pointInSections_action);
42 connect(this->exportToBIN_action,SIGNAL(triggered()),this,SLOT(exportToBIN()));
43 connect(this->exportToSREC_action,SIGNAL(triggered()),this,SLOT(exportToSREC()));
44 connect(this->ui->symbolsFilter,SIGNAL(textChanged(QString)),this,SLOT(filterSymbols(QString)));
45 connect(this->ui->caseSensitive,SIGNAL(toggled(bool)),this,SLOT(filterSymbolsCaseUpdate(bool)));
46 connect(this->pointInSections_action,SIGNAL(triggered()),this,SLOT(pointSymbol()));
47 this->p_hexviewer = new QHexEdit();
48 this->p_hexviewer->setWindowTitle("SocExplorer Hexadecimal viewer");
49 this->setWindowTitle("SocExplorer Elf viewer");
13 }
50 }
14
51
15
52
16
53
17 elfFileWidget::~elfFileWidget()
54 elfFileWidget::~elfFileWidget()
18 {
55 {
19 delete ui;
56 delete ui;
57 delete p_hexviewer;
20 }
58 }
21
59
22
60
23
61
24 void elfFileWidget::updateElfFile(ElfFile *file)
62 void elfFileWidget::updateElfFile(ElfFile *file)
25 {
63 {
26 this->p_elf = file;
64 this->p_elf = file;
27 if(p_elf->isopened() && p_elf->iself())
65 if(p_elf->isopened() && p_elf->iself())
28 {
66 {
29 this->ui->classLabel->setText(p_elf->getClass());
67 this->ui->classLabel->setText(p_elf->getClass());
30 this->ui->VersionLabel->setText(QString::number(p_elf->getVersion()));
68 this->ui->VersionLabel->setText(QString::number(p_elf->getVersion()));
31 this->ui->machineLabel->setText(p_elf->getArchitecture());
69 this->ui->machineLabel->setText(p_elf->getArchitecture());
32 this->ui->endiannesLabel->setText(p_elf->getEndianness());
70 this->ui->endiannesLabel->setText(p_elf->getEndianness());
33 this->ui->abiLabel->setText(p_elf->getABI());
71 this->ui->abiLabel->setText(p_elf->getABI());
34 this->ui->entryPointLabel->setText(QString("0x%1").arg((uint)p_elf->getEntryPointAddress(),8,16));
72 this->ui->entryPointLabel->setText(QString("0x%1").arg((uint)p_elf->getEntryPointAddress(),8,16));
35 this->ui->typeLabel->setText(p_elf->getType());
73 this->ui->typeLabel->setText(p_elf->getType());
36 this->ui->sectionCountLabel->setText(QString::number(p_elf->getSectionCount()));
74 this->ui->sectionCountLabel->setText(QString::number(p_elf->getSectionCount()));
37 this->ui->symbolCountLabel->setText(QString::number(p_elf->getSymbolCount()));
75 this->ui->symbolCountLabel->setText(QString::number(p_elf->getSymbolCount()));
38 }
76 }
39 updateSymbols();
77 updateSymbols();
40 updateSections();
78 updateSections();
41 }
79 }
42
80
43
81
44
82
45 void elfFileWidget::updateSymbols()
83 void elfFileWidget::updateSymbols()
46 {
84 {
47 this->ui->symbolsList->clear();
85 this->ui->symbolsList->clear();
48 this->ui->symbolsList->setRowCount(p_elf->getSymbolCount());
86 this->ui->symbolsList->setRowCount(p_elf->getSymbolCount());
49 this->ui->symbolsList->setHorizontalHeaderLabels(QStringList()<<"Index"<<"Value"<<"Size"<<"Type"<<"Link"<<"Section"<<"Name");
87 this->ui->symbolsList->setHorizontalHeaderLabels(QStringList()<<"Index"<<"Value"<<"Size"<<"Type"<<"Link"<<"Section"<<"Name");
50 for(int i=0;i<p_elf->getSymbolCount();i++)
88 for(int i=0;i<p_elf->getSymbolCount();i++)
51 {
89 {
52 QTableWidgetItem *newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(i),DecimalItem);
90 QTableWidgetItem *newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(i),DecimalItem);
53 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
91 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
54 this->ui->symbolsList->setItem(i, 0, newItem);
92 this->ui->symbolsList->setItem(i, 0, newItem);
55
93
56 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("0x%1").arg(p_elf->getSymbolAddress(i),8,16).replace(" ","0"),HexaDecimalItem);
94 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("0x%1").arg(p_elf->getSymbolAddress(i),8,16).replace(" ","0"),HexaDecimalItem);
57 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
95 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
58 this->ui->symbolsList->setItem(i, 1, newItem);
96 this->ui->symbolsList->setItem(i, 1, newItem);
59
97
60 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(p_elf->getSymbolSize(i)),DecimalItem);
98 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(p_elf->getSymbolSize(i)),DecimalItem);
61 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
99 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
62 this->ui->symbolsList->setItem(i, 2, newItem);
100 this->ui->symbolsList->setItem(i, 2, newItem);
63
101
64 newItem = new QTableWidgetItem(p_elf->getSymbolType(i));
102 newItem = new QTableWidgetItem(p_elf->getSymbolType(i));
65 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
103 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
66 this->ui->symbolsList->setItem(i, 3, newItem);
104 this->ui->symbolsList->setItem(i, 3, newItem);
67
105
68 newItem = new QTableWidgetItem(p_elf->getSymbolLinkType(i));
106 newItem = new QTableWidgetItem(p_elf->getSymbolLinkType(i));
69 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
107 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
70 this->ui->symbolsList->setItem(i, 4, newItem);
108 this->ui->symbolsList->setItem(i, 4, newItem);
71
109
72 newItem = new QTableWidgetItem(p_elf->getSymbolSectionName(i));
110 newItem = new QTableWidgetItem(p_elf->getSymbolSectionName(i));
73 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
111 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
74 this->ui->symbolsList->setItem(i, 5, newItem);
112 this->ui->symbolsList->setItem(i, 5, newItem);
75
113
76 newItem = new QTableWidgetItem(p_elf->getSymbolName(i));
114 newItem = new QTableWidgetItem(p_elf->getSymbolName(i));
77 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
115 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
78 this->ui->symbolsList->setItem(i, 6, newItem);
116 this->ui->symbolsList->setItem(i, 6, newItem);
79 }
117 }
80 this->ui->symbolsList->resizeColumnsToContents();
118 this->ui->symbolsList->resizeColumnsToContents();
81 }
119 }
82
120
83
121
84
122
85 void elfFileWidget::updateSections()
123 void elfFileWidget::updateSections()
86 {
124 {
87 this->ui->sectionsList->clear();
125 this->ui->sectionsList->clear();
88 this->ui->sectionsList->setRowCount(p_elf->getSectionCount());
126 this->ui->sectionsList->setRowCount(p_elf->getSectionCount());
89 this->ui->sectionsList->setHorizontalHeaderLabels(QStringList()<<"Index"<<"Name"<<"Address"<<"Size");
127 this->ui->sectionsList->setHorizontalHeaderLabels(QStringList()<<"Index"<<"Name"<<"Address"<<"Size"<<"File Size"<<"Type");
90 for(int i=0;i<p_elf->getSectionCount();i++)
128 for(int i=0;i<p_elf->getSectionCount();i++)
91 {
129 {
92 QTableWidgetItem *newItem = (QTableWidgetItem*) new QTableWidgetIntItem(QString("%1").arg(i),DecimalItem);
130 QTableWidgetItem *newItem = (QTableWidgetItem*) new QTableWidgetIntItem(QString("%1").arg(i),DecimalItem);
93 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
131 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
94 this->ui->sectionsList->setItem(i,0, newItem);
132 this->ui->sectionsList->setItem(i,0, newItem);
95
133
96 newItem = new QTableWidgetItem(p_elf->getSectionName(i));
134 newItem = new QTableWidgetItem(p_elf->getSectionName(i));
97 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
135 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
98 this->ui->sectionsList->setItem(i, 1, newItem);
136 this->ui->sectionsList->setItem(i, 1, newItem);
99
137
100 newItem = (QTableWidgetItem*) new QTableWidgetIntItem(QString("0x%1").arg(p_elf->getSectionPaddr(i),8,16).replace(" ","0"),HexaDecimalItem);
138 newItem = (QTableWidgetItem*) new QTableWidgetIntItem(QString("0x%1").arg(p_elf->getSectionPaddr(i),8,16).replace(" ","0"),HexaDecimalItem);
101 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
139 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
102 this->ui->sectionsList->setItem(i, 2, newItem);
140 this->ui->sectionsList->setItem(i, 2, newItem);
103
141
142 newItem = (QTableWidgetItem*) new QTableWidgetIntItem(QString("%1").arg(p_elf->getSectionMemsz(i)),DecimalItem);
143 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
144 this->ui->sectionsList->setItem(i, 3, newItem);
145
104 newItem = (QTableWidgetItem*) new QTableWidgetIntItem(QString("%1").arg(p_elf->getSectionDatasz(i)),DecimalItem);
146 newItem = (QTableWidgetItem*) new QTableWidgetIntItem(QString("%1").arg(p_elf->getSectionDatasz(i)),DecimalItem);
105 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
147 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
106 this->ui->sectionsList->setItem(i, 3, newItem);
148 this->ui->sectionsList->setItem(i, 4, newItem);
149
150 newItem = new QTableWidgetItem(p_elf->getSectionType(i));
151 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
152 this->ui->sectionsList->setItem(i, 5, newItem);
107 }
153 }
108 this->ui->sectionsList->resizeColumnsToContents();
154 this->ui->sectionsList->resizeColumnsToContents();
109 }
155 }
110
156
111 void elfFileWidget::sectionCellActivated(int row, int column)
157 void elfFileWidget::sectionCellActivated(int row, int column)
112 {
158 {
113 Q_UNUSED(column)
159 Q_UNUSED(column)
114 char* buff=NULL;
160 char* buff=NULL;
115 int sectionIndex = p_elf->getSectionIndex(this->ui->sectionsList->item(row,1)->text());
161 int sectionIndex = p_elf->getSectionIndex(this->ui->sectionsList->item(row,1)->text());
116 if(sectionIndex!=-1)
162 if(sectionIndex!=-1)
117 {
163 {
118 this->p_elf->getSectionData(sectionIndex,&buff);
164 QString type = p_elf->getSectionType(sectionIndex);
119 this->ui->sectionsHexView->setData(QByteArray(buff,this->p_elf->getSectionDatasz(sectionIndex)));
165 if(!p_elf->sectionIsNobits(sectionIndex))
166 {
167 this->p_elf->getSectionData(sectionIndex,&buff);
168 this->ui->sectionsHexView->setData(QByteArray(buff,this->p_elf->getSectionDatasz(sectionIndex)));
169 this->ui->sectionsHexView->setAddressOffset(this->p_elf->getSectionPaddr(sectionIndex));
170 }
171 }
172 }
173
174 void elfFileWidget::exportToSREC()
175 {
176 QStringList sectionList=getSelectedSectionsNames();
177 if(sectionList.count()>0)
178 {
179 QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"),
180 NULL,
181 tr("SREC Files (*.srec)"));
182 if(!fileName.isEmpty())
183 {
184 srecFile::toSrec(p_elf->getFragments(sectionList),fileName);
185 }
120 }
186 }
187
188 }
189
190 void elfFileWidget::exportToBIN()
191 {
192
193 }
194
195 void elfFileWidget::pointSymbol()
196 {
197 int row=this->ui->symbolsList->item(this->ui->symbolsList->currentRow(),0)->text().toInt();
198 int section = p_elf->getSectionIndex(p_elf->getSymbolSectionName(row));
199 qint64 address = p_elf->getSymbolAddress(row);
200 qint64 secAddress = p_elf->getSectionPaddr(section);
201 qint64 size = p_elf->getSymbolSize(row);
202 char* buff=NULL;
203 char* symBuff=NULL;
204 if(size && !p_elf->sectionIsNobits(section))
205 {
206 if(section!=-1)
207 {
208 symBuff = (char*)malloc(size);
209 this->p_elf->getSectionData(section,&buff);
210 memcpy(symBuff,buff+(address-secAddress),size);
211 this->p_hexviewer->setData(QByteArray(symBuff,size));
212 this->p_hexviewer->setAddressOffset(address);
213 this->p_hexviewer->show();
214 }
215 }
216 }
217
218 void elfFileWidget::filterSymbols(const QString &pattern)
219 {
220 Qt::MatchFlags flag = Qt::MatchContains | Qt::MatchStartsWith | Qt::MatchEndsWith | Qt::MatchRegExp | Qt::MatchWildcard | Qt::MatchWrap |Qt::MatchRecursive;
221 if(this->ui->caseSensitive->isChecked())
222 flag |= Qt::MatchCaseSensitive;
223 if(pattern.isEmpty())
224 {
225 for(int i=0;i<this->ui->symbolsList->rowCount();i++)
226 this->ui->symbolsList->setRowHidden(i,false);
227 }
228 else
229 {
230 for(int i=0;i<this->ui->symbolsList->rowCount();i++)
231 this->ui->symbolsList->setRowHidden(i,true);
232 QList<QTableWidgetItem*> items = this->ui->symbolsList->findItems(pattern,flag);
233 for(int i=0;i<items.count();i++)
234 this->ui->symbolsList->setRowHidden(items.at(i)->row(),false);
235 }
236 }
237
238 void elfFileWidget::filterSymbolsCaseUpdate(bool toggled)
239 {
240 Q_UNUSED(toggled)
241 this->filterSymbols(this->ui->symbolsFilter->text());
242 }
243
244
245
246 QStringList elfFileWidget::getSelectedSectionsNames()
247 {
248 QStringList sectionList;
249 QList<QTableWidgetItem*> items = this->ui->sectionsList->selectedItems();
250 for(int i=0;i<items.count();i++)
251 {
252 QString section = p_elf->getSectionName(items.at(i)->row());
253 if(!sectionList.contains(section))
254 {
255 sectionList.append(section);
256 }
257 }
258 return sectionList;
121 }
259 }
122
260
123
261
124
262
125
263
126
264
127
265
128
266
129
267
130
268
131
269
132
270
133
271
134
272
135
273
@@ -1,32 +1,64
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 --
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 2 of the License, or
8 -- (at your option) any later version.
9 --
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
14 --
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
1 #ifndef ELFFILEWIDGET_H
22 #ifndef ELFFILEWIDGET_H
2 #define ELFFILEWIDGET_H
23 #define ELFFILEWIDGET_H
3
24
4 #include <QtWidgets/QWidget>
25 #include <QtWidgets/QWidget>
5 #include "elffile.h"
26 #include "elffile.h"
27 #include <QtWidgets/QAction>
28 #include <qhexedit.h>
6
29
7 namespace Ui {
30 namespace Ui {
8 class elfFileWidget;
31 class elfFileWidget;
9 }
32 }
10
33
11 class elfFileWidget : public QWidget
34 class elfFileWidget : public QWidget
12 {
35 {
13 Q_OBJECT
36 Q_OBJECT
14
37
15 public:
38 public:
16 elfFileWidget(QWidget *parent = 0);
39 elfFileWidget(QWidget *parent = 0);
17 ~elfFileWidget();
40 ~elfFileWidget();
18
41
19 public slots:
42 public slots:
20 void updateElfFile(ElfFile* file);
43 void updateElfFile(ElfFile* file);
21 void updateSymbols();
44 void updateSymbols();
22 void updateSections();
45 void updateSections();
23
46
24 private slots:
47 private slots:
25 void sectionCellActivated(int row, int column);
48 void sectionCellActivated(int row, int column);
26
49 void exportToSREC();
50 void exportToBIN();
51 void pointSymbol();
52 void filterSymbols(const QString& pattern);
53 void filterSymbolsCaseUpdate(bool toggled);
27 private:
54 private:
28 Ui::elfFileWidget *ui;
55 Ui::elfFileWidget *ui;
56 QStringList getSelectedSectionsNames();
29 ElfFile* p_elf;
57 ElfFile* p_elf;
58 QAction* exportToSREC_action;
59 QAction* exportToBIN_action;
60 QAction* pointInSections_action;
61 QHexEdit* p_hexviewer;
30 };
62 };
31
63
32 #endif // ELFFILEWIDGET_H
64 #endif // ELFFILEWIDGET_H
@@ -1,301 +1,337
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
2 <ui version="4.0">
3 <class>elfFileWidget</class>
3 <class>elfFileWidget</class>
4 <widget class="QWidget" name="elfFileWidget">
4 <widget class="QWidget" name="elfFileWidget">
5 <property name="geometry">
5 <property name="geometry">
6 <rect>
6 <rect>
7 <x>0</x>
7 <x>0</x>
8 <y>0</y>
8 <y>0</y>
9 <width>786</width>
9 <width>786</width>
10 <height>387</height>
10 <height>387</height>
11 </rect>
11 </rect>
12 </property>
12 </property>
13 <property name="minimumSize">
13 <property name="minimumSize">
14 <size>
14 <size>
15 <width>0</width>
15 <width>0</width>
16 <height>0</height>
16 <height>0</height>
17 </size>
17 </size>
18 </property>
18 </property>
19 <property name="focusPolicy">
19 <property name="focusPolicy">
20 <enum>Qt::NoFocus</enum>
20 <enum>Qt::NoFocus</enum>
21 </property>
21 </property>
22 <property name="windowTitle">
22 <property name="windowTitle">
23 <string>Form</string>
23 <string>Form</string>
24 </property>
24 </property>
25 <layout class="QGridLayout" name="gridLayout">
25 <layout class="QGridLayout" name="gridLayout">
26 <item row="0" column="0">
26 <item row="0" column="0">
27 <widget class="QTabWidget" name="tabWidget">
27 <widget class="QTabWidget" name="tabWidget">
28 <property name="currentIndex">
28 <property name="currentIndex">
29 <number>2</number>
29 <number>0</number>
30 </property>
30 </property>
31 <widget class="QWidget" name="generalInfoTab">
31 <widget class="QWidget" name="generalInfoTab">
32 <attribute name="title">
32 <attribute name="title">
33 <string>File Informations</string>
33 <string>File Informations</string>
34 </attribute>
34 </attribute>
35 <layout class="QGridLayout" name="gridLayout_4">
35 <layout class="QGridLayout" name="gridLayout_4">
36 <item row="0" column="0">
36 <item row="0" column="0">
37 <widget class="QGroupBox" name="groupBox">
37 <widget class="QGroupBox" name="groupBox">
38 <property name="title">
38 <property name="title">
39 <string>Elf header</string>
39 <string>Elf header</string>
40 </property>
40 </property>
41 <layout class="QFormLayout" name="formLayout">
41 <layout class="QFormLayout" name="formLayout">
42 <item row="0" column="0">
42 <item row="0" column="0">
43 <widget class="QLabel" name="label">
43 <widget class="QLabel" name="label">
44 <property name="text">
44 <property name="text">
45 <string>Class:</string>
45 <string>Class:</string>
46 </property>
46 </property>
47 </widget>
47 </widget>
48 </item>
48 </item>
49 <item row="0" column="1">
49 <item row="0" column="1">
50 <widget class="QLabel" name="classLabel">
50 <widget class="QLabel" name="classLabel">
51 <property name="text">
51 <property name="text">
52 <string>none</string>
52 <string>none</string>
53 </property>
53 </property>
54 </widget>
54 </widget>
55 </item>
55 </item>
56 <item row="1" column="0">
56 <item row="1" column="0">
57 <widget class="QLabel" name="label_3">
57 <widget class="QLabel" name="label_3">
58 <property name="text">
58 <property name="text">
59 <string>Endianness:</string>
59 <string>Endianness:</string>
60 </property>
60 </property>
61 </widget>
61 </widget>
62 </item>
62 </item>
63 <item row="1" column="1">
63 <item row="1" column="1">
64 <widget class="QLabel" name="endiannesLabel">
64 <widget class="QLabel" name="endiannesLabel">
65 <property name="text">
65 <property name="text">
66 <string>none</string>
66 <string>none</string>
67 </property>
67 </property>
68 </widget>
68 </widget>
69 </item>
69 </item>
70 <item row="2" column="0">
70 <item row="2" column="0">
71 <widget class="QLabel" name="label_5">
71 <widget class="QLabel" name="label_5">
72 <property name="text">
72 <property name="text">
73 <string>Version:</string>
73 <string>Version:</string>
74 </property>
74 </property>
75 </widget>
75 </widget>
76 </item>
76 </item>
77 <item row="3" column="0">
77 <item row="3" column="0">
78 <widget class="QLabel" name="label_6">
78 <widget class="QLabel" name="label_6">
79 <property name="text">
79 <property name="text">
80 <string>Type:</string>
80 <string>Type:</string>
81 </property>
81 </property>
82 </widget>
82 </widget>
83 </item>
83 </item>
84 <item row="4" column="0">
84 <item row="4" column="0">
85 <widget class="QLabel" name="label_7">
85 <widget class="QLabel" name="label_7">
86 <property name="text">
86 <property name="text">
87 <string>Machine:</string>
87 <string>Machine:</string>
88 </property>
88 </property>
89 </widget>
89 </widget>
90 </item>
90 </item>
91 <item row="6" column="0">
91 <item row="6" column="0">
92 <widget class="QLabel" name="label_8">
92 <widget class="QLabel" name="label_8">
93 <property name="text">
93 <property name="text">
94 <string>Entry point address:</string>
94 <string>Entry point address:</string>
95 </property>
95 </property>
96 </widget>
96 </widget>
97 </item>
97 </item>
98 <item row="2" column="1">
98 <item row="2" column="1">
99 <widget class="QLabel" name="VersionLabel">
99 <widget class="QLabel" name="VersionLabel">
100 <property name="text">
100 <property name="text">
101 <string>none</string>
101 <string>none</string>
102 </property>
102 </property>
103 </widget>
103 </widget>
104 </item>
104 </item>
105 <item row="3" column="1">
105 <item row="3" column="1">
106 <widget class="QLabel" name="typeLabel">
106 <widget class="QLabel" name="typeLabel">
107 <property name="text">
107 <property name="text">
108 <string>none</string>
108 <string>none</string>
109 </property>
109 </property>
110 </widget>
110 </widget>
111 </item>
111 </item>
112 <item row="4" column="1">
112 <item row="4" column="1">
113 <widget class="QLabel" name="machineLabel">
113 <widget class="QLabel" name="machineLabel">
114 <property name="text">
114 <property name="text">
115 <string>none</string>
115 <string>none</string>
116 </property>
116 </property>
117 </widget>
117 </widget>
118 </item>
118 </item>
119 <item row="6" column="1">
119 <item row="6" column="1">
120 <widget class="QLabel" name="entryPointLabel">
120 <widget class="QLabel" name="entryPointLabel">
121 <property name="text">
121 <property name="text">
122 <string>none</string>
122 <string>none</string>
123 </property>
123 </property>
124 </widget>
124 </widget>
125 </item>
125 </item>
126 <item row="5" column="0">
126 <item row="5" column="0">
127 <widget class="QLabel" name="label_17">
127 <widget class="QLabel" name="label_17">
128 <property name="text">
128 <property name="text">
129 <string>OS/ABI:</string>
129 <string>OS/ABI:</string>
130 </property>
130 </property>
131 </widget>
131 </widget>
132 </item>
132 </item>
133 <item row="5" column="1">
133 <item row="5" column="1">
134 <widget class="QLabel" name="abiLabel">
134 <widget class="QLabel" name="abiLabel">
135 <property name="text">
135 <property name="text">
136 <string>none</string>
136 <string>none</string>
137 </property>
137 </property>
138 </widget>
138 </widget>
139 </item>
139 </item>
140 </layout>
140 </layout>
141 </widget>
141 </widget>
142 </item>
142 </item>
143 <item row="1" column="0">
143 <item row="1" column="0">
144 <widget class="QGroupBox" name="groupBox_2">
144 <widget class="QGroupBox" name="groupBox_2">
145 <property name="title">
145 <property name="title">
146 <string>Sections &amp; Symbols</string>
146 <string>Sections &amp; Symbols</string>
147 </property>
147 </property>
148 <layout class="QFormLayout" name="formLayout_2">
148 <layout class="QFormLayout" name="formLayout_2">
149 <item row="0" column="0">
149 <item row="0" column="0">
150 <widget class="QLabel" name="label_9">
150 <widget class="QLabel" name="label_9">
151 <property name="text">
151 <property name="text">
152 <string>Section count:</string>
152 <string>Section count:</string>
153 </property>
153 </property>
154 </widget>
154 </widget>
155 </item>
155 </item>
156 <item row="1" column="0">
156 <item row="1" column="0">
157 <widget class="QLabel" name="label_10">
157 <widget class="QLabel" name="label_10">
158 <property name="text">
158 <property name="text">
159 <string>Symbols count:</string>
159 <string>Symbols count:</string>
160 </property>
160 </property>
161 </widget>
161 </widget>
162 </item>
162 </item>
163 <item row="0" column="1">
163 <item row="0" column="1">
164 <widget class="QLabel" name="sectionCountLabel">
164 <widget class="QLabel" name="sectionCountLabel">
165 <property name="text">
165 <property name="text">
166 <string>none</string>
166 <string>none</string>
167 </property>
167 </property>
168 </widget>
168 </widget>
169 </item>
169 </item>
170 <item row="1" column="1">
170 <item row="1" column="1">
171 <widget class="QLabel" name="symbolCountLabel">
171 <widget class="QLabel" name="symbolCountLabel">
172 <property name="text">
172 <property name="text">
173 <string>none</string>
173 <string>none</string>
174 </property>
174 </property>
175 </widget>
175 </widget>
176 </item>
176 </item>
177 </layout>
177 </layout>
178 </widget>
178 </widget>
179 </item>
179 </item>
180 </layout>
180 </layout>
181 </widget>
181 </widget>
182 <widget class="QWidget" name="symbolsTab">
182 <widget class="QWidget" name="symbolsTab">
183 <attribute name="title">
183 <attribute name="title">
184 <string>Symbols</string>
184 <string>Symbols</string>
185 </attribute>
185 </attribute>
186 <layout class="QGridLayout" name="gridLayout_2">
186 <layout class="QGridLayout" name="gridLayout_2">
187 <item row="0" column="1">
188 <widget class="QLineEdit" name="symbolsFilter"/>
189 </item>
187 <item row="0" column="0">
190 <item row="0" column="0">
191 <widget class="QLabel" name="label_2">
192 <property name="text">
193 <string>Filter:</string>
194 </property>
195 </widget>
196 </item>
197 <item row="0" column="2">
198 <widget class="QCheckBox" name="caseSensitive">
199 <property name="text">
200 <string>Case Sensitive</string>
201 </property>
202 </widget>
203 </item>
204 <item row="2" column="0" colspan="3">
188 <widget class="QTableWidget" name="symbolsList">
205 <widget class="QTableWidget" name="symbolsList">
206 <property name="contextMenuPolicy">
207 <enum>Qt::ActionsContextMenu</enum>
208 </property>
189 <property name="sortingEnabled">
209 <property name="sortingEnabled">
190 <bool>true</bool>
210 <bool>true</bool>
191 </property>
211 </property>
192 <attribute name="verticalHeaderVisible">
212 <attribute name="verticalHeaderVisible">
193 <bool>false</bool>
213 <bool>false</bool>
194 </attribute>
214 </attribute>
195 <attribute name="verticalHeaderShowSortIndicator" stdset="0">
215 <attribute name="verticalHeaderShowSortIndicator" stdset="0">
196 <bool>false</bool>
216 <bool>false</bool>
197 </attribute>
217 </attribute>
198 <column>
218 <column>
199 <property name="text">
219 <property name="text">
200 <string>Index</string>
220 <string>Index</string>
201 </property>
221 </property>
202 </column>
222 </column>
203 <column>
223 <column>
204 <property name="text">
224 <property name="text">
205 <string>Value</string>
225 <string>Value</string>
206 </property>
226 </property>
207 </column>
227 </column>
208 <column>
228 <column>
209 <property name="text">
229 <property name="text">
210 <string>Size</string>
230 <string>Size</string>
211 </property>
231 </property>
212 </column>
232 </column>
213 <column>
233 <column>
214 <property name="text">
234 <property name="text">
215 <string>Type</string>
235 <string>Type</string>
216 </property>
236 </property>
217 </column>
237 </column>
218 <column>
238 <column>
219 <property name="text">
239 <property name="text">
220 <string>Link</string>
240 <string>Link</string>
221 </property>
241 </property>
222 </column>
242 </column>
223 <column>
243 <column>
224 <property name="text">
244 <property name="text">
225 <string>Section</string>
245 <string>Section</string>
226 </property>
246 </property>
227 </column>
247 </column>
228 <column>
248 <column>
229 <property name="text">
249 <property name="text">
230 <string>Name</string>
250 <string>Name</string>
231 </property>
251 </property>
232 </column>
252 </column>
233 </widget>
253 </widget>
234 </item>
254 </item>
235 </layout>
255 </layout>
236 </widget>
256 </widget>
237 <widget class="QWidget" name="sectionsTab">
257 <widget class="QWidget" name="sectionsTab">
238 <attribute name="title">
258 <attribute name="title">
239 <string>Sections</string>
259 <string>Sections</string>
240 </attribute>
260 </attribute>
241 <layout class="QGridLayout" name="gridLayout_3">
261 <layout class="QGridLayout" name="gridLayout_3">
242 <item row="0" column="0">
262 <item row="0" column="0">
243 <widget class="QHexEdit" name="sectionsHexView" native="true">
263 <widget class="QSplitter" name="splitter">
244 <property name="minimumSize">
264 <property name="orientation">
245 <size>
265 <enum>Qt::Horizontal</enum>
246 <width>100</width>
247 <height>0</height>
248 </size>
249 </property>
250 </widget>
251 </item>
252 <item row="0" column="1">
253 <widget class="QTableWidget" name="sectionsList">
254 <property name="sortingEnabled">
255 <bool>true</bool>
256 </property>
266 </property>
257 <attribute name="verticalHeaderVisible">
267 <widget class="QHexEdit" name="sectionsHexView" native="true">
258 <bool>false</bool>
268 <property name="minimumSize">
259 </attribute>
269 <size>
260 <attribute name="verticalHeaderShowSortIndicator" stdset="0">
270 <width>100</width>
261 <bool>false</bool>
271 <height>0</height>
262 </attribute>
272 </size>
263 <column>
273 </property>
264 <property name="text">
274 </widget>
265 <string>Index</string>
275 <widget class="QTableWidget" name="sectionsList">
276 <property name="contextMenuPolicy">
277 <enum>Qt::ActionsContextMenu</enum>
278 </property>
279 <property name="sortingEnabled">
280 <bool>true</bool>
266 </property>
281 </property>
267 </column>
282 <attribute name="verticalHeaderVisible">
268 <column>
283 <bool>false</bool>
269 <property name="text">
284 </attribute>
270 <string>Name</string>
285 <attribute name="verticalHeaderShowSortIndicator" stdset="0">
271 </property>
286 <bool>false</bool>
272 </column>
287 </attribute>
273 <column>
288 <column>
274 <property name="text">
289 <property name="text">
275 <string>Address</string>
290 <string>Index</string>
276 </property>
291 </property>
277 </column>
292 </column>
278 <column>
293 <column>
279 <property name="text">
294 <property name="text">
280 <string>Size</string>
295 <string>Name</string>
281 </property>
296 </property>
282 </column>
297 </column>
298 <column>
299 <property name="text">
300 <string>Address</string>
301 </property>
302 </column>
303 <column>
304 <property name="text">
305 <string>Size</string>
306 </property>
307 </column>
308 <column>
309 <property name="text">
310 <string>File Size</string>
311 </property>
312 </column>
313 <column>
314 <property name="text">
315 <string>Type</string>
316 </property>
317 </column>
318 </widget>
283 </widget>
319 </widget>
284 </item>
320 </item>
285 </layout>
321 </layout>
286 </widget>
322 </widget>
287 </widget>
323 </widget>
288 </item>
324 </item>
289 </layout>
325 </layout>
290 </widget>
326 </widget>
291 <customwidgets>
327 <customwidgets>
292 <customwidget>
328 <customwidget>
293 <class>QHexEdit</class>
329 <class>QHexEdit</class>
294 <extends>QWidget</extends>
330 <extends>QWidget</extends>
295 <header location="global">qhexedit.h</header>
331 <header location="global">qhexedit.h</header>
296 <container>1</container>
332 <container>1</container>
297 </customwidget>
333 </customwidget>
298 </customwidgets>
334 </customwidgets>
299 <resources/>
335 <resources/>
300 <connections/>
336 <connections/>
301 </ui>
337 </ui>
@@ -1,521 +1,523
1 /*------------------------------------------------------------------------------
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2013, Plasma Physics Laboratory - CNRS
3 -- Copyright (C) 2013, Plasma Physics Laboratory - CNRS
4 --
4 --
5 -- This program is free software; you can redistribute it and/or modify
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 3 of the License, or
7 -- the Free Software Foundation; either version 3 of the License, or
8 -- (at your option) any later version.
8 -- (at your option) any later version.
9 --
9 --
10 -- This program is distributed in the hope that it will be useful,
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
13 -- GNU General Public License for more details.
14 --
14 --
15 -- You should have received a copy of the GNU General Public License
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
18 -------------------------------------------------------------------------------*/
19 /*-- Author : Alexis Jeandet
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 ----------------------------------------------------------------------------*/
21 ----------------------------------------------------------------------------*/
22 #include "elfparser.h"
22 #include "elfparser.h"
23 #include <sys/types.h>
23 #include <sys/types.h>
24 #include <sys/stat.h>
24 #include <sys/stat.h>
25 #include <fcntl.h>
25 #include <fcntl.h>
26 #include <unistd.h>
26 #include <unistd.h>
27
27
28 extern QString elfresolveMachine(Elf64_Half e_machine);
28 extern QString elfresolveMachine(Elf64_Half e_machine);
29
29
30
30
31 elfparser::elfparser()
31 elfparser::elfparser()
32 {
32 {
33 this->opened = false;
33 this->opened = false;
34 this->type_elf = false;
34 this->type_elf = false;
35 this->elfFile = NULL;
35 this->elfFile = (int)NULL;
36 this->e = NULL;
36 this->e = NULL;
37 }
37 }
38
38
39
39
40 int elfparser::setFilename(const QString &name)
40 int elfparser::setFilename(const QString &name)
41 {
41 {
42 this->closeFile();
42 this->closeFile();
43 if(elf_version(EV_CURRENT)==EV_NONE)return 0;
43 if(elf_version(EV_CURRENT)==EV_NONE)return 0;
44 #ifdef _ELF_WINDOWS_
44 #ifdef _ELF_WINDOWS_
45 this->elfFile = open(name.toStdString().c_str(),O_RDONLY|O_BINARY ,0);
45 this->elfFile = open(name.toStdString().c_str(),O_RDONLY|O_BINARY ,0);
46 #else
46 #else
47 this->elfFile = open(name.toStdString().c_str(),O_RDONLY ,0);
47 this->elfFile = open(name.toStdString().c_str(),O_RDONLY ,0);
48 #endif
48 #endif
49 if(this->elfFile==NULL)return 0;
49 if(this->elfFile==(int)NULL)return 0;
50 this->e = elf_begin(this->elfFile,ELF_C_READ,NULL);
50 this->e = elf_begin(this->elfFile,ELF_C_READ,NULL);
51 if(this->e==NULL)return 0;
51 if(this->e==NULL)return 0;
52 this->ek = elf_kind(this->e);
52 this->ek = elf_kind(this->e);
53 gelf_getehdr (this->e, &this->ehdr );
53 gelf_getehdr (this->e, &this->ehdr );
54 elf_getshdrstrndx (this->e, &this->shstrndx);
54 elf_getshdrstrndx (this->e, &this->shstrndx);
55 this->updateSegments();
55 this->updateSegments();
56 this->updateSections();
56 this->updateSections();
57 return 1;
57 return 1;
58 }
58 }
59
59
60
60
61 int elfparser::closeFile()
61 int elfparser::closeFile()
62 {
62 {
63 if(this->elfFile!=NULL)
63 if(this->elfFile!=(int)NULL)
64 {
64 {
65 if(this->e!=NULL)
65 if(this->e!=NULL)
66 {
66 {
67 elf_end(this->e);
67 elf_end(this->e);
68 this->e = NULL;
68 this->e = NULL;
69 }
69 }
70 close(this->elfFile);
70 close(this->elfFile);
71 this->elfFile = NULL;
71 this->elfFile = (int)NULL;
72 }
72 }
73 return 0;
73 return 0;
74 }
74 }
75
75
76 QString elfparser::getClass()
76 QString elfparser::getClass()
77 {
77 {
78 if(this->e!=NULL)
78 if(this->e!=NULL)
79 {
79 {
80 int eclass = gelf_getclass(this->e);
80 int eclass = gelf_getclass(this->e);
81 if(eclass==ELFCLASS32)return "ELF32";
81 if(eclass==ELFCLASS32)return "ELF32";
82 if(eclass==ELFCLASS64)return "ELF64";
82 if(eclass==ELFCLASS64)return "ELF64";
83 }
83 }
84 return "none";
84 return "none";
85 }
85 }
86
86
87
87
88 bool elfparser::isopened()
88 bool elfparser::isopened()
89 {
89 {
90 return this->opened;
90 return this->opened;
91 }
91 }
92
92
93
93
94 bool elfparser::iself()
94 bool elfparser::iself()
95 {
95 {
96 return this->type_elf;
96 return this->type_elf;
97 }
97 }
98
98
99
99
100 QString elfparser::getArchitecture()
100 QString elfparser::getArchitecture()
101 {
101 {
102 if(this->e!=NULL)
102 if(this->e!=NULL)
103 {
103 {
104 return elfresolveMachine(this->ehdr.e_machine);
104 return elfresolveMachine(this->ehdr.e_machine);
105 }
105 }
106 return "";
106 return "";
107 }
107 }
108
108
109
109
110 QString elfparser::getType()
110 QString elfparser::getType()
111 {
111 {
112 QString kind("");
112 QString kind("");
113 if(this->e!=NULL)
113 if(this->e!=NULL)
114 {
114 {
115 switch(this->ek)
115 switch(this->ek)
116 {
116 {
117 case ELF_K_AR:
117 case ELF_K_AR:
118 kind = "Archive";
118 kind = "Archive";
119 break;
119 break;
120 case ELF_K_ELF:
120 case ELF_K_ELF:
121 kind = "Elf";
121 kind = "Elf";
122 break;
122 break;
123 case ELF_K_COFF:
123 case ELF_K_COFF:
124 kind = "COFF";
124 kind = "COFF";
125 break;
125 break;
126 case ELF_K_NUM:
126 case ELF_K_NUM:
127 kind = "NUM";
127 kind = "NUM";
128 break;
128 break;
129 case ELF_K_NONE:
129 case ELF_K_NONE:
130 kind = "Data";
130 kind = "Data";
131 break;
131 break;
132 default:
132 default:
133 kind = "Unknow";
133 kind = "Unknow";
134 break;
134 break;
135 }
135 }
136 }
136 }
137 return kind;
137 return kind;
138 }
138 }
139
139
140 QString elfparser::getEndianness()
140 QString elfparser::getEndianness()
141 {
141 {
142 if(this->e!=NULL)
142 if(this->e!=NULL)
143 {
143 {
144 if(this->ehdr.e_ident[EI_DATA]==ELFDATA2LSB)return "2's complement, little endian";
144 if(this->ehdr.e_ident[EI_DATA]==ELFDATA2LSB)return "2's complement, little endian";
145 if(this->ehdr.e_ident[EI_DATA]==ELFDATA2MSB)return "2's complement, big endian";
145 if(this->ehdr.e_ident[EI_DATA]==ELFDATA2MSB)return "2's complement, big endian";
146 }
146 }
147 return "none";
147 return "none";
148 }
148 }
149
149
150 QString elfparser::getABI()
150 QString elfparser::getABI()
151 {
151 {
152 if(this->e!=NULL)
152 if(this->e!=NULL)
153 {
153 {
154 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_NONE)return "UNIX System V ABI";
154 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_NONE)return "UNIX System V ABI";
155 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_SYSV)return "Alias";
155 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_SYSV)return "Alias";
156 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_HPUX)return "HP-UX";
156 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_HPUX)return "HP-UX";
157 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_NETBSD)return "NetBSD";
157 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_NETBSD)return "NetBSD";
158 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_GNU)return "Object uses GNU ELF extensions";
158 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_GNU)return "Object uses GNU ELF extensions";
159 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_LINUX)return "Compatibility alias";
159 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_LINUX)return "Compatibility alias";
160 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_SOLARIS)return "Sun Solaris";
160 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_SOLARIS)return "Sun Solaris";
161 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_AIX)return "IBM AIX";
161 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_AIX)return "IBM AIX";
162 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_IRIX)return "SGI Irix";
162 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_IRIX)return "SGI Irix";
163 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_FREEBSD)return "FreeBSD";
163 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_FREEBSD)return "FreeBSD";
164 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX";
164 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX";
165 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto";
165 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto";
166 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD";
166 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD";
167 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI";
167 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI";
168 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM";
168 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM";
169 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application";
169 if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application";
170 }
170 }
171 return "none";
171 return "none";
172 }
172 }
173
173
174
174
175 qint64 elfparser::getVersion()
175 qint64 elfparser::getVersion()
176 {
176 {
177 if(this->e!=NULL)
177 if(this->e!=NULL)
178 {
178 {
179 return this->ehdr.e_version;
179 return this->ehdr.e_version;
180 }
180 }
181 return -1;
181 }
182 }
182
183
183 qint64 elfparser::getEntryPointAddress()
184 qint64 elfparser::getEntryPointAddress()
184 {
185 {
185 if(this->e!=NULL)
186 if(this->e!=NULL)
186 {
187 {
187 return this->ehdr.e_entry;
188 return this->ehdr.e_entry;
188 }
189 }
190 return -1;
189 }
191 }
190
192
191
193
192 int elfparser::getSectioncount()
194 int elfparser::getSectioncount()
193 {
195 {
194 return (int)this->SectionCount;
196 return (int)this->SectionCount;
195 }
197 }
196
198
197
199
198 int elfparser::getSegmentcount()
200 int elfparser::getSegmentcount()
199 {
201 {
200 return (int)this->SegmentCount;
202 return (int)this->SegmentCount;
201 }
203 }
202
204
203
205
204 QString elfparser::getSegmentType(int index)
206 QString elfparser::getSegmentType(int index)
205 {
207 {
206 QString type("");
208 QString type("");
207 if(this->e!=NULL)
209 if(this->e!=NULL)
208 {
210 {
209 if(index < this->Segments.count())
211 if(index < this->Segments.count())
210 {
212 {
211 switch(this->Segments.at(index)->p_type)
213 switch(this->Segments.at(index)->p_type)
212 {
214 {
213 case PT_NULL:
215 case PT_NULL:
214 type = "Program header table entry unused";
216 type = "Program header table entry unused";
215 break;
217 break;
216 case PT_LOAD:
218 case PT_LOAD:
217 type = "Loadable program segment";
219 type = "Loadable program segment";
218 break;
220 break;
219 case PT_DYNAMIC :
221 case PT_DYNAMIC :
220 type = "Dynamic linking information";
222 type = "Dynamic linking information";
221 break;
223 break;
222 case PT_INTERP:
224 case PT_INTERP:
223 type ="Program interpreter";
225 type ="Program interpreter";
224 break;
226 break;
225 case PT_NOTE:
227 case PT_NOTE:
226 type = "Auxiliary information";
228 type = "Auxiliary information";
227 break;
229 break;
228 case PT_SHLIB:
230 case PT_SHLIB:
229 type = "Reserved";
231 type = "Reserved";
230 break;
232 break;
231 case PT_PHDR:
233 case PT_PHDR:
232 type = "Entry for header table itself";
234 type = "Entry for header table itself";
233 break;
235 break;
234 case PT_TLS:
236 case PT_TLS:
235 type = "Thread-local storage segment";
237 type = "Thread-local storage segment";
236 break;
238 break;
237 case PT_NUM:
239 case PT_NUM:
238 type = "Number of defined types";
240 type = "Number of defined types";
239 break;
241 break;
240 case PT_LOOS:
242 case PT_LOOS:
241 type = "Start of OS-specific";
243 type = "Start of OS-specific";
242 break;
244 break;
243 case PT_SUNWSTACK:
245 case PT_SUNWSTACK:
244 type = "Stack segment";
246 type = "Stack segment";
245 break;
247 break;
246 case PT_LOPROC:
248 case PT_LOPROC:
247 type = "Start of processor-specific";
249 type = "Start of processor-specific";
248 break;
250 break;
249 case PT_HIPROC:
251 case PT_HIPROC:
250 type = "End of processor-specific";
252 type = "End of processor-specific";
251 break;
253 break;
252 default:
254 default:
253 type = "Unknow Section Type";
255 type = "Unknow Section Type";
254 break;
256 break;
255 }
257 }
256 }
258 }
257 }
259 }
258
260
259 return type;
261 return type;
260 }
262 }
261
263
262
264
263 qint64 elfparser::getSegmentOffset(int index)
265 qint64 elfparser::getSegmentOffset(int index)
264 {
266 {
265 int64_t Offset;
267 qint64 Offset=-1;
266 if(this->e!=NULL)
268 if(this->e!=NULL)
267 {
269 {
268 if(index < this->Segments.count())
270 if(index < this->Segments.count())
269 {
271 {
270 Offset = (int64_t)this->Segments.at(index)->p_offset;
272 Offset = (qint64)this->Segments.at(index)->p_offset;
271 }
273 }
272 }
274 }
273 return Offset;
275 return Offset;
274 }
276 }
275
277
276
278
277 qint64 elfparser::getSegmentVaddr(int index)
279 qint64 elfparser::getSegmentVaddr(int index)
278 {
280 {
279 int64_t Vaddr = 0;
281 int64_t Vaddr = 0;
280 if(this->e!=NULL)
282 if(this->e!=NULL)
281 {
283 {
282 if(index < this->Segments.count())
284 if(index < this->Segments.count())
283 {
285 {
284 Vaddr = (int64_t)this->Segments.at(index)->p_vaddr;
286 Vaddr = (int64_t)this->Segments.at(index)->p_vaddr;
285 }
287 }
286 }
288 }
287 return Vaddr;
289 return Vaddr;
288 }
290 }
289
291
290
292
291 qint64 elfparser::getSegmentPaddr(int index)
293 qint64 elfparser::getSegmentPaddr(int index)
292 {
294 {
293 int64_t Paddr=0;
295 int64_t Paddr=0;
294 if(this->e!=NULL)
296 if(this->e!=NULL)
295 {
297 {
296 if(index < this->Segments.count())
298 if(index < this->Segments.count())
297 {
299 {
298 Paddr = (int64_t)this->Segments.at(index)->p_paddr;
300 Paddr = (int64_t)this->Segments.at(index)->p_paddr;
299 }
301 }
300 }
302 }
301 return Paddr;
303 return Paddr;
302 }
304 }
303
305
304 qint64 elfparser::getSectionPaddr(int index)
306 qint64 elfparser::getSectionPaddr(int index)
305 {
307 {
306 int64_t Paddr=0;
308 int64_t Paddr=0;
307 if(this->e!=NULL)
309 if(this->e!=NULL)
308 {
310 {
309 if(index < this->sections.count())
311 if(index < this->sections.count())
310 {
312 {
311 Paddr = (int64_t)this->sections.at(index)->section_header->sh_addr;
313 Paddr = (int64_t)this->sections.at(index)->section_header->sh_addr;
312 }
314 }
313 }
315 }
314 return Paddr;
316 return Paddr;
315 }
317 }
316
318
317
319
318 qint64 elfparser::getSegmentFilesz(int index)
320 qint64 elfparser::getSegmentFilesz(int index)
319 {
321 {
320 int64_t FileSz=0;
322 int64_t FileSz=0;
321 if(this->e!=NULL)
323 if(this->e!=NULL)
322 {
324 {
323 if(index < this->Segments.count())
325 if(index < this->Segments.count())
324 {
326 {
325 FileSz = (int64_t)this->Segments.at(index)->p_filesz;
327 FileSz = (int64_t)this->Segments.at(index)->p_filesz;
326 }
328 }
327 }
329 }
328 return FileSz;
330 return FileSz;
329 }
331 }
330
332
331 qint64 elfparser::getSectionDatasz(int index)
333 qint64 elfparser::getSectionDatasz(int index)
332 {
334 {
333 int64_t DataSz=0;
335 int64_t DataSz=0;
334 if(this->e!=NULL)
336 if(this->e!=NULL)
335 {
337 {
336 if(index < this->sections.count())
338 if(index < this->sections.count())
337 {
339 {
338 DataSz = (int64_t)this->sections.at(index)->data->d_size;
340 DataSz = (int64_t)this->sections.at(index)->data->d_size;
339 }
341 }
340 }
342 }
341 return DataSz;
343 return DataSz;
342 }
344 }
343
345
344 bool elfparser::getSectionData(int index, char **buffer)
346 bool elfparser::getSectionData(int index, char **buffer)
345 {
347 {
346 if(this->e!=NULL)
348 if(this->e!=NULL)
347 {
349 {
348 if(index < this->sections.count())
350 if(index < this->sections.count())
349 {
351 {
350 *buffer = (char *)this->sections.at(index)->data->d_buf;
352 *buffer = (char *)this->sections.at(index)->data->d_buf;
351 return true;
353 return true;
352 }
354 }
353 }
355 }
354 return false;
356 return false;
355 }
357 }
356
358
357
359
358 qint64 elfparser::getSegmentMemsz(int index)
360 qint64 elfparser::getSegmentMemsz(int index)
359 {
361 {
360 int64_t MemSz=0;
362 int64_t MemSz=0;
361 if(this->e!=NULL)
363 if(this->e!=NULL)
362 {
364 {
363 if(index < this->Segments.count())
365 if(index < this->Segments.count())
364 {
366 {
365 MemSz = (int64_t)this->Segments.at(index)->p_memsz;
367 MemSz = (int64_t)this->Segments.at(index)->p_memsz;
366 }
368 }
367 }
369 }
368 return MemSz;
370 return MemSz;
369 }
371 }
370
372
371 qint64 elfparser::getSectionMemsz(int index)
373 qint64 elfparser::getSectionMemsz(int index)
372 {
374 {
373 int64_t MemSz=0;
375 int64_t MemSz=0;
374 if(this->e!=NULL)
376 if(this->e!=NULL)
375 {
377 {
376 if(index < this->sections.count())
378 if(index < this->sections.count())
377 {
379 {
378 MemSz = (int64_t)this->sections.at(index)->section_header->sh_size;
380 MemSz = (int64_t)this->sections.at(index)->section_header->sh_size;
379 }
381 }
380 }
382 }
381 return MemSz;
383 return MemSz;
382 }
384 }
383
385
384
386
385 QString elfparser::getSegmentFlags(int index)
387 QString elfparser::getSegmentFlags(int index)
386 {
388 {
387 QString flags("");
389 QString flags("");
388 if(this->e!=NULL)
390 if(this->e!=NULL)
389 {
391 {
390 if(index < this->Segments.count())
392 if(index < this->Segments.count())
391 {
393 {
392 if((this->Segments.at(index)->p_flags&PF_X) == PF_X)flags+="x";
394 if((this->Segments.at(index)->p_flags&PF_X) == PF_X)flags+="x";
393 if((this->Segments.at(index)->p_flags&PF_W) == PF_W)flags+="w";
395 if((this->Segments.at(index)->p_flags&PF_W) == PF_W)flags+="w";
394 if((this->Segments.at(index)->p_flags&PF_R) == PF_R)flags+="r";
396 if((this->Segments.at(index)->p_flags&PF_R) == PF_R)flags+="r";
395 if((this->Segments.at(index)->p_flags&PF_MASKOS) == PF_MASKOS)flags+=" OS-specific";
397 if((this->Segments.at(index)->p_flags&PF_MASKOS) == PF_MASKOS)flags+=" OS-specific";
396 if((this->Segments.at(index)->p_flags&PF_MASKPROC) == PF_MASKPROC)flags+=" Processor-specific";
398 if((this->Segments.at(index)->p_flags&PF_MASKPROC) == PF_MASKPROC)flags+=" Processor-specific";
397 }
399 }
398 }
400 }
399 return flags;
401 return flags;
400 }
402 }
401
403
402
404
403 QString elfparser::getSectionName(int index)
405 QString elfparser::getSectionName(int index)
404 {
406 {
405 char* nameChr = elf_strptr(this->e , this->shstrndx , this->sections.at(index)->section_header->sh_name);
407 char* nameChr = elf_strptr(this->e , this->shstrndx , this->sections.at(index)->section_header->sh_name);
406 return QString(nameChr);
408 return QString(nameChr);
407 }
409 }
408
410
409
411
410 void elfparser::updateSections()
412 void elfparser::updateSections()
411 {
413 {
412 for(int i=0;i<this->sections.count();i++)
414 for(int i=0;i<this->sections.count();i++)
413 {
415 {
414 delete this->sections.at(i);
416 delete this->sections.at(i);
415 }
417 }
416 this->sections.clear();
418 this->sections.clear();
417 this->scn = elf_nextscn (this->e , NULL );
419 this->scn = elf_nextscn (this->e , NULL );
418 this->SectionCount = 0;
420 this->SectionCount = 0;
419 while( this->scn != NULL )
421 while( this->scn != NULL )
420 {
422 {
421 GElf_Shdr* shdr = (GElf_Shdr*)malloc(sizeof(GElf_Shdr));
423 GElf_Shdr* shdr = (GElf_Shdr*)malloc(sizeof(GElf_Shdr));
422 gelf_getshdr ( this->scn , shdr );
424 gelf_getshdr ( this->scn , shdr );
423 Elf_Data* data = elf_getdata(this->scn, NULL);
425 Elf_Data* data = elf_getdata(this->scn, NULL);
424 this->sections.append(new Elf_Section(data,shdr));
426 this->sections.append(new Elf_Section(data,shdr));
425 this->SectionCount+=1;
427 this->SectionCount+=1;
426 this->scn = elf_nextscn(e , scn);
428 this->scn = elf_nextscn(e , scn);
427 }
429 }
428 }
430 }
429
431
430
432
431 void elfparser::updateSegments()
433 void elfparser::updateSegments()
432 {
434 {
433 elf_getphdrnum (this->e , &this->SegmentCount);
435 elf_getphdrnum (this->e , &this->SegmentCount);
434 for(int i=0;i<this->Segments.count();i++)
436 for(int i=0;i<this->Segments.count();i++)
435 {
437 {
436 free(this->Segments.at(i));
438 free(this->Segments.at(i));
437 }
439 }
438 this->Segments.clear();
440 this->Segments.clear();
439 for(int i=0;i<this->SegmentCount;i++)
441 for(int i=0;i<(int)this->SegmentCount;i++)
440 {
442 {
441 GElf_Phdr* header=(GElf_Phdr*)malloc(sizeof(GElf_Phdr));
443 GElf_Phdr* header=(GElf_Phdr*)malloc(sizeof(GElf_Phdr));
442 gelf_getphdr (this->e , i , header );
444 gelf_getphdr (this->e , i , header );
443 this->Segments.append(header);
445 this->Segments.append(header);
444 }
446 }
445 }
447 }
446
448
447
449
448
450
449
451
450
452
451 QString elfparser::getSectionType(int index)
453 QString elfparser::getSectionType(int index)
452 {
454 {
453 QString type("");
455 QString type("");
454 if(this->e!=NULL)
456 if(this->e!=NULL)
455 {
457 {
456 if(index < this->Segments.count())
458 if(index < this->Segments.count())
457 {
459 {
458 switch(this->Segments.at(index)->p_type)
460 switch(this->Segments.at(index)->p_type)
459 {
461 {
460 case SHT_NULL : type = "Section header table entry unused"; break;
462 case SHT_NULL : type = "Section header table entry unused"; break;
461 case SHT_PROGBITS : type = "Program data"; break;
463 case SHT_PROGBITS : type = "Program data"; break;
462 case SHT_SYMTAB : type = "Symbol table"; break;
464 case SHT_SYMTAB : type = "Symbol table"; break;
463 case SHT_STRTAB : type = "String table"; break;
465 case SHT_STRTAB : type = "String table"; break;
464 case SHT_RELA : type = "Relocation entries with addends"; break;
466 case SHT_RELA : type = "Relocation entries with addends"; break;
465 case SHT_HASH : type = "Symbol hash table"; break;
467 case SHT_HASH : type = "Symbol hash table"; break;
466 case SHT_DYNAMIC : type = "Dynamic linking information"; break;
468 case SHT_DYNAMIC : type = "Dynamic linking information"; break;
467 case SHT_NOTE : type = "Notes"; break;
469 case SHT_NOTE : type = "Notes"; break;
468 case SHT_NOBITS :type = "Program space with no data (bss)"; break;
470 case SHT_NOBITS :type = "Program space with no data (bss)"; break;
469 case SHT_REL :type = "Relocation entries, no addends"; break;
471 case SHT_REL :type = "Relocation entries, no addends"; break;
470 case SHT_SHLIB : type = "Reserved"; break;
472 case SHT_SHLIB : type = "Reserved"; break;
471 case SHT_DYNSYM : type = "Dynamic linker symbol table"; break;
473 case SHT_DYNSYM : type = "Dynamic linker symbol table"; break;
472 case SHT_INIT_ARRAY : type = "Array of constructors"; break;
474 case SHT_INIT_ARRAY : type = "Array of constructors"; break;
473 case SHT_FINI_ARRAY : type = "Array of destructors"; break;
475 case SHT_FINI_ARRAY : type = "Array of destructors"; break;
474 case SHT_PREINIT_ARRAY : type = "Array of pre-constructors"; break;
476 case SHT_PREINIT_ARRAY : type = "Array of pre-constructors"; break;
475 case SHT_GROUP : type = "Section group"; break;
477 case SHT_GROUP : type = "Section group"; break;
476 case SHT_SYMTAB_SHNDX : type = "Extended section indeces"; break;
478 case SHT_SYMTAB_SHNDX : type = "Extended section indeces"; break;
477 case SHT_NUM : type = "Number of defined types. "; break;
479 case SHT_NUM : type = "Number of defined types. "; break;
478 case SHT_LOOS : type = "Start OS-specific. "; break;
480 case SHT_LOOS : type = "Start OS-specific. "; break;
479 case SHT_LOSUNW : type = "Sun-specific low bound. "; break;
481 case SHT_LOSUNW : type = "Sun-specific low bound. "; break;
480 case SHT_SUNW_COMDAT : type = " "; break;
482 case SHT_SUNW_COMDAT : type = " "; break;
481 case SHT_SUNW_syminfo : type = " "; break;
483 case SHT_SUNW_syminfo : type = " "; break;
482 case SHT_GNU_verdef : type = "Version definition section. "; break;
484 case SHT_GNU_verdef : type = "Version definition section. "; break;
483 case SHT_GNU_verneed : type = "Version needs section. "; break;
485 case SHT_GNU_verneed : type = "Version needs section. "; break;
484 case SHT_GNU_versym : type = "Version symbol table. "; break;
486 case SHT_GNU_versym : type = "Version symbol table. "; break;
485 case SHT_LOPROC : type = "Start of processor-specific"; break;
487 case SHT_LOPROC : type = "Start of processor-specific"; break;
486 case SHT_HIPROC : type = "End of processor-specific"; break;
488 case SHT_HIPROC : type = "End of processor-specific"; break;
487 case SHT_HIUSER : type = "End of application-specific"; break;
489 case SHT_HIUSER : type = "End of application-specific"; break;
488 }
490 }
489 }
491 }
490 }
492 }
491 return type;
493 return type;
492 }
494 }
493
495
494 bool elfparser::isElf(const QString &File)
496 bool elfparser::isElf(const QString &File)
495 {
497 {
496 int file =0;
498 int file =0;
497 #ifdef _ELF_WINDOWS_
499 #ifdef _ELF_WINDOWS_
498 file = open(File.toStdString().c_str(),O_RDONLY|O_BINARY ,0);
500 file = open(File.toStdString().c_str(),O_RDONLY|O_BINARY ,0);
499 #else
501 #else
500 file = open(File.toStdString().c_str(),O_RDONLY ,0);
502 file = open(File.toStdString().c_str(),O_RDONLY ,0);
501 #endif
503 #endif
502 char Magic[4];
504 char Magic[4];
503 if(file!=-1)
505 if(file!=-1)
504 {
506 {
505 read(file,Magic,4);
507 size_t res = read(file,Magic,4);
506 close(file);
508 close(file);
507 if(Magic[0]==0x7f && Magic[1]==0x45 && Magic[2]==0x4c && Magic[3]==0x46)
509 if((res == 4) && (Magic[0]==0x7f) && (Magic[1]==0x45) && (Magic[2]==0x4c) && (Magic[3]==0x46))
508 {
510 {
509 return true;
511 return true;
510 }
512 }
511 }
513 }
512 return false;
514 return false;
513 }
515 }
514
516
515
517
516
518
517
519
518
520
519
521
520
522
521
523
This diff has been collapsed as it changes many lines, (1123 lines changed) Show them Hide them
@@ -1,8031 +1,9154
1 #include "PySocExplorer0.h"
1 #include "PySocExplorer0.h"
2 #include <PythonQtConversion.h>
2 #include <PythonQtConversion.h>
3 #include <PythonQtMethodInfo.h>
3 #include <PythonQtMethodInfo.h>
4 #include <PythonQtSignalReceiver.h>
4 #include <PythonQtSignalReceiver.h>
5 #include <QIconEngine>
5 #include <QIconEngine>
6 #include <QObject>
6 #include <QObject>
7 #include <QSpinBox>
7 #include <QSpinBox>
8 #include <QVariant>
8 #include <QVariant>
9 #include <QWidget>
9 #include <QWidget>
10 #include <abstractbinfile.h>
10 #include <abstractbinfile.h>
11 #include <binaryfile.h>
11 #include <elffile.h>
12 #include <elffile.h>
12 #include <elfparser.h>
13 #include <elfparser.h>
13 #include <qaction.h>
14 #include <qaction.h>
14 #include <qbitmap.h>
15 #include <qbitmap.h>
15 #include <qbytearray.h>
16 #include <qbytearray.h>
16 #include <qcolor.h>
17 #include <qcolor.h>
17 #include <qcoreevent.h>
18 #include <qcoreevent.h>
18 #include <qcursor.h>
19 #include <qcursor.h>
19 #include <qevent.h>
20 #include <qevent.h>
20 #include <qfile.h>
21 #include <qfile.h>
21 #include <qfont.h>
22 #include <qfont.h>
22 #include <qgraphicseffect.h>
23 #include <qgraphicseffect.h>
23 #include <qgraphicsproxywidget.h>
24 #include <qgraphicsproxywidget.h>
24 #include <qkeysequence.h>
25 #include <qkeysequence.h>
25 #include <qlayout.h>
26 #include <qlayout.h>
26 #include <qlineedit.h>
27 #include <qlineedit.h>
27 #include <qlist.h>
28 #include <qlist.h>
28 #include <qlocale.h>
29 #include <qlocale.h>
29 #include <qmargins.h>
30 #include <qmargins.h>
30 #include <qobject.h>
31 #include <qobject.h>
31 #include <qpaintdevice.h>
32 #include <qpaintdevice.h>
32 #include <qpaintengine.h>
33 #include <qpaintengine.h>
33 #include <qpainter.h>
34 #include <qpainter.h>
34 #include <qpalette.h>
35 #include <qpalette.h>
35 #include <qpen.h>
36 #include <qpen.h>
36 #include <qpixmap.h>
37 #include <qpixmap.h>
37 #include <qpoint.h>
38 #include <qpoint.h>
38 #include <qrect.h>
39 #include <qrect.h>
39 #include <qregion.h>
40 #include <qregion.h>
40 #include <qscrollarea.h>
41 #include <qscrollarea.h>
41 #include <qscrollbar.h>
42 #include <qscrollbar.h>
42 #include <qsize.h>
43 #include <qsize.h>
43 #include <qsizepolicy.h>
44 #include <qsizepolicy.h>
44 #include <qspinbox.h>
45 #include <qspinbox.h>
45 #include <qstringlist.h>
46 #include <qstringlist.h>
46 #include <qstyle.h>
47 #include <qstyle.h>
47 #include <qstyleoption.h>
48 #include <qstyleoption.h>
48 #include <qwidget.h>
49 #include <qwidget.h>
49 #include <srecfile.h>
50 #include <srecfile.h>
50
51
51 PythonQtShell_ElfFile::~PythonQtShell_ElfFile() {
52 PythonQtShell_ElfFile::~PythonQtShell_ElfFile() {
52 PythonQtPrivate* priv = PythonQt::priv();
53 PythonQtPrivate* priv = PythonQt::priv();
53 if (priv) { priv->shellClassDeleted(this); }
54 if (priv) { priv->shellClassDeleted(this); }
54 }
55 }
55 int PythonQtShell_ElfFile::closeFile()
56 int PythonQtShell_ElfFile::closeFile()
56 {
57 {
57 if (_wrapper) {
58 if (_wrapper) {
58 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile");
59 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile");
59 PyErr_Clear();
60 PyErr_Clear();
60 if (obj && !PythonQtSlotFunction_Check(obj)) {
61 if (obj && !PythonQtSlotFunction_Check(obj)) {
61 static const char* argumentList[] ={"int"};
62 static const char* argumentList[] ={"int"};
62 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
63 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
63 int returnValue;
64 int returnValue;
64 void* args[1] = {NULL};
65 void* args[1] = {NULL};
65 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
66 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
66 if (result) {
67 if (result) {
67 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
68 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
68 if (args[0]!=&returnValue) {
69 if (args[0]!=&returnValue) {
69 if (args[0]==NULL) {
70 if (args[0]==NULL) {
70 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
71 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
71 } else {
72 } else {
72 returnValue = *((int*)args[0]);
73 returnValue = *((int*)args[0]);
73 }
74 }
74 }
75 }
75 }
76 }
76 if (result) { Py_DECREF(result); }
77 if (result) { Py_DECREF(result); }
77 Py_DECREF(obj);
78 Py_DECREF(obj);
78 return returnValue;
79 return returnValue;
79 }
80 }
80 }
81 }
81 return ElfFile::closeFile();
82 return ElfFile::closeFile();
82 }
83 }
83 QList<codeFragment* > PythonQtShell_ElfFile::getFragments()
84 QList<codeFragment* > PythonQtShell_ElfFile::getFragments()
84 {
85 {
85 if (_wrapper) {
86 if (_wrapper) {
86 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments");
87 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments");
87 PyErr_Clear();
88 PyErr_Clear();
88 if (obj && !PythonQtSlotFunction_Check(obj)) {
89 if (obj && !PythonQtSlotFunction_Check(obj)) {
89 static const char* argumentList[] ={"QList<codeFragment* >"};
90 static const char* argumentList[] ={"QList<codeFragment* >"};
90 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
91 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
91 QList<codeFragment* > returnValue;
92 QList<codeFragment* > returnValue;
92 void* args[1] = {NULL};
93 void* args[1] = {NULL};
93 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
94 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
94 if (result) {
95 if (result) {
95 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
96 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
96 if (args[0]!=&returnValue) {
97 if (args[0]!=&returnValue) {
97 if (args[0]==NULL) {
98 if (args[0]==NULL) {
98 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
99 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
99 } else {
100 } else {
100 returnValue = *((QList<codeFragment* >*)args[0]);
101 returnValue = *((QList<codeFragment* >*)args[0]);
101 }
102 }
102 }
103 }
103 }
104 }
104 if (result) { Py_DECREF(result); }
105 if (result) { Py_DECREF(result); }
105 Py_DECREF(obj);
106 Py_DECREF(obj);
106 return returnValue;
107 return returnValue;
107 }
108 }
108 }
109 }
109 return ElfFile::getFragments();
110 return ElfFile::getFragments();
110 }
111 }
111 bool PythonQtShell_ElfFile::isopened()
112 bool PythonQtShell_ElfFile::isopened()
112 {
113 {
113 if (_wrapper) {
114 if (_wrapper) {
114 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened");
115 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened");
115 PyErr_Clear();
116 PyErr_Clear();
116 if (obj && !PythonQtSlotFunction_Check(obj)) {
117 if (obj && !PythonQtSlotFunction_Check(obj)) {
117 static const char* argumentList[] ={"bool"};
118 static const char* argumentList[] ={"bool"};
118 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
119 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
119 bool returnValue;
120 bool returnValue;
120 void* args[1] = {NULL};
121 void* args[1] = {NULL};
121 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
122 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
122 if (result) {
123 if (result) {
123 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
124 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
124 if (args[0]!=&returnValue) {
125 if (args[0]!=&returnValue) {
125 if (args[0]==NULL) {
126 if (args[0]==NULL) {
126 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
127 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
127 } else {
128 } else {
128 returnValue = *((bool*)args[0]);
129 returnValue = *((bool*)args[0]);
129 }
130 }
130 }
131 }
131 }
132 }
132 if (result) { Py_DECREF(result); }
133 if (result) { Py_DECREF(result); }
133 Py_DECREF(obj);
134 Py_DECREF(obj);
134 return returnValue;
135 return returnValue;
135 }
136 }
136 }
137 }
137 return ElfFile::isopened();
138 return ElfFile::isopened();
138 }
139 }
139 bool PythonQtShell_ElfFile::openFile(const QString& File)
140 bool PythonQtShell_ElfFile::openFile(const QString& File)
140 {
141 {
141 if (_wrapper) {
142 if (_wrapper) {
142 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile");
143 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile");
143 PyErr_Clear();
144 PyErr_Clear();
144 if (obj && !PythonQtSlotFunction_Check(obj)) {
145 if (obj && !PythonQtSlotFunction_Check(obj)) {
145 static const char* argumentList[] ={"bool" , "const QString&"};
146 static const char* argumentList[] ={"bool" , "const QString&"};
146 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
147 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
147 bool returnValue;
148 bool returnValue;
148 void* args[2] = {NULL, (void*)&File};
149 void* args[2] = {NULL, (void*)&File};
149 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
150 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
150 if (result) {
151 if (result) {
151 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
152 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
152 if (args[0]!=&returnValue) {
153 if (args[0]!=&returnValue) {
153 if (args[0]==NULL) {
154 if (args[0]==NULL) {
154 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
155 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
155 } else {
156 } else {
156 returnValue = *((bool*)args[0]);
157 returnValue = *((bool*)args[0]);
157 }
158 }
158 }
159 }
159 }
160 }
160 if (result) { Py_DECREF(result); }
161 if (result) { Py_DECREF(result); }
161 Py_DECREF(obj);
162 Py_DECREF(obj);
162 return returnValue;
163 return returnValue;
163 }
164 }
164 }
165 }
165 return ElfFile::openFile(File);
166 return ElfFile::openFile(File);
166 }
167 }
167 ElfFile* PythonQtWrapper_ElfFile::new_ElfFile()
168 ElfFile* PythonQtWrapper_ElfFile::new_ElfFile()
168 {
169 {
169 return new PythonQtShell_ElfFile(); }
170 return new PythonQtShell_ElfFile(); }
170
171
171 ElfFile* PythonQtWrapper_ElfFile::new_ElfFile(const QString& File)
172 ElfFile* PythonQtWrapper_ElfFile::new_ElfFile(const QString& File)
172 {
173 {
173 return new PythonQtShell_ElfFile(File); }
174 return new PythonQtShell_ElfFile(File); }
174
175
175 int PythonQtWrapper_ElfFile::closeFile(ElfFile* theWrappedObject)
176 int PythonQtWrapper_ElfFile::closeFile(ElfFile* theWrappedObject)
176 {
177 {
177 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_closeFile());
178 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_closeFile());
178 }
179 }
179
180
180 QString PythonQtWrapper_ElfFile::getABI(ElfFile* theWrappedObject)
181 QString PythonQtWrapper_ElfFile::getABI(ElfFile* theWrappedObject)
181 {
182 {
182 return ( theWrappedObject->getABI());
183 return ( theWrappedObject->getABI());
183 }
184 }
184
185
185 QString PythonQtWrapper_ElfFile::getArchitecture(ElfFile* theWrappedObject)
186 QString PythonQtWrapper_ElfFile::getArchitecture(ElfFile* theWrappedObject)
186 {
187 {
187 return ( theWrappedObject->getArchitecture());
188 return ( theWrappedObject->getArchitecture());
188 }
189 }
189
190
190 QString PythonQtWrapper_ElfFile::getClass(ElfFile* theWrappedObject)
191 QString PythonQtWrapper_ElfFile::getClass(ElfFile* theWrappedObject)
191 {
192 {
192 return ( theWrappedObject->getClass());
193 return ( theWrappedObject->getClass());
193 }
194 }
194
195
195 QString PythonQtWrapper_ElfFile::getEndianness(ElfFile* theWrappedObject)
196 QString PythonQtWrapper_ElfFile::getEndianness(ElfFile* theWrappedObject)
196 {
197 {
197 return ( theWrappedObject->getEndianness());
198 return ( theWrappedObject->getEndianness());
198 }
199 }
199
200
200 qint64 PythonQtWrapper_ElfFile::getEntryPointAddress(ElfFile* theWrappedObject)
201 qint64 PythonQtWrapper_ElfFile::getEntryPointAddress(ElfFile* theWrappedObject)
201 {
202 {
202 return ( theWrappedObject->getEntryPointAddress());
203 return ( theWrappedObject->getEntryPointAddress());
203 }
204 }
204
205
205 QList<codeFragment* > PythonQtWrapper_ElfFile::getFragments(ElfFile* theWrappedObject)
206 QList<codeFragment* > PythonQtWrapper_ElfFile::getFragments(ElfFile* theWrappedObject)
206 {
207 {
207 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_getFragments());
208 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_getFragments());
208 }
209 }
209
210
210 QList<codeFragment* > PythonQtWrapper_ElfFile::getFragments(ElfFile* theWrappedObject, QStringList fragmentList)
211 QList<codeFragment* > PythonQtWrapper_ElfFile::getFragments(ElfFile* theWrappedObject, QStringList fragmentList)
211 {
212 {
212 return ( theWrappedObject->getFragments(fragmentList));
213 return ( theWrappedObject->getFragments(fragmentList));
213 }
214 }
214
215
215 int PythonQtWrapper_ElfFile::getSectionCount(ElfFile* theWrappedObject)
216 int PythonQtWrapper_ElfFile::getSectionCount(ElfFile* theWrappedObject)
216 {
217 {
217 return ( theWrappedObject->getSectionCount());
218 return ( theWrappedObject->getSectionCount());
218 }
219 }
219
220
220 bool PythonQtWrapper_ElfFile::getSectionData(ElfFile* theWrappedObject, int index, char** buffer)
221 bool PythonQtWrapper_ElfFile::getSectionData(ElfFile* theWrappedObject, int index, char** buffer)
221 {
222 {
222 return ( theWrappedObject->getSectionData(index, buffer));
223 return ( theWrappedObject->getSectionData(index, buffer));
223 }
224 }
224
225
225 qint64 PythonQtWrapper_ElfFile::getSectionDatasz(ElfFile* theWrappedObject, int index)
226 qint64 PythonQtWrapper_ElfFile::getSectionDatasz(ElfFile* theWrappedObject, int index)
226 {
227 {
227 return ( theWrappedObject->getSectionDatasz(index));
228 return ( theWrappedObject->getSectionDatasz(index));
228 }
229 }
229
230
230 int PythonQtWrapper_ElfFile::getSectionIndex(ElfFile* theWrappedObject, QString name)
231 int PythonQtWrapper_ElfFile::getSectionIndex(ElfFile* theWrappedObject, QString name)
231 {
232 {
232 return ( theWrappedObject->getSectionIndex(name));
233 return ( theWrappedObject->getSectionIndex(name));
233 }
234 }
234
235
235 qint64 PythonQtWrapper_ElfFile::getSectionMemsz(ElfFile* theWrappedObject, int index)
236 qint64 PythonQtWrapper_ElfFile::getSectionMemsz(ElfFile* theWrappedObject, int index)
236 {
237 {
237 return ( theWrappedObject->getSectionMemsz(index));
238 return ( theWrappedObject->getSectionMemsz(index));
238 }
239 }
239
240
240 QString PythonQtWrapper_ElfFile::getSectionName(ElfFile* theWrappedObject, int index)
241 QString PythonQtWrapper_ElfFile::getSectionName(ElfFile* theWrappedObject, int index)
241 {
242 {
242 return ( theWrappedObject->getSectionName(index));
243 return ( theWrappedObject->getSectionName(index));
243 }
244 }
244
245
245 qint64 PythonQtWrapper_ElfFile::getSectionPaddr(ElfFile* theWrappedObject, int index)
246 qint64 PythonQtWrapper_ElfFile::getSectionPaddr(ElfFile* theWrappedObject, int index)
246 {
247 {
247 return ( theWrappedObject->getSectionPaddr(index));
248 return ( theWrappedObject->getSectionPaddr(index));
248 }
249 }
249
250
250 QString PythonQtWrapper_ElfFile::getSectionType(ElfFile* theWrappedObject, int index)
251 QString PythonQtWrapper_ElfFile::getSectionType(ElfFile* theWrappedObject, int index)
251 {
252 {
252 return ( theWrappedObject->getSectionType(index));
253 return ( theWrappedObject->getSectionType(index));
253 }
254 }
254
255
255 int PythonQtWrapper_ElfFile::getSegmentCount(ElfFile* theWrappedObject)
256 int PythonQtWrapper_ElfFile::getSegmentCount(ElfFile* theWrappedObject)
256 {
257 {
257 return ( theWrappedObject->getSegmentCount());
258 return ( theWrappedObject->getSegmentCount());
258 }
259 }
259
260
260 qint64 PythonQtWrapper_ElfFile::getSegmentFilesz(ElfFile* theWrappedObject, int index)
261 qint64 PythonQtWrapper_ElfFile::getSegmentFilesz(ElfFile* theWrappedObject, int index)
261 {
262 {
262 return ( theWrappedObject->getSegmentFilesz(index));
263 return ( theWrappedObject->getSegmentFilesz(index));
263 }
264 }
264
265
265 QString PythonQtWrapper_ElfFile::getSegmentFlags(ElfFile* theWrappedObject, int index)
266 QString PythonQtWrapper_ElfFile::getSegmentFlags(ElfFile* theWrappedObject, int index)
266 {
267 {
267 return ( theWrappedObject->getSegmentFlags(index));
268 return ( theWrappedObject->getSegmentFlags(index));
268 }
269 }
269
270
270 qint64 PythonQtWrapper_ElfFile::getSegmentMemsz(ElfFile* theWrappedObject, int index)
271 qint64 PythonQtWrapper_ElfFile::getSegmentMemsz(ElfFile* theWrappedObject, int index)
271 {
272 {
272 return ( theWrappedObject->getSegmentMemsz(index));
273 return ( theWrappedObject->getSegmentMemsz(index));
273 }
274 }
274
275
275 qint64 PythonQtWrapper_ElfFile::getSegmentOffset(ElfFile* theWrappedObject, int index)
276 qint64 PythonQtWrapper_ElfFile::getSegmentOffset(ElfFile* theWrappedObject, int index)
276 {
277 {
277 return ( theWrappedObject->getSegmentOffset(index));
278 return ( theWrappedObject->getSegmentOffset(index));
278 }
279 }
279
280
280 qint64 PythonQtWrapper_ElfFile::getSegmentPaddr(ElfFile* theWrappedObject, int index)
281 qint64 PythonQtWrapper_ElfFile::getSegmentPaddr(ElfFile* theWrappedObject, int index)
281 {
282 {
282 return ( theWrappedObject->getSegmentPaddr(index));
283 return ( theWrappedObject->getSegmentPaddr(index));
283 }
284 }
284
285
285 QString PythonQtWrapper_ElfFile::getSegmentType(ElfFile* theWrappedObject, int index)
286 QString PythonQtWrapper_ElfFile::getSegmentType(ElfFile* theWrappedObject, int index)
286 {
287 {
287 return ( theWrappedObject->getSegmentType(index));
288 return ( theWrappedObject->getSegmentType(index));
288 }
289 }
289
290
290 qint64 PythonQtWrapper_ElfFile::getSegmentVaddr(ElfFile* theWrappedObject, int index)
291 qint64 PythonQtWrapper_ElfFile::getSegmentVaddr(ElfFile* theWrappedObject, int index)
291 {
292 {
292 return ( theWrappedObject->getSegmentVaddr(index));
293 return ( theWrappedObject->getSegmentVaddr(index));
293 }
294 }
294
295
295 quint64 PythonQtWrapper_ElfFile::getSymbolAddress(ElfFile* theWrappedObject, int index)
296 quint64 PythonQtWrapper_ElfFile::getSymbolAddress(ElfFile* theWrappedObject, int index)
296 {
297 {
297 return ( theWrappedObject->getSymbolAddress(index));
298 return ( theWrappedObject->getSymbolAddress(index));
298 }
299 }
299
300
300 int PythonQtWrapper_ElfFile::getSymbolCount(ElfFile* theWrappedObject)
301 int PythonQtWrapper_ElfFile::getSymbolCount(ElfFile* theWrappedObject)
301 {
302 {
302 return ( theWrappedObject->getSymbolCount());
303 return ( theWrappedObject->getSymbolCount());
303 }
304 }
304
305
305 QString PythonQtWrapper_ElfFile::getSymbolLinkType(ElfFile* theWrappedObject, int index)
306 QString PythonQtWrapper_ElfFile::getSymbolLinkType(ElfFile* theWrappedObject, int index)
306 {
307 {
307 return ( theWrappedObject->getSymbolLinkType(index));
308 return ( theWrappedObject->getSymbolLinkType(index));
308 }
309 }
309
310
310 QString PythonQtWrapper_ElfFile::getSymbolName(ElfFile* theWrappedObject, int index)
311 QString PythonQtWrapper_ElfFile::getSymbolName(ElfFile* theWrappedObject, int index)
311 {
312 {
312 return ( theWrappedObject->getSymbolName(index));
313 return ( theWrappedObject->getSymbolName(index));
313 }
314 }
314
315
315 int PythonQtWrapper_ElfFile::getSymbolSectionIndex(ElfFile* theWrappedObject, int index)
316 int PythonQtWrapper_ElfFile::getSymbolSectionIndex(ElfFile* theWrappedObject, int index)
316 {
317 {
317 return ( theWrappedObject->getSymbolSectionIndex(index));
318 return ( theWrappedObject->getSymbolSectionIndex(index));
318 }
319 }
319
320
320 QString PythonQtWrapper_ElfFile::getSymbolSectionName(ElfFile* theWrappedObject, int index)
321 QString PythonQtWrapper_ElfFile::getSymbolSectionName(ElfFile* theWrappedObject, int index)
321 {
322 {
322 return ( theWrappedObject->getSymbolSectionName(index));
323 return ( theWrappedObject->getSymbolSectionName(index));
323 }
324 }
324
325
325 quint64 PythonQtWrapper_ElfFile::getSymbolSize(ElfFile* theWrappedObject, int index)
326 quint64 PythonQtWrapper_ElfFile::getSymbolSize(ElfFile* theWrappedObject, int index)
326 {
327 {
327 return ( theWrappedObject->getSymbolSize(index));
328 return ( theWrappedObject->getSymbolSize(index));
328 }
329 }
329
330
330 QString PythonQtWrapper_ElfFile::getSymbolType(ElfFile* theWrappedObject, int index)
331 QString PythonQtWrapper_ElfFile::getSymbolType(ElfFile* theWrappedObject, int index)
331 {
332 {
332 return ( theWrappedObject->getSymbolType(index));
333 return ( theWrappedObject->getSymbolType(index));
333 }
334 }
334
335
335 QString PythonQtWrapper_ElfFile::getType(ElfFile* theWrappedObject)
336 QString PythonQtWrapper_ElfFile::getType(ElfFile* theWrappedObject)
336 {
337 {
337 return ( theWrappedObject->getType());
338 return ( theWrappedObject->getType());
338 }
339 }
339
340
340 qint64 PythonQtWrapper_ElfFile::getVersion(ElfFile* theWrappedObject)
341 qint64 PythonQtWrapper_ElfFile::getVersion(ElfFile* theWrappedObject)
341 {
342 {
342 return ( theWrappedObject->getVersion());
343 return ( theWrappedObject->getVersion());
343 }
344 }
344
345
345 bool PythonQtWrapper_ElfFile::static_ElfFile_isElf(const QString& File)
346 bool PythonQtWrapper_ElfFile::static_ElfFile_isElf(const QString& File)
346 {
347 {
347 return (ElfFile::isElf(File));
348 return (ElfFile::isElf(File));
348 }
349 }
349
350
350 bool PythonQtWrapper_ElfFile::iself(ElfFile* theWrappedObject)
351 bool PythonQtWrapper_ElfFile::iself(ElfFile* theWrappedObject)
351 {
352 {
352 return ( theWrappedObject->iself());
353 return ( theWrappedObject->iself());
353 }
354 }
354
355
355 bool PythonQtWrapper_ElfFile::isopened(ElfFile* theWrappedObject)
356 bool PythonQtWrapper_ElfFile::isopened(ElfFile* theWrappedObject)
356 {
357 {
357 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_isopened());
358 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_isopened());
358 }
359 }
359
360
360 bool PythonQtWrapper_ElfFile::openFile(ElfFile* theWrappedObject, const QString& File)
361 bool PythonQtWrapper_ElfFile::openFile(ElfFile* theWrappedObject, const QString& File)
361 {
362 {
362 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_openFile(File));
363 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_openFile(File));
363 }
364 }
364
365
366 bool PythonQtWrapper_ElfFile::sectionIsNobits(ElfFile* theWrappedObject, int index)
367 {
368 return ( theWrappedObject->sectionIsNobits(index));
369 }
370
365 bool PythonQtWrapper_ElfFile::toSrec(ElfFile* theWrappedObject, const QString& File)
371 bool PythonQtWrapper_ElfFile::toSrec(ElfFile* theWrappedObject, const QString& File)
366 {
372 {
367 return ( theWrappedObject->toSrec(File));
373 return ( theWrappedObject->toSrec(File));
368 }
374 }
369
375
370
376
371
377
372 PythonQtShell_MemSizeWdgt::~PythonQtShell_MemSizeWdgt() {
378 PythonQtShell_MemSizeWdgt::~PythonQtShell_MemSizeWdgt() {
373 PythonQtPrivate* priv = PythonQt::priv();
379 PythonQtPrivate* priv = PythonQt::priv();
374 if (priv) { priv->shellClassDeleted(this); }
380 if (priv) { priv->shellClassDeleted(this); }
375 }
381 }
376 void PythonQtShell_MemSizeWdgt::actionEvent(QActionEvent* arg__1)
382 void PythonQtShell_MemSizeWdgt::actionEvent(QActionEvent* arg__1)
377 {
383 {
378 if (_wrapper) {
384 if (_wrapper) {
379 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
385 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
380 PyErr_Clear();
386 PyErr_Clear();
381 if (obj && !PythonQtSlotFunction_Check(obj)) {
387 if (obj && !PythonQtSlotFunction_Check(obj)) {
382 static const char* argumentList[] ={"" , "QActionEvent*"};
388 static const char* argumentList[] ={"" , "QActionEvent*"};
383 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
389 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
384 void* args[2] = {NULL, (void*)&arg__1};
390 void* args[2] = {NULL, (void*)&arg__1};
385 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
391 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
386 if (result) { Py_DECREF(result); }
392 if (result) { Py_DECREF(result); }
387 Py_DECREF(obj);
393 Py_DECREF(obj);
388 return;
394 return;
389 }
395 }
390 }
396 }
391 MemSizeWdgt::actionEvent(arg__1);
397 MemSizeWdgt::actionEvent(arg__1);
392 }
398 }
393 void PythonQtShell_MemSizeWdgt::changeEvent(QEvent* arg__1)
399 void PythonQtShell_MemSizeWdgt::changeEvent(QEvent* arg__1)
394 {
400 {
395 if (_wrapper) {
401 if (_wrapper) {
396 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
402 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
397 PyErr_Clear();
403 PyErr_Clear();
398 if (obj && !PythonQtSlotFunction_Check(obj)) {
404 if (obj && !PythonQtSlotFunction_Check(obj)) {
399 static const char* argumentList[] ={"" , "QEvent*"};
405 static const char* argumentList[] ={"" , "QEvent*"};
400 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
406 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
401 void* args[2] = {NULL, (void*)&arg__1};
407 void* args[2] = {NULL, (void*)&arg__1};
402 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
408 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
403 if (result) { Py_DECREF(result); }
409 if (result) { Py_DECREF(result); }
404 Py_DECREF(obj);
410 Py_DECREF(obj);
405 return;
411 return;
406 }
412 }
407 }
413 }
408 MemSizeWdgt::changeEvent(arg__1);
414 MemSizeWdgt::changeEvent(arg__1);
409 }
415 }
410 void PythonQtShell_MemSizeWdgt::childEvent(QChildEvent* arg__1)
416 void PythonQtShell_MemSizeWdgt::childEvent(QChildEvent* arg__1)
411 {
417 {
412 if (_wrapper) {
418 if (_wrapper) {
413 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
419 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
414 PyErr_Clear();
420 PyErr_Clear();
415 if (obj && !PythonQtSlotFunction_Check(obj)) {
421 if (obj && !PythonQtSlotFunction_Check(obj)) {
416 static const char* argumentList[] ={"" , "QChildEvent*"};
422 static const char* argumentList[] ={"" , "QChildEvent*"};
417 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
423 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
418 void* args[2] = {NULL, (void*)&arg__1};
424 void* args[2] = {NULL, (void*)&arg__1};
419 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
425 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
420 if (result) { Py_DECREF(result); }
426 if (result) { Py_DECREF(result); }
421 Py_DECREF(obj);
427 Py_DECREF(obj);
422 return;
428 return;
423 }
429 }
424 }
430 }
425 MemSizeWdgt::childEvent(arg__1);
431 MemSizeWdgt::childEvent(arg__1);
426 }
432 }
427 void PythonQtShell_MemSizeWdgt::closeEvent(QCloseEvent* arg__1)
433 void PythonQtShell_MemSizeWdgt::closeEvent(QCloseEvent* arg__1)
428 {
434 {
429 if (_wrapper) {
435 if (_wrapper) {
430 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
436 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
431 PyErr_Clear();
437 PyErr_Clear();
432 if (obj && !PythonQtSlotFunction_Check(obj)) {
438 if (obj && !PythonQtSlotFunction_Check(obj)) {
433 static const char* argumentList[] ={"" , "QCloseEvent*"};
439 static const char* argumentList[] ={"" , "QCloseEvent*"};
434 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
440 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
435 void* args[2] = {NULL, (void*)&arg__1};
441 void* args[2] = {NULL, (void*)&arg__1};
436 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
442 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
437 if (result) { Py_DECREF(result); }
443 if (result) { Py_DECREF(result); }
438 Py_DECREF(obj);
444 Py_DECREF(obj);
439 return;
445 return;
440 }
446 }
441 }
447 }
442 MemSizeWdgt::closeEvent(arg__1);
448 MemSizeWdgt::closeEvent(arg__1);
443 }
449 }
444 void PythonQtShell_MemSizeWdgt::contextMenuEvent(QContextMenuEvent* arg__1)
450 void PythonQtShell_MemSizeWdgt::contextMenuEvent(QContextMenuEvent* arg__1)
445 {
451 {
446 if (_wrapper) {
452 if (_wrapper) {
447 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
453 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
448 PyErr_Clear();
454 PyErr_Clear();
449 if (obj && !PythonQtSlotFunction_Check(obj)) {
455 if (obj && !PythonQtSlotFunction_Check(obj)) {
450 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
456 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
451 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
457 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
452 void* args[2] = {NULL, (void*)&arg__1};
458 void* args[2] = {NULL, (void*)&arg__1};
453 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
459 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
454 if (result) { Py_DECREF(result); }
460 if (result) { Py_DECREF(result); }
455 Py_DECREF(obj);
461 Py_DECREF(obj);
456 return;
462 return;
457 }
463 }
458 }
464 }
459 MemSizeWdgt::contextMenuEvent(arg__1);
465 MemSizeWdgt::contextMenuEvent(arg__1);
460 }
466 }
461 void PythonQtShell_MemSizeWdgt::customEvent(QEvent* arg__1)
467 void PythonQtShell_MemSizeWdgt::customEvent(QEvent* arg__1)
462 {
468 {
463 if (_wrapper) {
469 if (_wrapper) {
464 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
470 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
465 PyErr_Clear();
471 PyErr_Clear();
466 if (obj && !PythonQtSlotFunction_Check(obj)) {
472 if (obj && !PythonQtSlotFunction_Check(obj)) {
467 static const char* argumentList[] ={"" , "QEvent*"};
473 static const char* argumentList[] ={"" , "QEvent*"};
468 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
474 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
469 void* args[2] = {NULL, (void*)&arg__1};
475 void* args[2] = {NULL, (void*)&arg__1};
470 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
476 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
471 if (result) { Py_DECREF(result); }
477 if (result) { Py_DECREF(result); }
472 Py_DECREF(obj);
478 Py_DECREF(obj);
473 return;
479 return;
474 }
480 }
475 }
481 }
476 MemSizeWdgt::customEvent(arg__1);
482 MemSizeWdgt::customEvent(arg__1);
477 }
483 }
478 int PythonQtShell_MemSizeWdgt::devType() const
484 int PythonQtShell_MemSizeWdgt::devType() const
479 {
485 {
480 if (_wrapper) {
486 if (_wrapper) {
481 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
487 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
482 PyErr_Clear();
488 PyErr_Clear();
483 if (obj && !PythonQtSlotFunction_Check(obj)) {
489 if (obj && !PythonQtSlotFunction_Check(obj)) {
484 static const char* argumentList[] ={"int"};
490 static const char* argumentList[] ={"int"};
485 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
491 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
486 int returnValue;
492 int returnValue;
487 void* args[1] = {NULL};
493 void* args[1] = {NULL};
488 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
494 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
489 if (result) {
495 if (result) {
490 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
496 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
491 if (args[0]!=&returnValue) {
497 if (args[0]!=&returnValue) {
492 if (args[0]==NULL) {
498 if (args[0]==NULL) {
493 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
499 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
494 } else {
500 } else {
495 returnValue = *((int*)args[0]);
501 returnValue = *((int*)args[0]);
496 }
502 }
497 }
503 }
498 }
504 }
499 if (result) { Py_DECREF(result); }
505 if (result) { Py_DECREF(result); }
500 Py_DECREF(obj);
506 Py_DECREF(obj);
501 return returnValue;
507 return returnValue;
502 }
508 }
503 }
509 }
504 return MemSizeWdgt::devType();
510 return MemSizeWdgt::devType();
505 }
511 }
506 void PythonQtShell_MemSizeWdgt::dragEnterEvent(QDragEnterEvent* arg__1)
512 void PythonQtShell_MemSizeWdgt::dragEnterEvent(QDragEnterEvent* arg__1)
507 {
513 {
508 if (_wrapper) {
514 if (_wrapper) {
509 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
515 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
510 PyErr_Clear();
516 PyErr_Clear();
511 if (obj && !PythonQtSlotFunction_Check(obj)) {
517 if (obj && !PythonQtSlotFunction_Check(obj)) {
512 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
518 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
513 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
519 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
514 void* args[2] = {NULL, (void*)&arg__1};
520 void* args[2] = {NULL, (void*)&arg__1};
515 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
521 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
516 if (result) { Py_DECREF(result); }
522 if (result) { Py_DECREF(result); }
517 Py_DECREF(obj);
523 Py_DECREF(obj);
518 return;
524 return;
519 }
525 }
520 }
526 }
521 MemSizeWdgt::dragEnterEvent(arg__1);
527 MemSizeWdgt::dragEnterEvent(arg__1);
522 }
528 }
523 void PythonQtShell_MemSizeWdgt::dragLeaveEvent(QDragLeaveEvent* arg__1)
529 void PythonQtShell_MemSizeWdgt::dragLeaveEvent(QDragLeaveEvent* arg__1)
524 {
530 {
525 if (_wrapper) {
531 if (_wrapper) {
526 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
532 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
527 PyErr_Clear();
533 PyErr_Clear();
528 if (obj && !PythonQtSlotFunction_Check(obj)) {
534 if (obj && !PythonQtSlotFunction_Check(obj)) {
529 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
535 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
530 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
536 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
531 void* args[2] = {NULL, (void*)&arg__1};
537 void* args[2] = {NULL, (void*)&arg__1};
532 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
538 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
533 if (result) { Py_DECREF(result); }
539 if (result) { Py_DECREF(result); }
534 Py_DECREF(obj);
540 Py_DECREF(obj);
535 return;
541 return;
536 }
542 }
537 }
543 }
538 MemSizeWdgt::dragLeaveEvent(arg__1);
544 MemSizeWdgt::dragLeaveEvent(arg__1);
539 }
545 }
540 void PythonQtShell_MemSizeWdgt::dragMoveEvent(QDragMoveEvent* arg__1)
546 void PythonQtShell_MemSizeWdgt::dragMoveEvent(QDragMoveEvent* arg__1)
541 {
547 {
542 if (_wrapper) {
548 if (_wrapper) {
543 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
549 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
544 PyErr_Clear();
550 PyErr_Clear();
545 if (obj && !PythonQtSlotFunction_Check(obj)) {
551 if (obj && !PythonQtSlotFunction_Check(obj)) {
546 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
552 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
547 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
553 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
548 void* args[2] = {NULL, (void*)&arg__1};
554 void* args[2] = {NULL, (void*)&arg__1};
549 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
555 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
550 if (result) { Py_DECREF(result); }
556 if (result) { Py_DECREF(result); }
551 Py_DECREF(obj);
557 Py_DECREF(obj);
552 return;
558 return;
553 }
559 }
554 }
560 }
555 MemSizeWdgt::dragMoveEvent(arg__1);
561 MemSizeWdgt::dragMoveEvent(arg__1);
556 }
562 }
557 void PythonQtShell_MemSizeWdgt::dropEvent(QDropEvent* arg__1)
563 void PythonQtShell_MemSizeWdgt::dropEvent(QDropEvent* arg__1)
558 {
564 {
559 if (_wrapper) {
565 if (_wrapper) {
560 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
566 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
561 PyErr_Clear();
567 PyErr_Clear();
562 if (obj && !PythonQtSlotFunction_Check(obj)) {
568 if (obj && !PythonQtSlotFunction_Check(obj)) {
563 static const char* argumentList[] ={"" , "QDropEvent*"};
569 static const char* argumentList[] ={"" , "QDropEvent*"};
564 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
570 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
565 void* args[2] = {NULL, (void*)&arg__1};
571 void* args[2] = {NULL, (void*)&arg__1};
566 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
572 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
567 if (result) { Py_DECREF(result); }
573 if (result) { Py_DECREF(result); }
568 Py_DECREF(obj);
574 Py_DECREF(obj);
569 return;
575 return;
570 }
576 }
571 }
577 }
572 MemSizeWdgt::dropEvent(arg__1);
578 MemSizeWdgt::dropEvent(arg__1);
573 }
579 }
574 void PythonQtShell_MemSizeWdgt::enterEvent(QEvent* arg__1)
580 void PythonQtShell_MemSizeWdgt::enterEvent(QEvent* arg__1)
575 {
581 {
576 if (_wrapper) {
582 if (_wrapper) {
577 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
583 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
578 PyErr_Clear();
584 PyErr_Clear();
579 if (obj && !PythonQtSlotFunction_Check(obj)) {
585 if (obj && !PythonQtSlotFunction_Check(obj)) {
580 static const char* argumentList[] ={"" , "QEvent*"};
586 static const char* argumentList[] ={"" , "QEvent*"};
581 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
587 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
582 void* args[2] = {NULL, (void*)&arg__1};
588 void* args[2] = {NULL, (void*)&arg__1};
583 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
589 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
584 if (result) { Py_DECREF(result); }
590 if (result) { Py_DECREF(result); }
585 Py_DECREF(obj);
591 Py_DECREF(obj);
586 return;
592 return;
587 }
593 }
588 }
594 }
589 MemSizeWdgt::enterEvent(arg__1);
595 MemSizeWdgt::enterEvent(arg__1);
590 }
596 }
591 bool PythonQtShell_MemSizeWdgt::event(QEvent* arg__1)
597 bool PythonQtShell_MemSizeWdgt::event(QEvent* arg__1)
592 {
598 {
593 if (_wrapper) {
599 if (_wrapper) {
594 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
600 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
595 PyErr_Clear();
601 PyErr_Clear();
596 if (obj && !PythonQtSlotFunction_Check(obj)) {
602 if (obj && !PythonQtSlotFunction_Check(obj)) {
597 static const char* argumentList[] ={"bool" , "QEvent*"};
603 static const char* argumentList[] ={"bool" , "QEvent*"};
598 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
604 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
599 bool returnValue;
605 bool returnValue;
600 void* args[2] = {NULL, (void*)&arg__1};
606 void* args[2] = {NULL, (void*)&arg__1};
601 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
607 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
602 if (result) {
608 if (result) {
603 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
609 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
604 if (args[0]!=&returnValue) {
610 if (args[0]!=&returnValue) {
605 if (args[0]==NULL) {
611 if (args[0]==NULL) {
606 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
612 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
607 } else {
613 } else {
608 returnValue = *((bool*)args[0]);
614 returnValue = *((bool*)args[0]);
609 }
615 }
610 }
616 }
611 }
617 }
612 if (result) { Py_DECREF(result); }
618 if (result) { Py_DECREF(result); }
613 Py_DECREF(obj);
619 Py_DECREF(obj);
614 return returnValue;
620 return returnValue;
615 }
621 }
616 }
622 }
617 return MemSizeWdgt::event(arg__1);
623 return MemSizeWdgt::event(arg__1);
618 }
624 }
619 bool PythonQtShell_MemSizeWdgt::eventFilter(QObject* arg__1, QEvent* arg__2)
625 bool PythonQtShell_MemSizeWdgt::eventFilter(QObject* arg__1, QEvent* arg__2)
620 {
626 {
621 if (_wrapper) {
627 if (_wrapper) {
622 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
628 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
623 PyErr_Clear();
629 PyErr_Clear();
624 if (obj && !PythonQtSlotFunction_Check(obj)) {
630 if (obj && !PythonQtSlotFunction_Check(obj)) {
625 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
631 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
626 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
632 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
627 bool returnValue;
633 bool returnValue;
628 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
634 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
629 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
635 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
630 if (result) {
636 if (result) {
631 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
637 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
632 if (args[0]!=&returnValue) {
638 if (args[0]!=&returnValue) {
633 if (args[0]==NULL) {
639 if (args[0]==NULL) {
634 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
640 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
635 } else {
641 } else {
636 returnValue = *((bool*)args[0]);
642 returnValue = *((bool*)args[0]);
637 }
643 }
638 }
644 }
639 }
645 }
640 if (result) { Py_DECREF(result); }
646 if (result) { Py_DECREF(result); }
641 Py_DECREF(obj);
647 Py_DECREF(obj);
642 return returnValue;
648 return returnValue;
643 }
649 }
644 }
650 }
645 return MemSizeWdgt::eventFilter(arg__1, arg__2);
651 return MemSizeWdgt::eventFilter(arg__1, arg__2);
646 }
652 }
647 void PythonQtShell_MemSizeWdgt::focusInEvent(QFocusEvent* arg__1)
653 void PythonQtShell_MemSizeWdgt::focusInEvent(QFocusEvent* arg__1)
648 {
654 {
649 if (_wrapper) {
655 if (_wrapper) {
650 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
656 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
651 PyErr_Clear();
657 PyErr_Clear();
652 if (obj && !PythonQtSlotFunction_Check(obj)) {
658 if (obj && !PythonQtSlotFunction_Check(obj)) {
653 static const char* argumentList[] ={"" , "QFocusEvent*"};
659 static const char* argumentList[] ={"" , "QFocusEvent*"};
654 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
660 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
655 void* args[2] = {NULL, (void*)&arg__1};
661 void* args[2] = {NULL, (void*)&arg__1};
656 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
662 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
657 if (result) { Py_DECREF(result); }
663 if (result) { Py_DECREF(result); }
658 Py_DECREF(obj);
664 Py_DECREF(obj);
659 return;
665 return;
660 }
666 }
661 }
667 }
662 MemSizeWdgt::focusInEvent(arg__1);
668 MemSizeWdgt::focusInEvent(arg__1);
663 }
669 }
664 bool PythonQtShell_MemSizeWdgt::focusNextPrevChild(bool next)
670 bool PythonQtShell_MemSizeWdgt::focusNextPrevChild(bool next)
665 {
671 {
666 if (_wrapper) {
672 if (_wrapper) {
667 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
673 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
668 PyErr_Clear();
674 PyErr_Clear();
669 if (obj && !PythonQtSlotFunction_Check(obj)) {
675 if (obj && !PythonQtSlotFunction_Check(obj)) {
670 static const char* argumentList[] ={"bool" , "bool"};
676 static const char* argumentList[] ={"bool" , "bool"};
671 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
677 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
672 bool returnValue;
678 bool returnValue;
673 void* args[2] = {NULL, (void*)&next};
679 void* args[2] = {NULL, (void*)&next};
674 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
680 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
675 if (result) {
681 if (result) {
676 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
682 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
677 if (args[0]!=&returnValue) {
683 if (args[0]!=&returnValue) {
678 if (args[0]==NULL) {
684 if (args[0]==NULL) {
679 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
685 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
680 } else {
686 } else {
681 returnValue = *((bool*)args[0]);
687 returnValue = *((bool*)args[0]);
682 }
688 }
683 }
689 }
684 }
690 }
685 if (result) { Py_DECREF(result); }
691 if (result) { Py_DECREF(result); }
686 Py_DECREF(obj);
692 Py_DECREF(obj);
687 return returnValue;
693 return returnValue;
688 }
694 }
689 }
695 }
690 return MemSizeWdgt::focusNextPrevChild(next);
696 return MemSizeWdgt::focusNextPrevChild(next);
691 }
697 }
692 void PythonQtShell_MemSizeWdgt::focusOutEvent(QFocusEvent* arg__1)
698 void PythonQtShell_MemSizeWdgt::focusOutEvent(QFocusEvent* arg__1)
693 {
699 {
694 if (_wrapper) {
700 if (_wrapper) {
695 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
701 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
696 PyErr_Clear();
702 PyErr_Clear();
697 if (obj && !PythonQtSlotFunction_Check(obj)) {
703 if (obj && !PythonQtSlotFunction_Check(obj)) {
698 static const char* argumentList[] ={"" , "QFocusEvent*"};
704 static const char* argumentList[] ={"" , "QFocusEvent*"};
699 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
705 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
700 void* args[2] = {NULL, (void*)&arg__1};
706 void* args[2] = {NULL, (void*)&arg__1};
701 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
707 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
702 if (result) { Py_DECREF(result); }
708 if (result) { Py_DECREF(result); }
703 Py_DECREF(obj);
709 Py_DECREF(obj);
704 return;
710 return;
705 }
711 }
706 }
712 }
707 MemSizeWdgt::focusOutEvent(arg__1);
713 MemSizeWdgt::focusOutEvent(arg__1);
708 }
714 }
709 bool PythonQtShell_MemSizeWdgt::hasHeightForWidth() const
715 bool PythonQtShell_MemSizeWdgt::hasHeightForWidth() const
710 {
716 {
711 if (_wrapper) {
717 if (_wrapper) {
712 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
718 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
713 PyErr_Clear();
719 PyErr_Clear();
714 if (obj && !PythonQtSlotFunction_Check(obj)) {
720 if (obj && !PythonQtSlotFunction_Check(obj)) {
715 static const char* argumentList[] ={"bool"};
721 static const char* argumentList[] ={"bool"};
716 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
722 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
717 bool returnValue;
723 bool returnValue;
718 void* args[1] = {NULL};
724 void* args[1] = {NULL};
719 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
725 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
720 if (result) {
726 if (result) {
721 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
727 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
722 if (args[0]!=&returnValue) {
728 if (args[0]!=&returnValue) {
723 if (args[0]==NULL) {
729 if (args[0]==NULL) {
724 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
730 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
725 } else {
731 } else {
726 returnValue = *((bool*)args[0]);
732 returnValue = *((bool*)args[0]);
727 }
733 }
728 }
734 }
729 }
735 }
730 if (result) { Py_DECREF(result); }
736 if (result) { Py_DECREF(result); }
731 Py_DECREF(obj);
737 Py_DECREF(obj);
732 return returnValue;
738 return returnValue;
733 }
739 }
734 }
740 }
735 return MemSizeWdgt::hasHeightForWidth();
741 return MemSizeWdgt::hasHeightForWidth();
736 }
742 }
737 int PythonQtShell_MemSizeWdgt::heightForWidth(int arg__1) const
743 int PythonQtShell_MemSizeWdgt::heightForWidth(int arg__1) const
738 {
744 {
739 if (_wrapper) {
745 if (_wrapper) {
740 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
746 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
741 PyErr_Clear();
747 PyErr_Clear();
742 if (obj && !PythonQtSlotFunction_Check(obj)) {
748 if (obj && !PythonQtSlotFunction_Check(obj)) {
743 static const char* argumentList[] ={"int" , "int"};
749 static const char* argumentList[] ={"int" , "int"};
744 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
750 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
745 int returnValue;
751 int returnValue;
746 void* args[2] = {NULL, (void*)&arg__1};
752 void* args[2] = {NULL, (void*)&arg__1};
747 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
753 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
748 if (result) {
754 if (result) {
749 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
755 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
750 if (args[0]!=&returnValue) {
756 if (args[0]!=&returnValue) {
751 if (args[0]==NULL) {
757 if (args[0]==NULL) {
752 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
758 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
753 } else {
759 } else {
754 returnValue = *((int*)args[0]);
760 returnValue = *((int*)args[0]);
755 }
761 }
756 }
762 }
757 }
763 }
758 if (result) { Py_DECREF(result); }
764 if (result) { Py_DECREF(result); }
759 Py_DECREF(obj);
765 Py_DECREF(obj);
760 return returnValue;
766 return returnValue;
761 }
767 }
762 }
768 }
763 return MemSizeWdgt::heightForWidth(arg__1);
769 return MemSizeWdgt::heightForWidth(arg__1);
764 }
770 }
765 void PythonQtShell_MemSizeWdgt::hideEvent(QHideEvent* arg__1)
771 void PythonQtShell_MemSizeWdgt::hideEvent(QHideEvent* arg__1)
766 {
772 {
767 if (_wrapper) {
773 if (_wrapper) {
768 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
774 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
769 PyErr_Clear();
775 PyErr_Clear();
770 if (obj && !PythonQtSlotFunction_Check(obj)) {
776 if (obj && !PythonQtSlotFunction_Check(obj)) {
771 static const char* argumentList[] ={"" , "QHideEvent*"};
777 static const char* argumentList[] ={"" , "QHideEvent*"};
772 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
778 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
773 void* args[2] = {NULL, (void*)&arg__1};
779 void* args[2] = {NULL, (void*)&arg__1};
774 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
780 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
775 if (result) { Py_DECREF(result); }
781 if (result) { Py_DECREF(result); }
776 Py_DECREF(obj);
782 Py_DECREF(obj);
777 return;
783 return;
778 }
784 }
779 }
785 }
780 MemSizeWdgt::hideEvent(arg__1);
786 MemSizeWdgt::hideEvent(arg__1);
781 }
787 }
782 void PythonQtShell_MemSizeWdgt::initPainter(QPainter* painter) const
788 void PythonQtShell_MemSizeWdgt::initPainter(QPainter* painter) const
783 {
789 {
784 if (_wrapper) {
790 if (_wrapper) {
785 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
791 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
786 PyErr_Clear();
792 PyErr_Clear();
787 if (obj && !PythonQtSlotFunction_Check(obj)) {
793 if (obj && !PythonQtSlotFunction_Check(obj)) {
788 static const char* argumentList[] ={"" , "QPainter*"};
794 static const char* argumentList[] ={"" , "QPainter*"};
789 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
795 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
790 void* args[2] = {NULL, (void*)&painter};
796 void* args[2] = {NULL, (void*)&painter};
791 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
797 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
792 if (result) { Py_DECREF(result); }
798 if (result) { Py_DECREF(result); }
793 Py_DECREF(obj);
799 Py_DECREF(obj);
794 return;
800 return;
795 }
801 }
796 }
802 }
797 MemSizeWdgt::initPainter(painter);
803 MemSizeWdgt::initPainter(painter);
798 }
804 }
799 void PythonQtShell_MemSizeWdgt::inputMethodEvent(QInputMethodEvent* arg__1)
805 void PythonQtShell_MemSizeWdgt::inputMethodEvent(QInputMethodEvent* arg__1)
800 {
806 {
801 if (_wrapper) {
807 if (_wrapper) {
802 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
808 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
803 PyErr_Clear();
809 PyErr_Clear();
804 if (obj && !PythonQtSlotFunction_Check(obj)) {
810 if (obj && !PythonQtSlotFunction_Check(obj)) {
805 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
811 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
806 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
812 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
807 void* args[2] = {NULL, (void*)&arg__1};
813 void* args[2] = {NULL, (void*)&arg__1};
808 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
814 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
809 if (result) { Py_DECREF(result); }
815 if (result) { Py_DECREF(result); }
810 Py_DECREF(obj);
816 Py_DECREF(obj);
811 return;
817 return;
812 }
818 }
813 }
819 }
814 MemSizeWdgt::inputMethodEvent(arg__1);
820 MemSizeWdgt::inputMethodEvent(arg__1);
815 }
821 }
816 QVariant PythonQtShell_MemSizeWdgt::inputMethodQuery(Qt::InputMethodQuery arg__1) const
822 QVariant PythonQtShell_MemSizeWdgt::inputMethodQuery(Qt::InputMethodQuery arg__1) const
817 {
823 {
818 if (_wrapper) {
824 if (_wrapper) {
819 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
825 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
820 PyErr_Clear();
826 PyErr_Clear();
821 if (obj && !PythonQtSlotFunction_Check(obj)) {
827 if (obj && !PythonQtSlotFunction_Check(obj)) {
822 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
828 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
823 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
829 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
824 QVariant returnValue;
830 QVariant returnValue;
825 void* args[2] = {NULL, (void*)&arg__1};
831 void* args[2] = {NULL, (void*)&arg__1};
826 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
832 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
827 if (result) {
833 if (result) {
828 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
834 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
829 if (args[0]!=&returnValue) {
835 if (args[0]!=&returnValue) {
830 if (args[0]==NULL) {
836 if (args[0]==NULL) {
831 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
837 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
832 } else {
838 } else {
833 returnValue = *((QVariant*)args[0]);
839 returnValue = *((QVariant*)args[0]);
834 }
840 }
835 }
841 }
836 }
842 }
837 if (result) { Py_DECREF(result); }
843 if (result) { Py_DECREF(result); }
838 Py_DECREF(obj);
844 Py_DECREF(obj);
839 return returnValue;
845 return returnValue;
840 }
846 }
841 }
847 }
842 return MemSizeWdgt::inputMethodQuery(arg__1);
848 return MemSizeWdgt::inputMethodQuery(arg__1);
843 }
849 }
844 void PythonQtShell_MemSizeWdgt::keyPressEvent(QKeyEvent* arg__1)
850 void PythonQtShell_MemSizeWdgt::keyPressEvent(QKeyEvent* arg__1)
845 {
851 {
846 if (_wrapper) {
852 if (_wrapper) {
847 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
853 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
848 PyErr_Clear();
854 PyErr_Clear();
849 if (obj && !PythonQtSlotFunction_Check(obj)) {
855 if (obj && !PythonQtSlotFunction_Check(obj)) {
850 static const char* argumentList[] ={"" , "QKeyEvent*"};
856 static const char* argumentList[] ={"" , "QKeyEvent*"};
851 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
857 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
852 void* args[2] = {NULL, (void*)&arg__1};
858 void* args[2] = {NULL, (void*)&arg__1};
853 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
859 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
854 if (result) { Py_DECREF(result); }
860 if (result) { Py_DECREF(result); }
855 Py_DECREF(obj);
861 Py_DECREF(obj);
856 return;
862 return;
857 }
863 }
858 }
864 }
859 MemSizeWdgt::keyPressEvent(arg__1);
865 MemSizeWdgt::keyPressEvent(arg__1);
860 }
866 }
861 void PythonQtShell_MemSizeWdgt::keyReleaseEvent(QKeyEvent* arg__1)
867 void PythonQtShell_MemSizeWdgt::keyReleaseEvent(QKeyEvent* arg__1)
862 {
868 {
863 if (_wrapper) {
869 if (_wrapper) {
864 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
870 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
865 PyErr_Clear();
871 PyErr_Clear();
866 if (obj && !PythonQtSlotFunction_Check(obj)) {
872 if (obj && !PythonQtSlotFunction_Check(obj)) {
867 static const char* argumentList[] ={"" , "QKeyEvent*"};
873 static const char* argumentList[] ={"" , "QKeyEvent*"};
868 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
874 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
869 void* args[2] = {NULL, (void*)&arg__1};
875 void* args[2] = {NULL, (void*)&arg__1};
870 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
876 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
871 if (result) { Py_DECREF(result); }
877 if (result) { Py_DECREF(result); }
872 Py_DECREF(obj);
878 Py_DECREF(obj);
873 return;
879 return;
874 }
880 }
875 }
881 }
876 MemSizeWdgt::keyReleaseEvent(arg__1);
882 MemSizeWdgt::keyReleaseEvent(arg__1);
877 }
883 }
878 void PythonQtShell_MemSizeWdgt::leaveEvent(QEvent* arg__1)
884 void PythonQtShell_MemSizeWdgt::leaveEvent(QEvent* arg__1)
879 {
885 {
880 if (_wrapper) {
886 if (_wrapper) {
881 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
887 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
882 PyErr_Clear();
888 PyErr_Clear();
883 if (obj && !PythonQtSlotFunction_Check(obj)) {
889 if (obj && !PythonQtSlotFunction_Check(obj)) {
884 static const char* argumentList[] ={"" , "QEvent*"};
890 static const char* argumentList[] ={"" , "QEvent*"};
885 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
891 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
886 void* args[2] = {NULL, (void*)&arg__1};
892 void* args[2] = {NULL, (void*)&arg__1};
887 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
893 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
888 if (result) { Py_DECREF(result); }
894 if (result) { Py_DECREF(result); }
889 Py_DECREF(obj);
895 Py_DECREF(obj);
890 return;
896 return;
891 }
897 }
892 }
898 }
893 MemSizeWdgt::leaveEvent(arg__1);
899 MemSizeWdgt::leaveEvent(arg__1);
894 }
900 }
895 int PythonQtShell_MemSizeWdgt::metric(QPaintDevice::PaintDeviceMetric arg__1) const
901 int PythonQtShell_MemSizeWdgt::metric(QPaintDevice::PaintDeviceMetric arg__1) const
896 {
902 {
897 if (_wrapper) {
903 if (_wrapper) {
898 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
904 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
899 PyErr_Clear();
905 PyErr_Clear();
900 if (obj && !PythonQtSlotFunction_Check(obj)) {
906 if (obj && !PythonQtSlotFunction_Check(obj)) {
901 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
907 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
902 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
908 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
903 int returnValue;
909 int returnValue;
904 void* args[2] = {NULL, (void*)&arg__1};
910 void* args[2] = {NULL, (void*)&arg__1};
905 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
911 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
906 if (result) {
912 if (result) {
907 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
913 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
908 if (args[0]!=&returnValue) {
914 if (args[0]!=&returnValue) {
909 if (args[0]==NULL) {
915 if (args[0]==NULL) {
910 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
916 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
911 } else {
917 } else {
912 returnValue = *((int*)args[0]);
918 returnValue = *((int*)args[0]);
913 }
919 }
914 }
920 }
915 }
921 }
916 if (result) { Py_DECREF(result); }
922 if (result) { Py_DECREF(result); }
917 Py_DECREF(obj);
923 Py_DECREF(obj);
918 return returnValue;
924 return returnValue;
919 }
925 }
920 }
926 }
921 return MemSizeWdgt::metric(arg__1);
927 return MemSizeWdgt::metric(arg__1);
922 }
928 }
923 QSize PythonQtShell_MemSizeWdgt::minimumSizeHint() const
929 QSize PythonQtShell_MemSizeWdgt::minimumSizeHint() const
924 {
930 {
925 if (_wrapper) {
931 if (_wrapper) {
926 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
932 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
927 PyErr_Clear();
933 PyErr_Clear();
928 if (obj && !PythonQtSlotFunction_Check(obj)) {
934 if (obj && !PythonQtSlotFunction_Check(obj)) {
929 static const char* argumentList[] ={"QSize"};
935 static const char* argumentList[] ={"QSize"};
930 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
936 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
931 QSize returnValue;
937 QSize returnValue;
932 void* args[1] = {NULL};
938 void* args[1] = {NULL};
933 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
939 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
934 if (result) {
940 if (result) {
935 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
941 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
936 if (args[0]!=&returnValue) {
942 if (args[0]!=&returnValue) {
937 if (args[0]==NULL) {
943 if (args[0]==NULL) {
938 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
944 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
939 } else {
945 } else {
940 returnValue = *((QSize*)args[0]);
946 returnValue = *((QSize*)args[0]);
941 }
947 }
942 }
948 }
943 }
949 }
944 if (result) { Py_DECREF(result); }
950 if (result) { Py_DECREF(result); }
945 Py_DECREF(obj);
951 Py_DECREF(obj);
946 return returnValue;
952 return returnValue;
947 }
953 }
948 }
954 }
949 return MemSizeWdgt::minimumSizeHint();
955 return MemSizeWdgt::minimumSizeHint();
950 }
956 }
951 void PythonQtShell_MemSizeWdgt::mouseDoubleClickEvent(QMouseEvent* arg__1)
957 void PythonQtShell_MemSizeWdgt::mouseDoubleClickEvent(QMouseEvent* arg__1)
952 {
958 {
953 if (_wrapper) {
959 if (_wrapper) {
954 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
960 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
955 PyErr_Clear();
961 PyErr_Clear();
956 if (obj && !PythonQtSlotFunction_Check(obj)) {
962 if (obj && !PythonQtSlotFunction_Check(obj)) {
957 static const char* argumentList[] ={"" , "QMouseEvent*"};
963 static const char* argumentList[] ={"" , "QMouseEvent*"};
958 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
964 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
959 void* args[2] = {NULL, (void*)&arg__1};
965 void* args[2] = {NULL, (void*)&arg__1};
960 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
966 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
961 if (result) { Py_DECREF(result); }
967 if (result) { Py_DECREF(result); }
962 Py_DECREF(obj);
968 Py_DECREF(obj);
963 return;
969 return;
964 }
970 }
965 }
971 }
966 MemSizeWdgt::mouseDoubleClickEvent(arg__1);
972 MemSizeWdgt::mouseDoubleClickEvent(arg__1);
967 }
973 }
968 void PythonQtShell_MemSizeWdgt::mouseMoveEvent(QMouseEvent* arg__1)
974 void PythonQtShell_MemSizeWdgt::mouseMoveEvent(QMouseEvent* arg__1)
969 {
975 {
970 if (_wrapper) {
976 if (_wrapper) {
971 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
977 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
972 PyErr_Clear();
978 PyErr_Clear();
973 if (obj && !PythonQtSlotFunction_Check(obj)) {
979 if (obj && !PythonQtSlotFunction_Check(obj)) {
974 static const char* argumentList[] ={"" , "QMouseEvent*"};
980 static const char* argumentList[] ={"" , "QMouseEvent*"};
975 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
981 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
976 void* args[2] = {NULL, (void*)&arg__1};
982 void* args[2] = {NULL, (void*)&arg__1};
977 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
983 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
978 if (result) { Py_DECREF(result); }
984 if (result) { Py_DECREF(result); }
979 Py_DECREF(obj);
985 Py_DECREF(obj);
980 return;
986 return;
981 }
987 }
982 }
988 }
983 MemSizeWdgt::mouseMoveEvent(arg__1);
989 MemSizeWdgt::mouseMoveEvent(arg__1);
984 }
990 }
985 void PythonQtShell_MemSizeWdgt::mousePressEvent(QMouseEvent* arg__1)
991 void PythonQtShell_MemSizeWdgt::mousePressEvent(QMouseEvent* arg__1)
986 {
992 {
987 if (_wrapper) {
993 if (_wrapper) {
988 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
994 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
989 PyErr_Clear();
995 PyErr_Clear();
990 if (obj && !PythonQtSlotFunction_Check(obj)) {
996 if (obj && !PythonQtSlotFunction_Check(obj)) {
991 static const char* argumentList[] ={"" , "QMouseEvent*"};
997 static const char* argumentList[] ={"" , "QMouseEvent*"};
992 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
998 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
993 void* args[2] = {NULL, (void*)&arg__1};
999 void* args[2] = {NULL, (void*)&arg__1};
994 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1000 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
995 if (result) { Py_DECREF(result); }
1001 if (result) { Py_DECREF(result); }
996 Py_DECREF(obj);
1002 Py_DECREF(obj);
997 return;
1003 return;
998 }
1004 }
999 }
1005 }
1000 MemSizeWdgt::mousePressEvent(arg__1);
1006 MemSizeWdgt::mousePressEvent(arg__1);
1001 }
1007 }
1002 void PythonQtShell_MemSizeWdgt::mouseReleaseEvent(QMouseEvent* arg__1)
1008 void PythonQtShell_MemSizeWdgt::mouseReleaseEvent(QMouseEvent* arg__1)
1003 {
1009 {
1004 if (_wrapper) {
1010 if (_wrapper) {
1005 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
1011 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
1006 PyErr_Clear();
1012 PyErr_Clear();
1007 if (obj && !PythonQtSlotFunction_Check(obj)) {
1013 if (obj && !PythonQtSlotFunction_Check(obj)) {
1008 static const char* argumentList[] ={"" , "QMouseEvent*"};
1014 static const char* argumentList[] ={"" , "QMouseEvent*"};
1009 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1015 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1010 void* args[2] = {NULL, (void*)&arg__1};
1016 void* args[2] = {NULL, (void*)&arg__1};
1011 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1017 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1012 if (result) { Py_DECREF(result); }
1018 if (result) { Py_DECREF(result); }
1013 Py_DECREF(obj);
1019 Py_DECREF(obj);
1014 return;
1020 return;
1015 }
1021 }
1016 }
1022 }
1017 MemSizeWdgt::mouseReleaseEvent(arg__1);
1023 MemSizeWdgt::mouseReleaseEvent(arg__1);
1018 }
1024 }
1019 void PythonQtShell_MemSizeWdgt::moveEvent(QMoveEvent* arg__1)
1025 void PythonQtShell_MemSizeWdgt::moveEvent(QMoveEvent* arg__1)
1020 {
1026 {
1021 if (_wrapper) {
1027 if (_wrapper) {
1022 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
1028 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
1023 PyErr_Clear();
1029 PyErr_Clear();
1024 if (obj && !PythonQtSlotFunction_Check(obj)) {
1030 if (obj && !PythonQtSlotFunction_Check(obj)) {
1025 static const char* argumentList[] ={"" , "QMoveEvent*"};
1031 static const char* argumentList[] ={"" , "QMoveEvent*"};
1026 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1032 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1027 void* args[2] = {NULL, (void*)&arg__1};
1033 void* args[2] = {NULL, (void*)&arg__1};
1028 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1034 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1029 if (result) { Py_DECREF(result); }
1035 if (result) { Py_DECREF(result); }
1030 Py_DECREF(obj);
1036 Py_DECREF(obj);
1031 return;
1037 return;
1032 }
1038 }
1033 }
1039 }
1034 MemSizeWdgt::moveEvent(arg__1);
1040 MemSizeWdgt::moveEvent(arg__1);
1035 }
1041 }
1036 bool PythonQtShell_MemSizeWdgt::nativeEvent(const QByteArray& eventType, void* message, long* result)
1042 bool PythonQtShell_MemSizeWdgt::nativeEvent(const QByteArray& eventType, void* message, long* result)
1037 {
1043 {
1038 if (_wrapper) {
1044 if (_wrapper) {
1039 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
1045 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
1040 PyErr_Clear();
1046 PyErr_Clear();
1041 if (obj && !PythonQtSlotFunction_Check(obj)) {
1047 if (obj && !PythonQtSlotFunction_Check(obj)) {
1042 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
1048 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
1043 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
1049 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
1044 bool returnValue;
1050 bool returnValue;
1045 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
1051 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
1046 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1052 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1047 if (result) {
1053 if (result) {
1048 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1054 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1049 if (args[0]!=&returnValue) {
1055 if (args[0]!=&returnValue) {
1050 if (args[0]==NULL) {
1056 if (args[0]==NULL) {
1051 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
1057 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
1052 } else {
1058 } else {
1053 returnValue = *((bool*)args[0]);
1059 returnValue = *((bool*)args[0]);
1054 }
1060 }
1055 }
1061 }
1056 }
1062 }
1057 if (result) { Py_DECREF(result); }
1063 if (result) { Py_DECREF(result); }
1058 Py_DECREF(obj);
1064 Py_DECREF(obj);
1059 return returnValue;
1065 return returnValue;
1060 }
1066 }
1061 }
1067 }
1062 return MemSizeWdgt::nativeEvent(eventType, message, result);
1068 return MemSizeWdgt::nativeEvent(eventType, message, result);
1063 }
1069 }
1064 QPaintEngine* PythonQtShell_MemSizeWdgt::paintEngine() const
1070 QPaintEngine* PythonQtShell_MemSizeWdgt::paintEngine() const
1065 {
1071 {
1066 if (_wrapper) {
1072 if (_wrapper) {
1067 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
1073 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
1068 PyErr_Clear();
1074 PyErr_Clear();
1069 if (obj && !PythonQtSlotFunction_Check(obj)) {
1075 if (obj && !PythonQtSlotFunction_Check(obj)) {
1070 static const char* argumentList[] ={"QPaintEngine*"};
1076 static const char* argumentList[] ={"QPaintEngine*"};
1071 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1077 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1072 QPaintEngine* returnValue;
1078 QPaintEngine* returnValue;
1073 void* args[1] = {NULL};
1079 void* args[1] = {NULL};
1074 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1080 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1075 if (result) {
1081 if (result) {
1076 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1082 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1077 if (args[0]!=&returnValue) {
1083 if (args[0]!=&returnValue) {
1078 if (args[0]==NULL) {
1084 if (args[0]==NULL) {
1079 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
1085 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
1080 } else {
1086 } else {
1081 returnValue = *((QPaintEngine**)args[0]);
1087 returnValue = *((QPaintEngine**)args[0]);
1082 }
1088 }
1083 }
1089 }
1084 }
1090 }
1085 if (result) { Py_DECREF(result); }
1091 if (result) { Py_DECREF(result); }
1086 Py_DECREF(obj);
1092 Py_DECREF(obj);
1087 return returnValue;
1093 return returnValue;
1088 }
1094 }
1089 }
1095 }
1090 return MemSizeWdgt::paintEngine();
1096 return MemSizeWdgt::paintEngine();
1091 }
1097 }
1092 void PythonQtShell_MemSizeWdgt::paintEvent(QPaintEvent* arg__1)
1098 void PythonQtShell_MemSizeWdgt::paintEvent(QPaintEvent* arg__1)
1093 {
1099 {
1094 if (_wrapper) {
1100 if (_wrapper) {
1095 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
1101 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
1096 PyErr_Clear();
1102 PyErr_Clear();
1097 if (obj && !PythonQtSlotFunction_Check(obj)) {
1103 if (obj && !PythonQtSlotFunction_Check(obj)) {
1098 static const char* argumentList[] ={"" , "QPaintEvent*"};
1104 static const char* argumentList[] ={"" , "QPaintEvent*"};
1099 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1105 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1100 void* args[2] = {NULL, (void*)&arg__1};
1106 void* args[2] = {NULL, (void*)&arg__1};
1101 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1107 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1102 if (result) { Py_DECREF(result); }
1108 if (result) { Py_DECREF(result); }
1103 Py_DECREF(obj);
1109 Py_DECREF(obj);
1104 return;
1110 return;
1105 }
1111 }
1106 }
1112 }
1107 MemSizeWdgt::paintEvent(arg__1);
1113 MemSizeWdgt::paintEvent(arg__1);
1108 }
1114 }
1109 QPaintDevice* PythonQtShell_MemSizeWdgt::redirected(QPoint* offset) const
1115 QPaintDevice* PythonQtShell_MemSizeWdgt::redirected(QPoint* offset) const
1110 {
1116 {
1111 if (_wrapper) {
1117 if (_wrapper) {
1112 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
1118 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
1113 PyErr_Clear();
1119 PyErr_Clear();
1114 if (obj && !PythonQtSlotFunction_Check(obj)) {
1120 if (obj && !PythonQtSlotFunction_Check(obj)) {
1115 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
1121 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
1116 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1122 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1117 QPaintDevice* returnValue;
1123 QPaintDevice* returnValue;
1118 void* args[2] = {NULL, (void*)&offset};
1124 void* args[2] = {NULL, (void*)&offset};
1119 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1125 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1120 if (result) {
1126 if (result) {
1121 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1127 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1122 if (args[0]!=&returnValue) {
1128 if (args[0]!=&returnValue) {
1123 if (args[0]==NULL) {
1129 if (args[0]==NULL) {
1124 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
1130 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
1125 } else {
1131 } else {
1126 returnValue = *((QPaintDevice**)args[0]);
1132 returnValue = *((QPaintDevice**)args[0]);
1127 }
1133 }
1128 }
1134 }
1129 }
1135 }
1130 if (result) { Py_DECREF(result); }
1136 if (result) { Py_DECREF(result); }
1131 Py_DECREF(obj);
1137 Py_DECREF(obj);
1132 return returnValue;
1138 return returnValue;
1133 }
1139 }
1134 }
1140 }
1135 return MemSizeWdgt::redirected(offset);
1141 return MemSizeWdgt::redirected(offset);
1136 }
1142 }
1137 void PythonQtShell_MemSizeWdgt::resizeEvent(QResizeEvent* arg__1)
1143 void PythonQtShell_MemSizeWdgt::resizeEvent(QResizeEvent* arg__1)
1138 {
1144 {
1139 if (_wrapper) {
1145 if (_wrapper) {
1140 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
1146 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
1141 PyErr_Clear();
1147 PyErr_Clear();
1142 if (obj && !PythonQtSlotFunction_Check(obj)) {
1148 if (obj && !PythonQtSlotFunction_Check(obj)) {
1143 static const char* argumentList[] ={"" , "QResizeEvent*"};
1149 static const char* argumentList[] ={"" , "QResizeEvent*"};
1144 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1150 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1145 void* args[2] = {NULL, (void*)&arg__1};
1151 void* args[2] = {NULL, (void*)&arg__1};
1146 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1152 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1147 if (result) { Py_DECREF(result); }
1153 if (result) { Py_DECREF(result); }
1148 Py_DECREF(obj);
1154 Py_DECREF(obj);
1149 return;
1155 return;
1150 }
1156 }
1151 }
1157 }
1152 MemSizeWdgt::resizeEvent(arg__1);
1158 MemSizeWdgt::resizeEvent(arg__1);
1153 }
1159 }
1154 QPainter* PythonQtShell_MemSizeWdgt::sharedPainter() const
1160 QPainter* PythonQtShell_MemSizeWdgt::sharedPainter() const
1155 {
1161 {
1156 if (_wrapper) {
1162 if (_wrapper) {
1157 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
1163 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
1158 PyErr_Clear();
1164 PyErr_Clear();
1159 if (obj && !PythonQtSlotFunction_Check(obj)) {
1165 if (obj && !PythonQtSlotFunction_Check(obj)) {
1160 static const char* argumentList[] ={"QPainter*"};
1166 static const char* argumentList[] ={"QPainter*"};
1161 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1167 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1162 QPainter* returnValue;
1168 QPainter* returnValue;
1163 void* args[1] = {NULL};
1169 void* args[1] = {NULL};
1164 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1170 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1165 if (result) {
1171 if (result) {
1166 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1172 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1167 if (args[0]!=&returnValue) {
1173 if (args[0]!=&returnValue) {
1168 if (args[0]==NULL) {
1174 if (args[0]==NULL) {
1169 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
1175 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
1170 } else {
1176 } else {
1171 returnValue = *((QPainter**)args[0]);
1177 returnValue = *((QPainter**)args[0]);
1172 }
1178 }
1173 }
1179 }
1174 }
1180 }
1175 if (result) { Py_DECREF(result); }
1181 if (result) { Py_DECREF(result); }
1176 Py_DECREF(obj);
1182 Py_DECREF(obj);
1177 return returnValue;
1183 return returnValue;
1178 }
1184 }
1179 }
1185 }
1180 return MemSizeWdgt::sharedPainter();
1186 return MemSizeWdgt::sharedPainter();
1181 }
1187 }
1182 void PythonQtShell_MemSizeWdgt::showEvent(QShowEvent* arg__1)
1188 void PythonQtShell_MemSizeWdgt::showEvent(QShowEvent* arg__1)
1183 {
1189 {
1184 if (_wrapper) {
1190 if (_wrapper) {
1185 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
1191 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
1186 PyErr_Clear();
1192 PyErr_Clear();
1187 if (obj && !PythonQtSlotFunction_Check(obj)) {
1193 if (obj && !PythonQtSlotFunction_Check(obj)) {
1188 static const char* argumentList[] ={"" , "QShowEvent*"};
1194 static const char* argumentList[] ={"" , "QShowEvent*"};
1189 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1195 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1190 void* args[2] = {NULL, (void*)&arg__1};
1196 void* args[2] = {NULL, (void*)&arg__1};
1191 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1197 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1192 if (result) { Py_DECREF(result); }
1198 if (result) { Py_DECREF(result); }
1193 Py_DECREF(obj);
1199 Py_DECREF(obj);
1194 return;
1200 return;
1195 }
1201 }
1196 }
1202 }
1197 MemSizeWdgt::showEvent(arg__1);
1203 MemSizeWdgt::showEvent(arg__1);
1198 }
1204 }
1199 QSize PythonQtShell_MemSizeWdgt::sizeHint() const
1205 QSize PythonQtShell_MemSizeWdgt::sizeHint() const
1200 {
1206 {
1201 if (_wrapper) {
1207 if (_wrapper) {
1202 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
1208 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
1203 PyErr_Clear();
1209 PyErr_Clear();
1204 if (obj && !PythonQtSlotFunction_Check(obj)) {
1210 if (obj && !PythonQtSlotFunction_Check(obj)) {
1205 static const char* argumentList[] ={"QSize"};
1211 static const char* argumentList[] ={"QSize"};
1206 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1212 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1207 QSize returnValue;
1213 QSize returnValue;
1208 void* args[1] = {NULL};
1214 void* args[1] = {NULL};
1209 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1215 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1210 if (result) {
1216 if (result) {
1211 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1217 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1212 if (args[0]!=&returnValue) {
1218 if (args[0]!=&returnValue) {
1213 if (args[0]==NULL) {
1219 if (args[0]==NULL) {
1214 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
1220 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
1215 } else {
1221 } else {
1216 returnValue = *((QSize*)args[0]);
1222 returnValue = *((QSize*)args[0]);
1217 }
1223 }
1218 }
1224 }
1219 }
1225 }
1220 if (result) { Py_DECREF(result); }
1226 if (result) { Py_DECREF(result); }
1221 Py_DECREF(obj);
1227 Py_DECREF(obj);
1222 return returnValue;
1228 return returnValue;
1223 }
1229 }
1224 }
1230 }
1225 return MemSizeWdgt::sizeHint();
1231 return MemSizeWdgt::sizeHint();
1226 }
1232 }
1227 void PythonQtShell_MemSizeWdgt::tabletEvent(QTabletEvent* arg__1)
1233 void PythonQtShell_MemSizeWdgt::tabletEvent(QTabletEvent* arg__1)
1228 {
1234 {
1229 if (_wrapper) {
1235 if (_wrapper) {
1230 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
1236 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
1231 PyErr_Clear();
1237 PyErr_Clear();
1232 if (obj && !PythonQtSlotFunction_Check(obj)) {
1238 if (obj && !PythonQtSlotFunction_Check(obj)) {
1233 static const char* argumentList[] ={"" , "QTabletEvent*"};
1239 static const char* argumentList[] ={"" , "QTabletEvent*"};
1234 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1240 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1235 void* args[2] = {NULL, (void*)&arg__1};
1241 void* args[2] = {NULL, (void*)&arg__1};
1236 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1242 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1237 if (result) { Py_DECREF(result); }
1243 if (result) { Py_DECREF(result); }
1238 Py_DECREF(obj);
1244 Py_DECREF(obj);
1239 return;
1245 return;
1240 }
1246 }
1241 }
1247 }
1242 MemSizeWdgt::tabletEvent(arg__1);
1248 MemSizeWdgt::tabletEvent(arg__1);
1243 }
1249 }
1244 void PythonQtShell_MemSizeWdgt::timerEvent(QTimerEvent* arg__1)
1250 void PythonQtShell_MemSizeWdgt::timerEvent(QTimerEvent* arg__1)
1245 {
1251 {
1246 if (_wrapper) {
1252 if (_wrapper) {
1247 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
1253 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
1248 PyErr_Clear();
1254 PyErr_Clear();
1249 if (obj && !PythonQtSlotFunction_Check(obj)) {
1255 if (obj && !PythonQtSlotFunction_Check(obj)) {
1250 static const char* argumentList[] ={"" , "QTimerEvent*"};
1256 static const char* argumentList[] ={"" , "QTimerEvent*"};
1251 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1257 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1252 void* args[2] = {NULL, (void*)&arg__1};
1258 void* args[2] = {NULL, (void*)&arg__1};
1253 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1259 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1254 if (result) { Py_DECREF(result); }
1260 if (result) { Py_DECREF(result); }
1255 Py_DECREF(obj);
1261 Py_DECREF(obj);
1256 return;
1262 return;
1257 }
1263 }
1258 }
1264 }
1259 MemSizeWdgt::timerEvent(arg__1);
1265 MemSizeWdgt::timerEvent(arg__1);
1260 }
1266 }
1261 void PythonQtShell_MemSizeWdgt::wheelEvent(QWheelEvent* arg__1)
1267 void PythonQtShell_MemSizeWdgt::wheelEvent(QWheelEvent* arg__1)
1262 {
1268 {
1263 if (_wrapper) {
1269 if (_wrapper) {
1264 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
1270 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
1265 PyErr_Clear();
1271 PyErr_Clear();
1266 if (obj && !PythonQtSlotFunction_Check(obj)) {
1272 if (obj && !PythonQtSlotFunction_Check(obj)) {
1267 static const char* argumentList[] ={"" , "QWheelEvent*"};
1273 static const char* argumentList[] ={"" , "QWheelEvent*"};
1268 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1274 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1269 void* args[2] = {NULL, (void*)&arg__1};
1275 void* args[2] = {NULL, (void*)&arg__1};
1270 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1276 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1271 if (result) { Py_DECREF(result); }
1277 if (result) { Py_DECREF(result); }
1272 Py_DECREF(obj);
1278 Py_DECREF(obj);
1273 return;
1279 return;
1274 }
1280 }
1275 }
1281 }
1276 MemSizeWdgt::wheelEvent(arg__1);
1282 MemSizeWdgt::wheelEvent(arg__1);
1277 }
1283 }
1278 MemSizeWdgt* PythonQtWrapper_MemSizeWdgt::new_MemSizeWdgt(QWidget* parent)
1284 MemSizeWdgt* PythonQtWrapper_MemSizeWdgt::new_MemSizeWdgt(QWidget* parent)
1279 {
1285 {
1280 return new PythonQtShell_MemSizeWdgt(parent); }
1286 return new PythonQtShell_MemSizeWdgt(parent); }
1281
1287
1282 MemSizeWdgt* PythonQtWrapper_MemSizeWdgt::new_MemSizeWdgt(int defaultSize, QWidget* parent)
1288 MemSizeWdgt* PythonQtWrapper_MemSizeWdgt::new_MemSizeWdgt(int defaultSize, QWidget* parent)
1283 {
1289 {
1284 return new PythonQtShell_MemSizeWdgt(defaultSize, parent); }
1290 return new PythonQtShell_MemSizeWdgt(defaultSize, parent); }
1285
1291
1286 int PythonQtWrapper_MemSizeWdgt::getsize(MemSizeWdgt* theWrappedObject)
1292 int PythonQtWrapper_MemSizeWdgt::getsize(MemSizeWdgt* theWrappedObject)
1287 {
1293 {
1288 return ( theWrappedObject->getsize());
1294 return ( theWrappedObject->getsize());
1289 }
1295 }
1290
1296
1291 void PythonQtWrapper_MemSizeWdgt::setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max)
1297 void PythonQtWrapper_MemSizeWdgt::setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max)
1292 {
1298 {
1293 ( theWrappedObject->setMaximum(max));
1299 ( theWrappedObject->setMaximum(max));
1294 }
1300 }
1295
1301
1296 void PythonQtWrapper_MemSizeWdgt::show(MemSizeWdgt* theWrappedObject)
1302 void PythonQtWrapper_MemSizeWdgt::show(MemSizeWdgt* theWrappedObject)
1297 {
1303 {
1298 ( theWrappedObject->show());
1304 ( theWrappedObject->show());
1299 }
1305 }
1300
1306
1301 void PythonQtWrapper_MemSizeWdgt::updateSizeValue(MemSizeWdgt* theWrappedObject)
1307 void PythonQtWrapper_MemSizeWdgt::updateSizeValue(MemSizeWdgt* theWrappedObject)
1302 {
1308 {
1303 ( theWrappedObject->updateSizeValue());
1309 ( theWrappedObject->updateSizeValue());
1304 }
1310 }
1305
1311
1306
1312
1307
1313
1308 PythonQtShell_QHexEdit::~PythonQtShell_QHexEdit() {
1314 PythonQtShell_QHexEdit::~PythonQtShell_QHexEdit() {
1309 PythonQtPrivate* priv = PythonQt::priv();
1315 PythonQtPrivate* priv = PythonQt::priv();
1310 if (priv) { priv->shellClassDeleted(this); }
1316 if (priv) { priv->shellClassDeleted(this); }
1311 }
1317 }
1312 void PythonQtShell_QHexEdit::actionEvent(QActionEvent* arg__1)
1318 void PythonQtShell_QHexEdit::actionEvent(QActionEvent* arg__1)
1313 {
1319 {
1314 if (_wrapper) {
1320 if (_wrapper) {
1315 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
1321 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
1316 PyErr_Clear();
1322 PyErr_Clear();
1317 if (obj && !PythonQtSlotFunction_Check(obj)) {
1323 if (obj && !PythonQtSlotFunction_Check(obj)) {
1318 static const char* argumentList[] ={"" , "QActionEvent*"};
1324 static const char* argumentList[] ={"" , "QActionEvent*"};
1319 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1325 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1320 void* args[2] = {NULL, (void*)&arg__1};
1326 void* args[2] = {NULL, (void*)&arg__1};
1321 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1327 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1322 if (result) { Py_DECREF(result); }
1328 if (result) { Py_DECREF(result); }
1323 Py_DECREF(obj);
1329 Py_DECREF(obj);
1324 return;
1330 return;
1325 }
1331 }
1326 }
1332 }
1327 QHexEdit::actionEvent(arg__1);
1333 QHexEdit::actionEvent(arg__1);
1328 }
1334 }
1329 void PythonQtShell_QHexEdit::changeEvent(QEvent* arg__1)
1335 void PythonQtShell_QHexEdit::changeEvent(QEvent* arg__1)
1330 {
1336 {
1331 if (_wrapper) {
1337 if (_wrapper) {
1332 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
1338 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
1333 PyErr_Clear();
1339 PyErr_Clear();
1334 if (obj && !PythonQtSlotFunction_Check(obj)) {
1340 if (obj && !PythonQtSlotFunction_Check(obj)) {
1335 static const char* argumentList[] ={"" , "QEvent*"};
1341 static const char* argumentList[] ={"" , "QEvent*"};
1336 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1342 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1337 void* args[2] = {NULL, (void*)&arg__1};
1343 void* args[2] = {NULL, (void*)&arg__1};
1338 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1344 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1339 if (result) { Py_DECREF(result); }
1345 if (result) { Py_DECREF(result); }
1340 Py_DECREF(obj);
1346 Py_DECREF(obj);
1341 return;
1347 return;
1342 }
1348 }
1343 }
1349 }
1344 QHexEdit::changeEvent(arg__1);
1350 QHexEdit::changeEvent(arg__1);
1345 }
1351 }
1346 void PythonQtShell_QHexEdit::childEvent(QChildEvent* arg__1)
1352 void PythonQtShell_QHexEdit::childEvent(QChildEvent* arg__1)
1347 {
1353 {
1348 if (_wrapper) {
1354 if (_wrapper) {
1349 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
1355 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
1350 PyErr_Clear();
1356 PyErr_Clear();
1351 if (obj && !PythonQtSlotFunction_Check(obj)) {
1357 if (obj && !PythonQtSlotFunction_Check(obj)) {
1352 static const char* argumentList[] ={"" , "QChildEvent*"};
1358 static const char* argumentList[] ={"" , "QChildEvent*"};
1353 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1359 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1354 void* args[2] = {NULL, (void*)&arg__1};
1360 void* args[2] = {NULL, (void*)&arg__1};
1355 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1361 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1356 if (result) { Py_DECREF(result); }
1362 if (result) { Py_DECREF(result); }
1357 Py_DECREF(obj);
1363 Py_DECREF(obj);
1358 return;
1364 return;
1359 }
1365 }
1360 }
1366 }
1361 QHexEdit::childEvent(arg__1);
1367 QHexEdit::childEvent(arg__1);
1362 }
1368 }
1363 void PythonQtShell_QHexEdit::closeEvent(QCloseEvent* arg__1)
1369 void PythonQtShell_QHexEdit::closeEvent(QCloseEvent* arg__1)
1364 {
1370 {
1365 if (_wrapper) {
1371 if (_wrapper) {
1366 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
1372 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
1367 PyErr_Clear();
1373 PyErr_Clear();
1368 if (obj && !PythonQtSlotFunction_Check(obj)) {
1374 if (obj && !PythonQtSlotFunction_Check(obj)) {
1369 static const char* argumentList[] ={"" , "QCloseEvent*"};
1375 static const char* argumentList[] ={"" , "QCloseEvent*"};
1370 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1376 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1371 void* args[2] = {NULL, (void*)&arg__1};
1377 void* args[2] = {NULL, (void*)&arg__1};
1372 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1378 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1373 if (result) { Py_DECREF(result); }
1379 if (result) { Py_DECREF(result); }
1374 Py_DECREF(obj);
1380 Py_DECREF(obj);
1375 return;
1381 return;
1376 }
1382 }
1377 }
1383 }
1378 QHexEdit::closeEvent(arg__1);
1384 QHexEdit::closeEvent(arg__1);
1379 }
1385 }
1380 void PythonQtShell_QHexEdit::contextMenuEvent(QContextMenuEvent* arg__1)
1386 void PythonQtShell_QHexEdit::contextMenuEvent(QContextMenuEvent* arg__1)
1381 {
1387 {
1382 if (_wrapper) {
1388 if (_wrapper) {
1383 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
1389 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
1384 PyErr_Clear();
1390 PyErr_Clear();
1385 if (obj && !PythonQtSlotFunction_Check(obj)) {
1391 if (obj && !PythonQtSlotFunction_Check(obj)) {
1386 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
1392 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
1387 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1393 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1388 void* args[2] = {NULL, (void*)&arg__1};
1394 void* args[2] = {NULL, (void*)&arg__1};
1389 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1395 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1390 if (result) { Py_DECREF(result); }
1396 if (result) { Py_DECREF(result); }
1391 Py_DECREF(obj);
1397 Py_DECREF(obj);
1392 return;
1398 return;
1393 }
1399 }
1394 }
1400 }
1395 QHexEdit::contextMenuEvent(arg__1);
1401 QHexEdit::contextMenuEvent(arg__1);
1396 }
1402 }
1397 void PythonQtShell_QHexEdit::customEvent(QEvent* arg__1)
1403 void PythonQtShell_QHexEdit::customEvent(QEvent* arg__1)
1398 {
1404 {
1399 if (_wrapper) {
1405 if (_wrapper) {
1400 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
1406 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
1401 PyErr_Clear();
1407 PyErr_Clear();
1402 if (obj && !PythonQtSlotFunction_Check(obj)) {
1408 if (obj && !PythonQtSlotFunction_Check(obj)) {
1403 static const char* argumentList[] ={"" , "QEvent*"};
1409 static const char* argumentList[] ={"" , "QEvent*"};
1404 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1410 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1405 void* args[2] = {NULL, (void*)&arg__1};
1411 void* args[2] = {NULL, (void*)&arg__1};
1406 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1412 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1407 if (result) { Py_DECREF(result); }
1413 if (result) { Py_DECREF(result); }
1408 Py_DECREF(obj);
1414 Py_DECREF(obj);
1409 return;
1415 return;
1410 }
1416 }
1411 }
1417 }
1412 QHexEdit::customEvent(arg__1);
1418 QHexEdit::customEvent(arg__1);
1413 }
1419 }
1414 int PythonQtShell_QHexEdit::devType() const
1420 int PythonQtShell_QHexEdit::devType() const
1415 {
1421 {
1416 if (_wrapper) {
1422 if (_wrapper) {
1417 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
1423 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
1418 PyErr_Clear();
1424 PyErr_Clear();
1419 if (obj && !PythonQtSlotFunction_Check(obj)) {
1425 if (obj && !PythonQtSlotFunction_Check(obj)) {
1420 static const char* argumentList[] ={"int"};
1426 static const char* argumentList[] ={"int"};
1421 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1427 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1422 int returnValue;
1428 int returnValue;
1423 void* args[1] = {NULL};
1429 void* args[1] = {NULL};
1424 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1430 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1425 if (result) {
1431 if (result) {
1426 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1432 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1427 if (args[0]!=&returnValue) {
1433 if (args[0]!=&returnValue) {
1428 if (args[0]==NULL) {
1434 if (args[0]==NULL) {
1429 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
1435 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
1430 } else {
1436 } else {
1431 returnValue = *((int*)args[0]);
1437 returnValue = *((int*)args[0]);
1432 }
1438 }
1433 }
1439 }
1434 }
1440 }
1435 if (result) { Py_DECREF(result); }
1441 if (result) { Py_DECREF(result); }
1436 Py_DECREF(obj);
1442 Py_DECREF(obj);
1437 return returnValue;
1443 return returnValue;
1438 }
1444 }
1439 }
1445 }
1440 return QHexEdit::devType();
1446 return QHexEdit::devType();
1441 }
1447 }
1442 void PythonQtShell_QHexEdit::dragEnterEvent(QDragEnterEvent* arg__1)
1448 void PythonQtShell_QHexEdit::dragEnterEvent(QDragEnterEvent* arg__1)
1443 {
1449 {
1444 if (_wrapper) {
1450 if (_wrapper) {
1445 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
1451 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
1446 PyErr_Clear();
1452 PyErr_Clear();
1447 if (obj && !PythonQtSlotFunction_Check(obj)) {
1453 if (obj && !PythonQtSlotFunction_Check(obj)) {
1448 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
1454 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
1449 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1455 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1450 void* args[2] = {NULL, (void*)&arg__1};
1456 void* args[2] = {NULL, (void*)&arg__1};
1451 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1457 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1452 if (result) { Py_DECREF(result); }
1458 if (result) { Py_DECREF(result); }
1453 Py_DECREF(obj);
1459 Py_DECREF(obj);
1454 return;
1460 return;
1455 }
1461 }
1456 }
1462 }
1457 QHexEdit::dragEnterEvent(arg__1);
1463 QHexEdit::dragEnterEvent(arg__1);
1458 }
1464 }
1459 void PythonQtShell_QHexEdit::dragLeaveEvent(QDragLeaveEvent* arg__1)
1465 void PythonQtShell_QHexEdit::dragLeaveEvent(QDragLeaveEvent* arg__1)
1460 {
1466 {
1461 if (_wrapper) {
1467 if (_wrapper) {
1462 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
1468 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
1463 PyErr_Clear();
1469 PyErr_Clear();
1464 if (obj && !PythonQtSlotFunction_Check(obj)) {
1470 if (obj && !PythonQtSlotFunction_Check(obj)) {
1465 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
1471 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
1466 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1472 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1467 void* args[2] = {NULL, (void*)&arg__1};
1473 void* args[2] = {NULL, (void*)&arg__1};
1468 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1474 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1469 if (result) { Py_DECREF(result); }
1475 if (result) { Py_DECREF(result); }
1470 Py_DECREF(obj);
1476 Py_DECREF(obj);
1471 return;
1477 return;
1472 }
1478 }
1473 }
1479 }
1474 QHexEdit::dragLeaveEvent(arg__1);
1480 QHexEdit::dragLeaveEvent(arg__1);
1475 }
1481 }
1476 void PythonQtShell_QHexEdit::dragMoveEvent(QDragMoveEvent* arg__1)
1482 void PythonQtShell_QHexEdit::dragMoveEvent(QDragMoveEvent* arg__1)
1477 {
1483 {
1478 if (_wrapper) {
1484 if (_wrapper) {
1479 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
1485 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
1480 PyErr_Clear();
1486 PyErr_Clear();
1481 if (obj && !PythonQtSlotFunction_Check(obj)) {
1487 if (obj && !PythonQtSlotFunction_Check(obj)) {
1482 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
1488 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
1483 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1489 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1484 void* args[2] = {NULL, (void*)&arg__1};
1490 void* args[2] = {NULL, (void*)&arg__1};
1485 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1491 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1486 if (result) { Py_DECREF(result); }
1492 if (result) { Py_DECREF(result); }
1487 Py_DECREF(obj);
1493 Py_DECREF(obj);
1488 return;
1494 return;
1489 }
1495 }
1490 }
1496 }
1491 QHexEdit::dragMoveEvent(arg__1);
1497 QHexEdit::dragMoveEvent(arg__1);
1492 }
1498 }
1493 void PythonQtShell_QHexEdit::dropEvent(QDropEvent* arg__1)
1499 void PythonQtShell_QHexEdit::dropEvent(QDropEvent* arg__1)
1494 {
1500 {
1495 if (_wrapper) {
1501 if (_wrapper) {
1496 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
1502 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
1497 PyErr_Clear();
1503 PyErr_Clear();
1498 if (obj && !PythonQtSlotFunction_Check(obj)) {
1504 if (obj && !PythonQtSlotFunction_Check(obj)) {
1499 static const char* argumentList[] ={"" , "QDropEvent*"};
1505 static const char* argumentList[] ={"" , "QDropEvent*"};
1500 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1506 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1501 void* args[2] = {NULL, (void*)&arg__1};
1507 void* args[2] = {NULL, (void*)&arg__1};
1502 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1508 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1503 if (result) { Py_DECREF(result); }
1509 if (result) { Py_DECREF(result); }
1504 Py_DECREF(obj);
1510 Py_DECREF(obj);
1505 return;
1511 return;
1506 }
1512 }
1507 }
1513 }
1508 QHexEdit::dropEvent(arg__1);
1514 QHexEdit::dropEvent(arg__1);
1509 }
1515 }
1510 void PythonQtShell_QHexEdit::enterEvent(QEvent* arg__1)
1516 void PythonQtShell_QHexEdit::enterEvent(QEvent* arg__1)
1511 {
1517 {
1512 if (_wrapper) {
1518 if (_wrapper) {
1513 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
1519 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
1514 PyErr_Clear();
1520 PyErr_Clear();
1515 if (obj && !PythonQtSlotFunction_Check(obj)) {
1521 if (obj && !PythonQtSlotFunction_Check(obj)) {
1516 static const char* argumentList[] ={"" , "QEvent*"};
1522 static const char* argumentList[] ={"" , "QEvent*"};
1517 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1523 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1518 void* args[2] = {NULL, (void*)&arg__1};
1524 void* args[2] = {NULL, (void*)&arg__1};
1519 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1525 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1520 if (result) { Py_DECREF(result); }
1526 if (result) { Py_DECREF(result); }
1521 Py_DECREF(obj);
1527 Py_DECREF(obj);
1522 return;
1528 return;
1523 }
1529 }
1524 }
1530 }
1525 QHexEdit::enterEvent(arg__1);
1531 QHexEdit::enterEvent(arg__1);
1526 }
1532 }
1527 bool PythonQtShell_QHexEdit::event(QEvent* arg__1)
1533 bool PythonQtShell_QHexEdit::event(QEvent* arg__1)
1528 {
1534 {
1529 if (_wrapper) {
1535 if (_wrapper) {
1530 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
1536 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
1531 PyErr_Clear();
1537 PyErr_Clear();
1532 if (obj && !PythonQtSlotFunction_Check(obj)) {
1538 if (obj && !PythonQtSlotFunction_Check(obj)) {
1533 static const char* argumentList[] ={"bool" , "QEvent*"};
1539 static const char* argumentList[] ={"bool" , "QEvent*"};
1534 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1540 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1535 bool returnValue;
1541 bool returnValue;
1536 void* args[2] = {NULL, (void*)&arg__1};
1542 void* args[2] = {NULL, (void*)&arg__1};
1537 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1543 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1538 if (result) {
1544 if (result) {
1539 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1545 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1540 if (args[0]!=&returnValue) {
1546 if (args[0]!=&returnValue) {
1541 if (args[0]==NULL) {
1547 if (args[0]==NULL) {
1542 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
1548 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
1543 } else {
1549 } else {
1544 returnValue = *((bool*)args[0]);
1550 returnValue = *((bool*)args[0]);
1545 }
1551 }
1546 }
1552 }
1547 }
1553 }
1548 if (result) { Py_DECREF(result); }
1554 if (result) { Py_DECREF(result); }
1549 Py_DECREF(obj);
1555 Py_DECREF(obj);
1550 return returnValue;
1556 return returnValue;
1551 }
1557 }
1552 }
1558 }
1553 return QHexEdit::event(arg__1);
1559 return QHexEdit::event(arg__1);
1554 }
1560 }
1555 bool PythonQtShell_QHexEdit::eventFilter(QObject* arg__1, QEvent* arg__2)
1561 bool PythonQtShell_QHexEdit::eventFilter(QObject* arg__1, QEvent* arg__2)
1556 {
1562 {
1557 if (_wrapper) {
1563 if (_wrapper) {
1558 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
1564 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
1559 PyErr_Clear();
1565 PyErr_Clear();
1560 if (obj && !PythonQtSlotFunction_Check(obj)) {
1566 if (obj && !PythonQtSlotFunction_Check(obj)) {
1561 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
1567 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
1562 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
1568 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
1563 bool returnValue;
1569 bool returnValue;
1564 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
1570 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
1565 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1571 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1566 if (result) {
1572 if (result) {
1567 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1573 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1568 if (args[0]!=&returnValue) {
1574 if (args[0]!=&returnValue) {
1569 if (args[0]==NULL) {
1575 if (args[0]==NULL) {
1570 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
1576 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
1571 } else {
1577 } else {
1572 returnValue = *((bool*)args[0]);
1578 returnValue = *((bool*)args[0]);
1573 }
1579 }
1574 }
1580 }
1575 }
1581 }
1576 if (result) { Py_DECREF(result); }
1582 if (result) { Py_DECREF(result); }
1577 Py_DECREF(obj);
1583 Py_DECREF(obj);
1578 return returnValue;
1584 return returnValue;
1579 }
1585 }
1580 }
1586 }
1581 return QHexEdit::eventFilter(arg__1, arg__2);
1587 return QHexEdit::eventFilter(arg__1, arg__2);
1582 }
1588 }
1583 void PythonQtShell_QHexEdit::focusInEvent(QFocusEvent* arg__1)
1589 void PythonQtShell_QHexEdit::focusInEvent(QFocusEvent* arg__1)
1584 {
1590 {
1585 if (_wrapper) {
1591 if (_wrapper) {
1586 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
1592 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
1587 PyErr_Clear();
1593 PyErr_Clear();
1588 if (obj && !PythonQtSlotFunction_Check(obj)) {
1594 if (obj && !PythonQtSlotFunction_Check(obj)) {
1589 static const char* argumentList[] ={"" , "QFocusEvent*"};
1595 static const char* argumentList[] ={"" , "QFocusEvent*"};
1590 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1596 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1591 void* args[2] = {NULL, (void*)&arg__1};
1597 void* args[2] = {NULL, (void*)&arg__1};
1592 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1598 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1593 if (result) { Py_DECREF(result); }
1599 if (result) { Py_DECREF(result); }
1594 Py_DECREF(obj);
1600 Py_DECREF(obj);
1595 return;
1601 return;
1596 }
1602 }
1597 }
1603 }
1598 QHexEdit::focusInEvent(arg__1);
1604 QHexEdit::focusInEvent(arg__1);
1599 }
1605 }
1600 bool PythonQtShell_QHexEdit::focusNextPrevChild(bool next)
1606 bool PythonQtShell_QHexEdit::focusNextPrevChild(bool next)
1601 {
1607 {
1602 if (_wrapper) {
1608 if (_wrapper) {
1603 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
1609 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
1604 PyErr_Clear();
1610 PyErr_Clear();
1605 if (obj && !PythonQtSlotFunction_Check(obj)) {
1611 if (obj && !PythonQtSlotFunction_Check(obj)) {
1606 static const char* argumentList[] ={"bool" , "bool"};
1612 static const char* argumentList[] ={"bool" , "bool"};
1607 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1613 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1608 bool returnValue;
1614 bool returnValue;
1609 void* args[2] = {NULL, (void*)&next};
1615 void* args[2] = {NULL, (void*)&next};
1610 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1616 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1611 if (result) {
1617 if (result) {
1612 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1618 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1613 if (args[0]!=&returnValue) {
1619 if (args[0]!=&returnValue) {
1614 if (args[0]==NULL) {
1620 if (args[0]==NULL) {
1615 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
1621 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
1616 } else {
1622 } else {
1617 returnValue = *((bool*)args[0]);
1623 returnValue = *((bool*)args[0]);
1618 }
1624 }
1619 }
1625 }
1620 }
1626 }
1621 if (result) { Py_DECREF(result); }
1627 if (result) { Py_DECREF(result); }
1622 Py_DECREF(obj);
1628 Py_DECREF(obj);
1623 return returnValue;
1629 return returnValue;
1624 }
1630 }
1625 }
1631 }
1626 return QHexEdit::focusNextPrevChild(next);
1632 return QHexEdit::focusNextPrevChild(next);
1627 }
1633 }
1628 void PythonQtShell_QHexEdit::focusOutEvent(QFocusEvent* arg__1)
1634 void PythonQtShell_QHexEdit::focusOutEvent(QFocusEvent* arg__1)
1629 {
1635 {
1630 if (_wrapper) {
1636 if (_wrapper) {
1631 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
1637 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
1632 PyErr_Clear();
1638 PyErr_Clear();
1633 if (obj && !PythonQtSlotFunction_Check(obj)) {
1639 if (obj && !PythonQtSlotFunction_Check(obj)) {
1634 static const char* argumentList[] ={"" , "QFocusEvent*"};
1640 static const char* argumentList[] ={"" , "QFocusEvent*"};
1635 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1641 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1636 void* args[2] = {NULL, (void*)&arg__1};
1642 void* args[2] = {NULL, (void*)&arg__1};
1637 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1643 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1638 if (result) { Py_DECREF(result); }
1644 if (result) { Py_DECREF(result); }
1639 Py_DECREF(obj);
1645 Py_DECREF(obj);
1640 return;
1646 return;
1641 }
1647 }
1642 }
1648 }
1643 QHexEdit::focusOutEvent(arg__1);
1649 QHexEdit::focusOutEvent(arg__1);
1644 }
1650 }
1645 bool PythonQtShell_QHexEdit::hasHeightForWidth() const
1651 bool PythonQtShell_QHexEdit::hasHeightForWidth() const
1646 {
1652 {
1647 if (_wrapper) {
1653 if (_wrapper) {
1648 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
1654 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
1649 PyErr_Clear();
1655 PyErr_Clear();
1650 if (obj && !PythonQtSlotFunction_Check(obj)) {
1656 if (obj && !PythonQtSlotFunction_Check(obj)) {
1651 static const char* argumentList[] ={"bool"};
1657 static const char* argumentList[] ={"bool"};
1652 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1658 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1653 bool returnValue;
1659 bool returnValue;
1654 void* args[1] = {NULL};
1660 void* args[1] = {NULL};
1655 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1661 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1656 if (result) {
1662 if (result) {
1657 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1663 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1658 if (args[0]!=&returnValue) {
1664 if (args[0]!=&returnValue) {
1659 if (args[0]==NULL) {
1665 if (args[0]==NULL) {
1660 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
1666 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
1661 } else {
1667 } else {
1662 returnValue = *((bool*)args[0]);
1668 returnValue = *((bool*)args[0]);
1663 }
1669 }
1664 }
1670 }
1665 }
1671 }
1666 if (result) { Py_DECREF(result); }
1672 if (result) { Py_DECREF(result); }
1667 Py_DECREF(obj);
1673 Py_DECREF(obj);
1668 return returnValue;
1674 return returnValue;
1669 }
1675 }
1670 }
1676 }
1671 return QHexEdit::hasHeightForWidth();
1677 return QHexEdit::hasHeightForWidth();
1672 }
1678 }
1673 int PythonQtShell_QHexEdit::heightForWidth(int arg__1) const
1679 int PythonQtShell_QHexEdit::heightForWidth(int arg__1) const
1674 {
1680 {
1675 if (_wrapper) {
1681 if (_wrapper) {
1676 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
1682 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
1677 PyErr_Clear();
1683 PyErr_Clear();
1678 if (obj && !PythonQtSlotFunction_Check(obj)) {
1684 if (obj && !PythonQtSlotFunction_Check(obj)) {
1679 static const char* argumentList[] ={"int" , "int"};
1685 static const char* argumentList[] ={"int" , "int"};
1680 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1686 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1681 int returnValue;
1687 int returnValue;
1682 void* args[2] = {NULL, (void*)&arg__1};
1688 void* args[2] = {NULL, (void*)&arg__1};
1683 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1689 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1684 if (result) {
1690 if (result) {
1685 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1691 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1686 if (args[0]!=&returnValue) {
1692 if (args[0]!=&returnValue) {
1687 if (args[0]==NULL) {
1693 if (args[0]==NULL) {
1688 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
1694 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
1689 } else {
1695 } else {
1690 returnValue = *((int*)args[0]);
1696 returnValue = *((int*)args[0]);
1691 }
1697 }
1692 }
1698 }
1693 }
1699 }
1694 if (result) { Py_DECREF(result); }
1700 if (result) { Py_DECREF(result); }
1695 Py_DECREF(obj);
1701 Py_DECREF(obj);
1696 return returnValue;
1702 return returnValue;
1697 }
1703 }
1698 }
1704 }
1699 return QHexEdit::heightForWidth(arg__1);
1705 return QHexEdit::heightForWidth(arg__1);
1700 }
1706 }
1701 void PythonQtShell_QHexEdit::hideEvent(QHideEvent* arg__1)
1707 void PythonQtShell_QHexEdit::hideEvent(QHideEvent* arg__1)
1702 {
1708 {
1703 if (_wrapper) {
1709 if (_wrapper) {
1704 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
1710 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
1705 PyErr_Clear();
1711 PyErr_Clear();
1706 if (obj && !PythonQtSlotFunction_Check(obj)) {
1712 if (obj && !PythonQtSlotFunction_Check(obj)) {
1707 static const char* argumentList[] ={"" , "QHideEvent*"};
1713 static const char* argumentList[] ={"" , "QHideEvent*"};
1708 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1714 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1709 void* args[2] = {NULL, (void*)&arg__1};
1715 void* args[2] = {NULL, (void*)&arg__1};
1710 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1716 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1711 if (result) { Py_DECREF(result); }
1717 if (result) { Py_DECREF(result); }
1712 Py_DECREF(obj);
1718 Py_DECREF(obj);
1713 return;
1719 return;
1714 }
1720 }
1715 }
1721 }
1716 QHexEdit::hideEvent(arg__1);
1722 QHexEdit::hideEvent(arg__1);
1717 }
1723 }
1718 void PythonQtShell_QHexEdit::initPainter(QPainter* painter) const
1724 void PythonQtShell_QHexEdit::initPainter(QPainter* painter) const
1719 {
1725 {
1720 if (_wrapper) {
1726 if (_wrapper) {
1721 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
1727 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
1722 PyErr_Clear();
1728 PyErr_Clear();
1723 if (obj && !PythonQtSlotFunction_Check(obj)) {
1729 if (obj && !PythonQtSlotFunction_Check(obj)) {
1724 static const char* argumentList[] ={"" , "QPainter*"};
1730 static const char* argumentList[] ={"" , "QPainter*"};
1725 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1731 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1726 void* args[2] = {NULL, (void*)&painter};
1732 void* args[2] = {NULL, (void*)&painter};
1727 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1733 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1728 if (result) { Py_DECREF(result); }
1734 if (result) { Py_DECREF(result); }
1729 Py_DECREF(obj);
1735 Py_DECREF(obj);
1730 return;
1736 return;
1731 }
1737 }
1732 }
1738 }
1733 QHexEdit::initPainter(painter);
1739 QHexEdit::initPainter(painter);
1734 }
1740 }
1735 void PythonQtShell_QHexEdit::inputMethodEvent(QInputMethodEvent* arg__1)
1741 void PythonQtShell_QHexEdit::inputMethodEvent(QInputMethodEvent* arg__1)
1736 {
1742 {
1737 if (_wrapper) {
1743 if (_wrapper) {
1738 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
1744 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
1739 PyErr_Clear();
1745 PyErr_Clear();
1740 if (obj && !PythonQtSlotFunction_Check(obj)) {
1746 if (obj && !PythonQtSlotFunction_Check(obj)) {
1741 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
1747 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
1742 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1748 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1743 void* args[2] = {NULL, (void*)&arg__1};
1749 void* args[2] = {NULL, (void*)&arg__1};
1744 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1750 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1745 if (result) { Py_DECREF(result); }
1751 if (result) { Py_DECREF(result); }
1746 Py_DECREF(obj);
1752 Py_DECREF(obj);
1747 return;
1753 return;
1748 }
1754 }
1749 }
1755 }
1750 QHexEdit::inputMethodEvent(arg__1);
1756 QHexEdit::inputMethodEvent(arg__1);
1751 }
1757 }
1752 QVariant PythonQtShell_QHexEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const
1758 QVariant PythonQtShell_QHexEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const
1753 {
1759 {
1754 if (_wrapper) {
1760 if (_wrapper) {
1755 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
1761 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
1756 PyErr_Clear();
1762 PyErr_Clear();
1757 if (obj && !PythonQtSlotFunction_Check(obj)) {
1763 if (obj && !PythonQtSlotFunction_Check(obj)) {
1758 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
1764 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
1759 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1765 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1760 QVariant returnValue;
1766 QVariant returnValue;
1761 void* args[2] = {NULL, (void*)&arg__1};
1767 void* args[2] = {NULL, (void*)&arg__1};
1762 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1768 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1763 if (result) {
1769 if (result) {
1764 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1770 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1765 if (args[0]!=&returnValue) {
1771 if (args[0]!=&returnValue) {
1766 if (args[0]==NULL) {
1772 if (args[0]==NULL) {
1767 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
1773 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
1768 } else {
1774 } else {
1769 returnValue = *((QVariant*)args[0]);
1775 returnValue = *((QVariant*)args[0]);
1770 }
1776 }
1771 }
1777 }
1772 }
1778 }
1773 if (result) { Py_DECREF(result); }
1779 if (result) { Py_DECREF(result); }
1774 Py_DECREF(obj);
1780 Py_DECREF(obj);
1775 return returnValue;
1781 return returnValue;
1776 }
1782 }
1777 }
1783 }
1778 return QHexEdit::inputMethodQuery(arg__1);
1784 return QHexEdit::inputMethodQuery(arg__1);
1779 }
1785 }
1780 void PythonQtShell_QHexEdit::keyPressEvent(QKeyEvent* arg__1)
1786 void PythonQtShell_QHexEdit::keyPressEvent(QKeyEvent* arg__1)
1781 {
1787 {
1782 if (_wrapper) {
1788 if (_wrapper) {
1783 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
1789 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
1784 PyErr_Clear();
1790 PyErr_Clear();
1785 if (obj && !PythonQtSlotFunction_Check(obj)) {
1791 if (obj && !PythonQtSlotFunction_Check(obj)) {
1786 static const char* argumentList[] ={"" , "QKeyEvent*"};
1792 static const char* argumentList[] ={"" , "QKeyEvent*"};
1787 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1793 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1788 void* args[2] = {NULL, (void*)&arg__1};
1794 void* args[2] = {NULL, (void*)&arg__1};
1789 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1795 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1790 if (result) { Py_DECREF(result); }
1796 if (result) { Py_DECREF(result); }
1791 Py_DECREF(obj);
1797 Py_DECREF(obj);
1792 return;
1798 return;
1793 }
1799 }
1794 }
1800 }
1795 QHexEdit::keyPressEvent(arg__1);
1801 QHexEdit::keyPressEvent(arg__1);
1796 }
1802 }
1797 void PythonQtShell_QHexEdit::keyReleaseEvent(QKeyEvent* arg__1)
1803 void PythonQtShell_QHexEdit::keyReleaseEvent(QKeyEvent* arg__1)
1798 {
1804 {
1799 if (_wrapper) {
1805 if (_wrapper) {
1800 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
1806 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
1801 PyErr_Clear();
1807 PyErr_Clear();
1802 if (obj && !PythonQtSlotFunction_Check(obj)) {
1808 if (obj && !PythonQtSlotFunction_Check(obj)) {
1803 static const char* argumentList[] ={"" , "QKeyEvent*"};
1809 static const char* argumentList[] ={"" , "QKeyEvent*"};
1804 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1810 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1805 void* args[2] = {NULL, (void*)&arg__1};
1811 void* args[2] = {NULL, (void*)&arg__1};
1806 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1812 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1807 if (result) { Py_DECREF(result); }
1813 if (result) { Py_DECREF(result); }
1808 Py_DECREF(obj);
1814 Py_DECREF(obj);
1809 return;
1815 return;
1810 }
1816 }
1811 }
1817 }
1812 QHexEdit::keyReleaseEvent(arg__1);
1818 QHexEdit::keyReleaseEvent(arg__1);
1813 }
1819 }
1814 void PythonQtShell_QHexEdit::leaveEvent(QEvent* arg__1)
1820 void PythonQtShell_QHexEdit::leaveEvent(QEvent* arg__1)
1815 {
1821 {
1816 if (_wrapper) {
1822 if (_wrapper) {
1817 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
1823 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
1818 PyErr_Clear();
1824 PyErr_Clear();
1819 if (obj && !PythonQtSlotFunction_Check(obj)) {
1825 if (obj && !PythonQtSlotFunction_Check(obj)) {
1820 static const char* argumentList[] ={"" , "QEvent*"};
1826 static const char* argumentList[] ={"" , "QEvent*"};
1821 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1827 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1822 void* args[2] = {NULL, (void*)&arg__1};
1828 void* args[2] = {NULL, (void*)&arg__1};
1823 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1829 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1824 if (result) { Py_DECREF(result); }
1830 if (result) { Py_DECREF(result); }
1825 Py_DECREF(obj);
1831 Py_DECREF(obj);
1826 return;
1832 return;
1827 }
1833 }
1828 }
1834 }
1829 QHexEdit::leaveEvent(arg__1);
1835 QHexEdit::leaveEvent(arg__1);
1830 }
1836 }
1831 int PythonQtShell_QHexEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const
1837 int PythonQtShell_QHexEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const
1832 {
1838 {
1833 if (_wrapper) {
1839 if (_wrapper) {
1834 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
1840 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
1835 PyErr_Clear();
1841 PyErr_Clear();
1836 if (obj && !PythonQtSlotFunction_Check(obj)) {
1842 if (obj && !PythonQtSlotFunction_Check(obj)) {
1837 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
1843 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
1838 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1844 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1839 int returnValue;
1845 int returnValue;
1840 void* args[2] = {NULL, (void*)&arg__1};
1846 void* args[2] = {NULL, (void*)&arg__1};
1841 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1847 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1842 if (result) {
1848 if (result) {
1843 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1849 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1844 if (args[0]!=&returnValue) {
1850 if (args[0]!=&returnValue) {
1845 if (args[0]==NULL) {
1851 if (args[0]==NULL) {
1846 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
1852 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
1847 } else {
1853 } else {
1848 returnValue = *((int*)args[0]);
1854 returnValue = *((int*)args[0]);
1849 }
1855 }
1850 }
1856 }
1851 }
1857 }
1852 if (result) { Py_DECREF(result); }
1858 if (result) { Py_DECREF(result); }
1853 Py_DECREF(obj);
1859 Py_DECREF(obj);
1854 return returnValue;
1860 return returnValue;
1855 }
1861 }
1856 }
1862 }
1857 return QHexEdit::metric(arg__1);
1863 return QHexEdit::metric(arg__1);
1858 }
1864 }
1859 void PythonQtShell_QHexEdit::mouseDoubleClickEvent(QMouseEvent* arg__1)
1865 void PythonQtShell_QHexEdit::mouseDoubleClickEvent(QMouseEvent* arg__1)
1860 {
1866 {
1861 if (_wrapper) {
1867 if (_wrapper) {
1862 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
1868 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
1863 PyErr_Clear();
1869 PyErr_Clear();
1864 if (obj && !PythonQtSlotFunction_Check(obj)) {
1870 if (obj && !PythonQtSlotFunction_Check(obj)) {
1865 static const char* argumentList[] ={"" , "QMouseEvent*"};
1871 static const char* argumentList[] ={"" , "QMouseEvent*"};
1866 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1872 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1867 void* args[2] = {NULL, (void*)&arg__1};
1873 void* args[2] = {NULL, (void*)&arg__1};
1868 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1874 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1869 if (result) { Py_DECREF(result); }
1875 if (result) { Py_DECREF(result); }
1870 Py_DECREF(obj);
1876 Py_DECREF(obj);
1871 return;
1877 return;
1872 }
1878 }
1873 }
1879 }
1874 QHexEdit::mouseDoubleClickEvent(arg__1);
1880 QHexEdit::mouseDoubleClickEvent(arg__1);
1875 }
1881 }
1876 void PythonQtShell_QHexEdit::mouseMoveEvent(QMouseEvent* arg__1)
1882 void PythonQtShell_QHexEdit::mouseMoveEvent(QMouseEvent* arg__1)
1877 {
1883 {
1878 if (_wrapper) {
1884 if (_wrapper) {
1879 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
1885 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
1880 PyErr_Clear();
1886 PyErr_Clear();
1881 if (obj && !PythonQtSlotFunction_Check(obj)) {
1887 if (obj && !PythonQtSlotFunction_Check(obj)) {
1882 static const char* argumentList[] ={"" , "QMouseEvent*"};
1888 static const char* argumentList[] ={"" , "QMouseEvent*"};
1883 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1889 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1884 void* args[2] = {NULL, (void*)&arg__1};
1890 void* args[2] = {NULL, (void*)&arg__1};
1885 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1891 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1886 if (result) { Py_DECREF(result); }
1892 if (result) { Py_DECREF(result); }
1887 Py_DECREF(obj);
1893 Py_DECREF(obj);
1888 return;
1894 return;
1889 }
1895 }
1890 }
1896 }
1891 QHexEdit::mouseMoveEvent(arg__1);
1897 QHexEdit::mouseMoveEvent(arg__1);
1892 }
1898 }
1893 void PythonQtShell_QHexEdit::mousePressEvent(QMouseEvent* arg__1)
1899 void PythonQtShell_QHexEdit::mousePressEvent(QMouseEvent* arg__1)
1894 {
1900 {
1895 if (_wrapper) {
1901 if (_wrapper) {
1896 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
1902 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
1897 PyErr_Clear();
1903 PyErr_Clear();
1898 if (obj && !PythonQtSlotFunction_Check(obj)) {
1904 if (obj && !PythonQtSlotFunction_Check(obj)) {
1899 static const char* argumentList[] ={"" , "QMouseEvent*"};
1905 static const char* argumentList[] ={"" , "QMouseEvent*"};
1900 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1906 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1901 void* args[2] = {NULL, (void*)&arg__1};
1907 void* args[2] = {NULL, (void*)&arg__1};
1902 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1908 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1903 if (result) { Py_DECREF(result); }
1909 if (result) { Py_DECREF(result); }
1904 Py_DECREF(obj);
1910 Py_DECREF(obj);
1905 return;
1911 return;
1906 }
1912 }
1907 }
1913 }
1908 QHexEdit::mousePressEvent(arg__1);
1914 QHexEdit::mousePressEvent(arg__1);
1909 }
1915 }
1910 void PythonQtShell_QHexEdit::mouseReleaseEvent(QMouseEvent* arg__1)
1916 void PythonQtShell_QHexEdit::mouseReleaseEvent(QMouseEvent* arg__1)
1911 {
1917 {
1912 if (_wrapper) {
1918 if (_wrapper) {
1913 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
1919 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
1914 PyErr_Clear();
1920 PyErr_Clear();
1915 if (obj && !PythonQtSlotFunction_Check(obj)) {
1921 if (obj && !PythonQtSlotFunction_Check(obj)) {
1916 static const char* argumentList[] ={"" , "QMouseEvent*"};
1922 static const char* argumentList[] ={"" , "QMouseEvent*"};
1917 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1923 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1918 void* args[2] = {NULL, (void*)&arg__1};
1924 void* args[2] = {NULL, (void*)&arg__1};
1919 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1925 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1920 if (result) { Py_DECREF(result); }
1926 if (result) { Py_DECREF(result); }
1921 Py_DECREF(obj);
1927 Py_DECREF(obj);
1922 return;
1928 return;
1923 }
1929 }
1924 }
1930 }
1925 QHexEdit::mouseReleaseEvent(arg__1);
1931 QHexEdit::mouseReleaseEvent(arg__1);
1926 }
1932 }
1927 void PythonQtShell_QHexEdit::moveEvent(QMoveEvent* arg__1)
1933 void PythonQtShell_QHexEdit::moveEvent(QMoveEvent* arg__1)
1928 {
1934 {
1929 if (_wrapper) {
1935 if (_wrapper) {
1930 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
1936 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
1931 PyErr_Clear();
1937 PyErr_Clear();
1932 if (obj && !PythonQtSlotFunction_Check(obj)) {
1938 if (obj && !PythonQtSlotFunction_Check(obj)) {
1933 static const char* argumentList[] ={"" , "QMoveEvent*"};
1939 static const char* argumentList[] ={"" , "QMoveEvent*"};
1934 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1940 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1935 void* args[2] = {NULL, (void*)&arg__1};
1941 void* args[2] = {NULL, (void*)&arg__1};
1936 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1942 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1937 if (result) { Py_DECREF(result); }
1943 if (result) { Py_DECREF(result); }
1938 Py_DECREF(obj);
1944 Py_DECREF(obj);
1939 return;
1945 return;
1940 }
1946 }
1941 }
1947 }
1942 QHexEdit::moveEvent(arg__1);
1948 QHexEdit::moveEvent(arg__1);
1943 }
1949 }
1944 bool PythonQtShell_QHexEdit::nativeEvent(const QByteArray& eventType, void* message, long* result)
1950 bool PythonQtShell_QHexEdit::nativeEvent(const QByteArray& eventType, void* message, long* result)
1945 {
1951 {
1946 if (_wrapper) {
1952 if (_wrapper) {
1947 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
1953 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
1948 PyErr_Clear();
1954 PyErr_Clear();
1949 if (obj && !PythonQtSlotFunction_Check(obj)) {
1955 if (obj && !PythonQtSlotFunction_Check(obj)) {
1950 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
1956 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
1951 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
1957 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
1952 bool returnValue;
1958 bool returnValue;
1953 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
1959 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
1954 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1960 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1955 if (result) {
1961 if (result) {
1956 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1962 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1957 if (args[0]!=&returnValue) {
1963 if (args[0]!=&returnValue) {
1958 if (args[0]==NULL) {
1964 if (args[0]==NULL) {
1959 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
1965 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
1960 } else {
1966 } else {
1961 returnValue = *((bool*)args[0]);
1967 returnValue = *((bool*)args[0]);
1962 }
1968 }
1963 }
1969 }
1964 }
1970 }
1965 if (result) { Py_DECREF(result); }
1971 if (result) { Py_DECREF(result); }
1966 Py_DECREF(obj);
1972 Py_DECREF(obj);
1967 return returnValue;
1973 return returnValue;
1968 }
1974 }
1969 }
1975 }
1970 return QHexEdit::nativeEvent(eventType, message, result);
1976 return QHexEdit::nativeEvent(eventType, message, result);
1971 }
1977 }
1972 QPaintEngine* PythonQtShell_QHexEdit::paintEngine() const
1978 QPaintEngine* PythonQtShell_QHexEdit::paintEngine() const
1973 {
1979 {
1974 if (_wrapper) {
1980 if (_wrapper) {
1975 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
1981 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
1976 PyErr_Clear();
1982 PyErr_Clear();
1977 if (obj && !PythonQtSlotFunction_Check(obj)) {
1983 if (obj && !PythonQtSlotFunction_Check(obj)) {
1978 static const char* argumentList[] ={"QPaintEngine*"};
1984 static const char* argumentList[] ={"QPaintEngine*"};
1979 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1985 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1980 QPaintEngine* returnValue;
1986 QPaintEngine* returnValue;
1981 void* args[1] = {NULL};
1987 void* args[1] = {NULL};
1982 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1988 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1983 if (result) {
1989 if (result) {
1984 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1990 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1985 if (args[0]!=&returnValue) {
1991 if (args[0]!=&returnValue) {
1986 if (args[0]==NULL) {
1992 if (args[0]==NULL) {
1987 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
1993 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
1988 } else {
1994 } else {
1989 returnValue = *((QPaintEngine**)args[0]);
1995 returnValue = *((QPaintEngine**)args[0]);
1990 }
1996 }
1991 }
1997 }
1992 }
1998 }
1993 if (result) { Py_DECREF(result); }
1999 if (result) { Py_DECREF(result); }
1994 Py_DECREF(obj);
2000 Py_DECREF(obj);
1995 return returnValue;
2001 return returnValue;
1996 }
2002 }
1997 }
2003 }
1998 return QHexEdit::paintEngine();
2004 return QHexEdit::paintEngine();
1999 }
2005 }
2000 void PythonQtShell_QHexEdit::paintEvent(QPaintEvent* arg__1)
2006 void PythonQtShell_QHexEdit::paintEvent(QPaintEvent* arg__1)
2001 {
2007 {
2002 if (_wrapper) {
2008 if (_wrapper) {
2003 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
2009 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
2004 PyErr_Clear();
2010 PyErr_Clear();
2005 if (obj && !PythonQtSlotFunction_Check(obj)) {
2011 if (obj && !PythonQtSlotFunction_Check(obj)) {
2006 static const char* argumentList[] ={"" , "QPaintEvent*"};
2012 static const char* argumentList[] ={"" , "QPaintEvent*"};
2007 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2013 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2008 void* args[2] = {NULL, (void*)&arg__1};
2014 void* args[2] = {NULL, (void*)&arg__1};
2009 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2015 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2010 if (result) { Py_DECREF(result); }
2016 if (result) { Py_DECREF(result); }
2011 Py_DECREF(obj);
2017 Py_DECREF(obj);
2012 return;
2018 return;
2013 }
2019 }
2014 }
2020 }
2015 QHexEdit::paintEvent(arg__1);
2021 QHexEdit::paintEvent(arg__1);
2016 }
2022 }
2017 QPaintDevice* PythonQtShell_QHexEdit::redirected(QPoint* offset) const
2023 QPaintDevice* PythonQtShell_QHexEdit::redirected(QPoint* offset) const
2018 {
2024 {
2019 if (_wrapper) {
2025 if (_wrapper) {
2020 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
2026 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
2021 PyErr_Clear();
2027 PyErr_Clear();
2022 if (obj && !PythonQtSlotFunction_Check(obj)) {
2028 if (obj && !PythonQtSlotFunction_Check(obj)) {
2023 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
2029 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
2024 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2030 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2025 QPaintDevice* returnValue;
2031 QPaintDevice* returnValue;
2026 void* args[2] = {NULL, (void*)&offset};
2032 void* args[2] = {NULL, (void*)&offset};
2027 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2033 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2028 if (result) {
2034 if (result) {
2029 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2035 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2030 if (args[0]!=&returnValue) {
2036 if (args[0]!=&returnValue) {
2031 if (args[0]==NULL) {
2037 if (args[0]==NULL) {
2032 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
2038 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
2033 } else {
2039 } else {
2034 returnValue = *((QPaintDevice**)args[0]);
2040 returnValue = *((QPaintDevice**)args[0]);
2035 }
2041 }
2036 }
2042 }
2037 }
2043 }
2038 if (result) { Py_DECREF(result); }
2044 if (result) { Py_DECREF(result); }
2039 Py_DECREF(obj);
2045 Py_DECREF(obj);
2040 return returnValue;
2046 return returnValue;
2041 }
2047 }
2042 }
2048 }
2043 return QHexEdit::redirected(offset);
2049 return QHexEdit::redirected(offset);
2044 }
2050 }
2045 void PythonQtShell_QHexEdit::resizeEvent(QResizeEvent* arg__1)
2051 void PythonQtShell_QHexEdit::resizeEvent(QResizeEvent* arg__1)
2046 {
2052 {
2047 if (_wrapper) {
2053 if (_wrapper) {
2048 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
2054 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
2049 PyErr_Clear();
2055 PyErr_Clear();
2050 if (obj && !PythonQtSlotFunction_Check(obj)) {
2056 if (obj && !PythonQtSlotFunction_Check(obj)) {
2051 static const char* argumentList[] ={"" , "QResizeEvent*"};
2057 static const char* argumentList[] ={"" , "QResizeEvent*"};
2052 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2058 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2053 void* args[2] = {NULL, (void*)&arg__1};
2059 void* args[2] = {NULL, (void*)&arg__1};
2054 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2060 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2055 if (result) { Py_DECREF(result); }
2061 if (result) { Py_DECREF(result); }
2056 Py_DECREF(obj);
2062 Py_DECREF(obj);
2057 return;
2063 return;
2058 }
2064 }
2059 }
2065 }
2060 QHexEdit::resizeEvent(arg__1);
2066 QHexEdit::resizeEvent(arg__1);
2061 }
2067 }
2062 void PythonQtShell_QHexEdit::scrollContentsBy(int dx, int dy)
2068 void PythonQtShell_QHexEdit::scrollContentsBy(int dx, int dy)
2063 {
2069 {
2064 if (_wrapper) {
2070 if (_wrapper) {
2065 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy");
2071 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy");
2066 PyErr_Clear();
2072 PyErr_Clear();
2067 if (obj && !PythonQtSlotFunction_Check(obj)) {
2073 if (obj && !PythonQtSlotFunction_Check(obj)) {
2068 static const char* argumentList[] ={"" , "int" , "int"};
2074 static const char* argumentList[] ={"" , "int" , "int"};
2069 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
2075 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
2070 void* args[3] = {NULL, (void*)&dx, (void*)&dy};
2076 void* args[3] = {NULL, (void*)&dx, (void*)&dy};
2071 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2077 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2072 if (result) { Py_DECREF(result); }
2078 if (result) { Py_DECREF(result); }
2073 Py_DECREF(obj);
2079 Py_DECREF(obj);
2074 return;
2080 return;
2075 }
2081 }
2076 }
2082 }
2077 QHexEdit::scrollContentsBy(dx, dy);
2083 QHexEdit::scrollContentsBy(dx, dy);
2078 }
2084 }
2079 void PythonQtShell_QHexEdit::setupViewport(QWidget* viewport)
2085 void PythonQtShell_QHexEdit::setupViewport(QWidget* viewport)
2080 {
2086 {
2081 if (_wrapper) {
2087 if (_wrapper) {
2082 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport");
2088 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport");
2083 PyErr_Clear();
2089 PyErr_Clear();
2084 if (obj && !PythonQtSlotFunction_Check(obj)) {
2090 if (obj && !PythonQtSlotFunction_Check(obj)) {
2085 static const char* argumentList[] ={"" , "QWidget*"};
2091 static const char* argumentList[] ={"" , "QWidget*"};
2086 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2092 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2087 void* args[2] = {NULL, (void*)&viewport};
2093 void* args[2] = {NULL, (void*)&viewport};
2088 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2094 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2089 if (result) { Py_DECREF(result); }
2095 if (result) { Py_DECREF(result); }
2090 Py_DECREF(obj);
2096 Py_DECREF(obj);
2091 return;
2097 return;
2092 }
2098 }
2093 }
2099 }
2094 QHexEdit::setupViewport(viewport);
2100 QHexEdit::setupViewport(viewport);
2095 }
2101 }
2096 QPainter* PythonQtShell_QHexEdit::sharedPainter() const
2102 QPainter* PythonQtShell_QHexEdit::sharedPainter() const
2097 {
2103 {
2098 if (_wrapper) {
2104 if (_wrapper) {
2099 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
2105 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
2100 PyErr_Clear();
2106 PyErr_Clear();
2101 if (obj && !PythonQtSlotFunction_Check(obj)) {
2107 if (obj && !PythonQtSlotFunction_Check(obj)) {
2102 static const char* argumentList[] ={"QPainter*"};
2108 static const char* argumentList[] ={"QPainter*"};
2103 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2109 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2104 QPainter* returnValue;
2110 QPainter* returnValue;
2105 void* args[1] = {NULL};
2111 void* args[1] = {NULL};
2106 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2112 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2107 if (result) {
2113 if (result) {
2108 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2114 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2109 if (args[0]!=&returnValue) {
2115 if (args[0]!=&returnValue) {
2110 if (args[0]==NULL) {
2116 if (args[0]==NULL) {
2111 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
2117 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
2112 } else {
2118 } else {
2113 returnValue = *((QPainter**)args[0]);
2119 returnValue = *((QPainter**)args[0]);
2114 }
2120 }
2115 }
2121 }
2116 }
2122 }
2117 if (result) { Py_DECREF(result); }
2123 if (result) { Py_DECREF(result); }
2118 Py_DECREF(obj);
2124 Py_DECREF(obj);
2119 return returnValue;
2125 return returnValue;
2120 }
2126 }
2121 }
2127 }
2122 return QHexEdit::sharedPainter();
2128 return QHexEdit::sharedPainter();
2123 }
2129 }
2124 void PythonQtShell_QHexEdit::showEvent(QShowEvent* arg__1)
2130 void PythonQtShell_QHexEdit::showEvent(QShowEvent* arg__1)
2125 {
2131 {
2126 if (_wrapper) {
2132 if (_wrapper) {
2127 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
2133 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
2128 PyErr_Clear();
2134 PyErr_Clear();
2129 if (obj && !PythonQtSlotFunction_Check(obj)) {
2135 if (obj && !PythonQtSlotFunction_Check(obj)) {
2130 static const char* argumentList[] ={"" , "QShowEvent*"};
2136 static const char* argumentList[] ={"" , "QShowEvent*"};
2131 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2137 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2132 void* args[2] = {NULL, (void*)&arg__1};
2138 void* args[2] = {NULL, (void*)&arg__1};
2133 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2139 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2134 if (result) { Py_DECREF(result); }
2140 if (result) { Py_DECREF(result); }
2135 Py_DECREF(obj);
2141 Py_DECREF(obj);
2136 return;
2142 return;
2137 }
2143 }
2138 }
2144 }
2139 QHexEdit::showEvent(arg__1);
2145 QHexEdit::showEvent(arg__1);
2140 }
2146 }
2141 void PythonQtShell_QHexEdit::tabletEvent(QTabletEvent* arg__1)
2147 void PythonQtShell_QHexEdit::tabletEvent(QTabletEvent* arg__1)
2142 {
2148 {
2143 if (_wrapper) {
2149 if (_wrapper) {
2144 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
2150 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
2145 PyErr_Clear();
2151 PyErr_Clear();
2146 if (obj && !PythonQtSlotFunction_Check(obj)) {
2152 if (obj && !PythonQtSlotFunction_Check(obj)) {
2147 static const char* argumentList[] ={"" , "QTabletEvent*"};
2153 static const char* argumentList[] ={"" , "QTabletEvent*"};
2148 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2154 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2149 void* args[2] = {NULL, (void*)&arg__1};
2155 void* args[2] = {NULL, (void*)&arg__1};
2150 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2156 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2151 if (result) { Py_DECREF(result); }
2157 if (result) { Py_DECREF(result); }
2152 Py_DECREF(obj);
2158 Py_DECREF(obj);
2153 return;
2159 return;
2154 }
2160 }
2155 }
2161 }
2156 QHexEdit::tabletEvent(arg__1);
2162 QHexEdit::tabletEvent(arg__1);
2157 }
2163 }
2158 void PythonQtShell_QHexEdit::timerEvent(QTimerEvent* arg__1)
2164 void PythonQtShell_QHexEdit::timerEvent(QTimerEvent* arg__1)
2159 {
2165 {
2160 if (_wrapper) {
2166 if (_wrapper) {
2161 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
2167 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
2162 PyErr_Clear();
2168 PyErr_Clear();
2163 if (obj && !PythonQtSlotFunction_Check(obj)) {
2169 if (obj && !PythonQtSlotFunction_Check(obj)) {
2164 static const char* argumentList[] ={"" , "QTimerEvent*"};
2170 static const char* argumentList[] ={"" , "QTimerEvent*"};
2165 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2171 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2166 void* args[2] = {NULL, (void*)&arg__1};
2172 void* args[2] = {NULL, (void*)&arg__1};
2167 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2173 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2168 if (result) { Py_DECREF(result); }
2174 if (result) { Py_DECREF(result); }
2169 Py_DECREF(obj);
2175 Py_DECREF(obj);
2170 return;
2176 return;
2171 }
2177 }
2172 }
2178 }
2173 QHexEdit::timerEvent(arg__1);
2179 QHexEdit::timerEvent(arg__1);
2174 }
2180 }
2175 bool PythonQtShell_QHexEdit::viewportEvent(QEvent* arg__1)
2181 bool PythonQtShell_QHexEdit::viewportEvent(QEvent* arg__1)
2176 {
2182 {
2177 if (_wrapper) {
2183 if (_wrapper) {
2178 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent");
2184 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent");
2179 PyErr_Clear();
2185 PyErr_Clear();
2180 if (obj && !PythonQtSlotFunction_Check(obj)) {
2186 if (obj && !PythonQtSlotFunction_Check(obj)) {
2181 static const char* argumentList[] ={"bool" , "QEvent*"};
2187 static const char* argumentList[] ={"bool" , "QEvent*"};
2182 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2188 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2183 bool returnValue;
2189 bool returnValue;
2184 void* args[2] = {NULL, (void*)&arg__1};
2190 void* args[2] = {NULL, (void*)&arg__1};
2185 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2191 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2186 if (result) {
2192 if (result) {
2187 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2193 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2188 if (args[0]!=&returnValue) {
2194 if (args[0]!=&returnValue) {
2189 if (args[0]==NULL) {
2195 if (args[0]==NULL) {
2190 PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result);
2196 PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result);
2191 } else {
2197 } else {
2192 returnValue = *((bool*)args[0]);
2198 returnValue = *((bool*)args[0]);
2193 }
2199 }
2194 }
2200 }
2195 }
2201 }
2196 if (result) { Py_DECREF(result); }
2202 if (result) { Py_DECREF(result); }
2197 Py_DECREF(obj);
2203 Py_DECREF(obj);
2198 return returnValue;
2204 return returnValue;
2199 }
2205 }
2200 }
2206 }
2201 return QHexEdit::viewportEvent(arg__1);
2207 return QHexEdit::viewportEvent(arg__1);
2202 }
2208 }
2203 QSize PythonQtShell_QHexEdit::viewportSizeHint() const
2209 QSize PythonQtShell_QHexEdit::viewportSizeHint() const
2204 {
2210 {
2205 if (_wrapper) {
2211 if (_wrapper) {
2206 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint");
2212 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint");
2207 PyErr_Clear();
2213 PyErr_Clear();
2208 if (obj && !PythonQtSlotFunction_Check(obj)) {
2214 if (obj && !PythonQtSlotFunction_Check(obj)) {
2209 static const char* argumentList[] ={"QSize"};
2215 static const char* argumentList[] ={"QSize"};
2210 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2216 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2211 QSize returnValue;
2217 QSize returnValue;
2212 void* args[1] = {NULL};
2218 void* args[1] = {NULL};
2213 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2219 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2214 if (result) {
2220 if (result) {
2215 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2221 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2216 if (args[0]!=&returnValue) {
2222 if (args[0]!=&returnValue) {
2217 if (args[0]==NULL) {
2223 if (args[0]==NULL) {
2218 PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result);
2224 PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result);
2219 } else {
2225 } else {
2220 returnValue = *((QSize*)args[0]);
2226 returnValue = *((QSize*)args[0]);
2221 }
2227 }
2222 }
2228 }
2223 }
2229 }
2224 if (result) { Py_DECREF(result); }
2230 if (result) { Py_DECREF(result); }
2225 Py_DECREF(obj);
2231 Py_DECREF(obj);
2226 return returnValue;
2232 return returnValue;
2227 }
2233 }
2228 }
2234 }
2229 return QHexEdit::viewportSizeHint();
2235 return QHexEdit::viewportSizeHint();
2230 }
2236 }
2231 void PythonQtShell_QHexEdit::wheelEvent(QWheelEvent* arg__1)
2237 void PythonQtShell_QHexEdit::wheelEvent(QWheelEvent* arg__1)
2232 {
2238 {
2233 if (_wrapper) {
2239 if (_wrapper) {
2234 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
2240 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
2235 PyErr_Clear();
2241 PyErr_Clear();
2236 if (obj && !PythonQtSlotFunction_Check(obj)) {
2242 if (obj && !PythonQtSlotFunction_Check(obj)) {
2237 static const char* argumentList[] ={"" , "QWheelEvent*"};
2243 static const char* argumentList[] ={"" , "QWheelEvent*"};
2238 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2244 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2239 void* args[2] = {NULL, (void*)&arg__1};
2245 void* args[2] = {NULL, (void*)&arg__1};
2240 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2246 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2241 if (result) { Py_DECREF(result); }
2247 if (result) { Py_DECREF(result); }
2242 Py_DECREF(obj);
2248 Py_DECREF(obj);
2243 return;
2249 return;
2244 }
2250 }
2245 }
2251 }
2246 QHexEdit::wheelEvent(arg__1);
2252 QHexEdit::wheelEvent(arg__1);
2247 }
2253 }
2248 QHexEdit* PythonQtWrapper_QHexEdit::new_QHexEdit(QWidget* parent)
2254 QHexEdit* PythonQtWrapper_QHexEdit::new_QHexEdit(QWidget* parent)
2249 {
2255 {
2250 return new PythonQtShell_QHexEdit(parent); }
2256 return new PythonQtShell_QHexEdit(parent); }
2251
2257
2252 QColor PythonQtWrapper_QHexEdit::addressAreaColor(QHexEdit* theWrappedObject)
2258 QColor PythonQtWrapper_QHexEdit::addressAreaColor(QHexEdit* theWrappedObject)
2253 {
2259 {
2254 return ( theWrappedObject->addressAreaColor());
2260 return ( theWrappedObject->addressAreaColor());
2255 }
2261 }
2256
2262
2257 int PythonQtWrapper_QHexEdit::addressOffset(QHexEdit* theWrappedObject)
2263 int PythonQtWrapper_QHexEdit::addressOffset(QHexEdit* theWrappedObject)
2258 {
2264 {
2259 return ( theWrappedObject->addressOffset());
2265 return ( theWrappedObject->addressOffset());
2260 }
2266 }
2261
2267
2262 int PythonQtWrapper_QHexEdit::cursorPosition(QHexEdit* theWrappedObject)
2268 int PythonQtWrapper_QHexEdit::cursorPosition(QHexEdit* theWrappedObject)
2263 {
2269 {
2264 return ( theWrappedObject->cursorPosition());
2270 return ( theWrappedObject->cursorPosition());
2265 }
2271 }
2266
2272
2267 QByteArray PythonQtWrapper_QHexEdit::data(QHexEdit* theWrappedObject)
2273 QByteArray PythonQtWrapper_QHexEdit::data(QHexEdit* theWrappedObject)
2268 {
2274 {
2269 return ( theWrappedObject->data());
2275 return ( theWrappedObject->data());
2270 }
2276 }
2271
2277
2272 const QFont* PythonQtWrapper_QHexEdit::font(QHexEdit* theWrappedObject) const
2278 const QFont* PythonQtWrapper_QHexEdit::font(QHexEdit* theWrappedObject) const
2273 {
2279 {
2274 return &( theWrappedObject->font());
2280 return &( theWrappedObject->font());
2275 }
2281 }
2276
2282
2283 int PythonQtWrapper_QHexEdit::getSelectionBegin(QHexEdit* theWrappedObject)
2284 {
2285 return ( theWrappedObject->getSelectionBegin());
2286 }
2287
2288 int PythonQtWrapper_QHexEdit::getSelectionEnd(QHexEdit* theWrappedObject)
2289 {
2290 return ( theWrappedObject->getSelectionEnd());
2291 }
2292
2277 QColor PythonQtWrapper_QHexEdit::highlightingColor(QHexEdit* theWrappedObject)
2293 QColor PythonQtWrapper_QHexEdit::highlightingColor(QHexEdit* theWrappedObject)
2278 {
2294 {
2279 return ( theWrappedObject->highlightingColor());
2295 return ( theWrappedObject->highlightingColor());
2280 }
2296 }
2281
2297
2282 int PythonQtWrapper_QHexEdit::indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from) const
2298 int PythonQtWrapper_QHexEdit::indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from) const
2283 {
2299 {
2284 return ( theWrappedObject->indexOf(ba, from));
2300 return ( theWrappedObject->indexOf(ba, from));
2285 }
2301 }
2286
2302
2287 void PythonQtWrapper_QHexEdit::insert(QHexEdit* theWrappedObject, int i, char ch)
2303 void PythonQtWrapper_QHexEdit::insert(QHexEdit* theWrappedObject, int i, char ch)
2288 {
2304 {
2289 ( theWrappedObject->insert(i, ch));
2305 ( theWrappedObject->insert(i, ch));
2290 }
2306 }
2291
2307
2292 void PythonQtWrapper_QHexEdit::insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba)
2308 void PythonQtWrapper_QHexEdit::insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba)
2293 {
2309 {
2294 ( theWrappedObject->insert(i, ba));
2310 ( theWrappedObject->insert(i, ba));
2295 }
2311 }
2296
2312
2297 bool PythonQtWrapper_QHexEdit::isReadOnly(QHexEdit* theWrappedObject)
2313 bool PythonQtWrapper_QHexEdit::isReadOnly(QHexEdit* theWrappedObject)
2298 {
2314 {
2299 return ( theWrappedObject->isReadOnly());
2315 return ( theWrappedObject->isReadOnly());
2300 }
2316 }
2301
2317
2302 int PythonQtWrapper_QHexEdit::lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from) const
2318 int PythonQtWrapper_QHexEdit::lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from) const
2303 {
2319 {
2304 return ( theWrappedObject->lastIndexOf(ba, from));
2320 return ( theWrappedObject->lastIndexOf(ba, from));
2305 }
2321 }
2306
2322
2307 bool PythonQtWrapper_QHexEdit::overwriteMode(QHexEdit* theWrappedObject)
2323 bool PythonQtWrapper_QHexEdit::overwriteMode(QHexEdit* theWrappedObject)
2308 {
2324 {
2309 return ( theWrappedObject->overwriteMode());
2325 return ( theWrappedObject->overwriteMode());
2310 }
2326 }
2311
2327
2312 void PythonQtWrapper_QHexEdit::remove(QHexEdit* theWrappedObject, int pos, int len)
2328 void PythonQtWrapper_QHexEdit::remove(QHexEdit* theWrappedObject, int pos, int len)
2313 {
2329 {
2314 ( theWrappedObject->remove(pos, len));
2330 ( theWrappedObject->remove(pos, len));
2315 }
2331 }
2316
2332
2317 void PythonQtWrapper_QHexEdit::replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after)
2333 void PythonQtWrapper_QHexEdit::replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after)
2318 {
2334 {
2319 ( theWrappedObject->replace(pos, len, after));
2335 ( theWrappedObject->replace(pos, len, after));
2320 }
2336 }
2321
2337
2338 void PythonQtWrapper_QHexEdit::resetSelection(QHexEdit* theWrappedObject)
2339 {
2340 ( theWrappedObject->resetSelection());
2341 }
2342
2343 void PythonQtWrapper_QHexEdit::resetSelection(QHexEdit* theWrappedObject, int pos)
2344 {
2345 ( theWrappedObject->resetSelection(pos));
2346 }
2347
2322 QColor PythonQtWrapper_QHexEdit::selectionColor(QHexEdit* theWrappedObject)
2348 QColor PythonQtWrapper_QHexEdit::selectionColor(QHexEdit* theWrappedObject)
2323 {
2349 {
2324 return ( theWrappedObject->selectionColor());
2350 return ( theWrappedObject->selectionColor());
2325 }
2351 }
2326
2352
2327 QString PythonQtWrapper_QHexEdit::selectionToReadableString(QHexEdit* theWrappedObject)
2353 QString PythonQtWrapper_QHexEdit::selectionToReadableString(QHexEdit* theWrappedObject)
2328 {
2354 {
2329 return ( theWrappedObject->selectionToReadableString());
2355 return ( theWrappedObject->selectionToReadableString());
2330 }
2356 }
2331
2357
2332 void PythonQtWrapper_QHexEdit::setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color)
2358 void PythonQtWrapper_QHexEdit::setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color)
2333 {
2359 {
2334 ( theWrappedObject->setAddressAreaColor(color));
2360 ( theWrappedObject->setAddressAreaColor(color));
2335 }
2361 }
2336
2362
2337 void PythonQtWrapper_QHexEdit::setAddressOffset(QHexEdit* theWrappedObject, int offset)
2363 void PythonQtWrapper_QHexEdit::setAddressOffset(QHexEdit* theWrappedObject, int offset)
2338 {
2364 {
2339 ( theWrappedObject->setAddressOffset(offset));
2365 ( theWrappedObject->setAddressOffset(offset));
2340 }
2366 }
2341
2367
2342 void PythonQtWrapper_QHexEdit::setCursorPosition(QHexEdit* theWrappedObject, int cusorPos)
2368 void PythonQtWrapper_QHexEdit::setCursorPosition(QHexEdit* theWrappedObject, int cusorPos)
2343 {
2369 {
2344 ( theWrappedObject->setCursorPosition(cusorPos));
2370 ( theWrappedObject->setCursorPosition(cusorPos));
2345 }
2371 }
2346
2372
2347 void PythonQtWrapper_QHexEdit::setData(QHexEdit* theWrappedObject, const QByteArray& data)
2373 void PythonQtWrapper_QHexEdit::setData(QHexEdit* theWrappedObject, const QByteArray& data)
2348 {
2374 {
2349 ( theWrappedObject->setData(data));
2375 ( theWrappedObject->setData(data));
2350 }
2376 }
2351
2377
2352 void PythonQtWrapper_QHexEdit::setFont(QHexEdit* theWrappedObject, const QFont& arg__1)
2378 void PythonQtWrapper_QHexEdit::setFont(QHexEdit* theWrappedObject, const QFont& arg__1)
2353 {
2379 {
2354 ( theWrappedObject->setFont(arg__1));
2380 ( theWrappedObject->setFont(arg__1));
2355 }
2381 }
2356
2382
2357 void PythonQtWrapper_QHexEdit::setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color)
2383 void PythonQtWrapper_QHexEdit::setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color)
2358 {
2384 {
2359 ( theWrappedObject->setHighlightingColor(color));
2385 ( theWrappedObject->setHighlightingColor(color));
2360 }
2386 }
2361
2387
2362 void PythonQtWrapper_QHexEdit::setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1)
2388 void PythonQtWrapper_QHexEdit::setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1)
2363 {
2389 {
2364 ( theWrappedObject->setOverwriteMode(arg__1));
2390 ( theWrappedObject->setOverwriteMode(arg__1));
2365 }
2391 }
2366
2392
2367 void PythonQtWrapper_QHexEdit::setReadOnly(QHexEdit* theWrappedObject, bool arg__1)
2393 void PythonQtWrapper_QHexEdit::setReadOnly(QHexEdit* theWrappedObject, bool arg__1)
2368 {
2394 {
2369 ( theWrappedObject->setReadOnly(arg__1));
2395 ( theWrappedObject->setReadOnly(arg__1));
2370 }
2396 }
2371
2397
2398 void PythonQtWrapper_QHexEdit::setSelection(QHexEdit* theWrappedObject, int pos)
2399 {
2400 ( theWrappedObject->setSelection(pos));
2401 }
2402
2372 void PythonQtWrapper_QHexEdit::setSelectionColor(QHexEdit* theWrappedObject, const QColor& color)
2403 void PythonQtWrapper_QHexEdit::setSelectionColor(QHexEdit* theWrappedObject, const QColor& color)
2373 {
2404 {
2374 ( theWrappedObject->setSelectionColor(color));
2405 ( theWrappedObject->setSelectionColor(color));
2375 }
2406 }
2376
2407
2377 QString PythonQtWrapper_QHexEdit::toReadableString(QHexEdit* theWrappedObject)
2408 QString PythonQtWrapper_QHexEdit::toReadableString(QHexEdit* theWrappedObject)
2378 {
2409 {
2379 return ( theWrappedObject->toReadableString());
2410 return ( theWrappedObject->toReadableString());
2380 }
2411 }
2381
2412
2382
2413
2383
2414
2384 PythonQtShell_QHexSpinBox::~PythonQtShell_QHexSpinBox() {
2415 PythonQtShell_QHexSpinBox::~PythonQtShell_QHexSpinBox() {
2385 PythonQtPrivate* priv = PythonQt::priv();
2416 PythonQtPrivate* priv = PythonQt::priv();
2386 if (priv) { priv->shellClassDeleted(this); }
2417 if (priv) { priv->shellClassDeleted(this); }
2387 }
2418 }
2388 void PythonQtShell_QHexSpinBox::actionEvent(QActionEvent* arg__1)
2419 void PythonQtShell_QHexSpinBox::actionEvent(QActionEvent* arg__1)
2389 {
2420 {
2390 if (_wrapper) {
2421 if (_wrapper) {
2391 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
2422 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
2392 PyErr_Clear();
2423 PyErr_Clear();
2393 if (obj && !PythonQtSlotFunction_Check(obj)) {
2424 if (obj && !PythonQtSlotFunction_Check(obj)) {
2394 static const char* argumentList[] ={"" , "QActionEvent*"};
2425 static const char* argumentList[] ={"" , "QActionEvent*"};
2395 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2426 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2396 void* args[2] = {NULL, (void*)&arg__1};
2427 void* args[2] = {NULL, (void*)&arg__1};
2397 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2428 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2398 if (result) { Py_DECREF(result); }
2429 if (result) { Py_DECREF(result); }
2399 Py_DECREF(obj);
2430 Py_DECREF(obj);
2400 return;
2431 return;
2401 }
2432 }
2402 }
2433 }
2403 QHexSpinBox::actionEvent(arg__1);
2434 QHexSpinBox::actionEvent(arg__1);
2404 }
2435 }
2405 void PythonQtShell_QHexSpinBox::changeEvent(QEvent* event)
2436 void PythonQtShell_QHexSpinBox::changeEvent(QEvent* event)
2406 {
2437 {
2407 if (_wrapper) {
2438 if (_wrapper) {
2408 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
2439 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
2409 PyErr_Clear();
2440 PyErr_Clear();
2410 if (obj && !PythonQtSlotFunction_Check(obj)) {
2441 if (obj && !PythonQtSlotFunction_Check(obj)) {
2411 static const char* argumentList[] ={"" , "QEvent*"};
2442 static const char* argumentList[] ={"" , "QEvent*"};
2412 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2443 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2413 void* args[2] = {NULL, (void*)&event};
2444 void* args[2] = {NULL, (void*)&event};
2414 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2445 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2415 if (result) { Py_DECREF(result); }
2446 if (result) { Py_DECREF(result); }
2416 Py_DECREF(obj);
2447 Py_DECREF(obj);
2417 return;
2448 return;
2418 }
2449 }
2419 }
2450 }
2420 QHexSpinBox::changeEvent(event);
2451 QHexSpinBox::changeEvent(event);
2421 }
2452 }
2422 void PythonQtShell_QHexSpinBox::childEvent(QChildEvent* arg__1)
2453 void PythonQtShell_QHexSpinBox::childEvent(QChildEvent* arg__1)
2423 {
2454 {
2424 if (_wrapper) {
2455 if (_wrapper) {
2425 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
2456 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
2426 PyErr_Clear();
2457 PyErr_Clear();
2427 if (obj && !PythonQtSlotFunction_Check(obj)) {
2458 if (obj && !PythonQtSlotFunction_Check(obj)) {
2428 static const char* argumentList[] ={"" , "QChildEvent*"};
2459 static const char* argumentList[] ={"" , "QChildEvent*"};
2429 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2460 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2430 void* args[2] = {NULL, (void*)&arg__1};
2461 void* args[2] = {NULL, (void*)&arg__1};
2431 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2462 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2432 if (result) { Py_DECREF(result); }
2463 if (result) { Py_DECREF(result); }
2433 Py_DECREF(obj);
2464 Py_DECREF(obj);
2434 return;
2465 return;
2435 }
2466 }
2436 }
2467 }
2437 QHexSpinBox::childEvent(arg__1);
2468 QHexSpinBox::childEvent(arg__1);
2438 }
2469 }
2439 void PythonQtShell_QHexSpinBox::clear()
2470 void PythonQtShell_QHexSpinBox::clear()
2440 {
2471 {
2441 if (_wrapper) {
2472 if (_wrapper) {
2442 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear");
2473 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear");
2443 PyErr_Clear();
2474 PyErr_Clear();
2444 if (obj && !PythonQtSlotFunction_Check(obj)) {
2475 if (obj && !PythonQtSlotFunction_Check(obj)) {
2445 static const char* argumentList[] ={""};
2476 static const char* argumentList[] ={""};
2446 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2477 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2447 void* args[1] = {NULL};
2478 void* args[1] = {NULL};
2448 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2479 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2449 if (result) { Py_DECREF(result); }
2480 if (result) { Py_DECREF(result); }
2450 Py_DECREF(obj);
2481 Py_DECREF(obj);
2451 return;
2482 return;
2452 }
2483 }
2453 }
2484 }
2454 QHexSpinBox::clear();
2485 QHexSpinBox::clear();
2455 }
2486 }
2456 void PythonQtShell_QHexSpinBox::closeEvent(QCloseEvent* event)
2487 void PythonQtShell_QHexSpinBox::closeEvent(QCloseEvent* event)
2457 {
2488 {
2458 if (_wrapper) {
2489 if (_wrapper) {
2459 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
2490 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
2460 PyErr_Clear();
2491 PyErr_Clear();
2461 if (obj && !PythonQtSlotFunction_Check(obj)) {
2492 if (obj && !PythonQtSlotFunction_Check(obj)) {
2462 static const char* argumentList[] ={"" , "QCloseEvent*"};
2493 static const char* argumentList[] ={"" , "QCloseEvent*"};
2463 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2494 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2464 void* args[2] = {NULL, (void*)&event};
2495 void* args[2] = {NULL, (void*)&event};
2465 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2496 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2466 if (result) { Py_DECREF(result); }
2497 if (result) { Py_DECREF(result); }
2467 Py_DECREF(obj);
2498 Py_DECREF(obj);
2468 return;
2499 return;
2469 }
2500 }
2470 }
2501 }
2471 QHexSpinBox::closeEvent(event);
2502 QHexSpinBox::closeEvent(event);
2472 }
2503 }
2473 void PythonQtShell_QHexSpinBox::contextMenuEvent(QContextMenuEvent* event)
2504 void PythonQtShell_QHexSpinBox::contextMenuEvent(QContextMenuEvent* event)
2474 {
2505 {
2475 if (_wrapper) {
2506 if (_wrapper) {
2476 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
2507 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
2477 PyErr_Clear();
2508 PyErr_Clear();
2478 if (obj && !PythonQtSlotFunction_Check(obj)) {
2509 if (obj && !PythonQtSlotFunction_Check(obj)) {
2479 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
2510 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
2480 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2511 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2481 void* args[2] = {NULL, (void*)&event};
2512 void* args[2] = {NULL, (void*)&event};
2482 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2513 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2483 if (result) { Py_DECREF(result); }
2514 if (result) { Py_DECREF(result); }
2484 Py_DECREF(obj);
2515 Py_DECREF(obj);
2485 return;
2516 return;
2486 }
2517 }
2487 }
2518 }
2488 QHexSpinBox::contextMenuEvent(event);
2519 QHexSpinBox::contextMenuEvent(event);
2489 }
2520 }
2490 void PythonQtShell_QHexSpinBox::customEvent(QEvent* arg__1)
2521 void PythonQtShell_QHexSpinBox::customEvent(QEvent* arg__1)
2491 {
2522 {
2492 if (_wrapper) {
2523 if (_wrapper) {
2493 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
2524 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
2494 PyErr_Clear();
2525 PyErr_Clear();
2495 if (obj && !PythonQtSlotFunction_Check(obj)) {
2526 if (obj && !PythonQtSlotFunction_Check(obj)) {
2496 static const char* argumentList[] ={"" , "QEvent*"};
2527 static const char* argumentList[] ={"" , "QEvent*"};
2497 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2528 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2498 void* args[2] = {NULL, (void*)&arg__1};
2529 void* args[2] = {NULL, (void*)&arg__1};
2499 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2530 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2500 if (result) { Py_DECREF(result); }
2531 if (result) { Py_DECREF(result); }
2501 Py_DECREF(obj);
2532 Py_DECREF(obj);
2502 return;
2533 return;
2503 }
2534 }
2504 }
2535 }
2505 QHexSpinBox::customEvent(arg__1);
2536 QHexSpinBox::customEvent(arg__1);
2506 }
2537 }
2507 int PythonQtShell_QHexSpinBox::devType() const
2538 int PythonQtShell_QHexSpinBox::devType() const
2508 {
2539 {
2509 if (_wrapper) {
2540 if (_wrapper) {
2510 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
2541 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
2511 PyErr_Clear();
2542 PyErr_Clear();
2512 if (obj && !PythonQtSlotFunction_Check(obj)) {
2543 if (obj && !PythonQtSlotFunction_Check(obj)) {
2513 static const char* argumentList[] ={"int"};
2544 static const char* argumentList[] ={"int"};
2514 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2545 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2515 int returnValue;
2546 int returnValue;
2516 void* args[1] = {NULL};
2547 void* args[1] = {NULL};
2517 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2548 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2518 if (result) {
2549 if (result) {
2519 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2550 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2520 if (args[0]!=&returnValue) {
2551 if (args[0]!=&returnValue) {
2521 if (args[0]==NULL) {
2552 if (args[0]==NULL) {
2522 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
2553 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
2523 } else {
2554 } else {
2524 returnValue = *((int*)args[0]);
2555 returnValue = *((int*)args[0]);
2525 }
2556 }
2526 }
2557 }
2527 }
2558 }
2528 if (result) { Py_DECREF(result); }
2559 if (result) { Py_DECREF(result); }
2529 Py_DECREF(obj);
2560 Py_DECREF(obj);
2530 return returnValue;
2561 return returnValue;
2531 }
2562 }
2532 }
2563 }
2533 return QHexSpinBox::devType();
2564 return QHexSpinBox::devType();
2534 }
2565 }
2535 void PythonQtShell_QHexSpinBox::dragEnterEvent(QDragEnterEvent* arg__1)
2566 void PythonQtShell_QHexSpinBox::dragEnterEvent(QDragEnterEvent* arg__1)
2536 {
2567 {
2537 if (_wrapper) {
2568 if (_wrapper) {
2538 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
2569 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
2539 PyErr_Clear();
2570 PyErr_Clear();
2540 if (obj && !PythonQtSlotFunction_Check(obj)) {
2571 if (obj && !PythonQtSlotFunction_Check(obj)) {
2541 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
2572 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
2542 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2573 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2543 void* args[2] = {NULL, (void*)&arg__1};
2574 void* args[2] = {NULL, (void*)&arg__1};
2544 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2575 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2545 if (result) { Py_DECREF(result); }
2576 if (result) { Py_DECREF(result); }
2546 Py_DECREF(obj);
2577 Py_DECREF(obj);
2547 return;
2578 return;
2548 }
2579 }
2549 }
2580 }
2550 QHexSpinBox::dragEnterEvent(arg__1);
2581 QHexSpinBox::dragEnterEvent(arg__1);
2551 }
2582 }
2552 void PythonQtShell_QHexSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1)
2583 void PythonQtShell_QHexSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1)
2553 {
2584 {
2554 if (_wrapper) {
2585 if (_wrapper) {
2555 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
2586 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
2556 PyErr_Clear();
2587 PyErr_Clear();
2557 if (obj && !PythonQtSlotFunction_Check(obj)) {
2588 if (obj && !PythonQtSlotFunction_Check(obj)) {
2558 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
2589 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
2559 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2590 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2560 void* args[2] = {NULL, (void*)&arg__1};
2591 void* args[2] = {NULL, (void*)&arg__1};
2561 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2592 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2562 if (result) { Py_DECREF(result); }
2593 if (result) { Py_DECREF(result); }
2563 Py_DECREF(obj);
2594 Py_DECREF(obj);
2564 return;
2595 return;
2565 }
2596 }
2566 }
2597 }
2567 QHexSpinBox::dragLeaveEvent(arg__1);
2598 QHexSpinBox::dragLeaveEvent(arg__1);
2568 }
2599 }
2569 void PythonQtShell_QHexSpinBox::dragMoveEvent(QDragMoveEvent* arg__1)
2600 void PythonQtShell_QHexSpinBox::dragMoveEvent(QDragMoveEvent* arg__1)
2570 {
2601 {
2571 if (_wrapper) {
2602 if (_wrapper) {
2572 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
2603 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
2573 PyErr_Clear();
2604 PyErr_Clear();
2574 if (obj && !PythonQtSlotFunction_Check(obj)) {
2605 if (obj && !PythonQtSlotFunction_Check(obj)) {
2575 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
2606 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
2576 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2607 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2577 void* args[2] = {NULL, (void*)&arg__1};
2608 void* args[2] = {NULL, (void*)&arg__1};
2578 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2609 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2579 if (result) { Py_DECREF(result); }
2610 if (result) { Py_DECREF(result); }
2580 Py_DECREF(obj);
2611 Py_DECREF(obj);
2581 return;
2612 return;
2582 }
2613 }
2583 }
2614 }
2584 QHexSpinBox::dragMoveEvent(arg__1);
2615 QHexSpinBox::dragMoveEvent(arg__1);
2585 }
2616 }
2586 void PythonQtShell_QHexSpinBox::dropEvent(QDropEvent* arg__1)
2617 void PythonQtShell_QHexSpinBox::dropEvent(QDropEvent* arg__1)
2587 {
2618 {
2588 if (_wrapper) {
2619 if (_wrapper) {
2589 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
2620 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
2590 PyErr_Clear();
2621 PyErr_Clear();
2591 if (obj && !PythonQtSlotFunction_Check(obj)) {
2622 if (obj && !PythonQtSlotFunction_Check(obj)) {
2592 static const char* argumentList[] ={"" , "QDropEvent*"};
2623 static const char* argumentList[] ={"" , "QDropEvent*"};
2593 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2624 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2594 void* args[2] = {NULL, (void*)&arg__1};
2625 void* args[2] = {NULL, (void*)&arg__1};
2595 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2626 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2596 if (result) { Py_DECREF(result); }
2627 if (result) { Py_DECREF(result); }
2597 Py_DECREF(obj);
2628 Py_DECREF(obj);
2598 return;
2629 return;
2599 }
2630 }
2600 }
2631 }
2601 QHexSpinBox::dropEvent(arg__1);
2632 QHexSpinBox::dropEvent(arg__1);
2602 }
2633 }
2603 void PythonQtShell_QHexSpinBox::enterEvent(QEvent* arg__1)
2634 void PythonQtShell_QHexSpinBox::enterEvent(QEvent* arg__1)
2604 {
2635 {
2605 if (_wrapper) {
2636 if (_wrapper) {
2606 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
2637 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
2607 PyErr_Clear();
2638 PyErr_Clear();
2608 if (obj && !PythonQtSlotFunction_Check(obj)) {
2639 if (obj && !PythonQtSlotFunction_Check(obj)) {
2609 static const char* argumentList[] ={"" , "QEvent*"};
2640 static const char* argumentList[] ={"" , "QEvent*"};
2610 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2641 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2611 void* args[2] = {NULL, (void*)&arg__1};
2642 void* args[2] = {NULL, (void*)&arg__1};
2612 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2643 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2613 if (result) { Py_DECREF(result); }
2644 if (result) { Py_DECREF(result); }
2614 Py_DECREF(obj);
2645 Py_DECREF(obj);
2615 return;
2646 return;
2616 }
2647 }
2617 }
2648 }
2618 QHexSpinBox::enterEvent(arg__1);
2649 QHexSpinBox::enterEvent(arg__1);
2619 }
2650 }
2620 bool PythonQtShell_QHexSpinBox::event(QEvent* event)
2651 bool PythonQtShell_QHexSpinBox::event(QEvent* event)
2621 {
2652 {
2622 if (_wrapper) {
2653 if (_wrapper) {
2623 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
2654 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
2624 PyErr_Clear();
2655 PyErr_Clear();
2625 if (obj && !PythonQtSlotFunction_Check(obj)) {
2656 if (obj && !PythonQtSlotFunction_Check(obj)) {
2626 static const char* argumentList[] ={"bool" , "QEvent*"};
2657 static const char* argumentList[] ={"bool" , "QEvent*"};
2627 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2658 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2628 bool returnValue;
2659 bool returnValue;
2629 void* args[2] = {NULL, (void*)&event};
2660 void* args[2] = {NULL, (void*)&event};
2630 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2661 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2631 if (result) {
2662 if (result) {
2632 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2663 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2633 if (args[0]!=&returnValue) {
2664 if (args[0]!=&returnValue) {
2634 if (args[0]==NULL) {
2665 if (args[0]==NULL) {
2635 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
2666 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
2636 } else {
2667 } else {
2637 returnValue = *((bool*)args[0]);
2668 returnValue = *((bool*)args[0]);
2638 }
2669 }
2639 }
2670 }
2640 }
2671 }
2641 if (result) { Py_DECREF(result); }
2672 if (result) { Py_DECREF(result); }
2642 Py_DECREF(obj);
2673 Py_DECREF(obj);
2643 return returnValue;
2674 return returnValue;
2644 }
2675 }
2645 }
2676 }
2646 return QHexSpinBox::event(event);
2677 return QHexSpinBox::event(event);
2647 }
2678 }
2648 bool PythonQtShell_QHexSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2)
2679 bool PythonQtShell_QHexSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2)
2649 {
2680 {
2650 if (_wrapper) {
2681 if (_wrapper) {
2651 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
2682 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
2652 PyErr_Clear();
2683 PyErr_Clear();
2653 if (obj && !PythonQtSlotFunction_Check(obj)) {
2684 if (obj && !PythonQtSlotFunction_Check(obj)) {
2654 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
2685 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
2655 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
2686 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
2656 bool returnValue;
2687 bool returnValue;
2657 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
2688 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
2658 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2689 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2659 if (result) {
2690 if (result) {
2660 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2691 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2661 if (args[0]!=&returnValue) {
2692 if (args[0]!=&returnValue) {
2662 if (args[0]==NULL) {
2693 if (args[0]==NULL) {
2663 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
2694 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
2664 } else {
2695 } else {
2665 returnValue = *((bool*)args[0]);
2696 returnValue = *((bool*)args[0]);
2666 }
2697 }
2667 }
2698 }
2668 }
2699 }
2669 if (result) { Py_DECREF(result); }
2700 if (result) { Py_DECREF(result); }
2670 Py_DECREF(obj);
2701 Py_DECREF(obj);
2671 return returnValue;
2702 return returnValue;
2672 }
2703 }
2673 }
2704 }
2674 return QHexSpinBox::eventFilter(arg__1, arg__2);
2705 return QHexSpinBox::eventFilter(arg__1, arg__2);
2675 }
2706 }
2676 void PythonQtShell_QHexSpinBox::fixup(QString& str) const
2707 void PythonQtShell_QHexSpinBox::fixup(QString& str) const
2677 {
2708 {
2678 if (_wrapper) {
2709 if (_wrapper) {
2679 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup");
2710 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup");
2680 PyErr_Clear();
2711 PyErr_Clear();
2681 if (obj && !PythonQtSlotFunction_Check(obj)) {
2712 if (obj && !PythonQtSlotFunction_Check(obj)) {
2682 static const char* argumentList[] ={"" , "QString&"};
2713 static const char* argumentList[] ={"" , "QString&"};
2683 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2714 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2684 void* args[2] = {NULL, (void*)&str};
2715 void* args[2] = {NULL, (void*)&str};
2685 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2716 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2686 if (result) { Py_DECREF(result); }
2717 if (result) { Py_DECREF(result); }
2687 Py_DECREF(obj);
2718 Py_DECREF(obj);
2688 return;
2719 return;
2689 }
2720 }
2690 }
2721 }
2691 QHexSpinBox::fixup(str);
2722 QHexSpinBox::fixup(str);
2692 }
2723 }
2693 void PythonQtShell_QHexSpinBox::focusInEvent(QFocusEvent* event)
2724 void PythonQtShell_QHexSpinBox::focusInEvent(QFocusEvent* event)
2694 {
2725 {
2695 if (_wrapper) {
2726 if (_wrapper) {
2696 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
2727 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
2697 PyErr_Clear();
2728 PyErr_Clear();
2698 if (obj && !PythonQtSlotFunction_Check(obj)) {
2729 if (obj && !PythonQtSlotFunction_Check(obj)) {
2699 static const char* argumentList[] ={"" , "QFocusEvent*"};
2730 static const char* argumentList[] ={"" , "QFocusEvent*"};
2700 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2731 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2701 void* args[2] = {NULL, (void*)&event};
2732 void* args[2] = {NULL, (void*)&event};
2702 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2733 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2703 if (result) { Py_DECREF(result); }
2734 if (result) { Py_DECREF(result); }
2704 Py_DECREF(obj);
2735 Py_DECREF(obj);
2705 return;
2736 return;
2706 }
2737 }
2707 }
2738 }
2708 QHexSpinBox::focusInEvent(event);
2739 QHexSpinBox::focusInEvent(event);
2709 }
2740 }
2710 bool PythonQtShell_QHexSpinBox::focusNextPrevChild(bool next)
2741 bool PythonQtShell_QHexSpinBox::focusNextPrevChild(bool next)
2711 {
2742 {
2712 if (_wrapper) {
2743 if (_wrapper) {
2713 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
2744 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
2714 PyErr_Clear();
2745 PyErr_Clear();
2715 if (obj && !PythonQtSlotFunction_Check(obj)) {
2746 if (obj && !PythonQtSlotFunction_Check(obj)) {
2716 static const char* argumentList[] ={"bool" , "bool"};
2747 static const char* argumentList[] ={"bool" , "bool"};
2717 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2748 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2718 bool returnValue;
2749 bool returnValue;
2719 void* args[2] = {NULL, (void*)&next};
2750 void* args[2] = {NULL, (void*)&next};
2720 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2751 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2721 if (result) {
2752 if (result) {
2722 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2753 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2723 if (args[0]!=&returnValue) {
2754 if (args[0]!=&returnValue) {
2724 if (args[0]==NULL) {
2755 if (args[0]==NULL) {
2725 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
2756 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
2726 } else {
2757 } else {
2727 returnValue = *((bool*)args[0]);
2758 returnValue = *((bool*)args[0]);
2728 }
2759 }
2729 }
2760 }
2730 }
2761 }
2731 if (result) { Py_DECREF(result); }
2762 if (result) { Py_DECREF(result); }
2732 Py_DECREF(obj);
2763 Py_DECREF(obj);
2733 return returnValue;
2764 return returnValue;
2734 }
2765 }
2735 }
2766 }
2736 return QHexSpinBox::focusNextPrevChild(next);
2767 return QHexSpinBox::focusNextPrevChild(next);
2737 }
2768 }
2738 void PythonQtShell_QHexSpinBox::focusOutEvent(QFocusEvent* event)
2769 void PythonQtShell_QHexSpinBox::focusOutEvent(QFocusEvent* event)
2739 {
2770 {
2740 if (_wrapper) {
2771 if (_wrapper) {
2741 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
2772 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
2742 PyErr_Clear();
2773 PyErr_Clear();
2743 if (obj && !PythonQtSlotFunction_Check(obj)) {
2774 if (obj && !PythonQtSlotFunction_Check(obj)) {
2744 static const char* argumentList[] ={"" , "QFocusEvent*"};
2775 static const char* argumentList[] ={"" , "QFocusEvent*"};
2745 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2776 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2746 void* args[2] = {NULL, (void*)&event};
2777 void* args[2] = {NULL, (void*)&event};
2747 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2778 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2748 if (result) { Py_DECREF(result); }
2779 if (result) { Py_DECREF(result); }
2749 Py_DECREF(obj);
2780 Py_DECREF(obj);
2750 return;
2781 return;
2751 }
2782 }
2752 }
2783 }
2753 QHexSpinBox::focusOutEvent(event);
2784 QHexSpinBox::focusOutEvent(event);
2754 }
2785 }
2755 bool PythonQtShell_QHexSpinBox::hasHeightForWidth() const
2786 bool PythonQtShell_QHexSpinBox::hasHeightForWidth() const
2756 {
2787 {
2757 if (_wrapper) {
2788 if (_wrapper) {
2758 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
2789 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
2759 PyErr_Clear();
2790 PyErr_Clear();
2760 if (obj && !PythonQtSlotFunction_Check(obj)) {
2791 if (obj && !PythonQtSlotFunction_Check(obj)) {
2761 static const char* argumentList[] ={"bool"};
2792 static const char* argumentList[] ={"bool"};
2762 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2793 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
2763 bool returnValue;
2794 bool returnValue;
2764 void* args[1] = {NULL};
2795 void* args[1] = {NULL};
2765 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2796 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2766 if (result) {
2797 if (result) {
2767 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2798 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2768 if (args[0]!=&returnValue) {
2799 if (args[0]!=&returnValue) {
2769 if (args[0]==NULL) {
2800 if (args[0]==NULL) {
2770 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
2801 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
2771 } else {
2802 } else {
2772 returnValue = *((bool*)args[0]);
2803 returnValue = *((bool*)args[0]);
2773 }
2804 }
2774 }
2805 }
2775 }
2806 }
2776 if (result) { Py_DECREF(result); }
2807 if (result) { Py_DECREF(result); }
2777 Py_DECREF(obj);
2808 Py_DECREF(obj);
2778 return returnValue;
2809 return returnValue;
2779 }
2810 }
2780 }
2811 }
2781 return QHexSpinBox::hasHeightForWidth();
2812 return QHexSpinBox::hasHeightForWidth();
2782 }
2813 }
2783 int PythonQtShell_QHexSpinBox::heightForWidth(int arg__1) const
2814 int PythonQtShell_QHexSpinBox::heightForWidth(int arg__1) const
2784 {
2815 {
2785 if (_wrapper) {
2816 if (_wrapper) {
2786 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
2817 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
2787 PyErr_Clear();
2818 PyErr_Clear();
2788 if (obj && !PythonQtSlotFunction_Check(obj)) {
2819 if (obj && !PythonQtSlotFunction_Check(obj)) {
2789 static const char* argumentList[] ={"int" , "int"};
2820 static const char* argumentList[] ={"int" , "int"};
2790 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2821 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2791 int returnValue;
2822 int returnValue;
2792 void* args[2] = {NULL, (void*)&arg__1};
2823 void* args[2] = {NULL, (void*)&arg__1};
2793 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2824 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2794 if (result) {
2825 if (result) {
2795 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2826 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2796 if (args[0]!=&returnValue) {
2827 if (args[0]!=&returnValue) {
2797 if (args[0]==NULL) {
2828 if (args[0]==NULL) {
2798 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
2829 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
2799 } else {
2830 } else {
2800 returnValue = *((int*)args[0]);
2831 returnValue = *((int*)args[0]);
2801 }
2832 }
2802 }
2833 }
2803 }
2834 }
2804 if (result) { Py_DECREF(result); }
2835 if (result) { Py_DECREF(result); }
2805 Py_DECREF(obj);
2836 Py_DECREF(obj);
2806 return returnValue;
2837 return returnValue;
2807 }
2838 }
2808 }
2839 }
2809 return QHexSpinBox::heightForWidth(arg__1);
2840 return QHexSpinBox::heightForWidth(arg__1);
2810 }
2841 }
2811 void PythonQtShell_QHexSpinBox::hideEvent(QHideEvent* event)
2842 void PythonQtShell_QHexSpinBox::hideEvent(QHideEvent* event)
2812 {
2843 {
2813 if (_wrapper) {
2844 if (_wrapper) {
2814 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
2845 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
2815 PyErr_Clear();
2846 PyErr_Clear();
2816 if (obj && !PythonQtSlotFunction_Check(obj)) {
2847 if (obj && !PythonQtSlotFunction_Check(obj)) {
2817 static const char* argumentList[] ={"" , "QHideEvent*"};
2848 static const char* argumentList[] ={"" , "QHideEvent*"};
2818 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2849 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2819 void* args[2] = {NULL, (void*)&event};
2850 void* args[2] = {NULL, (void*)&event};
2820 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2851 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2821 if (result) { Py_DECREF(result); }
2852 if (result) { Py_DECREF(result); }
2822 Py_DECREF(obj);
2853 Py_DECREF(obj);
2823 return;
2854 return;
2824 }
2855 }
2825 }
2856 }
2826 QHexSpinBox::hideEvent(event);
2857 QHexSpinBox::hideEvent(event);
2827 }
2858 }
2828 void PythonQtShell_QHexSpinBox::initPainter(QPainter* painter) const
2859 void PythonQtShell_QHexSpinBox::initPainter(QPainter* painter) const
2829 {
2860 {
2830 if (_wrapper) {
2861 if (_wrapper) {
2831 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
2862 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
2832 PyErr_Clear();
2863 PyErr_Clear();
2833 if (obj && !PythonQtSlotFunction_Check(obj)) {
2864 if (obj && !PythonQtSlotFunction_Check(obj)) {
2834 static const char* argumentList[] ={"" , "QPainter*"};
2865 static const char* argumentList[] ={"" , "QPainter*"};
2835 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2866 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2836 void* args[2] = {NULL, (void*)&painter};
2867 void* args[2] = {NULL, (void*)&painter};
2837 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2868 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2838 if (result) { Py_DECREF(result); }
2869 if (result) { Py_DECREF(result); }
2839 Py_DECREF(obj);
2870 Py_DECREF(obj);
2840 return;
2871 return;
2841 }
2872 }
2842 }
2873 }
2843 QHexSpinBox::initPainter(painter);
2874 QHexSpinBox::initPainter(painter);
2844 }
2875 }
2845 void PythonQtShell_QHexSpinBox::inputMethodEvent(QInputMethodEvent* arg__1)
2876 void PythonQtShell_QHexSpinBox::inputMethodEvent(QInputMethodEvent* arg__1)
2846 {
2877 {
2847 if (_wrapper) {
2878 if (_wrapper) {
2848 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
2879 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
2849 PyErr_Clear();
2880 PyErr_Clear();
2850 if (obj && !PythonQtSlotFunction_Check(obj)) {
2881 if (obj && !PythonQtSlotFunction_Check(obj)) {
2851 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
2882 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
2852 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2883 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2853 void* args[2] = {NULL, (void*)&arg__1};
2884 void* args[2] = {NULL, (void*)&arg__1};
2854 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2885 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2855 if (result) { Py_DECREF(result); }
2886 if (result) { Py_DECREF(result); }
2856 Py_DECREF(obj);
2887 Py_DECREF(obj);
2857 return;
2888 return;
2858 }
2889 }
2859 }
2890 }
2860 QHexSpinBox::inputMethodEvent(arg__1);
2891 QHexSpinBox::inputMethodEvent(arg__1);
2861 }
2892 }
2862 QVariant PythonQtShell_QHexSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const
2893 QVariant PythonQtShell_QHexSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const
2863 {
2894 {
2864 if (_wrapper) {
2895 if (_wrapper) {
2865 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
2896 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
2866 PyErr_Clear();
2897 PyErr_Clear();
2867 if (obj && !PythonQtSlotFunction_Check(obj)) {
2898 if (obj && !PythonQtSlotFunction_Check(obj)) {
2868 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
2899 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
2869 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2900 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2870 QVariant returnValue;
2901 QVariant returnValue;
2871 void* args[2] = {NULL, (void*)&arg__1};
2902 void* args[2] = {NULL, (void*)&arg__1};
2872 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2903 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2873 if (result) {
2904 if (result) {
2874 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2905 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2875 if (args[0]!=&returnValue) {
2906 if (args[0]!=&returnValue) {
2876 if (args[0]==NULL) {
2907 if (args[0]==NULL) {
2877 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
2908 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
2878 } else {
2909 } else {
2879 returnValue = *((QVariant*)args[0]);
2910 returnValue = *((QVariant*)args[0]);
2880 }
2911 }
2881 }
2912 }
2882 }
2913 }
2883 if (result) { Py_DECREF(result); }
2914 if (result) { Py_DECREF(result); }
2884 Py_DECREF(obj);
2915 Py_DECREF(obj);
2885 return returnValue;
2916 return returnValue;
2886 }
2917 }
2887 }
2918 }
2888 return QHexSpinBox::inputMethodQuery(arg__1);
2919 return QHexSpinBox::inputMethodQuery(arg__1);
2889 }
2920 }
2890 void PythonQtShell_QHexSpinBox::keyPressEvent(QKeyEvent* event)
2921 void PythonQtShell_QHexSpinBox::keyPressEvent(QKeyEvent* event)
2891 {
2922 {
2892 if (_wrapper) {
2923 if (_wrapper) {
2893 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
2924 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
2894 PyErr_Clear();
2925 PyErr_Clear();
2895 if (obj && !PythonQtSlotFunction_Check(obj)) {
2926 if (obj && !PythonQtSlotFunction_Check(obj)) {
2896 static const char* argumentList[] ={"" , "QKeyEvent*"};
2927 static const char* argumentList[] ={"" , "QKeyEvent*"};
2897 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2928 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2898 void* args[2] = {NULL, (void*)&event};
2929 void* args[2] = {NULL, (void*)&event};
2899 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2930 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2900 if (result) { Py_DECREF(result); }
2931 if (result) { Py_DECREF(result); }
2901 Py_DECREF(obj);
2932 Py_DECREF(obj);
2902 return;
2933 return;
2903 }
2934 }
2904 }
2935 }
2905 QHexSpinBox::keyPressEvent(event);
2936 QHexSpinBox::keyPressEvent(event);
2906 }
2937 }
2907 void PythonQtShell_QHexSpinBox::keyReleaseEvent(QKeyEvent* event)
2938 void PythonQtShell_QHexSpinBox::keyReleaseEvent(QKeyEvent* event)
2908 {
2939 {
2909 if (_wrapper) {
2940 if (_wrapper) {
2910 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
2941 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
2911 PyErr_Clear();
2942 PyErr_Clear();
2912 if (obj && !PythonQtSlotFunction_Check(obj)) {
2943 if (obj && !PythonQtSlotFunction_Check(obj)) {
2913 static const char* argumentList[] ={"" , "QKeyEvent*"};
2944 static const char* argumentList[] ={"" , "QKeyEvent*"};
2914 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2945 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2915 void* args[2] = {NULL, (void*)&event};
2946 void* args[2] = {NULL, (void*)&event};
2916 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2947 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2917 if (result) { Py_DECREF(result); }
2948 if (result) { Py_DECREF(result); }
2918 Py_DECREF(obj);
2949 Py_DECREF(obj);
2919 return;
2950 return;
2920 }
2951 }
2921 }
2952 }
2922 QHexSpinBox::keyReleaseEvent(event);
2953 QHexSpinBox::keyReleaseEvent(event);
2923 }
2954 }
2924 void PythonQtShell_QHexSpinBox::leaveEvent(QEvent* arg__1)
2955 void PythonQtShell_QHexSpinBox::leaveEvent(QEvent* arg__1)
2925 {
2956 {
2926 if (_wrapper) {
2957 if (_wrapper) {
2927 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
2958 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
2928 PyErr_Clear();
2959 PyErr_Clear();
2929 if (obj && !PythonQtSlotFunction_Check(obj)) {
2960 if (obj && !PythonQtSlotFunction_Check(obj)) {
2930 static const char* argumentList[] ={"" , "QEvent*"};
2961 static const char* argumentList[] ={"" , "QEvent*"};
2931 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2962 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2932 void* args[2] = {NULL, (void*)&arg__1};
2963 void* args[2] = {NULL, (void*)&arg__1};
2933 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2964 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2934 if (result) { Py_DECREF(result); }
2965 if (result) { Py_DECREF(result); }
2935 Py_DECREF(obj);
2966 Py_DECREF(obj);
2936 return;
2967 return;
2937 }
2968 }
2938 }
2969 }
2939 QHexSpinBox::leaveEvent(arg__1);
2970 QHexSpinBox::leaveEvent(arg__1);
2940 }
2971 }
2941 int PythonQtShell_QHexSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const
2972 int PythonQtShell_QHexSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const
2942 {
2973 {
2943 if (_wrapper) {
2974 if (_wrapper) {
2944 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
2975 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
2945 PyErr_Clear();
2976 PyErr_Clear();
2946 if (obj && !PythonQtSlotFunction_Check(obj)) {
2977 if (obj && !PythonQtSlotFunction_Check(obj)) {
2947 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
2978 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
2948 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2979 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2949 int returnValue;
2980 int returnValue;
2950 void* args[2] = {NULL, (void*)&arg__1};
2981 void* args[2] = {NULL, (void*)&arg__1};
2951 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2982 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2952 if (result) {
2983 if (result) {
2953 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2984 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
2954 if (args[0]!=&returnValue) {
2985 if (args[0]!=&returnValue) {
2955 if (args[0]==NULL) {
2986 if (args[0]==NULL) {
2956 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
2987 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
2957 } else {
2988 } else {
2958 returnValue = *((int*)args[0]);
2989 returnValue = *((int*)args[0]);
2959 }
2990 }
2960 }
2991 }
2961 }
2992 }
2962 if (result) { Py_DECREF(result); }
2993 if (result) { Py_DECREF(result); }
2963 Py_DECREF(obj);
2994 Py_DECREF(obj);
2964 return returnValue;
2995 return returnValue;
2965 }
2996 }
2966 }
2997 }
2967 return QHexSpinBox::metric(arg__1);
2998 return QHexSpinBox::metric(arg__1);
2968 }
2999 }
2969 void PythonQtShell_QHexSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1)
3000 void PythonQtShell_QHexSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1)
2970 {
3001 {
2971 if (_wrapper) {
3002 if (_wrapper) {
2972 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
3003 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
2973 PyErr_Clear();
3004 PyErr_Clear();
2974 if (obj && !PythonQtSlotFunction_Check(obj)) {
3005 if (obj && !PythonQtSlotFunction_Check(obj)) {
2975 static const char* argumentList[] ={"" , "QMouseEvent*"};
3006 static const char* argumentList[] ={"" , "QMouseEvent*"};
2976 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3007 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2977 void* args[2] = {NULL, (void*)&arg__1};
3008 void* args[2] = {NULL, (void*)&arg__1};
2978 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3009 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2979 if (result) { Py_DECREF(result); }
3010 if (result) { Py_DECREF(result); }
2980 Py_DECREF(obj);
3011 Py_DECREF(obj);
2981 return;
3012 return;
2982 }
3013 }
2983 }
3014 }
2984 QHexSpinBox::mouseDoubleClickEvent(arg__1);
3015 QHexSpinBox::mouseDoubleClickEvent(arg__1);
2985 }
3016 }
2986 void PythonQtShell_QHexSpinBox::mouseMoveEvent(QMouseEvent* event)
3017 void PythonQtShell_QHexSpinBox::mouseMoveEvent(QMouseEvent* event)
2987 {
3018 {
2988 if (_wrapper) {
3019 if (_wrapper) {
2989 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
3020 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
2990 PyErr_Clear();
3021 PyErr_Clear();
2991 if (obj && !PythonQtSlotFunction_Check(obj)) {
3022 if (obj && !PythonQtSlotFunction_Check(obj)) {
2992 static const char* argumentList[] ={"" , "QMouseEvent*"};
3023 static const char* argumentList[] ={"" , "QMouseEvent*"};
2993 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3024 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
2994 void* args[2] = {NULL, (void*)&event};
3025 void* args[2] = {NULL, (void*)&event};
2995 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3026 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
2996 if (result) { Py_DECREF(result); }
3027 if (result) { Py_DECREF(result); }
2997 Py_DECREF(obj);
3028 Py_DECREF(obj);
2998 return;
3029 return;
2999 }
3030 }
3000 }
3031 }
3001 QHexSpinBox::mouseMoveEvent(event);
3032 QHexSpinBox::mouseMoveEvent(event);
3002 }
3033 }
3003 void PythonQtShell_QHexSpinBox::mousePressEvent(QMouseEvent* event)
3034 void PythonQtShell_QHexSpinBox::mousePressEvent(QMouseEvent* event)
3004 {
3035 {
3005 if (_wrapper) {
3036 if (_wrapper) {
3006 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
3037 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
3007 PyErr_Clear();
3038 PyErr_Clear();
3008 if (obj && !PythonQtSlotFunction_Check(obj)) {
3039 if (obj && !PythonQtSlotFunction_Check(obj)) {
3009 static const char* argumentList[] ={"" , "QMouseEvent*"};
3040 static const char* argumentList[] ={"" , "QMouseEvent*"};
3010 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3041 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3011 void* args[2] = {NULL, (void*)&event};
3042 void* args[2] = {NULL, (void*)&event};
3012 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3043 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3013 if (result) { Py_DECREF(result); }
3044 if (result) { Py_DECREF(result); }
3014 Py_DECREF(obj);
3045 Py_DECREF(obj);
3015 return;
3046 return;
3016 }
3047 }
3017 }
3048 }
3018 QHexSpinBox::mousePressEvent(event);
3049 QHexSpinBox::mousePressEvent(event);
3019 }
3050 }
3020 void PythonQtShell_QHexSpinBox::mouseReleaseEvent(QMouseEvent* event)
3051 void PythonQtShell_QHexSpinBox::mouseReleaseEvent(QMouseEvent* event)
3021 {
3052 {
3022 if (_wrapper) {
3053 if (_wrapper) {
3023 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
3054 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
3024 PyErr_Clear();
3055 PyErr_Clear();
3025 if (obj && !PythonQtSlotFunction_Check(obj)) {
3056 if (obj && !PythonQtSlotFunction_Check(obj)) {
3026 static const char* argumentList[] ={"" , "QMouseEvent*"};
3057 static const char* argumentList[] ={"" , "QMouseEvent*"};
3027 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3058 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3028 void* args[2] = {NULL, (void*)&event};
3059 void* args[2] = {NULL, (void*)&event};
3029 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3060 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3030 if (result) { Py_DECREF(result); }
3061 if (result) { Py_DECREF(result); }
3031 Py_DECREF(obj);
3062 Py_DECREF(obj);
3032 return;
3063 return;
3033 }
3064 }
3034 }
3065 }
3035 QHexSpinBox::mouseReleaseEvent(event);
3066 QHexSpinBox::mouseReleaseEvent(event);
3036 }
3067 }
3037 void PythonQtShell_QHexSpinBox::moveEvent(QMoveEvent* arg__1)
3068 void PythonQtShell_QHexSpinBox::moveEvent(QMoveEvent* arg__1)
3038 {
3069 {
3039 if (_wrapper) {
3070 if (_wrapper) {
3040 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
3071 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
3041 PyErr_Clear();
3072 PyErr_Clear();
3042 if (obj && !PythonQtSlotFunction_Check(obj)) {
3073 if (obj && !PythonQtSlotFunction_Check(obj)) {
3043 static const char* argumentList[] ={"" , "QMoveEvent*"};
3074 static const char* argumentList[] ={"" , "QMoveEvent*"};
3044 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3075 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3045 void* args[2] = {NULL, (void*)&arg__1};
3076 void* args[2] = {NULL, (void*)&arg__1};
3046 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3077 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3047 if (result) { Py_DECREF(result); }
3078 if (result) { Py_DECREF(result); }
3048 Py_DECREF(obj);
3079 Py_DECREF(obj);
3049 return;
3080 return;
3050 }
3081 }
3051 }
3082 }
3052 QHexSpinBox::moveEvent(arg__1);
3083 QHexSpinBox::moveEvent(arg__1);
3053 }
3084 }
3054 bool PythonQtShell_QHexSpinBox::nativeEvent(const QByteArray& eventType, void* message, long* result)
3085 bool PythonQtShell_QHexSpinBox::nativeEvent(const QByteArray& eventType, void* message, long* result)
3055 {
3086 {
3056 if (_wrapper) {
3087 if (_wrapper) {
3057 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
3088 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
3058 PyErr_Clear();
3089 PyErr_Clear();
3059 if (obj && !PythonQtSlotFunction_Check(obj)) {
3090 if (obj && !PythonQtSlotFunction_Check(obj)) {
3060 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
3091 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
3061 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
3092 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
3062 bool returnValue;
3093 bool returnValue;
3063 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
3094 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
3064 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3095 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3065 if (result) {
3096 if (result) {
3066 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3097 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3067 if (args[0]!=&returnValue) {
3098 if (args[0]!=&returnValue) {
3068 if (args[0]==NULL) {
3099 if (args[0]==NULL) {
3069 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
3100 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
3070 } else {
3101 } else {
3071 returnValue = *((bool*)args[0]);
3102 returnValue = *((bool*)args[0]);
3072 }
3103 }
3073 }
3104 }
3074 }
3105 }
3075 if (result) { Py_DECREF(result); }
3106 if (result) { Py_DECREF(result); }
3076 Py_DECREF(obj);
3107 Py_DECREF(obj);
3077 return returnValue;
3108 return returnValue;
3078 }
3109 }
3079 }
3110 }
3080 return QHexSpinBox::nativeEvent(eventType, message, result);
3111 return QHexSpinBox::nativeEvent(eventType, message, result);
3081 }
3112 }
3082 QPaintEngine* PythonQtShell_QHexSpinBox::paintEngine() const
3113 QPaintEngine* PythonQtShell_QHexSpinBox::paintEngine() const
3083 {
3114 {
3084 if (_wrapper) {
3115 if (_wrapper) {
3085 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
3116 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
3086 PyErr_Clear();
3117 PyErr_Clear();
3087 if (obj && !PythonQtSlotFunction_Check(obj)) {
3118 if (obj && !PythonQtSlotFunction_Check(obj)) {
3088 static const char* argumentList[] ={"QPaintEngine*"};
3119 static const char* argumentList[] ={"QPaintEngine*"};
3089 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3120 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3090 QPaintEngine* returnValue;
3121 QPaintEngine* returnValue;
3091 void* args[1] = {NULL};
3122 void* args[1] = {NULL};
3092 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3123 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3093 if (result) {
3124 if (result) {
3094 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3125 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3095 if (args[0]!=&returnValue) {
3126 if (args[0]!=&returnValue) {
3096 if (args[0]==NULL) {
3127 if (args[0]==NULL) {
3097 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
3128 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
3098 } else {
3129 } else {
3099 returnValue = *((QPaintEngine**)args[0]);
3130 returnValue = *((QPaintEngine**)args[0]);
3100 }
3131 }
3101 }
3132 }
3102 }
3133 }
3103 if (result) { Py_DECREF(result); }
3134 if (result) { Py_DECREF(result); }
3104 Py_DECREF(obj);
3135 Py_DECREF(obj);
3105 return returnValue;
3136 return returnValue;
3106 }
3137 }
3107 }
3138 }
3108 return QHexSpinBox::paintEngine();
3139 return QHexSpinBox::paintEngine();
3109 }
3140 }
3110 void PythonQtShell_QHexSpinBox::paintEvent(QPaintEvent* event)
3141 void PythonQtShell_QHexSpinBox::paintEvent(QPaintEvent* event)
3111 {
3142 {
3112 if (_wrapper) {
3143 if (_wrapper) {
3113 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
3144 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
3114 PyErr_Clear();
3145 PyErr_Clear();
3115 if (obj && !PythonQtSlotFunction_Check(obj)) {
3146 if (obj && !PythonQtSlotFunction_Check(obj)) {
3116 static const char* argumentList[] ={"" , "QPaintEvent*"};
3147 static const char* argumentList[] ={"" , "QPaintEvent*"};
3117 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3148 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3118 void* args[2] = {NULL, (void*)&event};
3149 void* args[2] = {NULL, (void*)&event};
3119 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3150 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3120 if (result) { Py_DECREF(result); }
3151 if (result) { Py_DECREF(result); }
3121 Py_DECREF(obj);
3152 Py_DECREF(obj);
3122 return;
3153 return;
3123 }
3154 }
3124 }
3155 }
3125 QHexSpinBox::paintEvent(event);
3156 QHexSpinBox::paintEvent(event);
3126 }
3157 }
3127 QPaintDevice* PythonQtShell_QHexSpinBox::redirected(QPoint* offset) const
3158 QPaintDevice* PythonQtShell_QHexSpinBox::redirected(QPoint* offset) const
3128 {
3159 {
3129 if (_wrapper) {
3160 if (_wrapper) {
3130 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
3161 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
3131 PyErr_Clear();
3162 PyErr_Clear();
3132 if (obj && !PythonQtSlotFunction_Check(obj)) {
3163 if (obj && !PythonQtSlotFunction_Check(obj)) {
3133 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
3164 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
3134 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3165 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3135 QPaintDevice* returnValue;
3166 QPaintDevice* returnValue;
3136 void* args[2] = {NULL, (void*)&offset};
3167 void* args[2] = {NULL, (void*)&offset};
3137 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3168 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3138 if (result) {
3169 if (result) {
3139 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3170 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3140 if (args[0]!=&returnValue) {
3171 if (args[0]!=&returnValue) {
3141 if (args[0]==NULL) {
3172 if (args[0]==NULL) {
3142 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
3173 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
3143 } else {
3174 } else {
3144 returnValue = *((QPaintDevice**)args[0]);
3175 returnValue = *((QPaintDevice**)args[0]);
3145 }
3176 }
3146 }
3177 }
3147 }
3178 }
3148 if (result) { Py_DECREF(result); }
3179 if (result) { Py_DECREF(result); }
3149 Py_DECREF(obj);
3180 Py_DECREF(obj);
3150 return returnValue;
3181 return returnValue;
3151 }
3182 }
3152 }
3183 }
3153 return QHexSpinBox::redirected(offset);
3184 return QHexSpinBox::redirected(offset);
3154 }
3185 }
3155 void PythonQtShell_QHexSpinBox::resizeEvent(QResizeEvent* event)
3186 void PythonQtShell_QHexSpinBox::resizeEvent(QResizeEvent* event)
3156 {
3187 {
3157 if (_wrapper) {
3188 if (_wrapper) {
3158 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
3189 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
3159 PyErr_Clear();
3190 PyErr_Clear();
3160 if (obj && !PythonQtSlotFunction_Check(obj)) {
3191 if (obj && !PythonQtSlotFunction_Check(obj)) {
3161 static const char* argumentList[] ={"" , "QResizeEvent*"};
3192 static const char* argumentList[] ={"" , "QResizeEvent*"};
3162 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3193 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3163 void* args[2] = {NULL, (void*)&event};
3194 void* args[2] = {NULL, (void*)&event};
3164 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3195 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3165 if (result) { Py_DECREF(result); }
3196 if (result) { Py_DECREF(result); }
3166 Py_DECREF(obj);
3197 Py_DECREF(obj);
3167 return;
3198 return;
3168 }
3199 }
3169 }
3200 }
3170 QHexSpinBox::resizeEvent(event);
3201 QHexSpinBox::resizeEvent(event);
3171 }
3202 }
3172 QPainter* PythonQtShell_QHexSpinBox::sharedPainter() const
3203 QPainter* PythonQtShell_QHexSpinBox::sharedPainter() const
3173 {
3204 {
3174 if (_wrapper) {
3205 if (_wrapper) {
3175 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
3206 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
3176 PyErr_Clear();
3207 PyErr_Clear();
3177 if (obj && !PythonQtSlotFunction_Check(obj)) {
3208 if (obj && !PythonQtSlotFunction_Check(obj)) {
3178 static const char* argumentList[] ={"QPainter*"};
3209 static const char* argumentList[] ={"QPainter*"};
3179 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3210 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3180 QPainter* returnValue;
3211 QPainter* returnValue;
3181 void* args[1] = {NULL};
3212 void* args[1] = {NULL};
3182 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3213 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3183 if (result) {
3214 if (result) {
3184 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3215 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3185 if (args[0]!=&returnValue) {
3216 if (args[0]!=&returnValue) {
3186 if (args[0]==NULL) {
3217 if (args[0]==NULL) {
3187 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
3218 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
3188 } else {
3219 } else {
3189 returnValue = *((QPainter**)args[0]);
3220 returnValue = *((QPainter**)args[0]);
3190 }
3221 }
3191 }
3222 }
3192 }
3223 }
3193 if (result) { Py_DECREF(result); }
3224 if (result) { Py_DECREF(result); }
3194 Py_DECREF(obj);
3225 Py_DECREF(obj);
3195 return returnValue;
3226 return returnValue;
3196 }
3227 }
3197 }
3228 }
3198 return QHexSpinBox::sharedPainter();
3229 return QHexSpinBox::sharedPainter();
3199 }
3230 }
3200 void PythonQtShell_QHexSpinBox::showEvent(QShowEvent* event)
3231 void PythonQtShell_QHexSpinBox::showEvent(QShowEvent* event)
3201 {
3232 {
3202 if (_wrapper) {
3233 if (_wrapper) {
3203 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
3234 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
3204 PyErr_Clear();
3235 PyErr_Clear();
3205 if (obj && !PythonQtSlotFunction_Check(obj)) {
3236 if (obj && !PythonQtSlotFunction_Check(obj)) {
3206 static const char* argumentList[] ={"" , "QShowEvent*"};
3237 static const char* argumentList[] ={"" , "QShowEvent*"};
3207 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3238 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3208 void* args[2] = {NULL, (void*)&event};
3239 void* args[2] = {NULL, (void*)&event};
3209 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3240 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3210 if (result) { Py_DECREF(result); }
3241 if (result) { Py_DECREF(result); }
3211 Py_DECREF(obj);
3242 Py_DECREF(obj);
3212 return;
3243 return;
3213 }
3244 }
3214 }
3245 }
3215 QHexSpinBox::showEvent(event);
3246 QHexSpinBox::showEvent(event);
3216 }
3247 }
3217 void PythonQtShell_QHexSpinBox::stepBy(int steps)
3248 void PythonQtShell_QHexSpinBox::stepBy(int steps)
3218 {
3249 {
3219 if (_wrapper) {
3250 if (_wrapper) {
3220 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy");
3251 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy");
3221 PyErr_Clear();
3252 PyErr_Clear();
3222 if (obj && !PythonQtSlotFunction_Check(obj)) {
3253 if (obj && !PythonQtSlotFunction_Check(obj)) {
3223 static const char* argumentList[] ={"" , "int"};
3254 static const char* argumentList[] ={"" , "int"};
3224 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3255 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3225 void* args[2] = {NULL, (void*)&steps};
3256 void* args[2] = {NULL, (void*)&steps};
3226 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3257 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3227 if (result) { Py_DECREF(result); }
3258 if (result) { Py_DECREF(result); }
3228 Py_DECREF(obj);
3259 Py_DECREF(obj);
3229 return;
3260 return;
3230 }
3261 }
3231 }
3262 }
3232 QHexSpinBox::stepBy(steps);
3263 QHexSpinBox::stepBy(steps);
3233 }
3264 }
3234 QAbstractSpinBox::StepEnabled PythonQtShell_QHexSpinBox::stepEnabled() const
3265 QAbstractSpinBox::StepEnabled PythonQtShell_QHexSpinBox::stepEnabled() const
3235 {
3266 {
3236 if (_wrapper) {
3267 if (_wrapper) {
3237 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled");
3268 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled");
3238 PyErr_Clear();
3269 PyErr_Clear();
3239 if (obj && !PythonQtSlotFunction_Check(obj)) {
3270 if (obj && !PythonQtSlotFunction_Check(obj)) {
3240 static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"};
3271 static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"};
3241 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3272 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3242 QAbstractSpinBox::StepEnabled returnValue;
3273 QAbstractSpinBox::StepEnabled returnValue;
3243 void* args[1] = {NULL};
3274 void* args[1] = {NULL};
3244 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3275 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3245 if (result) {
3276 if (result) {
3246 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3277 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3247 if (args[0]!=&returnValue) {
3278 if (args[0]!=&returnValue) {
3248 if (args[0]==NULL) {
3279 if (args[0]==NULL) {
3249 PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result);
3280 PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result);
3250 } else {
3281 } else {
3251 returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]);
3282 returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]);
3252 }
3283 }
3253 }
3284 }
3254 }
3285 }
3255 if (result) { Py_DECREF(result); }
3286 if (result) { Py_DECREF(result); }
3256 Py_DECREF(obj);
3287 Py_DECREF(obj);
3257 return returnValue;
3288 return returnValue;
3258 }
3289 }
3259 }
3290 }
3260 return QHexSpinBox::stepEnabled();
3291 return QHexSpinBox::stepEnabled();
3261 }
3292 }
3262 void PythonQtShell_QHexSpinBox::tabletEvent(QTabletEvent* arg__1)
3293 void PythonQtShell_QHexSpinBox::tabletEvent(QTabletEvent* arg__1)
3263 {
3294 {
3264 if (_wrapper) {
3295 if (_wrapper) {
3265 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
3296 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
3266 PyErr_Clear();
3297 PyErr_Clear();
3267 if (obj && !PythonQtSlotFunction_Check(obj)) {
3298 if (obj && !PythonQtSlotFunction_Check(obj)) {
3268 static const char* argumentList[] ={"" , "QTabletEvent*"};
3299 static const char* argumentList[] ={"" , "QTabletEvent*"};
3269 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3300 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3270 void* args[2] = {NULL, (void*)&arg__1};
3301 void* args[2] = {NULL, (void*)&arg__1};
3271 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3302 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3272 if (result) { Py_DECREF(result); }
3303 if (result) { Py_DECREF(result); }
3273 Py_DECREF(obj);
3304 Py_DECREF(obj);
3274 return;
3305 return;
3275 }
3306 }
3276 }
3307 }
3277 QHexSpinBox::tabletEvent(arg__1);
3308 QHexSpinBox::tabletEvent(arg__1);
3278 }
3309 }
3279 QString PythonQtShell_QHexSpinBox::textFromValue(int value) const
3310 QString PythonQtShell_QHexSpinBox::textFromValue(int value) const
3280 {
3311 {
3281 if (_wrapper) {
3312 if (_wrapper) {
3282 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromValue");
3313 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromValue");
3283 PyErr_Clear();
3314 PyErr_Clear();
3284 if (obj && !PythonQtSlotFunction_Check(obj)) {
3315 if (obj && !PythonQtSlotFunction_Check(obj)) {
3285 static const char* argumentList[] ={"QString" , "int"};
3316 static const char* argumentList[] ={"QString" , "int"};
3286 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3317 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3287 QString returnValue;
3318 QString returnValue;
3288 void* args[2] = {NULL, (void*)&value};
3319 void* args[2] = {NULL, (void*)&value};
3289 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3320 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3290 if (result) {
3321 if (result) {
3291 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3322 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3292 if (args[0]!=&returnValue) {
3323 if (args[0]!=&returnValue) {
3293 if (args[0]==NULL) {
3324 if (args[0]==NULL) {
3294 PythonQt::priv()->handleVirtualOverloadReturnError("textFromValue", methodInfo, result);
3325 PythonQt::priv()->handleVirtualOverloadReturnError("textFromValue", methodInfo, result);
3295 } else {
3326 } else {
3296 returnValue = *((QString*)args[0]);
3327 returnValue = *((QString*)args[0]);
3297 }
3328 }
3298 }
3329 }
3299 }
3330 }
3300 if (result) { Py_DECREF(result); }
3331 if (result) { Py_DECREF(result); }
3301 Py_DECREF(obj);
3332 Py_DECREF(obj);
3302 return returnValue;
3333 return returnValue;
3303 }
3334 }
3304 }
3335 }
3305 return QHexSpinBox::textFromValue(value);
3336 return QHexSpinBox::textFromValue(value);
3306 }
3337 }
3307 void PythonQtShell_QHexSpinBox::timerEvent(QTimerEvent* event)
3338 void PythonQtShell_QHexSpinBox::timerEvent(QTimerEvent* event)
3308 {
3339 {
3309 if (_wrapper) {
3340 if (_wrapper) {
3310 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
3341 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
3311 PyErr_Clear();
3342 PyErr_Clear();
3312 if (obj && !PythonQtSlotFunction_Check(obj)) {
3343 if (obj && !PythonQtSlotFunction_Check(obj)) {
3313 static const char* argumentList[] ={"" , "QTimerEvent*"};
3344 static const char* argumentList[] ={"" , "QTimerEvent*"};
3314 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3345 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3315 void* args[2] = {NULL, (void*)&event};
3346 void* args[2] = {NULL, (void*)&event};
3316 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3347 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3317 if (result) { Py_DECREF(result); }
3348 if (result) { Py_DECREF(result); }
3318 Py_DECREF(obj);
3349 Py_DECREF(obj);
3319 return;
3350 return;
3320 }
3351 }
3321 }
3352 }
3322 QHexSpinBox::timerEvent(event);
3353 QHexSpinBox::timerEvent(event);
3323 }
3354 }
3324 QValidator::State PythonQtShell_QHexSpinBox::validate(QString& input, int& pos) const
3355 QValidator::State PythonQtShell_QHexSpinBox::validate(QString& input, int& pos) const
3325 {
3356 {
3326 if (_wrapper) {
3357 if (_wrapper) {
3327 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate");
3358 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate");
3328 PyErr_Clear();
3359 PyErr_Clear();
3329 if (obj && !PythonQtSlotFunction_Check(obj)) {
3360 if (obj && !PythonQtSlotFunction_Check(obj)) {
3330 static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"};
3361 static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"};
3331 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
3362 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
3332 QValidator::State returnValue;
3363 QValidator::State returnValue;
3333 void* args[3] = {NULL, (void*)&input, (void*)&pos};
3364 void* args[3] = {NULL, (void*)&input, (void*)&pos};
3334 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3365 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3335 if (result) {
3366 if (result) {
3336 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3367 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3337 if (args[0]!=&returnValue) {
3368 if (args[0]!=&returnValue) {
3338 if (args[0]==NULL) {
3369 if (args[0]==NULL) {
3339 PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result);
3370 PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result);
3340 } else {
3371 } else {
3341 returnValue = *((QValidator::State*)args[0]);
3372 returnValue = *((QValidator::State*)args[0]);
3342 }
3373 }
3343 }
3374 }
3344 }
3375 }
3345 if (result) { Py_DECREF(result); }
3376 if (result) { Py_DECREF(result); }
3346 Py_DECREF(obj);
3377 Py_DECREF(obj);
3347 return returnValue;
3378 return returnValue;
3348 }
3379 }
3349 }
3380 }
3350 return QHexSpinBox::validate(input, pos);
3381 return QHexSpinBox::validate(input, pos);
3351 }
3382 }
3352 int PythonQtShell_QHexSpinBox::valueFromText(const QString& text) const
3383 int PythonQtShell_QHexSpinBox::valueFromText(const QString& text) const
3353 {
3384 {
3354 if (_wrapper) {
3385 if (_wrapper) {
3355 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valueFromText");
3386 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valueFromText");
3356 PyErr_Clear();
3387 PyErr_Clear();
3357 if (obj && !PythonQtSlotFunction_Check(obj)) {
3388 if (obj && !PythonQtSlotFunction_Check(obj)) {
3358 static const char* argumentList[] ={"int" , "const QString&"};
3389 static const char* argumentList[] ={"int" , "const QString&"};
3359 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3390 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3360 int returnValue;
3391 int returnValue;
3361 void* args[2] = {NULL, (void*)&text};
3392 void* args[2] = {NULL, (void*)&text};
3362 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3393 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3363 if (result) {
3394 if (result) {
3364 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3395 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3365 if (args[0]!=&returnValue) {
3396 if (args[0]!=&returnValue) {
3366 if (args[0]==NULL) {
3397 if (args[0]==NULL) {
3367 PythonQt::priv()->handleVirtualOverloadReturnError("valueFromText", methodInfo, result);
3398 PythonQt::priv()->handleVirtualOverloadReturnError("valueFromText", methodInfo, result);
3368 } else {
3399 } else {
3369 returnValue = *((int*)args[0]);
3400 returnValue = *((int*)args[0]);
3370 }
3401 }
3371 }
3402 }
3372 }
3403 }
3373 if (result) { Py_DECREF(result); }
3404 if (result) { Py_DECREF(result); }
3374 Py_DECREF(obj);
3405 Py_DECREF(obj);
3375 return returnValue;
3406 return returnValue;
3376 }
3407 }
3377 }
3408 }
3378 return QHexSpinBox::valueFromText(text);
3409 return QHexSpinBox::valueFromText(text);
3379 }
3410 }
3380 void PythonQtShell_QHexSpinBox::wheelEvent(QWheelEvent* event)
3411 void PythonQtShell_QHexSpinBox::wheelEvent(QWheelEvent* event)
3381 {
3412 {
3382 if (_wrapper) {
3413 if (_wrapper) {
3383 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
3414 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
3384 PyErr_Clear();
3415 PyErr_Clear();
3385 if (obj && !PythonQtSlotFunction_Check(obj)) {
3416 if (obj && !PythonQtSlotFunction_Check(obj)) {
3386 static const char* argumentList[] ={"" , "QWheelEvent*"};
3417 static const char* argumentList[] ={"" , "QWheelEvent*"};
3387 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3418 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3388 void* args[2] = {NULL, (void*)&event};
3419 void* args[2] = {NULL, (void*)&event};
3389 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3420 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3390 if (result) { Py_DECREF(result); }
3421 if (result) { Py_DECREF(result); }
3391 Py_DECREF(obj);
3422 Py_DECREF(obj);
3392 return;
3423 return;
3393 }
3424 }
3394 }
3425 }
3395 QHexSpinBox::wheelEvent(event);
3426 QHexSpinBox::wheelEvent(event);
3396 }
3427 }
3397 QHexSpinBox* PythonQtWrapper_QHexSpinBox::new_QHexSpinBox(QWidget* parent)
3428 QHexSpinBox* PythonQtWrapper_QHexSpinBox::new_QHexSpinBox(QWidget* parent)
3398 {
3429 {
3399 return new PythonQtShell_QHexSpinBox(parent); }
3430 return new PythonQtShell_QHexSpinBox(parent); }
3400
3431
3401 void PythonQtWrapper_QHexSpinBox::show(QHexSpinBox* theWrappedObject)
3432 void PythonQtWrapper_QHexSpinBox::show(QHexSpinBox* theWrappedObject)
3402 {
3433 {
3403 ( theWrappedObject->show());
3434 ( theWrappedObject->show());
3404 }
3435 }
3405
3436
3406 QString PythonQtWrapper_QHexSpinBox::textFromValue(QHexSpinBox* theWrappedObject, int value) const
3437 QString PythonQtWrapper_QHexSpinBox::textFromValue(QHexSpinBox* theWrappedObject, int value) const
3407 {
3438 {
3408 return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_textFromValue(value));
3439 return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_textFromValue(value));
3409 }
3440 }
3410
3441
3411 QValidator::State PythonQtWrapper_QHexSpinBox::validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const
3442 QValidator::State PythonQtWrapper_QHexSpinBox::validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const
3412 {
3443 {
3413 return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_validate(input, pos));
3444 return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_validate(input, pos));
3414 }
3445 }
3415
3446
3416 int PythonQtWrapper_QHexSpinBox::valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const
3447 int PythonQtWrapper_QHexSpinBox::valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const
3417 {
3448 {
3418 return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_valueFromText(text));
3449 return ( ((PythonQtPublicPromoter_QHexSpinBox*)theWrappedObject)->promoted_valueFromText(text));
3419 }
3450 }
3420
3451
3421
3452
3422
3453
3423 PythonQtShell_SocExplorerPlot::~PythonQtShell_SocExplorerPlot() {
3454 PythonQtShell_SocExplorerPlot::~PythonQtShell_SocExplorerPlot() {
3424 PythonQtPrivate* priv = PythonQt::priv();
3455 PythonQtPrivate* priv = PythonQt::priv();
3425 if (priv) { priv->shellClassDeleted(this); }
3456 if (priv) { priv->shellClassDeleted(this); }
3426 }
3457 }
3427 void PythonQtShell_SocExplorerPlot::actionEvent(QActionEvent* arg__1)
3458 void PythonQtShell_SocExplorerPlot::actionEvent(QActionEvent* arg__1)
3428 {
3459 {
3429 if (_wrapper) {
3460 if (_wrapper) {
3430 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
3461 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
3431 PyErr_Clear();
3462 PyErr_Clear();
3432 if (obj && !PythonQtSlotFunction_Check(obj)) {
3463 if (obj && !PythonQtSlotFunction_Check(obj)) {
3433 static const char* argumentList[] ={"" , "QActionEvent*"};
3464 static const char* argumentList[] ={"" , "QActionEvent*"};
3434 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3465 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3435 void* args[2] = {NULL, (void*)&arg__1};
3466 void* args[2] = {NULL, (void*)&arg__1};
3436 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3467 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3437 if (result) { Py_DECREF(result); }
3468 if (result) { Py_DECREF(result); }
3438 Py_DECREF(obj);
3469 Py_DECREF(obj);
3439 return;
3470 return;
3440 }
3471 }
3441 }
3472 }
3442 SocExplorerPlot::actionEvent(arg__1);
3473 SocExplorerPlot::actionEvent(arg__1);
3443 }
3474 }
3444 void PythonQtShell_SocExplorerPlot::changeEvent(QEvent* arg__1)
3475 void PythonQtShell_SocExplorerPlot::changeEvent(QEvent* arg__1)
3445 {
3476 {
3446 if (_wrapper) {
3477 if (_wrapper) {
3447 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
3478 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
3448 PyErr_Clear();
3479 PyErr_Clear();
3449 if (obj && !PythonQtSlotFunction_Check(obj)) {
3480 if (obj && !PythonQtSlotFunction_Check(obj)) {
3450 static const char* argumentList[] ={"" , "QEvent*"};
3481 static const char* argumentList[] ={"" , "QEvent*"};
3451 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3482 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3452 void* args[2] = {NULL, (void*)&arg__1};
3483 void* args[2] = {NULL, (void*)&arg__1};
3453 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3484 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3454 if (result) { Py_DECREF(result); }
3485 if (result) { Py_DECREF(result); }
3455 Py_DECREF(obj);
3486 Py_DECREF(obj);
3456 return;
3487 return;
3457 }
3488 }
3458 }
3489 }
3459 SocExplorerPlot::changeEvent(arg__1);
3490 SocExplorerPlot::changeEvent(arg__1);
3460 }
3491 }
3461 void PythonQtShell_SocExplorerPlot::childEvent(QChildEvent* arg__1)
3492 void PythonQtShell_SocExplorerPlot::childEvent(QChildEvent* arg__1)
3462 {
3493 {
3463 if (_wrapper) {
3494 if (_wrapper) {
3464 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
3495 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
3465 PyErr_Clear();
3496 PyErr_Clear();
3466 if (obj && !PythonQtSlotFunction_Check(obj)) {
3497 if (obj && !PythonQtSlotFunction_Check(obj)) {
3467 static const char* argumentList[] ={"" , "QChildEvent*"};
3498 static const char* argumentList[] ={"" , "QChildEvent*"};
3468 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3499 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3469 void* args[2] = {NULL, (void*)&arg__1};
3500 void* args[2] = {NULL, (void*)&arg__1};
3470 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3501 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3471 if (result) { Py_DECREF(result); }
3502 if (result) { Py_DECREF(result); }
3472 Py_DECREF(obj);
3503 Py_DECREF(obj);
3473 return;
3504 return;
3474 }
3505 }
3475 }
3506 }
3476 SocExplorerPlot::childEvent(arg__1);
3507 SocExplorerPlot::childEvent(arg__1);
3477 }
3508 }
3478 void PythonQtShell_SocExplorerPlot::closeEvent(QCloseEvent* arg__1)
3509 void PythonQtShell_SocExplorerPlot::closeEvent(QCloseEvent* arg__1)
3479 {
3510 {
3480 if (_wrapper) {
3511 if (_wrapper) {
3481 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
3512 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
3482 PyErr_Clear();
3513 PyErr_Clear();
3483 if (obj && !PythonQtSlotFunction_Check(obj)) {
3514 if (obj && !PythonQtSlotFunction_Check(obj)) {
3484 static const char* argumentList[] ={"" , "QCloseEvent*"};
3515 static const char* argumentList[] ={"" , "QCloseEvent*"};
3485 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3516 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3486 void* args[2] = {NULL, (void*)&arg__1};
3517 void* args[2] = {NULL, (void*)&arg__1};
3487 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3518 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3488 if (result) { Py_DECREF(result); }
3519 if (result) { Py_DECREF(result); }
3489 Py_DECREF(obj);
3520 Py_DECREF(obj);
3490 return;
3521 return;
3491 }
3522 }
3492 }
3523 }
3493 SocExplorerPlot::closeEvent(arg__1);
3524 SocExplorerPlot::closeEvent(arg__1);
3494 }
3525 }
3495 void PythonQtShell_SocExplorerPlot::contextMenuEvent(QContextMenuEvent* arg__1)
3526 void PythonQtShell_SocExplorerPlot::contextMenuEvent(QContextMenuEvent* arg__1)
3496 {
3527 {
3497 if (_wrapper) {
3528 if (_wrapper) {
3498 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
3529 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
3499 PyErr_Clear();
3530 PyErr_Clear();
3500 if (obj && !PythonQtSlotFunction_Check(obj)) {
3531 if (obj && !PythonQtSlotFunction_Check(obj)) {
3501 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
3532 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
3502 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3533 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3503 void* args[2] = {NULL, (void*)&arg__1};
3534 void* args[2] = {NULL, (void*)&arg__1};
3504 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3535 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3505 if (result) { Py_DECREF(result); }
3536 if (result) { Py_DECREF(result); }
3506 Py_DECREF(obj);
3537 Py_DECREF(obj);
3507 return;
3538 return;
3508 }
3539 }
3509 }
3540 }
3510 SocExplorerPlot::contextMenuEvent(arg__1);
3541 SocExplorerPlot::contextMenuEvent(arg__1);
3511 }
3542 }
3512 void PythonQtShell_SocExplorerPlot::customEvent(QEvent* arg__1)
3543 void PythonQtShell_SocExplorerPlot::customEvent(QEvent* arg__1)
3513 {
3544 {
3514 if (_wrapper) {
3545 if (_wrapper) {
3515 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
3546 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
3516 PyErr_Clear();
3547 PyErr_Clear();
3517 if (obj && !PythonQtSlotFunction_Check(obj)) {
3548 if (obj && !PythonQtSlotFunction_Check(obj)) {
3518 static const char* argumentList[] ={"" , "QEvent*"};
3549 static const char* argumentList[] ={"" , "QEvent*"};
3519 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3550 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3520 void* args[2] = {NULL, (void*)&arg__1};
3551 void* args[2] = {NULL, (void*)&arg__1};
3521 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3552 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3522 if (result) { Py_DECREF(result); }
3553 if (result) { Py_DECREF(result); }
3523 Py_DECREF(obj);
3554 Py_DECREF(obj);
3524 return;
3555 return;
3525 }
3556 }
3526 }
3557 }
3527 SocExplorerPlot::customEvent(arg__1);
3558 SocExplorerPlot::customEvent(arg__1);
3528 }
3559 }
3529 int PythonQtShell_SocExplorerPlot::devType() const
3560 int PythonQtShell_SocExplorerPlot::devType() const
3530 {
3561 {
3531 if (_wrapper) {
3562 if (_wrapper) {
3532 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
3563 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
3533 PyErr_Clear();
3564 PyErr_Clear();
3534 if (obj && !PythonQtSlotFunction_Check(obj)) {
3565 if (obj && !PythonQtSlotFunction_Check(obj)) {
3535 static const char* argumentList[] ={"int"};
3566 static const char* argumentList[] ={"int"};
3536 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3567 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3537 int returnValue;
3568 int returnValue;
3538 void* args[1] = {NULL};
3569 void* args[1] = {NULL};
3539 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3570 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3540 if (result) {
3571 if (result) {
3541 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3572 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3542 if (args[0]!=&returnValue) {
3573 if (args[0]!=&returnValue) {
3543 if (args[0]==NULL) {
3574 if (args[0]==NULL) {
3544 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
3575 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
3545 } else {
3576 } else {
3546 returnValue = *((int*)args[0]);
3577 returnValue = *((int*)args[0]);
3547 }
3578 }
3548 }
3579 }
3549 }
3580 }
3550 if (result) { Py_DECREF(result); }
3581 if (result) { Py_DECREF(result); }
3551 Py_DECREF(obj);
3582 Py_DECREF(obj);
3552 return returnValue;
3583 return returnValue;
3553 }
3584 }
3554 }
3585 }
3555 return SocExplorerPlot::devType();
3586 return SocExplorerPlot::devType();
3556 }
3587 }
3557 void PythonQtShell_SocExplorerPlot::dragEnterEvent(QDragEnterEvent* arg__1)
3588 void PythonQtShell_SocExplorerPlot::dragEnterEvent(QDragEnterEvent* arg__1)
3558 {
3589 {
3559 if (_wrapper) {
3590 if (_wrapper) {
3560 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
3591 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
3561 PyErr_Clear();
3592 PyErr_Clear();
3562 if (obj && !PythonQtSlotFunction_Check(obj)) {
3593 if (obj && !PythonQtSlotFunction_Check(obj)) {
3563 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
3594 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
3564 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3595 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3565 void* args[2] = {NULL, (void*)&arg__1};
3596 void* args[2] = {NULL, (void*)&arg__1};
3566 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3597 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3567 if (result) { Py_DECREF(result); }
3598 if (result) { Py_DECREF(result); }
3568 Py_DECREF(obj);
3599 Py_DECREF(obj);
3569 return;
3600 return;
3570 }
3601 }
3571 }
3602 }
3572 SocExplorerPlot::dragEnterEvent(arg__1);
3603 SocExplorerPlot::dragEnterEvent(arg__1);
3573 }
3604 }
3574 void PythonQtShell_SocExplorerPlot::dragLeaveEvent(QDragLeaveEvent* arg__1)
3605 void PythonQtShell_SocExplorerPlot::dragLeaveEvent(QDragLeaveEvent* arg__1)
3575 {
3606 {
3576 if (_wrapper) {
3607 if (_wrapper) {
3577 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
3608 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
3578 PyErr_Clear();
3609 PyErr_Clear();
3579 if (obj && !PythonQtSlotFunction_Check(obj)) {
3610 if (obj && !PythonQtSlotFunction_Check(obj)) {
3580 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
3611 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
3581 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3612 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3582 void* args[2] = {NULL, (void*)&arg__1};
3613 void* args[2] = {NULL, (void*)&arg__1};
3583 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3614 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3584 if (result) { Py_DECREF(result); }
3615 if (result) { Py_DECREF(result); }
3585 Py_DECREF(obj);
3616 Py_DECREF(obj);
3586 return;
3617 return;
3587 }
3618 }
3588 }
3619 }
3589 SocExplorerPlot::dragLeaveEvent(arg__1);
3620 SocExplorerPlot::dragLeaveEvent(arg__1);
3590 }
3621 }
3591 void PythonQtShell_SocExplorerPlot::dragMoveEvent(QDragMoveEvent* arg__1)
3622 void PythonQtShell_SocExplorerPlot::dragMoveEvent(QDragMoveEvent* arg__1)
3592 {
3623 {
3593 if (_wrapper) {
3624 if (_wrapper) {
3594 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
3625 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
3595 PyErr_Clear();
3626 PyErr_Clear();
3596 if (obj && !PythonQtSlotFunction_Check(obj)) {
3627 if (obj && !PythonQtSlotFunction_Check(obj)) {
3597 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
3628 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
3598 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3629 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3599 void* args[2] = {NULL, (void*)&arg__1};
3630 void* args[2] = {NULL, (void*)&arg__1};
3600 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3631 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3601 if (result) { Py_DECREF(result); }
3632 if (result) { Py_DECREF(result); }
3602 Py_DECREF(obj);
3633 Py_DECREF(obj);
3603 return;
3634 return;
3604 }
3635 }
3605 }
3636 }
3606 SocExplorerPlot::dragMoveEvent(arg__1);
3637 SocExplorerPlot::dragMoveEvent(arg__1);
3607 }
3638 }
3608 void PythonQtShell_SocExplorerPlot::dropEvent(QDropEvent* arg__1)
3639 void PythonQtShell_SocExplorerPlot::dropEvent(QDropEvent* arg__1)
3609 {
3640 {
3610 if (_wrapper) {
3641 if (_wrapper) {
3611 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
3642 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
3612 PyErr_Clear();
3643 PyErr_Clear();
3613 if (obj && !PythonQtSlotFunction_Check(obj)) {
3644 if (obj && !PythonQtSlotFunction_Check(obj)) {
3614 static const char* argumentList[] ={"" , "QDropEvent*"};
3645 static const char* argumentList[] ={"" , "QDropEvent*"};
3615 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3646 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3616 void* args[2] = {NULL, (void*)&arg__1};
3647 void* args[2] = {NULL, (void*)&arg__1};
3617 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3648 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3618 if (result) { Py_DECREF(result); }
3649 if (result) { Py_DECREF(result); }
3619 Py_DECREF(obj);
3650 Py_DECREF(obj);
3620 return;
3651 return;
3621 }
3652 }
3622 }
3653 }
3623 SocExplorerPlot::dropEvent(arg__1);
3654 SocExplorerPlot::dropEvent(arg__1);
3624 }
3655 }
3625 void PythonQtShell_SocExplorerPlot::enterEvent(QEvent* arg__1)
3656 void PythonQtShell_SocExplorerPlot::enterEvent(QEvent* arg__1)
3626 {
3657 {
3627 if (_wrapper) {
3658 if (_wrapper) {
3628 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
3659 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
3629 PyErr_Clear();
3660 PyErr_Clear();
3630 if (obj && !PythonQtSlotFunction_Check(obj)) {
3661 if (obj && !PythonQtSlotFunction_Check(obj)) {
3631 static const char* argumentList[] ={"" , "QEvent*"};
3662 static const char* argumentList[] ={"" , "QEvent*"};
3632 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3663 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3633 void* args[2] = {NULL, (void*)&arg__1};
3664 void* args[2] = {NULL, (void*)&arg__1};
3634 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3665 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3635 if (result) { Py_DECREF(result); }
3666 if (result) { Py_DECREF(result); }
3636 Py_DECREF(obj);
3667 Py_DECREF(obj);
3637 return;
3668 return;
3638 }
3669 }
3639 }
3670 }
3640 SocExplorerPlot::enterEvent(arg__1);
3671 SocExplorerPlot::enterEvent(arg__1);
3641 }
3672 }
3642 bool PythonQtShell_SocExplorerPlot::event(QEvent* arg__1)
3673 bool PythonQtShell_SocExplorerPlot::event(QEvent* arg__1)
3643 {
3674 {
3644 if (_wrapper) {
3675 if (_wrapper) {
3645 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
3676 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
3646 PyErr_Clear();
3677 PyErr_Clear();
3647 if (obj && !PythonQtSlotFunction_Check(obj)) {
3678 if (obj && !PythonQtSlotFunction_Check(obj)) {
3648 static const char* argumentList[] ={"bool" , "QEvent*"};
3679 static const char* argumentList[] ={"bool" , "QEvent*"};
3649 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3680 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3650 bool returnValue;
3681 bool returnValue;
3651 void* args[2] = {NULL, (void*)&arg__1};
3682 void* args[2] = {NULL, (void*)&arg__1};
3652 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3683 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3653 if (result) {
3684 if (result) {
3654 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3685 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3655 if (args[0]!=&returnValue) {
3686 if (args[0]!=&returnValue) {
3656 if (args[0]==NULL) {
3687 if (args[0]==NULL) {
3657 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
3688 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
3658 } else {
3689 } else {
3659 returnValue = *((bool*)args[0]);
3690 returnValue = *((bool*)args[0]);
3660 }
3691 }
3661 }
3692 }
3662 }
3693 }
3663 if (result) { Py_DECREF(result); }
3694 if (result) { Py_DECREF(result); }
3664 Py_DECREF(obj);
3695 Py_DECREF(obj);
3665 return returnValue;
3696 return returnValue;
3666 }
3697 }
3667 }
3698 }
3668 return SocExplorerPlot::event(arg__1);
3699 return SocExplorerPlot::event(arg__1);
3669 }
3700 }
3670 bool PythonQtShell_SocExplorerPlot::eventFilter(QObject* arg__1, QEvent* arg__2)
3701 bool PythonQtShell_SocExplorerPlot::eventFilter(QObject* arg__1, QEvent* arg__2)
3671 {
3702 {
3672 if (_wrapper) {
3703 if (_wrapper) {
3673 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
3704 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
3674 PyErr_Clear();
3705 PyErr_Clear();
3675 if (obj && !PythonQtSlotFunction_Check(obj)) {
3706 if (obj && !PythonQtSlotFunction_Check(obj)) {
3676 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
3707 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
3677 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
3708 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
3678 bool returnValue;
3709 bool returnValue;
3679 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
3710 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
3680 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3711 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3681 if (result) {
3712 if (result) {
3682 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3713 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3683 if (args[0]!=&returnValue) {
3714 if (args[0]!=&returnValue) {
3684 if (args[0]==NULL) {
3715 if (args[0]==NULL) {
3685 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
3716 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
3686 } else {
3717 } else {
3687 returnValue = *((bool*)args[0]);
3718 returnValue = *((bool*)args[0]);
3688 }
3719 }
3689 }
3720 }
3690 }
3721 }
3691 if (result) { Py_DECREF(result); }
3722 if (result) { Py_DECREF(result); }
3692 Py_DECREF(obj);
3723 Py_DECREF(obj);
3693 return returnValue;
3724 return returnValue;
3694 }
3725 }
3695 }
3726 }
3696 return SocExplorerPlot::eventFilter(arg__1, arg__2);
3727 return SocExplorerPlot::eventFilter(arg__1, arg__2);
3697 }
3728 }
3698 void PythonQtShell_SocExplorerPlot::focusInEvent(QFocusEvent* arg__1)
3729 void PythonQtShell_SocExplorerPlot::focusInEvent(QFocusEvent* arg__1)
3699 {
3730 {
3700 if (_wrapper) {
3731 if (_wrapper) {
3701 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
3732 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
3702 PyErr_Clear();
3733 PyErr_Clear();
3703 if (obj && !PythonQtSlotFunction_Check(obj)) {
3734 if (obj && !PythonQtSlotFunction_Check(obj)) {
3704 static const char* argumentList[] ={"" , "QFocusEvent*"};
3735 static const char* argumentList[] ={"" , "QFocusEvent*"};
3705 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3736 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3706 void* args[2] = {NULL, (void*)&arg__1};
3737 void* args[2] = {NULL, (void*)&arg__1};
3707 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3738 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3708 if (result) { Py_DECREF(result); }
3739 if (result) { Py_DECREF(result); }
3709 Py_DECREF(obj);
3740 Py_DECREF(obj);
3710 return;
3741 return;
3711 }
3742 }
3712 }
3743 }
3713 SocExplorerPlot::focusInEvent(arg__1);
3744 SocExplorerPlot::focusInEvent(arg__1);
3714 }
3745 }
3715 bool PythonQtShell_SocExplorerPlot::focusNextPrevChild(bool next)
3746 bool PythonQtShell_SocExplorerPlot::focusNextPrevChild(bool next)
3716 {
3747 {
3717 if (_wrapper) {
3748 if (_wrapper) {
3718 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
3749 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
3719 PyErr_Clear();
3750 PyErr_Clear();
3720 if (obj && !PythonQtSlotFunction_Check(obj)) {
3751 if (obj && !PythonQtSlotFunction_Check(obj)) {
3721 static const char* argumentList[] ={"bool" , "bool"};
3752 static const char* argumentList[] ={"bool" , "bool"};
3722 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3753 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3723 bool returnValue;
3754 bool returnValue;
3724 void* args[2] = {NULL, (void*)&next};
3755 void* args[2] = {NULL, (void*)&next};
3725 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3756 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3726 if (result) {
3757 if (result) {
3727 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3758 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3728 if (args[0]!=&returnValue) {
3759 if (args[0]!=&returnValue) {
3729 if (args[0]==NULL) {
3760 if (args[0]==NULL) {
3730 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
3761 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
3731 } else {
3762 } else {
3732 returnValue = *((bool*)args[0]);
3763 returnValue = *((bool*)args[0]);
3733 }
3764 }
3734 }
3765 }
3735 }
3766 }
3736 if (result) { Py_DECREF(result); }
3767 if (result) { Py_DECREF(result); }
3737 Py_DECREF(obj);
3768 Py_DECREF(obj);
3738 return returnValue;
3769 return returnValue;
3739 }
3770 }
3740 }
3771 }
3741 return SocExplorerPlot::focusNextPrevChild(next);
3772 return SocExplorerPlot::focusNextPrevChild(next);
3742 }
3773 }
3743 void PythonQtShell_SocExplorerPlot::focusOutEvent(QFocusEvent* arg__1)
3774 void PythonQtShell_SocExplorerPlot::focusOutEvent(QFocusEvent* arg__1)
3744 {
3775 {
3745 if (_wrapper) {
3776 if (_wrapper) {
3746 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
3777 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
3747 PyErr_Clear();
3778 PyErr_Clear();
3748 if (obj && !PythonQtSlotFunction_Check(obj)) {
3779 if (obj && !PythonQtSlotFunction_Check(obj)) {
3749 static const char* argumentList[] ={"" , "QFocusEvent*"};
3780 static const char* argumentList[] ={"" , "QFocusEvent*"};
3750 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3781 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3751 void* args[2] = {NULL, (void*)&arg__1};
3782 void* args[2] = {NULL, (void*)&arg__1};
3752 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3783 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3753 if (result) { Py_DECREF(result); }
3784 if (result) { Py_DECREF(result); }
3754 Py_DECREF(obj);
3785 Py_DECREF(obj);
3755 return;
3786 return;
3756 }
3787 }
3757 }
3788 }
3758 SocExplorerPlot::focusOutEvent(arg__1);
3789 SocExplorerPlot::focusOutEvent(arg__1);
3759 }
3790 }
3760 bool PythonQtShell_SocExplorerPlot::hasHeightForWidth() const
3791 bool PythonQtShell_SocExplorerPlot::hasHeightForWidth() const
3761 {
3792 {
3762 if (_wrapper) {
3793 if (_wrapper) {
3763 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
3794 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
3764 PyErr_Clear();
3795 PyErr_Clear();
3765 if (obj && !PythonQtSlotFunction_Check(obj)) {
3796 if (obj && !PythonQtSlotFunction_Check(obj)) {
3766 static const char* argumentList[] ={"bool"};
3797 static const char* argumentList[] ={"bool"};
3767 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3798 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3768 bool returnValue;
3799 bool returnValue;
3769 void* args[1] = {NULL};
3800 void* args[1] = {NULL};
3770 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3801 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3771 if (result) {
3802 if (result) {
3772 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3803 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3773 if (args[0]!=&returnValue) {
3804 if (args[0]!=&returnValue) {
3774 if (args[0]==NULL) {
3805 if (args[0]==NULL) {
3775 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
3806 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
3776 } else {
3807 } else {
3777 returnValue = *((bool*)args[0]);
3808 returnValue = *((bool*)args[0]);
3778 }
3809 }
3779 }
3810 }
3780 }
3811 }
3781 if (result) { Py_DECREF(result); }
3812 if (result) { Py_DECREF(result); }
3782 Py_DECREF(obj);
3813 Py_DECREF(obj);
3783 return returnValue;
3814 return returnValue;
3784 }
3815 }
3785 }
3816 }
3786 return SocExplorerPlot::hasHeightForWidth();
3817 return SocExplorerPlot::hasHeightForWidth();
3787 }
3818 }
3788 int PythonQtShell_SocExplorerPlot::heightForWidth(int arg__1) const
3819 int PythonQtShell_SocExplorerPlot::heightForWidth(int arg__1) const
3789 {
3820 {
3790 if (_wrapper) {
3821 if (_wrapper) {
3791 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
3822 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
3792 PyErr_Clear();
3823 PyErr_Clear();
3793 if (obj && !PythonQtSlotFunction_Check(obj)) {
3824 if (obj && !PythonQtSlotFunction_Check(obj)) {
3794 static const char* argumentList[] ={"int" , "int"};
3825 static const char* argumentList[] ={"int" , "int"};
3795 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3826 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3796 int returnValue;
3827 int returnValue;
3797 void* args[2] = {NULL, (void*)&arg__1};
3828 void* args[2] = {NULL, (void*)&arg__1};
3798 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3829 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3799 if (result) {
3830 if (result) {
3800 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3831 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3801 if (args[0]!=&returnValue) {
3832 if (args[0]!=&returnValue) {
3802 if (args[0]==NULL) {
3833 if (args[0]==NULL) {
3803 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
3834 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
3804 } else {
3835 } else {
3805 returnValue = *((int*)args[0]);
3836 returnValue = *((int*)args[0]);
3806 }
3837 }
3807 }
3838 }
3808 }
3839 }
3809 if (result) { Py_DECREF(result); }
3840 if (result) { Py_DECREF(result); }
3810 Py_DECREF(obj);
3841 Py_DECREF(obj);
3811 return returnValue;
3842 return returnValue;
3812 }
3843 }
3813 }
3844 }
3814 return SocExplorerPlot::heightForWidth(arg__1);
3845 return SocExplorerPlot::heightForWidth(arg__1);
3815 }
3846 }
3816 void PythonQtShell_SocExplorerPlot::hideEvent(QHideEvent* arg__1)
3847 void PythonQtShell_SocExplorerPlot::hideEvent(QHideEvent* arg__1)
3817 {
3848 {
3818 if (_wrapper) {
3849 if (_wrapper) {
3819 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
3850 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
3820 PyErr_Clear();
3851 PyErr_Clear();
3821 if (obj && !PythonQtSlotFunction_Check(obj)) {
3852 if (obj && !PythonQtSlotFunction_Check(obj)) {
3822 static const char* argumentList[] ={"" , "QHideEvent*"};
3853 static const char* argumentList[] ={"" , "QHideEvent*"};
3823 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3854 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3824 void* args[2] = {NULL, (void*)&arg__1};
3855 void* args[2] = {NULL, (void*)&arg__1};
3825 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3856 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3826 if (result) { Py_DECREF(result); }
3857 if (result) { Py_DECREF(result); }
3827 Py_DECREF(obj);
3858 Py_DECREF(obj);
3828 return;
3859 return;
3829 }
3860 }
3830 }
3861 }
3831 SocExplorerPlot::hideEvent(arg__1);
3862 SocExplorerPlot::hideEvent(arg__1);
3832 }
3863 }
3833 void PythonQtShell_SocExplorerPlot::initPainter(QPainter* painter) const
3864 void PythonQtShell_SocExplorerPlot::initPainter(QPainter* painter) const
3834 {
3865 {
3835 if (_wrapper) {
3866 if (_wrapper) {
3836 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
3867 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
3837 PyErr_Clear();
3868 PyErr_Clear();
3838 if (obj && !PythonQtSlotFunction_Check(obj)) {
3869 if (obj && !PythonQtSlotFunction_Check(obj)) {
3839 static const char* argumentList[] ={"" , "QPainter*"};
3870 static const char* argumentList[] ={"" , "QPainter*"};
3840 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3871 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3841 void* args[2] = {NULL, (void*)&painter};
3872 void* args[2] = {NULL, (void*)&painter};
3842 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3873 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3843 if (result) { Py_DECREF(result); }
3874 if (result) { Py_DECREF(result); }
3844 Py_DECREF(obj);
3875 Py_DECREF(obj);
3845 return;
3876 return;
3846 }
3877 }
3847 }
3878 }
3848 SocExplorerPlot::initPainter(painter);
3879 SocExplorerPlot::initPainter(painter);
3849 }
3880 }
3850 void PythonQtShell_SocExplorerPlot::inputMethodEvent(QInputMethodEvent* arg__1)
3881 void PythonQtShell_SocExplorerPlot::inputMethodEvent(QInputMethodEvent* arg__1)
3851 {
3882 {
3852 if (_wrapper) {
3883 if (_wrapper) {
3853 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
3884 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
3854 PyErr_Clear();
3885 PyErr_Clear();
3855 if (obj && !PythonQtSlotFunction_Check(obj)) {
3886 if (obj && !PythonQtSlotFunction_Check(obj)) {
3856 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
3887 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
3857 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3888 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3858 void* args[2] = {NULL, (void*)&arg__1};
3889 void* args[2] = {NULL, (void*)&arg__1};
3859 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3890 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3860 if (result) { Py_DECREF(result); }
3891 if (result) { Py_DECREF(result); }
3861 Py_DECREF(obj);
3892 Py_DECREF(obj);
3862 return;
3893 return;
3863 }
3894 }
3864 }
3895 }
3865 SocExplorerPlot::inputMethodEvent(arg__1);
3896 SocExplorerPlot::inputMethodEvent(arg__1);
3866 }
3897 }
3867 QVariant PythonQtShell_SocExplorerPlot::inputMethodQuery(Qt::InputMethodQuery arg__1) const
3898 QVariant PythonQtShell_SocExplorerPlot::inputMethodQuery(Qt::InputMethodQuery arg__1) const
3868 {
3899 {
3869 if (_wrapper) {
3900 if (_wrapper) {
3870 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
3901 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
3871 PyErr_Clear();
3902 PyErr_Clear();
3872 if (obj && !PythonQtSlotFunction_Check(obj)) {
3903 if (obj && !PythonQtSlotFunction_Check(obj)) {
3873 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
3904 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
3874 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3905 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3875 QVariant returnValue;
3906 QVariant returnValue;
3876 void* args[2] = {NULL, (void*)&arg__1};
3907 void* args[2] = {NULL, (void*)&arg__1};
3877 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3908 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3878 if (result) {
3909 if (result) {
3879 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3910 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3880 if (args[0]!=&returnValue) {
3911 if (args[0]!=&returnValue) {
3881 if (args[0]==NULL) {
3912 if (args[0]==NULL) {
3882 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
3913 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
3883 } else {
3914 } else {
3884 returnValue = *((QVariant*)args[0]);
3915 returnValue = *((QVariant*)args[0]);
3885 }
3916 }
3886 }
3917 }
3887 }
3918 }
3888 if (result) { Py_DECREF(result); }
3919 if (result) { Py_DECREF(result); }
3889 Py_DECREF(obj);
3920 Py_DECREF(obj);
3890 return returnValue;
3921 return returnValue;
3891 }
3922 }
3892 }
3923 }
3893 return SocExplorerPlot::inputMethodQuery(arg__1);
3924 return SocExplorerPlot::inputMethodQuery(arg__1);
3894 }
3925 }
3895 void PythonQtShell_SocExplorerPlot::keyPressEvent(QKeyEvent* arg__1)
3926 void PythonQtShell_SocExplorerPlot::keyPressEvent(QKeyEvent* arg__1)
3896 {
3927 {
3897 if (_wrapper) {
3928 if (_wrapper) {
3898 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
3929 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
3899 PyErr_Clear();
3930 PyErr_Clear();
3900 if (obj && !PythonQtSlotFunction_Check(obj)) {
3931 if (obj && !PythonQtSlotFunction_Check(obj)) {
3901 static const char* argumentList[] ={"" , "QKeyEvent*"};
3932 static const char* argumentList[] ={"" , "QKeyEvent*"};
3902 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3933 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3903 void* args[2] = {NULL, (void*)&arg__1};
3934 void* args[2] = {NULL, (void*)&arg__1};
3904 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3935 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3905 if (result) { Py_DECREF(result); }
3936 if (result) { Py_DECREF(result); }
3906 Py_DECREF(obj);
3937 Py_DECREF(obj);
3907 return;
3938 return;
3908 }
3939 }
3909 }
3940 }
3910 SocExplorerPlot::keyPressEvent(arg__1);
3941 SocExplorerPlot::keyPressEvent(arg__1);
3911 }
3942 }
3912 void PythonQtShell_SocExplorerPlot::keyReleaseEvent(QKeyEvent* arg__1)
3943 void PythonQtShell_SocExplorerPlot::keyReleaseEvent(QKeyEvent* arg__1)
3913 {
3944 {
3914 if (_wrapper) {
3945 if (_wrapper) {
3915 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
3946 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
3916 PyErr_Clear();
3947 PyErr_Clear();
3917 if (obj && !PythonQtSlotFunction_Check(obj)) {
3948 if (obj && !PythonQtSlotFunction_Check(obj)) {
3918 static const char* argumentList[] ={"" , "QKeyEvent*"};
3949 static const char* argumentList[] ={"" , "QKeyEvent*"};
3919 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3950 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3920 void* args[2] = {NULL, (void*)&arg__1};
3951 void* args[2] = {NULL, (void*)&arg__1};
3921 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3952 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3922 if (result) { Py_DECREF(result); }
3953 if (result) { Py_DECREF(result); }
3923 Py_DECREF(obj);
3954 Py_DECREF(obj);
3924 return;
3955 return;
3925 }
3956 }
3926 }
3957 }
3927 SocExplorerPlot::keyReleaseEvent(arg__1);
3958 SocExplorerPlot::keyReleaseEvent(arg__1);
3928 }
3959 }
3929 void PythonQtShell_SocExplorerPlot::leaveEvent(QEvent* arg__1)
3960 void PythonQtShell_SocExplorerPlot::leaveEvent(QEvent* arg__1)
3930 {
3961 {
3931 if (_wrapper) {
3962 if (_wrapper) {
3932 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
3963 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
3933 PyErr_Clear();
3964 PyErr_Clear();
3934 if (obj && !PythonQtSlotFunction_Check(obj)) {
3965 if (obj && !PythonQtSlotFunction_Check(obj)) {
3935 static const char* argumentList[] ={"" , "QEvent*"};
3966 static const char* argumentList[] ={"" , "QEvent*"};
3936 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3967 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3937 void* args[2] = {NULL, (void*)&arg__1};
3968 void* args[2] = {NULL, (void*)&arg__1};
3938 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3969 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3939 if (result) { Py_DECREF(result); }
3970 if (result) { Py_DECREF(result); }
3940 Py_DECREF(obj);
3971 Py_DECREF(obj);
3941 return;
3972 return;
3942 }
3973 }
3943 }
3974 }
3944 SocExplorerPlot::leaveEvent(arg__1);
3975 SocExplorerPlot::leaveEvent(arg__1);
3945 }
3976 }
3946 int PythonQtShell_SocExplorerPlot::metric(QPaintDevice::PaintDeviceMetric arg__1) const
3977 int PythonQtShell_SocExplorerPlot::metric(QPaintDevice::PaintDeviceMetric arg__1) const
3947 {
3978 {
3948 if (_wrapper) {
3979 if (_wrapper) {
3949 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
3980 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
3950 PyErr_Clear();
3981 PyErr_Clear();
3951 if (obj && !PythonQtSlotFunction_Check(obj)) {
3982 if (obj && !PythonQtSlotFunction_Check(obj)) {
3952 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
3983 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
3953 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3984 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
3954 int returnValue;
3985 int returnValue;
3955 void* args[2] = {NULL, (void*)&arg__1};
3986 void* args[2] = {NULL, (void*)&arg__1};
3956 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3987 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3957 if (result) {
3988 if (result) {
3958 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3989 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3959 if (args[0]!=&returnValue) {
3990 if (args[0]!=&returnValue) {
3960 if (args[0]==NULL) {
3991 if (args[0]==NULL) {
3961 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
3992 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
3962 } else {
3993 } else {
3963 returnValue = *((int*)args[0]);
3994 returnValue = *((int*)args[0]);
3964 }
3995 }
3965 }
3996 }
3966 }
3997 }
3967 if (result) { Py_DECREF(result); }
3998 if (result) { Py_DECREF(result); }
3968 Py_DECREF(obj);
3999 Py_DECREF(obj);
3969 return returnValue;
4000 return returnValue;
3970 }
4001 }
3971 }
4002 }
3972 return SocExplorerPlot::metric(arg__1);
4003 return SocExplorerPlot::metric(arg__1);
3973 }
4004 }
3974 QSize PythonQtShell_SocExplorerPlot::minimumSizeHint() const
4005 QSize PythonQtShell_SocExplorerPlot::minimumSizeHint() const
3975 {
4006 {
3976 if (_wrapper) {
4007 if (_wrapper) {
3977 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
4008 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
3978 PyErr_Clear();
4009 PyErr_Clear();
3979 if (obj && !PythonQtSlotFunction_Check(obj)) {
4010 if (obj && !PythonQtSlotFunction_Check(obj)) {
3980 static const char* argumentList[] ={"QSize"};
4011 static const char* argumentList[] ={"QSize"};
3981 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4012 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
3982 QSize returnValue;
4013 QSize returnValue;
3983 void* args[1] = {NULL};
4014 void* args[1] = {NULL};
3984 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4015 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
3985 if (result) {
4016 if (result) {
3986 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4017 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
3987 if (args[0]!=&returnValue) {
4018 if (args[0]!=&returnValue) {
3988 if (args[0]==NULL) {
4019 if (args[0]==NULL) {
3989 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
4020 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
3990 } else {
4021 } else {
3991 returnValue = *((QSize*)args[0]);
4022 returnValue = *((QSize*)args[0]);
3992 }
4023 }
3993 }
4024 }
3994 }
4025 }
3995 if (result) { Py_DECREF(result); }
4026 if (result) { Py_DECREF(result); }
3996 Py_DECREF(obj);
4027 Py_DECREF(obj);
3997 return returnValue;
4028 return returnValue;
3998 }
4029 }
3999 }
4030 }
4000 return SocExplorerPlot::minimumSizeHint();
4031 return SocExplorerPlot::minimumSizeHint();
4001 }
4032 }
4002 void PythonQtShell_SocExplorerPlot::mouseDoubleClickEvent(QMouseEvent* arg__1)
4033 void PythonQtShell_SocExplorerPlot::mouseDoubleClickEvent(QMouseEvent* arg__1)
4003 {
4034 {
4004 if (_wrapper) {
4035 if (_wrapper) {
4005 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
4036 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
4006 PyErr_Clear();
4037 PyErr_Clear();
4007 if (obj && !PythonQtSlotFunction_Check(obj)) {
4038 if (obj && !PythonQtSlotFunction_Check(obj)) {
4008 static const char* argumentList[] ={"" , "QMouseEvent*"};
4039 static const char* argumentList[] ={"" , "QMouseEvent*"};
4009 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4040 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4010 void* args[2] = {NULL, (void*)&arg__1};
4041 void* args[2] = {NULL, (void*)&arg__1};
4011 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4042 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4012 if (result) { Py_DECREF(result); }
4043 if (result) { Py_DECREF(result); }
4013 Py_DECREF(obj);
4044 Py_DECREF(obj);
4014 return;
4045 return;
4015 }
4046 }
4016 }
4047 }
4017 SocExplorerPlot::mouseDoubleClickEvent(arg__1);
4048 SocExplorerPlot::mouseDoubleClickEvent(arg__1);
4018 }
4049 }
4019 void PythonQtShell_SocExplorerPlot::mouseMoveEvent(QMouseEvent* arg__1)
4050 void PythonQtShell_SocExplorerPlot::mouseMoveEvent(QMouseEvent* arg__1)
4020 {
4051 {
4021 if (_wrapper) {
4052 if (_wrapper) {
4022 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
4053 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
4023 PyErr_Clear();
4054 PyErr_Clear();
4024 if (obj && !PythonQtSlotFunction_Check(obj)) {
4055 if (obj && !PythonQtSlotFunction_Check(obj)) {
4025 static const char* argumentList[] ={"" , "QMouseEvent*"};
4056 static const char* argumentList[] ={"" , "QMouseEvent*"};
4026 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4057 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4027 void* args[2] = {NULL, (void*)&arg__1};
4058 void* args[2] = {NULL, (void*)&arg__1};
4028 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4059 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4029 if (result) { Py_DECREF(result); }
4060 if (result) { Py_DECREF(result); }
4030 Py_DECREF(obj);
4061 Py_DECREF(obj);
4031 return;
4062 return;
4032 }
4063 }
4033 }
4064 }
4034 SocExplorerPlot::mouseMoveEvent(arg__1);
4065 SocExplorerPlot::mouseMoveEvent(arg__1);
4035 }
4066 }
4036 void PythonQtShell_SocExplorerPlot::mousePressEvent(QMouseEvent* arg__1)
4067 void PythonQtShell_SocExplorerPlot::mousePressEvent(QMouseEvent* arg__1)
4037 {
4068 {
4038 if (_wrapper) {
4069 if (_wrapper) {
4039 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
4070 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
4040 PyErr_Clear();
4071 PyErr_Clear();
4041 if (obj && !PythonQtSlotFunction_Check(obj)) {
4072 if (obj && !PythonQtSlotFunction_Check(obj)) {
4042 static const char* argumentList[] ={"" , "QMouseEvent*"};
4073 static const char* argumentList[] ={"" , "QMouseEvent*"};
4043 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4074 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4044 void* args[2] = {NULL, (void*)&arg__1};
4075 void* args[2] = {NULL, (void*)&arg__1};
4045 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4076 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4046 if (result) { Py_DECREF(result); }
4077 if (result) { Py_DECREF(result); }
4047 Py_DECREF(obj);
4078 Py_DECREF(obj);
4048 return;
4079 return;
4049 }
4080 }
4050 }
4081 }
4051 SocExplorerPlot::mousePressEvent(arg__1);
4082 SocExplorerPlot::mousePressEvent(arg__1);
4052 }
4083 }
4053 void PythonQtShell_SocExplorerPlot::mouseReleaseEvent(QMouseEvent* arg__1)
4084 void PythonQtShell_SocExplorerPlot::mouseReleaseEvent(QMouseEvent* arg__1)
4054 {
4085 {
4055 if (_wrapper) {
4086 if (_wrapper) {
4056 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
4087 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
4057 PyErr_Clear();
4088 PyErr_Clear();
4058 if (obj && !PythonQtSlotFunction_Check(obj)) {
4089 if (obj && !PythonQtSlotFunction_Check(obj)) {
4059 static const char* argumentList[] ={"" , "QMouseEvent*"};
4090 static const char* argumentList[] ={"" , "QMouseEvent*"};
4060 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4091 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4061 void* args[2] = {NULL, (void*)&arg__1};
4092 void* args[2] = {NULL, (void*)&arg__1};
4062 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4093 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4063 if (result) { Py_DECREF(result); }
4094 if (result) { Py_DECREF(result); }
4064 Py_DECREF(obj);
4095 Py_DECREF(obj);
4065 return;
4096 return;
4066 }
4097 }
4067 }
4098 }
4068 SocExplorerPlot::mouseReleaseEvent(arg__1);
4099 SocExplorerPlot::mouseReleaseEvent(arg__1);
4069 }
4100 }
4070 void PythonQtShell_SocExplorerPlot::moveEvent(QMoveEvent* arg__1)
4101 void PythonQtShell_SocExplorerPlot::moveEvent(QMoveEvent* arg__1)
4071 {
4102 {
4072 if (_wrapper) {
4103 if (_wrapper) {
4073 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
4104 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
4074 PyErr_Clear();
4105 PyErr_Clear();
4075 if (obj && !PythonQtSlotFunction_Check(obj)) {
4106 if (obj && !PythonQtSlotFunction_Check(obj)) {
4076 static const char* argumentList[] ={"" , "QMoveEvent*"};
4107 static const char* argumentList[] ={"" , "QMoveEvent*"};
4077 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4108 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4078 void* args[2] = {NULL, (void*)&arg__1};
4109 void* args[2] = {NULL, (void*)&arg__1};
4079 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4110 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4080 if (result) { Py_DECREF(result); }
4111 if (result) { Py_DECREF(result); }
4081 Py_DECREF(obj);
4112 Py_DECREF(obj);
4082 return;
4113 return;
4083 }
4114 }
4084 }
4115 }
4085 SocExplorerPlot::moveEvent(arg__1);
4116 SocExplorerPlot::moveEvent(arg__1);
4086 }
4117 }
4087 bool PythonQtShell_SocExplorerPlot::nativeEvent(const QByteArray& eventType, void* message, long* result)
4118 bool PythonQtShell_SocExplorerPlot::nativeEvent(const QByteArray& eventType, void* message, long* result)
4088 {
4119 {
4089 if (_wrapper) {
4120 if (_wrapper) {
4090 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
4121 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
4091 PyErr_Clear();
4122 PyErr_Clear();
4092 if (obj && !PythonQtSlotFunction_Check(obj)) {
4123 if (obj && !PythonQtSlotFunction_Check(obj)) {
4093 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
4124 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
4094 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
4125 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
4095 bool returnValue;
4126 bool returnValue;
4096 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
4127 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
4097 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4128 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4098 if (result) {
4129 if (result) {
4099 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4130 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4100 if (args[0]!=&returnValue) {
4131 if (args[0]!=&returnValue) {
4101 if (args[0]==NULL) {
4132 if (args[0]==NULL) {
4102 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
4133 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
4103 } else {
4134 } else {
4104 returnValue = *((bool*)args[0]);
4135 returnValue = *((bool*)args[0]);
4105 }
4136 }
4106 }
4137 }
4107 }
4138 }
4108 if (result) { Py_DECREF(result); }
4139 if (result) { Py_DECREF(result); }
4109 Py_DECREF(obj);
4140 Py_DECREF(obj);
4110 return returnValue;
4141 return returnValue;
4111 }
4142 }
4112 }
4143 }
4113 return SocExplorerPlot::nativeEvent(eventType, message, result);
4144 return SocExplorerPlot::nativeEvent(eventType, message, result);
4114 }
4145 }
4115 QPaintEngine* PythonQtShell_SocExplorerPlot::paintEngine() const
4146 QPaintEngine* PythonQtShell_SocExplorerPlot::paintEngine() const
4116 {
4147 {
4117 if (_wrapper) {
4148 if (_wrapper) {
4118 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
4149 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
4119 PyErr_Clear();
4150 PyErr_Clear();
4120 if (obj && !PythonQtSlotFunction_Check(obj)) {
4151 if (obj && !PythonQtSlotFunction_Check(obj)) {
4121 static const char* argumentList[] ={"QPaintEngine*"};
4152 static const char* argumentList[] ={"QPaintEngine*"};
4122 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4153 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4123 QPaintEngine* returnValue;
4154 QPaintEngine* returnValue;
4124 void* args[1] = {NULL};
4155 void* args[1] = {NULL};
4125 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4156 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4126 if (result) {
4157 if (result) {
4127 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4158 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4128 if (args[0]!=&returnValue) {
4159 if (args[0]!=&returnValue) {
4129 if (args[0]==NULL) {
4160 if (args[0]==NULL) {
4130 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
4161 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
4131 } else {
4162 } else {
4132 returnValue = *((QPaintEngine**)args[0]);
4163 returnValue = *((QPaintEngine**)args[0]);
4133 }
4164 }
4134 }
4165 }
4135 }
4166 }
4136 if (result) { Py_DECREF(result); }
4167 if (result) { Py_DECREF(result); }
4137 Py_DECREF(obj);
4168 Py_DECREF(obj);
4138 return returnValue;
4169 return returnValue;
4139 }
4170 }
4140 }
4171 }
4141 return SocExplorerPlot::paintEngine();
4172 return SocExplorerPlot::paintEngine();
4142 }
4173 }
4143 void PythonQtShell_SocExplorerPlot::paintEvent(QPaintEvent* arg__1)
4174 void PythonQtShell_SocExplorerPlot::paintEvent(QPaintEvent* arg__1)
4144 {
4175 {
4145 if (_wrapper) {
4176 if (_wrapper) {
4146 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
4177 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
4147 PyErr_Clear();
4178 PyErr_Clear();
4148 if (obj && !PythonQtSlotFunction_Check(obj)) {
4179 if (obj && !PythonQtSlotFunction_Check(obj)) {
4149 static const char* argumentList[] ={"" , "QPaintEvent*"};
4180 static const char* argumentList[] ={"" , "QPaintEvent*"};
4150 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4181 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4151 void* args[2] = {NULL, (void*)&arg__1};
4182 void* args[2] = {NULL, (void*)&arg__1};
4152 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4183 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4153 if (result) { Py_DECREF(result); }
4184 if (result) { Py_DECREF(result); }
4154 Py_DECREF(obj);
4185 Py_DECREF(obj);
4155 return;
4186 return;
4156 }
4187 }
4157 }
4188 }
4158 SocExplorerPlot::paintEvent(arg__1);
4189 SocExplorerPlot::paintEvent(arg__1);
4159 }
4190 }
4160 QPaintDevice* PythonQtShell_SocExplorerPlot::redirected(QPoint* offset) const
4191 QPaintDevice* PythonQtShell_SocExplorerPlot::redirected(QPoint* offset) const
4161 {
4192 {
4162 if (_wrapper) {
4193 if (_wrapper) {
4163 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
4194 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
4164 PyErr_Clear();
4195 PyErr_Clear();
4165 if (obj && !PythonQtSlotFunction_Check(obj)) {
4196 if (obj && !PythonQtSlotFunction_Check(obj)) {
4166 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
4197 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
4167 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4198 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4168 QPaintDevice* returnValue;
4199 QPaintDevice* returnValue;
4169 void* args[2] = {NULL, (void*)&offset};
4200 void* args[2] = {NULL, (void*)&offset};
4170 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4201 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4171 if (result) {
4202 if (result) {
4172 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4203 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4173 if (args[0]!=&returnValue) {
4204 if (args[0]!=&returnValue) {
4174 if (args[0]==NULL) {
4205 if (args[0]==NULL) {
4175 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
4206 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
4176 } else {
4207 } else {
4177 returnValue = *((QPaintDevice**)args[0]);
4208 returnValue = *((QPaintDevice**)args[0]);
4178 }
4209 }
4179 }
4210 }
4180 }
4211 }
4181 if (result) { Py_DECREF(result); }
4212 if (result) { Py_DECREF(result); }
4182 Py_DECREF(obj);
4213 Py_DECREF(obj);
4183 return returnValue;
4214 return returnValue;
4184 }
4215 }
4185 }
4216 }
4186 return SocExplorerPlot::redirected(offset);
4217 return SocExplorerPlot::redirected(offset);
4187 }
4218 }
4188 void PythonQtShell_SocExplorerPlot::resizeEvent(QResizeEvent* arg__1)
4219 void PythonQtShell_SocExplorerPlot::resizeEvent(QResizeEvent* arg__1)
4189 {
4220 {
4190 if (_wrapper) {
4221 if (_wrapper) {
4191 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
4222 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
4192 PyErr_Clear();
4223 PyErr_Clear();
4193 if (obj && !PythonQtSlotFunction_Check(obj)) {
4224 if (obj && !PythonQtSlotFunction_Check(obj)) {
4194 static const char* argumentList[] ={"" , "QResizeEvent*"};
4225 static const char* argumentList[] ={"" , "QResizeEvent*"};
4195 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4226 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4196 void* args[2] = {NULL, (void*)&arg__1};
4227 void* args[2] = {NULL, (void*)&arg__1};
4197 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4228 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4198 if (result) { Py_DECREF(result); }
4229 if (result) { Py_DECREF(result); }
4199 Py_DECREF(obj);
4230 Py_DECREF(obj);
4200 return;
4231 return;
4201 }
4232 }
4202 }
4233 }
4203 SocExplorerPlot::resizeEvent(arg__1);
4234 SocExplorerPlot::resizeEvent(arg__1);
4204 }
4235 }
4205 QPainter* PythonQtShell_SocExplorerPlot::sharedPainter() const
4236 QPainter* PythonQtShell_SocExplorerPlot::sharedPainter() const
4206 {
4237 {
4207 if (_wrapper) {
4238 if (_wrapper) {
4208 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
4239 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
4209 PyErr_Clear();
4240 PyErr_Clear();
4210 if (obj && !PythonQtSlotFunction_Check(obj)) {
4241 if (obj && !PythonQtSlotFunction_Check(obj)) {
4211 static const char* argumentList[] ={"QPainter*"};
4242 static const char* argumentList[] ={"QPainter*"};
4212 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4243 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4213 QPainter* returnValue;
4244 QPainter* returnValue;
4214 void* args[1] = {NULL};
4245 void* args[1] = {NULL};
4215 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4246 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4216 if (result) {
4247 if (result) {
4217 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4248 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4218 if (args[0]!=&returnValue) {
4249 if (args[0]!=&returnValue) {
4219 if (args[0]==NULL) {
4250 if (args[0]==NULL) {
4220 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
4251 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
4221 } else {
4252 } else {
4222 returnValue = *((QPainter**)args[0]);
4253 returnValue = *((QPainter**)args[0]);
4223 }
4254 }
4224 }
4255 }
4225 }
4256 }
4226 if (result) { Py_DECREF(result); }
4257 if (result) { Py_DECREF(result); }
4227 Py_DECREF(obj);
4258 Py_DECREF(obj);
4228 return returnValue;
4259 return returnValue;
4229 }
4260 }
4230 }
4261 }
4231 return SocExplorerPlot::sharedPainter();
4262 return SocExplorerPlot::sharedPainter();
4232 }
4263 }
4233 void PythonQtShell_SocExplorerPlot::showEvent(QShowEvent* arg__1)
4264 void PythonQtShell_SocExplorerPlot::showEvent(QShowEvent* arg__1)
4234 {
4265 {
4235 if (_wrapper) {
4266 if (_wrapper) {
4236 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
4267 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
4237 PyErr_Clear();
4268 PyErr_Clear();
4238 if (obj && !PythonQtSlotFunction_Check(obj)) {
4269 if (obj && !PythonQtSlotFunction_Check(obj)) {
4239 static const char* argumentList[] ={"" , "QShowEvent*"};
4270 static const char* argumentList[] ={"" , "QShowEvent*"};
4240 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4271 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4241 void* args[2] = {NULL, (void*)&arg__1};
4272 void* args[2] = {NULL, (void*)&arg__1};
4242 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4273 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4243 if (result) { Py_DECREF(result); }
4274 if (result) { Py_DECREF(result); }
4244 Py_DECREF(obj);
4275 Py_DECREF(obj);
4245 return;
4276 return;
4246 }
4277 }
4247 }
4278 }
4248 SocExplorerPlot::showEvent(arg__1);
4279 SocExplorerPlot::showEvent(arg__1);
4249 }
4280 }
4250 QSize PythonQtShell_SocExplorerPlot::sizeHint() const
4281 QSize PythonQtShell_SocExplorerPlot::sizeHint() const
4251 {
4282 {
4252 if (_wrapper) {
4283 if (_wrapper) {
4253 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
4284 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
4254 PyErr_Clear();
4285 PyErr_Clear();
4255 if (obj && !PythonQtSlotFunction_Check(obj)) {
4286 if (obj && !PythonQtSlotFunction_Check(obj)) {
4256 static const char* argumentList[] ={"QSize"};
4287 static const char* argumentList[] ={"QSize"};
4257 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4288 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4258 QSize returnValue;
4289 QSize returnValue;
4259 void* args[1] = {NULL};
4290 void* args[1] = {NULL};
4260 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4291 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4261 if (result) {
4292 if (result) {
4262 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4293 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4263 if (args[0]!=&returnValue) {
4294 if (args[0]!=&returnValue) {
4264 if (args[0]==NULL) {
4295 if (args[0]==NULL) {
4265 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
4296 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
4266 } else {
4297 } else {
4267 returnValue = *((QSize*)args[0]);
4298 returnValue = *((QSize*)args[0]);
4268 }
4299 }
4269 }
4300 }
4270 }
4301 }
4271 if (result) { Py_DECREF(result); }
4302 if (result) { Py_DECREF(result); }
4272 Py_DECREF(obj);
4303 Py_DECREF(obj);
4273 return returnValue;
4304 return returnValue;
4274 }
4305 }
4275 }
4306 }
4276 return SocExplorerPlot::sizeHint();
4307 return SocExplorerPlot::sizeHint();
4277 }
4308 }
4278 void PythonQtShell_SocExplorerPlot::tabletEvent(QTabletEvent* arg__1)
4309 void PythonQtShell_SocExplorerPlot::tabletEvent(QTabletEvent* arg__1)
4279 {
4310 {
4280 if (_wrapper) {
4311 if (_wrapper) {
4281 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
4312 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
4282 PyErr_Clear();
4313 PyErr_Clear();
4283 if (obj && !PythonQtSlotFunction_Check(obj)) {
4314 if (obj && !PythonQtSlotFunction_Check(obj)) {
4284 static const char* argumentList[] ={"" , "QTabletEvent*"};
4315 static const char* argumentList[] ={"" , "QTabletEvent*"};
4285 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4316 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4286 void* args[2] = {NULL, (void*)&arg__1};
4317 void* args[2] = {NULL, (void*)&arg__1};
4287 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4318 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4288 if (result) { Py_DECREF(result); }
4319 if (result) { Py_DECREF(result); }
4289 Py_DECREF(obj);
4320 Py_DECREF(obj);
4290 return;
4321 return;
4291 }
4322 }
4292 }
4323 }
4293 SocExplorerPlot::tabletEvent(arg__1);
4324 SocExplorerPlot::tabletEvent(arg__1);
4294 }
4325 }
4295 void PythonQtShell_SocExplorerPlot::timerEvent(QTimerEvent* arg__1)
4326 void PythonQtShell_SocExplorerPlot::timerEvent(QTimerEvent* arg__1)
4296 {
4327 {
4297 if (_wrapper) {
4328 if (_wrapper) {
4298 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
4329 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
4299 PyErr_Clear();
4330 PyErr_Clear();
4300 if (obj && !PythonQtSlotFunction_Check(obj)) {
4331 if (obj && !PythonQtSlotFunction_Check(obj)) {
4301 static const char* argumentList[] ={"" , "QTimerEvent*"};
4332 static const char* argumentList[] ={"" , "QTimerEvent*"};
4302 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4333 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4303 void* args[2] = {NULL, (void*)&arg__1};
4334 void* args[2] = {NULL, (void*)&arg__1};
4304 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4335 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4305 if (result) { Py_DECREF(result); }
4336 if (result) { Py_DECREF(result); }
4306 Py_DECREF(obj);
4337 Py_DECREF(obj);
4307 return;
4338 return;
4308 }
4339 }
4309 }
4340 }
4310 SocExplorerPlot::timerEvent(arg__1);
4341 SocExplorerPlot::timerEvent(arg__1);
4311 }
4342 }
4312 void PythonQtShell_SocExplorerPlot::wheelEvent(QWheelEvent* arg__1)
4343 void PythonQtShell_SocExplorerPlot::wheelEvent(QWheelEvent* arg__1)
4313 {
4344 {
4314 if (_wrapper) {
4345 if (_wrapper) {
4315 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
4346 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
4316 PyErr_Clear();
4347 PyErr_Clear();
4317 if (obj && !PythonQtSlotFunction_Check(obj)) {
4348 if (obj && !PythonQtSlotFunction_Check(obj)) {
4318 static const char* argumentList[] ={"" , "QWheelEvent*"};
4349 static const char* argumentList[] ={"" , "QWheelEvent*"};
4319 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4350 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4320 void* args[2] = {NULL, (void*)&arg__1};
4351 void* args[2] = {NULL, (void*)&arg__1};
4321 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4352 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4322 if (result) { Py_DECREF(result); }
4353 if (result) { Py_DECREF(result); }
4323 Py_DECREF(obj);
4354 Py_DECREF(obj);
4324 return;
4355 return;
4325 }
4356 }
4326 }
4357 }
4327 SocExplorerPlot::wheelEvent(arg__1);
4358 SocExplorerPlot::wheelEvent(arg__1);
4328 }
4359 }
4329 SocExplorerPlot* PythonQtWrapper_SocExplorerPlot::new_SocExplorerPlot(QWidget* parent)
4360 SocExplorerPlot* PythonQtWrapper_SocExplorerPlot::new_SocExplorerPlot(QWidget* parent)
4330 {
4361 {
4331 return new PythonQtShell_SocExplorerPlot(parent); }
4362 return new PythonQtShell_SocExplorerPlot(parent); }
4332
4363
4333 int PythonQtWrapper_SocExplorerPlot::addGraph(SocExplorerPlot* theWrappedObject)
4364 int PythonQtWrapper_SocExplorerPlot::addGraph(SocExplorerPlot* theWrappedObject)
4334 {
4365 {
4335 return ( theWrappedObject->addGraph());
4366 return ( theWrappedObject->addGraph());
4336 }
4367 }
4337
4368
4338 void PythonQtWrapper_SocExplorerPlot::addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y)
4369 void PythonQtWrapper_SocExplorerPlot::addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y)
4339 {
4370 {
4340 ( theWrappedObject->addGraphData(graphIndex, x, y));
4371 ( theWrappedObject->addGraphData(graphIndex, x, y));
4341 }
4372 }
4342
4373
4343 void PythonQtWrapper_SocExplorerPlot::addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y)
4374 void PythonQtWrapper_SocExplorerPlot::addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y)
4344 {
4375 {
4345 ( theWrappedObject->addGraphData(graphIndex, x, y));
4376 ( theWrappedObject->addGraphData(graphIndex, x, y));
4346 }
4377 }
4347
4378
4348 QPen PythonQtWrapper_SocExplorerPlot::getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex)
4379 QPen PythonQtWrapper_SocExplorerPlot::getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex)
4349 {
4380 {
4350 return ( theWrappedObject->getGraphPen(graphIndex));
4381 return ( theWrappedObject->getGraphPen(graphIndex));
4351 }
4382 }
4352
4383
4353 void PythonQtWrapper_SocExplorerPlot::keyPressEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1)
4384 void PythonQtWrapper_SocExplorerPlot::keyPressEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1)
4354 {
4385 {
4355 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_keyPressEvent(arg__1));
4386 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_keyPressEvent(arg__1));
4356 }
4387 }
4357
4388
4358 void PythonQtWrapper_SocExplorerPlot::keyReleaseEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1)
4389 void PythonQtWrapper_SocExplorerPlot::keyReleaseEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1)
4359 {
4390 {
4360 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_keyReleaseEvent(arg__1));
4391 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_keyReleaseEvent(arg__1));
4361 }
4392 }
4362
4393
4363 void PythonQtWrapper_SocExplorerPlot::mouseMoveEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1)
4394 void PythonQtWrapper_SocExplorerPlot::mouseMoveEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1)
4364 {
4395 {
4365 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mouseMoveEvent(arg__1));
4396 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mouseMoveEvent(arg__1));
4366 }
4397 }
4367
4398
4368 void PythonQtWrapper_SocExplorerPlot::mousePressEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1)
4399 void PythonQtWrapper_SocExplorerPlot::mousePressEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1)
4369 {
4400 {
4370 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mousePressEvent(arg__1));
4401 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mousePressEvent(arg__1));
4371 }
4402 }
4372
4403
4373 void PythonQtWrapper_SocExplorerPlot::mouseReleaseEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1)
4404 void PythonQtWrapper_SocExplorerPlot::mouseReleaseEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1)
4374 {
4405 {
4375 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1));
4406 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1));
4376 }
4407 }
4377
4408
4378 void PythonQtWrapper_SocExplorerPlot::rescaleAxis(SocExplorerPlot* theWrappedObject)
4409 void PythonQtWrapper_SocExplorerPlot::rescaleAxis(SocExplorerPlot* theWrappedObject)
4379 {
4410 {
4380 ( theWrappedObject->rescaleAxis());
4411 ( theWrappedObject->rescaleAxis());
4381 }
4412 }
4382
4413
4383 void PythonQtWrapper_SocExplorerPlot::setAdaptativeSampling(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable)
4414 void PythonQtWrapper_SocExplorerPlot::setAdaptativeSampling(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable)
4384 {
4415 {
4385 ( theWrappedObject->setAdaptativeSampling(graphIndex, enable));
4416 ( theWrappedObject->setAdaptativeSampling(graphIndex, enable));
4386 }
4417 }
4387
4418
4388 void PythonQtWrapper_SocExplorerPlot::setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y)
4419 void PythonQtWrapper_SocExplorerPlot::setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y)
4389 {
4420 {
4390 ( theWrappedObject->setGraphData(graphIndex, x, y));
4421 ( theWrappedObject->setGraphData(graphIndex, x, y));
4391 }
4422 }
4392
4423
4393 void PythonQtWrapper_SocExplorerPlot::setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle)
4424 void PythonQtWrapper_SocExplorerPlot::setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle)
4394 {
4425 {
4395 ( theWrappedObject->setGraphLineStyle(graphIndex, lineStyle));
4426 ( theWrappedObject->setGraphLineStyle(graphIndex, lineStyle));
4396 }
4427 }
4397
4428
4398 void PythonQtWrapper_SocExplorerPlot::setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name)
4429 void PythonQtWrapper_SocExplorerPlot::setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name)
4399 {
4430 {
4400 ( theWrappedObject->setGraphName(graphIndex, name));
4431 ( theWrappedObject->setGraphName(graphIndex, name));
4401 }
4432 }
4402
4433
4403 void PythonQtWrapper_SocExplorerPlot::setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen)
4434 void PythonQtWrapper_SocExplorerPlot::setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen)
4404 {
4435 {
4405 ( theWrappedObject->setGraphPen(graphIndex, pen));
4436 ( theWrappedObject->setGraphPen(graphIndex, pen));
4406 }
4437 }
4407
4438
4408 void PythonQtWrapper_SocExplorerPlot::setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle)
4439 void PythonQtWrapper_SocExplorerPlot::setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle)
4409 {
4440 {
4410 ( theWrappedObject->setGraphScatterStyle(graphIndex, scatterStyle));
4441 ( theWrappedObject->setGraphScatterStyle(graphIndex, scatterStyle));
4411 }
4442 }
4412
4443
4413 void PythonQtWrapper_SocExplorerPlot::setLegendFont(SocExplorerPlot* theWrappedObject, QFont font)
4444 void PythonQtWrapper_SocExplorerPlot::setLegendFont(SocExplorerPlot* theWrappedObject, QFont font)
4414 {
4445 {
4415 ( theWrappedObject->setLegendFont(font));
4446 ( theWrappedObject->setLegendFont(font));
4416 }
4447 }
4417
4448
4418 void PythonQtWrapper_SocExplorerPlot::setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font)
4449 void PythonQtWrapper_SocExplorerPlot::setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font)
4419 {
4450 {
4420 ( theWrappedObject->setLegendSelectedFont(font));
4451 ( theWrappedObject->setLegendSelectedFont(font));
4421 }
4452 }
4422
4453
4423 void PythonQtWrapper_SocExplorerPlot::setTitle(SocExplorerPlot* theWrappedObject, QString title)
4454 void PythonQtWrapper_SocExplorerPlot::setTitle(SocExplorerPlot* theWrappedObject, QString title)
4424 {
4455 {
4425 ( theWrappedObject->setTitle(title));
4456 ( theWrappedObject->setTitle(title));
4426 }
4457 }
4427
4458
4428 void PythonQtWrapper_SocExplorerPlot::setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label)
4459 void PythonQtWrapper_SocExplorerPlot::setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label)
4429 {
4460 {
4430 ( theWrappedObject->setXaxisLabel(label));
4461 ( theWrappedObject->setXaxisLabel(label));
4431 }
4462 }
4432
4463
4433 void PythonQtWrapper_SocExplorerPlot::setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper)
4464 void PythonQtWrapper_SocExplorerPlot::setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper)
4434 {
4465 {
4435 ( theWrappedObject->setXaxisRange(lower, upper));
4466 ( theWrappedObject->setXaxisRange(lower, upper));
4436 }
4467 }
4437
4468
4438 void PythonQtWrapper_SocExplorerPlot::setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label)
4469 void PythonQtWrapper_SocExplorerPlot::setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label)
4439 {
4470 {
4440 ( theWrappedObject->setYaxisLabel(label));
4471 ( theWrappedObject->setYaxisLabel(label));
4441 }
4472 }
4442
4473
4443 void PythonQtWrapper_SocExplorerPlot::setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper)
4474 void PythonQtWrapper_SocExplorerPlot::setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper)
4444 {
4475 {
4445 ( theWrappedObject->setYaxisRange(lower, upper));
4476 ( theWrappedObject->setYaxisRange(lower, upper));
4446 }
4477 }
4447
4478
4448 void PythonQtWrapper_SocExplorerPlot::show(SocExplorerPlot* theWrappedObject)
4479 void PythonQtWrapper_SocExplorerPlot::show(SocExplorerPlot* theWrappedObject)
4449 {
4480 {
4450 ( theWrappedObject->show());
4481 ( theWrappedObject->show());
4451 }
4482 }
4452
4483
4453 void PythonQtWrapper_SocExplorerPlot::wheelEvent(SocExplorerPlot* theWrappedObject, QWheelEvent* arg__1)
4484 void PythonQtWrapper_SocExplorerPlot::wheelEvent(SocExplorerPlot* theWrappedObject, QWheelEvent* arg__1)
4454 {
4485 {
4455 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_wheelEvent(arg__1));
4486 ( ((PythonQtPublicPromoter_SocExplorerPlot*)theWrappedObject)->promoted_wheelEvent(arg__1));
4456 }
4487 }
4457
4488
4458
4489
4459
4490
4460 PythonQtShell_TCP_Terminal_Client::~PythonQtShell_TCP_Terminal_Client() {
4491 PythonQtShell_TCP_Terminal_Client::~PythonQtShell_TCP_Terminal_Client() {
4461 PythonQtPrivate* priv = PythonQt::priv();
4492 PythonQtPrivate* priv = PythonQt::priv();
4462 if (priv) { priv->shellClassDeleted(this); }
4493 if (priv) { priv->shellClassDeleted(this); }
4463 }
4494 }
4464 void PythonQtShell_TCP_Terminal_Client::childEvent(QChildEvent* arg__1)
4495 void PythonQtShell_TCP_Terminal_Client::childEvent(QChildEvent* arg__1)
4465 {
4496 {
4466 if (_wrapper) {
4497 if (_wrapper) {
4467 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
4498 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
4468 PyErr_Clear();
4499 PyErr_Clear();
4469 if (obj && !PythonQtSlotFunction_Check(obj)) {
4500 if (obj && !PythonQtSlotFunction_Check(obj)) {
4470 static const char* argumentList[] ={"" , "QChildEvent*"};
4501 static const char* argumentList[] ={"" , "QChildEvent*"};
4471 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4502 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4472 void* args[2] = {NULL, (void*)&arg__1};
4503 void* args[2] = {NULL, (void*)&arg__1};
4473 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4504 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4474 if (result) { Py_DECREF(result); }
4505 if (result) { Py_DECREF(result); }
4475 Py_DECREF(obj);
4506 Py_DECREF(obj);
4476 return;
4507 return;
4477 }
4508 }
4478 }
4509 }
4479 TCP_Terminal_Client::childEvent(arg__1);
4510 TCP_Terminal_Client::childEvent(arg__1);
4480 }
4511 }
4481 void PythonQtShell_TCP_Terminal_Client::customEvent(QEvent* arg__1)
4512 void PythonQtShell_TCP_Terminal_Client::customEvent(QEvent* arg__1)
4482 {
4513 {
4483 if (_wrapper) {
4514 if (_wrapper) {
4484 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
4515 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
4485 PyErr_Clear();
4516 PyErr_Clear();
4486 if (obj && !PythonQtSlotFunction_Check(obj)) {
4517 if (obj && !PythonQtSlotFunction_Check(obj)) {
4487 static const char* argumentList[] ={"" , "QEvent*"};
4518 static const char* argumentList[] ={"" , "QEvent*"};
4488 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4519 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4489 void* args[2] = {NULL, (void*)&arg__1};
4520 void* args[2] = {NULL, (void*)&arg__1};
4490 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4521 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4491 if (result) { Py_DECREF(result); }
4522 if (result) { Py_DECREF(result); }
4492 Py_DECREF(obj);
4523 Py_DECREF(obj);
4493 return;
4524 return;
4494 }
4525 }
4495 }
4526 }
4496 TCP_Terminal_Client::customEvent(arg__1);
4527 TCP_Terminal_Client::customEvent(arg__1);
4497 }
4528 }
4498 bool PythonQtShell_TCP_Terminal_Client::event(QEvent* arg__1)
4529 bool PythonQtShell_TCP_Terminal_Client::event(QEvent* arg__1)
4499 {
4530 {
4500 if (_wrapper) {
4531 if (_wrapper) {
4501 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
4532 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
4502 PyErr_Clear();
4533 PyErr_Clear();
4503 if (obj && !PythonQtSlotFunction_Check(obj)) {
4534 if (obj && !PythonQtSlotFunction_Check(obj)) {
4504 static const char* argumentList[] ={"bool" , "QEvent*"};
4535 static const char* argumentList[] ={"bool" , "QEvent*"};
4505 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4536 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4506 bool returnValue;
4537 bool returnValue;
4507 void* args[2] = {NULL, (void*)&arg__1};
4538 void* args[2] = {NULL, (void*)&arg__1};
4508 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4539 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4509 if (result) {
4540 if (result) {
4510 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4541 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4511 if (args[0]!=&returnValue) {
4542 if (args[0]!=&returnValue) {
4512 if (args[0]==NULL) {
4543 if (args[0]==NULL) {
4513 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
4544 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
4514 } else {
4545 } else {
4515 returnValue = *((bool*)args[0]);
4546 returnValue = *((bool*)args[0]);
4516 }
4547 }
4517 }
4548 }
4518 }
4549 }
4519 if (result) { Py_DECREF(result); }
4550 if (result) { Py_DECREF(result); }
4520 Py_DECREF(obj);
4551 Py_DECREF(obj);
4521 return returnValue;
4552 return returnValue;
4522 }
4553 }
4523 }
4554 }
4524 return TCP_Terminal_Client::event(arg__1);
4555 return TCP_Terminal_Client::event(arg__1);
4525 }
4556 }
4526 bool PythonQtShell_TCP_Terminal_Client::eventFilter(QObject* arg__1, QEvent* arg__2)
4557 bool PythonQtShell_TCP_Terminal_Client::eventFilter(QObject* arg__1, QEvent* arg__2)
4527 {
4558 {
4528 if (_wrapper) {
4559 if (_wrapper) {
4529 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
4560 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
4530 PyErr_Clear();
4561 PyErr_Clear();
4531 if (obj && !PythonQtSlotFunction_Check(obj)) {
4562 if (obj && !PythonQtSlotFunction_Check(obj)) {
4532 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
4563 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
4533 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
4564 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
4534 bool returnValue;
4565 bool returnValue;
4535 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
4566 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
4536 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4567 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4537 if (result) {
4568 if (result) {
4538 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4569 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4539 if (args[0]!=&returnValue) {
4570 if (args[0]!=&returnValue) {
4540 if (args[0]==NULL) {
4571 if (args[0]==NULL) {
4541 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
4572 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
4542 } else {
4573 } else {
4543 returnValue = *((bool*)args[0]);
4574 returnValue = *((bool*)args[0]);
4544 }
4575 }
4545 }
4576 }
4546 }
4577 }
4547 if (result) { Py_DECREF(result); }
4578 if (result) { Py_DECREF(result); }
4548 Py_DECREF(obj);
4579 Py_DECREF(obj);
4549 return returnValue;
4580 return returnValue;
4550 }
4581 }
4551 }
4582 }
4552 return TCP_Terminal_Client::eventFilter(arg__1, arg__2);
4583 return TCP_Terminal_Client::eventFilter(arg__1, arg__2);
4553 }
4584 }
4554 void PythonQtShell_TCP_Terminal_Client::timerEvent(QTimerEvent* arg__1)
4585 void PythonQtShell_TCP_Terminal_Client::timerEvent(QTimerEvent* arg__1)
4555 {
4586 {
4556 if (_wrapper) {
4587 if (_wrapper) {
4557 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
4588 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
4558 PyErr_Clear();
4589 PyErr_Clear();
4559 if (obj && !PythonQtSlotFunction_Check(obj)) {
4590 if (obj && !PythonQtSlotFunction_Check(obj)) {
4560 static const char* argumentList[] ={"" , "QTimerEvent*"};
4591 static const char* argumentList[] ={"" , "QTimerEvent*"};
4561 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4592 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4562 void* args[2] = {NULL, (void*)&arg__1};
4593 void* args[2] = {NULL, (void*)&arg__1};
4563 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4594 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4564 if (result) { Py_DECREF(result); }
4595 if (result) { Py_DECREF(result); }
4565 Py_DECREF(obj);
4596 Py_DECREF(obj);
4566 return;
4597 return;
4567 }
4598 }
4568 }
4599 }
4569 TCP_Terminal_Client::timerEvent(arg__1);
4600 TCP_Terminal_Client::timerEvent(arg__1);
4570 }
4601 }
4571 TCP_Terminal_Client* PythonQtWrapper_TCP_Terminal_Client::new_TCP_Terminal_Client(QObject* parent)
4602 TCP_Terminal_Client* PythonQtWrapper_TCP_Terminal_Client::new_TCP_Terminal_Client(QObject* parent)
4572 {
4603 {
4573 return new PythonQtShell_TCP_Terminal_Client(parent); }
4604 return new PythonQtShell_TCP_Terminal_Client(parent); }
4574
4605
4575 void PythonQtWrapper_TCP_Terminal_Client::connectToServer(TCP_Terminal_Client* theWrappedObject)
4606 void PythonQtWrapper_TCP_Terminal_Client::connectToServer(TCP_Terminal_Client* theWrappedObject)
4576 {
4607 {
4577 ( theWrappedObject->connectToServer());
4608 ( theWrappedObject->connectToServer());
4578 }
4609 }
4579
4610
4580 void PythonQtWrapper_TCP_Terminal_Client::connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port)
4611 void PythonQtWrapper_TCP_Terminal_Client::connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port)
4581 {
4612 {
4582 ( theWrappedObject->connectToServer(IP, port));
4613 ( theWrappedObject->connectToServer(IP, port));
4583 }
4614 }
4584
4615
4585 bool PythonQtWrapper_TCP_Terminal_Client::isConnected(TCP_Terminal_Client* theWrappedObject)
4616 bool PythonQtWrapper_TCP_Terminal_Client::isConnected(TCP_Terminal_Client* theWrappedObject)
4586 {
4617 {
4587 return ( theWrappedObject->isConnected());
4618 return ( theWrappedObject->isConnected());
4588 }
4619 }
4589
4620
4590 void PythonQtWrapper_TCP_Terminal_Client::sendText(TCP_Terminal_Client* theWrappedObject, const QString& text)
4621 void PythonQtWrapper_TCP_Terminal_Client::sendText(TCP_Terminal_Client* theWrappedObject, const QString& text)
4591 {
4622 {
4592 ( theWrappedObject->sendText(text));
4623 ( theWrappedObject->sendText(text));
4593 }
4624 }
4594
4625
4595 void PythonQtWrapper_TCP_Terminal_Client::startServer(TCP_Terminal_Client* theWrappedObject)
4626 void PythonQtWrapper_TCP_Terminal_Client::startServer(TCP_Terminal_Client* theWrappedObject)
4596 {
4627 {
4597 ( theWrappedObject->startServer());
4628 ( theWrappedObject->startServer());
4598 }
4629 }
4599
4630
4600 void PythonQtWrapper_TCP_Terminal_Client::startServer(TCP_Terminal_Client* theWrappedObject, int port)
4631 void PythonQtWrapper_TCP_Terminal_Client::startServer(TCP_Terminal_Client* theWrappedObject, int port)
4601 {
4632 {
4602 ( theWrappedObject->startServer(port));
4633 ( theWrappedObject->startServer(port));
4603 }
4634 }
4604
4635
4605
4636
4606
4637
4607 XByteArray* PythonQtWrapper_XByteArray::new_XByteArray()
4638 XByteArray* PythonQtWrapper_XByteArray::new_XByteArray()
4608 {
4639 {
4609 return new XByteArray(); }
4640 return new XByteArray(); }
4610
4641
4611 int PythonQtWrapper_XByteArray::addressOffset(XByteArray* theWrappedObject)
4642 int PythonQtWrapper_XByteArray::addressOffset(XByteArray* theWrappedObject)
4612 {
4643 {
4613 return ( theWrappedObject->addressOffset());
4644 return ( theWrappedObject->addressOffset());
4614 }
4645 }
4615
4646
4616 int PythonQtWrapper_XByteArray::addressWidth(XByteArray* theWrappedObject)
4647 int PythonQtWrapper_XByteArray::addressWidth(XByteArray* theWrappedObject)
4617 {
4648 {
4618 return ( theWrappedObject->addressWidth());
4649 return ( theWrappedObject->addressWidth());
4619 }
4650 }
4620
4651
4621 QChar PythonQtWrapper_XByteArray::asciiChar(XByteArray* theWrappedObject, int index)
4652 QChar PythonQtWrapper_XByteArray::asciiChar(XByteArray* theWrappedObject, int index)
4622 {
4653 {
4623 return ( theWrappedObject->asciiChar(index));
4654 return ( theWrappedObject->asciiChar(index));
4624 }
4655 }
4625
4656
4626 QByteArray* PythonQtWrapper_XByteArray::data(XByteArray* theWrappedObject)
4657 QByteArray* PythonQtWrapper_XByteArray::data(XByteArray* theWrappedObject)
4627 {
4658 {
4628 return &( theWrappedObject->data());
4659 return &( theWrappedObject->data());
4629 }
4660 }
4630
4661
4631 bool PythonQtWrapper_XByteArray::dataChanged(XByteArray* theWrappedObject, int i)
4662 bool PythonQtWrapper_XByteArray::dataChanged(XByteArray* theWrappedObject, int i)
4632 {
4663 {
4633 return ( theWrappedObject->dataChanged(i));
4664 return ( theWrappedObject->dataChanged(i));
4634 }
4665 }
4635
4666
4636 QByteArray PythonQtWrapper_XByteArray::dataChanged(XByteArray* theWrappedObject, int i, int len)
4667 QByteArray PythonQtWrapper_XByteArray::dataChanged(XByteArray* theWrappedObject, int i, int len)
4637 {
4668 {
4638 return ( theWrappedObject->dataChanged(i, len));
4669 return ( theWrappedObject->dataChanged(i, len));
4639 }
4670 }
4640
4671
4641 QByteArray* PythonQtWrapper_XByteArray::insert(XByteArray* theWrappedObject, int i, char ch)
4672 QByteArray* PythonQtWrapper_XByteArray::insert(XByteArray* theWrappedObject, int i, char ch)
4642 {
4673 {
4643 return &( theWrappedObject->insert(i, ch));
4674 return &( theWrappedObject->insert(i, ch));
4644 }
4675 }
4645
4676
4646 QByteArray* PythonQtWrapper_XByteArray::insert(XByteArray* theWrappedObject, int i, const QByteArray& ba)
4677 QByteArray* PythonQtWrapper_XByteArray::insert(XByteArray* theWrappedObject, int i, const QByteArray& ba)
4647 {
4678 {
4648 return &( theWrappedObject->insert(i, ba));
4679 return &( theWrappedObject->insert(i, ba));
4649 }
4680 }
4650
4681
4651 int PythonQtWrapper_XByteArray::realAddressNumbers(XByteArray* theWrappedObject)
4682 int PythonQtWrapper_XByteArray::realAddressNumbers(XByteArray* theWrappedObject)
4652 {
4683 {
4653 return ( theWrappedObject->realAddressNumbers());
4684 return ( theWrappedObject->realAddressNumbers());
4654 }
4685 }
4655
4686
4656 QByteArray* PythonQtWrapper_XByteArray::remove(XByteArray* theWrappedObject, int pos, int len)
4687 QByteArray* PythonQtWrapper_XByteArray::remove(XByteArray* theWrappedObject, int pos, int len)
4657 {
4688 {
4658 return &( theWrappedObject->remove(pos, len));
4689 return &( theWrappedObject->remove(pos, len));
4659 }
4690 }
4660
4691
4661 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, char ch)
4692 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, char ch)
4662 {
4693 {
4663 return &( theWrappedObject->replace(index, ch));
4694 return &( theWrappedObject->replace(index, ch));
4664 }
4695 }
4665
4696
4666 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, const QByteArray& ba)
4697 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, const QByteArray& ba)
4667 {
4698 {
4668 return &( theWrappedObject->replace(index, ba));
4699 return &( theWrappedObject->replace(index, ba));
4669 }
4700 }
4670
4701
4671 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba)
4702 QByteArray* PythonQtWrapper_XByteArray::replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba)
4672 {
4703 {
4673 return &( theWrappedObject->replace(index, length, ba));
4704 return &( theWrappedObject->replace(index, length, ba));
4674 }
4705 }
4675
4706
4676 void PythonQtWrapper_XByteArray::setAddressOffset(XByteArray* theWrappedObject, int offset)
4707 void PythonQtWrapper_XByteArray::setAddressOffset(XByteArray* theWrappedObject, int offset)
4677 {
4708 {
4678 ( theWrappedObject->setAddressOffset(offset));
4709 ( theWrappedObject->setAddressOffset(offset));
4679 }
4710 }
4680
4711
4681 void PythonQtWrapper_XByteArray::setAddressWidth(XByteArray* theWrappedObject, int width)
4712 void PythonQtWrapper_XByteArray::setAddressWidth(XByteArray* theWrappedObject, int width)
4682 {
4713 {
4683 ( theWrappedObject->setAddressWidth(width));
4714 ( theWrappedObject->setAddressWidth(width));
4684 }
4715 }
4685
4716
4686 void PythonQtWrapper_XByteArray::setData(XByteArray* theWrappedObject, QByteArray data)
4717 void PythonQtWrapper_XByteArray::setData(XByteArray* theWrappedObject, QByteArray data)
4687 {
4718 {
4688 ( theWrappedObject->setData(data));
4719 ( theWrappedObject->setData(data));
4689 }
4720 }
4690
4721
4691 void PythonQtWrapper_XByteArray::setDataChanged(XByteArray* theWrappedObject, int i, bool state)
4722 void PythonQtWrapper_XByteArray::setDataChanged(XByteArray* theWrappedObject, int i, bool state)
4692 {
4723 {
4693 ( theWrappedObject->setDataChanged(i, state));
4724 ( theWrappedObject->setDataChanged(i, state));
4694 }
4725 }
4695
4726
4696 void PythonQtWrapper_XByteArray::setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state)
4727 void PythonQtWrapper_XByteArray::setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state)
4697 {
4728 {
4698 ( theWrappedObject->setDataChanged(i, state));
4729 ( theWrappedObject->setDataChanged(i, state));
4699 }
4730 }
4700
4731
4701 int PythonQtWrapper_XByteArray::size(XByteArray* theWrappedObject)
4732 int PythonQtWrapper_XByteArray::size(XByteArray* theWrappedObject)
4702 {
4733 {
4703 return ( theWrappedObject->size());
4734 return ( theWrappedObject->size());
4704 }
4735 }
4705
4736
4706 QString PythonQtWrapper_XByteArray::toRedableString(XByteArray* theWrappedObject, int start, int end)
4737 QString PythonQtWrapper_XByteArray::toRedableString(XByteArray* theWrappedObject, int start, int end)
4707 {
4738 {
4708 return ( theWrappedObject->toRedableString(start, end));
4739 return ( theWrappedObject->toRedableString(start, end));
4709 }
4740 }
4710
4741
4711
4742
4712
4743
4713 PythonQtShell_abstractBinFile::~PythonQtShell_abstractBinFile() {
4744 PythonQtShell_abstractBinFile::~PythonQtShell_abstractBinFile() {
4714 PythonQtPrivate* priv = PythonQt::priv();
4745 PythonQtPrivate* priv = PythonQt::priv();
4715 if (priv) { priv->shellClassDeleted(this); }
4746 if (priv) { priv->shellClassDeleted(this); }
4716 }
4747 }
4717 void PythonQtShell_abstractBinFile::childEvent(QChildEvent* arg__1)
4748 void PythonQtShell_abstractBinFile::childEvent(QChildEvent* arg__1)
4718 {
4749 {
4719 if (_wrapper) {
4750 if (_wrapper) {
4720 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
4751 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
4721 PyErr_Clear();
4752 PyErr_Clear();
4722 if (obj && !PythonQtSlotFunction_Check(obj)) {
4753 if (obj && !PythonQtSlotFunction_Check(obj)) {
4723 static const char* argumentList[] ={"" , "QChildEvent*"};
4754 static const char* argumentList[] ={"" , "QChildEvent*"};
4724 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4755 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4725 void* args[2] = {NULL, (void*)&arg__1};
4756 void* args[2] = {NULL, (void*)&arg__1};
4726 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4757 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4727 if (result) { Py_DECREF(result); }
4758 if (result) { Py_DECREF(result); }
4728 Py_DECREF(obj);
4759 Py_DECREF(obj);
4729 return;
4760 return;
4730 }
4761 }
4731 }
4762 }
4732 abstractBinFile::childEvent(arg__1);
4763 abstractBinFile::childEvent(arg__1);
4733 }
4764 }
4734 int PythonQtShell_abstractBinFile::closeFile()
4765 int PythonQtShell_abstractBinFile::closeFile()
4735 {
4766 {
4736 if (_wrapper) {
4767 if (_wrapper) {
4737 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile");
4768 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile");
4738 PyErr_Clear();
4769 PyErr_Clear();
4739 if (obj && !PythonQtSlotFunction_Check(obj)) {
4770 if (obj && !PythonQtSlotFunction_Check(obj)) {
4740 static const char* argumentList[] ={"int"};
4771 static const char* argumentList[] ={"int"};
4741 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4772 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4742 int returnValue;
4773 int returnValue;
4743 void* args[1] = {NULL};
4774 void* args[1] = {NULL};
4744 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4775 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4745 if (result) {
4776 if (result) {
4746 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4777 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4747 if (args[0]!=&returnValue) {
4778 if (args[0]!=&returnValue) {
4748 if (args[0]==NULL) {
4779 if (args[0]==NULL) {
4749 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
4780 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
4750 } else {
4781 } else {
4751 returnValue = *((int*)args[0]);
4782 returnValue = *((int*)args[0]);
4752 }
4783 }
4753 }
4784 }
4754 }
4785 }
4755 if (result) { Py_DECREF(result); }
4786 if (result) { Py_DECREF(result); }
4756 Py_DECREF(obj);
4787 Py_DECREF(obj);
4757 return returnValue;
4788 return returnValue;
4758 }
4789 }
4759 }
4790 }
4760 return int();
4791 return int();
4761 }
4792 }
4762 void PythonQtShell_abstractBinFile::customEvent(QEvent* arg__1)
4793 void PythonQtShell_abstractBinFile::customEvent(QEvent* arg__1)
4763 {
4794 {
4764 if (_wrapper) {
4795 if (_wrapper) {
4765 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
4796 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
4766 PyErr_Clear();
4797 PyErr_Clear();
4767 if (obj && !PythonQtSlotFunction_Check(obj)) {
4798 if (obj && !PythonQtSlotFunction_Check(obj)) {
4768 static const char* argumentList[] ={"" , "QEvent*"};
4799 static const char* argumentList[] ={"" , "QEvent*"};
4769 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4800 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4770 void* args[2] = {NULL, (void*)&arg__1};
4801 void* args[2] = {NULL, (void*)&arg__1};
4771 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4802 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4772 if (result) { Py_DECREF(result); }
4803 if (result) { Py_DECREF(result); }
4773 Py_DECREF(obj);
4804 Py_DECREF(obj);
4774 return;
4805 return;
4775 }
4806 }
4776 }
4807 }
4777 abstractBinFile::customEvent(arg__1);
4808 abstractBinFile::customEvent(arg__1);
4778 }
4809 }
4779 bool PythonQtShell_abstractBinFile::event(QEvent* arg__1)
4810 bool PythonQtShell_abstractBinFile::event(QEvent* arg__1)
4780 {
4811 {
4781 if (_wrapper) {
4812 if (_wrapper) {
4782 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
4813 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
4783 PyErr_Clear();
4814 PyErr_Clear();
4784 if (obj && !PythonQtSlotFunction_Check(obj)) {
4815 if (obj && !PythonQtSlotFunction_Check(obj)) {
4785 static const char* argumentList[] ={"bool" , "QEvent*"};
4816 static const char* argumentList[] ={"bool" , "QEvent*"};
4786 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4817 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4787 bool returnValue;
4818 bool returnValue;
4788 void* args[2] = {NULL, (void*)&arg__1};
4819 void* args[2] = {NULL, (void*)&arg__1};
4789 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4820 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4790 if (result) {
4821 if (result) {
4791 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4822 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4792 if (args[0]!=&returnValue) {
4823 if (args[0]!=&returnValue) {
4793 if (args[0]==NULL) {
4824 if (args[0]==NULL) {
4794 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
4825 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
4795 } else {
4826 } else {
4796 returnValue = *((bool*)args[0]);
4827 returnValue = *((bool*)args[0]);
4797 }
4828 }
4798 }
4829 }
4799 }
4830 }
4800 if (result) { Py_DECREF(result); }
4831 if (result) { Py_DECREF(result); }
4801 Py_DECREF(obj);
4832 Py_DECREF(obj);
4802 return returnValue;
4833 return returnValue;
4803 }
4834 }
4804 }
4835 }
4805 return abstractBinFile::event(arg__1);
4836 return abstractBinFile::event(arg__1);
4806 }
4837 }
4807 bool PythonQtShell_abstractBinFile::eventFilter(QObject* arg__1, QEvent* arg__2)
4838 bool PythonQtShell_abstractBinFile::eventFilter(QObject* arg__1, QEvent* arg__2)
4808 {
4839 {
4809 if (_wrapper) {
4840 if (_wrapper) {
4810 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
4841 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
4811 PyErr_Clear();
4842 PyErr_Clear();
4812 if (obj && !PythonQtSlotFunction_Check(obj)) {
4843 if (obj && !PythonQtSlotFunction_Check(obj)) {
4813 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
4844 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
4814 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
4845 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
4815 bool returnValue;
4846 bool returnValue;
4816 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
4847 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
4817 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4848 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4818 if (result) {
4849 if (result) {
4819 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4850 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4820 if (args[0]!=&returnValue) {
4851 if (args[0]!=&returnValue) {
4821 if (args[0]==NULL) {
4852 if (args[0]==NULL) {
4822 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
4853 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
4823 } else {
4854 } else {
4824 returnValue = *((bool*)args[0]);
4855 returnValue = *((bool*)args[0]);
4825 }
4856 }
4826 }
4857 }
4827 }
4858 }
4828 if (result) { Py_DECREF(result); }
4859 if (result) { Py_DECREF(result); }
4829 Py_DECREF(obj);
4860 Py_DECREF(obj);
4830 return returnValue;
4861 return returnValue;
4831 }
4862 }
4832 }
4863 }
4833 return abstractBinFile::eventFilter(arg__1, arg__2);
4864 return abstractBinFile::eventFilter(arg__1, arg__2);
4834 }
4865 }
4835 QList<codeFragment* > PythonQtShell_abstractBinFile::getFragments()
4866 QList<codeFragment* > PythonQtShell_abstractBinFile::getFragments()
4836 {
4867 {
4837 if (_wrapper) {
4868 if (_wrapper) {
4838 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments");
4869 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments");
4839 PyErr_Clear();
4870 PyErr_Clear();
4840 if (obj && !PythonQtSlotFunction_Check(obj)) {
4871 if (obj && !PythonQtSlotFunction_Check(obj)) {
4841 static const char* argumentList[] ={"QList<codeFragment* >"};
4872 static const char* argumentList[] ={"QList<codeFragment* >"};
4842 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4873 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4843 QList<codeFragment* > returnValue;
4874 QList<codeFragment* > returnValue;
4844 void* args[1] = {NULL};
4875 void* args[1] = {NULL};
4845 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4876 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4846 if (result) {
4877 if (result) {
4847 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4878 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4848 if (args[0]!=&returnValue) {
4879 if (args[0]!=&returnValue) {
4849 if (args[0]==NULL) {
4880 if (args[0]==NULL) {
4850 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
4881 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
4851 } else {
4882 } else {
4852 returnValue = *((QList<codeFragment* >*)args[0]);
4883 returnValue = *((QList<codeFragment* >*)args[0]);
4853 }
4884 }
4854 }
4885 }
4855 }
4886 }
4856 if (result) { Py_DECREF(result); }
4887 if (result) { Py_DECREF(result); }
4857 Py_DECREF(obj);
4888 Py_DECREF(obj);
4858 return returnValue;
4889 return returnValue;
4859 }
4890 }
4860 }
4891 }
4861 return QList<codeFragment* >();
4892 return QList<codeFragment* >();
4862 }
4893 }
4863 bool PythonQtShell_abstractBinFile::isopened()
4894 bool PythonQtShell_abstractBinFile::isopened()
4864 {
4895 {
4865 if (_wrapper) {
4896 if (_wrapper) {
4866 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened");
4897 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened");
4867 PyErr_Clear();
4898 PyErr_Clear();
4868 if (obj && !PythonQtSlotFunction_Check(obj)) {
4899 if (obj && !PythonQtSlotFunction_Check(obj)) {
4869 static const char* argumentList[] ={"bool"};
4900 static const char* argumentList[] ={"bool"};
4870 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4901 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4871 bool returnValue;
4902 bool returnValue;
4872 void* args[1] = {NULL};
4903 void* args[1] = {NULL};
4873 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4904 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4874 if (result) {
4905 if (result) {
4875 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4906 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4876 if (args[0]!=&returnValue) {
4907 if (args[0]!=&returnValue) {
4877 if (args[0]==NULL) {
4908 if (args[0]==NULL) {
4878 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
4909 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
4879 } else {
4910 } else {
4880 returnValue = *((bool*)args[0]);
4911 returnValue = *((bool*)args[0]);
4881 }
4912 }
4882 }
4913 }
4883 }
4914 }
4884 if (result) { Py_DECREF(result); }
4915 if (result) { Py_DECREF(result); }
4885 Py_DECREF(obj);
4916 Py_DECREF(obj);
4886 return returnValue;
4917 return returnValue;
4887 }
4918 }
4888 }
4919 }
4889 return bool();
4920 return bool();
4890 }
4921 }
4891 bool PythonQtShell_abstractBinFile::openFile(const QString& File)
4922 bool PythonQtShell_abstractBinFile::openFile(const QString& File)
4892 {
4923 {
4893 if (_wrapper) {
4924 if (_wrapper) {
4894 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile");
4925 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile");
4895 PyErr_Clear();
4926 PyErr_Clear();
4896 if (obj && !PythonQtSlotFunction_Check(obj)) {
4927 if (obj && !PythonQtSlotFunction_Check(obj)) {
4897 static const char* argumentList[] ={"bool" , "const QString&"};
4928 static const char* argumentList[] ={"bool" , "const QString&"};
4898 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4929 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4899 bool returnValue;
4930 bool returnValue;
4900 void* args[2] = {NULL, (void*)&File};
4931 void* args[2] = {NULL, (void*)&File};
4901 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4932 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4902 if (result) {
4933 if (result) {
4903 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4934 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4904 if (args[0]!=&returnValue) {
4935 if (args[0]!=&returnValue) {
4905 if (args[0]==NULL) {
4936 if (args[0]==NULL) {
4906 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
4937 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
4907 } else {
4938 } else {
4908 returnValue = *((bool*)args[0]);
4939 returnValue = *((bool*)args[0]);
4909 }
4940 }
4910 }
4941 }
4911 }
4942 }
4912 if (result) { Py_DECREF(result); }
4943 if (result) { Py_DECREF(result); }
4913 Py_DECREF(obj);
4944 Py_DECREF(obj);
4914 return returnValue;
4945 return returnValue;
4915 }
4946 }
4916 }
4947 }
4917 return bool();
4948 return bool();
4918 }
4949 }
4919 void PythonQtShell_abstractBinFile::timerEvent(QTimerEvent* arg__1)
4950 void PythonQtShell_abstractBinFile::timerEvent(QTimerEvent* arg__1)
4920 {
4951 {
4921 if (_wrapper) {
4952 if (_wrapper) {
4922 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
4953 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
4923 PyErr_Clear();
4954 PyErr_Clear();
4924 if (obj && !PythonQtSlotFunction_Check(obj)) {
4955 if (obj && !PythonQtSlotFunction_Check(obj)) {
4925 static const char* argumentList[] ={"" , "QTimerEvent*"};
4956 static const char* argumentList[] ={"" , "QTimerEvent*"};
4926 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4957 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4927 void* args[2] = {NULL, (void*)&arg__1};
4958 void* args[2] = {NULL, (void*)&arg__1};
4928 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4959 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4929 if (result) { Py_DECREF(result); }
4960 if (result) { Py_DECREF(result); }
4930 Py_DECREF(obj);
4961 Py_DECREF(obj);
4931 return;
4962 return;
4932 }
4963 }
4933 }
4964 }
4934 abstractBinFile::timerEvent(arg__1);
4965 abstractBinFile::timerEvent(arg__1);
4935 }
4966 }
4936 abstractBinFile* PythonQtWrapper_abstractBinFile::new_abstractBinFile()
4967 abstractBinFile* PythonQtWrapper_abstractBinFile::new_abstractBinFile()
4937 {
4968 {
4938 return new PythonQtShell_abstractBinFile(); }
4969 return new PythonQtShell_abstractBinFile(); }
4939
4970
4940
4971
4941
4972
4973 PythonQtShell_binaryFile::~PythonQtShell_binaryFile() {
4974 PythonQtPrivate* priv = PythonQt::priv();
4975 if (priv) { priv->shellClassDeleted(this); }
4976 }
4977 int PythonQtShell_binaryFile::closeFile()
4978 {
4979 if (_wrapper) {
4980 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile");
4981 PyErr_Clear();
4982 if (obj && !PythonQtSlotFunction_Check(obj)) {
4983 static const char* argumentList[] ={"int"};
4984 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
4985 int returnValue;
4986 void* args[1] = {NULL};
4987 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4988 if (result) {
4989 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
4990 if (args[0]!=&returnValue) {
4991 if (args[0]==NULL) {
4992 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
4993 } else {
4994 returnValue = *((int*)args[0]);
4995 }
4996 }
4997 }
4998 if (result) { Py_DECREF(result); }
4999 Py_DECREF(obj);
5000 return returnValue;
5001 }
5002 }
5003 return binaryFile::closeFile();
5004 }
5005 QList<codeFragment* > PythonQtShell_binaryFile::getFragments()
5006 {
5007 if (_wrapper) {
5008 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments");
5009 PyErr_Clear();
5010 if (obj && !PythonQtSlotFunction_Check(obj)) {
5011 static const char* argumentList[] ={"QList<codeFragment* >"};
5012 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5013 QList<codeFragment* > returnValue;
5014 void* args[1] = {NULL};
5015 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5016 if (result) {
5017 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5018 if (args[0]!=&returnValue) {
5019 if (args[0]==NULL) {
5020 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
5021 } else {
5022 returnValue = *((QList<codeFragment* >*)args[0]);
5023 }
5024 }
5025 }
5026 if (result) { Py_DECREF(result); }
5027 Py_DECREF(obj);
5028 return returnValue;
5029 }
5030 }
5031 return binaryFile::getFragments();
5032 }
5033 bool PythonQtShell_binaryFile::isopened()
5034 {
5035 if (_wrapper) {
5036 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened");
5037 PyErr_Clear();
5038 if (obj && !PythonQtSlotFunction_Check(obj)) {
5039 static const char* argumentList[] ={"bool"};
5040 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5041 bool returnValue;
5042 void* args[1] = {NULL};
5043 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5044 if (result) {
5045 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5046 if (args[0]!=&returnValue) {
5047 if (args[0]==NULL) {
5048 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
5049 } else {
5050 returnValue = *((bool*)args[0]);
5051 }
5052 }
5053 }
5054 if (result) { Py_DECREF(result); }
5055 Py_DECREF(obj);
5056 return returnValue;
5057 }
5058 }
5059 return binaryFile::isopened();
5060 }
5061 bool PythonQtShell_binaryFile::openFile(const QString& File)
5062 {
5063 if (_wrapper) {
5064 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile");
5065 PyErr_Clear();
5066 if (obj && !PythonQtSlotFunction_Check(obj)) {
5067 static const char* argumentList[] ={"bool" , "const QString&"};
5068 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5069 bool returnValue;
5070 void* args[2] = {NULL, (void*)&File};
5071 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5072 if (result) {
5073 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5074 if (args[0]!=&returnValue) {
5075 if (args[0]==NULL) {
5076 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
5077 } else {
5078 returnValue = *((bool*)args[0]);
5079 }
5080 }
5081 }
5082 if (result) { Py_DECREF(result); }
5083 Py_DECREF(obj);
5084 return returnValue;
5085 }
5086 }
5087 return binaryFile::openFile(File);
5088 }
5089 binaryFile* PythonQtWrapper_binaryFile::new_binaryFile()
5090 {
5091 return new PythonQtShell_binaryFile(); }
5092
5093 binaryFile* PythonQtWrapper_binaryFile::new_binaryFile(const QString& File)
5094 {
5095 return new PythonQtShell_binaryFile(File); }
5096
5097 binaryFile* PythonQtWrapper_binaryFile::new_binaryFile(const QStringList& Files)
5098 {
5099 return new PythonQtShell_binaryFile(Files); }
5100
5101 int PythonQtWrapper_binaryFile::closeFile(binaryFile* theWrappedObject)
5102 {
5103 return ( ((PythonQtPublicPromoter_binaryFile*)theWrappedObject)->promoted_closeFile());
5104 }
5105
5106 int PythonQtWrapper_binaryFile::getFragmentAddress(binaryFile* theWrappedObject, int index)
5107 {
5108 return ( theWrappedObject->getFragmentAddress(index));
5109 }
5110
5111 bool PythonQtWrapper_binaryFile::getFragmentData(binaryFile* theWrappedObject, int index, char** buffer)
5112 {
5113 return ( theWrappedObject->getFragmentData(index, buffer));
5114 }
5115
5116 QString PythonQtWrapper_binaryFile::getFragmentHeader(binaryFile* theWrappedObject, int index)
5117 {
5118 return ( theWrappedObject->getFragmentHeader(index));
5119 }
5120
5121 int PythonQtWrapper_binaryFile::getFragmentSize(binaryFile* theWrappedObject, int index)
5122 {
5123 return ( theWrappedObject->getFragmentSize(index));
5124 }
5125
5126 QList<codeFragment* > PythonQtWrapper_binaryFile::getFragments(binaryFile* theWrappedObject)
5127 {
5128 return ( ((PythonQtPublicPromoter_binaryFile*)theWrappedObject)->promoted_getFragments());
5129 }
5130
5131 int PythonQtWrapper_binaryFile::getFragmentsCount(binaryFile* theWrappedObject)
5132 {
5133 return ( theWrappedObject->getFragmentsCount());
5134 }
5135
5136 bool PythonQtWrapper_binaryFile::isopened(binaryFile* theWrappedObject)
5137 {
5138 return ( ((PythonQtPublicPromoter_binaryFile*)theWrappedObject)->promoted_isopened());
5139 }
5140
5141 bool PythonQtWrapper_binaryFile::openFile(binaryFile* theWrappedObject, const QString& File)
5142 {
5143 return ( ((PythonQtPublicPromoter_binaryFile*)theWrappedObject)->promoted_openFile(File));
5144 }
5145
5146 bool PythonQtWrapper_binaryFile::openFiles(binaryFile* theWrappedObject, const QStringList& Files)
5147 {
5148 return ( theWrappedObject->openFiles(Files));
5149 }
5150
5151
5152
5153 PythonQtShell_binaryFileWidget::~PythonQtShell_binaryFileWidget() {
5154 PythonQtPrivate* priv = PythonQt::priv();
5155 if (priv) { priv->shellClassDeleted(this); }
5156 }
5157 void PythonQtShell_binaryFileWidget::actionEvent(QActionEvent* arg__1)
5158 {
5159 if (_wrapper) {
5160 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
5161 PyErr_Clear();
5162 if (obj && !PythonQtSlotFunction_Check(obj)) {
5163 static const char* argumentList[] ={"" , "QActionEvent*"};
5164 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5165 void* args[2] = {NULL, (void*)&arg__1};
5166 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5167 if (result) { Py_DECREF(result); }
5168 Py_DECREF(obj);
5169 return;
5170 }
5171 }
5172 binaryFileWidget::actionEvent(arg__1);
5173 }
5174 void PythonQtShell_binaryFileWidget::changeEvent(QEvent* arg__1)
5175 {
5176 if (_wrapper) {
5177 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
5178 PyErr_Clear();
5179 if (obj && !PythonQtSlotFunction_Check(obj)) {
5180 static const char* argumentList[] ={"" , "QEvent*"};
5181 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5182 void* args[2] = {NULL, (void*)&arg__1};
5183 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5184 if (result) { Py_DECREF(result); }
5185 Py_DECREF(obj);
5186 return;
5187 }
5188 }
5189 binaryFileWidget::changeEvent(arg__1);
5190 }
5191 void PythonQtShell_binaryFileWidget::childEvent(QChildEvent* arg__1)
5192 {
5193 if (_wrapper) {
5194 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
5195 PyErr_Clear();
5196 if (obj && !PythonQtSlotFunction_Check(obj)) {
5197 static const char* argumentList[] ={"" , "QChildEvent*"};
5198 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5199 void* args[2] = {NULL, (void*)&arg__1};
5200 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5201 if (result) { Py_DECREF(result); }
5202 Py_DECREF(obj);
5203 return;
5204 }
5205 }
5206 binaryFileWidget::childEvent(arg__1);
5207 }
5208 void PythonQtShell_binaryFileWidget::closeEvent(QCloseEvent* arg__1)
5209 {
5210 if (_wrapper) {
5211 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
5212 PyErr_Clear();
5213 if (obj && !PythonQtSlotFunction_Check(obj)) {
5214 static const char* argumentList[] ={"" , "QCloseEvent*"};
5215 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5216 void* args[2] = {NULL, (void*)&arg__1};
5217 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5218 if (result) { Py_DECREF(result); }
5219 Py_DECREF(obj);
5220 return;
5221 }
5222 }
5223 binaryFileWidget::closeEvent(arg__1);
5224 }
5225 void PythonQtShell_binaryFileWidget::contextMenuEvent(QContextMenuEvent* arg__1)
5226 {
5227 if (_wrapper) {
5228 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
5229 PyErr_Clear();
5230 if (obj && !PythonQtSlotFunction_Check(obj)) {
5231 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
5232 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5233 void* args[2] = {NULL, (void*)&arg__1};
5234 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5235 if (result) { Py_DECREF(result); }
5236 Py_DECREF(obj);
5237 return;
5238 }
5239 }
5240 binaryFileWidget::contextMenuEvent(arg__1);
5241 }
5242 void PythonQtShell_binaryFileWidget::customEvent(QEvent* arg__1)
5243 {
5244 if (_wrapper) {
5245 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
5246 PyErr_Clear();
5247 if (obj && !PythonQtSlotFunction_Check(obj)) {
5248 static const char* argumentList[] ={"" , "QEvent*"};
5249 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5250 void* args[2] = {NULL, (void*)&arg__1};
5251 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5252 if (result) { Py_DECREF(result); }
5253 Py_DECREF(obj);
5254 return;
5255 }
5256 }
5257 binaryFileWidget::customEvent(arg__1);
5258 }
5259 int PythonQtShell_binaryFileWidget::devType() const
5260 {
5261 if (_wrapper) {
5262 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
5263 PyErr_Clear();
5264 if (obj && !PythonQtSlotFunction_Check(obj)) {
5265 static const char* argumentList[] ={"int"};
5266 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5267 int returnValue;
5268 void* args[1] = {NULL};
5269 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5270 if (result) {
5271 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5272 if (args[0]!=&returnValue) {
5273 if (args[0]==NULL) {
5274 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
5275 } else {
5276 returnValue = *((int*)args[0]);
5277 }
5278 }
5279 }
5280 if (result) { Py_DECREF(result); }
5281 Py_DECREF(obj);
5282 return returnValue;
5283 }
5284 }
5285 return binaryFileWidget::devType();
5286 }
5287 void PythonQtShell_binaryFileWidget::dragEnterEvent(QDragEnterEvent* arg__1)
5288 {
5289 if (_wrapper) {
5290 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
5291 PyErr_Clear();
5292 if (obj && !PythonQtSlotFunction_Check(obj)) {
5293 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
5294 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5295 void* args[2] = {NULL, (void*)&arg__1};
5296 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5297 if (result) { Py_DECREF(result); }
5298 Py_DECREF(obj);
5299 return;
5300 }
5301 }
5302 binaryFileWidget::dragEnterEvent(arg__1);
5303 }
5304 void PythonQtShell_binaryFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1)
5305 {
5306 if (_wrapper) {
5307 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
5308 PyErr_Clear();
5309 if (obj && !PythonQtSlotFunction_Check(obj)) {
5310 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
5311 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5312 void* args[2] = {NULL, (void*)&arg__1};
5313 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5314 if (result) { Py_DECREF(result); }
5315 Py_DECREF(obj);
5316 return;
5317 }
5318 }
5319 binaryFileWidget::dragLeaveEvent(arg__1);
5320 }
5321 void PythonQtShell_binaryFileWidget::dragMoveEvent(QDragMoveEvent* arg__1)
5322 {
5323 if (_wrapper) {
5324 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
5325 PyErr_Clear();
5326 if (obj && !PythonQtSlotFunction_Check(obj)) {
5327 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
5328 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5329 void* args[2] = {NULL, (void*)&arg__1};
5330 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5331 if (result) { Py_DECREF(result); }
5332 Py_DECREF(obj);
5333 return;
5334 }
5335 }
5336 binaryFileWidget::dragMoveEvent(arg__1);
5337 }
5338 void PythonQtShell_binaryFileWidget::dropEvent(QDropEvent* arg__1)
5339 {
5340 if (_wrapper) {
5341 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
5342 PyErr_Clear();
5343 if (obj && !PythonQtSlotFunction_Check(obj)) {
5344 static const char* argumentList[] ={"" , "QDropEvent*"};
5345 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5346 void* args[2] = {NULL, (void*)&arg__1};
5347 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5348 if (result) { Py_DECREF(result); }
5349 Py_DECREF(obj);
5350 return;
5351 }
5352 }
5353 binaryFileWidget::dropEvent(arg__1);
5354 }
5355 void PythonQtShell_binaryFileWidget::enterEvent(QEvent* arg__1)
5356 {
5357 if (_wrapper) {
5358 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
5359 PyErr_Clear();
5360 if (obj && !PythonQtSlotFunction_Check(obj)) {
5361 static const char* argumentList[] ={"" , "QEvent*"};
5362 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5363 void* args[2] = {NULL, (void*)&arg__1};
5364 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5365 if (result) { Py_DECREF(result); }
5366 Py_DECREF(obj);
5367 return;
5368 }
5369 }
5370 binaryFileWidget::enterEvent(arg__1);
5371 }
5372 bool PythonQtShell_binaryFileWidget::event(QEvent* arg__1)
5373 {
5374 if (_wrapper) {
5375 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
5376 PyErr_Clear();
5377 if (obj && !PythonQtSlotFunction_Check(obj)) {
5378 static const char* argumentList[] ={"bool" , "QEvent*"};
5379 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5380 bool returnValue;
5381 void* args[2] = {NULL, (void*)&arg__1};
5382 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5383 if (result) {
5384 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5385 if (args[0]!=&returnValue) {
5386 if (args[0]==NULL) {
5387 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
5388 } else {
5389 returnValue = *((bool*)args[0]);
5390 }
5391 }
5392 }
5393 if (result) { Py_DECREF(result); }
5394 Py_DECREF(obj);
5395 return returnValue;
5396 }
5397 }
5398 return binaryFileWidget::event(arg__1);
5399 }
5400 bool PythonQtShell_binaryFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2)
5401 {
5402 if (_wrapper) {
5403 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
5404 PyErr_Clear();
5405 if (obj && !PythonQtSlotFunction_Check(obj)) {
5406 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
5407 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
5408 bool returnValue;
5409 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
5410 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5411 if (result) {
5412 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5413 if (args[0]!=&returnValue) {
5414 if (args[0]==NULL) {
5415 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
5416 } else {
5417 returnValue = *((bool*)args[0]);
5418 }
5419 }
5420 }
5421 if (result) { Py_DECREF(result); }
5422 Py_DECREF(obj);
5423 return returnValue;
5424 }
5425 }
5426 return binaryFileWidget::eventFilter(arg__1, arg__2);
5427 }
5428 void PythonQtShell_binaryFileWidget::focusInEvent(QFocusEvent* arg__1)
5429 {
5430 if (_wrapper) {
5431 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
5432 PyErr_Clear();
5433 if (obj && !PythonQtSlotFunction_Check(obj)) {
5434 static const char* argumentList[] ={"" , "QFocusEvent*"};
5435 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5436 void* args[2] = {NULL, (void*)&arg__1};
5437 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5438 if (result) { Py_DECREF(result); }
5439 Py_DECREF(obj);
5440 return;
5441 }
5442 }
5443 binaryFileWidget::focusInEvent(arg__1);
5444 }
5445 bool PythonQtShell_binaryFileWidget::focusNextPrevChild(bool next)
5446 {
5447 if (_wrapper) {
5448 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
5449 PyErr_Clear();
5450 if (obj && !PythonQtSlotFunction_Check(obj)) {
5451 static const char* argumentList[] ={"bool" , "bool"};
5452 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5453 bool returnValue;
5454 void* args[2] = {NULL, (void*)&next};
5455 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5456 if (result) {
5457 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5458 if (args[0]!=&returnValue) {
5459 if (args[0]==NULL) {
5460 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
5461 } else {
5462 returnValue = *((bool*)args[0]);
5463 }
5464 }
5465 }
5466 if (result) { Py_DECREF(result); }
5467 Py_DECREF(obj);
5468 return returnValue;
5469 }
5470 }
5471 return binaryFileWidget::focusNextPrevChild(next);
5472 }
5473 void PythonQtShell_binaryFileWidget::focusOutEvent(QFocusEvent* arg__1)
5474 {
5475 if (_wrapper) {
5476 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
5477 PyErr_Clear();
5478 if (obj && !PythonQtSlotFunction_Check(obj)) {
5479 static const char* argumentList[] ={"" , "QFocusEvent*"};
5480 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5481 void* args[2] = {NULL, (void*)&arg__1};
5482 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5483 if (result) { Py_DECREF(result); }
5484 Py_DECREF(obj);
5485 return;
5486 }
5487 }
5488 binaryFileWidget::focusOutEvent(arg__1);
5489 }
5490 bool PythonQtShell_binaryFileWidget::hasHeightForWidth() const
5491 {
5492 if (_wrapper) {
5493 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
5494 PyErr_Clear();
5495 if (obj && !PythonQtSlotFunction_Check(obj)) {
5496 static const char* argumentList[] ={"bool"};
5497 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5498 bool returnValue;
5499 void* args[1] = {NULL};
5500 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5501 if (result) {
5502 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5503 if (args[0]!=&returnValue) {
5504 if (args[0]==NULL) {
5505 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
5506 } else {
5507 returnValue = *((bool*)args[0]);
5508 }
5509 }
5510 }
5511 if (result) { Py_DECREF(result); }
5512 Py_DECREF(obj);
5513 return returnValue;
5514 }
5515 }
5516 return binaryFileWidget::hasHeightForWidth();
5517 }
5518 int PythonQtShell_binaryFileWidget::heightForWidth(int arg__1) const
5519 {
5520 if (_wrapper) {
5521 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
5522 PyErr_Clear();
5523 if (obj && !PythonQtSlotFunction_Check(obj)) {
5524 static const char* argumentList[] ={"int" , "int"};
5525 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5526 int returnValue;
5527 void* args[2] = {NULL, (void*)&arg__1};
5528 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5529 if (result) {
5530 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5531 if (args[0]!=&returnValue) {
5532 if (args[0]==NULL) {
5533 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
5534 } else {
5535 returnValue = *((int*)args[0]);
5536 }
5537 }
5538 }
5539 if (result) { Py_DECREF(result); }
5540 Py_DECREF(obj);
5541 return returnValue;
5542 }
5543 }
5544 return binaryFileWidget::heightForWidth(arg__1);
5545 }
5546 void PythonQtShell_binaryFileWidget::hideEvent(QHideEvent* arg__1)
5547 {
5548 if (_wrapper) {
5549 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
5550 PyErr_Clear();
5551 if (obj && !PythonQtSlotFunction_Check(obj)) {
5552 static const char* argumentList[] ={"" , "QHideEvent*"};
5553 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5554 void* args[2] = {NULL, (void*)&arg__1};
5555 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5556 if (result) { Py_DECREF(result); }
5557 Py_DECREF(obj);
5558 return;
5559 }
5560 }
5561 binaryFileWidget::hideEvent(arg__1);
5562 }
5563 void PythonQtShell_binaryFileWidget::initPainter(QPainter* painter) const
5564 {
5565 if (_wrapper) {
5566 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
5567 PyErr_Clear();
5568 if (obj && !PythonQtSlotFunction_Check(obj)) {
5569 static const char* argumentList[] ={"" , "QPainter*"};
5570 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5571 void* args[2] = {NULL, (void*)&painter};
5572 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5573 if (result) { Py_DECREF(result); }
5574 Py_DECREF(obj);
5575 return;
5576 }
5577 }
5578 binaryFileWidget::initPainter(painter);
5579 }
5580 void PythonQtShell_binaryFileWidget::inputMethodEvent(QInputMethodEvent* arg__1)
5581 {
5582 if (_wrapper) {
5583 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
5584 PyErr_Clear();
5585 if (obj && !PythonQtSlotFunction_Check(obj)) {
5586 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
5587 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5588 void* args[2] = {NULL, (void*)&arg__1};
5589 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5590 if (result) { Py_DECREF(result); }
5591 Py_DECREF(obj);
5592 return;
5593 }
5594 }
5595 binaryFileWidget::inputMethodEvent(arg__1);
5596 }
5597 QVariant PythonQtShell_binaryFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const
5598 {
5599 if (_wrapper) {
5600 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
5601 PyErr_Clear();
5602 if (obj && !PythonQtSlotFunction_Check(obj)) {
5603 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
5604 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5605 QVariant returnValue;
5606 void* args[2] = {NULL, (void*)&arg__1};
5607 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5608 if (result) {
5609 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5610 if (args[0]!=&returnValue) {
5611 if (args[0]==NULL) {
5612 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
5613 } else {
5614 returnValue = *((QVariant*)args[0]);
5615 }
5616 }
5617 }
5618 if (result) { Py_DECREF(result); }
5619 Py_DECREF(obj);
5620 return returnValue;
5621 }
5622 }
5623 return binaryFileWidget::inputMethodQuery(arg__1);
5624 }
5625 void PythonQtShell_binaryFileWidget::keyPressEvent(QKeyEvent* arg__1)
5626 {
5627 if (_wrapper) {
5628 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
5629 PyErr_Clear();
5630 if (obj && !PythonQtSlotFunction_Check(obj)) {
5631 static const char* argumentList[] ={"" , "QKeyEvent*"};
5632 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5633 void* args[2] = {NULL, (void*)&arg__1};
5634 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5635 if (result) { Py_DECREF(result); }
5636 Py_DECREF(obj);
5637 return;
5638 }
5639 }
5640 binaryFileWidget::keyPressEvent(arg__1);
5641 }
5642 void PythonQtShell_binaryFileWidget::keyReleaseEvent(QKeyEvent* arg__1)
5643 {
5644 if (_wrapper) {
5645 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
5646 PyErr_Clear();
5647 if (obj && !PythonQtSlotFunction_Check(obj)) {
5648 static const char* argumentList[] ={"" , "QKeyEvent*"};
5649 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5650 void* args[2] = {NULL, (void*)&arg__1};
5651 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5652 if (result) { Py_DECREF(result); }
5653 Py_DECREF(obj);
5654 return;
5655 }
5656 }
5657 binaryFileWidget::keyReleaseEvent(arg__1);
5658 }
5659 void PythonQtShell_binaryFileWidget::leaveEvent(QEvent* arg__1)
5660 {
5661 if (_wrapper) {
5662 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
5663 PyErr_Clear();
5664 if (obj && !PythonQtSlotFunction_Check(obj)) {
5665 static const char* argumentList[] ={"" , "QEvent*"};
5666 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5667 void* args[2] = {NULL, (void*)&arg__1};
5668 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5669 if (result) { Py_DECREF(result); }
5670 Py_DECREF(obj);
5671 return;
5672 }
5673 }
5674 binaryFileWidget::leaveEvent(arg__1);
5675 }
5676 int PythonQtShell_binaryFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const
5677 {
5678 if (_wrapper) {
5679 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
5680 PyErr_Clear();
5681 if (obj && !PythonQtSlotFunction_Check(obj)) {
5682 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
5683 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5684 int returnValue;
5685 void* args[2] = {NULL, (void*)&arg__1};
5686 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5687 if (result) {
5688 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5689 if (args[0]!=&returnValue) {
5690 if (args[0]==NULL) {
5691 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
5692 } else {
5693 returnValue = *((int*)args[0]);
5694 }
5695 }
5696 }
5697 if (result) { Py_DECREF(result); }
5698 Py_DECREF(obj);
5699 return returnValue;
5700 }
5701 }
5702 return binaryFileWidget::metric(arg__1);
5703 }
5704 QSize PythonQtShell_binaryFileWidget::minimumSizeHint() const
5705 {
5706 if (_wrapper) {
5707 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
5708 PyErr_Clear();
5709 if (obj && !PythonQtSlotFunction_Check(obj)) {
5710 static const char* argumentList[] ={"QSize"};
5711 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5712 QSize returnValue;
5713 void* args[1] = {NULL};
5714 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5715 if (result) {
5716 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5717 if (args[0]!=&returnValue) {
5718 if (args[0]==NULL) {
5719 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
5720 } else {
5721 returnValue = *((QSize*)args[0]);
5722 }
5723 }
5724 }
5725 if (result) { Py_DECREF(result); }
5726 Py_DECREF(obj);
5727 return returnValue;
5728 }
5729 }
5730 return binaryFileWidget::minimumSizeHint();
5731 }
5732 void PythonQtShell_binaryFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1)
5733 {
5734 if (_wrapper) {
5735 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
5736 PyErr_Clear();
5737 if (obj && !PythonQtSlotFunction_Check(obj)) {
5738 static const char* argumentList[] ={"" , "QMouseEvent*"};
5739 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5740 void* args[2] = {NULL, (void*)&arg__1};
5741 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5742 if (result) { Py_DECREF(result); }
5743 Py_DECREF(obj);
5744 return;
5745 }
5746 }
5747 binaryFileWidget::mouseDoubleClickEvent(arg__1);
5748 }
5749 void PythonQtShell_binaryFileWidget::mouseMoveEvent(QMouseEvent* arg__1)
5750 {
5751 if (_wrapper) {
5752 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
5753 PyErr_Clear();
5754 if (obj && !PythonQtSlotFunction_Check(obj)) {
5755 static const char* argumentList[] ={"" , "QMouseEvent*"};
5756 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5757 void* args[2] = {NULL, (void*)&arg__1};
5758 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5759 if (result) { Py_DECREF(result); }
5760 Py_DECREF(obj);
5761 return;
5762 }
5763 }
5764 binaryFileWidget::mouseMoveEvent(arg__1);
5765 }
5766 void PythonQtShell_binaryFileWidget::mousePressEvent(QMouseEvent* arg__1)
5767 {
5768 if (_wrapper) {
5769 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
5770 PyErr_Clear();
5771 if (obj && !PythonQtSlotFunction_Check(obj)) {
5772 static const char* argumentList[] ={"" , "QMouseEvent*"};
5773 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5774 void* args[2] = {NULL, (void*)&arg__1};
5775 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5776 if (result) { Py_DECREF(result); }
5777 Py_DECREF(obj);
5778 return;
5779 }
5780 }
5781 binaryFileWidget::mousePressEvent(arg__1);
5782 }
5783 void PythonQtShell_binaryFileWidget::mouseReleaseEvent(QMouseEvent* arg__1)
5784 {
5785 if (_wrapper) {
5786 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
5787 PyErr_Clear();
5788 if (obj && !PythonQtSlotFunction_Check(obj)) {
5789 static const char* argumentList[] ={"" , "QMouseEvent*"};
5790 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5791 void* args[2] = {NULL, (void*)&arg__1};
5792 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5793 if (result) { Py_DECREF(result); }
5794 Py_DECREF(obj);
5795 return;
5796 }
5797 }
5798 binaryFileWidget::mouseReleaseEvent(arg__1);
5799 }
5800 void PythonQtShell_binaryFileWidget::moveEvent(QMoveEvent* arg__1)
5801 {
5802 if (_wrapper) {
5803 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
5804 PyErr_Clear();
5805 if (obj && !PythonQtSlotFunction_Check(obj)) {
5806 static const char* argumentList[] ={"" , "QMoveEvent*"};
5807 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5808 void* args[2] = {NULL, (void*)&arg__1};
5809 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5810 if (result) { Py_DECREF(result); }
5811 Py_DECREF(obj);
5812 return;
5813 }
5814 }
5815 binaryFileWidget::moveEvent(arg__1);
5816 }
5817 bool PythonQtShell_binaryFileWidget::nativeEvent(const QByteArray& eventType, void* message, long* result)
5818 {
5819 if (_wrapper) {
5820 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
5821 PyErr_Clear();
5822 if (obj && !PythonQtSlotFunction_Check(obj)) {
5823 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
5824 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
5825 bool returnValue;
5826 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
5827 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5828 if (result) {
5829 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5830 if (args[0]!=&returnValue) {
5831 if (args[0]==NULL) {
5832 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
5833 } else {
5834 returnValue = *((bool*)args[0]);
5835 }
5836 }
5837 }
5838 if (result) { Py_DECREF(result); }
5839 Py_DECREF(obj);
5840 return returnValue;
5841 }
5842 }
5843 return binaryFileWidget::nativeEvent(eventType, message, result);
5844 }
5845 QPaintEngine* PythonQtShell_binaryFileWidget::paintEngine() const
5846 {
5847 if (_wrapper) {
5848 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
5849 PyErr_Clear();
5850 if (obj && !PythonQtSlotFunction_Check(obj)) {
5851 static const char* argumentList[] ={"QPaintEngine*"};
5852 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5853 QPaintEngine* returnValue;
5854 void* args[1] = {NULL};
5855 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5856 if (result) {
5857 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5858 if (args[0]!=&returnValue) {
5859 if (args[0]==NULL) {
5860 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
5861 } else {
5862 returnValue = *((QPaintEngine**)args[0]);
5863 }
5864 }
5865 }
5866 if (result) { Py_DECREF(result); }
5867 Py_DECREF(obj);
5868 return returnValue;
5869 }
5870 }
5871 return binaryFileWidget::paintEngine();
5872 }
5873 void PythonQtShell_binaryFileWidget::paintEvent(QPaintEvent* arg__1)
5874 {
5875 if (_wrapper) {
5876 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
5877 PyErr_Clear();
5878 if (obj && !PythonQtSlotFunction_Check(obj)) {
5879 static const char* argumentList[] ={"" , "QPaintEvent*"};
5880 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5881 void* args[2] = {NULL, (void*)&arg__1};
5882 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5883 if (result) { Py_DECREF(result); }
5884 Py_DECREF(obj);
5885 return;
5886 }
5887 }
5888 binaryFileWidget::paintEvent(arg__1);
5889 }
5890 QPaintDevice* PythonQtShell_binaryFileWidget::redirected(QPoint* offset) const
5891 {
5892 if (_wrapper) {
5893 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
5894 PyErr_Clear();
5895 if (obj && !PythonQtSlotFunction_Check(obj)) {
5896 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
5897 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5898 QPaintDevice* returnValue;
5899 void* args[2] = {NULL, (void*)&offset};
5900 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5901 if (result) {
5902 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5903 if (args[0]!=&returnValue) {
5904 if (args[0]==NULL) {
5905 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
5906 } else {
5907 returnValue = *((QPaintDevice**)args[0]);
5908 }
5909 }
5910 }
5911 if (result) { Py_DECREF(result); }
5912 Py_DECREF(obj);
5913 return returnValue;
5914 }
5915 }
5916 return binaryFileWidget::redirected(offset);
5917 }
5918 void PythonQtShell_binaryFileWidget::resizeEvent(QResizeEvent* arg__1)
5919 {
5920 if (_wrapper) {
5921 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
5922 PyErr_Clear();
5923 if (obj && !PythonQtSlotFunction_Check(obj)) {
5924 static const char* argumentList[] ={"" , "QResizeEvent*"};
5925 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5926 void* args[2] = {NULL, (void*)&arg__1};
5927 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5928 if (result) { Py_DECREF(result); }
5929 Py_DECREF(obj);
5930 return;
5931 }
5932 }
5933 binaryFileWidget::resizeEvent(arg__1);
5934 }
5935 QPainter* PythonQtShell_binaryFileWidget::sharedPainter() const
5936 {
5937 if (_wrapper) {
5938 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
5939 PyErr_Clear();
5940 if (obj && !PythonQtSlotFunction_Check(obj)) {
5941 static const char* argumentList[] ={"QPainter*"};
5942 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5943 QPainter* returnValue;
5944 void* args[1] = {NULL};
5945 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5946 if (result) {
5947 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5948 if (args[0]!=&returnValue) {
5949 if (args[0]==NULL) {
5950 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
5951 } else {
5952 returnValue = *((QPainter**)args[0]);
5953 }
5954 }
5955 }
5956 if (result) { Py_DECREF(result); }
5957 Py_DECREF(obj);
5958 return returnValue;
5959 }
5960 }
5961 return binaryFileWidget::sharedPainter();
5962 }
5963 void PythonQtShell_binaryFileWidget::showEvent(QShowEvent* arg__1)
5964 {
5965 if (_wrapper) {
5966 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
5967 PyErr_Clear();
5968 if (obj && !PythonQtSlotFunction_Check(obj)) {
5969 static const char* argumentList[] ={"" , "QShowEvent*"};
5970 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5971 void* args[2] = {NULL, (void*)&arg__1};
5972 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5973 if (result) { Py_DECREF(result); }
5974 Py_DECREF(obj);
5975 return;
5976 }
5977 }
5978 binaryFileWidget::showEvent(arg__1);
5979 }
5980 QSize PythonQtShell_binaryFileWidget::sizeHint() const
5981 {
5982 if (_wrapper) {
5983 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
5984 PyErr_Clear();
5985 if (obj && !PythonQtSlotFunction_Check(obj)) {
5986 static const char* argumentList[] ={"QSize"};
5987 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5988 QSize returnValue;
5989 void* args[1] = {NULL};
5990 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5991 if (result) {
5992 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5993 if (args[0]!=&returnValue) {
5994 if (args[0]==NULL) {
5995 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
5996 } else {
5997 returnValue = *((QSize*)args[0]);
5998 }
5999 }
6000 }
6001 if (result) { Py_DECREF(result); }
6002 Py_DECREF(obj);
6003 return returnValue;
6004 }
6005 }
6006 return binaryFileWidget::sizeHint();
6007 }
6008 void PythonQtShell_binaryFileWidget::tabletEvent(QTabletEvent* arg__1)
6009 {
6010 if (_wrapper) {
6011 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
6012 PyErr_Clear();
6013 if (obj && !PythonQtSlotFunction_Check(obj)) {
6014 static const char* argumentList[] ={"" , "QTabletEvent*"};
6015 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6016 void* args[2] = {NULL, (void*)&arg__1};
6017 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6018 if (result) { Py_DECREF(result); }
6019 Py_DECREF(obj);
6020 return;
6021 }
6022 }
6023 binaryFileWidget::tabletEvent(arg__1);
6024 }
6025 void PythonQtShell_binaryFileWidget::timerEvent(QTimerEvent* arg__1)
6026 {
6027 if (_wrapper) {
6028 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
6029 PyErr_Clear();
6030 if (obj && !PythonQtSlotFunction_Check(obj)) {
6031 static const char* argumentList[] ={"" , "QTimerEvent*"};
6032 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6033 void* args[2] = {NULL, (void*)&arg__1};
6034 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6035 if (result) { Py_DECREF(result); }
6036 Py_DECREF(obj);
6037 return;
6038 }
6039 }
6040 binaryFileWidget::timerEvent(arg__1);
6041 }
6042 void PythonQtShell_binaryFileWidget::wheelEvent(QWheelEvent* arg__1)
6043 {
6044 if (_wrapper) {
6045 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
6046 PyErr_Clear();
6047 if (obj && !PythonQtSlotFunction_Check(obj)) {
6048 static const char* argumentList[] ={"" , "QWheelEvent*"};
6049 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6050 void* args[2] = {NULL, (void*)&arg__1};
6051 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6052 if (result) { Py_DECREF(result); }
6053 Py_DECREF(obj);
6054 return;
6055 }
6056 }
6057 binaryFileWidget::wheelEvent(arg__1);
6058 }
6059 binaryFileWidget* PythonQtWrapper_binaryFileWidget::new_binaryFileWidget(QWidget* parent)
6060 {
6061 return new PythonQtShell_binaryFileWidget(parent); }
6062
6063
6064
4942 PythonQtShell_codeFragment::~PythonQtShell_codeFragment() {
6065 PythonQtShell_codeFragment::~PythonQtShell_codeFragment() {
4943 PythonQtPrivate* priv = PythonQt::priv();
6066 PythonQtPrivate* priv = PythonQt::priv();
4944 if (priv) { priv->shellClassDeleted(this); }
6067 if (priv) { priv->shellClassDeleted(this); }
4945 }
6068 }
4946 codeFragment* PythonQtWrapper_codeFragment::new_codeFragment()
6069 codeFragment* PythonQtWrapper_codeFragment::new_codeFragment()
4947 {
6070 {
4948 return new PythonQtShell_codeFragment(); }
6071 return new PythonQtShell_codeFragment(); }
4949
6072
4950 codeFragment* PythonQtWrapper_codeFragment::new_codeFragment(char* data, quint64 size, quint64 address)
6073 codeFragment* PythonQtWrapper_codeFragment::new_codeFragment(char* data, quint64 size, quint64 address)
4951 {
6074 {
4952 return new PythonQtShell_codeFragment(data, size, address); }
6075 return new PythonQtShell_codeFragment(data, size, address); }
4953
6076
4954
6077
4955
6078
4956 PythonQtShell_elfFileWidget::~PythonQtShell_elfFileWidget() {
6079 PythonQtShell_elfFileWidget::~PythonQtShell_elfFileWidget() {
4957 PythonQtPrivate* priv = PythonQt::priv();
6080 PythonQtPrivate* priv = PythonQt::priv();
4958 if (priv) { priv->shellClassDeleted(this); }
6081 if (priv) { priv->shellClassDeleted(this); }
4959 }
6082 }
4960 void PythonQtShell_elfFileWidget::actionEvent(QActionEvent* arg__1)
6083 void PythonQtShell_elfFileWidget::actionEvent(QActionEvent* arg__1)
4961 {
6084 {
4962 if (_wrapper) {
6085 if (_wrapper) {
4963 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
6086 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
4964 PyErr_Clear();
6087 PyErr_Clear();
4965 if (obj && !PythonQtSlotFunction_Check(obj)) {
6088 if (obj && !PythonQtSlotFunction_Check(obj)) {
4966 static const char* argumentList[] ={"" , "QActionEvent*"};
6089 static const char* argumentList[] ={"" , "QActionEvent*"};
4967 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6090 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4968 void* args[2] = {NULL, (void*)&arg__1};
6091 void* args[2] = {NULL, (void*)&arg__1};
4969 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6092 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4970 if (result) { Py_DECREF(result); }
6093 if (result) { Py_DECREF(result); }
4971 Py_DECREF(obj);
6094 Py_DECREF(obj);
4972 return;
6095 return;
4973 }
6096 }
4974 }
6097 }
4975 elfFileWidget::actionEvent(arg__1);
6098 elfFileWidget::actionEvent(arg__1);
4976 }
6099 }
4977 void PythonQtShell_elfFileWidget::changeEvent(QEvent* arg__1)
6100 void PythonQtShell_elfFileWidget::changeEvent(QEvent* arg__1)
4978 {
6101 {
4979 if (_wrapper) {
6102 if (_wrapper) {
4980 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
6103 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
4981 PyErr_Clear();
6104 PyErr_Clear();
4982 if (obj && !PythonQtSlotFunction_Check(obj)) {
6105 if (obj && !PythonQtSlotFunction_Check(obj)) {
4983 static const char* argumentList[] ={"" , "QEvent*"};
6106 static const char* argumentList[] ={"" , "QEvent*"};
4984 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6107 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
4985 void* args[2] = {NULL, (void*)&arg__1};
6108 void* args[2] = {NULL, (void*)&arg__1};
4986 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6109 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
4987 if (result) { Py_DECREF(result); }
6110 if (result) { Py_DECREF(result); }
4988 Py_DECREF(obj);
6111 Py_DECREF(obj);
4989 return;
6112 return;
4990 }
6113 }
4991 }
6114 }
4992 elfFileWidget::changeEvent(arg__1);
6115 elfFileWidget::changeEvent(arg__1);
4993 }
6116 }
4994 void PythonQtShell_elfFileWidget::childEvent(QChildEvent* arg__1)
6117 void PythonQtShell_elfFileWidget::childEvent(QChildEvent* arg__1)
4995 {
6118 {
4996 if (_wrapper) {
6119 if (_wrapper) {
4997 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
6120 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
4998 PyErr_Clear();
6121 PyErr_Clear();
4999 if (obj && !PythonQtSlotFunction_Check(obj)) {
6122 if (obj && !PythonQtSlotFunction_Check(obj)) {
5000 static const char* argumentList[] ={"" , "QChildEvent*"};
6123 static const char* argumentList[] ={"" , "QChildEvent*"};
5001 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6124 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5002 void* args[2] = {NULL, (void*)&arg__1};
6125 void* args[2] = {NULL, (void*)&arg__1};
5003 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6126 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5004 if (result) { Py_DECREF(result); }
6127 if (result) { Py_DECREF(result); }
5005 Py_DECREF(obj);
6128 Py_DECREF(obj);
5006 return;
6129 return;
5007 }
6130 }
5008 }
6131 }
5009 elfFileWidget::childEvent(arg__1);
6132 elfFileWidget::childEvent(arg__1);
5010 }
6133 }
5011 void PythonQtShell_elfFileWidget::closeEvent(QCloseEvent* arg__1)
6134 void PythonQtShell_elfFileWidget::closeEvent(QCloseEvent* arg__1)
5012 {
6135 {
5013 if (_wrapper) {
6136 if (_wrapper) {
5014 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
6137 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
5015 PyErr_Clear();
6138 PyErr_Clear();
5016 if (obj && !PythonQtSlotFunction_Check(obj)) {
6139 if (obj && !PythonQtSlotFunction_Check(obj)) {
5017 static const char* argumentList[] ={"" , "QCloseEvent*"};
6140 static const char* argumentList[] ={"" , "QCloseEvent*"};
5018 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6141 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5019 void* args[2] = {NULL, (void*)&arg__1};
6142 void* args[2] = {NULL, (void*)&arg__1};
5020 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6143 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5021 if (result) { Py_DECREF(result); }
6144 if (result) { Py_DECREF(result); }
5022 Py_DECREF(obj);
6145 Py_DECREF(obj);
5023 return;
6146 return;
5024 }
6147 }
5025 }
6148 }
5026 elfFileWidget::closeEvent(arg__1);
6149 elfFileWidget::closeEvent(arg__1);
5027 }
6150 }
5028 void PythonQtShell_elfFileWidget::contextMenuEvent(QContextMenuEvent* arg__1)
6151 void PythonQtShell_elfFileWidget::contextMenuEvent(QContextMenuEvent* arg__1)
5029 {
6152 {
5030 if (_wrapper) {
6153 if (_wrapper) {
5031 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
6154 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
5032 PyErr_Clear();
6155 PyErr_Clear();
5033 if (obj && !PythonQtSlotFunction_Check(obj)) {
6156 if (obj && !PythonQtSlotFunction_Check(obj)) {
5034 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
6157 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
5035 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6158 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5036 void* args[2] = {NULL, (void*)&arg__1};
6159 void* args[2] = {NULL, (void*)&arg__1};
5037 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6160 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5038 if (result) { Py_DECREF(result); }
6161 if (result) { Py_DECREF(result); }
5039 Py_DECREF(obj);
6162 Py_DECREF(obj);
5040 return;
6163 return;
5041 }
6164 }
5042 }
6165 }
5043 elfFileWidget::contextMenuEvent(arg__1);
6166 elfFileWidget::contextMenuEvent(arg__1);
5044 }
6167 }
5045 void PythonQtShell_elfFileWidget::customEvent(QEvent* arg__1)
6168 void PythonQtShell_elfFileWidget::customEvent(QEvent* arg__1)
5046 {
6169 {
5047 if (_wrapper) {
6170 if (_wrapper) {
5048 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
6171 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
5049 PyErr_Clear();
6172 PyErr_Clear();
5050 if (obj && !PythonQtSlotFunction_Check(obj)) {
6173 if (obj && !PythonQtSlotFunction_Check(obj)) {
5051 static const char* argumentList[] ={"" , "QEvent*"};
6174 static const char* argumentList[] ={"" , "QEvent*"};
5052 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6175 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5053 void* args[2] = {NULL, (void*)&arg__1};
6176 void* args[2] = {NULL, (void*)&arg__1};
5054 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6177 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5055 if (result) { Py_DECREF(result); }
6178 if (result) { Py_DECREF(result); }
5056 Py_DECREF(obj);
6179 Py_DECREF(obj);
5057 return;
6180 return;
5058 }
6181 }
5059 }
6182 }
5060 elfFileWidget::customEvent(arg__1);
6183 elfFileWidget::customEvent(arg__1);
5061 }
6184 }
5062 int PythonQtShell_elfFileWidget::devType() const
6185 int PythonQtShell_elfFileWidget::devType() const
5063 {
6186 {
5064 if (_wrapper) {
6187 if (_wrapper) {
5065 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
6188 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
5066 PyErr_Clear();
6189 PyErr_Clear();
5067 if (obj && !PythonQtSlotFunction_Check(obj)) {
6190 if (obj && !PythonQtSlotFunction_Check(obj)) {
5068 static const char* argumentList[] ={"int"};
6191 static const char* argumentList[] ={"int"};
5069 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6192 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5070 int returnValue;
6193 int returnValue;
5071 void* args[1] = {NULL};
6194 void* args[1] = {NULL};
5072 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6195 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5073 if (result) {
6196 if (result) {
5074 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6197 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5075 if (args[0]!=&returnValue) {
6198 if (args[0]!=&returnValue) {
5076 if (args[0]==NULL) {
6199 if (args[0]==NULL) {
5077 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
6200 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
5078 } else {
6201 } else {
5079 returnValue = *((int*)args[0]);
6202 returnValue = *((int*)args[0]);
5080 }
6203 }
5081 }
6204 }
5082 }
6205 }
5083 if (result) { Py_DECREF(result); }
6206 if (result) { Py_DECREF(result); }
5084 Py_DECREF(obj);
6207 Py_DECREF(obj);
5085 return returnValue;
6208 return returnValue;
5086 }
6209 }
5087 }
6210 }
5088 return elfFileWidget::devType();
6211 return elfFileWidget::devType();
5089 }
6212 }
5090 void PythonQtShell_elfFileWidget::dragEnterEvent(QDragEnterEvent* arg__1)
6213 void PythonQtShell_elfFileWidget::dragEnterEvent(QDragEnterEvent* arg__1)
5091 {
6214 {
5092 if (_wrapper) {
6215 if (_wrapper) {
5093 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
6216 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
5094 PyErr_Clear();
6217 PyErr_Clear();
5095 if (obj && !PythonQtSlotFunction_Check(obj)) {
6218 if (obj && !PythonQtSlotFunction_Check(obj)) {
5096 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
6219 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
5097 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6220 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5098 void* args[2] = {NULL, (void*)&arg__1};
6221 void* args[2] = {NULL, (void*)&arg__1};
5099 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6222 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5100 if (result) { Py_DECREF(result); }
6223 if (result) { Py_DECREF(result); }
5101 Py_DECREF(obj);
6224 Py_DECREF(obj);
5102 return;
6225 return;
5103 }
6226 }
5104 }
6227 }
5105 elfFileWidget::dragEnterEvent(arg__1);
6228 elfFileWidget::dragEnterEvent(arg__1);
5106 }
6229 }
5107 void PythonQtShell_elfFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1)
6230 void PythonQtShell_elfFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1)
5108 {
6231 {
5109 if (_wrapper) {
6232 if (_wrapper) {
5110 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
6233 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
5111 PyErr_Clear();
6234 PyErr_Clear();
5112 if (obj && !PythonQtSlotFunction_Check(obj)) {
6235 if (obj && !PythonQtSlotFunction_Check(obj)) {
5113 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
6236 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
5114 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6237 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5115 void* args[2] = {NULL, (void*)&arg__1};
6238 void* args[2] = {NULL, (void*)&arg__1};
5116 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6239 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5117 if (result) { Py_DECREF(result); }
6240 if (result) { Py_DECREF(result); }
5118 Py_DECREF(obj);
6241 Py_DECREF(obj);
5119 return;
6242 return;
5120 }
6243 }
5121 }
6244 }
5122 elfFileWidget::dragLeaveEvent(arg__1);
6245 elfFileWidget::dragLeaveEvent(arg__1);
5123 }
6246 }
5124 void PythonQtShell_elfFileWidget::dragMoveEvent(QDragMoveEvent* arg__1)
6247 void PythonQtShell_elfFileWidget::dragMoveEvent(QDragMoveEvent* arg__1)
5125 {
6248 {
5126 if (_wrapper) {
6249 if (_wrapper) {
5127 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
6250 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
5128 PyErr_Clear();
6251 PyErr_Clear();
5129 if (obj && !PythonQtSlotFunction_Check(obj)) {
6252 if (obj && !PythonQtSlotFunction_Check(obj)) {
5130 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
6253 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
5131 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6254 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5132 void* args[2] = {NULL, (void*)&arg__1};
6255 void* args[2] = {NULL, (void*)&arg__1};
5133 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6256 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5134 if (result) { Py_DECREF(result); }
6257 if (result) { Py_DECREF(result); }
5135 Py_DECREF(obj);
6258 Py_DECREF(obj);
5136 return;
6259 return;
5137 }
6260 }
5138 }
6261 }
5139 elfFileWidget::dragMoveEvent(arg__1);
6262 elfFileWidget::dragMoveEvent(arg__1);
5140 }
6263 }
5141 void PythonQtShell_elfFileWidget::dropEvent(QDropEvent* arg__1)
6264 void PythonQtShell_elfFileWidget::dropEvent(QDropEvent* arg__1)
5142 {
6265 {
5143 if (_wrapper) {
6266 if (_wrapper) {
5144 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
6267 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
5145 PyErr_Clear();
6268 PyErr_Clear();
5146 if (obj && !PythonQtSlotFunction_Check(obj)) {
6269 if (obj && !PythonQtSlotFunction_Check(obj)) {
5147 static const char* argumentList[] ={"" , "QDropEvent*"};
6270 static const char* argumentList[] ={"" , "QDropEvent*"};
5148 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6271 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5149 void* args[2] = {NULL, (void*)&arg__1};
6272 void* args[2] = {NULL, (void*)&arg__1};
5150 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6273 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5151 if (result) { Py_DECREF(result); }
6274 if (result) { Py_DECREF(result); }
5152 Py_DECREF(obj);
6275 Py_DECREF(obj);
5153 return;
6276 return;
5154 }
6277 }
5155 }
6278 }
5156 elfFileWidget::dropEvent(arg__1);
6279 elfFileWidget::dropEvent(arg__1);
5157 }
6280 }
5158 void PythonQtShell_elfFileWidget::enterEvent(QEvent* arg__1)
6281 void PythonQtShell_elfFileWidget::enterEvent(QEvent* arg__1)
5159 {
6282 {
5160 if (_wrapper) {
6283 if (_wrapper) {
5161 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
6284 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
5162 PyErr_Clear();
6285 PyErr_Clear();
5163 if (obj && !PythonQtSlotFunction_Check(obj)) {
6286 if (obj && !PythonQtSlotFunction_Check(obj)) {
5164 static const char* argumentList[] ={"" , "QEvent*"};
6287 static const char* argumentList[] ={"" , "QEvent*"};
5165 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6288 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5166 void* args[2] = {NULL, (void*)&arg__1};
6289 void* args[2] = {NULL, (void*)&arg__1};
5167 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6290 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5168 if (result) { Py_DECREF(result); }
6291 if (result) { Py_DECREF(result); }
5169 Py_DECREF(obj);
6292 Py_DECREF(obj);
5170 return;
6293 return;
5171 }
6294 }
5172 }
6295 }
5173 elfFileWidget::enterEvent(arg__1);
6296 elfFileWidget::enterEvent(arg__1);
5174 }
6297 }
5175 bool PythonQtShell_elfFileWidget::event(QEvent* arg__1)
6298 bool PythonQtShell_elfFileWidget::event(QEvent* arg__1)
5176 {
6299 {
5177 if (_wrapper) {
6300 if (_wrapper) {
5178 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
6301 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
5179 PyErr_Clear();
6302 PyErr_Clear();
5180 if (obj && !PythonQtSlotFunction_Check(obj)) {
6303 if (obj && !PythonQtSlotFunction_Check(obj)) {
5181 static const char* argumentList[] ={"bool" , "QEvent*"};
6304 static const char* argumentList[] ={"bool" , "QEvent*"};
5182 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6305 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5183 bool returnValue;
6306 bool returnValue;
5184 void* args[2] = {NULL, (void*)&arg__1};
6307 void* args[2] = {NULL, (void*)&arg__1};
5185 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6308 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5186 if (result) {
6309 if (result) {
5187 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6310 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5188 if (args[0]!=&returnValue) {
6311 if (args[0]!=&returnValue) {
5189 if (args[0]==NULL) {
6312 if (args[0]==NULL) {
5190 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
6313 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
5191 } else {
6314 } else {
5192 returnValue = *((bool*)args[0]);
6315 returnValue = *((bool*)args[0]);
5193 }
6316 }
5194 }
6317 }
5195 }
6318 }
5196 if (result) { Py_DECREF(result); }
6319 if (result) { Py_DECREF(result); }
5197 Py_DECREF(obj);
6320 Py_DECREF(obj);
5198 return returnValue;
6321 return returnValue;
5199 }
6322 }
5200 }
6323 }
5201 return elfFileWidget::event(arg__1);
6324 return elfFileWidget::event(arg__1);
5202 }
6325 }
5203 bool PythonQtShell_elfFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2)
6326 bool PythonQtShell_elfFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2)
5204 {
6327 {
5205 if (_wrapper) {
6328 if (_wrapper) {
5206 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
6329 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
5207 PyErr_Clear();
6330 PyErr_Clear();
5208 if (obj && !PythonQtSlotFunction_Check(obj)) {
6331 if (obj && !PythonQtSlotFunction_Check(obj)) {
5209 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
6332 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
5210 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
6333 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
5211 bool returnValue;
6334 bool returnValue;
5212 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
6335 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
5213 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6336 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5214 if (result) {
6337 if (result) {
5215 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6338 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5216 if (args[0]!=&returnValue) {
6339 if (args[0]!=&returnValue) {
5217 if (args[0]==NULL) {
6340 if (args[0]==NULL) {
5218 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
6341 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
5219 } else {
6342 } else {
5220 returnValue = *((bool*)args[0]);
6343 returnValue = *((bool*)args[0]);
5221 }
6344 }
5222 }
6345 }
5223 }
6346 }
5224 if (result) { Py_DECREF(result); }
6347 if (result) { Py_DECREF(result); }
5225 Py_DECREF(obj);
6348 Py_DECREF(obj);
5226 return returnValue;
6349 return returnValue;
5227 }
6350 }
5228 }
6351 }
5229 return elfFileWidget::eventFilter(arg__1, arg__2);
6352 return elfFileWidget::eventFilter(arg__1, arg__2);
5230 }
6353 }
5231 void PythonQtShell_elfFileWidget::focusInEvent(QFocusEvent* arg__1)
6354 void PythonQtShell_elfFileWidget::focusInEvent(QFocusEvent* arg__1)
5232 {
6355 {
5233 if (_wrapper) {
6356 if (_wrapper) {
5234 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
6357 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
5235 PyErr_Clear();
6358 PyErr_Clear();
5236 if (obj && !PythonQtSlotFunction_Check(obj)) {
6359 if (obj && !PythonQtSlotFunction_Check(obj)) {
5237 static const char* argumentList[] ={"" , "QFocusEvent*"};
6360 static const char* argumentList[] ={"" , "QFocusEvent*"};
5238 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6361 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5239 void* args[2] = {NULL, (void*)&arg__1};
6362 void* args[2] = {NULL, (void*)&arg__1};
5240 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6363 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5241 if (result) { Py_DECREF(result); }
6364 if (result) { Py_DECREF(result); }
5242 Py_DECREF(obj);
6365 Py_DECREF(obj);
5243 return;
6366 return;
5244 }
6367 }
5245 }
6368 }
5246 elfFileWidget::focusInEvent(arg__1);
6369 elfFileWidget::focusInEvent(arg__1);
5247 }
6370 }
5248 bool PythonQtShell_elfFileWidget::focusNextPrevChild(bool next)
6371 bool PythonQtShell_elfFileWidget::focusNextPrevChild(bool next)
5249 {
6372 {
5250 if (_wrapper) {
6373 if (_wrapper) {
5251 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
6374 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
5252 PyErr_Clear();
6375 PyErr_Clear();
5253 if (obj && !PythonQtSlotFunction_Check(obj)) {
6376 if (obj && !PythonQtSlotFunction_Check(obj)) {
5254 static const char* argumentList[] ={"bool" , "bool"};
6377 static const char* argumentList[] ={"bool" , "bool"};
5255 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6378 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5256 bool returnValue;
6379 bool returnValue;
5257 void* args[2] = {NULL, (void*)&next};
6380 void* args[2] = {NULL, (void*)&next};
5258 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6381 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5259 if (result) {
6382 if (result) {
5260 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6383 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5261 if (args[0]!=&returnValue) {
6384 if (args[0]!=&returnValue) {
5262 if (args[0]==NULL) {
6385 if (args[0]==NULL) {
5263 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
6386 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
5264 } else {
6387 } else {
5265 returnValue = *((bool*)args[0]);
6388 returnValue = *((bool*)args[0]);
5266 }
6389 }
5267 }
6390 }
5268 }
6391 }
5269 if (result) { Py_DECREF(result); }
6392 if (result) { Py_DECREF(result); }
5270 Py_DECREF(obj);
6393 Py_DECREF(obj);
5271 return returnValue;
6394 return returnValue;
5272 }
6395 }
5273 }
6396 }
5274 return elfFileWidget::focusNextPrevChild(next);
6397 return elfFileWidget::focusNextPrevChild(next);
5275 }
6398 }
5276 void PythonQtShell_elfFileWidget::focusOutEvent(QFocusEvent* arg__1)
6399 void PythonQtShell_elfFileWidget::focusOutEvent(QFocusEvent* arg__1)
5277 {
6400 {
5278 if (_wrapper) {
6401 if (_wrapper) {
5279 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
6402 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
5280 PyErr_Clear();
6403 PyErr_Clear();
5281 if (obj && !PythonQtSlotFunction_Check(obj)) {
6404 if (obj && !PythonQtSlotFunction_Check(obj)) {
5282 static const char* argumentList[] ={"" , "QFocusEvent*"};
6405 static const char* argumentList[] ={"" , "QFocusEvent*"};
5283 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6406 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5284 void* args[2] = {NULL, (void*)&arg__1};
6407 void* args[2] = {NULL, (void*)&arg__1};
5285 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6408 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5286 if (result) { Py_DECREF(result); }
6409 if (result) { Py_DECREF(result); }
5287 Py_DECREF(obj);
6410 Py_DECREF(obj);
5288 return;
6411 return;
5289 }
6412 }
5290 }
6413 }
5291 elfFileWidget::focusOutEvent(arg__1);
6414 elfFileWidget::focusOutEvent(arg__1);
5292 }
6415 }
5293 bool PythonQtShell_elfFileWidget::hasHeightForWidth() const
6416 bool PythonQtShell_elfFileWidget::hasHeightForWidth() const
5294 {
6417 {
5295 if (_wrapper) {
6418 if (_wrapper) {
5296 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
6419 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
5297 PyErr_Clear();
6420 PyErr_Clear();
5298 if (obj && !PythonQtSlotFunction_Check(obj)) {
6421 if (obj && !PythonQtSlotFunction_Check(obj)) {
5299 static const char* argumentList[] ={"bool"};
6422 static const char* argumentList[] ={"bool"};
5300 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6423 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5301 bool returnValue;
6424 bool returnValue;
5302 void* args[1] = {NULL};
6425 void* args[1] = {NULL};
5303 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6426 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5304 if (result) {
6427 if (result) {
5305 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6428 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5306 if (args[0]!=&returnValue) {
6429 if (args[0]!=&returnValue) {
5307 if (args[0]==NULL) {
6430 if (args[0]==NULL) {
5308 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
6431 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
5309 } else {
6432 } else {
5310 returnValue = *((bool*)args[0]);
6433 returnValue = *((bool*)args[0]);
5311 }
6434 }
5312 }
6435 }
5313 }
6436 }
5314 if (result) { Py_DECREF(result); }
6437 if (result) { Py_DECREF(result); }
5315 Py_DECREF(obj);
6438 Py_DECREF(obj);
5316 return returnValue;
6439 return returnValue;
5317 }
6440 }
5318 }
6441 }
5319 return elfFileWidget::hasHeightForWidth();
6442 return elfFileWidget::hasHeightForWidth();
5320 }
6443 }
5321 int PythonQtShell_elfFileWidget::heightForWidth(int arg__1) const
6444 int PythonQtShell_elfFileWidget::heightForWidth(int arg__1) const
5322 {
6445 {
5323 if (_wrapper) {
6446 if (_wrapper) {
5324 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
6447 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
5325 PyErr_Clear();
6448 PyErr_Clear();
5326 if (obj && !PythonQtSlotFunction_Check(obj)) {
6449 if (obj && !PythonQtSlotFunction_Check(obj)) {
5327 static const char* argumentList[] ={"int" , "int"};
6450 static const char* argumentList[] ={"int" , "int"};
5328 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6451 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5329 int returnValue;
6452 int returnValue;
5330 void* args[2] = {NULL, (void*)&arg__1};
6453 void* args[2] = {NULL, (void*)&arg__1};
5331 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6454 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5332 if (result) {
6455 if (result) {
5333 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6456 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5334 if (args[0]!=&returnValue) {
6457 if (args[0]!=&returnValue) {
5335 if (args[0]==NULL) {
6458 if (args[0]==NULL) {
5336 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
6459 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
5337 } else {
6460 } else {
5338 returnValue = *((int*)args[0]);
6461 returnValue = *((int*)args[0]);
5339 }
6462 }
5340 }
6463 }
5341 }
6464 }
5342 if (result) { Py_DECREF(result); }
6465 if (result) { Py_DECREF(result); }
5343 Py_DECREF(obj);
6466 Py_DECREF(obj);
5344 return returnValue;
6467 return returnValue;
5345 }
6468 }
5346 }
6469 }
5347 return elfFileWidget::heightForWidth(arg__1);
6470 return elfFileWidget::heightForWidth(arg__1);
5348 }
6471 }
5349 void PythonQtShell_elfFileWidget::hideEvent(QHideEvent* arg__1)
6472 void PythonQtShell_elfFileWidget::hideEvent(QHideEvent* arg__1)
5350 {
6473 {
5351 if (_wrapper) {
6474 if (_wrapper) {
5352 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
6475 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
5353 PyErr_Clear();
6476 PyErr_Clear();
5354 if (obj && !PythonQtSlotFunction_Check(obj)) {
6477 if (obj && !PythonQtSlotFunction_Check(obj)) {
5355 static const char* argumentList[] ={"" , "QHideEvent*"};
6478 static const char* argumentList[] ={"" , "QHideEvent*"};
5356 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6479 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5357 void* args[2] = {NULL, (void*)&arg__1};
6480 void* args[2] = {NULL, (void*)&arg__1};
5358 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6481 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5359 if (result) { Py_DECREF(result); }
6482 if (result) { Py_DECREF(result); }
5360 Py_DECREF(obj);
6483 Py_DECREF(obj);
5361 return;
6484 return;
5362 }
6485 }
5363 }
6486 }
5364 elfFileWidget::hideEvent(arg__1);
6487 elfFileWidget::hideEvent(arg__1);
5365 }
6488 }
5366 void PythonQtShell_elfFileWidget::initPainter(QPainter* painter) const
6489 void PythonQtShell_elfFileWidget::initPainter(QPainter* painter) const
5367 {
6490 {
5368 if (_wrapper) {
6491 if (_wrapper) {
5369 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
6492 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
5370 PyErr_Clear();
6493 PyErr_Clear();
5371 if (obj && !PythonQtSlotFunction_Check(obj)) {
6494 if (obj && !PythonQtSlotFunction_Check(obj)) {
5372 static const char* argumentList[] ={"" , "QPainter*"};
6495 static const char* argumentList[] ={"" , "QPainter*"};
5373 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6496 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5374 void* args[2] = {NULL, (void*)&painter};
6497 void* args[2] = {NULL, (void*)&painter};
5375 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6498 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5376 if (result) { Py_DECREF(result); }
6499 if (result) { Py_DECREF(result); }
5377 Py_DECREF(obj);
6500 Py_DECREF(obj);
5378 return;
6501 return;
5379 }
6502 }
5380 }
6503 }
5381 elfFileWidget::initPainter(painter);
6504 elfFileWidget::initPainter(painter);
5382 }
6505 }
5383 void PythonQtShell_elfFileWidget::inputMethodEvent(QInputMethodEvent* arg__1)
6506 void PythonQtShell_elfFileWidget::inputMethodEvent(QInputMethodEvent* arg__1)
5384 {
6507 {
5385 if (_wrapper) {
6508 if (_wrapper) {
5386 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
6509 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
5387 PyErr_Clear();
6510 PyErr_Clear();
5388 if (obj && !PythonQtSlotFunction_Check(obj)) {
6511 if (obj && !PythonQtSlotFunction_Check(obj)) {
5389 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
6512 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
5390 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6513 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5391 void* args[2] = {NULL, (void*)&arg__1};
6514 void* args[2] = {NULL, (void*)&arg__1};
5392 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6515 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5393 if (result) { Py_DECREF(result); }
6516 if (result) { Py_DECREF(result); }
5394 Py_DECREF(obj);
6517 Py_DECREF(obj);
5395 return;
6518 return;
5396 }
6519 }
5397 }
6520 }
5398 elfFileWidget::inputMethodEvent(arg__1);
6521 elfFileWidget::inputMethodEvent(arg__1);
5399 }
6522 }
5400 QVariant PythonQtShell_elfFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const
6523 QVariant PythonQtShell_elfFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const
5401 {
6524 {
5402 if (_wrapper) {
6525 if (_wrapper) {
5403 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
6526 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
5404 PyErr_Clear();
6527 PyErr_Clear();
5405 if (obj && !PythonQtSlotFunction_Check(obj)) {
6528 if (obj && !PythonQtSlotFunction_Check(obj)) {
5406 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
6529 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
5407 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6530 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5408 QVariant returnValue;
6531 QVariant returnValue;
5409 void* args[2] = {NULL, (void*)&arg__1};
6532 void* args[2] = {NULL, (void*)&arg__1};
5410 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6533 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5411 if (result) {
6534 if (result) {
5412 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6535 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5413 if (args[0]!=&returnValue) {
6536 if (args[0]!=&returnValue) {
5414 if (args[0]==NULL) {
6537 if (args[0]==NULL) {
5415 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
6538 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
5416 } else {
6539 } else {
5417 returnValue = *((QVariant*)args[0]);
6540 returnValue = *((QVariant*)args[0]);
5418 }
6541 }
5419 }
6542 }
5420 }
6543 }
5421 if (result) { Py_DECREF(result); }
6544 if (result) { Py_DECREF(result); }
5422 Py_DECREF(obj);
6545 Py_DECREF(obj);
5423 return returnValue;
6546 return returnValue;
5424 }
6547 }
5425 }
6548 }
5426 return elfFileWidget::inputMethodQuery(arg__1);
6549 return elfFileWidget::inputMethodQuery(arg__1);
5427 }
6550 }
5428 void PythonQtShell_elfFileWidget::keyPressEvent(QKeyEvent* arg__1)
6551 void PythonQtShell_elfFileWidget::keyPressEvent(QKeyEvent* arg__1)
5429 {
6552 {
5430 if (_wrapper) {
6553 if (_wrapper) {
5431 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
6554 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
5432 PyErr_Clear();
6555 PyErr_Clear();
5433 if (obj && !PythonQtSlotFunction_Check(obj)) {
6556 if (obj && !PythonQtSlotFunction_Check(obj)) {
5434 static const char* argumentList[] ={"" , "QKeyEvent*"};
6557 static const char* argumentList[] ={"" , "QKeyEvent*"};
5435 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6558 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5436 void* args[2] = {NULL, (void*)&arg__1};
6559 void* args[2] = {NULL, (void*)&arg__1};
5437 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6560 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5438 if (result) { Py_DECREF(result); }
6561 if (result) { Py_DECREF(result); }
5439 Py_DECREF(obj);
6562 Py_DECREF(obj);
5440 return;
6563 return;
5441 }
6564 }
5442 }
6565 }
5443 elfFileWidget::keyPressEvent(arg__1);
6566 elfFileWidget::keyPressEvent(arg__1);
5444 }
6567 }
5445 void PythonQtShell_elfFileWidget::keyReleaseEvent(QKeyEvent* arg__1)
6568 void PythonQtShell_elfFileWidget::keyReleaseEvent(QKeyEvent* arg__1)
5446 {
6569 {
5447 if (_wrapper) {
6570 if (_wrapper) {
5448 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
6571 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
5449 PyErr_Clear();
6572 PyErr_Clear();
5450 if (obj && !PythonQtSlotFunction_Check(obj)) {
6573 if (obj && !PythonQtSlotFunction_Check(obj)) {
5451 static const char* argumentList[] ={"" , "QKeyEvent*"};
6574 static const char* argumentList[] ={"" , "QKeyEvent*"};
5452 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6575 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5453 void* args[2] = {NULL, (void*)&arg__1};
6576 void* args[2] = {NULL, (void*)&arg__1};
5454 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6577 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5455 if (result) { Py_DECREF(result); }
6578 if (result) { Py_DECREF(result); }
5456 Py_DECREF(obj);
6579 Py_DECREF(obj);
5457 return;
6580 return;
5458 }
6581 }
5459 }
6582 }
5460 elfFileWidget::keyReleaseEvent(arg__1);
6583 elfFileWidget::keyReleaseEvent(arg__1);
5461 }
6584 }
5462 void PythonQtShell_elfFileWidget::leaveEvent(QEvent* arg__1)
6585 void PythonQtShell_elfFileWidget::leaveEvent(QEvent* arg__1)
5463 {
6586 {
5464 if (_wrapper) {
6587 if (_wrapper) {
5465 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
6588 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
5466 PyErr_Clear();
6589 PyErr_Clear();
5467 if (obj && !PythonQtSlotFunction_Check(obj)) {
6590 if (obj && !PythonQtSlotFunction_Check(obj)) {
5468 static const char* argumentList[] ={"" , "QEvent*"};
6591 static const char* argumentList[] ={"" , "QEvent*"};
5469 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6592 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5470 void* args[2] = {NULL, (void*)&arg__1};
6593 void* args[2] = {NULL, (void*)&arg__1};
5471 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6594 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5472 if (result) { Py_DECREF(result); }
6595 if (result) { Py_DECREF(result); }
5473 Py_DECREF(obj);
6596 Py_DECREF(obj);
5474 return;
6597 return;
5475 }
6598 }
5476 }
6599 }
5477 elfFileWidget::leaveEvent(arg__1);
6600 elfFileWidget::leaveEvent(arg__1);
5478 }
6601 }
5479 int PythonQtShell_elfFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const
6602 int PythonQtShell_elfFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const
5480 {
6603 {
5481 if (_wrapper) {
6604 if (_wrapper) {
5482 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
6605 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
5483 PyErr_Clear();
6606 PyErr_Clear();
5484 if (obj && !PythonQtSlotFunction_Check(obj)) {
6607 if (obj && !PythonQtSlotFunction_Check(obj)) {
5485 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
6608 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
5486 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6609 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5487 int returnValue;
6610 int returnValue;
5488 void* args[2] = {NULL, (void*)&arg__1};
6611 void* args[2] = {NULL, (void*)&arg__1};
5489 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6612 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5490 if (result) {
6613 if (result) {
5491 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6614 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5492 if (args[0]!=&returnValue) {
6615 if (args[0]!=&returnValue) {
5493 if (args[0]==NULL) {
6616 if (args[0]==NULL) {
5494 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
6617 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
5495 } else {
6618 } else {
5496 returnValue = *((int*)args[0]);
6619 returnValue = *((int*)args[0]);
5497 }
6620 }
5498 }
6621 }
5499 }
6622 }
5500 if (result) { Py_DECREF(result); }
6623 if (result) { Py_DECREF(result); }
5501 Py_DECREF(obj);
6624 Py_DECREF(obj);
5502 return returnValue;
6625 return returnValue;
5503 }
6626 }
5504 }
6627 }
5505 return elfFileWidget::metric(arg__1);
6628 return elfFileWidget::metric(arg__1);
5506 }
6629 }
5507 QSize PythonQtShell_elfFileWidget::minimumSizeHint() const
6630 QSize PythonQtShell_elfFileWidget::minimumSizeHint() const
5508 {
6631 {
5509 if (_wrapper) {
6632 if (_wrapper) {
5510 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
6633 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
5511 PyErr_Clear();
6634 PyErr_Clear();
5512 if (obj && !PythonQtSlotFunction_Check(obj)) {
6635 if (obj && !PythonQtSlotFunction_Check(obj)) {
5513 static const char* argumentList[] ={"QSize"};
6636 static const char* argumentList[] ={"QSize"};
5514 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6637 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5515 QSize returnValue;
6638 QSize returnValue;
5516 void* args[1] = {NULL};
6639 void* args[1] = {NULL};
5517 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6640 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5518 if (result) {
6641 if (result) {
5519 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6642 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5520 if (args[0]!=&returnValue) {
6643 if (args[0]!=&returnValue) {
5521 if (args[0]==NULL) {
6644 if (args[0]==NULL) {
5522 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
6645 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
5523 } else {
6646 } else {
5524 returnValue = *((QSize*)args[0]);
6647 returnValue = *((QSize*)args[0]);
5525 }
6648 }
5526 }
6649 }
5527 }
6650 }
5528 if (result) { Py_DECREF(result); }
6651 if (result) { Py_DECREF(result); }
5529 Py_DECREF(obj);
6652 Py_DECREF(obj);
5530 return returnValue;
6653 return returnValue;
5531 }
6654 }
5532 }
6655 }
5533 return elfFileWidget::minimumSizeHint();
6656 return elfFileWidget::minimumSizeHint();
5534 }
6657 }
5535 void PythonQtShell_elfFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1)
6658 void PythonQtShell_elfFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1)
5536 {
6659 {
5537 if (_wrapper) {
6660 if (_wrapper) {
5538 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
6661 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
5539 PyErr_Clear();
6662 PyErr_Clear();
5540 if (obj && !PythonQtSlotFunction_Check(obj)) {
6663 if (obj && !PythonQtSlotFunction_Check(obj)) {
5541 static const char* argumentList[] ={"" , "QMouseEvent*"};
6664 static const char* argumentList[] ={"" , "QMouseEvent*"};
5542 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6665 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5543 void* args[2] = {NULL, (void*)&arg__1};
6666 void* args[2] = {NULL, (void*)&arg__1};
5544 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6667 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5545 if (result) { Py_DECREF(result); }
6668 if (result) { Py_DECREF(result); }
5546 Py_DECREF(obj);
6669 Py_DECREF(obj);
5547 return;
6670 return;
5548 }
6671 }
5549 }
6672 }
5550 elfFileWidget::mouseDoubleClickEvent(arg__1);
6673 elfFileWidget::mouseDoubleClickEvent(arg__1);
5551 }
6674 }
5552 void PythonQtShell_elfFileWidget::mouseMoveEvent(QMouseEvent* arg__1)
6675 void PythonQtShell_elfFileWidget::mouseMoveEvent(QMouseEvent* arg__1)
5553 {
6676 {
5554 if (_wrapper) {
6677 if (_wrapper) {
5555 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
6678 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
5556 PyErr_Clear();
6679 PyErr_Clear();
5557 if (obj && !PythonQtSlotFunction_Check(obj)) {
6680 if (obj && !PythonQtSlotFunction_Check(obj)) {
5558 static const char* argumentList[] ={"" , "QMouseEvent*"};
6681 static const char* argumentList[] ={"" , "QMouseEvent*"};
5559 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6682 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5560 void* args[2] = {NULL, (void*)&arg__1};
6683 void* args[2] = {NULL, (void*)&arg__1};
5561 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6684 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5562 if (result) { Py_DECREF(result); }
6685 if (result) { Py_DECREF(result); }
5563 Py_DECREF(obj);
6686 Py_DECREF(obj);
5564 return;
6687 return;
5565 }
6688 }
5566 }
6689 }
5567 elfFileWidget::mouseMoveEvent(arg__1);
6690 elfFileWidget::mouseMoveEvent(arg__1);
5568 }
6691 }
5569 void PythonQtShell_elfFileWidget::mousePressEvent(QMouseEvent* arg__1)
6692 void PythonQtShell_elfFileWidget::mousePressEvent(QMouseEvent* arg__1)
5570 {
6693 {
5571 if (_wrapper) {
6694 if (_wrapper) {
5572 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
6695 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
5573 PyErr_Clear();
6696 PyErr_Clear();
5574 if (obj && !PythonQtSlotFunction_Check(obj)) {
6697 if (obj && !PythonQtSlotFunction_Check(obj)) {
5575 static const char* argumentList[] ={"" , "QMouseEvent*"};
6698 static const char* argumentList[] ={"" , "QMouseEvent*"};
5576 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6699 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5577 void* args[2] = {NULL, (void*)&arg__1};
6700 void* args[2] = {NULL, (void*)&arg__1};
5578 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6701 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5579 if (result) { Py_DECREF(result); }
6702 if (result) { Py_DECREF(result); }
5580 Py_DECREF(obj);
6703 Py_DECREF(obj);
5581 return;
6704 return;
5582 }
6705 }
5583 }
6706 }
5584 elfFileWidget::mousePressEvent(arg__1);
6707 elfFileWidget::mousePressEvent(arg__1);
5585 }
6708 }
5586 void PythonQtShell_elfFileWidget::mouseReleaseEvent(QMouseEvent* arg__1)
6709 void PythonQtShell_elfFileWidget::mouseReleaseEvent(QMouseEvent* arg__1)
5587 {
6710 {
5588 if (_wrapper) {
6711 if (_wrapper) {
5589 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
6712 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
5590 PyErr_Clear();
6713 PyErr_Clear();
5591 if (obj && !PythonQtSlotFunction_Check(obj)) {
6714 if (obj && !PythonQtSlotFunction_Check(obj)) {
5592 static const char* argumentList[] ={"" , "QMouseEvent*"};
6715 static const char* argumentList[] ={"" , "QMouseEvent*"};
5593 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6716 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5594 void* args[2] = {NULL, (void*)&arg__1};
6717 void* args[2] = {NULL, (void*)&arg__1};
5595 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6718 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5596 if (result) { Py_DECREF(result); }
6719 if (result) { Py_DECREF(result); }
5597 Py_DECREF(obj);
6720 Py_DECREF(obj);
5598 return;
6721 return;
5599 }
6722 }
5600 }
6723 }
5601 elfFileWidget::mouseReleaseEvent(arg__1);
6724 elfFileWidget::mouseReleaseEvent(arg__1);
5602 }
6725 }
5603 void PythonQtShell_elfFileWidget::moveEvent(QMoveEvent* arg__1)
6726 void PythonQtShell_elfFileWidget::moveEvent(QMoveEvent* arg__1)
5604 {
6727 {
5605 if (_wrapper) {
6728 if (_wrapper) {
5606 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
6729 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
5607 PyErr_Clear();
6730 PyErr_Clear();
5608 if (obj && !PythonQtSlotFunction_Check(obj)) {
6731 if (obj && !PythonQtSlotFunction_Check(obj)) {
5609 static const char* argumentList[] ={"" , "QMoveEvent*"};
6732 static const char* argumentList[] ={"" , "QMoveEvent*"};
5610 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6733 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5611 void* args[2] = {NULL, (void*)&arg__1};
6734 void* args[2] = {NULL, (void*)&arg__1};
5612 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6735 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5613 if (result) { Py_DECREF(result); }
6736 if (result) { Py_DECREF(result); }
5614 Py_DECREF(obj);
6737 Py_DECREF(obj);
5615 return;
6738 return;
5616 }
6739 }
5617 }
6740 }
5618 elfFileWidget::moveEvent(arg__1);
6741 elfFileWidget::moveEvent(arg__1);
5619 }
6742 }
5620 bool PythonQtShell_elfFileWidget::nativeEvent(const QByteArray& eventType, void* message, long* result)
6743 bool PythonQtShell_elfFileWidget::nativeEvent(const QByteArray& eventType, void* message, long* result)
5621 {
6744 {
5622 if (_wrapper) {
6745 if (_wrapper) {
5623 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
6746 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
5624 PyErr_Clear();
6747 PyErr_Clear();
5625 if (obj && !PythonQtSlotFunction_Check(obj)) {
6748 if (obj && !PythonQtSlotFunction_Check(obj)) {
5626 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
6749 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
5627 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
6750 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
5628 bool returnValue;
6751 bool returnValue;
5629 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
6752 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
5630 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6753 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5631 if (result) {
6754 if (result) {
5632 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6755 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5633 if (args[0]!=&returnValue) {
6756 if (args[0]!=&returnValue) {
5634 if (args[0]==NULL) {
6757 if (args[0]==NULL) {
5635 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
6758 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
5636 } else {
6759 } else {
5637 returnValue = *((bool*)args[0]);
6760 returnValue = *((bool*)args[0]);
5638 }
6761 }
5639 }
6762 }
5640 }
6763 }
5641 if (result) { Py_DECREF(result); }
6764 if (result) { Py_DECREF(result); }
5642 Py_DECREF(obj);
6765 Py_DECREF(obj);
5643 return returnValue;
6766 return returnValue;
5644 }
6767 }
5645 }
6768 }
5646 return elfFileWidget::nativeEvent(eventType, message, result);
6769 return elfFileWidget::nativeEvent(eventType, message, result);
5647 }
6770 }
5648 QPaintEngine* PythonQtShell_elfFileWidget::paintEngine() const
6771 QPaintEngine* PythonQtShell_elfFileWidget::paintEngine() const
5649 {
6772 {
5650 if (_wrapper) {
6773 if (_wrapper) {
5651 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
6774 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
5652 PyErr_Clear();
6775 PyErr_Clear();
5653 if (obj && !PythonQtSlotFunction_Check(obj)) {
6776 if (obj && !PythonQtSlotFunction_Check(obj)) {
5654 static const char* argumentList[] ={"QPaintEngine*"};
6777 static const char* argumentList[] ={"QPaintEngine*"};
5655 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6778 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5656 QPaintEngine* returnValue;
6779 QPaintEngine* returnValue;
5657 void* args[1] = {NULL};
6780 void* args[1] = {NULL};
5658 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6781 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5659 if (result) {
6782 if (result) {
5660 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6783 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5661 if (args[0]!=&returnValue) {
6784 if (args[0]!=&returnValue) {
5662 if (args[0]==NULL) {
6785 if (args[0]==NULL) {
5663 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
6786 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
5664 } else {
6787 } else {
5665 returnValue = *((QPaintEngine**)args[0]);
6788 returnValue = *((QPaintEngine**)args[0]);
5666 }
6789 }
5667 }
6790 }
5668 }
6791 }
5669 if (result) { Py_DECREF(result); }
6792 if (result) { Py_DECREF(result); }
5670 Py_DECREF(obj);
6793 Py_DECREF(obj);
5671 return returnValue;
6794 return returnValue;
5672 }
6795 }
5673 }
6796 }
5674 return elfFileWidget::paintEngine();
6797 return elfFileWidget::paintEngine();
5675 }
6798 }
5676 void PythonQtShell_elfFileWidget::paintEvent(QPaintEvent* arg__1)
6799 void PythonQtShell_elfFileWidget::paintEvent(QPaintEvent* arg__1)
5677 {
6800 {
5678 if (_wrapper) {
6801 if (_wrapper) {
5679 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
6802 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
5680 PyErr_Clear();
6803 PyErr_Clear();
5681 if (obj && !PythonQtSlotFunction_Check(obj)) {
6804 if (obj && !PythonQtSlotFunction_Check(obj)) {
5682 static const char* argumentList[] ={"" , "QPaintEvent*"};
6805 static const char* argumentList[] ={"" , "QPaintEvent*"};
5683 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6806 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5684 void* args[2] = {NULL, (void*)&arg__1};
6807 void* args[2] = {NULL, (void*)&arg__1};
5685 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6808 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5686 if (result) { Py_DECREF(result); }
6809 if (result) { Py_DECREF(result); }
5687 Py_DECREF(obj);
6810 Py_DECREF(obj);
5688 return;
6811 return;
5689 }
6812 }
5690 }
6813 }
5691 elfFileWidget::paintEvent(arg__1);
6814 elfFileWidget::paintEvent(arg__1);
5692 }
6815 }
5693 QPaintDevice* PythonQtShell_elfFileWidget::redirected(QPoint* offset) const
6816 QPaintDevice* PythonQtShell_elfFileWidget::redirected(QPoint* offset) const
5694 {
6817 {
5695 if (_wrapper) {
6818 if (_wrapper) {
5696 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
6819 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
5697 PyErr_Clear();
6820 PyErr_Clear();
5698 if (obj && !PythonQtSlotFunction_Check(obj)) {
6821 if (obj && !PythonQtSlotFunction_Check(obj)) {
5699 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
6822 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
5700 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6823 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5701 QPaintDevice* returnValue;
6824 QPaintDevice* returnValue;
5702 void* args[2] = {NULL, (void*)&offset};
6825 void* args[2] = {NULL, (void*)&offset};
5703 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6826 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5704 if (result) {
6827 if (result) {
5705 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6828 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5706 if (args[0]!=&returnValue) {
6829 if (args[0]!=&returnValue) {
5707 if (args[0]==NULL) {
6830 if (args[0]==NULL) {
5708 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
6831 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
5709 } else {
6832 } else {
5710 returnValue = *((QPaintDevice**)args[0]);
6833 returnValue = *((QPaintDevice**)args[0]);
5711 }
6834 }
5712 }
6835 }
5713 }
6836 }
5714 if (result) { Py_DECREF(result); }
6837 if (result) { Py_DECREF(result); }
5715 Py_DECREF(obj);
6838 Py_DECREF(obj);
5716 return returnValue;
6839 return returnValue;
5717 }
6840 }
5718 }
6841 }
5719 return elfFileWidget::redirected(offset);
6842 return elfFileWidget::redirected(offset);
5720 }
6843 }
5721 void PythonQtShell_elfFileWidget::resizeEvent(QResizeEvent* arg__1)
6844 void PythonQtShell_elfFileWidget::resizeEvent(QResizeEvent* arg__1)
5722 {
6845 {
5723 if (_wrapper) {
6846 if (_wrapper) {
5724 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
6847 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
5725 PyErr_Clear();
6848 PyErr_Clear();
5726 if (obj && !PythonQtSlotFunction_Check(obj)) {
6849 if (obj && !PythonQtSlotFunction_Check(obj)) {
5727 static const char* argumentList[] ={"" , "QResizeEvent*"};
6850 static const char* argumentList[] ={"" , "QResizeEvent*"};
5728 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6851 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5729 void* args[2] = {NULL, (void*)&arg__1};
6852 void* args[2] = {NULL, (void*)&arg__1};
5730 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6853 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5731 if (result) { Py_DECREF(result); }
6854 if (result) { Py_DECREF(result); }
5732 Py_DECREF(obj);
6855 Py_DECREF(obj);
5733 return;
6856 return;
5734 }
6857 }
5735 }
6858 }
5736 elfFileWidget::resizeEvent(arg__1);
6859 elfFileWidget::resizeEvent(arg__1);
5737 }
6860 }
5738 QPainter* PythonQtShell_elfFileWidget::sharedPainter() const
6861 QPainter* PythonQtShell_elfFileWidget::sharedPainter() const
5739 {
6862 {
5740 if (_wrapper) {
6863 if (_wrapper) {
5741 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
6864 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
5742 PyErr_Clear();
6865 PyErr_Clear();
5743 if (obj && !PythonQtSlotFunction_Check(obj)) {
6866 if (obj && !PythonQtSlotFunction_Check(obj)) {
5744 static const char* argumentList[] ={"QPainter*"};
6867 static const char* argumentList[] ={"QPainter*"};
5745 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6868 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5746 QPainter* returnValue;
6869 QPainter* returnValue;
5747 void* args[1] = {NULL};
6870 void* args[1] = {NULL};
5748 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6871 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5749 if (result) {
6872 if (result) {
5750 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6873 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5751 if (args[0]!=&returnValue) {
6874 if (args[0]!=&returnValue) {
5752 if (args[0]==NULL) {
6875 if (args[0]==NULL) {
5753 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
6876 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
5754 } else {
6877 } else {
5755 returnValue = *((QPainter**)args[0]);
6878 returnValue = *((QPainter**)args[0]);
5756 }
6879 }
5757 }
6880 }
5758 }
6881 }
5759 if (result) { Py_DECREF(result); }
6882 if (result) { Py_DECREF(result); }
5760 Py_DECREF(obj);
6883 Py_DECREF(obj);
5761 return returnValue;
6884 return returnValue;
5762 }
6885 }
5763 }
6886 }
5764 return elfFileWidget::sharedPainter();
6887 return elfFileWidget::sharedPainter();
5765 }
6888 }
5766 void PythonQtShell_elfFileWidget::showEvent(QShowEvent* arg__1)
6889 void PythonQtShell_elfFileWidget::showEvent(QShowEvent* arg__1)
5767 {
6890 {
5768 if (_wrapper) {
6891 if (_wrapper) {
5769 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
6892 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
5770 PyErr_Clear();
6893 PyErr_Clear();
5771 if (obj && !PythonQtSlotFunction_Check(obj)) {
6894 if (obj && !PythonQtSlotFunction_Check(obj)) {
5772 static const char* argumentList[] ={"" , "QShowEvent*"};
6895 static const char* argumentList[] ={"" , "QShowEvent*"};
5773 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6896 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5774 void* args[2] = {NULL, (void*)&arg__1};
6897 void* args[2] = {NULL, (void*)&arg__1};
5775 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6898 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5776 if (result) { Py_DECREF(result); }
6899 if (result) { Py_DECREF(result); }
5777 Py_DECREF(obj);
6900 Py_DECREF(obj);
5778 return;
6901 return;
5779 }
6902 }
5780 }
6903 }
5781 elfFileWidget::showEvent(arg__1);
6904 elfFileWidget::showEvent(arg__1);
5782 }
6905 }
5783 QSize PythonQtShell_elfFileWidget::sizeHint() const
6906 QSize PythonQtShell_elfFileWidget::sizeHint() const
5784 {
6907 {
5785 if (_wrapper) {
6908 if (_wrapper) {
5786 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
6909 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
5787 PyErr_Clear();
6910 PyErr_Clear();
5788 if (obj && !PythonQtSlotFunction_Check(obj)) {
6911 if (obj && !PythonQtSlotFunction_Check(obj)) {
5789 static const char* argumentList[] ={"QSize"};
6912 static const char* argumentList[] ={"QSize"};
5790 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6913 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5791 QSize returnValue;
6914 QSize returnValue;
5792 void* args[1] = {NULL};
6915 void* args[1] = {NULL};
5793 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6916 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5794 if (result) {
6917 if (result) {
5795 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6918 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5796 if (args[0]!=&returnValue) {
6919 if (args[0]!=&returnValue) {
5797 if (args[0]==NULL) {
6920 if (args[0]==NULL) {
5798 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
6921 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
5799 } else {
6922 } else {
5800 returnValue = *((QSize*)args[0]);
6923 returnValue = *((QSize*)args[0]);
5801 }
6924 }
5802 }
6925 }
5803 }
6926 }
5804 if (result) { Py_DECREF(result); }
6927 if (result) { Py_DECREF(result); }
5805 Py_DECREF(obj);
6928 Py_DECREF(obj);
5806 return returnValue;
6929 return returnValue;
5807 }
6930 }
5808 }
6931 }
5809 return elfFileWidget::sizeHint();
6932 return elfFileWidget::sizeHint();
5810 }
6933 }
5811 void PythonQtShell_elfFileWidget::tabletEvent(QTabletEvent* arg__1)
6934 void PythonQtShell_elfFileWidget::tabletEvent(QTabletEvent* arg__1)
5812 {
6935 {
5813 if (_wrapper) {
6936 if (_wrapper) {
5814 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
6937 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
5815 PyErr_Clear();
6938 PyErr_Clear();
5816 if (obj && !PythonQtSlotFunction_Check(obj)) {
6939 if (obj && !PythonQtSlotFunction_Check(obj)) {
5817 static const char* argumentList[] ={"" , "QTabletEvent*"};
6940 static const char* argumentList[] ={"" , "QTabletEvent*"};
5818 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6941 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5819 void* args[2] = {NULL, (void*)&arg__1};
6942 void* args[2] = {NULL, (void*)&arg__1};
5820 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6943 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5821 if (result) { Py_DECREF(result); }
6944 if (result) { Py_DECREF(result); }
5822 Py_DECREF(obj);
6945 Py_DECREF(obj);
5823 return;
6946 return;
5824 }
6947 }
5825 }
6948 }
5826 elfFileWidget::tabletEvent(arg__1);
6949 elfFileWidget::tabletEvent(arg__1);
5827 }
6950 }
5828 void PythonQtShell_elfFileWidget::timerEvent(QTimerEvent* arg__1)
6951 void PythonQtShell_elfFileWidget::timerEvent(QTimerEvent* arg__1)
5829 {
6952 {
5830 if (_wrapper) {
6953 if (_wrapper) {
5831 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
6954 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
5832 PyErr_Clear();
6955 PyErr_Clear();
5833 if (obj && !PythonQtSlotFunction_Check(obj)) {
6956 if (obj && !PythonQtSlotFunction_Check(obj)) {
5834 static const char* argumentList[] ={"" , "QTimerEvent*"};
6957 static const char* argumentList[] ={"" , "QTimerEvent*"};
5835 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6958 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5836 void* args[2] = {NULL, (void*)&arg__1};
6959 void* args[2] = {NULL, (void*)&arg__1};
5837 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6960 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5838 if (result) { Py_DECREF(result); }
6961 if (result) { Py_DECREF(result); }
5839 Py_DECREF(obj);
6962 Py_DECREF(obj);
5840 return;
6963 return;
5841 }
6964 }
5842 }
6965 }
5843 elfFileWidget::timerEvent(arg__1);
6966 elfFileWidget::timerEvent(arg__1);
5844 }
6967 }
5845 void PythonQtShell_elfFileWidget::wheelEvent(QWheelEvent* arg__1)
6968 void PythonQtShell_elfFileWidget::wheelEvent(QWheelEvent* arg__1)
5846 {
6969 {
5847 if (_wrapper) {
6970 if (_wrapper) {
5848 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
6971 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
5849 PyErr_Clear();
6972 PyErr_Clear();
5850 if (obj && !PythonQtSlotFunction_Check(obj)) {
6973 if (obj && !PythonQtSlotFunction_Check(obj)) {
5851 static const char* argumentList[] ={"" , "QWheelEvent*"};
6974 static const char* argumentList[] ={"" , "QWheelEvent*"};
5852 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6975 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5853 void* args[2] = {NULL, (void*)&arg__1};
6976 void* args[2] = {NULL, (void*)&arg__1};
5854 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6977 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5855 if (result) { Py_DECREF(result); }
6978 if (result) { Py_DECREF(result); }
5856 Py_DECREF(obj);
6979 Py_DECREF(obj);
5857 return;
6980 return;
5858 }
6981 }
5859 }
6982 }
5860 elfFileWidget::wheelEvent(arg__1);
6983 elfFileWidget::wheelEvent(arg__1);
5861 }
6984 }
5862 elfFileWidget* PythonQtWrapper_elfFileWidget::new_elfFileWidget(QWidget* parent)
6985 elfFileWidget* PythonQtWrapper_elfFileWidget::new_elfFileWidget(QWidget* parent)
5863 {
6986 {
5864 return new PythonQtShell_elfFileWidget(parent); }
6987 return new PythonQtShell_elfFileWidget(parent); }
5865
6988
5866
6989
5867
6990
5868 PythonQtShell_elfInfoWdgt::~PythonQtShell_elfInfoWdgt() {
6991 PythonQtShell_elfInfoWdgt::~PythonQtShell_elfInfoWdgt() {
5869 PythonQtPrivate* priv = PythonQt::priv();
6992 PythonQtPrivate* priv = PythonQt::priv();
5870 if (priv) { priv->shellClassDeleted(this); }
6993 if (priv) { priv->shellClassDeleted(this); }
5871 }
6994 }
5872 void PythonQtShell_elfInfoWdgt::actionEvent(QActionEvent* arg__1)
6995 void PythonQtShell_elfInfoWdgt::actionEvent(QActionEvent* arg__1)
5873 {
6996 {
5874 if (_wrapper) {
6997 if (_wrapper) {
5875 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
6998 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
5876 PyErr_Clear();
6999 PyErr_Clear();
5877 if (obj && !PythonQtSlotFunction_Check(obj)) {
7000 if (obj && !PythonQtSlotFunction_Check(obj)) {
5878 static const char* argumentList[] ={"" , "QActionEvent*"};
7001 static const char* argumentList[] ={"" , "QActionEvent*"};
5879 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7002 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5880 void* args[2] = {NULL, (void*)&arg__1};
7003 void* args[2] = {NULL, (void*)&arg__1};
5881 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7004 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5882 if (result) { Py_DECREF(result); }
7005 if (result) { Py_DECREF(result); }
5883 Py_DECREF(obj);
7006 Py_DECREF(obj);
5884 return;
7007 return;
5885 }
7008 }
5886 }
7009 }
5887 elfInfoWdgt::actionEvent(arg__1);
7010 elfInfoWdgt::actionEvent(arg__1);
5888 }
7011 }
5889 void PythonQtShell_elfInfoWdgt::changeEvent(QEvent* arg__1)
7012 void PythonQtShell_elfInfoWdgt::changeEvent(QEvent* arg__1)
5890 {
7013 {
5891 if (_wrapper) {
7014 if (_wrapper) {
5892 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
7015 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
5893 PyErr_Clear();
7016 PyErr_Clear();
5894 if (obj && !PythonQtSlotFunction_Check(obj)) {
7017 if (obj && !PythonQtSlotFunction_Check(obj)) {
5895 static const char* argumentList[] ={"" , "QEvent*"};
7018 static const char* argumentList[] ={"" , "QEvent*"};
5896 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7019 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5897 void* args[2] = {NULL, (void*)&arg__1};
7020 void* args[2] = {NULL, (void*)&arg__1};
5898 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7021 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5899 if (result) { Py_DECREF(result); }
7022 if (result) { Py_DECREF(result); }
5900 Py_DECREF(obj);
7023 Py_DECREF(obj);
5901 return;
7024 return;
5902 }
7025 }
5903 }
7026 }
5904 elfInfoWdgt::changeEvent(arg__1);
7027 elfInfoWdgt::changeEvent(arg__1);
5905 }
7028 }
5906 void PythonQtShell_elfInfoWdgt::childEvent(QChildEvent* arg__1)
7029 void PythonQtShell_elfInfoWdgt::childEvent(QChildEvent* arg__1)
5907 {
7030 {
5908 if (_wrapper) {
7031 if (_wrapper) {
5909 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
7032 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
5910 PyErr_Clear();
7033 PyErr_Clear();
5911 if (obj && !PythonQtSlotFunction_Check(obj)) {
7034 if (obj && !PythonQtSlotFunction_Check(obj)) {
5912 static const char* argumentList[] ={"" , "QChildEvent*"};
7035 static const char* argumentList[] ={"" , "QChildEvent*"};
5913 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7036 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5914 void* args[2] = {NULL, (void*)&arg__1};
7037 void* args[2] = {NULL, (void*)&arg__1};
5915 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7038 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5916 if (result) { Py_DECREF(result); }
7039 if (result) { Py_DECREF(result); }
5917 Py_DECREF(obj);
7040 Py_DECREF(obj);
5918 return;
7041 return;
5919 }
7042 }
5920 }
7043 }
5921 elfInfoWdgt::childEvent(arg__1);
7044 elfInfoWdgt::childEvent(arg__1);
5922 }
7045 }
5923 void PythonQtShell_elfInfoWdgt::closeEvent(QCloseEvent* arg__1)
7046 void PythonQtShell_elfInfoWdgt::closeEvent(QCloseEvent* arg__1)
5924 {
7047 {
5925 if (_wrapper) {
7048 if (_wrapper) {
5926 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
7049 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
5927 PyErr_Clear();
7050 PyErr_Clear();
5928 if (obj && !PythonQtSlotFunction_Check(obj)) {
7051 if (obj && !PythonQtSlotFunction_Check(obj)) {
5929 static const char* argumentList[] ={"" , "QCloseEvent*"};
7052 static const char* argumentList[] ={"" , "QCloseEvent*"};
5930 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7053 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5931 void* args[2] = {NULL, (void*)&arg__1};
7054 void* args[2] = {NULL, (void*)&arg__1};
5932 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7055 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5933 if (result) { Py_DECREF(result); }
7056 if (result) { Py_DECREF(result); }
5934 Py_DECREF(obj);
7057 Py_DECREF(obj);
5935 return;
7058 return;
5936 }
7059 }
5937 }
7060 }
5938 elfInfoWdgt::closeEvent(arg__1);
7061 elfInfoWdgt::closeEvent(arg__1);
5939 }
7062 }
5940 void PythonQtShell_elfInfoWdgt::contextMenuEvent(QContextMenuEvent* arg__1)
7063 void PythonQtShell_elfInfoWdgt::contextMenuEvent(QContextMenuEvent* arg__1)
5941 {
7064 {
5942 if (_wrapper) {
7065 if (_wrapper) {
5943 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
7066 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
5944 PyErr_Clear();
7067 PyErr_Clear();
5945 if (obj && !PythonQtSlotFunction_Check(obj)) {
7068 if (obj && !PythonQtSlotFunction_Check(obj)) {
5946 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
7069 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
5947 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7070 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5948 void* args[2] = {NULL, (void*)&arg__1};
7071 void* args[2] = {NULL, (void*)&arg__1};
5949 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7072 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5950 if (result) { Py_DECREF(result); }
7073 if (result) { Py_DECREF(result); }
5951 Py_DECREF(obj);
7074 Py_DECREF(obj);
5952 return;
7075 return;
5953 }
7076 }
5954 }
7077 }
5955 elfInfoWdgt::contextMenuEvent(arg__1);
7078 elfInfoWdgt::contextMenuEvent(arg__1);
5956 }
7079 }
5957 void PythonQtShell_elfInfoWdgt::customEvent(QEvent* arg__1)
7080 void PythonQtShell_elfInfoWdgt::customEvent(QEvent* arg__1)
5958 {
7081 {
5959 if (_wrapper) {
7082 if (_wrapper) {
5960 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
7083 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
5961 PyErr_Clear();
7084 PyErr_Clear();
5962 if (obj && !PythonQtSlotFunction_Check(obj)) {
7085 if (obj && !PythonQtSlotFunction_Check(obj)) {
5963 static const char* argumentList[] ={"" , "QEvent*"};
7086 static const char* argumentList[] ={"" , "QEvent*"};
5964 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7087 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
5965 void* args[2] = {NULL, (void*)&arg__1};
7088 void* args[2] = {NULL, (void*)&arg__1};
5966 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7089 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5967 if (result) { Py_DECREF(result); }
7090 if (result) { Py_DECREF(result); }
5968 Py_DECREF(obj);
7091 Py_DECREF(obj);
5969 return;
7092 return;
5970 }
7093 }
5971 }
7094 }
5972 elfInfoWdgt::customEvent(arg__1);
7095 elfInfoWdgt::customEvent(arg__1);
5973 }
7096 }
5974 int PythonQtShell_elfInfoWdgt::devType() const
7097 int PythonQtShell_elfInfoWdgt::devType() const
5975 {
7098 {
5976 if (_wrapper) {
7099 if (_wrapper) {
5977 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
7100 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
5978 PyErr_Clear();
7101 PyErr_Clear();
5979 if (obj && !PythonQtSlotFunction_Check(obj)) {
7102 if (obj && !PythonQtSlotFunction_Check(obj)) {
5980 static const char* argumentList[] ={"int"};
7103 static const char* argumentList[] ={"int"};
5981 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7104 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
5982 int returnValue;
7105 int returnValue;
5983 void* args[1] = {NULL};
7106 void* args[1] = {NULL};
5984 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7107 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
5985 if (result) {
7108 if (result) {
5986 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7109 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
5987 if (args[0]!=&returnValue) {
7110 if (args[0]!=&returnValue) {
5988 if (args[0]==NULL) {
7111 if (args[0]==NULL) {
5989 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
7112 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
5990 } else {
7113 } else {
5991 returnValue = *((int*)args[0]);
7114 returnValue = *((int*)args[0]);
5992 }
7115 }
5993 }
7116 }
5994 }
7117 }
5995 if (result) { Py_DECREF(result); }
7118 if (result) { Py_DECREF(result); }
5996 Py_DECREF(obj);
7119 Py_DECREF(obj);
5997 return returnValue;
7120 return returnValue;
5998 }
7121 }
5999 }
7122 }
6000 return elfInfoWdgt::devType();
7123 return elfInfoWdgt::devType();
6001 }
7124 }
6002 void PythonQtShell_elfInfoWdgt::dragEnterEvent(QDragEnterEvent* arg__1)
7125 void PythonQtShell_elfInfoWdgt::dragEnterEvent(QDragEnterEvent* arg__1)
6003 {
7126 {
6004 if (_wrapper) {
7127 if (_wrapper) {
6005 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
7128 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
6006 PyErr_Clear();
7129 PyErr_Clear();
6007 if (obj && !PythonQtSlotFunction_Check(obj)) {
7130 if (obj && !PythonQtSlotFunction_Check(obj)) {
6008 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
7131 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
6009 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7132 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6010 void* args[2] = {NULL, (void*)&arg__1};
7133 void* args[2] = {NULL, (void*)&arg__1};
6011 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7134 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6012 if (result) { Py_DECREF(result); }
7135 if (result) { Py_DECREF(result); }
6013 Py_DECREF(obj);
7136 Py_DECREF(obj);
6014 return;
7137 return;
6015 }
7138 }
6016 }
7139 }
6017 elfInfoWdgt::dragEnterEvent(arg__1);
7140 elfInfoWdgt::dragEnterEvent(arg__1);
6018 }
7141 }
6019 void PythonQtShell_elfInfoWdgt::dragLeaveEvent(QDragLeaveEvent* arg__1)
7142 void PythonQtShell_elfInfoWdgt::dragLeaveEvent(QDragLeaveEvent* arg__1)
6020 {
7143 {
6021 if (_wrapper) {
7144 if (_wrapper) {
6022 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
7145 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
6023 PyErr_Clear();
7146 PyErr_Clear();
6024 if (obj && !PythonQtSlotFunction_Check(obj)) {
7147 if (obj && !PythonQtSlotFunction_Check(obj)) {
6025 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
7148 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
6026 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7149 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6027 void* args[2] = {NULL, (void*)&arg__1};
7150 void* args[2] = {NULL, (void*)&arg__1};
6028 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7151 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6029 if (result) { Py_DECREF(result); }
7152 if (result) { Py_DECREF(result); }
6030 Py_DECREF(obj);
7153 Py_DECREF(obj);
6031 return;
7154 return;
6032 }
7155 }
6033 }
7156 }
6034 elfInfoWdgt::dragLeaveEvent(arg__1);
7157 elfInfoWdgt::dragLeaveEvent(arg__1);
6035 }
7158 }
6036 void PythonQtShell_elfInfoWdgt::dragMoveEvent(QDragMoveEvent* arg__1)
7159 void PythonQtShell_elfInfoWdgt::dragMoveEvent(QDragMoveEvent* arg__1)
6037 {
7160 {
6038 if (_wrapper) {
7161 if (_wrapper) {
6039 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
7162 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
6040 PyErr_Clear();
7163 PyErr_Clear();
6041 if (obj && !PythonQtSlotFunction_Check(obj)) {
7164 if (obj && !PythonQtSlotFunction_Check(obj)) {
6042 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
7165 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
6043 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7166 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6044 void* args[2] = {NULL, (void*)&arg__1};
7167 void* args[2] = {NULL, (void*)&arg__1};
6045 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7168 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6046 if (result) { Py_DECREF(result); }
7169 if (result) { Py_DECREF(result); }
6047 Py_DECREF(obj);
7170 Py_DECREF(obj);
6048 return;
7171 return;
6049 }
7172 }
6050 }
7173 }
6051 elfInfoWdgt::dragMoveEvent(arg__1);
7174 elfInfoWdgt::dragMoveEvent(arg__1);
6052 }
7175 }
6053 void PythonQtShell_elfInfoWdgt::dropEvent(QDropEvent* arg__1)
7176 void PythonQtShell_elfInfoWdgt::dropEvent(QDropEvent* arg__1)
6054 {
7177 {
6055 if (_wrapper) {
7178 if (_wrapper) {
6056 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
7179 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
6057 PyErr_Clear();
7180 PyErr_Clear();
6058 if (obj && !PythonQtSlotFunction_Check(obj)) {
7181 if (obj && !PythonQtSlotFunction_Check(obj)) {
6059 static const char* argumentList[] ={"" , "QDropEvent*"};
7182 static const char* argumentList[] ={"" , "QDropEvent*"};
6060 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7183 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6061 void* args[2] = {NULL, (void*)&arg__1};
7184 void* args[2] = {NULL, (void*)&arg__1};
6062 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7185 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6063 if (result) { Py_DECREF(result); }
7186 if (result) { Py_DECREF(result); }
6064 Py_DECREF(obj);
7187 Py_DECREF(obj);
6065 return;
7188 return;
6066 }
7189 }
6067 }
7190 }
6068 elfInfoWdgt::dropEvent(arg__1);
7191 elfInfoWdgt::dropEvent(arg__1);
6069 }
7192 }
6070 void PythonQtShell_elfInfoWdgt::enterEvent(QEvent* arg__1)
7193 void PythonQtShell_elfInfoWdgt::enterEvent(QEvent* arg__1)
6071 {
7194 {
6072 if (_wrapper) {
7195 if (_wrapper) {
6073 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
7196 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
6074 PyErr_Clear();
7197 PyErr_Clear();
6075 if (obj && !PythonQtSlotFunction_Check(obj)) {
7198 if (obj && !PythonQtSlotFunction_Check(obj)) {
6076 static const char* argumentList[] ={"" , "QEvent*"};
7199 static const char* argumentList[] ={"" , "QEvent*"};
6077 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7200 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6078 void* args[2] = {NULL, (void*)&arg__1};
7201 void* args[2] = {NULL, (void*)&arg__1};
6079 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7202 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6080 if (result) { Py_DECREF(result); }
7203 if (result) { Py_DECREF(result); }
6081 Py_DECREF(obj);
7204 Py_DECREF(obj);
6082 return;
7205 return;
6083 }
7206 }
6084 }
7207 }
6085 elfInfoWdgt::enterEvent(arg__1);
7208 elfInfoWdgt::enterEvent(arg__1);
6086 }
7209 }
6087 bool PythonQtShell_elfInfoWdgt::event(QEvent* arg__1)
7210 bool PythonQtShell_elfInfoWdgt::event(QEvent* arg__1)
6088 {
7211 {
6089 if (_wrapper) {
7212 if (_wrapper) {
6090 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
7213 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
6091 PyErr_Clear();
7214 PyErr_Clear();
6092 if (obj && !PythonQtSlotFunction_Check(obj)) {
7215 if (obj && !PythonQtSlotFunction_Check(obj)) {
6093 static const char* argumentList[] ={"bool" , "QEvent*"};
7216 static const char* argumentList[] ={"bool" , "QEvent*"};
6094 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7217 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6095 bool returnValue;
7218 bool returnValue;
6096 void* args[2] = {NULL, (void*)&arg__1};
7219 void* args[2] = {NULL, (void*)&arg__1};
6097 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7220 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6098 if (result) {
7221 if (result) {
6099 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7222 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6100 if (args[0]!=&returnValue) {
7223 if (args[0]!=&returnValue) {
6101 if (args[0]==NULL) {
7224 if (args[0]==NULL) {
6102 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
7225 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
6103 } else {
7226 } else {
6104 returnValue = *((bool*)args[0]);
7227 returnValue = *((bool*)args[0]);
6105 }
7228 }
6106 }
7229 }
6107 }
7230 }
6108 if (result) { Py_DECREF(result); }
7231 if (result) { Py_DECREF(result); }
6109 Py_DECREF(obj);
7232 Py_DECREF(obj);
6110 return returnValue;
7233 return returnValue;
6111 }
7234 }
6112 }
7235 }
6113 return elfInfoWdgt::event(arg__1);
7236 return elfInfoWdgt::event(arg__1);
6114 }
7237 }
6115 bool PythonQtShell_elfInfoWdgt::eventFilter(QObject* arg__1, QEvent* arg__2)
7238 bool PythonQtShell_elfInfoWdgt::eventFilter(QObject* arg__1, QEvent* arg__2)
6116 {
7239 {
6117 if (_wrapper) {
7240 if (_wrapper) {
6118 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
7241 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
6119 PyErr_Clear();
7242 PyErr_Clear();
6120 if (obj && !PythonQtSlotFunction_Check(obj)) {
7243 if (obj && !PythonQtSlotFunction_Check(obj)) {
6121 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
7244 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
6122 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
7245 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
6123 bool returnValue;
7246 bool returnValue;
6124 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
7247 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
6125 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7248 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6126 if (result) {
7249 if (result) {
6127 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7250 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6128 if (args[0]!=&returnValue) {
7251 if (args[0]!=&returnValue) {
6129 if (args[0]==NULL) {
7252 if (args[0]==NULL) {
6130 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
7253 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
6131 } else {
7254 } else {
6132 returnValue = *((bool*)args[0]);
7255 returnValue = *((bool*)args[0]);
6133 }
7256 }
6134 }
7257 }
6135 }
7258 }
6136 if (result) { Py_DECREF(result); }
7259 if (result) { Py_DECREF(result); }
6137 Py_DECREF(obj);
7260 Py_DECREF(obj);
6138 return returnValue;
7261 return returnValue;
6139 }
7262 }
6140 }
7263 }
6141 return elfInfoWdgt::eventFilter(arg__1, arg__2);
7264 return elfInfoWdgt::eventFilter(arg__1, arg__2);
6142 }
7265 }
6143 void PythonQtShell_elfInfoWdgt::focusInEvent(QFocusEvent* arg__1)
7266 void PythonQtShell_elfInfoWdgt::focusInEvent(QFocusEvent* arg__1)
6144 {
7267 {
6145 if (_wrapper) {
7268 if (_wrapper) {
6146 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
7269 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
6147 PyErr_Clear();
7270 PyErr_Clear();
6148 if (obj && !PythonQtSlotFunction_Check(obj)) {
7271 if (obj && !PythonQtSlotFunction_Check(obj)) {
6149 static const char* argumentList[] ={"" , "QFocusEvent*"};
7272 static const char* argumentList[] ={"" , "QFocusEvent*"};
6150 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7273 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6151 void* args[2] = {NULL, (void*)&arg__1};
7274 void* args[2] = {NULL, (void*)&arg__1};
6152 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7275 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6153 if (result) { Py_DECREF(result); }
7276 if (result) { Py_DECREF(result); }
6154 Py_DECREF(obj);
7277 Py_DECREF(obj);
6155 return;
7278 return;
6156 }
7279 }
6157 }
7280 }
6158 elfInfoWdgt::focusInEvent(arg__1);
7281 elfInfoWdgt::focusInEvent(arg__1);
6159 }
7282 }
6160 bool PythonQtShell_elfInfoWdgt::focusNextPrevChild(bool next)
7283 bool PythonQtShell_elfInfoWdgt::focusNextPrevChild(bool next)
6161 {
7284 {
6162 if (_wrapper) {
7285 if (_wrapper) {
6163 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
7286 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
6164 PyErr_Clear();
7287 PyErr_Clear();
6165 if (obj && !PythonQtSlotFunction_Check(obj)) {
7288 if (obj && !PythonQtSlotFunction_Check(obj)) {
6166 static const char* argumentList[] ={"bool" , "bool"};
7289 static const char* argumentList[] ={"bool" , "bool"};
6167 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7290 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6168 bool returnValue;
7291 bool returnValue;
6169 void* args[2] = {NULL, (void*)&next};
7292 void* args[2] = {NULL, (void*)&next};
6170 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7293 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6171 if (result) {
7294 if (result) {
6172 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7295 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6173 if (args[0]!=&returnValue) {
7296 if (args[0]!=&returnValue) {
6174 if (args[0]==NULL) {
7297 if (args[0]==NULL) {
6175 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
7298 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
6176 } else {
7299 } else {
6177 returnValue = *((bool*)args[0]);
7300 returnValue = *((bool*)args[0]);
6178 }
7301 }
6179 }
7302 }
6180 }
7303 }
6181 if (result) { Py_DECREF(result); }
7304 if (result) { Py_DECREF(result); }
6182 Py_DECREF(obj);
7305 Py_DECREF(obj);
6183 return returnValue;
7306 return returnValue;
6184 }
7307 }
6185 }
7308 }
6186 return elfInfoWdgt::focusNextPrevChild(next);
7309 return elfInfoWdgt::focusNextPrevChild(next);
6187 }
7310 }
6188 void PythonQtShell_elfInfoWdgt::focusOutEvent(QFocusEvent* arg__1)
7311 void PythonQtShell_elfInfoWdgt::focusOutEvent(QFocusEvent* arg__1)
6189 {
7312 {
6190 if (_wrapper) {
7313 if (_wrapper) {
6191 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
7314 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
6192 PyErr_Clear();
7315 PyErr_Clear();
6193 if (obj && !PythonQtSlotFunction_Check(obj)) {
7316 if (obj && !PythonQtSlotFunction_Check(obj)) {
6194 static const char* argumentList[] ={"" , "QFocusEvent*"};
7317 static const char* argumentList[] ={"" , "QFocusEvent*"};
6195 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7318 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6196 void* args[2] = {NULL, (void*)&arg__1};
7319 void* args[2] = {NULL, (void*)&arg__1};
6197 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7320 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6198 if (result) { Py_DECREF(result); }
7321 if (result) { Py_DECREF(result); }
6199 Py_DECREF(obj);
7322 Py_DECREF(obj);
6200 return;
7323 return;
6201 }
7324 }
6202 }
7325 }
6203 elfInfoWdgt::focusOutEvent(arg__1);
7326 elfInfoWdgt::focusOutEvent(arg__1);
6204 }
7327 }
6205 bool PythonQtShell_elfInfoWdgt::hasHeightForWidth() const
7328 bool PythonQtShell_elfInfoWdgt::hasHeightForWidth() const
6206 {
7329 {
6207 if (_wrapper) {
7330 if (_wrapper) {
6208 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
7331 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
6209 PyErr_Clear();
7332 PyErr_Clear();
6210 if (obj && !PythonQtSlotFunction_Check(obj)) {
7333 if (obj && !PythonQtSlotFunction_Check(obj)) {
6211 static const char* argumentList[] ={"bool"};
7334 static const char* argumentList[] ={"bool"};
6212 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7335 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6213 bool returnValue;
7336 bool returnValue;
6214 void* args[1] = {NULL};
7337 void* args[1] = {NULL};
6215 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7338 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6216 if (result) {
7339 if (result) {
6217 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7340 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6218 if (args[0]!=&returnValue) {
7341 if (args[0]!=&returnValue) {
6219 if (args[0]==NULL) {
7342 if (args[0]==NULL) {
6220 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
7343 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
6221 } else {
7344 } else {
6222 returnValue = *((bool*)args[0]);
7345 returnValue = *((bool*)args[0]);
6223 }
7346 }
6224 }
7347 }
6225 }
7348 }
6226 if (result) { Py_DECREF(result); }
7349 if (result) { Py_DECREF(result); }
6227 Py_DECREF(obj);
7350 Py_DECREF(obj);
6228 return returnValue;
7351 return returnValue;
6229 }
7352 }
6230 }
7353 }
6231 return elfInfoWdgt::hasHeightForWidth();
7354 return elfInfoWdgt::hasHeightForWidth();
6232 }
7355 }
6233 int PythonQtShell_elfInfoWdgt::heightForWidth(int arg__1) const
7356 int PythonQtShell_elfInfoWdgt::heightForWidth(int arg__1) const
6234 {
7357 {
6235 if (_wrapper) {
7358 if (_wrapper) {
6236 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
7359 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
6237 PyErr_Clear();
7360 PyErr_Clear();
6238 if (obj && !PythonQtSlotFunction_Check(obj)) {
7361 if (obj && !PythonQtSlotFunction_Check(obj)) {
6239 static const char* argumentList[] ={"int" , "int"};
7362 static const char* argumentList[] ={"int" , "int"};
6240 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7363 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6241 int returnValue;
7364 int returnValue;
6242 void* args[2] = {NULL, (void*)&arg__1};
7365 void* args[2] = {NULL, (void*)&arg__1};
6243 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7366 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6244 if (result) {
7367 if (result) {
6245 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7368 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6246 if (args[0]!=&returnValue) {
7369 if (args[0]!=&returnValue) {
6247 if (args[0]==NULL) {
7370 if (args[0]==NULL) {
6248 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
7371 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
6249 } else {
7372 } else {
6250 returnValue = *((int*)args[0]);
7373 returnValue = *((int*)args[0]);
6251 }
7374 }
6252 }
7375 }
6253 }
7376 }
6254 if (result) { Py_DECREF(result); }
7377 if (result) { Py_DECREF(result); }
6255 Py_DECREF(obj);
7378 Py_DECREF(obj);
6256 return returnValue;
7379 return returnValue;
6257 }
7380 }
6258 }
7381 }
6259 return elfInfoWdgt::heightForWidth(arg__1);
7382 return elfInfoWdgt::heightForWidth(arg__1);
6260 }
7383 }
6261 void PythonQtShell_elfInfoWdgt::hideEvent(QHideEvent* arg__1)
7384 void PythonQtShell_elfInfoWdgt::hideEvent(QHideEvent* arg__1)
6262 {
7385 {
6263 if (_wrapper) {
7386 if (_wrapper) {
6264 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
7387 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
6265 PyErr_Clear();
7388 PyErr_Clear();
6266 if (obj && !PythonQtSlotFunction_Check(obj)) {
7389 if (obj && !PythonQtSlotFunction_Check(obj)) {
6267 static const char* argumentList[] ={"" , "QHideEvent*"};
7390 static const char* argumentList[] ={"" , "QHideEvent*"};
6268 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7391 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6269 void* args[2] = {NULL, (void*)&arg__1};
7392 void* args[2] = {NULL, (void*)&arg__1};
6270 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7393 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6271 if (result) { Py_DECREF(result); }
7394 if (result) { Py_DECREF(result); }
6272 Py_DECREF(obj);
7395 Py_DECREF(obj);
6273 return;
7396 return;
6274 }
7397 }
6275 }
7398 }
6276 elfInfoWdgt::hideEvent(arg__1);
7399 elfInfoWdgt::hideEvent(arg__1);
6277 }
7400 }
6278 void PythonQtShell_elfInfoWdgt::initPainter(QPainter* painter) const
7401 void PythonQtShell_elfInfoWdgt::initPainter(QPainter* painter) const
6279 {
7402 {
6280 if (_wrapper) {
7403 if (_wrapper) {
6281 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
7404 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
6282 PyErr_Clear();
7405 PyErr_Clear();
6283 if (obj && !PythonQtSlotFunction_Check(obj)) {
7406 if (obj && !PythonQtSlotFunction_Check(obj)) {
6284 static const char* argumentList[] ={"" , "QPainter*"};
7407 static const char* argumentList[] ={"" , "QPainter*"};
6285 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7408 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6286 void* args[2] = {NULL, (void*)&painter};
7409 void* args[2] = {NULL, (void*)&painter};
6287 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7410 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6288 if (result) { Py_DECREF(result); }
7411 if (result) { Py_DECREF(result); }
6289 Py_DECREF(obj);
7412 Py_DECREF(obj);
6290 return;
7413 return;
6291 }
7414 }
6292 }
7415 }
6293 elfInfoWdgt::initPainter(painter);
7416 elfInfoWdgt::initPainter(painter);
6294 }
7417 }
6295 void PythonQtShell_elfInfoWdgt::inputMethodEvent(QInputMethodEvent* arg__1)
7418 void PythonQtShell_elfInfoWdgt::inputMethodEvent(QInputMethodEvent* arg__1)
6296 {
7419 {
6297 if (_wrapper) {
7420 if (_wrapper) {
6298 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
7421 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
6299 PyErr_Clear();
7422 PyErr_Clear();
6300 if (obj && !PythonQtSlotFunction_Check(obj)) {
7423 if (obj && !PythonQtSlotFunction_Check(obj)) {
6301 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
7424 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
6302 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7425 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6303 void* args[2] = {NULL, (void*)&arg__1};
7426 void* args[2] = {NULL, (void*)&arg__1};
6304 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7427 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6305 if (result) { Py_DECREF(result); }
7428 if (result) { Py_DECREF(result); }
6306 Py_DECREF(obj);
7429 Py_DECREF(obj);
6307 return;
7430 return;
6308 }
7431 }
6309 }
7432 }
6310 elfInfoWdgt::inputMethodEvent(arg__1);
7433 elfInfoWdgt::inputMethodEvent(arg__1);
6311 }
7434 }
6312 QVariant PythonQtShell_elfInfoWdgt::inputMethodQuery(Qt::InputMethodQuery arg__1) const
7435 QVariant PythonQtShell_elfInfoWdgt::inputMethodQuery(Qt::InputMethodQuery arg__1) const
6313 {
7436 {
6314 if (_wrapper) {
7437 if (_wrapper) {
6315 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
7438 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
6316 PyErr_Clear();
7439 PyErr_Clear();
6317 if (obj && !PythonQtSlotFunction_Check(obj)) {
7440 if (obj && !PythonQtSlotFunction_Check(obj)) {
6318 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
7441 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
6319 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7442 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6320 QVariant returnValue;
7443 QVariant returnValue;
6321 void* args[2] = {NULL, (void*)&arg__1};
7444 void* args[2] = {NULL, (void*)&arg__1};
6322 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7445 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6323 if (result) {
7446 if (result) {
6324 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7447 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6325 if (args[0]!=&returnValue) {
7448 if (args[0]!=&returnValue) {
6326 if (args[0]==NULL) {
7449 if (args[0]==NULL) {
6327 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
7450 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
6328 } else {
7451 } else {
6329 returnValue = *((QVariant*)args[0]);
7452 returnValue = *((QVariant*)args[0]);
6330 }
7453 }
6331 }
7454 }
6332 }
7455 }
6333 if (result) { Py_DECREF(result); }
7456 if (result) { Py_DECREF(result); }
6334 Py_DECREF(obj);
7457 Py_DECREF(obj);
6335 return returnValue;
7458 return returnValue;
6336 }
7459 }
6337 }
7460 }
6338 return elfInfoWdgt::inputMethodQuery(arg__1);
7461 return elfInfoWdgt::inputMethodQuery(arg__1);
6339 }
7462 }
6340 void PythonQtShell_elfInfoWdgt::keyPressEvent(QKeyEvent* arg__1)
7463 void PythonQtShell_elfInfoWdgt::keyPressEvent(QKeyEvent* arg__1)
6341 {
7464 {
6342 if (_wrapper) {
7465 if (_wrapper) {
6343 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
7466 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
6344 PyErr_Clear();
7467 PyErr_Clear();
6345 if (obj && !PythonQtSlotFunction_Check(obj)) {
7468 if (obj && !PythonQtSlotFunction_Check(obj)) {
6346 static const char* argumentList[] ={"" , "QKeyEvent*"};
7469 static const char* argumentList[] ={"" , "QKeyEvent*"};
6347 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7470 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6348 void* args[2] = {NULL, (void*)&arg__1};
7471 void* args[2] = {NULL, (void*)&arg__1};
6349 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7472 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6350 if (result) { Py_DECREF(result); }
7473 if (result) { Py_DECREF(result); }
6351 Py_DECREF(obj);
7474 Py_DECREF(obj);
6352 return;
7475 return;
6353 }
7476 }
6354 }
7477 }
6355 elfInfoWdgt::keyPressEvent(arg__1);
7478 elfInfoWdgt::keyPressEvent(arg__1);
6356 }
7479 }
6357 void PythonQtShell_elfInfoWdgt::keyReleaseEvent(QKeyEvent* arg__1)
7480 void PythonQtShell_elfInfoWdgt::keyReleaseEvent(QKeyEvent* arg__1)
6358 {
7481 {
6359 if (_wrapper) {
7482 if (_wrapper) {
6360 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
7483 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
6361 PyErr_Clear();
7484 PyErr_Clear();
6362 if (obj && !PythonQtSlotFunction_Check(obj)) {
7485 if (obj && !PythonQtSlotFunction_Check(obj)) {
6363 static const char* argumentList[] ={"" , "QKeyEvent*"};
7486 static const char* argumentList[] ={"" , "QKeyEvent*"};
6364 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7487 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6365 void* args[2] = {NULL, (void*)&arg__1};
7488 void* args[2] = {NULL, (void*)&arg__1};
6366 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7489 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6367 if (result) { Py_DECREF(result); }
7490 if (result) { Py_DECREF(result); }
6368 Py_DECREF(obj);
7491 Py_DECREF(obj);
6369 return;
7492 return;
6370 }
7493 }
6371 }
7494 }
6372 elfInfoWdgt::keyReleaseEvent(arg__1);
7495 elfInfoWdgt::keyReleaseEvent(arg__1);
6373 }
7496 }
6374 void PythonQtShell_elfInfoWdgt::leaveEvent(QEvent* arg__1)
7497 void PythonQtShell_elfInfoWdgt::leaveEvent(QEvent* arg__1)
6375 {
7498 {
6376 if (_wrapper) {
7499 if (_wrapper) {
6377 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
7500 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
6378 PyErr_Clear();
7501 PyErr_Clear();
6379 if (obj && !PythonQtSlotFunction_Check(obj)) {
7502 if (obj && !PythonQtSlotFunction_Check(obj)) {
6380 static const char* argumentList[] ={"" , "QEvent*"};
7503 static const char* argumentList[] ={"" , "QEvent*"};
6381 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7504 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6382 void* args[2] = {NULL, (void*)&arg__1};
7505 void* args[2] = {NULL, (void*)&arg__1};
6383 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7506 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6384 if (result) { Py_DECREF(result); }
7507 if (result) { Py_DECREF(result); }
6385 Py_DECREF(obj);
7508 Py_DECREF(obj);
6386 return;
7509 return;
6387 }
7510 }
6388 }
7511 }
6389 elfInfoWdgt::leaveEvent(arg__1);
7512 elfInfoWdgt::leaveEvent(arg__1);
6390 }
7513 }
6391 int PythonQtShell_elfInfoWdgt::metric(QPaintDevice::PaintDeviceMetric arg__1) const
7514 int PythonQtShell_elfInfoWdgt::metric(QPaintDevice::PaintDeviceMetric arg__1) const
6392 {
7515 {
6393 if (_wrapper) {
7516 if (_wrapper) {
6394 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
7517 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
6395 PyErr_Clear();
7518 PyErr_Clear();
6396 if (obj && !PythonQtSlotFunction_Check(obj)) {
7519 if (obj && !PythonQtSlotFunction_Check(obj)) {
6397 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
7520 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
6398 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7521 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6399 int returnValue;
7522 int returnValue;
6400 void* args[2] = {NULL, (void*)&arg__1};
7523 void* args[2] = {NULL, (void*)&arg__1};
6401 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7524 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6402 if (result) {
7525 if (result) {
6403 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7526 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6404 if (args[0]!=&returnValue) {
7527 if (args[0]!=&returnValue) {
6405 if (args[0]==NULL) {
7528 if (args[0]==NULL) {
6406 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
7529 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
6407 } else {
7530 } else {
6408 returnValue = *((int*)args[0]);
7531 returnValue = *((int*)args[0]);
6409 }
7532 }
6410 }
7533 }
6411 }
7534 }
6412 if (result) { Py_DECREF(result); }
7535 if (result) { Py_DECREF(result); }
6413 Py_DECREF(obj);
7536 Py_DECREF(obj);
6414 return returnValue;
7537 return returnValue;
6415 }
7538 }
6416 }
7539 }
6417 return elfInfoWdgt::metric(arg__1);
7540 return elfInfoWdgt::metric(arg__1);
6418 }
7541 }
6419 QSize PythonQtShell_elfInfoWdgt::minimumSizeHint() const
7542 QSize PythonQtShell_elfInfoWdgt::minimumSizeHint() const
6420 {
7543 {
6421 if (_wrapper) {
7544 if (_wrapper) {
6422 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
7545 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
6423 PyErr_Clear();
7546 PyErr_Clear();
6424 if (obj && !PythonQtSlotFunction_Check(obj)) {
7547 if (obj && !PythonQtSlotFunction_Check(obj)) {
6425 static const char* argumentList[] ={"QSize"};
7548 static const char* argumentList[] ={"QSize"};
6426 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7549 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6427 QSize returnValue;
7550 QSize returnValue;
6428 void* args[1] = {NULL};
7551 void* args[1] = {NULL};
6429 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7552 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6430 if (result) {
7553 if (result) {
6431 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7554 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6432 if (args[0]!=&returnValue) {
7555 if (args[0]!=&returnValue) {
6433 if (args[0]==NULL) {
7556 if (args[0]==NULL) {
6434 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
7557 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
6435 } else {
7558 } else {
6436 returnValue = *((QSize*)args[0]);
7559 returnValue = *((QSize*)args[0]);
6437 }
7560 }
6438 }
7561 }
6439 }
7562 }
6440 if (result) { Py_DECREF(result); }
7563 if (result) { Py_DECREF(result); }
6441 Py_DECREF(obj);
7564 Py_DECREF(obj);
6442 return returnValue;
7565 return returnValue;
6443 }
7566 }
6444 }
7567 }
6445 return elfInfoWdgt::minimumSizeHint();
7568 return elfInfoWdgt::minimumSizeHint();
6446 }
7569 }
6447 void PythonQtShell_elfInfoWdgt::mouseDoubleClickEvent(QMouseEvent* arg__1)
7570 void PythonQtShell_elfInfoWdgt::mouseDoubleClickEvent(QMouseEvent* arg__1)
6448 {
7571 {
6449 if (_wrapper) {
7572 if (_wrapper) {
6450 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
7573 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
6451 PyErr_Clear();
7574 PyErr_Clear();
6452 if (obj && !PythonQtSlotFunction_Check(obj)) {
7575 if (obj && !PythonQtSlotFunction_Check(obj)) {
6453 static const char* argumentList[] ={"" , "QMouseEvent*"};
7576 static const char* argumentList[] ={"" , "QMouseEvent*"};
6454 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7577 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6455 void* args[2] = {NULL, (void*)&arg__1};
7578 void* args[2] = {NULL, (void*)&arg__1};
6456 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7579 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6457 if (result) { Py_DECREF(result); }
7580 if (result) { Py_DECREF(result); }
6458 Py_DECREF(obj);
7581 Py_DECREF(obj);
6459 return;
7582 return;
6460 }
7583 }
6461 }
7584 }
6462 elfInfoWdgt::mouseDoubleClickEvent(arg__1);
7585 elfInfoWdgt::mouseDoubleClickEvent(arg__1);
6463 }
7586 }
6464 void PythonQtShell_elfInfoWdgt::mouseMoveEvent(QMouseEvent* arg__1)
7587 void PythonQtShell_elfInfoWdgt::mouseMoveEvent(QMouseEvent* arg__1)
6465 {
7588 {
6466 if (_wrapper) {
7589 if (_wrapper) {
6467 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
7590 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
6468 PyErr_Clear();
7591 PyErr_Clear();
6469 if (obj && !PythonQtSlotFunction_Check(obj)) {
7592 if (obj && !PythonQtSlotFunction_Check(obj)) {
6470 static const char* argumentList[] ={"" , "QMouseEvent*"};
7593 static const char* argumentList[] ={"" , "QMouseEvent*"};
6471 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7594 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6472 void* args[2] = {NULL, (void*)&arg__1};
7595 void* args[2] = {NULL, (void*)&arg__1};
6473 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7596 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6474 if (result) { Py_DECREF(result); }
7597 if (result) { Py_DECREF(result); }
6475 Py_DECREF(obj);
7598 Py_DECREF(obj);
6476 return;
7599 return;
6477 }
7600 }
6478 }
7601 }
6479 elfInfoWdgt::mouseMoveEvent(arg__1);
7602 elfInfoWdgt::mouseMoveEvent(arg__1);
6480 }
7603 }
6481 void PythonQtShell_elfInfoWdgt::mousePressEvent(QMouseEvent* arg__1)
7604 void PythonQtShell_elfInfoWdgt::mousePressEvent(QMouseEvent* arg__1)
6482 {
7605 {
6483 if (_wrapper) {
7606 if (_wrapper) {
6484 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
7607 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
6485 PyErr_Clear();
7608 PyErr_Clear();
6486 if (obj && !PythonQtSlotFunction_Check(obj)) {
7609 if (obj && !PythonQtSlotFunction_Check(obj)) {
6487 static const char* argumentList[] ={"" , "QMouseEvent*"};
7610 static const char* argumentList[] ={"" , "QMouseEvent*"};
6488 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7611 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6489 void* args[2] = {NULL, (void*)&arg__1};
7612 void* args[2] = {NULL, (void*)&arg__1};
6490 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7613 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6491 if (result) { Py_DECREF(result); }
7614 if (result) { Py_DECREF(result); }
6492 Py_DECREF(obj);
7615 Py_DECREF(obj);
6493 return;
7616 return;
6494 }
7617 }
6495 }
7618 }
6496 elfInfoWdgt::mousePressEvent(arg__1);
7619 elfInfoWdgt::mousePressEvent(arg__1);
6497 }
7620 }
6498 void PythonQtShell_elfInfoWdgt::mouseReleaseEvent(QMouseEvent* arg__1)
7621 void PythonQtShell_elfInfoWdgt::mouseReleaseEvent(QMouseEvent* arg__1)
6499 {
7622 {
6500 if (_wrapper) {
7623 if (_wrapper) {
6501 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
7624 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
6502 PyErr_Clear();
7625 PyErr_Clear();
6503 if (obj && !PythonQtSlotFunction_Check(obj)) {
7626 if (obj && !PythonQtSlotFunction_Check(obj)) {
6504 static const char* argumentList[] ={"" , "QMouseEvent*"};
7627 static const char* argumentList[] ={"" , "QMouseEvent*"};
6505 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7628 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6506 void* args[2] = {NULL, (void*)&arg__1};
7629 void* args[2] = {NULL, (void*)&arg__1};
6507 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7630 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6508 if (result) { Py_DECREF(result); }
7631 if (result) { Py_DECREF(result); }
6509 Py_DECREF(obj);
7632 Py_DECREF(obj);
6510 return;
7633 return;
6511 }
7634 }
6512 }
7635 }
6513 elfInfoWdgt::mouseReleaseEvent(arg__1);
7636 elfInfoWdgt::mouseReleaseEvent(arg__1);
6514 }
7637 }
6515 void PythonQtShell_elfInfoWdgt::moveEvent(QMoveEvent* arg__1)
7638 void PythonQtShell_elfInfoWdgt::moveEvent(QMoveEvent* arg__1)
6516 {
7639 {
6517 if (_wrapper) {
7640 if (_wrapper) {
6518 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
7641 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
6519 PyErr_Clear();
7642 PyErr_Clear();
6520 if (obj && !PythonQtSlotFunction_Check(obj)) {
7643 if (obj && !PythonQtSlotFunction_Check(obj)) {
6521 static const char* argumentList[] ={"" , "QMoveEvent*"};
7644 static const char* argumentList[] ={"" , "QMoveEvent*"};
6522 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7645 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6523 void* args[2] = {NULL, (void*)&arg__1};
7646 void* args[2] = {NULL, (void*)&arg__1};
6524 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7647 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6525 if (result) { Py_DECREF(result); }
7648 if (result) { Py_DECREF(result); }
6526 Py_DECREF(obj);
7649 Py_DECREF(obj);
6527 return;
7650 return;
6528 }
7651 }
6529 }
7652 }
6530 elfInfoWdgt::moveEvent(arg__1);
7653 elfInfoWdgt::moveEvent(arg__1);
6531 }
7654 }
6532 bool PythonQtShell_elfInfoWdgt::nativeEvent(const QByteArray& eventType, void* message, long* result)
7655 bool PythonQtShell_elfInfoWdgt::nativeEvent(const QByteArray& eventType, void* message, long* result)
6533 {
7656 {
6534 if (_wrapper) {
7657 if (_wrapper) {
6535 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
7658 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
6536 PyErr_Clear();
7659 PyErr_Clear();
6537 if (obj && !PythonQtSlotFunction_Check(obj)) {
7660 if (obj && !PythonQtSlotFunction_Check(obj)) {
6538 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
7661 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
6539 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
7662 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
6540 bool returnValue;
7663 bool returnValue;
6541 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
7664 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
6542 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7665 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6543 if (result) {
7666 if (result) {
6544 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7667 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6545 if (args[0]!=&returnValue) {
7668 if (args[0]!=&returnValue) {
6546 if (args[0]==NULL) {
7669 if (args[0]==NULL) {
6547 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
7670 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
6548 } else {
7671 } else {
6549 returnValue = *((bool*)args[0]);
7672 returnValue = *((bool*)args[0]);
6550 }
7673 }
6551 }
7674 }
6552 }
7675 }
6553 if (result) { Py_DECREF(result); }
7676 if (result) { Py_DECREF(result); }
6554 Py_DECREF(obj);
7677 Py_DECREF(obj);
6555 return returnValue;
7678 return returnValue;
6556 }
7679 }
6557 }
7680 }
6558 return elfInfoWdgt::nativeEvent(eventType, message, result);
7681 return elfInfoWdgt::nativeEvent(eventType, message, result);
6559 }
7682 }
6560 QPaintEngine* PythonQtShell_elfInfoWdgt::paintEngine() const
7683 QPaintEngine* PythonQtShell_elfInfoWdgt::paintEngine() const
6561 {
7684 {
6562 if (_wrapper) {
7685 if (_wrapper) {
6563 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
7686 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
6564 PyErr_Clear();
7687 PyErr_Clear();
6565 if (obj && !PythonQtSlotFunction_Check(obj)) {
7688 if (obj && !PythonQtSlotFunction_Check(obj)) {
6566 static const char* argumentList[] ={"QPaintEngine*"};
7689 static const char* argumentList[] ={"QPaintEngine*"};
6567 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7690 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6568 QPaintEngine* returnValue;
7691 QPaintEngine* returnValue;
6569 void* args[1] = {NULL};
7692 void* args[1] = {NULL};
6570 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7693 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6571 if (result) {
7694 if (result) {
6572 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7695 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6573 if (args[0]!=&returnValue) {
7696 if (args[0]!=&returnValue) {
6574 if (args[0]==NULL) {
7697 if (args[0]==NULL) {
6575 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
7698 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
6576 } else {
7699 } else {
6577 returnValue = *((QPaintEngine**)args[0]);
7700 returnValue = *((QPaintEngine**)args[0]);
6578 }
7701 }
6579 }
7702 }
6580 }
7703 }
6581 if (result) { Py_DECREF(result); }
7704 if (result) { Py_DECREF(result); }
6582 Py_DECREF(obj);
7705 Py_DECREF(obj);
6583 return returnValue;
7706 return returnValue;
6584 }
7707 }
6585 }
7708 }
6586 return elfInfoWdgt::paintEngine();
7709 return elfInfoWdgt::paintEngine();
6587 }
7710 }
6588 void PythonQtShell_elfInfoWdgt::paintEvent(QPaintEvent* arg__1)
7711 void PythonQtShell_elfInfoWdgt::paintEvent(QPaintEvent* arg__1)
6589 {
7712 {
6590 if (_wrapper) {
7713 if (_wrapper) {
6591 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
7714 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
6592 PyErr_Clear();
7715 PyErr_Clear();
6593 if (obj && !PythonQtSlotFunction_Check(obj)) {
7716 if (obj && !PythonQtSlotFunction_Check(obj)) {
6594 static const char* argumentList[] ={"" , "QPaintEvent*"};
7717 static const char* argumentList[] ={"" , "QPaintEvent*"};
6595 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7718 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6596 void* args[2] = {NULL, (void*)&arg__1};
7719 void* args[2] = {NULL, (void*)&arg__1};
6597 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7720 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6598 if (result) { Py_DECREF(result); }
7721 if (result) { Py_DECREF(result); }
6599 Py_DECREF(obj);
7722 Py_DECREF(obj);
6600 return;
7723 return;
6601 }
7724 }
6602 }
7725 }
6603 elfInfoWdgt::paintEvent(arg__1);
7726 elfInfoWdgt::paintEvent(arg__1);
6604 }
7727 }
6605 QPaintDevice* PythonQtShell_elfInfoWdgt::redirected(QPoint* offset) const
7728 QPaintDevice* PythonQtShell_elfInfoWdgt::redirected(QPoint* offset) const
6606 {
7729 {
6607 if (_wrapper) {
7730 if (_wrapper) {
6608 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
7731 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
6609 PyErr_Clear();
7732 PyErr_Clear();
6610 if (obj && !PythonQtSlotFunction_Check(obj)) {
7733 if (obj && !PythonQtSlotFunction_Check(obj)) {
6611 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
7734 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
6612 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7735 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6613 QPaintDevice* returnValue;
7736 QPaintDevice* returnValue;
6614 void* args[2] = {NULL, (void*)&offset};
7737 void* args[2] = {NULL, (void*)&offset};
6615 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7738 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6616 if (result) {
7739 if (result) {
6617 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7740 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6618 if (args[0]!=&returnValue) {
7741 if (args[0]!=&returnValue) {
6619 if (args[0]==NULL) {
7742 if (args[0]==NULL) {
6620 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
7743 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
6621 } else {
7744 } else {
6622 returnValue = *((QPaintDevice**)args[0]);
7745 returnValue = *((QPaintDevice**)args[0]);
6623 }
7746 }
6624 }
7747 }
6625 }
7748 }
6626 if (result) { Py_DECREF(result); }
7749 if (result) { Py_DECREF(result); }
6627 Py_DECREF(obj);
7750 Py_DECREF(obj);
6628 return returnValue;
7751 return returnValue;
6629 }
7752 }
6630 }
7753 }
6631 return elfInfoWdgt::redirected(offset);
7754 return elfInfoWdgt::redirected(offset);
6632 }
7755 }
6633 void PythonQtShell_elfInfoWdgt::resizeEvent(QResizeEvent* arg__1)
7756 void PythonQtShell_elfInfoWdgt::resizeEvent(QResizeEvent* arg__1)
6634 {
7757 {
6635 if (_wrapper) {
7758 if (_wrapper) {
6636 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
7759 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
6637 PyErr_Clear();
7760 PyErr_Clear();
6638 if (obj && !PythonQtSlotFunction_Check(obj)) {
7761 if (obj && !PythonQtSlotFunction_Check(obj)) {
6639 static const char* argumentList[] ={"" , "QResizeEvent*"};
7762 static const char* argumentList[] ={"" , "QResizeEvent*"};
6640 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7763 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6641 void* args[2] = {NULL, (void*)&arg__1};
7764 void* args[2] = {NULL, (void*)&arg__1};
6642 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7765 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6643 if (result) { Py_DECREF(result); }
7766 if (result) { Py_DECREF(result); }
6644 Py_DECREF(obj);
7767 Py_DECREF(obj);
6645 return;
7768 return;
6646 }
7769 }
6647 }
7770 }
6648 elfInfoWdgt::resizeEvent(arg__1);
7771 elfInfoWdgt::resizeEvent(arg__1);
6649 }
7772 }
6650 QPainter* PythonQtShell_elfInfoWdgt::sharedPainter() const
7773 QPainter* PythonQtShell_elfInfoWdgt::sharedPainter() const
6651 {
7774 {
6652 if (_wrapper) {
7775 if (_wrapper) {
6653 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
7776 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
6654 PyErr_Clear();
7777 PyErr_Clear();
6655 if (obj && !PythonQtSlotFunction_Check(obj)) {
7778 if (obj && !PythonQtSlotFunction_Check(obj)) {
6656 static const char* argumentList[] ={"QPainter*"};
7779 static const char* argumentList[] ={"QPainter*"};
6657 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7780 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6658 QPainter* returnValue;
7781 QPainter* returnValue;
6659 void* args[1] = {NULL};
7782 void* args[1] = {NULL};
6660 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7783 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6661 if (result) {
7784 if (result) {
6662 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7785 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6663 if (args[0]!=&returnValue) {
7786 if (args[0]!=&returnValue) {
6664 if (args[0]==NULL) {
7787 if (args[0]==NULL) {
6665 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
7788 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
6666 } else {
7789 } else {
6667 returnValue = *((QPainter**)args[0]);
7790 returnValue = *((QPainter**)args[0]);
6668 }
7791 }
6669 }
7792 }
6670 }
7793 }
6671 if (result) { Py_DECREF(result); }
7794 if (result) { Py_DECREF(result); }
6672 Py_DECREF(obj);
7795 Py_DECREF(obj);
6673 return returnValue;
7796 return returnValue;
6674 }
7797 }
6675 }
7798 }
6676 return elfInfoWdgt::sharedPainter();
7799 return elfInfoWdgt::sharedPainter();
6677 }
7800 }
6678 void PythonQtShell_elfInfoWdgt::showEvent(QShowEvent* arg__1)
7801 void PythonQtShell_elfInfoWdgt::showEvent(QShowEvent* arg__1)
6679 {
7802 {
6680 if (_wrapper) {
7803 if (_wrapper) {
6681 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
7804 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
6682 PyErr_Clear();
7805 PyErr_Clear();
6683 if (obj && !PythonQtSlotFunction_Check(obj)) {
7806 if (obj && !PythonQtSlotFunction_Check(obj)) {
6684 static const char* argumentList[] ={"" , "QShowEvent*"};
7807 static const char* argumentList[] ={"" , "QShowEvent*"};
6685 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7808 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6686 void* args[2] = {NULL, (void*)&arg__1};
7809 void* args[2] = {NULL, (void*)&arg__1};
6687 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7810 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6688 if (result) { Py_DECREF(result); }
7811 if (result) { Py_DECREF(result); }
6689 Py_DECREF(obj);
7812 Py_DECREF(obj);
6690 return;
7813 return;
6691 }
7814 }
6692 }
7815 }
6693 elfInfoWdgt::showEvent(arg__1);
7816 elfInfoWdgt::showEvent(arg__1);
6694 }
7817 }
6695 QSize PythonQtShell_elfInfoWdgt::sizeHint() const
7818 QSize PythonQtShell_elfInfoWdgt::sizeHint() const
6696 {
7819 {
6697 if (_wrapper) {
7820 if (_wrapper) {
6698 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
7821 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
6699 PyErr_Clear();
7822 PyErr_Clear();
6700 if (obj && !PythonQtSlotFunction_Check(obj)) {
7823 if (obj && !PythonQtSlotFunction_Check(obj)) {
6701 static const char* argumentList[] ={"QSize"};
7824 static const char* argumentList[] ={"QSize"};
6702 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7825 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6703 QSize returnValue;
7826 QSize returnValue;
6704 void* args[1] = {NULL};
7827 void* args[1] = {NULL};
6705 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7828 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6706 if (result) {
7829 if (result) {
6707 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7830 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6708 if (args[0]!=&returnValue) {
7831 if (args[0]!=&returnValue) {
6709 if (args[0]==NULL) {
7832 if (args[0]==NULL) {
6710 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
7833 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
6711 } else {
7834 } else {
6712 returnValue = *((QSize*)args[0]);
7835 returnValue = *((QSize*)args[0]);
6713 }
7836 }
6714 }
7837 }
6715 }
7838 }
6716 if (result) { Py_DECREF(result); }
7839 if (result) { Py_DECREF(result); }
6717 Py_DECREF(obj);
7840 Py_DECREF(obj);
6718 return returnValue;
7841 return returnValue;
6719 }
7842 }
6720 }
7843 }
6721 return elfInfoWdgt::sizeHint();
7844 return elfInfoWdgt::sizeHint();
6722 }
7845 }
6723 void PythonQtShell_elfInfoWdgt::tabletEvent(QTabletEvent* arg__1)
7846 void PythonQtShell_elfInfoWdgt::tabletEvent(QTabletEvent* arg__1)
6724 {
7847 {
6725 if (_wrapper) {
7848 if (_wrapper) {
6726 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
7849 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
6727 PyErr_Clear();
7850 PyErr_Clear();
6728 if (obj && !PythonQtSlotFunction_Check(obj)) {
7851 if (obj && !PythonQtSlotFunction_Check(obj)) {
6729 static const char* argumentList[] ={"" , "QTabletEvent*"};
7852 static const char* argumentList[] ={"" , "QTabletEvent*"};
6730 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7853 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6731 void* args[2] = {NULL, (void*)&arg__1};
7854 void* args[2] = {NULL, (void*)&arg__1};
6732 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7855 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6733 if (result) { Py_DECREF(result); }
7856 if (result) { Py_DECREF(result); }
6734 Py_DECREF(obj);
7857 Py_DECREF(obj);
6735 return;
7858 return;
6736 }
7859 }
6737 }
7860 }
6738 elfInfoWdgt::tabletEvent(arg__1);
7861 elfInfoWdgt::tabletEvent(arg__1);
6739 }
7862 }
6740 void PythonQtShell_elfInfoWdgt::timerEvent(QTimerEvent* arg__1)
7863 void PythonQtShell_elfInfoWdgt::timerEvent(QTimerEvent* arg__1)
6741 {
7864 {
6742 if (_wrapper) {
7865 if (_wrapper) {
6743 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
7866 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
6744 PyErr_Clear();
7867 PyErr_Clear();
6745 if (obj && !PythonQtSlotFunction_Check(obj)) {
7868 if (obj && !PythonQtSlotFunction_Check(obj)) {
6746 static const char* argumentList[] ={"" , "QTimerEvent*"};
7869 static const char* argumentList[] ={"" , "QTimerEvent*"};
6747 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7870 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6748 void* args[2] = {NULL, (void*)&arg__1};
7871 void* args[2] = {NULL, (void*)&arg__1};
6749 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7872 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6750 if (result) { Py_DECREF(result); }
7873 if (result) { Py_DECREF(result); }
6751 Py_DECREF(obj);
7874 Py_DECREF(obj);
6752 return;
7875 return;
6753 }
7876 }
6754 }
7877 }
6755 elfInfoWdgt::timerEvent(arg__1);
7878 elfInfoWdgt::timerEvent(arg__1);
6756 }
7879 }
6757 void PythonQtShell_elfInfoWdgt::wheelEvent(QWheelEvent* arg__1)
7880 void PythonQtShell_elfInfoWdgt::wheelEvent(QWheelEvent* arg__1)
6758 {
7881 {
6759 if (_wrapper) {
7882 if (_wrapper) {
6760 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
7883 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
6761 PyErr_Clear();
7884 PyErr_Clear();
6762 if (obj && !PythonQtSlotFunction_Check(obj)) {
7885 if (obj && !PythonQtSlotFunction_Check(obj)) {
6763 static const char* argumentList[] ={"" , "QWheelEvent*"};
7886 static const char* argumentList[] ={"" , "QWheelEvent*"};
6764 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7887 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
6765 void* args[2] = {NULL, (void*)&arg__1};
7888 void* args[2] = {NULL, (void*)&arg__1};
6766 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7889 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6767 if (result) { Py_DECREF(result); }
7890 if (result) { Py_DECREF(result); }
6768 Py_DECREF(obj);
7891 Py_DECREF(obj);
6769 return;
7892 return;
6770 }
7893 }
6771 }
7894 }
6772 elfInfoWdgt::wheelEvent(arg__1);
7895 elfInfoWdgt::wheelEvent(arg__1);
6773 }
7896 }
6774 elfInfoWdgt* PythonQtWrapper_elfInfoWdgt::new_elfInfoWdgt(QWidget* parent)
7897 elfInfoWdgt* PythonQtWrapper_elfInfoWdgt::new_elfInfoWdgt(QWidget* parent)
6775 {
7898 {
6776 return new PythonQtShell_elfInfoWdgt(parent); }
7899 return new PythonQtShell_elfInfoWdgt(parent); }
6777
7900
6778
7901
6779
7902
6780 elfparser* PythonQtWrapper_elfparser::new_elfparser()
7903 elfparser* PythonQtWrapper_elfparser::new_elfparser()
6781 {
7904 {
6782 return new elfparser(); }
7905 return new elfparser(); }
6783
7906
6784 int PythonQtWrapper_elfparser::closeFile(elfparser* theWrappedObject)
7907 int PythonQtWrapper_elfparser::closeFile(elfparser* theWrappedObject)
6785 {
7908 {
6786 return ( theWrappedObject->closeFile());
7909 return ( theWrappedObject->closeFile());
6787 }
7910 }
6788
7911
6789 QString PythonQtWrapper_elfparser::getABI(elfparser* theWrappedObject)
7912 QString PythonQtWrapper_elfparser::getABI(elfparser* theWrappedObject)
6790 {
7913 {
6791 return ( theWrappedObject->getABI());
7914 return ( theWrappedObject->getABI());
6792 }
7915 }
6793
7916
6794 QString PythonQtWrapper_elfparser::getArchitecture(elfparser* theWrappedObject)
7917 QString PythonQtWrapper_elfparser::getArchitecture(elfparser* theWrappedObject)
6795 {
7918 {
6796 return ( theWrappedObject->getArchitecture());
7919 return ( theWrappedObject->getArchitecture());
6797 }
7920 }
6798
7921
6799 QString PythonQtWrapper_elfparser::getClass(elfparser* theWrappedObject)
7922 QString PythonQtWrapper_elfparser::getClass(elfparser* theWrappedObject)
6800 {
7923 {
6801 return ( theWrappedObject->getClass());
7924 return ( theWrappedObject->getClass());
6802 }
7925 }
6803
7926
6804 QString PythonQtWrapper_elfparser::getEndianness(elfparser* theWrappedObject)
7927 QString PythonQtWrapper_elfparser::getEndianness(elfparser* theWrappedObject)
6805 {
7928 {
6806 return ( theWrappedObject->getEndianness());
7929 return ( theWrappedObject->getEndianness());
6807 }
7930 }
6808
7931
6809 qint64 PythonQtWrapper_elfparser::getEntryPointAddress(elfparser* theWrappedObject)
7932 qint64 PythonQtWrapper_elfparser::getEntryPointAddress(elfparser* theWrappedObject)
6810 {
7933 {
6811 return ( theWrappedObject->getEntryPointAddress());
7934 return ( theWrappedObject->getEntryPointAddress());
6812 }
7935 }
6813
7936
6814 bool PythonQtWrapper_elfparser::getSectionData(elfparser* theWrappedObject, int index, char** buffer)
7937 bool PythonQtWrapper_elfparser::getSectionData(elfparser* theWrappedObject, int index, char** buffer)
6815 {
7938 {
6816 return ( theWrappedObject->getSectionData(index, buffer));
7939 return ( theWrappedObject->getSectionData(index, buffer));
6817 }
7940 }
6818
7941
6819 qint64 PythonQtWrapper_elfparser::getSectionDatasz(elfparser* theWrappedObject, int index)
7942 qint64 PythonQtWrapper_elfparser::getSectionDatasz(elfparser* theWrappedObject, int index)
6820 {
7943 {
6821 return ( theWrappedObject->getSectionDatasz(index));
7944 return ( theWrappedObject->getSectionDatasz(index));
6822 }
7945 }
6823
7946
6824 qint64 PythonQtWrapper_elfparser::getSectionMemsz(elfparser* theWrappedObject, int index)
7947 qint64 PythonQtWrapper_elfparser::getSectionMemsz(elfparser* theWrappedObject, int index)
6825 {
7948 {
6826 return ( theWrappedObject->getSectionMemsz(index));
7949 return ( theWrappedObject->getSectionMemsz(index));
6827 }
7950 }
6828
7951
6829 QString PythonQtWrapper_elfparser::getSectionName(elfparser* theWrappedObject, int index)
7952 QString PythonQtWrapper_elfparser::getSectionName(elfparser* theWrappedObject, int index)
6830 {
7953 {
6831 return ( theWrappedObject->getSectionName(index));
7954 return ( theWrappedObject->getSectionName(index));
6832 }
7955 }
6833
7956
6834 qint64 PythonQtWrapper_elfparser::getSectionPaddr(elfparser* theWrappedObject, int index)
7957 qint64 PythonQtWrapper_elfparser::getSectionPaddr(elfparser* theWrappedObject, int index)
6835 {
7958 {
6836 return ( theWrappedObject->getSectionPaddr(index));
7959 return ( theWrappedObject->getSectionPaddr(index));
6837 }
7960 }
6838
7961
6839 QString PythonQtWrapper_elfparser::getSectionType(elfparser* theWrappedObject, int index)
7962 QString PythonQtWrapper_elfparser::getSectionType(elfparser* theWrappedObject, int index)
6840 {
7963 {
6841 return ( theWrappedObject->getSectionType(index));
7964 return ( theWrappedObject->getSectionType(index));
6842 }
7965 }
6843
7966
6844 int PythonQtWrapper_elfparser::getSectioncount(elfparser* theWrappedObject)
7967 int PythonQtWrapper_elfparser::getSectioncount(elfparser* theWrappedObject)
6845 {
7968 {
6846 return ( theWrappedObject->getSectioncount());
7969 return ( theWrappedObject->getSectioncount());
6847 }
7970 }
6848
7971
6849 qint64 PythonQtWrapper_elfparser::getSegmentFilesz(elfparser* theWrappedObject, int index)
7972 qint64 PythonQtWrapper_elfparser::getSegmentFilesz(elfparser* theWrappedObject, int index)
6850 {
7973 {
6851 return ( theWrappedObject->getSegmentFilesz(index));
7974 return ( theWrappedObject->getSegmentFilesz(index));
6852 }
7975 }
6853
7976
6854 QString PythonQtWrapper_elfparser::getSegmentFlags(elfparser* theWrappedObject, int index)
7977 QString PythonQtWrapper_elfparser::getSegmentFlags(elfparser* theWrappedObject, int index)
6855 {
7978 {
6856 return ( theWrappedObject->getSegmentFlags(index));
7979 return ( theWrappedObject->getSegmentFlags(index));
6857 }
7980 }
6858
7981
6859 qint64 PythonQtWrapper_elfparser::getSegmentMemsz(elfparser* theWrappedObject, int index)
7982 qint64 PythonQtWrapper_elfparser::getSegmentMemsz(elfparser* theWrappedObject, int index)
6860 {
7983 {
6861 return ( theWrappedObject->getSegmentMemsz(index));
7984 return ( theWrappedObject->getSegmentMemsz(index));
6862 }
7985 }
6863
7986
6864 qint64 PythonQtWrapper_elfparser::getSegmentOffset(elfparser* theWrappedObject, int index)
7987 qint64 PythonQtWrapper_elfparser::getSegmentOffset(elfparser* theWrappedObject, int index)
6865 {
7988 {
6866 return ( theWrappedObject->getSegmentOffset(index));
7989 return ( theWrappedObject->getSegmentOffset(index));
6867 }
7990 }
6868
7991
6869 qint64 PythonQtWrapper_elfparser::getSegmentPaddr(elfparser* theWrappedObject, int index)
7992 qint64 PythonQtWrapper_elfparser::getSegmentPaddr(elfparser* theWrappedObject, int index)
6870 {
7993 {
6871 return ( theWrappedObject->getSegmentPaddr(index));
7994 return ( theWrappedObject->getSegmentPaddr(index));
6872 }
7995 }
6873
7996
6874 QString PythonQtWrapper_elfparser::getSegmentType(elfparser* theWrappedObject, int index)
7997 QString PythonQtWrapper_elfparser::getSegmentType(elfparser* theWrappedObject, int index)
6875 {
7998 {
6876 return ( theWrappedObject->getSegmentType(index));
7999 return ( theWrappedObject->getSegmentType(index));
6877 }
8000 }
6878
8001
6879 qint64 PythonQtWrapper_elfparser::getSegmentVaddr(elfparser* theWrappedObject, int index)
8002 qint64 PythonQtWrapper_elfparser::getSegmentVaddr(elfparser* theWrappedObject, int index)
6880 {
8003 {
6881 return ( theWrappedObject->getSegmentVaddr(index));
8004 return ( theWrappedObject->getSegmentVaddr(index));
6882 }
8005 }
6883
8006
6884 int PythonQtWrapper_elfparser::getSegmentcount(elfparser* theWrappedObject)
8007 int PythonQtWrapper_elfparser::getSegmentcount(elfparser* theWrappedObject)
6885 {
8008 {
6886 return ( theWrappedObject->getSegmentcount());
8009 return ( theWrappedObject->getSegmentcount());
6887 }
8010 }
6888
8011
6889 QString PythonQtWrapper_elfparser::getType(elfparser* theWrappedObject)
8012 QString PythonQtWrapper_elfparser::getType(elfparser* theWrappedObject)
6890 {
8013 {
6891 return ( theWrappedObject->getType());
8014 return ( theWrappedObject->getType());
6892 }
8015 }
6893
8016
6894 qint64 PythonQtWrapper_elfparser::getVersion(elfparser* theWrappedObject)
8017 qint64 PythonQtWrapper_elfparser::getVersion(elfparser* theWrappedObject)
6895 {
8018 {
6896 return ( theWrappedObject->getVersion());
8019 return ( theWrappedObject->getVersion());
6897 }
8020 }
6898
8021
6899 bool PythonQtWrapper_elfparser::static_elfparser_isElf(const QString& File)
8022 bool PythonQtWrapper_elfparser::static_elfparser_isElf(const QString& File)
6900 {
8023 {
6901 return (elfparser::isElf(File));
8024 return (elfparser::isElf(File));
6902 }
8025 }
6903
8026
6904 bool PythonQtWrapper_elfparser::iself(elfparser* theWrappedObject)
8027 bool PythonQtWrapper_elfparser::iself(elfparser* theWrappedObject)
6905 {
8028 {
6906 return ( theWrappedObject->iself());
8029 return ( theWrappedObject->iself());
6907 }
8030 }
6908
8031
6909 bool PythonQtWrapper_elfparser::isopened(elfparser* theWrappedObject)
8032 bool PythonQtWrapper_elfparser::isopened(elfparser* theWrappedObject)
6910 {
8033 {
6911 return ( theWrappedObject->isopened());
8034 return ( theWrappedObject->isopened());
6912 }
8035 }
6913
8036
6914 int PythonQtWrapper_elfparser::setFilename(elfparser* theWrappedObject, const QString& name)
8037 int PythonQtWrapper_elfparser::setFilename(elfparser* theWrappedObject, const QString& name)
6915 {
8038 {
6916 return ( theWrappedObject->setFilename(name));
8039 return ( theWrappedObject->setFilename(name));
6917 }
8040 }
6918
8041
6919
8042
6920
8043
6921 PythonQtShell_srecFile::~PythonQtShell_srecFile() {
8044 PythonQtShell_srecFile::~PythonQtShell_srecFile() {
6922 PythonQtPrivate* priv = PythonQt::priv();
8045 PythonQtPrivate* priv = PythonQt::priv();
6923 if (priv) { priv->shellClassDeleted(this); }
8046 if (priv) { priv->shellClassDeleted(this); }
6924 }
8047 }
6925 int PythonQtShell_srecFile::closeFile()
8048 int PythonQtShell_srecFile::closeFile()
6926 {
8049 {
6927 if (_wrapper) {
8050 if (_wrapper) {
6928 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile");
8051 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile");
6929 PyErr_Clear();
8052 PyErr_Clear();
6930 if (obj && !PythonQtSlotFunction_Check(obj)) {
8053 if (obj && !PythonQtSlotFunction_Check(obj)) {
6931 static const char* argumentList[] ={"int"};
8054 static const char* argumentList[] ={"int"};
6932 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8055 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6933 int returnValue;
8056 int returnValue;
6934 void* args[1] = {NULL};
8057 void* args[1] = {NULL};
6935 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8058 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6936 if (result) {
8059 if (result) {
6937 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8060 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6938 if (args[0]!=&returnValue) {
8061 if (args[0]!=&returnValue) {
6939 if (args[0]==NULL) {
8062 if (args[0]==NULL) {
6940 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
8063 PythonQt::priv()->handleVirtualOverloadReturnError("closeFile", methodInfo, result);
6941 } else {
8064 } else {
6942 returnValue = *((int*)args[0]);
8065 returnValue = *((int*)args[0]);
6943 }
8066 }
6944 }
8067 }
6945 }
8068 }
6946 if (result) { Py_DECREF(result); }
8069 if (result) { Py_DECREF(result); }
6947 Py_DECREF(obj);
8070 Py_DECREF(obj);
6948 return returnValue;
8071 return returnValue;
6949 }
8072 }
6950 }
8073 }
6951 return srecFile::closeFile();
8074 return srecFile::closeFile();
6952 }
8075 }
6953 QList<codeFragment* > PythonQtShell_srecFile::getFragments()
8076 QList<codeFragment* > PythonQtShell_srecFile::getFragments()
6954 {
8077 {
6955 if (_wrapper) {
8078 if (_wrapper) {
6956 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments");
8079 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments");
6957 PyErr_Clear();
8080 PyErr_Clear();
6958 if (obj && !PythonQtSlotFunction_Check(obj)) {
8081 if (obj && !PythonQtSlotFunction_Check(obj)) {
6959 static const char* argumentList[] ={"QList<codeFragment* >"};
8082 static const char* argumentList[] ={"QList<codeFragment* >"};
6960 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8083 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6961 QList<codeFragment* > returnValue;
8084 QList<codeFragment* > returnValue;
6962 void* args[1] = {NULL};
8085 void* args[1] = {NULL};
6963 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8086 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6964 if (result) {
8087 if (result) {
6965 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8088 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6966 if (args[0]!=&returnValue) {
8089 if (args[0]!=&returnValue) {
6967 if (args[0]==NULL) {
8090 if (args[0]==NULL) {
6968 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
8091 PythonQt::priv()->handleVirtualOverloadReturnError("getFragments", methodInfo, result);
6969 } else {
8092 } else {
6970 returnValue = *((QList<codeFragment* >*)args[0]);
8093 returnValue = *((QList<codeFragment* >*)args[0]);
6971 }
8094 }
6972 }
8095 }
6973 }
8096 }
6974 if (result) { Py_DECREF(result); }
8097 if (result) { Py_DECREF(result); }
6975 Py_DECREF(obj);
8098 Py_DECREF(obj);
6976 return returnValue;
8099 return returnValue;
6977 }
8100 }
6978 }
8101 }
6979 return srecFile::getFragments();
8102 return srecFile::getFragments();
6980 }
8103 }
6981 bool PythonQtShell_srecFile::isopened()
8104 bool PythonQtShell_srecFile::isopened()
6982 {
8105 {
6983 if (_wrapper) {
8106 if (_wrapper) {
6984 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened");
8107 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened");
6985 PyErr_Clear();
8108 PyErr_Clear();
6986 if (obj && !PythonQtSlotFunction_Check(obj)) {
8109 if (obj && !PythonQtSlotFunction_Check(obj)) {
6987 static const char* argumentList[] ={"bool"};
8110 static const char* argumentList[] ={"bool"};
6988 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8111 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
6989 bool returnValue;
8112 bool returnValue;
6990 void* args[1] = {NULL};
8113 void* args[1] = {NULL};
6991 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8114 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
6992 if (result) {
8115 if (result) {
6993 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8116 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
6994 if (args[0]!=&returnValue) {
8117 if (args[0]!=&returnValue) {
6995 if (args[0]==NULL) {
8118 if (args[0]==NULL) {
6996 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
8119 PythonQt::priv()->handleVirtualOverloadReturnError("isopened", methodInfo, result);
6997 } else {
8120 } else {
6998 returnValue = *((bool*)args[0]);
8121 returnValue = *((bool*)args[0]);
6999 }
8122 }
7000 }
8123 }
7001 }
8124 }
7002 if (result) { Py_DECREF(result); }
8125 if (result) { Py_DECREF(result); }
7003 Py_DECREF(obj);
8126 Py_DECREF(obj);
7004 return returnValue;
8127 return returnValue;
7005 }
8128 }
7006 }
8129 }
7007 return srecFile::isopened();
8130 return srecFile::isopened();
7008 }
8131 }
7009 bool PythonQtShell_srecFile::openFile(const QString& File)
8132 bool PythonQtShell_srecFile::openFile(const QString& File)
7010 {
8133 {
7011 if (_wrapper) {
8134 if (_wrapper) {
7012 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile");
8135 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile");
7013 PyErr_Clear();
8136 PyErr_Clear();
7014 if (obj && !PythonQtSlotFunction_Check(obj)) {
8137 if (obj && !PythonQtSlotFunction_Check(obj)) {
7015 static const char* argumentList[] ={"bool" , "const QString&"};
8138 static const char* argumentList[] ={"bool" , "const QString&"};
7016 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8139 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7017 bool returnValue;
8140 bool returnValue;
7018 void* args[2] = {NULL, (void*)&File};
8141 void* args[2] = {NULL, (void*)&File};
7019 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8142 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7020 if (result) {
8143 if (result) {
7021 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8144 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7022 if (args[0]!=&returnValue) {
8145 if (args[0]!=&returnValue) {
7023 if (args[0]==NULL) {
8146 if (args[0]==NULL) {
7024 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
8147 PythonQt::priv()->handleVirtualOverloadReturnError("openFile", methodInfo, result);
7025 } else {
8148 } else {
7026 returnValue = *((bool*)args[0]);
8149 returnValue = *((bool*)args[0]);
7027 }
8150 }
7028 }
8151 }
7029 }
8152 }
7030 if (result) { Py_DECREF(result); }
8153 if (result) { Py_DECREF(result); }
7031 Py_DECREF(obj);
8154 Py_DECREF(obj);
7032 return returnValue;
8155 return returnValue;
7033 }
8156 }
7034 }
8157 }
7035 return srecFile::openFile(File);
8158 return srecFile::openFile(File);
7036 }
8159 }
7037 srecFile* PythonQtWrapper_srecFile::new_srecFile()
8160 srecFile* PythonQtWrapper_srecFile::new_srecFile()
7038 {
8161 {
7039 return new PythonQtShell_srecFile(); }
8162 return new PythonQtShell_srecFile(); }
7040
8163
7041 srecFile* PythonQtWrapper_srecFile::new_srecFile(const QString& File)
8164 srecFile* PythonQtWrapper_srecFile::new_srecFile(const QString& File)
7042 {
8165 {
7043 return new PythonQtShell_srecFile(File); }
8166 return new PythonQtShell_srecFile(File); }
7044
8167
7045 srecFile* PythonQtWrapper_srecFile::new_srecFile(const QStringList& Files)
8168 srecFile* PythonQtWrapper_srecFile::new_srecFile(const QStringList& Files)
7046 {
8169 {
7047 return new PythonQtShell_srecFile(Files); }
8170 return new PythonQtShell_srecFile(Files); }
7048
8171
7049 int PythonQtWrapper_srecFile::closeFile(srecFile* theWrappedObject)
8172 int PythonQtWrapper_srecFile::closeFile(srecFile* theWrappedObject)
7050 {
8173 {
7051 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_closeFile());
8174 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_closeFile());
7052 }
8175 }
7053
8176
7054 int PythonQtWrapper_srecFile::getFragmentAddress(srecFile* theWrappedObject, int index)
8177 int PythonQtWrapper_srecFile::getFragmentAddress(srecFile* theWrappedObject, int index)
7055 {
8178 {
7056 return ( theWrappedObject->getFragmentAddress(index));
8179 return ( theWrappedObject->getFragmentAddress(index));
7057 }
8180 }
7058
8181
7059 bool PythonQtWrapper_srecFile::getFragmentData(srecFile* theWrappedObject, int index, char** buffer)
8182 bool PythonQtWrapper_srecFile::getFragmentData(srecFile* theWrappedObject, int index, char** buffer)
7060 {
8183 {
7061 return ( theWrappedObject->getFragmentData(index, buffer));
8184 return ( theWrappedObject->getFragmentData(index, buffer));
7062 }
8185 }
7063
8186
7064 QString PythonQtWrapper_srecFile::getFragmentHeader(srecFile* theWrappedObject, int index)
8187 QString PythonQtWrapper_srecFile::getFragmentHeader(srecFile* theWrappedObject, int index)
7065 {
8188 {
7066 return ( theWrappedObject->getFragmentHeader(index));
8189 return ( theWrappedObject->getFragmentHeader(index));
7067 }
8190 }
7068
8191
7069 int PythonQtWrapper_srecFile::getFragmentSize(srecFile* theWrappedObject, int index)
8192 int PythonQtWrapper_srecFile::getFragmentSize(srecFile* theWrappedObject, int index)
7070 {
8193 {
7071 return ( theWrappedObject->getFragmentSize(index));
8194 return ( theWrappedObject->getFragmentSize(index));
7072 }
8195 }
7073
8196
7074 QList<codeFragment* > PythonQtWrapper_srecFile::getFragments(srecFile* theWrappedObject)
8197 QList<codeFragment* > PythonQtWrapper_srecFile::getFragments(srecFile* theWrappedObject)
7075 {
8198 {
7076 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_getFragments());
8199 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_getFragments());
7077 }
8200 }
7078
8201
7079 int PythonQtWrapper_srecFile::getFragmentsCount(srecFile* theWrappedObject)
8202 int PythonQtWrapper_srecFile::getFragmentsCount(srecFile* theWrappedObject)
7080 {
8203 {
7081 return ( theWrappedObject->getFragmentsCount());
8204 return ( theWrappedObject->getFragmentsCount());
7082 }
8205 }
7083
8206
7084 bool PythonQtWrapper_srecFile::isSREC(srecFile* theWrappedObject)
8207 bool PythonQtWrapper_srecFile::isSREC(srecFile* theWrappedObject)
7085 {
8208 {
7086 return ( theWrappedObject->isSREC());
8209 return ( theWrappedObject->isSREC());
7087 }
8210 }
7088
8211
7089 bool PythonQtWrapper_srecFile::static_srecFile_isSREC(const QString& File)
8212 bool PythonQtWrapper_srecFile::static_srecFile_isSREC(const QString& File)
7090 {
8213 {
7091 return (srecFile::isSREC(File));
8214 return (srecFile::isSREC(File));
7092 }
8215 }
7093
8216
7094 bool PythonQtWrapper_srecFile::isopened(srecFile* theWrappedObject)
8217 bool PythonQtWrapper_srecFile::isopened(srecFile* theWrappedObject)
7095 {
8218 {
7096 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_isopened());
8219 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_isopened());
7097 }
8220 }
7098
8221
7099 int PythonQtWrapper_srecFile::lineCount(srecFile* theWrappedObject)
8222 int PythonQtWrapper_srecFile::lineCount(srecFile* theWrappedObject)
7100 {
8223 {
7101 return ( theWrappedObject->lineCount());
8224 return ( theWrappedObject->lineCount());
7102 }
8225 }
7103
8226
7104 bool PythonQtWrapper_srecFile::openFile(srecFile* theWrappedObject, const QString& File)
8227 bool PythonQtWrapper_srecFile::openFile(srecFile* theWrappedObject, const QString& File)
7105 {
8228 {
7106 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_openFile(File));
8229 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_openFile(File));
7107 }
8230 }
7108
8231
7109 bool PythonQtWrapper_srecFile::openFiles(srecFile* theWrappedObject, const QStringList& Files)
8232 bool PythonQtWrapper_srecFile::openFiles(srecFile* theWrappedObject, const QStringList& Files)
7110 {
8233 {
7111 return ( theWrappedObject->openFiles(Files));
8234 return ( theWrappedObject->openFiles(Files));
7112 }
8235 }
7113
8236
7114 bool PythonQtWrapper_srecFile::static_srecFile_toSrec(QList<codeFragment* > fragments, const QString& File)
8237 bool PythonQtWrapper_srecFile::static_srecFile_toSrec(QList<codeFragment* > fragments, const QString& File)
7115 {
8238 {
7116 return (srecFile::toSrec(fragments, File));
8239 return (srecFile::toSrec(fragments, File));
7117 }
8240 }
7118
8241
7119
8242
7120
8243
7121 PythonQtShell_srecFileWidget::~PythonQtShell_srecFileWidget() {
8244 PythonQtShell_srecFileWidget::~PythonQtShell_srecFileWidget() {
7122 PythonQtPrivate* priv = PythonQt::priv();
8245 PythonQtPrivate* priv = PythonQt::priv();
7123 if (priv) { priv->shellClassDeleted(this); }
8246 if (priv) { priv->shellClassDeleted(this); }
7124 }
8247 }
7125 void PythonQtShell_srecFileWidget::actionEvent(QActionEvent* arg__1)
8248 void PythonQtShell_srecFileWidget::actionEvent(QActionEvent* arg__1)
7126 {
8249 {
7127 if (_wrapper) {
8250 if (_wrapper) {
7128 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
8251 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
7129 PyErr_Clear();
8252 PyErr_Clear();
7130 if (obj && !PythonQtSlotFunction_Check(obj)) {
8253 if (obj && !PythonQtSlotFunction_Check(obj)) {
7131 static const char* argumentList[] ={"" , "QActionEvent*"};
8254 static const char* argumentList[] ={"" , "QActionEvent*"};
7132 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8255 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7133 void* args[2] = {NULL, (void*)&arg__1};
8256 void* args[2] = {NULL, (void*)&arg__1};
7134 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8257 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7135 if (result) { Py_DECREF(result); }
8258 if (result) { Py_DECREF(result); }
7136 Py_DECREF(obj);
8259 Py_DECREF(obj);
7137 return;
8260 return;
7138 }
8261 }
7139 }
8262 }
7140 srecFileWidget::actionEvent(arg__1);
8263 srecFileWidget::actionEvent(arg__1);
7141 }
8264 }
7142 void PythonQtShell_srecFileWidget::changeEvent(QEvent* arg__1)
8265 void PythonQtShell_srecFileWidget::changeEvent(QEvent* arg__1)
7143 {
8266 {
7144 if (_wrapper) {
8267 if (_wrapper) {
7145 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
8268 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
7146 PyErr_Clear();
8269 PyErr_Clear();
7147 if (obj && !PythonQtSlotFunction_Check(obj)) {
8270 if (obj && !PythonQtSlotFunction_Check(obj)) {
7148 static const char* argumentList[] ={"" , "QEvent*"};
8271 static const char* argumentList[] ={"" , "QEvent*"};
7149 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8272 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7150 void* args[2] = {NULL, (void*)&arg__1};
8273 void* args[2] = {NULL, (void*)&arg__1};
7151 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8274 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7152 if (result) { Py_DECREF(result); }
8275 if (result) { Py_DECREF(result); }
7153 Py_DECREF(obj);
8276 Py_DECREF(obj);
7154 return;
8277 return;
7155 }
8278 }
7156 }
8279 }
7157 srecFileWidget::changeEvent(arg__1);
8280 srecFileWidget::changeEvent(arg__1);
7158 }
8281 }
7159 void PythonQtShell_srecFileWidget::childEvent(QChildEvent* arg__1)
8282 void PythonQtShell_srecFileWidget::childEvent(QChildEvent* arg__1)
7160 {
8283 {
7161 if (_wrapper) {
8284 if (_wrapper) {
7162 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
8285 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
7163 PyErr_Clear();
8286 PyErr_Clear();
7164 if (obj && !PythonQtSlotFunction_Check(obj)) {
8287 if (obj && !PythonQtSlotFunction_Check(obj)) {
7165 static const char* argumentList[] ={"" , "QChildEvent*"};
8288 static const char* argumentList[] ={"" , "QChildEvent*"};
7166 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8289 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7167 void* args[2] = {NULL, (void*)&arg__1};
8290 void* args[2] = {NULL, (void*)&arg__1};
7168 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8291 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7169 if (result) { Py_DECREF(result); }
8292 if (result) { Py_DECREF(result); }
7170 Py_DECREF(obj);
8293 Py_DECREF(obj);
7171 return;
8294 return;
7172 }
8295 }
7173 }
8296 }
7174 srecFileWidget::childEvent(arg__1);
8297 srecFileWidget::childEvent(arg__1);
7175 }
8298 }
7176 void PythonQtShell_srecFileWidget::closeEvent(QCloseEvent* arg__1)
8299 void PythonQtShell_srecFileWidget::closeEvent(QCloseEvent* arg__1)
7177 {
8300 {
7178 if (_wrapper) {
8301 if (_wrapper) {
7179 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
8302 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
7180 PyErr_Clear();
8303 PyErr_Clear();
7181 if (obj && !PythonQtSlotFunction_Check(obj)) {
8304 if (obj && !PythonQtSlotFunction_Check(obj)) {
7182 static const char* argumentList[] ={"" , "QCloseEvent*"};
8305 static const char* argumentList[] ={"" , "QCloseEvent*"};
7183 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8306 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7184 void* args[2] = {NULL, (void*)&arg__1};
8307 void* args[2] = {NULL, (void*)&arg__1};
7185 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8308 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7186 if (result) { Py_DECREF(result); }
8309 if (result) { Py_DECREF(result); }
7187 Py_DECREF(obj);
8310 Py_DECREF(obj);
7188 return;
8311 return;
7189 }
8312 }
7190 }
8313 }
7191 srecFileWidget::closeEvent(arg__1);
8314 srecFileWidget::closeEvent(arg__1);
7192 }
8315 }
7193 void PythonQtShell_srecFileWidget::contextMenuEvent(QContextMenuEvent* arg__1)
8316 void PythonQtShell_srecFileWidget::contextMenuEvent(QContextMenuEvent* arg__1)
7194 {
8317 {
7195 if (_wrapper) {
8318 if (_wrapper) {
7196 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
8319 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent");
7197 PyErr_Clear();
8320 PyErr_Clear();
7198 if (obj && !PythonQtSlotFunction_Check(obj)) {
8321 if (obj && !PythonQtSlotFunction_Check(obj)) {
7199 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
8322 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
7200 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8323 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7201 void* args[2] = {NULL, (void*)&arg__1};
8324 void* args[2] = {NULL, (void*)&arg__1};
7202 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8325 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7203 if (result) { Py_DECREF(result); }
8326 if (result) { Py_DECREF(result); }
7204 Py_DECREF(obj);
8327 Py_DECREF(obj);
7205 return;
8328 return;
7206 }
8329 }
7207 }
8330 }
7208 srecFileWidget::contextMenuEvent(arg__1);
8331 srecFileWidget::contextMenuEvent(arg__1);
7209 }
8332 }
7210 void PythonQtShell_srecFileWidget::customEvent(QEvent* arg__1)
8333 void PythonQtShell_srecFileWidget::customEvent(QEvent* arg__1)
7211 {
8334 {
7212 if (_wrapper) {
8335 if (_wrapper) {
7213 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
8336 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
7214 PyErr_Clear();
8337 PyErr_Clear();
7215 if (obj && !PythonQtSlotFunction_Check(obj)) {
8338 if (obj && !PythonQtSlotFunction_Check(obj)) {
7216 static const char* argumentList[] ={"" , "QEvent*"};
8339 static const char* argumentList[] ={"" , "QEvent*"};
7217 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8340 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7218 void* args[2] = {NULL, (void*)&arg__1};
8341 void* args[2] = {NULL, (void*)&arg__1};
7219 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8342 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7220 if (result) { Py_DECREF(result); }
8343 if (result) { Py_DECREF(result); }
7221 Py_DECREF(obj);
8344 Py_DECREF(obj);
7222 return;
8345 return;
7223 }
8346 }
7224 }
8347 }
7225 srecFileWidget::customEvent(arg__1);
8348 srecFileWidget::customEvent(arg__1);
7226 }
8349 }
7227 int PythonQtShell_srecFileWidget::devType() const
8350 int PythonQtShell_srecFileWidget::devType() const
7228 {
8351 {
7229 if (_wrapper) {
8352 if (_wrapper) {
7230 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
8353 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType");
7231 PyErr_Clear();
8354 PyErr_Clear();
7232 if (obj && !PythonQtSlotFunction_Check(obj)) {
8355 if (obj && !PythonQtSlotFunction_Check(obj)) {
7233 static const char* argumentList[] ={"int"};
8356 static const char* argumentList[] ={"int"};
7234 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8357 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7235 int returnValue;
8358 int returnValue;
7236 void* args[1] = {NULL};
8359 void* args[1] = {NULL};
7237 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8360 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7238 if (result) {
8361 if (result) {
7239 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8362 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7240 if (args[0]!=&returnValue) {
8363 if (args[0]!=&returnValue) {
7241 if (args[0]==NULL) {
8364 if (args[0]==NULL) {
7242 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
8365 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
7243 } else {
8366 } else {
7244 returnValue = *((int*)args[0]);
8367 returnValue = *((int*)args[0]);
7245 }
8368 }
7246 }
8369 }
7247 }
8370 }
7248 if (result) { Py_DECREF(result); }
8371 if (result) { Py_DECREF(result); }
7249 Py_DECREF(obj);
8372 Py_DECREF(obj);
7250 return returnValue;
8373 return returnValue;
7251 }
8374 }
7252 }
8375 }
7253 return srecFileWidget::devType();
8376 return srecFileWidget::devType();
7254 }
8377 }
7255 void PythonQtShell_srecFileWidget::dragEnterEvent(QDragEnterEvent* arg__1)
8378 void PythonQtShell_srecFileWidget::dragEnterEvent(QDragEnterEvent* arg__1)
7256 {
8379 {
7257 if (_wrapper) {
8380 if (_wrapper) {
7258 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
8381 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent");
7259 PyErr_Clear();
8382 PyErr_Clear();
7260 if (obj && !PythonQtSlotFunction_Check(obj)) {
8383 if (obj && !PythonQtSlotFunction_Check(obj)) {
7261 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
8384 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
7262 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8385 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7263 void* args[2] = {NULL, (void*)&arg__1};
8386 void* args[2] = {NULL, (void*)&arg__1};
7264 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8387 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7265 if (result) { Py_DECREF(result); }
8388 if (result) { Py_DECREF(result); }
7266 Py_DECREF(obj);
8389 Py_DECREF(obj);
7267 return;
8390 return;
7268 }
8391 }
7269 }
8392 }
7270 srecFileWidget::dragEnterEvent(arg__1);
8393 srecFileWidget::dragEnterEvent(arg__1);
7271 }
8394 }
7272 void PythonQtShell_srecFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1)
8395 void PythonQtShell_srecFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1)
7273 {
8396 {
7274 if (_wrapper) {
8397 if (_wrapper) {
7275 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
8398 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent");
7276 PyErr_Clear();
8399 PyErr_Clear();
7277 if (obj && !PythonQtSlotFunction_Check(obj)) {
8400 if (obj && !PythonQtSlotFunction_Check(obj)) {
7278 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
8401 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
7279 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8402 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7280 void* args[2] = {NULL, (void*)&arg__1};
8403 void* args[2] = {NULL, (void*)&arg__1};
7281 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8404 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7282 if (result) { Py_DECREF(result); }
8405 if (result) { Py_DECREF(result); }
7283 Py_DECREF(obj);
8406 Py_DECREF(obj);
7284 return;
8407 return;
7285 }
8408 }
7286 }
8409 }
7287 srecFileWidget::dragLeaveEvent(arg__1);
8410 srecFileWidget::dragLeaveEvent(arg__1);
7288 }
8411 }
7289 void PythonQtShell_srecFileWidget::dragMoveEvent(QDragMoveEvent* arg__1)
8412 void PythonQtShell_srecFileWidget::dragMoveEvent(QDragMoveEvent* arg__1)
7290 {
8413 {
7291 if (_wrapper) {
8414 if (_wrapper) {
7292 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
8415 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent");
7293 PyErr_Clear();
8416 PyErr_Clear();
7294 if (obj && !PythonQtSlotFunction_Check(obj)) {
8417 if (obj && !PythonQtSlotFunction_Check(obj)) {
7295 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
8418 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
7296 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8419 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7297 void* args[2] = {NULL, (void*)&arg__1};
8420 void* args[2] = {NULL, (void*)&arg__1};
7298 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8421 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7299 if (result) { Py_DECREF(result); }
8422 if (result) { Py_DECREF(result); }
7300 Py_DECREF(obj);
8423 Py_DECREF(obj);
7301 return;
8424 return;
7302 }
8425 }
7303 }
8426 }
7304 srecFileWidget::dragMoveEvent(arg__1);
8427 srecFileWidget::dragMoveEvent(arg__1);
7305 }
8428 }
7306 void PythonQtShell_srecFileWidget::dropEvent(QDropEvent* arg__1)
8429 void PythonQtShell_srecFileWidget::dropEvent(QDropEvent* arg__1)
7307 {
8430 {
7308 if (_wrapper) {
8431 if (_wrapper) {
7309 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
8432 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent");
7310 PyErr_Clear();
8433 PyErr_Clear();
7311 if (obj && !PythonQtSlotFunction_Check(obj)) {
8434 if (obj && !PythonQtSlotFunction_Check(obj)) {
7312 static const char* argumentList[] ={"" , "QDropEvent*"};
8435 static const char* argumentList[] ={"" , "QDropEvent*"};
7313 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8436 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7314 void* args[2] = {NULL, (void*)&arg__1};
8437 void* args[2] = {NULL, (void*)&arg__1};
7315 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8438 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7316 if (result) { Py_DECREF(result); }
8439 if (result) { Py_DECREF(result); }
7317 Py_DECREF(obj);
8440 Py_DECREF(obj);
7318 return;
8441 return;
7319 }
8442 }
7320 }
8443 }
7321 srecFileWidget::dropEvent(arg__1);
8444 srecFileWidget::dropEvent(arg__1);
7322 }
8445 }
7323 void PythonQtShell_srecFileWidget::enterEvent(QEvent* arg__1)
8446 void PythonQtShell_srecFileWidget::enterEvent(QEvent* arg__1)
7324 {
8447 {
7325 if (_wrapper) {
8448 if (_wrapper) {
7326 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
8449 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent");
7327 PyErr_Clear();
8450 PyErr_Clear();
7328 if (obj && !PythonQtSlotFunction_Check(obj)) {
8451 if (obj && !PythonQtSlotFunction_Check(obj)) {
7329 static const char* argumentList[] ={"" , "QEvent*"};
8452 static const char* argumentList[] ={"" , "QEvent*"};
7330 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8453 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7331 void* args[2] = {NULL, (void*)&arg__1};
8454 void* args[2] = {NULL, (void*)&arg__1};
7332 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8455 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7333 if (result) { Py_DECREF(result); }
8456 if (result) { Py_DECREF(result); }
7334 Py_DECREF(obj);
8457 Py_DECREF(obj);
7335 return;
8458 return;
7336 }
8459 }
7337 }
8460 }
7338 srecFileWidget::enterEvent(arg__1);
8461 srecFileWidget::enterEvent(arg__1);
7339 }
8462 }
7340 bool PythonQtShell_srecFileWidget::event(QEvent* arg__1)
8463 bool PythonQtShell_srecFileWidget::event(QEvent* arg__1)
7341 {
8464 {
7342 if (_wrapper) {
8465 if (_wrapper) {
7343 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
8466 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
7344 PyErr_Clear();
8467 PyErr_Clear();
7345 if (obj && !PythonQtSlotFunction_Check(obj)) {
8468 if (obj && !PythonQtSlotFunction_Check(obj)) {
7346 static const char* argumentList[] ={"bool" , "QEvent*"};
8469 static const char* argumentList[] ={"bool" , "QEvent*"};
7347 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8470 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7348 bool returnValue;
8471 bool returnValue;
7349 void* args[2] = {NULL, (void*)&arg__1};
8472 void* args[2] = {NULL, (void*)&arg__1};
7350 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8473 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7351 if (result) {
8474 if (result) {
7352 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8475 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7353 if (args[0]!=&returnValue) {
8476 if (args[0]!=&returnValue) {
7354 if (args[0]==NULL) {
8477 if (args[0]==NULL) {
7355 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
8478 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
7356 } else {
8479 } else {
7357 returnValue = *((bool*)args[0]);
8480 returnValue = *((bool*)args[0]);
7358 }
8481 }
7359 }
8482 }
7360 }
8483 }
7361 if (result) { Py_DECREF(result); }
8484 if (result) { Py_DECREF(result); }
7362 Py_DECREF(obj);
8485 Py_DECREF(obj);
7363 return returnValue;
8486 return returnValue;
7364 }
8487 }
7365 }
8488 }
7366 return srecFileWidget::event(arg__1);
8489 return srecFileWidget::event(arg__1);
7367 }
8490 }
7368 bool PythonQtShell_srecFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2)
8491 bool PythonQtShell_srecFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2)
7369 {
8492 {
7370 if (_wrapper) {
8493 if (_wrapper) {
7371 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
8494 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
7372 PyErr_Clear();
8495 PyErr_Clear();
7373 if (obj && !PythonQtSlotFunction_Check(obj)) {
8496 if (obj && !PythonQtSlotFunction_Check(obj)) {
7374 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
8497 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
7375 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
8498 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
7376 bool returnValue;
8499 bool returnValue;
7377 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
8500 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
7378 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8501 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7379 if (result) {
8502 if (result) {
7380 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8503 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7381 if (args[0]!=&returnValue) {
8504 if (args[0]!=&returnValue) {
7382 if (args[0]==NULL) {
8505 if (args[0]==NULL) {
7383 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
8506 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
7384 } else {
8507 } else {
7385 returnValue = *((bool*)args[0]);
8508 returnValue = *((bool*)args[0]);
7386 }
8509 }
7387 }
8510 }
7388 }
8511 }
7389 if (result) { Py_DECREF(result); }
8512 if (result) { Py_DECREF(result); }
7390 Py_DECREF(obj);
8513 Py_DECREF(obj);
7391 return returnValue;
8514 return returnValue;
7392 }
8515 }
7393 }
8516 }
7394 return srecFileWidget::eventFilter(arg__1, arg__2);
8517 return srecFileWidget::eventFilter(arg__1, arg__2);
7395 }
8518 }
7396 void PythonQtShell_srecFileWidget::focusInEvent(QFocusEvent* arg__1)
8519 void PythonQtShell_srecFileWidget::focusInEvent(QFocusEvent* arg__1)
7397 {
8520 {
7398 if (_wrapper) {
8521 if (_wrapper) {
7399 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
8522 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent");
7400 PyErr_Clear();
8523 PyErr_Clear();
7401 if (obj && !PythonQtSlotFunction_Check(obj)) {
8524 if (obj && !PythonQtSlotFunction_Check(obj)) {
7402 static const char* argumentList[] ={"" , "QFocusEvent*"};
8525 static const char* argumentList[] ={"" , "QFocusEvent*"};
7403 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8526 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7404 void* args[2] = {NULL, (void*)&arg__1};
8527 void* args[2] = {NULL, (void*)&arg__1};
7405 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8528 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7406 if (result) { Py_DECREF(result); }
8529 if (result) { Py_DECREF(result); }
7407 Py_DECREF(obj);
8530 Py_DECREF(obj);
7408 return;
8531 return;
7409 }
8532 }
7410 }
8533 }
7411 srecFileWidget::focusInEvent(arg__1);
8534 srecFileWidget::focusInEvent(arg__1);
7412 }
8535 }
7413 bool PythonQtShell_srecFileWidget::focusNextPrevChild(bool next)
8536 bool PythonQtShell_srecFileWidget::focusNextPrevChild(bool next)
7414 {
8537 {
7415 if (_wrapper) {
8538 if (_wrapper) {
7416 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
8539 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild");
7417 PyErr_Clear();
8540 PyErr_Clear();
7418 if (obj && !PythonQtSlotFunction_Check(obj)) {
8541 if (obj && !PythonQtSlotFunction_Check(obj)) {
7419 static const char* argumentList[] ={"bool" , "bool"};
8542 static const char* argumentList[] ={"bool" , "bool"};
7420 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8543 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7421 bool returnValue;
8544 bool returnValue;
7422 void* args[2] = {NULL, (void*)&next};
8545 void* args[2] = {NULL, (void*)&next};
7423 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8546 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7424 if (result) {
8547 if (result) {
7425 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8548 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7426 if (args[0]!=&returnValue) {
8549 if (args[0]!=&returnValue) {
7427 if (args[0]==NULL) {
8550 if (args[0]==NULL) {
7428 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
8551 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
7429 } else {
8552 } else {
7430 returnValue = *((bool*)args[0]);
8553 returnValue = *((bool*)args[0]);
7431 }
8554 }
7432 }
8555 }
7433 }
8556 }
7434 if (result) { Py_DECREF(result); }
8557 if (result) { Py_DECREF(result); }
7435 Py_DECREF(obj);
8558 Py_DECREF(obj);
7436 return returnValue;
8559 return returnValue;
7437 }
8560 }
7438 }
8561 }
7439 return srecFileWidget::focusNextPrevChild(next);
8562 return srecFileWidget::focusNextPrevChild(next);
7440 }
8563 }
7441 void PythonQtShell_srecFileWidget::focusOutEvent(QFocusEvent* arg__1)
8564 void PythonQtShell_srecFileWidget::focusOutEvent(QFocusEvent* arg__1)
7442 {
8565 {
7443 if (_wrapper) {
8566 if (_wrapper) {
7444 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
8567 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent");
7445 PyErr_Clear();
8568 PyErr_Clear();
7446 if (obj && !PythonQtSlotFunction_Check(obj)) {
8569 if (obj && !PythonQtSlotFunction_Check(obj)) {
7447 static const char* argumentList[] ={"" , "QFocusEvent*"};
8570 static const char* argumentList[] ={"" , "QFocusEvent*"};
7448 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8571 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7449 void* args[2] = {NULL, (void*)&arg__1};
8572 void* args[2] = {NULL, (void*)&arg__1};
7450 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8573 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7451 if (result) { Py_DECREF(result); }
8574 if (result) { Py_DECREF(result); }
7452 Py_DECREF(obj);
8575 Py_DECREF(obj);
7453 return;
8576 return;
7454 }
8577 }
7455 }
8578 }
7456 srecFileWidget::focusOutEvent(arg__1);
8579 srecFileWidget::focusOutEvent(arg__1);
7457 }
8580 }
7458 bool PythonQtShell_srecFileWidget::hasHeightForWidth() const
8581 bool PythonQtShell_srecFileWidget::hasHeightForWidth() const
7459 {
8582 {
7460 if (_wrapper) {
8583 if (_wrapper) {
7461 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
8584 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth");
7462 PyErr_Clear();
8585 PyErr_Clear();
7463 if (obj && !PythonQtSlotFunction_Check(obj)) {
8586 if (obj && !PythonQtSlotFunction_Check(obj)) {
7464 static const char* argumentList[] ={"bool"};
8587 static const char* argumentList[] ={"bool"};
7465 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8588 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7466 bool returnValue;
8589 bool returnValue;
7467 void* args[1] = {NULL};
8590 void* args[1] = {NULL};
7468 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8591 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7469 if (result) {
8592 if (result) {
7470 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8593 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7471 if (args[0]!=&returnValue) {
8594 if (args[0]!=&returnValue) {
7472 if (args[0]==NULL) {
8595 if (args[0]==NULL) {
7473 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
8596 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
7474 } else {
8597 } else {
7475 returnValue = *((bool*)args[0]);
8598 returnValue = *((bool*)args[0]);
7476 }
8599 }
7477 }
8600 }
7478 }
8601 }
7479 if (result) { Py_DECREF(result); }
8602 if (result) { Py_DECREF(result); }
7480 Py_DECREF(obj);
8603 Py_DECREF(obj);
7481 return returnValue;
8604 return returnValue;
7482 }
8605 }
7483 }
8606 }
7484 return srecFileWidget::hasHeightForWidth();
8607 return srecFileWidget::hasHeightForWidth();
7485 }
8608 }
7486 int PythonQtShell_srecFileWidget::heightForWidth(int arg__1) const
8609 int PythonQtShell_srecFileWidget::heightForWidth(int arg__1) const
7487 {
8610 {
7488 if (_wrapper) {
8611 if (_wrapper) {
7489 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
8612 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth");
7490 PyErr_Clear();
8613 PyErr_Clear();
7491 if (obj && !PythonQtSlotFunction_Check(obj)) {
8614 if (obj && !PythonQtSlotFunction_Check(obj)) {
7492 static const char* argumentList[] ={"int" , "int"};
8615 static const char* argumentList[] ={"int" , "int"};
7493 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8616 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7494 int returnValue;
8617 int returnValue;
7495 void* args[2] = {NULL, (void*)&arg__1};
8618 void* args[2] = {NULL, (void*)&arg__1};
7496 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8619 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7497 if (result) {
8620 if (result) {
7498 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8621 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7499 if (args[0]!=&returnValue) {
8622 if (args[0]!=&returnValue) {
7500 if (args[0]==NULL) {
8623 if (args[0]==NULL) {
7501 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
8624 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
7502 } else {
8625 } else {
7503 returnValue = *((int*)args[0]);
8626 returnValue = *((int*)args[0]);
7504 }
8627 }
7505 }
8628 }
7506 }
8629 }
7507 if (result) { Py_DECREF(result); }
8630 if (result) { Py_DECREF(result); }
7508 Py_DECREF(obj);
8631 Py_DECREF(obj);
7509 return returnValue;
8632 return returnValue;
7510 }
8633 }
7511 }
8634 }
7512 return srecFileWidget::heightForWidth(arg__1);
8635 return srecFileWidget::heightForWidth(arg__1);
7513 }
8636 }
7514 void PythonQtShell_srecFileWidget::hideEvent(QHideEvent* arg__1)
8637 void PythonQtShell_srecFileWidget::hideEvent(QHideEvent* arg__1)
7515 {
8638 {
7516 if (_wrapper) {
8639 if (_wrapper) {
7517 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
8640 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent");
7518 PyErr_Clear();
8641 PyErr_Clear();
7519 if (obj && !PythonQtSlotFunction_Check(obj)) {
8642 if (obj && !PythonQtSlotFunction_Check(obj)) {
7520 static const char* argumentList[] ={"" , "QHideEvent*"};
8643 static const char* argumentList[] ={"" , "QHideEvent*"};
7521 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8644 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7522 void* args[2] = {NULL, (void*)&arg__1};
8645 void* args[2] = {NULL, (void*)&arg__1};
7523 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8646 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7524 if (result) { Py_DECREF(result); }
8647 if (result) { Py_DECREF(result); }
7525 Py_DECREF(obj);
8648 Py_DECREF(obj);
7526 return;
8649 return;
7527 }
8650 }
7528 }
8651 }
7529 srecFileWidget::hideEvent(arg__1);
8652 srecFileWidget::hideEvent(arg__1);
7530 }
8653 }
7531 void PythonQtShell_srecFileWidget::initPainter(QPainter* painter) const
8654 void PythonQtShell_srecFileWidget::initPainter(QPainter* painter) const
7532 {
8655 {
7533 if (_wrapper) {
8656 if (_wrapper) {
7534 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
8657 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter");
7535 PyErr_Clear();
8658 PyErr_Clear();
7536 if (obj && !PythonQtSlotFunction_Check(obj)) {
8659 if (obj && !PythonQtSlotFunction_Check(obj)) {
7537 static const char* argumentList[] ={"" , "QPainter*"};
8660 static const char* argumentList[] ={"" , "QPainter*"};
7538 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8661 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7539 void* args[2] = {NULL, (void*)&painter};
8662 void* args[2] = {NULL, (void*)&painter};
7540 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8663 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7541 if (result) { Py_DECREF(result); }
8664 if (result) { Py_DECREF(result); }
7542 Py_DECREF(obj);
8665 Py_DECREF(obj);
7543 return;
8666 return;
7544 }
8667 }
7545 }
8668 }
7546 srecFileWidget::initPainter(painter);
8669 srecFileWidget::initPainter(painter);
7547 }
8670 }
7548 void PythonQtShell_srecFileWidget::inputMethodEvent(QInputMethodEvent* arg__1)
8671 void PythonQtShell_srecFileWidget::inputMethodEvent(QInputMethodEvent* arg__1)
7549 {
8672 {
7550 if (_wrapper) {
8673 if (_wrapper) {
7551 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
8674 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent");
7552 PyErr_Clear();
8675 PyErr_Clear();
7553 if (obj && !PythonQtSlotFunction_Check(obj)) {
8676 if (obj && !PythonQtSlotFunction_Check(obj)) {
7554 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
8677 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
7555 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8678 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7556 void* args[2] = {NULL, (void*)&arg__1};
8679 void* args[2] = {NULL, (void*)&arg__1};
7557 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8680 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7558 if (result) { Py_DECREF(result); }
8681 if (result) { Py_DECREF(result); }
7559 Py_DECREF(obj);
8682 Py_DECREF(obj);
7560 return;
8683 return;
7561 }
8684 }
7562 }
8685 }
7563 srecFileWidget::inputMethodEvent(arg__1);
8686 srecFileWidget::inputMethodEvent(arg__1);
7564 }
8687 }
7565 QVariant PythonQtShell_srecFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const
8688 QVariant PythonQtShell_srecFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const
7566 {
8689 {
7567 if (_wrapper) {
8690 if (_wrapper) {
7568 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
8691 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery");
7569 PyErr_Clear();
8692 PyErr_Clear();
7570 if (obj && !PythonQtSlotFunction_Check(obj)) {
8693 if (obj && !PythonQtSlotFunction_Check(obj)) {
7571 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
8694 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
7572 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8695 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7573 QVariant returnValue;
8696 QVariant returnValue;
7574 void* args[2] = {NULL, (void*)&arg__1};
8697 void* args[2] = {NULL, (void*)&arg__1};
7575 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8698 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7576 if (result) {
8699 if (result) {
7577 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8700 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7578 if (args[0]!=&returnValue) {
8701 if (args[0]!=&returnValue) {
7579 if (args[0]==NULL) {
8702 if (args[0]==NULL) {
7580 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
8703 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
7581 } else {
8704 } else {
7582 returnValue = *((QVariant*)args[0]);
8705 returnValue = *((QVariant*)args[0]);
7583 }
8706 }
7584 }
8707 }
7585 }
8708 }
7586 if (result) { Py_DECREF(result); }
8709 if (result) { Py_DECREF(result); }
7587 Py_DECREF(obj);
8710 Py_DECREF(obj);
7588 return returnValue;
8711 return returnValue;
7589 }
8712 }
7590 }
8713 }
7591 return srecFileWidget::inputMethodQuery(arg__1);
8714 return srecFileWidget::inputMethodQuery(arg__1);
7592 }
8715 }
7593 void PythonQtShell_srecFileWidget::keyPressEvent(QKeyEvent* arg__1)
8716 void PythonQtShell_srecFileWidget::keyPressEvent(QKeyEvent* arg__1)
7594 {
8717 {
7595 if (_wrapper) {
8718 if (_wrapper) {
7596 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
8719 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent");
7597 PyErr_Clear();
8720 PyErr_Clear();
7598 if (obj && !PythonQtSlotFunction_Check(obj)) {
8721 if (obj && !PythonQtSlotFunction_Check(obj)) {
7599 static const char* argumentList[] ={"" , "QKeyEvent*"};
8722 static const char* argumentList[] ={"" , "QKeyEvent*"};
7600 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8723 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7601 void* args[2] = {NULL, (void*)&arg__1};
8724 void* args[2] = {NULL, (void*)&arg__1};
7602 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8725 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7603 if (result) { Py_DECREF(result); }
8726 if (result) { Py_DECREF(result); }
7604 Py_DECREF(obj);
8727 Py_DECREF(obj);
7605 return;
8728 return;
7606 }
8729 }
7607 }
8730 }
7608 srecFileWidget::keyPressEvent(arg__1);
8731 srecFileWidget::keyPressEvent(arg__1);
7609 }
8732 }
7610 void PythonQtShell_srecFileWidget::keyReleaseEvent(QKeyEvent* arg__1)
8733 void PythonQtShell_srecFileWidget::keyReleaseEvent(QKeyEvent* arg__1)
7611 {
8734 {
7612 if (_wrapper) {
8735 if (_wrapper) {
7613 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
8736 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent");
7614 PyErr_Clear();
8737 PyErr_Clear();
7615 if (obj && !PythonQtSlotFunction_Check(obj)) {
8738 if (obj && !PythonQtSlotFunction_Check(obj)) {
7616 static const char* argumentList[] ={"" , "QKeyEvent*"};
8739 static const char* argumentList[] ={"" , "QKeyEvent*"};
7617 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8740 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7618 void* args[2] = {NULL, (void*)&arg__1};
8741 void* args[2] = {NULL, (void*)&arg__1};
7619 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8742 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7620 if (result) { Py_DECREF(result); }
8743 if (result) { Py_DECREF(result); }
7621 Py_DECREF(obj);
8744 Py_DECREF(obj);
7622 return;
8745 return;
7623 }
8746 }
7624 }
8747 }
7625 srecFileWidget::keyReleaseEvent(arg__1);
8748 srecFileWidget::keyReleaseEvent(arg__1);
7626 }
8749 }
7627 void PythonQtShell_srecFileWidget::leaveEvent(QEvent* arg__1)
8750 void PythonQtShell_srecFileWidget::leaveEvent(QEvent* arg__1)
7628 {
8751 {
7629 if (_wrapper) {
8752 if (_wrapper) {
7630 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
8753 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent");
7631 PyErr_Clear();
8754 PyErr_Clear();
7632 if (obj && !PythonQtSlotFunction_Check(obj)) {
8755 if (obj && !PythonQtSlotFunction_Check(obj)) {
7633 static const char* argumentList[] ={"" , "QEvent*"};
8756 static const char* argumentList[] ={"" , "QEvent*"};
7634 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8757 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7635 void* args[2] = {NULL, (void*)&arg__1};
8758 void* args[2] = {NULL, (void*)&arg__1};
7636 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8759 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7637 if (result) { Py_DECREF(result); }
8760 if (result) { Py_DECREF(result); }
7638 Py_DECREF(obj);
8761 Py_DECREF(obj);
7639 return;
8762 return;
7640 }
8763 }
7641 }
8764 }
7642 srecFileWidget::leaveEvent(arg__1);
8765 srecFileWidget::leaveEvent(arg__1);
7643 }
8766 }
7644 int PythonQtShell_srecFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const
8767 int PythonQtShell_srecFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const
7645 {
8768 {
7646 if (_wrapper) {
8769 if (_wrapper) {
7647 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
8770 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric");
7648 PyErr_Clear();
8771 PyErr_Clear();
7649 if (obj && !PythonQtSlotFunction_Check(obj)) {
8772 if (obj && !PythonQtSlotFunction_Check(obj)) {
7650 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
8773 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
7651 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8774 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7652 int returnValue;
8775 int returnValue;
7653 void* args[2] = {NULL, (void*)&arg__1};
8776 void* args[2] = {NULL, (void*)&arg__1};
7654 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8777 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7655 if (result) {
8778 if (result) {
7656 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8779 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7657 if (args[0]!=&returnValue) {
8780 if (args[0]!=&returnValue) {
7658 if (args[0]==NULL) {
8781 if (args[0]==NULL) {
7659 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
8782 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
7660 } else {
8783 } else {
7661 returnValue = *((int*)args[0]);
8784 returnValue = *((int*)args[0]);
7662 }
8785 }
7663 }
8786 }
7664 }
8787 }
7665 if (result) { Py_DECREF(result); }
8788 if (result) { Py_DECREF(result); }
7666 Py_DECREF(obj);
8789 Py_DECREF(obj);
7667 return returnValue;
8790 return returnValue;
7668 }
8791 }
7669 }
8792 }
7670 return srecFileWidget::metric(arg__1);
8793 return srecFileWidget::metric(arg__1);
7671 }
8794 }
7672 QSize PythonQtShell_srecFileWidget::minimumSizeHint() const
8795 QSize PythonQtShell_srecFileWidget::minimumSizeHint() const
7673 {
8796 {
7674 if (_wrapper) {
8797 if (_wrapper) {
7675 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
8798 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint");
7676 PyErr_Clear();
8799 PyErr_Clear();
7677 if (obj && !PythonQtSlotFunction_Check(obj)) {
8800 if (obj && !PythonQtSlotFunction_Check(obj)) {
7678 static const char* argumentList[] ={"QSize"};
8801 static const char* argumentList[] ={"QSize"};
7679 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8802 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7680 QSize returnValue;
8803 QSize returnValue;
7681 void* args[1] = {NULL};
8804 void* args[1] = {NULL};
7682 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8805 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7683 if (result) {
8806 if (result) {
7684 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8807 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7685 if (args[0]!=&returnValue) {
8808 if (args[0]!=&returnValue) {
7686 if (args[0]==NULL) {
8809 if (args[0]==NULL) {
7687 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
8810 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
7688 } else {
8811 } else {
7689 returnValue = *((QSize*)args[0]);
8812 returnValue = *((QSize*)args[0]);
7690 }
8813 }
7691 }
8814 }
7692 }
8815 }
7693 if (result) { Py_DECREF(result); }
8816 if (result) { Py_DECREF(result); }
7694 Py_DECREF(obj);
8817 Py_DECREF(obj);
7695 return returnValue;
8818 return returnValue;
7696 }
8819 }
7697 }
8820 }
7698 return srecFileWidget::minimumSizeHint();
8821 return srecFileWidget::minimumSizeHint();
7699 }
8822 }
7700 void PythonQtShell_srecFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1)
8823 void PythonQtShell_srecFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1)
7701 {
8824 {
7702 if (_wrapper) {
8825 if (_wrapper) {
7703 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
8826 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent");
7704 PyErr_Clear();
8827 PyErr_Clear();
7705 if (obj && !PythonQtSlotFunction_Check(obj)) {
8828 if (obj && !PythonQtSlotFunction_Check(obj)) {
7706 static const char* argumentList[] ={"" , "QMouseEvent*"};
8829 static const char* argumentList[] ={"" , "QMouseEvent*"};
7707 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8830 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7708 void* args[2] = {NULL, (void*)&arg__1};
8831 void* args[2] = {NULL, (void*)&arg__1};
7709 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8832 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7710 if (result) { Py_DECREF(result); }
8833 if (result) { Py_DECREF(result); }
7711 Py_DECREF(obj);
8834 Py_DECREF(obj);
7712 return;
8835 return;
7713 }
8836 }
7714 }
8837 }
7715 srecFileWidget::mouseDoubleClickEvent(arg__1);
8838 srecFileWidget::mouseDoubleClickEvent(arg__1);
7716 }
8839 }
7717 void PythonQtShell_srecFileWidget::mouseMoveEvent(QMouseEvent* arg__1)
8840 void PythonQtShell_srecFileWidget::mouseMoveEvent(QMouseEvent* arg__1)
7718 {
8841 {
7719 if (_wrapper) {
8842 if (_wrapper) {
7720 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
8843 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent");
7721 PyErr_Clear();
8844 PyErr_Clear();
7722 if (obj && !PythonQtSlotFunction_Check(obj)) {
8845 if (obj && !PythonQtSlotFunction_Check(obj)) {
7723 static const char* argumentList[] ={"" , "QMouseEvent*"};
8846 static const char* argumentList[] ={"" , "QMouseEvent*"};
7724 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8847 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7725 void* args[2] = {NULL, (void*)&arg__1};
8848 void* args[2] = {NULL, (void*)&arg__1};
7726 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8849 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7727 if (result) { Py_DECREF(result); }
8850 if (result) { Py_DECREF(result); }
7728 Py_DECREF(obj);
8851 Py_DECREF(obj);
7729 return;
8852 return;
7730 }
8853 }
7731 }
8854 }
7732 srecFileWidget::mouseMoveEvent(arg__1);
8855 srecFileWidget::mouseMoveEvent(arg__1);
7733 }
8856 }
7734 void PythonQtShell_srecFileWidget::mousePressEvent(QMouseEvent* arg__1)
8857 void PythonQtShell_srecFileWidget::mousePressEvent(QMouseEvent* arg__1)
7735 {
8858 {
7736 if (_wrapper) {
8859 if (_wrapper) {
7737 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
8860 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent");
7738 PyErr_Clear();
8861 PyErr_Clear();
7739 if (obj && !PythonQtSlotFunction_Check(obj)) {
8862 if (obj && !PythonQtSlotFunction_Check(obj)) {
7740 static const char* argumentList[] ={"" , "QMouseEvent*"};
8863 static const char* argumentList[] ={"" , "QMouseEvent*"};
7741 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8864 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7742 void* args[2] = {NULL, (void*)&arg__1};
8865 void* args[2] = {NULL, (void*)&arg__1};
7743 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8866 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7744 if (result) { Py_DECREF(result); }
8867 if (result) { Py_DECREF(result); }
7745 Py_DECREF(obj);
8868 Py_DECREF(obj);
7746 return;
8869 return;
7747 }
8870 }
7748 }
8871 }
7749 srecFileWidget::mousePressEvent(arg__1);
8872 srecFileWidget::mousePressEvent(arg__1);
7750 }
8873 }
7751 void PythonQtShell_srecFileWidget::mouseReleaseEvent(QMouseEvent* arg__1)
8874 void PythonQtShell_srecFileWidget::mouseReleaseEvent(QMouseEvent* arg__1)
7752 {
8875 {
7753 if (_wrapper) {
8876 if (_wrapper) {
7754 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
8877 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent");
7755 PyErr_Clear();
8878 PyErr_Clear();
7756 if (obj && !PythonQtSlotFunction_Check(obj)) {
8879 if (obj && !PythonQtSlotFunction_Check(obj)) {
7757 static const char* argumentList[] ={"" , "QMouseEvent*"};
8880 static const char* argumentList[] ={"" , "QMouseEvent*"};
7758 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8881 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7759 void* args[2] = {NULL, (void*)&arg__1};
8882 void* args[2] = {NULL, (void*)&arg__1};
7760 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8883 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7761 if (result) { Py_DECREF(result); }
8884 if (result) { Py_DECREF(result); }
7762 Py_DECREF(obj);
8885 Py_DECREF(obj);
7763 return;
8886 return;
7764 }
8887 }
7765 }
8888 }
7766 srecFileWidget::mouseReleaseEvent(arg__1);
8889 srecFileWidget::mouseReleaseEvent(arg__1);
7767 }
8890 }
7768 void PythonQtShell_srecFileWidget::moveEvent(QMoveEvent* arg__1)
8891 void PythonQtShell_srecFileWidget::moveEvent(QMoveEvent* arg__1)
7769 {
8892 {
7770 if (_wrapper) {
8893 if (_wrapper) {
7771 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
8894 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent");
7772 PyErr_Clear();
8895 PyErr_Clear();
7773 if (obj && !PythonQtSlotFunction_Check(obj)) {
8896 if (obj && !PythonQtSlotFunction_Check(obj)) {
7774 static const char* argumentList[] ={"" , "QMoveEvent*"};
8897 static const char* argumentList[] ={"" , "QMoveEvent*"};
7775 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8898 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7776 void* args[2] = {NULL, (void*)&arg__1};
8899 void* args[2] = {NULL, (void*)&arg__1};
7777 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8900 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7778 if (result) { Py_DECREF(result); }
8901 if (result) { Py_DECREF(result); }
7779 Py_DECREF(obj);
8902 Py_DECREF(obj);
7780 return;
8903 return;
7781 }
8904 }
7782 }
8905 }
7783 srecFileWidget::moveEvent(arg__1);
8906 srecFileWidget::moveEvent(arg__1);
7784 }
8907 }
7785 bool PythonQtShell_srecFileWidget::nativeEvent(const QByteArray& eventType, void* message, long* result)
8908 bool PythonQtShell_srecFileWidget::nativeEvent(const QByteArray& eventType, void* message, long* result)
7786 {
8909 {
7787 if (_wrapper) {
8910 if (_wrapper) {
7788 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
8911 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent");
7789 PyErr_Clear();
8912 PyErr_Clear();
7790 if (obj && !PythonQtSlotFunction_Check(obj)) {
8913 if (obj && !PythonQtSlotFunction_Check(obj)) {
7791 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
8914 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
7792 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
8915 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
7793 bool returnValue;
8916 bool returnValue;
7794 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
8917 void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result};
7795 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8918 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7796 if (result) {
8919 if (result) {
7797 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8920 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7798 if (args[0]!=&returnValue) {
8921 if (args[0]!=&returnValue) {
7799 if (args[0]==NULL) {
8922 if (args[0]==NULL) {
7800 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
8923 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
7801 } else {
8924 } else {
7802 returnValue = *((bool*)args[0]);
8925 returnValue = *((bool*)args[0]);
7803 }
8926 }
7804 }
8927 }
7805 }
8928 }
7806 if (result) { Py_DECREF(result); }
8929 if (result) { Py_DECREF(result); }
7807 Py_DECREF(obj);
8930 Py_DECREF(obj);
7808 return returnValue;
8931 return returnValue;
7809 }
8932 }
7810 }
8933 }
7811 return srecFileWidget::nativeEvent(eventType, message, result);
8934 return srecFileWidget::nativeEvent(eventType, message, result);
7812 }
8935 }
7813 QPaintEngine* PythonQtShell_srecFileWidget::paintEngine() const
8936 QPaintEngine* PythonQtShell_srecFileWidget::paintEngine() const
7814 {
8937 {
7815 if (_wrapper) {
8938 if (_wrapper) {
7816 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
8939 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine");
7817 PyErr_Clear();
8940 PyErr_Clear();
7818 if (obj && !PythonQtSlotFunction_Check(obj)) {
8941 if (obj && !PythonQtSlotFunction_Check(obj)) {
7819 static const char* argumentList[] ={"QPaintEngine*"};
8942 static const char* argumentList[] ={"QPaintEngine*"};
7820 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
8943 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7821 QPaintEngine* returnValue;
8944 QPaintEngine* returnValue;
7822 void* args[1] = {NULL};
8945 void* args[1] = {NULL};
7823 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8946 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7824 if (result) {
8947 if (result) {
7825 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8948 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7826 if (args[0]!=&returnValue) {
8949 if (args[0]!=&returnValue) {
7827 if (args[0]==NULL) {
8950 if (args[0]==NULL) {
7828 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
8951 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
7829 } else {
8952 } else {
7830 returnValue = *((QPaintEngine**)args[0]);
8953 returnValue = *((QPaintEngine**)args[0]);
7831 }
8954 }
7832 }
8955 }
7833 }
8956 }
7834 if (result) { Py_DECREF(result); }
8957 if (result) { Py_DECREF(result); }
7835 Py_DECREF(obj);
8958 Py_DECREF(obj);
7836 return returnValue;
8959 return returnValue;
7837 }
8960 }
7838 }
8961 }
7839 return srecFileWidget::paintEngine();
8962 return srecFileWidget::paintEngine();
7840 }
8963 }
7841 void PythonQtShell_srecFileWidget::paintEvent(QPaintEvent* arg__1)
8964 void PythonQtShell_srecFileWidget::paintEvent(QPaintEvent* arg__1)
7842 {
8965 {
7843 if (_wrapper) {
8966 if (_wrapper) {
7844 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
8967 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent");
7845 PyErr_Clear();
8968 PyErr_Clear();
7846 if (obj && !PythonQtSlotFunction_Check(obj)) {
8969 if (obj && !PythonQtSlotFunction_Check(obj)) {
7847 static const char* argumentList[] ={"" , "QPaintEvent*"};
8970 static const char* argumentList[] ={"" , "QPaintEvent*"};
7848 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8971 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7849 void* args[2] = {NULL, (void*)&arg__1};
8972 void* args[2] = {NULL, (void*)&arg__1};
7850 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8973 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7851 if (result) { Py_DECREF(result); }
8974 if (result) { Py_DECREF(result); }
7852 Py_DECREF(obj);
8975 Py_DECREF(obj);
7853 return;
8976 return;
7854 }
8977 }
7855 }
8978 }
7856 srecFileWidget::paintEvent(arg__1);
8979 srecFileWidget::paintEvent(arg__1);
7857 }
8980 }
7858 QPaintDevice* PythonQtShell_srecFileWidget::redirected(QPoint* offset) const
8981 QPaintDevice* PythonQtShell_srecFileWidget::redirected(QPoint* offset) const
7859 {
8982 {
7860 if (_wrapper) {
8983 if (_wrapper) {
7861 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
8984 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected");
7862 PyErr_Clear();
8985 PyErr_Clear();
7863 if (obj && !PythonQtSlotFunction_Check(obj)) {
8986 if (obj && !PythonQtSlotFunction_Check(obj)) {
7864 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
8987 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
7865 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8988 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7866 QPaintDevice* returnValue;
8989 QPaintDevice* returnValue;
7867 void* args[2] = {NULL, (void*)&offset};
8990 void* args[2] = {NULL, (void*)&offset};
7868 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8991 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7869 if (result) {
8992 if (result) {
7870 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
8993 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7871 if (args[0]!=&returnValue) {
8994 if (args[0]!=&returnValue) {
7872 if (args[0]==NULL) {
8995 if (args[0]==NULL) {
7873 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
8996 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
7874 } else {
8997 } else {
7875 returnValue = *((QPaintDevice**)args[0]);
8998 returnValue = *((QPaintDevice**)args[0]);
7876 }
8999 }
7877 }
9000 }
7878 }
9001 }
7879 if (result) { Py_DECREF(result); }
9002 if (result) { Py_DECREF(result); }
7880 Py_DECREF(obj);
9003 Py_DECREF(obj);
7881 return returnValue;
9004 return returnValue;
7882 }
9005 }
7883 }
9006 }
7884 return srecFileWidget::redirected(offset);
9007 return srecFileWidget::redirected(offset);
7885 }
9008 }
7886 void PythonQtShell_srecFileWidget::resizeEvent(QResizeEvent* arg__1)
9009 void PythonQtShell_srecFileWidget::resizeEvent(QResizeEvent* arg__1)
7887 {
9010 {
7888 if (_wrapper) {
9011 if (_wrapper) {
7889 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
9012 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent");
7890 PyErr_Clear();
9013 PyErr_Clear();
7891 if (obj && !PythonQtSlotFunction_Check(obj)) {
9014 if (obj && !PythonQtSlotFunction_Check(obj)) {
7892 static const char* argumentList[] ={"" , "QResizeEvent*"};
9015 static const char* argumentList[] ={"" , "QResizeEvent*"};
7893 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9016 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7894 void* args[2] = {NULL, (void*)&arg__1};
9017 void* args[2] = {NULL, (void*)&arg__1};
7895 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9018 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7896 if (result) { Py_DECREF(result); }
9019 if (result) { Py_DECREF(result); }
7897 Py_DECREF(obj);
9020 Py_DECREF(obj);
7898 return;
9021 return;
7899 }
9022 }
7900 }
9023 }
7901 srecFileWidget::resizeEvent(arg__1);
9024 srecFileWidget::resizeEvent(arg__1);
7902 }
9025 }
7903 QPainter* PythonQtShell_srecFileWidget::sharedPainter() const
9026 QPainter* PythonQtShell_srecFileWidget::sharedPainter() const
7904 {
9027 {
7905 if (_wrapper) {
9028 if (_wrapper) {
7906 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
9029 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter");
7907 PyErr_Clear();
9030 PyErr_Clear();
7908 if (obj && !PythonQtSlotFunction_Check(obj)) {
9031 if (obj && !PythonQtSlotFunction_Check(obj)) {
7909 static const char* argumentList[] ={"QPainter*"};
9032 static const char* argumentList[] ={"QPainter*"};
7910 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
9033 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7911 QPainter* returnValue;
9034 QPainter* returnValue;
7912 void* args[1] = {NULL};
9035 void* args[1] = {NULL};
7913 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9036 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7914 if (result) {
9037 if (result) {
7915 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
9038 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7916 if (args[0]!=&returnValue) {
9039 if (args[0]!=&returnValue) {
7917 if (args[0]==NULL) {
9040 if (args[0]==NULL) {
7918 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
9041 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
7919 } else {
9042 } else {
7920 returnValue = *((QPainter**)args[0]);
9043 returnValue = *((QPainter**)args[0]);
7921 }
9044 }
7922 }
9045 }
7923 }
9046 }
7924 if (result) { Py_DECREF(result); }
9047 if (result) { Py_DECREF(result); }
7925 Py_DECREF(obj);
9048 Py_DECREF(obj);
7926 return returnValue;
9049 return returnValue;
7927 }
9050 }
7928 }
9051 }
7929 return srecFileWidget::sharedPainter();
9052 return srecFileWidget::sharedPainter();
7930 }
9053 }
7931 void PythonQtShell_srecFileWidget::showEvent(QShowEvent* arg__1)
9054 void PythonQtShell_srecFileWidget::showEvent(QShowEvent* arg__1)
7932 {
9055 {
7933 if (_wrapper) {
9056 if (_wrapper) {
7934 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
9057 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent");
7935 PyErr_Clear();
9058 PyErr_Clear();
7936 if (obj && !PythonQtSlotFunction_Check(obj)) {
9059 if (obj && !PythonQtSlotFunction_Check(obj)) {
7937 static const char* argumentList[] ={"" , "QShowEvent*"};
9060 static const char* argumentList[] ={"" , "QShowEvent*"};
7938 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9061 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7939 void* args[2] = {NULL, (void*)&arg__1};
9062 void* args[2] = {NULL, (void*)&arg__1};
7940 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9063 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7941 if (result) { Py_DECREF(result); }
9064 if (result) { Py_DECREF(result); }
7942 Py_DECREF(obj);
9065 Py_DECREF(obj);
7943 return;
9066 return;
7944 }
9067 }
7945 }
9068 }
7946 srecFileWidget::showEvent(arg__1);
9069 srecFileWidget::showEvent(arg__1);
7947 }
9070 }
7948 QSize PythonQtShell_srecFileWidget::sizeHint() const
9071 QSize PythonQtShell_srecFileWidget::sizeHint() const
7949 {
9072 {
7950 if (_wrapper) {
9073 if (_wrapper) {
7951 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
9074 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint");
7952 PyErr_Clear();
9075 PyErr_Clear();
7953 if (obj && !PythonQtSlotFunction_Check(obj)) {
9076 if (obj && !PythonQtSlotFunction_Check(obj)) {
7954 static const char* argumentList[] ={"QSize"};
9077 static const char* argumentList[] ={"QSize"};
7955 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
9078 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
7956 QSize returnValue;
9079 QSize returnValue;
7957 void* args[1] = {NULL};
9080 void* args[1] = {NULL};
7958 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9081 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7959 if (result) {
9082 if (result) {
7960 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
9083 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
7961 if (args[0]!=&returnValue) {
9084 if (args[0]!=&returnValue) {
7962 if (args[0]==NULL) {
9085 if (args[0]==NULL) {
7963 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
9086 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
7964 } else {
9087 } else {
7965 returnValue = *((QSize*)args[0]);
9088 returnValue = *((QSize*)args[0]);
7966 }
9089 }
7967 }
9090 }
7968 }
9091 }
7969 if (result) { Py_DECREF(result); }
9092 if (result) { Py_DECREF(result); }
7970 Py_DECREF(obj);
9093 Py_DECREF(obj);
7971 return returnValue;
9094 return returnValue;
7972 }
9095 }
7973 }
9096 }
7974 return srecFileWidget::sizeHint();
9097 return srecFileWidget::sizeHint();
7975 }
9098 }
7976 void PythonQtShell_srecFileWidget::tabletEvent(QTabletEvent* arg__1)
9099 void PythonQtShell_srecFileWidget::tabletEvent(QTabletEvent* arg__1)
7977 {
9100 {
7978 if (_wrapper) {
9101 if (_wrapper) {
7979 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
9102 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent");
7980 PyErr_Clear();
9103 PyErr_Clear();
7981 if (obj && !PythonQtSlotFunction_Check(obj)) {
9104 if (obj && !PythonQtSlotFunction_Check(obj)) {
7982 static const char* argumentList[] ={"" , "QTabletEvent*"};
9105 static const char* argumentList[] ={"" , "QTabletEvent*"};
7983 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9106 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7984 void* args[2] = {NULL, (void*)&arg__1};
9107 void* args[2] = {NULL, (void*)&arg__1};
7985 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9108 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7986 if (result) { Py_DECREF(result); }
9109 if (result) { Py_DECREF(result); }
7987 Py_DECREF(obj);
9110 Py_DECREF(obj);
7988 return;
9111 return;
7989 }
9112 }
7990 }
9113 }
7991 srecFileWidget::tabletEvent(arg__1);
9114 srecFileWidget::tabletEvent(arg__1);
7992 }
9115 }
7993 void PythonQtShell_srecFileWidget::timerEvent(QTimerEvent* arg__1)
9116 void PythonQtShell_srecFileWidget::timerEvent(QTimerEvent* arg__1)
7994 {
9117 {
7995 if (_wrapper) {
9118 if (_wrapper) {
7996 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
9119 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
7997 PyErr_Clear();
9120 PyErr_Clear();
7998 if (obj && !PythonQtSlotFunction_Check(obj)) {
9121 if (obj && !PythonQtSlotFunction_Check(obj)) {
7999 static const char* argumentList[] ={"" , "QTimerEvent*"};
9122 static const char* argumentList[] ={"" , "QTimerEvent*"};
8000 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9123 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8001 void* args[2] = {NULL, (void*)&arg__1};
9124 void* args[2] = {NULL, (void*)&arg__1};
8002 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9125 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8003 if (result) { Py_DECREF(result); }
9126 if (result) { Py_DECREF(result); }
8004 Py_DECREF(obj);
9127 Py_DECREF(obj);
8005 return;
9128 return;
8006 }
9129 }
8007 }
9130 }
8008 srecFileWidget::timerEvent(arg__1);
9131 srecFileWidget::timerEvent(arg__1);
8009 }
9132 }
8010 void PythonQtShell_srecFileWidget::wheelEvent(QWheelEvent* arg__1)
9133 void PythonQtShell_srecFileWidget::wheelEvent(QWheelEvent* arg__1)
8011 {
9134 {
8012 if (_wrapper) {
9135 if (_wrapper) {
8013 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
9136 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent");
8014 PyErr_Clear();
9137 PyErr_Clear();
8015 if (obj && !PythonQtSlotFunction_Check(obj)) {
9138 if (obj && !PythonQtSlotFunction_Check(obj)) {
8016 static const char* argumentList[] ={"" , "QWheelEvent*"};
9139 static const char* argumentList[] ={"" , "QWheelEvent*"};
8017 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
9140 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
8018 void* args[2] = {NULL, (void*)&arg__1};
9141 void* args[2] = {NULL, (void*)&arg__1};
8019 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
9142 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
8020 if (result) { Py_DECREF(result); }
9143 if (result) { Py_DECREF(result); }
8021 Py_DECREF(obj);
9144 Py_DECREF(obj);
8022 return;
9145 return;
8023 }
9146 }
8024 }
9147 }
8025 srecFileWidget::wheelEvent(arg__1);
9148 srecFileWidget::wheelEvent(arg__1);
8026 }
9149 }
8027 srecFileWidget* PythonQtWrapper_srecFileWidget::new_srecFileWidget(QWidget* parent)
9150 srecFileWidget* PythonQtWrapper_srecFileWidget::new_srecFileWidget(QWidget* parent)
8028 {
9151 {
8029 return new PythonQtShell_srecFileWidget(parent); }
9152 return new PythonQtShell_srecFileWidget(parent); }
8030
9153
8031
9154
@@ -1,908 +1,1032
1 #include <PythonQt.h>
1 #include <PythonQt.h>
2 #include <QIconEngine>
2 #include <QIconEngine>
3 #include <QObject>
3 #include <QObject>
4 #include <QSpinBox>
4 #include <QSpinBox>
5 #include <QVariant>
5 #include <QVariant>
6 #include <QWidget>
6 #include <QWidget>
7 #include <SocExplorerPlot.h>
7 #include <SocExplorerPlot.h>
8 #include <abstractbinfile.h>
8 #include <abstractbinfile.h>
9 #include <binaryfile.h>
10 #include <binaryfilewidget.h>
9 #include <elffile.h>
11 #include <elffile.h>
10 #include <elffilewidget.h>
12 #include <elffilewidget.h>
11 #include <elfinfowdgt.h>
13 #include <elfinfowdgt.h>
12 #include <elfparser.h>
14 #include <elfparser.h>
13 #include <memsizewdgt.h>
15 #include <memsizewdgt.h>
14 #include <qaction.h>
16 #include <qaction.h>
15 #include <qbitmap.h>
17 #include <qbitmap.h>
16 #include <qbytearray.h>
18 #include <qbytearray.h>
17 #include <qcolor.h>
19 #include <qcolor.h>
18 #include <qcoreevent.h>
20 #include <qcoreevent.h>
19 #include <qcursor.h>
21 #include <qcursor.h>
20 #include <qevent.h>
22 #include <qevent.h>
21 #include <qfile.h>
23 #include <qfile.h>
22 #include <qfont.h>
24 #include <qfont.h>
23 #include <qgraphicseffect.h>
25 #include <qgraphicseffect.h>
24 #include <qgraphicsproxywidget.h>
26 #include <qgraphicsproxywidget.h>
25 #include <qhexedit.h>
27 #include <qhexedit.h>
26 #include <qhexspinbox.h>
28 #include <qhexspinbox.h>
27 #include <qkeysequence.h>
29 #include <qkeysequence.h>
28 #include <qlayout.h>
30 #include <qlayout.h>
29 #include <qlineedit.h>
31 #include <qlineedit.h>
30 #include <qlist.h>
32 #include <qlist.h>
31 #include <qlocale.h>
33 #include <qlocale.h>
32 #include <qmargins.h>
34 #include <qmargins.h>
33 #include <qobject.h>
35 #include <qobject.h>
34 #include <qpaintdevice.h>
36 #include <qpaintdevice.h>
35 #include <qpaintengine.h>
37 #include <qpaintengine.h>
36 #include <qpainter.h>
38 #include <qpainter.h>
37 #include <qpalette.h>
39 #include <qpalette.h>
38 #include <qpen.h>
40 #include <qpen.h>
39 #include <qpixmap.h>
41 #include <qpixmap.h>
40 #include <qpoint.h>
42 #include <qpoint.h>
41 #include <qrect.h>
43 #include <qrect.h>
42 #include <qregion.h>
44 #include <qregion.h>
43 #include <qscrollarea.h>
45 #include <qscrollarea.h>
44 #include <qscrollbar.h>
46 #include <qscrollbar.h>
45 #include <qsize.h>
47 #include <qsize.h>
46 #include <qsizepolicy.h>
48 #include <qsizepolicy.h>
47 #include <qspinbox.h>
49 #include <qspinbox.h>
48 #include <qstringlist.h>
50 #include <qstringlist.h>
49 #include <qstyle.h>
51 #include <qstyle.h>
50 #include <qstyleoption.h>
52 #include <qstyleoption.h>
51 #include <qwidget.h>
53 #include <qwidget.h>
52 #include <srecfile.h>
54 #include <srecfile.h>
53 #include <srecfilewidget.h>
55 #include <srecfilewidget.h>
54 #include <tcp_terminal_client.h>
56 #include <tcp_terminal_client.h>
55 #include <xbytearray.h>
57 #include <xbytearray.h>
56
58
57
59
58
60
59 class PythonQtShell_ElfFile : public ElfFile
61 class PythonQtShell_ElfFile : public ElfFile
60 {
62 {
61 public:
63 public:
62 PythonQtShell_ElfFile():ElfFile(),_wrapper(NULL) {};
64 PythonQtShell_ElfFile():ElfFile(),_wrapper(NULL) {};
63 PythonQtShell_ElfFile(const QString& File):ElfFile(File),_wrapper(NULL) {};
65 PythonQtShell_ElfFile(const QString& File):ElfFile(File),_wrapper(NULL) {};
64
66
65 ~PythonQtShell_ElfFile();
67 ~PythonQtShell_ElfFile();
66
68
67 virtual int closeFile();
69 virtual int closeFile();
68 virtual QList<codeFragment* > getFragments();
70 virtual QList<codeFragment* > getFragments();
69 virtual bool isopened();
71 virtual bool isopened();
70 virtual bool openFile(const QString& File);
72 virtual bool openFile(const QString& File);
71
73
72 PythonQtInstanceWrapper* _wrapper;
74 PythonQtInstanceWrapper* _wrapper;
73 };
75 };
74
76
75 class PythonQtPublicPromoter_ElfFile : public ElfFile
77 class PythonQtPublicPromoter_ElfFile : public ElfFile
76 { public:
78 { public:
77 inline int promoted_closeFile() { return ElfFile::closeFile(); }
79 inline int promoted_closeFile() { return ElfFile::closeFile(); }
78 inline QList<codeFragment* > promoted_getFragments() { return ElfFile::getFragments(); }
80 inline QList<codeFragment* > promoted_getFragments() { return ElfFile::getFragments(); }
79 inline bool promoted_isopened() { return ElfFile::isopened(); }
81 inline bool promoted_isopened() { return ElfFile::isopened(); }
80 inline bool promoted_openFile(const QString& File) { return ElfFile::openFile(File); }
82 inline bool promoted_openFile(const QString& File) { return ElfFile::openFile(File); }
81 };
83 };
82
84
83 class PythonQtWrapper_ElfFile : public QObject
85 class PythonQtWrapper_ElfFile : public QObject
84 { Q_OBJECT
86 { Q_OBJECT
85 public:
87 public:
86 public slots:
88 public slots:
87 ElfFile* new_ElfFile();
89 ElfFile* new_ElfFile();
88 ElfFile* new_ElfFile(const QString& File);
90 ElfFile* new_ElfFile(const QString& File);
89 void delete_ElfFile(ElfFile* obj) { delete obj; }
91 void delete_ElfFile(ElfFile* obj) { delete obj; }
90 int closeFile(ElfFile* theWrappedObject);
92 int closeFile(ElfFile* theWrappedObject);
91 QString getABI(ElfFile* theWrappedObject);
93 QString getABI(ElfFile* theWrappedObject);
92 QString getArchitecture(ElfFile* theWrappedObject);
94 QString getArchitecture(ElfFile* theWrappedObject);
93 QString getClass(ElfFile* theWrappedObject);
95 QString getClass(ElfFile* theWrappedObject);
94 QString getEndianness(ElfFile* theWrappedObject);
96 QString getEndianness(ElfFile* theWrappedObject);
95 qint64 getEntryPointAddress(ElfFile* theWrappedObject);
97 qint64 getEntryPointAddress(ElfFile* theWrappedObject);
96 QList<codeFragment* > getFragments(ElfFile* theWrappedObject);
98 QList<codeFragment* > getFragments(ElfFile* theWrappedObject);
97 QList<codeFragment* > getFragments(ElfFile* theWrappedObject, QStringList fragmentList);
99 QList<codeFragment* > getFragments(ElfFile* theWrappedObject, QStringList fragmentList);
98 int getSectionCount(ElfFile* theWrappedObject);
100 int getSectionCount(ElfFile* theWrappedObject);
99 bool getSectionData(ElfFile* theWrappedObject, int index, char** buffer);
101 bool getSectionData(ElfFile* theWrappedObject, int index, char** buffer);
100 qint64 getSectionDatasz(ElfFile* theWrappedObject, int index);
102 qint64 getSectionDatasz(ElfFile* theWrappedObject, int index);
101 int getSectionIndex(ElfFile* theWrappedObject, QString name);
103 int getSectionIndex(ElfFile* theWrappedObject, QString name);
102 qint64 getSectionMemsz(ElfFile* theWrappedObject, int index);
104 qint64 getSectionMemsz(ElfFile* theWrappedObject, int index);
103 QString getSectionName(ElfFile* theWrappedObject, int index);
105 QString getSectionName(ElfFile* theWrappedObject, int index);
104 qint64 getSectionPaddr(ElfFile* theWrappedObject, int index);
106 qint64 getSectionPaddr(ElfFile* theWrappedObject, int index);
105 QString getSectionType(ElfFile* theWrappedObject, int index);
107 QString getSectionType(ElfFile* theWrappedObject, int index);
106 int getSegmentCount(ElfFile* theWrappedObject);
108 int getSegmentCount(ElfFile* theWrappedObject);
107 qint64 getSegmentFilesz(ElfFile* theWrappedObject, int index);
109 qint64 getSegmentFilesz(ElfFile* theWrappedObject, int index);
108 QString getSegmentFlags(ElfFile* theWrappedObject, int index);
110 QString getSegmentFlags(ElfFile* theWrappedObject, int index);
109 qint64 getSegmentMemsz(ElfFile* theWrappedObject, int index);
111 qint64 getSegmentMemsz(ElfFile* theWrappedObject, int index);
110 qint64 getSegmentOffset(ElfFile* theWrappedObject, int index);
112 qint64 getSegmentOffset(ElfFile* theWrappedObject, int index);
111 qint64 getSegmentPaddr(ElfFile* theWrappedObject, int index);
113 qint64 getSegmentPaddr(ElfFile* theWrappedObject, int index);
112 QString getSegmentType(ElfFile* theWrappedObject, int index);
114 QString getSegmentType(ElfFile* theWrappedObject, int index);
113 qint64 getSegmentVaddr(ElfFile* theWrappedObject, int index);
115 qint64 getSegmentVaddr(ElfFile* theWrappedObject, int index);
114 quint64 getSymbolAddress(ElfFile* theWrappedObject, int index);
116 quint64 getSymbolAddress(ElfFile* theWrappedObject, int index);
115 int getSymbolCount(ElfFile* theWrappedObject);
117 int getSymbolCount(ElfFile* theWrappedObject);
116 QString getSymbolLinkType(ElfFile* theWrappedObject, int index);
118 QString getSymbolLinkType(ElfFile* theWrappedObject, int index);
117 QString getSymbolName(ElfFile* theWrappedObject, int index);
119 QString getSymbolName(ElfFile* theWrappedObject, int index);
118 int getSymbolSectionIndex(ElfFile* theWrappedObject, int index);
120 int getSymbolSectionIndex(ElfFile* theWrappedObject, int index);
119 QString getSymbolSectionName(ElfFile* theWrappedObject, int index);
121 QString getSymbolSectionName(ElfFile* theWrappedObject, int index);
120 quint64 getSymbolSize(ElfFile* theWrappedObject, int index);
122 quint64 getSymbolSize(ElfFile* theWrappedObject, int index);
121 QString getSymbolType(ElfFile* theWrappedObject, int index);
123 QString getSymbolType(ElfFile* theWrappedObject, int index);
122 QString getType(ElfFile* theWrappedObject);
124 QString getType(ElfFile* theWrappedObject);
123 qint64 getVersion(ElfFile* theWrappedObject);
125 qint64 getVersion(ElfFile* theWrappedObject);
124 bool static_ElfFile_isElf(const QString& File);
126 bool static_ElfFile_isElf(const QString& File);
125 bool iself(ElfFile* theWrappedObject);
127 bool iself(ElfFile* theWrappedObject);
126 bool isopened(ElfFile* theWrappedObject);
128 bool isopened(ElfFile* theWrappedObject);
127 bool openFile(ElfFile* theWrappedObject, const QString& File);
129 bool openFile(ElfFile* theWrappedObject, const QString& File);
130 bool sectionIsNobits(ElfFile* theWrappedObject, int index);
128 bool toSrec(ElfFile* theWrappedObject, const QString& File);
131 bool toSrec(ElfFile* theWrappedObject, const QString& File);
129 };
132 };
130
133
131
134
132
135
133
136
134
137
135 class PythonQtShell_MemSizeWdgt : public MemSizeWdgt
138 class PythonQtShell_MemSizeWdgt : public MemSizeWdgt
136 {
139 {
137 public:
140 public:
138 PythonQtShell_MemSizeWdgt(QWidget* parent = 0):MemSizeWdgt(parent),_wrapper(NULL) {};
141 PythonQtShell_MemSizeWdgt(QWidget* parent = 0):MemSizeWdgt(parent),_wrapper(NULL) {};
139 PythonQtShell_MemSizeWdgt(int defaultSize, QWidget* parent = 0):MemSizeWdgt(defaultSize, parent),_wrapper(NULL) {};
142 PythonQtShell_MemSizeWdgt(int defaultSize, QWidget* parent = 0):MemSizeWdgt(defaultSize, parent),_wrapper(NULL) {};
140
143
141 ~PythonQtShell_MemSizeWdgt();
144 ~PythonQtShell_MemSizeWdgt();
142
145
143 virtual void actionEvent(QActionEvent* arg__1);
146 virtual void actionEvent(QActionEvent* arg__1);
144 virtual void changeEvent(QEvent* arg__1);
147 virtual void changeEvent(QEvent* arg__1);
145 virtual void childEvent(QChildEvent* arg__1);
148 virtual void childEvent(QChildEvent* arg__1);
146 virtual void closeEvent(QCloseEvent* arg__1);
149 virtual void closeEvent(QCloseEvent* arg__1);
147 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
150 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
148 virtual void customEvent(QEvent* arg__1);
151 virtual void customEvent(QEvent* arg__1);
149 virtual int devType() const;
152 virtual int devType() const;
150 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
153 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
151 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
154 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
152 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
155 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
153 virtual void dropEvent(QDropEvent* arg__1);
156 virtual void dropEvent(QDropEvent* arg__1);
154 virtual void enterEvent(QEvent* arg__1);
157 virtual void enterEvent(QEvent* arg__1);
155 virtual bool event(QEvent* arg__1);
158 virtual bool event(QEvent* arg__1);
156 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
159 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
157 virtual void focusInEvent(QFocusEvent* arg__1);
160 virtual void focusInEvent(QFocusEvent* arg__1);
158 virtual bool focusNextPrevChild(bool next);
161 virtual bool focusNextPrevChild(bool next);
159 virtual void focusOutEvent(QFocusEvent* arg__1);
162 virtual void focusOutEvent(QFocusEvent* arg__1);
160 virtual bool hasHeightForWidth() const;
163 virtual bool hasHeightForWidth() const;
161 virtual int heightForWidth(int arg__1) const;
164 virtual int heightForWidth(int arg__1) const;
162 virtual void hideEvent(QHideEvent* arg__1);
165 virtual void hideEvent(QHideEvent* arg__1);
163 virtual void initPainter(QPainter* painter) const;
166 virtual void initPainter(QPainter* painter) const;
164 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
167 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
165 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
168 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
166 virtual void keyPressEvent(QKeyEvent* arg__1);
169 virtual void keyPressEvent(QKeyEvent* arg__1);
167 virtual void keyReleaseEvent(QKeyEvent* arg__1);
170 virtual void keyReleaseEvent(QKeyEvent* arg__1);
168 virtual void leaveEvent(QEvent* arg__1);
171 virtual void leaveEvent(QEvent* arg__1);
169 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
172 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
170 virtual QSize minimumSizeHint() const;
173 virtual QSize minimumSizeHint() const;
171 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
174 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
172 virtual void mouseMoveEvent(QMouseEvent* arg__1);
175 virtual void mouseMoveEvent(QMouseEvent* arg__1);
173 virtual void mousePressEvent(QMouseEvent* arg__1);
176 virtual void mousePressEvent(QMouseEvent* arg__1);
174 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
177 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
175 virtual void moveEvent(QMoveEvent* arg__1);
178 virtual void moveEvent(QMoveEvent* arg__1);
176 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
179 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
177 virtual QPaintEngine* paintEngine() const;
180 virtual QPaintEngine* paintEngine() const;
178 virtual void paintEvent(QPaintEvent* arg__1);
181 virtual void paintEvent(QPaintEvent* arg__1);
179 virtual QPaintDevice* redirected(QPoint* offset) const;
182 virtual QPaintDevice* redirected(QPoint* offset) const;
180 virtual void resizeEvent(QResizeEvent* arg__1);
183 virtual void resizeEvent(QResizeEvent* arg__1);
181 virtual QPainter* sharedPainter() const;
184 virtual QPainter* sharedPainter() const;
182 virtual void showEvent(QShowEvent* arg__1);
185 virtual void showEvent(QShowEvent* arg__1);
183 virtual QSize sizeHint() const;
186 virtual QSize sizeHint() const;
184 virtual void tabletEvent(QTabletEvent* arg__1);
187 virtual void tabletEvent(QTabletEvent* arg__1);
185 virtual void timerEvent(QTimerEvent* arg__1);
188 virtual void timerEvent(QTimerEvent* arg__1);
186 virtual void wheelEvent(QWheelEvent* arg__1);
189 virtual void wheelEvent(QWheelEvent* arg__1);
187
190
188 PythonQtInstanceWrapper* _wrapper;
191 PythonQtInstanceWrapper* _wrapper;
189 };
192 };
190
193
191 class PythonQtWrapper_MemSizeWdgt : public QObject
194 class PythonQtWrapper_MemSizeWdgt : public QObject
192 { Q_OBJECT
195 { Q_OBJECT
193 public:
196 public:
194 public slots:
197 public slots:
195 MemSizeWdgt* new_MemSizeWdgt(QWidget* parent = 0);
198 MemSizeWdgt* new_MemSizeWdgt(QWidget* parent = 0);
196 MemSizeWdgt* new_MemSizeWdgt(int defaultSize, QWidget* parent = 0);
199 MemSizeWdgt* new_MemSizeWdgt(int defaultSize, QWidget* parent = 0);
197 void delete_MemSizeWdgt(MemSizeWdgt* obj) { delete obj; }
200 void delete_MemSizeWdgt(MemSizeWdgt* obj) { delete obj; }
198 int getsize(MemSizeWdgt* theWrappedObject);
201 int getsize(MemSizeWdgt* theWrappedObject);
199 void setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max);
202 void setMaximum(MemSizeWdgt* theWrappedObject, unsigned int max);
200 void show(MemSizeWdgt* theWrappedObject);
203 void show(MemSizeWdgt* theWrappedObject);
201 void updateSizeValue(MemSizeWdgt* theWrappedObject);
204 void updateSizeValue(MemSizeWdgt* theWrappedObject);
202 };
205 };
203
206
204
207
205
208
206
209
207
210
208 class PythonQtShell_QHexEdit : public QHexEdit
211 class PythonQtShell_QHexEdit : public QHexEdit
209 {
212 {
210 public:
213 public:
211 PythonQtShell_QHexEdit(QWidget* parent = 0):QHexEdit(parent),_wrapper(NULL) {};
214 PythonQtShell_QHexEdit(QWidget* parent = 0):QHexEdit(parent),_wrapper(NULL) {};
212
215
213 ~PythonQtShell_QHexEdit();
216 ~PythonQtShell_QHexEdit();
214
217
215 virtual void actionEvent(QActionEvent* arg__1);
218 virtual void actionEvent(QActionEvent* arg__1);
216 virtual void changeEvent(QEvent* arg__1);
219 virtual void changeEvent(QEvent* arg__1);
217 virtual void childEvent(QChildEvent* arg__1);
220 virtual void childEvent(QChildEvent* arg__1);
218 virtual void closeEvent(QCloseEvent* arg__1);
221 virtual void closeEvent(QCloseEvent* arg__1);
219 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
222 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
220 virtual void customEvent(QEvent* arg__1);
223 virtual void customEvent(QEvent* arg__1);
221 virtual int devType() const;
224 virtual int devType() const;
222 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
225 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
223 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
226 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
224 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
227 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
225 virtual void dropEvent(QDropEvent* arg__1);
228 virtual void dropEvent(QDropEvent* arg__1);
226 virtual void enterEvent(QEvent* arg__1);
229 virtual void enterEvent(QEvent* arg__1);
227 virtual bool event(QEvent* arg__1);
230 virtual bool event(QEvent* arg__1);
228 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
231 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
229 virtual void focusInEvent(QFocusEvent* arg__1);
232 virtual void focusInEvent(QFocusEvent* arg__1);
230 virtual bool focusNextPrevChild(bool next);
233 virtual bool focusNextPrevChild(bool next);
231 virtual void focusOutEvent(QFocusEvent* arg__1);
234 virtual void focusOutEvent(QFocusEvent* arg__1);
232 virtual bool hasHeightForWidth() const;
235 virtual bool hasHeightForWidth() const;
233 virtual int heightForWidth(int arg__1) const;
236 virtual int heightForWidth(int arg__1) const;
234 virtual void hideEvent(QHideEvent* arg__1);
237 virtual void hideEvent(QHideEvent* arg__1);
235 virtual void initPainter(QPainter* painter) const;
238 virtual void initPainter(QPainter* painter) const;
236 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
239 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
237 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
240 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
238 virtual void keyPressEvent(QKeyEvent* arg__1);
241 virtual void keyPressEvent(QKeyEvent* arg__1);
239 virtual void keyReleaseEvent(QKeyEvent* arg__1);
242 virtual void keyReleaseEvent(QKeyEvent* arg__1);
240 virtual void leaveEvent(QEvent* arg__1);
243 virtual void leaveEvent(QEvent* arg__1);
241 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
244 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
242 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
245 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
243 virtual void mouseMoveEvent(QMouseEvent* arg__1);
246 virtual void mouseMoveEvent(QMouseEvent* arg__1);
244 virtual void mousePressEvent(QMouseEvent* arg__1);
247 virtual void mousePressEvent(QMouseEvent* arg__1);
245 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
248 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
246 virtual void moveEvent(QMoveEvent* arg__1);
249 virtual void moveEvent(QMoveEvent* arg__1);
247 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
250 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
248 virtual QPaintEngine* paintEngine() const;
251 virtual QPaintEngine* paintEngine() const;
249 virtual void paintEvent(QPaintEvent* arg__1);
252 virtual void paintEvent(QPaintEvent* arg__1);
250 virtual QPaintDevice* redirected(QPoint* offset) const;
253 virtual QPaintDevice* redirected(QPoint* offset) const;
251 virtual void resizeEvent(QResizeEvent* arg__1);
254 virtual void resizeEvent(QResizeEvent* arg__1);
252 virtual void scrollContentsBy(int dx, int dy);
255 virtual void scrollContentsBy(int dx, int dy);
253 virtual void setupViewport(QWidget* viewport);
256 virtual void setupViewport(QWidget* viewport);
254 virtual QPainter* sharedPainter() const;
257 virtual QPainter* sharedPainter() const;
255 virtual void showEvent(QShowEvent* arg__1);
258 virtual void showEvent(QShowEvent* arg__1);
256 virtual void tabletEvent(QTabletEvent* arg__1);
259 virtual void tabletEvent(QTabletEvent* arg__1);
257 virtual void timerEvent(QTimerEvent* arg__1);
260 virtual void timerEvent(QTimerEvent* arg__1);
258 virtual bool viewportEvent(QEvent* arg__1);
261 virtual bool viewportEvent(QEvent* arg__1);
259 virtual QSize viewportSizeHint() const;
262 virtual QSize viewportSizeHint() const;
260 virtual void wheelEvent(QWheelEvent* arg__1);
263 virtual void wheelEvent(QWheelEvent* arg__1);
261
264
262 PythonQtInstanceWrapper* _wrapper;
265 PythonQtInstanceWrapper* _wrapper;
263 };
266 };
264
267
265 class PythonQtWrapper_QHexEdit : public QObject
268 class PythonQtWrapper_QHexEdit : public QObject
266 { Q_OBJECT
269 { Q_OBJECT
267 public:
270 public:
268 public slots:
271 public slots:
269 QHexEdit* new_QHexEdit(QWidget* parent = 0);
272 QHexEdit* new_QHexEdit(QWidget* parent = 0);
270 void delete_QHexEdit(QHexEdit* obj) { delete obj; }
273 void delete_QHexEdit(QHexEdit* obj) { delete obj; }
271 QColor addressAreaColor(QHexEdit* theWrappedObject);
274 QColor addressAreaColor(QHexEdit* theWrappedObject);
272 int addressOffset(QHexEdit* theWrappedObject);
275 int addressOffset(QHexEdit* theWrappedObject);
273 int cursorPosition(QHexEdit* theWrappedObject);
276 int cursorPosition(QHexEdit* theWrappedObject);
274 QByteArray data(QHexEdit* theWrappedObject);
277 QByteArray data(QHexEdit* theWrappedObject);
275 const QFont* font(QHexEdit* theWrappedObject) const;
278 const QFont* font(QHexEdit* theWrappedObject) const;
279 int getSelectionBegin(QHexEdit* theWrappedObject);
280 int getSelectionEnd(QHexEdit* theWrappedObject);
276 QColor highlightingColor(QHexEdit* theWrappedObject);
281 QColor highlightingColor(QHexEdit* theWrappedObject);
277 int indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const;
282 int indexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const;
278 void insert(QHexEdit* theWrappedObject, int i, char ch);
283 void insert(QHexEdit* theWrappedObject, int i, char ch);
279 void insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba);
284 void insert(QHexEdit* theWrappedObject, int i, const QByteArray& ba);
280 bool isReadOnly(QHexEdit* theWrappedObject);
285 bool isReadOnly(QHexEdit* theWrappedObject);
281 int lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const;
286 int lastIndexOf(QHexEdit* theWrappedObject, const QByteArray& ba, int from = 0) const;
282 bool overwriteMode(QHexEdit* theWrappedObject);
287 bool overwriteMode(QHexEdit* theWrappedObject);
283 void remove(QHexEdit* theWrappedObject, int pos, int len = 1);
288 void remove(QHexEdit* theWrappedObject, int pos, int len = 1);
284 void replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after);
289 void replace(QHexEdit* theWrappedObject, int pos, int len, const QByteArray& after);
290 void resetSelection(QHexEdit* theWrappedObject);
291 void resetSelection(QHexEdit* theWrappedObject, int pos);
285 QColor selectionColor(QHexEdit* theWrappedObject);
292 QColor selectionColor(QHexEdit* theWrappedObject);
286 QString selectionToReadableString(QHexEdit* theWrappedObject);
293 QString selectionToReadableString(QHexEdit* theWrappedObject);
287 void setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color);
294 void setAddressAreaColor(QHexEdit* theWrappedObject, const QColor& color);
288 void setAddressOffset(QHexEdit* theWrappedObject, int offset);
295 void setAddressOffset(QHexEdit* theWrappedObject, int offset);
289 void setCursorPosition(QHexEdit* theWrappedObject, int cusorPos);
296 void setCursorPosition(QHexEdit* theWrappedObject, int cusorPos);
290 void setData(QHexEdit* theWrappedObject, const QByteArray& data);
297 void setData(QHexEdit* theWrappedObject, const QByteArray& data);
291 void setFont(QHexEdit* theWrappedObject, const QFont& arg__1);
298 void setFont(QHexEdit* theWrappedObject, const QFont& arg__1);
292 void setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color);
299 void setHighlightingColor(QHexEdit* theWrappedObject, const QColor& color);
293 void setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1);
300 void setOverwriteMode(QHexEdit* theWrappedObject, bool arg__1);
294 void setReadOnly(QHexEdit* theWrappedObject, bool arg__1);
301 void setReadOnly(QHexEdit* theWrappedObject, bool arg__1);
302 void setSelection(QHexEdit* theWrappedObject, int pos);
295 void setSelectionColor(QHexEdit* theWrappedObject, const QColor& color);
303 void setSelectionColor(QHexEdit* theWrappedObject, const QColor& color);
296 QString toReadableString(QHexEdit* theWrappedObject);
304 QString toReadableString(QHexEdit* theWrappedObject);
297 };
305 };
298
306
299
307
300
308
301
309
302
310
303 class PythonQtShell_QHexSpinBox : public QHexSpinBox
311 class PythonQtShell_QHexSpinBox : public QHexSpinBox
304 {
312 {
305 public:
313 public:
306 PythonQtShell_QHexSpinBox(QWidget* parent = 0):QHexSpinBox(parent),_wrapper(NULL) {};
314 PythonQtShell_QHexSpinBox(QWidget* parent = 0):QHexSpinBox(parent),_wrapper(NULL) {};
307
315
308 ~PythonQtShell_QHexSpinBox();
316 ~PythonQtShell_QHexSpinBox();
309
317
310 virtual void actionEvent(QActionEvent* arg__1);
318 virtual void actionEvent(QActionEvent* arg__1);
311 virtual void changeEvent(QEvent* event);
319 virtual void changeEvent(QEvent* event);
312 virtual void childEvent(QChildEvent* arg__1);
320 virtual void childEvent(QChildEvent* arg__1);
313 virtual void clear();
321 virtual void clear();
314 virtual void closeEvent(QCloseEvent* event);
322 virtual void closeEvent(QCloseEvent* event);
315 virtual void contextMenuEvent(QContextMenuEvent* event);
323 virtual void contextMenuEvent(QContextMenuEvent* event);
316 virtual void customEvent(QEvent* arg__1);
324 virtual void customEvent(QEvent* arg__1);
317 virtual int devType() const;
325 virtual int devType() const;
318 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
326 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
319 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
327 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
320 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
328 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
321 virtual void dropEvent(QDropEvent* arg__1);
329 virtual void dropEvent(QDropEvent* arg__1);
322 virtual void enterEvent(QEvent* arg__1);
330 virtual void enterEvent(QEvent* arg__1);
323 virtual bool event(QEvent* event);
331 virtual bool event(QEvent* event);
324 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
332 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
325 virtual void fixup(QString& str) const;
333 virtual void fixup(QString& str) const;
326 virtual void focusInEvent(QFocusEvent* event);
334 virtual void focusInEvent(QFocusEvent* event);
327 virtual bool focusNextPrevChild(bool next);
335 virtual bool focusNextPrevChild(bool next);
328 virtual void focusOutEvent(QFocusEvent* event);
336 virtual void focusOutEvent(QFocusEvent* event);
329 virtual bool hasHeightForWidth() const;
337 virtual bool hasHeightForWidth() const;
330 virtual int heightForWidth(int arg__1) const;
338 virtual int heightForWidth(int arg__1) const;
331 virtual void hideEvent(QHideEvent* event);
339 virtual void hideEvent(QHideEvent* event);
332 virtual void initPainter(QPainter* painter) const;
340 virtual void initPainter(QPainter* painter) const;
333 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
341 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
334 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
342 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
335 virtual void keyPressEvent(QKeyEvent* event);
343 virtual void keyPressEvent(QKeyEvent* event);
336 virtual void keyReleaseEvent(QKeyEvent* event);
344 virtual void keyReleaseEvent(QKeyEvent* event);
337 virtual void leaveEvent(QEvent* arg__1);
345 virtual void leaveEvent(QEvent* arg__1);
338 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
346 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
339 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
347 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
340 virtual void mouseMoveEvent(QMouseEvent* event);
348 virtual void mouseMoveEvent(QMouseEvent* event);
341 virtual void mousePressEvent(QMouseEvent* event);
349 virtual void mousePressEvent(QMouseEvent* event);
342 virtual void mouseReleaseEvent(QMouseEvent* event);
350 virtual void mouseReleaseEvent(QMouseEvent* event);
343 virtual void moveEvent(QMoveEvent* arg__1);
351 virtual void moveEvent(QMoveEvent* arg__1);
344 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
352 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
345 virtual QPaintEngine* paintEngine() const;
353 virtual QPaintEngine* paintEngine() const;
346 virtual void paintEvent(QPaintEvent* event);
354 virtual void paintEvent(QPaintEvent* event);
347 virtual QPaintDevice* redirected(QPoint* offset) const;
355 virtual QPaintDevice* redirected(QPoint* offset) const;
348 virtual void resizeEvent(QResizeEvent* event);
356 virtual void resizeEvent(QResizeEvent* event);
349 virtual QPainter* sharedPainter() const;
357 virtual QPainter* sharedPainter() const;
350 virtual void showEvent(QShowEvent* event);
358 virtual void showEvent(QShowEvent* event);
351 virtual void stepBy(int steps);
359 virtual void stepBy(int steps);
352 virtual QAbstractSpinBox::StepEnabled stepEnabled() const;
360 virtual QAbstractSpinBox::StepEnabled stepEnabled() const;
353 virtual void tabletEvent(QTabletEvent* arg__1);
361 virtual void tabletEvent(QTabletEvent* arg__1);
354 virtual QString textFromValue(int value) const;
362 virtual QString textFromValue(int value) const;
355 virtual void timerEvent(QTimerEvent* event);
363 virtual void timerEvent(QTimerEvent* event);
356 virtual QValidator::State validate(QString& input, int& pos) const;
364 virtual QValidator::State validate(QString& input, int& pos) const;
357 virtual int valueFromText(const QString& text) const;
365 virtual int valueFromText(const QString& text) const;
358 virtual void wheelEvent(QWheelEvent* event);
366 virtual void wheelEvent(QWheelEvent* event);
359
367
360 PythonQtInstanceWrapper* _wrapper;
368 PythonQtInstanceWrapper* _wrapper;
361 };
369 };
362
370
363 class PythonQtPublicPromoter_QHexSpinBox : public QHexSpinBox
371 class PythonQtPublicPromoter_QHexSpinBox : public QHexSpinBox
364 { public:
372 { public:
365 inline QString promoted_textFromValue(int value) const { return QHexSpinBox::textFromValue(value); }
373 inline QString promoted_textFromValue(int value) const { return QHexSpinBox::textFromValue(value); }
366 inline QValidator::State promoted_validate(QString& input, int& pos) const { return QHexSpinBox::validate(input, pos); }
374 inline QValidator::State promoted_validate(QString& input, int& pos) const { return QHexSpinBox::validate(input, pos); }
367 inline int promoted_valueFromText(const QString& text) const { return QHexSpinBox::valueFromText(text); }
375 inline int promoted_valueFromText(const QString& text) const { return QHexSpinBox::valueFromText(text); }
368 };
376 };
369
377
370 class PythonQtWrapper_QHexSpinBox : public QObject
378 class PythonQtWrapper_QHexSpinBox : public QObject
371 { Q_OBJECT
379 { Q_OBJECT
372 public:
380 public:
373 public slots:
381 public slots:
374 QHexSpinBox* new_QHexSpinBox(QWidget* parent = 0);
382 QHexSpinBox* new_QHexSpinBox(QWidget* parent = 0);
375 void delete_QHexSpinBox(QHexSpinBox* obj) { delete obj; }
383 void delete_QHexSpinBox(QHexSpinBox* obj) { delete obj; }
376 void show(QHexSpinBox* theWrappedObject);
384 void show(QHexSpinBox* theWrappedObject);
377 QString textFromValue(QHexSpinBox* theWrappedObject, int value) const;
385 QString textFromValue(QHexSpinBox* theWrappedObject, int value) const;
378 QValidator::State validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const;
386 QValidator::State validate(QHexSpinBox* theWrappedObject, QString& input, int& pos) const;
379 int valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const;
387 int valueFromText(QHexSpinBox* theWrappedObject, const QString& text) const;
380 };
388 };
381
389
382
390
383
391
384
392
385
393
386 class PythonQtShell_SocExplorerPlot : public SocExplorerPlot
394 class PythonQtShell_SocExplorerPlot : public SocExplorerPlot
387 {
395 {
388 public:
396 public:
389 PythonQtShell_SocExplorerPlot(QWidget* parent = 0):SocExplorerPlot(parent),_wrapper(NULL) {};
397 PythonQtShell_SocExplorerPlot(QWidget* parent = 0):SocExplorerPlot(parent),_wrapper(NULL) {};
390
398
391 ~PythonQtShell_SocExplorerPlot();
399 ~PythonQtShell_SocExplorerPlot();
392
400
393 virtual void actionEvent(QActionEvent* arg__1);
401 virtual void actionEvent(QActionEvent* arg__1);
394 virtual void changeEvent(QEvent* arg__1);
402 virtual void changeEvent(QEvent* arg__1);
395 virtual void childEvent(QChildEvent* arg__1);
403 virtual void childEvent(QChildEvent* arg__1);
396 virtual void closeEvent(QCloseEvent* arg__1);
404 virtual void closeEvent(QCloseEvent* arg__1);
397 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
405 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
398 virtual void customEvent(QEvent* arg__1);
406 virtual void customEvent(QEvent* arg__1);
399 virtual int devType() const;
407 virtual int devType() const;
400 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
408 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
401 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
409 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
402 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
410 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
403 virtual void dropEvent(QDropEvent* arg__1);
411 virtual void dropEvent(QDropEvent* arg__1);
404 virtual void enterEvent(QEvent* arg__1);
412 virtual void enterEvent(QEvent* arg__1);
405 virtual bool event(QEvent* arg__1);
413 virtual bool event(QEvent* arg__1);
406 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
414 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
407 virtual void focusInEvent(QFocusEvent* arg__1);
415 virtual void focusInEvent(QFocusEvent* arg__1);
408 virtual bool focusNextPrevChild(bool next);
416 virtual bool focusNextPrevChild(bool next);
409 virtual void focusOutEvent(QFocusEvent* arg__1);
417 virtual void focusOutEvent(QFocusEvent* arg__1);
410 virtual bool hasHeightForWidth() const;
418 virtual bool hasHeightForWidth() const;
411 virtual int heightForWidth(int arg__1) const;
419 virtual int heightForWidth(int arg__1) const;
412 virtual void hideEvent(QHideEvent* arg__1);
420 virtual void hideEvent(QHideEvent* arg__1);
413 virtual void initPainter(QPainter* painter) const;
421 virtual void initPainter(QPainter* painter) const;
414 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
422 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
415 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
423 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
416 virtual void keyPressEvent(QKeyEvent* arg__1);
424 virtual void keyPressEvent(QKeyEvent* arg__1);
417 virtual void keyReleaseEvent(QKeyEvent* arg__1);
425 virtual void keyReleaseEvent(QKeyEvent* arg__1);
418 virtual void leaveEvent(QEvent* arg__1);
426 virtual void leaveEvent(QEvent* arg__1);
419 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
427 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
420 virtual QSize minimumSizeHint() const;
428 virtual QSize minimumSizeHint() const;
421 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
429 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
422 virtual void mouseMoveEvent(QMouseEvent* arg__1);
430 virtual void mouseMoveEvent(QMouseEvent* arg__1);
423 virtual void mousePressEvent(QMouseEvent* arg__1);
431 virtual void mousePressEvent(QMouseEvent* arg__1);
424 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
432 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
425 virtual void moveEvent(QMoveEvent* arg__1);
433 virtual void moveEvent(QMoveEvent* arg__1);
426 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
434 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
427 virtual QPaintEngine* paintEngine() const;
435 virtual QPaintEngine* paintEngine() const;
428 virtual void paintEvent(QPaintEvent* arg__1);
436 virtual void paintEvent(QPaintEvent* arg__1);
429 virtual QPaintDevice* redirected(QPoint* offset) const;
437 virtual QPaintDevice* redirected(QPoint* offset) const;
430 virtual void resizeEvent(QResizeEvent* arg__1);
438 virtual void resizeEvent(QResizeEvent* arg__1);
431 virtual QPainter* sharedPainter() const;
439 virtual QPainter* sharedPainter() const;
432 virtual void showEvent(QShowEvent* arg__1);
440 virtual void showEvent(QShowEvent* arg__1);
433 virtual QSize sizeHint() const;
441 virtual QSize sizeHint() const;
434 virtual void tabletEvent(QTabletEvent* arg__1);
442 virtual void tabletEvent(QTabletEvent* arg__1);
435 virtual void timerEvent(QTimerEvent* arg__1);
443 virtual void timerEvent(QTimerEvent* arg__1);
436 virtual void wheelEvent(QWheelEvent* arg__1);
444 virtual void wheelEvent(QWheelEvent* arg__1);
437
445
438 PythonQtInstanceWrapper* _wrapper;
446 PythonQtInstanceWrapper* _wrapper;
439 };
447 };
440
448
441 class PythonQtPublicPromoter_SocExplorerPlot : public SocExplorerPlot
449 class PythonQtPublicPromoter_SocExplorerPlot : public SocExplorerPlot
442 { public:
450 { public:
443 inline void promoted_keyPressEvent(QKeyEvent* arg__1) { SocExplorerPlot::keyPressEvent(arg__1); }
451 inline void promoted_keyPressEvent(QKeyEvent* arg__1) { SocExplorerPlot::keyPressEvent(arg__1); }
444 inline void promoted_keyReleaseEvent(QKeyEvent* arg__1) { SocExplorerPlot::keyReleaseEvent(arg__1); }
452 inline void promoted_keyReleaseEvent(QKeyEvent* arg__1) { SocExplorerPlot::keyReleaseEvent(arg__1); }
445 inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { SocExplorerPlot::mouseMoveEvent(arg__1); }
453 inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { SocExplorerPlot::mouseMoveEvent(arg__1); }
446 inline void promoted_mousePressEvent(QMouseEvent* arg__1) { SocExplorerPlot::mousePressEvent(arg__1); }
454 inline void promoted_mousePressEvent(QMouseEvent* arg__1) { SocExplorerPlot::mousePressEvent(arg__1); }
447 inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { SocExplorerPlot::mouseReleaseEvent(arg__1); }
455 inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { SocExplorerPlot::mouseReleaseEvent(arg__1); }
448 inline void promoted_wheelEvent(QWheelEvent* arg__1) { SocExplorerPlot::wheelEvent(arg__1); }
456 inline void promoted_wheelEvent(QWheelEvent* arg__1) { SocExplorerPlot::wheelEvent(arg__1); }
449 };
457 };
450
458
451 class PythonQtWrapper_SocExplorerPlot : public QObject
459 class PythonQtWrapper_SocExplorerPlot : public QObject
452 { Q_OBJECT
460 { Q_OBJECT
453 public:
461 public:
454 public slots:
462 public slots:
455 SocExplorerPlot* new_SocExplorerPlot(QWidget* parent = 0);
463 SocExplorerPlot* new_SocExplorerPlot(QWidget* parent = 0);
456 void delete_SocExplorerPlot(SocExplorerPlot* obj) { delete obj; }
464 void delete_SocExplorerPlot(SocExplorerPlot* obj) { delete obj; }
457 int addGraph(SocExplorerPlot* theWrappedObject);
465 int addGraph(SocExplorerPlot* theWrappedObject);
458 void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
466 void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
459 void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y);
467 void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y);
460 QPen getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex);
468 QPen getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex);
461 void keyPressEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1);
469 void keyPressEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1);
462 void keyReleaseEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1);
470 void keyReleaseEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1);
463 void mouseMoveEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
471 void mouseMoveEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
464 void mousePressEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
472 void mousePressEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
465 void mouseReleaseEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
473 void mouseReleaseEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
466 void rescaleAxis(SocExplorerPlot* theWrappedObject);
474 void rescaleAxis(SocExplorerPlot* theWrappedObject);
467 void setAdaptativeSampling(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable);
475 void setAdaptativeSampling(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable);
468 void setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
476 void setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
469 void setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle);
477 void setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle);
470 void setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name);
478 void setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name);
471 void setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen);
479 void setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen);
472 void setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle);
480 void setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle);
473 void setLegendFont(SocExplorerPlot* theWrappedObject, QFont font);
481 void setLegendFont(SocExplorerPlot* theWrappedObject, QFont font);
474 void setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font);
482 void setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font);
475 void setTitle(SocExplorerPlot* theWrappedObject, QString title);
483 void setTitle(SocExplorerPlot* theWrappedObject, QString title);
476 void setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
484 void setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
477 void setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
485 void setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
478 void setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
486 void setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
479 void setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
487 void setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
480 void show(SocExplorerPlot* theWrappedObject);
488 void show(SocExplorerPlot* theWrappedObject);
481 void wheelEvent(SocExplorerPlot* theWrappedObject, QWheelEvent* arg__1);
489 void wheelEvent(SocExplorerPlot* theWrappedObject, QWheelEvent* arg__1);
482 };
490 };
483
491
484
492
485
493
486
494
487
495
488 class PythonQtShell_TCP_Terminal_Client : public TCP_Terminal_Client
496 class PythonQtShell_TCP_Terminal_Client : public TCP_Terminal_Client
489 {
497 {
490 public:
498 public:
491 PythonQtShell_TCP_Terminal_Client(QObject* parent = 0):TCP_Terminal_Client(parent),_wrapper(NULL) {};
499 PythonQtShell_TCP_Terminal_Client(QObject* parent = 0):TCP_Terminal_Client(parent),_wrapper(NULL) {};
492
500
493 ~PythonQtShell_TCP_Terminal_Client();
501 ~PythonQtShell_TCP_Terminal_Client();
494
502
495 virtual void childEvent(QChildEvent* arg__1);
503 virtual void childEvent(QChildEvent* arg__1);
496 virtual void customEvent(QEvent* arg__1);
504 virtual void customEvent(QEvent* arg__1);
497 virtual bool event(QEvent* arg__1);
505 virtual bool event(QEvent* arg__1);
498 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
506 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
499 virtual void timerEvent(QTimerEvent* arg__1);
507 virtual void timerEvent(QTimerEvent* arg__1);
500
508
501 PythonQtInstanceWrapper* _wrapper;
509 PythonQtInstanceWrapper* _wrapper;
502 };
510 };
503
511
504 class PythonQtWrapper_TCP_Terminal_Client : public QObject
512 class PythonQtWrapper_TCP_Terminal_Client : public QObject
505 { Q_OBJECT
513 { Q_OBJECT
506 public:
514 public:
507 public slots:
515 public slots:
508 TCP_Terminal_Client* new_TCP_Terminal_Client(QObject* parent = 0);
516 TCP_Terminal_Client* new_TCP_Terminal_Client(QObject* parent = 0);
509 void delete_TCP_Terminal_Client(TCP_Terminal_Client* obj) { delete obj; }
517 void delete_TCP_Terminal_Client(TCP_Terminal_Client* obj) { delete obj; }
510 void connectToServer(TCP_Terminal_Client* theWrappedObject);
518 void connectToServer(TCP_Terminal_Client* theWrappedObject);
511 void connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port);
519 void connectToServer(TCP_Terminal_Client* theWrappedObject, const QString& IP, int port);
512 bool isConnected(TCP_Terminal_Client* theWrappedObject);
520 bool isConnected(TCP_Terminal_Client* theWrappedObject);
513 void sendText(TCP_Terminal_Client* theWrappedObject, const QString& text);
521 void sendText(TCP_Terminal_Client* theWrappedObject, const QString& text);
514 void startServer(TCP_Terminal_Client* theWrappedObject);
522 void startServer(TCP_Terminal_Client* theWrappedObject);
515 void startServer(TCP_Terminal_Client* theWrappedObject, int port);
523 void startServer(TCP_Terminal_Client* theWrappedObject, int port);
516 };
524 };
517
525
518
526
519
527
520
528
521
529
522 class PythonQtWrapper_XByteArray : public QObject
530 class PythonQtWrapper_XByteArray : public QObject
523 { Q_OBJECT
531 { Q_OBJECT
524 public:
532 public:
525 public slots:
533 public slots:
526 XByteArray* new_XByteArray();
534 XByteArray* new_XByteArray();
527 void delete_XByteArray(XByteArray* obj) { delete obj; }
535 void delete_XByteArray(XByteArray* obj) { delete obj; }
528 int addressOffset(XByteArray* theWrappedObject);
536 int addressOffset(XByteArray* theWrappedObject);
529 int addressWidth(XByteArray* theWrappedObject);
537 int addressWidth(XByteArray* theWrappedObject);
530 QChar asciiChar(XByteArray* theWrappedObject, int index);
538 QChar asciiChar(XByteArray* theWrappedObject, int index);
531 QByteArray* data(XByteArray* theWrappedObject);
539 QByteArray* data(XByteArray* theWrappedObject);
532 bool dataChanged(XByteArray* theWrappedObject, int i);
540 bool dataChanged(XByteArray* theWrappedObject, int i);
533 QByteArray dataChanged(XByteArray* theWrappedObject, int i, int len);
541 QByteArray dataChanged(XByteArray* theWrappedObject, int i, int len);
534 QByteArray* insert(XByteArray* theWrappedObject, int i, char ch);
542 QByteArray* insert(XByteArray* theWrappedObject, int i, char ch);
535 QByteArray* insert(XByteArray* theWrappedObject, int i, const QByteArray& ba);
543 QByteArray* insert(XByteArray* theWrappedObject, int i, const QByteArray& ba);
536 int realAddressNumbers(XByteArray* theWrappedObject);
544 int realAddressNumbers(XByteArray* theWrappedObject);
537 QByteArray* remove(XByteArray* theWrappedObject, int pos, int len);
545 QByteArray* remove(XByteArray* theWrappedObject, int pos, int len);
538 QByteArray* replace(XByteArray* theWrappedObject, int index, char ch);
546 QByteArray* replace(XByteArray* theWrappedObject, int index, char ch);
539 QByteArray* replace(XByteArray* theWrappedObject, int index, const QByteArray& ba);
547 QByteArray* replace(XByteArray* theWrappedObject, int index, const QByteArray& ba);
540 QByteArray* replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba);
548 QByteArray* replace(XByteArray* theWrappedObject, int index, int length, const QByteArray& ba);
541 void setAddressOffset(XByteArray* theWrappedObject, int offset);
549 void setAddressOffset(XByteArray* theWrappedObject, int offset);
542 void setAddressWidth(XByteArray* theWrappedObject, int width);
550 void setAddressWidth(XByteArray* theWrappedObject, int width);
543 void setData(XByteArray* theWrappedObject, QByteArray data);
551 void setData(XByteArray* theWrappedObject, QByteArray data);
544 void setDataChanged(XByteArray* theWrappedObject, int i, bool state);
552 void setDataChanged(XByteArray* theWrappedObject, int i, bool state);
545 void setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state);
553 void setDataChanged(XByteArray* theWrappedObject, int i, const QByteArray& state);
546 int size(XByteArray* theWrappedObject);
554 int size(XByteArray* theWrappedObject);
547 QString toRedableString(XByteArray* theWrappedObject, int start = 0, int end = -1);
555 QString toRedableString(XByteArray* theWrappedObject, int start = 0, int end = -1);
548 };
556 };
549
557
550
558
551
559
552
560
553
561
554 class PythonQtShell_abstractBinFile : public abstractBinFile
562 class PythonQtShell_abstractBinFile : public abstractBinFile
555 {
563 {
556 public:
564 public:
557 PythonQtShell_abstractBinFile():abstractBinFile(),_wrapper(NULL) {};
565 PythonQtShell_abstractBinFile():abstractBinFile(),_wrapper(NULL) {};
558
566
559 ~PythonQtShell_abstractBinFile();
567 ~PythonQtShell_abstractBinFile();
560
568
561 virtual void childEvent(QChildEvent* arg__1);
569 virtual void childEvent(QChildEvent* arg__1);
562 virtual int closeFile();
570 virtual int closeFile();
563 virtual void customEvent(QEvent* arg__1);
571 virtual void customEvent(QEvent* arg__1);
564 virtual bool event(QEvent* arg__1);
572 virtual bool event(QEvent* arg__1);
565 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
573 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
566 virtual QList<codeFragment* > getFragments();
574 virtual QList<codeFragment* > getFragments();
567 virtual bool isopened();
575 virtual bool isopened();
568 virtual bool openFile(const QString& File);
576 virtual bool openFile(const QString& File);
569 virtual void timerEvent(QTimerEvent* arg__1);
577 virtual void timerEvent(QTimerEvent* arg__1);
570
578
571 PythonQtInstanceWrapper* _wrapper;
579 PythonQtInstanceWrapper* _wrapper;
572 };
580 };
573
581
574 class PythonQtWrapper_abstractBinFile : public QObject
582 class PythonQtWrapper_abstractBinFile : public QObject
575 { Q_OBJECT
583 { Q_OBJECT
576 public:
584 public:
577 public slots:
585 public slots:
578 abstractBinFile* new_abstractBinFile();
586 abstractBinFile* new_abstractBinFile();
579 void delete_abstractBinFile(abstractBinFile* obj) { delete obj; }
587 void delete_abstractBinFile(abstractBinFile* obj) { delete obj; }
580 };
588 };
581
589
582
590
583
591
584
592
585
593
594 class PythonQtShell_binaryFile : public binaryFile
595 {
596 public:
597 PythonQtShell_binaryFile():binaryFile(),_wrapper(NULL) {};
598 PythonQtShell_binaryFile(const QString& File):binaryFile(File),_wrapper(NULL) {};
599 PythonQtShell_binaryFile(const QStringList& Files):binaryFile(Files),_wrapper(NULL) {};
600
601 ~PythonQtShell_binaryFile();
602
603 virtual int closeFile();
604 virtual QList<codeFragment* > getFragments();
605 virtual bool isopened();
606 virtual bool openFile(const QString& File);
607
608 PythonQtInstanceWrapper* _wrapper;
609 };
610
611 class PythonQtPublicPromoter_binaryFile : public binaryFile
612 { public:
613 inline int promoted_closeFile() { return binaryFile::closeFile(); }
614 inline QList<codeFragment* > promoted_getFragments() { return binaryFile::getFragments(); }
615 inline bool promoted_isopened() { return binaryFile::isopened(); }
616 inline bool promoted_openFile(const QString& File) { return binaryFile::openFile(File); }
617 };
618
619 class PythonQtWrapper_binaryFile : public QObject
620 { Q_OBJECT
621 public:
622 public slots:
623 binaryFile* new_binaryFile();
624 binaryFile* new_binaryFile(const QString& File);
625 binaryFile* new_binaryFile(const QStringList& Files);
626 void delete_binaryFile(binaryFile* obj) { delete obj; }
627 int closeFile(binaryFile* theWrappedObject);
628 int getFragmentAddress(binaryFile* theWrappedObject, int index);
629 bool getFragmentData(binaryFile* theWrappedObject, int index, char** buffer);
630 QString getFragmentHeader(binaryFile* theWrappedObject, int index);
631 int getFragmentSize(binaryFile* theWrappedObject, int index);
632 QList<codeFragment* > getFragments(binaryFile* theWrappedObject);
633 int getFragmentsCount(binaryFile* theWrappedObject);
634 bool isopened(binaryFile* theWrappedObject);
635 bool openFile(binaryFile* theWrappedObject, const QString& File);
636 bool openFiles(binaryFile* theWrappedObject, const QStringList& Files);
637 };
638
639
640
641
642
643 class PythonQtShell_binaryFileWidget : public binaryFileWidget
644 {
645 public:
646 PythonQtShell_binaryFileWidget(QWidget* parent = 0):binaryFileWidget(parent),_wrapper(NULL) {};
647
648 ~PythonQtShell_binaryFileWidget();
649
650 virtual void actionEvent(QActionEvent* arg__1);
651 virtual void changeEvent(QEvent* arg__1);
652 virtual void childEvent(QChildEvent* arg__1);
653 virtual void closeEvent(QCloseEvent* arg__1);
654 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
655 virtual void customEvent(QEvent* arg__1);
656 virtual int devType() const;
657 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
658 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
659 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
660 virtual void dropEvent(QDropEvent* arg__1);
661 virtual void enterEvent(QEvent* arg__1);
662 virtual bool event(QEvent* arg__1);
663 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
664 virtual void focusInEvent(QFocusEvent* arg__1);
665 virtual bool focusNextPrevChild(bool next);
666 virtual void focusOutEvent(QFocusEvent* arg__1);
667 virtual bool hasHeightForWidth() const;
668 virtual int heightForWidth(int arg__1) const;
669 virtual void hideEvent(QHideEvent* arg__1);
670 virtual void initPainter(QPainter* painter) const;
671 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
672 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
673 virtual void keyPressEvent(QKeyEvent* arg__1);
674 virtual void keyReleaseEvent(QKeyEvent* arg__1);
675 virtual void leaveEvent(QEvent* arg__1);
676 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
677 virtual QSize minimumSizeHint() const;
678 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
679 virtual void mouseMoveEvent(QMouseEvent* arg__1);
680 virtual void mousePressEvent(QMouseEvent* arg__1);
681 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
682 virtual void moveEvent(QMoveEvent* arg__1);
683 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
684 virtual QPaintEngine* paintEngine() const;
685 virtual void paintEvent(QPaintEvent* arg__1);
686 virtual QPaintDevice* redirected(QPoint* offset) const;
687 virtual void resizeEvent(QResizeEvent* arg__1);
688 virtual QPainter* sharedPainter() const;
689 virtual void showEvent(QShowEvent* arg__1);
690 virtual QSize sizeHint() const;
691 virtual void tabletEvent(QTabletEvent* arg__1);
692 virtual void timerEvent(QTimerEvent* arg__1);
693 virtual void wheelEvent(QWheelEvent* arg__1);
694
695 PythonQtInstanceWrapper* _wrapper;
696 };
697
698 class PythonQtWrapper_binaryFileWidget : public QObject
699 { Q_OBJECT
700 public:
701 public slots:
702 binaryFileWidget* new_binaryFileWidget(QWidget* parent = 0);
703 void delete_binaryFileWidget(binaryFileWidget* obj) { delete obj; }
704 };
705
706
707
708
709
586 class PythonQtShell_codeFragment : public codeFragment
710 class PythonQtShell_codeFragment : public codeFragment
587 {
711 {
588 public:
712 public:
589 PythonQtShell_codeFragment():codeFragment(),_wrapper(NULL) {};
713 PythonQtShell_codeFragment():codeFragment(),_wrapper(NULL) {};
590 PythonQtShell_codeFragment(char* data, quint64 size, quint64 address):codeFragment(data, size, address),_wrapper(NULL) {};
714 PythonQtShell_codeFragment(char* data, quint64 size, quint64 address):codeFragment(data, size, address),_wrapper(NULL) {};
591
715
592 ~PythonQtShell_codeFragment();
716 ~PythonQtShell_codeFragment();
593
717
594
718
595 PythonQtInstanceWrapper* _wrapper;
719 PythonQtInstanceWrapper* _wrapper;
596 };
720 };
597
721
598 class PythonQtWrapper_codeFragment : public QObject
722 class PythonQtWrapper_codeFragment : public QObject
599 { Q_OBJECT
723 { Q_OBJECT
600 public:
724 public:
601 public slots:
725 public slots:
602 codeFragment* new_codeFragment();
726 codeFragment* new_codeFragment();
603 codeFragment* new_codeFragment(char* data, quint64 size, quint64 address);
727 codeFragment* new_codeFragment(char* data, quint64 size, quint64 address);
604 void delete_codeFragment(codeFragment* obj) { delete obj; }
728 void delete_codeFragment(codeFragment* obj) { delete obj; }
605 void py_set_size(codeFragment* theWrappedObject, quint64 size){ theWrappedObject->size = size; }
729 void py_set_size(codeFragment* theWrappedObject, quint64 size){ theWrappedObject->size = size; }
606 quint64 py_get_size(codeFragment* theWrappedObject){ return theWrappedObject->size; }
730 quint64 py_get_size(codeFragment* theWrappedObject){ return theWrappedObject->size; }
607 void py_set_header(codeFragment* theWrappedObject, QString header){ theWrappedObject->header = header; }
731 void py_set_header(codeFragment* theWrappedObject, QString header){ theWrappedObject->header = header; }
608 QString py_get_header(codeFragment* theWrappedObject){ return theWrappedObject->header; }
732 QString py_get_header(codeFragment* theWrappedObject){ return theWrappedObject->header; }
733 void py_set_data(codeFragment* theWrappedObject, char* data){ theWrappedObject->data = data; }
734 char* py_get_data(codeFragment* theWrappedObject){ return theWrappedObject->data; }
609 void py_set_address(codeFragment* theWrappedObject, quint64 address){ theWrappedObject->address = address; }
735 void py_set_address(codeFragment* theWrappedObject, quint64 address){ theWrappedObject->address = address; }
610 quint64 py_get_address(codeFragment* theWrappedObject){ return theWrappedObject->address; }
736 quint64 py_get_address(codeFragment* theWrappedObject){ return theWrappedObject->address; }
611 void py_set_data(codeFragment* theWrappedObject, char* data){ theWrappedObject->data = data; }
612 char* py_get_data(codeFragment* theWrappedObject){ return theWrappedObject->data; }
613 };
737 };
614
738
615
739
616
740
617
741
618
742
619 class PythonQtShell_elfFileWidget : public elfFileWidget
743 class PythonQtShell_elfFileWidget : public elfFileWidget
620 {
744 {
621 public:
745 public:
622 PythonQtShell_elfFileWidget(QWidget* parent = 0):elfFileWidget(parent),_wrapper(NULL) {};
746 PythonQtShell_elfFileWidget(QWidget* parent = 0):elfFileWidget(parent),_wrapper(NULL) {};
623
747
624 ~PythonQtShell_elfFileWidget();
748 ~PythonQtShell_elfFileWidget();
625
749
626 virtual void actionEvent(QActionEvent* arg__1);
750 virtual void actionEvent(QActionEvent* arg__1);
627 virtual void changeEvent(QEvent* arg__1);
751 virtual void changeEvent(QEvent* arg__1);
628 virtual void childEvent(QChildEvent* arg__1);
752 virtual void childEvent(QChildEvent* arg__1);
629 virtual void closeEvent(QCloseEvent* arg__1);
753 virtual void closeEvent(QCloseEvent* arg__1);
630 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
754 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
631 virtual void customEvent(QEvent* arg__1);
755 virtual void customEvent(QEvent* arg__1);
632 virtual int devType() const;
756 virtual int devType() const;
633 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
757 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
634 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
758 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
635 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
759 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
636 virtual void dropEvent(QDropEvent* arg__1);
760 virtual void dropEvent(QDropEvent* arg__1);
637 virtual void enterEvent(QEvent* arg__1);
761 virtual void enterEvent(QEvent* arg__1);
638 virtual bool event(QEvent* arg__1);
762 virtual bool event(QEvent* arg__1);
639 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
763 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
640 virtual void focusInEvent(QFocusEvent* arg__1);
764 virtual void focusInEvent(QFocusEvent* arg__1);
641 virtual bool focusNextPrevChild(bool next);
765 virtual bool focusNextPrevChild(bool next);
642 virtual void focusOutEvent(QFocusEvent* arg__1);
766 virtual void focusOutEvent(QFocusEvent* arg__1);
643 virtual bool hasHeightForWidth() const;
767 virtual bool hasHeightForWidth() const;
644 virtual int heightForWidth(int arg__1) const;
768 virtual int heightForWidth(int arg__1) const;
645 virtual void hideEvent(QHideEvent* arg__1);
769 virtual void hideEvent(QHideEvent* arg__1);
646 virtual void initPainter(QPainter* painter) const;
770 virtual void initPainter(QPainter* painter) const;
647 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
771 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
648 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
772 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
649 virtual void keyPressEvent(QKeyEvent* arg__1);
773 virtual void keyPressEvent(QKeyEvent* arg__1);
650 virtual void keyReleaseEvent(QKeyEvent* arg__1);
774 virtual void keyReleaseEvent(QKeyEvent* arg__1);
651 virtual void leaveEvent(QEvent* arg__1);
775 virtual void leaveEvent(QEvent* arg__1);
652 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
776 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
653 virtual QSize minimumSizeHint() const;
777 virtual QSize minimumSizeHint() const;
654 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
778 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
655 virtual void mouseMoveEvent(QMouseEvent* arg__1);
779 virtual void mouseMoveEvent(QMouseEvent* arg__1);
656 virtual void mousePressEvent(QMouseEvent* arg__1);
780 virtual void mousePressEvent(QMouseEvent* arg__1);
657 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
781 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
658 virtual void moveEvent(QMoveEvent* arg__1);
782 virtual void moveEvent(QMoveEvent* arg__1);
659 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
783 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
660 virtual QPaintEngine* paintEngine() const;
784 virtual QPaintEngine* paintEngine() const;
661 virtual void paintEvent(QPaintEvent* arg__1);
785 virtual void paintEvent(QPaintEvent* arg__1);
662 virtual QPaintDevice* redirected(QPoint* offset) const;
786 virtual QPaintDevice* redirected(QPoint* offset) const;
663 virtual void resizeEvent(QResizeEvent* arg__1);
787 virtual void resizeEvent(QResizeEvent* arg__1);
664 virtual QPainter* sharedPainter() const;
788 virtual QPainter* sharedPainter() const;
665 virtual void showEvent(QShowEvent* arg__1);
789 virtual void showEvent(QShowEvent* arg__1);
666 virtual QSize sizeHint() const;
790 virtual QSize sizeHint() const;
667 virtual void tabletEvent(QTabletEvent* arg__1);
791 virtual void tabletEvent(QTabletEvent* arg__1);
668 virtual void timerEvent(QTimerEvent* arg__1);
792 virtual void timerEvent(QTimerEvent* arg__1);
669 virtual void wheelEvent(QWheelEvent* arg__1);
793 virtual void wheelEvent(QWheelEvent* arg__1);
670
794
671 PythonQtInstanceWrapper* _wrapper;
795 PythonQtInstanceWrapper* _wrapper;
672 };
796 };
673
797
674 class PythonQtWrapper_elfFileWidget : public QObject
798 class PythonQtWrapper_elfFileWidget : public QObject
675 { Q_OBJECT
799 { Q_OBJECT
676 public:
800 public:
677 public slots:
801 public slots:
678 elfFileWidget* new_elfFileWidget(QWidget* parent = 0);
802 elfFileWidget* new_elfFileWidget(QWidget* parent = 0);
679 void delete_elfFileWidget(elfFileWidget* obj) { delete obj; }
803 void delete_elfFileWidget(elfFileWidget* obj) { delete obj; }
680 };
804 };
681
805
682
806
683
807
684
808
685
809
686 class PythonQtShell_elfInfoWdgt : public elfInfoWdgt
810 class PythonQtShell_elfInfoWdgt : public elfInfoWdgt
687 {
811 {
688 public:
812 public:
689 PythonQtShell_elfInfoWdgt(QWidget* parent = 0):elfInfoWdgt(parent),_wrapper(NULL) {};
813 PythonQtShell_elfInfoWdgt(QWidget* parent = 0):elfInfoWdgt(parent),_wrapper(NULL) {};
690
814
691 ~PythonQtShell_elfInfoWdgt();
815 ~PythonQtShell_elfInfoWdgt();
692
816
693 virtual void actionEvent(QActionEvent* arg__1);
817 virtual void actionEvent(QActionEvent* arg__1);
694 virtual void changeEvent(QEvent* arg__1);
818 virtual void changeEvent(QEvent* arg__1);
695 virtual void childEvent(QChildEvent* arg__1);
819 virtual void childEvent(QChildEvent* arg__1);
696 virtual void closeEvent(QCloseEvent* arg__1);
820 virtual void closeEvent(QCloseEvent* arg__1);
697 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
821 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
698 virtual void customEvent(QEvent* arg__1);
822 virtual void customEvent(QEvent* arg__1);
699 virtual int devType() const;
823 virtual int devType() const;
700 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
824 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
701 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
825 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
702 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
826 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
703 virtual void dropEvent(QDropEvent* arg__1);
827 virtual void dropEvent(QDropEvent* arg__1);
704 virtual void enterEvent(QEvent* arg__1);
828 virtual void enterEvent(QEvent* arg__1);
705 virtual bool event(QEvent* arg__1);
829 virtual bool event(QEvent* arg__1);
706 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
830 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
707 virtual void focusInEvent(QFocusEvent* arg__1);
831 virtual void focusInEvent(QFocusEvent* arg__1);
708 virtual bool focusNextPrevChild(bool next);
832 virtual bool focusNextPrevChild(bool next);
709 virtual void focusOutEvent(QFocusEvent* arg__1);
833 virtual void focusOutEvent(QFocusEvent* arg__1);
710 virtual bool hasHeightForWidth() const;
834 virtual bool hasHeightForWidth() const;
711 virtual int heightForWidth(int arg__1) const;
835 virtual int heightForWidth(int arg__1) const;
712 virtual void hideEvent(QHideEvent* arg__1);
836 virtual void hideEvent(QHideEvent* arg__1);
713 virtual void initPainter(QPainter* painter) const;
837 virtual void initPainter(QPainter* painter) const;
714 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
838 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
715 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
839 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
716 virtual void keyPressEvent(QKeyEvent* arg__1);
840 virtual void keyPressEvent(QKeyEvent* arg__1);
717 virtual void keyReleaseEvent(QKeyEvent* arg__1);
841 virtual void keyReleaseEvent(QKeyEvent* arg__1);
718 virtual void leaveEvent(QEvent* arg__1);
842 virtual void leaveEvent(QEvent* arg__1);
719 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
843 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
720 virtual QSize minimumSizeHint() const;
844 virtual QSize minimumSizeHint() const;
721 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
845 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
722 virtual void mouseMoveEvent(QMouseEvent* arg__1);
846 virtual void mouseMoveEvent(QMouseEvent* arg__1);
723 virtual void mousePressEvent(QMouseEvent* arg__1);
847 virtual void mousePressEvent(QMouseEvent* arg__1);
724 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
848 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
725 virtual void moveEvent(QMoveEvent* arg__1);
849 virtual void moveEvent(QMoveEvent* arg__1);
726 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
850 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
727 virtual QPaintEngine* paintEngine() const;
851 virtual QPaintEngine* paintEngine() const;
728 virtual void paintEvent(QPaintEvent* arg__1);
852 virtual void paintEvent(QPaintEvent* arg__1);
729 virtual QPaintDevice* redirected(QPoint* offset) const;
853 virtual QPaintDevice* redirected(QPoint* offset) const;
730 virtual void resizeEvent(QResizeEvent* arg__1);
854 virtual void resizeEvent(QResizeEvent* arg__1);
731 virtual QPainter* sharedPainter() const;
855 virtual QPainter* sharedPainter() const;
732 virtual void showEvent(QShowEvent* arg__1);
856 virtual void showEvent(QShowEvent* arg__1);
733 virtual QSize sizeHint() const;
857 virtual QSize sizeHint() const;
734 virtual void tabletEvent(QTabletEvent* arg__1);
858 virtual void tabletEvent(QTabletEvent* arg__1);
735 virtual void timerEvent(QTimerEvent* arg__1);
859 virtual void timerEvent(QTimerEvent* arg__1);
736 virtual void wheelEvent(QWheelEvent* arg__1);
860 virtual void wheelEvent(QWheelEvent* arg__1);
737
861
738 PythonQtInstanceWrapper* _wrapper;
862 PythonQtInstanceWrapper* _wrapper;
739 };
863 };
740
864
741 class PythonQtWrapper_elfInfoWdgt : public QObject
865 class PythonQtWrapper_elfInfoWdgt : public QObject
742 { Q_OBJECT
866 { Q_OBJECT
743 public:
867 public:
744 public slots:
868 public slots:
745 elfInfoWdgt* new_elfInfoWdgt(QWidget* parent = 0);
869 elfInfoWdgt* new_elfInfoWdgt(QWidget* parent = 0);
746 void delete_elfInfoWdgt(elfInfoWdgt* obj) { delete obj; }
870 void delete_elfInfoWdgt(elfInfoWdgt* obj) { delete obj; }
747 };
871 };
748
872
749
873
750
874
751
875
752
876
753 class PythonQtWrapper_elfparser : public QObject
877 class PythonQtWrapper_elfparser : public QObject
754 { Q_OBJECT
878 { Q_OBJECT
755 public:
879 public:
756 public slots:
880 public slots:
757 elfparser* new_elfparser();
881 elfparser* new_elfparser();
758 void delete_elfparser(elfparser* obj) { delete obj; }
882 void delete_elfparser(elfparser* obj) { delete obj; }
759 int closeFile(elfparser* theWrappedObject);
883 int closeFile(elfparser* theWrappedObject);
760 QString getABI(elfparser* theWrappedObject);
884 QString getABI(elfparser* theWrappedObject);
761 QString getArchitecture(elfparser* theWrappedObject);
885 QString getArchitecture(elfparser* theWrappedObject);
762 QString getClass(elfparser* theWrappedObject);
886 QString getClass(elfparser* theWrappedObject);
763 QString getEndianness(elfparser* theWrappedObject);
887 QString getEndianness(elfparser* theWrappedObject);
764 qint64 getEntryPointAddress(elfparser* theWrappedObject);
888 qint64 getEntryPointAddress(elfparser* theWrappedObject);
765 bool getSectionData(elfparser* theWrappedObject, int index, char** buffer);
889 bool getSectionData(elfparser* theWrappedObject, int index, char** buffer);
766 qint64 getSectionDatasz(elfparser* theWrappedObject, int index);
890 qint64 getSectionDatasz(elfparser* theWrappedObject, int index);
767 qint64 getSectionMemsz(elfparser* theWrappedObject, int index);
891 qint64 getSectionMemsz(elfparser* theWrappedObject, int index);
768 QString getSectionName(elfparser* theWrappedObject, int index);
892 QString getSectionName(elfparser* theWrappedObject, int index);
769 qint64 getSectionPaddr(elfparser* theWrappedObject, int index);
893 qint64 getSectionPaddr(elfparser* theWrappedObject, int index);
770 QString getSectionType(elfparser* theWrappedObject, int index);
894 QString getSectionType(elfparser* theWrappedObject, int index);
771 int getSectioncount(elfparser* theWrappedObject);
895 int getSectioncount(elfparser* theWrappedObject);
772 qint64 getSegmentFilesz(elfparser* theWrappedObject, int index);
896 qint64 getSegmentFilesz(elfparser* theWrappedObject, int index);
773 QString getSegmentFlags(elfparser* theWrappedObject, int index);
897 QString getSegmentFlags(elfparser* theWrappedObject, int index);
774 qint64 getSegmentMemsz(elfparser* theWrappedObject, int index);
898 qint64 getSegmentMemsz(elfparser* theWrappedObject, int index);
775 qint64 getSegmentOffset(elfparser* theWrappedObject, int index);
899 qint64 getSegmentOffset(elfparser* theWrappedObject, int index);
776 qint64 getSegmentPaddr(elfparser* theWrappedObject, int index);
900 qint64 getSegmentPaddr(elfparser* theWrappedObject, int index);
777 QString getSegmentType(elfparser* theWrappedObject, int index);
901 QString getSegmentType(elfparser* theWrappedObject, int index);
778 qint64 getSegmentVaddr(elfparser* theWrappedObject, int index);
902 qint64 getSegmentVaddr(elfparser* theWrappedObject, int index);
779 int getSegmentcount(elfparser* theWrappedObject);
903 int getSegmentcount(elfparser* theWrappedObject);
780 QString getType(elfparser* theWrappedObject);
904 QString getType(elfparser* theWrappedObject);
781 qint64 getVersion(elfparser* theWrappedObject);
905 qint64 getVersion(elfparser* theWrappedObject);
782 bool static_elfparser_isElf(const QString& File);
906 bool static_elfparser_isElf(const QString& File);
783 bool iself(elfparser* theWrappedObject);
907 bool iself(elfparser* theWrappedObject);
784 bool isopened(elfparser* theWrappedObject);
908 bool isopened(elfparser* theWrappedObject);
785 int setFilename(elfparser* theWrappedObject, const QString& name);
909 int setFilename(elfparser* theWrappedObject, const QString& name);
786 };
910 };
787
911
788
912
789
913
790
914
791
915
792 class PythonQtShell_srecFile : public srecFile
916 class PythonQtShell_srecFile : public srecFile
793 {
917 {
794 public:
918 public:
795 PythonQtShell_srecFile():srecFile(),_wrapper(NULL) {};
919 PythonQtShell_srecFile():srecFile(),_wrapper(NULL) {};
796 PythonQtShell_srecFile(const QString& File):srecFile(File),_wrapper(NULL) {};
920 PythonQtShell_srecFile(const QString& File):srecFile(File),_wrapper(NULL) {};
797 PythonQtShell_srecFile(const QStringList& Files):srecFile(Files),_wrapper(NULL) {};
921 PythonQtShell_srecFile(const QStringList& Files):srecFile(Files),_wrapper(NULL) {};
798
922
799 ~PythonQtShell_srecFile();
923 ~PythonQtShell_srecFile();
800
924
801 virtual int closeFile();
925 virtual int closeFile();
802 virtual QList<codeFragment* > getFragments();
926 virtual QList<codeFragment* > getFragments();
803 virtual bool isopened();
927 virtual bool isopened();
804 virtual bool openFile(const QString& File);
928 virtual bool openFile(const QString& File);
805
929
806 PythonQtInstanceWrapper* _wrapper;
930 PythonQtInstanceWrapper* _wrapper;
807 };
931 };
808
932
809 class PythonQtPublicPromoter_srecFile : public srecFile
933 class PythonQtPublicPromoter_srecFile : public srecFile
810 { public:
934 { public:
811 inline int promoted_closeFile() { return srecFile::closeFile(); }
935 inline int promoted_closeFile() { return srecFile::closeFile(); }
812 inline QList<codeFragment* > promoted_getFragments() { return srecFile::getFragments(); }
936 inline QList<codeFragment* > promoted_getFragments() { return srecFile::getFragments(); }
813 inline bool promoted_isopened() { return srecFile::isopened(); }
937 inline bool promoted_isopened() { return srecFile::isopened(); }
814 inline bool promoted_openFile(const QString& File) { return srecFile::openFile(File); }
938 inline bool promoted_openFile(const QString& File) { return srecFile::openFile(File); }
815 };
939 };
816
940
817 class PythonQtWrapper_srecFile : public QObject
941 class PythonQtWrapper_srecFile : public QObject
818 { Q_OBJECT
942 { Q_OBJECT
819 public:
943 public:
820 public slots:
944 public slots:
821 srecFile* new_srecFile();
945 srecFile* new_srecFile();
822 srecFile* new_srecFile(const QString& File);
946 srecFile* new_srecFile(const QString& File);
823 srecFile* new_srecFile(const QStringList& Files);
947 srecFile* new_srecFile(const QStringList& Files);
824 void delete_srecFile(srecFile* obj) { delete obj; }
948 void delete_srecFile(srecFile* obj) { delete obj; }
825 int closeFile(srecFile* theWrappedObject);
949 int closeFile(srecFile* theWrappedObject);
826 int getFragmentAddress(srecFile* theWrappedObject, int index);
950 int getFragmentAddress(srecFile* theWrappedObject, int index);
827 bool getFragmentData(srecFile* theWrappedObject, int index, char** buffer);
951 bool getFragmentData(srecFile* theWrappedObject, int index, char** buffer);
828 QString getFragmentHeader(srecFile* theWrappedObject, int index);
952 QString getFragmentHeader(srecFile* theWrappedObject, int index);
829 int getFragmentSize(srecFile* theWrappedObject, int index);
953 int getFragmentSize(srecFile* theWrappedObject, int index);
830 QList<codeFragment* > getFragments(srecFile* theWrappedObject);
954 QList<codeFragment* > getFragments(srecFile* theWrappedObject);
831 int getFragmentsCount(srecFile* theWrappedObject);
955 int getFragmentsCount(srecFile* theWrappedObject);
832 bool isSREC(srecFile* theWrappedObject);
956 bool isSREC(srecFile* theWrappedObject);
833 bool static_srecFile_isSREC(const QString& File);
957 bool static_srecFile_isSREC(const QString& File);
834 bool isopened(srecFile* theWrappedObject);
958 bool isopened(srecFile* theWrappedObject);
835 int lineCount(srecFile* theWrappedObject);
959 int lineCount(srecFile* theWrappedObject);
836 bool openFile(srecFile* theWrappedObject, const QString& File);
960 bool openFile(srecFile* theWrappedObject, const QString& File);
837 bool openFiles(srecFile* theWrappedObject, const QStringList& Files);
961 bool openFiles(srecFile* theWrappedObject, const QStringList& Files);
838 bool static_srecFile_toSrec(QList<codeFragment* > fragments, const QString& File);
962 bool static_srecFile_toSrec(QList<codeFragment* > fragments, const QString& File);
839 };
963 };
840
964
841
965
842
966
843
967
844
968
845 class PythonQtShell_srecFileWidget : public srecFileWidget
969 class PythonQtShell_srecFileWidget : public srecFileWidget
846 {
970 {
847 public:
971 public:
848 PythonQtShell_srecFileWidget(QWidget* parent = 0):srecFileWidget(parent),_wrapper(NULL) {};
972 PythonQtShell_srecFileWidget(QWidget* parent = 0):srecFileWidget(parent),_wrapper(NULL) {};
849
973
850 ~PythonQtShell_srecFileWidget();
974 ~PythonQtShell_srecFileWidget();
851
975
852 virtual void actionEvent(QActionEvent* arg__1);
976 virtual void actionEvent(QActionEvent* arg__1);
853 virtual void changeEvent(QEvent* arg__1);
977 virtual void changeEvent(QEvent* arg__1);
854 virtual void childEvent(QChildEvent* arg__1);
978 virtual void childEvent(QChildEvent* arg__1);
855 virtual void closeEvent(QCloseEvent* arg__1);
979 virtual void closeEvent(QCloseEvent* arg__1);
856 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
980 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
857 virtual void customEvent(QEvent* arg__1);
981 virtual void customEvent(QEvent* arg__1);
858 virtual int devType() const;
982 virtual int devType() const;
859 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
983 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
860 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
984 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
861 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
985 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
862 virtual void dropEvent(QDropEvent* arg__1);
986 virtual void dropEvent(QDropEvent* arg__1);
863 virtual void enterEvent(QEvent* arg__1);
987 virtual void enterEvent(QEvent* arg__1);
864 virtual bool event(QEvent* arg__1);
988 virtual bool event(QEvent* arg__1);
865 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
989 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
866 virtual void focusInEvent(QFocusEvent* arg__1);
990 virtual void focusInEvent(QFocusEvent* arg__1);
867 virtual bool focusNextPrevChild(bool next);
991 virtual bool focusNextPrevChild(bool next);
868 virtual void focusOutEvent(QFocusEvent* arg__1);
992 virtual void focusOutEvent(QFocusEvent* arg__1);
869 virtual bool hasHeightForWidth() const;
993 virtual bool hasHeightForWidth() const;
870 virtual int heightForWidth(int arg__1) const;
994 virtual int heightForWidth(int arg__1) const;
871 virtual void hideEvent(QHideEvent* arg__1);
995 virtual void hideEvent(QHideEvent* arg__1);
872 virtual void initPainter(QPainter* painter) const;
996 virtual void initPainter(QPainter* painter) const;
873 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
997 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
874 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
998 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
875 virtual void keyPressEvent(QKeyEvent* arg__1);
999 virtual void keyPressEvent(QKeyEvent* arg__1);
876 virtual void keyReleaseEvent(QKeyEvent* arg__1);
1000 virtual void keyReleaseEvent(QKeyEvent* arg__1);
877 virtual void leaveEvent(QEvent* arg__1);
1001 virtual void leaveEvent(QEvent* arg__1);
878 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
1002 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
879 virtual QSize minimumSizeHint() const;
1003 virtual QSize minimumSizeHint() const;
880 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
1004 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
881 virtual void mouseMoveEvent(QMouseEvent* arg__1);
1005 virtual void mouseMoveEvent(QMouseEvent* arg__1);
882 virtual void mousePressEvent(QMouseEvent* arg__1);
1006 virtual void mousePressEvent(QMouseEvent* arg__1);
883 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
1007 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
884 virtual void moveEvent(QMoveEvent* arg__1);
1008 virtual void moveEvent(QMoveEvent* arg__1);
885 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
1009 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
886 virtual QPaintEngine* paintEngine() const;
1010 virtual QPaintEngine* paintEngine() const;
887 virtual void paintEvent(QPaintEvent* arg__1);
1011 virtual void paintEvent(QPaintEvent* arg__1);
888 virtual QPaintDevice* redirected(QPoint* offset) const;
1012 virtual QPaintDevice* redirected(QPoint* offset) const;
889 virtual void resizeEvent(QResizeEvent* arg__1);
1013 virtual void resizeEvent(QResizeEvent* arg__1);
890 virtual QPainter* sharedPainter() const;
1014 virtual QPainter* sharedPainter() const;
891 virtual void showEvent(QShowEvent* arg__1);
1015 virtual void showEvent(QShowEvent* arg__1);
892 virtual QSize sizeHint() const;
1016 virtual QSize sizeHint() const;
893 virtual void tabletEvent(QTabletEvent* arg__1);
1017 virtual void tabletEvent(QTabletEvent* arg__1);
894 virtual void timerEvent(QTimerEvent* arg__1);
1018 virtual void timerEvent(QTimerEvent* arg__1);
895 virtual void wheelEvent(QWheelEvent* arg__1);
1019 virtual void wheelEvent(QWheelEvent* arg__1);
896
1020
897 PythonQtInstanceWrapper* _wrapper;
1021 PythonQtInstanceWrapper* _wrapper;
898 };
1022 };
899
1023
900 class PythonQtWrapper_srecFileWidget : public QObject
1024 class PythonQtWrapper_srecFileWidget : public QObject
901 { Q_OBJECT
1025 { Q_OBJECT
902 public:
1026 public:
903 public slots:
1027 public slots:
904 srecFileWidget* new_srecFileWidget(QWidget* parent = 0);
1028 srecFileWidget* new_srecFileWidget(QWidget* parent = 0);
905 void delete_srecFileWidget(srecFileWidget* obj) { delete obj; }
1029 void delete_srecFileWidget(srecFileWidget* obj) { delete obj; }
906 };
1030 };
907
1031
908
1032
@@ -1,23 +1,26
1 #include <PythonQt.h>
1 #include <PythonQt.h>
2 #include "PySocExplorer0.h"
2 #include "PySocExplorer0.h"
3
3
4
4
5 void PythonQt_init_PySocExplorer(PyObject* module) {
5 void PythonQt_init_PySocExplorer(PyObject* module) {
6 PythonQt::priv()->registerClass(&ElfFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_ElfFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_ElfFile>, module, 0);
6 PythonQt::priv()->registerClass(&ElfFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_ElfFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_ElfFile>, module, 0);
7 PythonQt::self()->addParentClass("ElfFile", "abstractBinFile",PythonQtUpcastingOffset<ElfFile,abstractBinFile>());
7 PythonQt::self()->addParentClass("ElfFile", "abstractBinFile",PythonQtUpcastingOffset<ElfFile,abstractBinFile>());
8 PythonQt::priv()->registerClass(&MemSizeWdgt::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_MemSizeWdgt>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_MemSizeWdgt>, module, 0);
8 PythonQt::priv()->registerClass(&MemSizeWdgt::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_MemSizeWdgt>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_MemSizeWdgt>, module, 0);
9 PythonQt::priv()->registerClass(&QHexEdit::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_QHexEdit>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHexEdit>, module, 0);
9 PythonQt::priv()->registerClass(&QHexEdit::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_QHexEdit>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHexEdit>, module, 0);
10 PythonQt::priv()->registerClass(&QHexSpinBox::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_QHexSpinBox>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHexSpinBox>, module, 0);
10 PythonQt::priv()->registerClass(&QHexSpinBox::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_QHexSpinBox>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHexSpinBox>, module, 0);
11 PythonQt::priv()->registerClass(&SocExplorerPlot::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_SocExplorerPlot>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_SocExplorerPlot>, module, 0);
11 PythonQt::priv()->registerClass(&SocExplorerPlot::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_SocExplorerPlot>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_SocExplorerPlot>, module, 0);
12 PythonQt::priv()->registerClass(&TCP_Terminal_Client::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_TCP_Terminal_Client>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_TCP_Terminal_Client>, module, 0);
12 PythonQt::priv()->registerClass(&TCP_Terminal_Client::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_TCP_Terminal_Client>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_TCP_Terminal_Client>, module, 0);
13 PythonQt::priv()->registerCPPClass("XByteArray", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_XByteArray>, NULL, module, 0);
13 PythonQt::priv()->registerCPPClass("XByteArray", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_XByteArray>, NULL, module, 0);
14 PythonQt::priv()->registerClass(&abstractBinFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_abstractBinFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_abstractBinFile>, module, 0);
14 PythonQt::priv()->registerClass(&abstractBinFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_abstractBinFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_abstractBinFile>, module, 0);
15 PythonQt::priv()->registerClass(&binaryFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_binaryFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_binaryFile>, module, 0);
16 PythonQt::self()->addParentClass("binaryFile", "abstractBinFile",PythonQtUpcastingOffset<binaryFile,abstractBinFile>());
17 PythonQt::priv()->registerClass(&binaryFileWidget::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_binaryFileWidget>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_binaryFileWidget>, module, 0);
15 PythonQt::priv()->registerCPPClass("codeFragment", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_codeFragment>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_codeFragment>, module, 0);
18 PythonQt::priv()->registerCPPClass("codeFragment", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_codeFragment>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_codeFragment>, module, 0);
16 PythonQt::priv()->registerClass(&elfFileWidget::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_elfFileWidget>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_elfFileWidget>, module, 0);
19 PythonQt::priv()->registerClass(&elfFileWidget::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_elfFileWidget>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_elfFileWidget>, module, 0);
17 PythonQt::priv()->registerClass(&elfInfoWdgt::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_elfInfoWdgt>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_elfInfoWdgt>, module, 0);
20 PythonQt::priv()->registerClass(&elfInfoWdgt::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_elfInfoWdgt>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_elfInfoWdgt>, module, 0);
18 PythonQt::priv()->registerCPPClass("elfparser", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_elfparser>, NULL, module, 0);
21 PythonQt::priv()->registerCPPClass("elfparser", "", "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_elfparser>, NULL, module, 0);
19 PythonQt::priv()->registerClass(&srecFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_srecFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_srecFile>, module, 0);
22 PythonQt::priv()->registerClass(&srecFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_srecFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_srecFile>, module, 0);
20 PythonQt::self()->addParentClass("srecFile", "abstractBinFile",PythonQtUpcastingOffset<srecFile,abstractBinFile>());
23 PythonQt::self()->addParentClass("srecFile", "abstractBinFile",PythonQtUpcastingOffset<srecFile,abstractBinFile>());
21 PythonQt::priv()->registerClass(&srecFileWidget::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_srecFileWidget>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_srecFileWidget>, module, 0);
24 PythonQt::priv()->registerClass(&srecFileWidget::staticMetaObject, "PySocExplorer", PythonQtCreateObject<PythonQtWrapper_srecFileWidget>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_srecFileWidget>, module, 0);
22
25
23 }
26 }
@@ -1,62 +1,69
1 <typesystem package="PySocExplorer" default-superclass="com.trolltech.qt.QtJambiObject">
1 <typesystem package="PySocExplorer" default-superclass="com.trolltech.qt.QtJambiObject">
2 <load-typesystem name=":/trolltech/generator/typesystem_core.txt" generate="no" />
2 <load-typesystem name=":/trolltech/generator/typesystem_core.txt" generate="no" />
3 <load-typesystem name=":/trolltech/generator/typesystem_gui.txt" generate="no" />
3 <load-typesystem name=":/trolltech/generator/typesystem_gui.txt" generate="no" />
4 <load-typesystem name=":/trolltech/generator/typesystem_network.txt" generate="no" />
4 <load-typesystem name=":/trolltech/generator/typesystem_network.txt" generate="no" />
5
5
6
6
7 <object-type name="QHexSpinBox">
7 <object-type name="QHexSpinBox">
8 <extra-includes>
8 <extra-includes>
9 <include file-name="QWidget" location="global"/>
9 <include file-name="QWidget" location="global"/>
10 <include file-name="QObject" location="global"/>
10 <include file-name="QObject" location="global"/>
11 <include file-name="QSpinBox" location="global"/>
11 <include file-name="QSpinBox" location="global"/>
12 </extra-includes>
12 </extra-includes>
13 </object-type>
13 </object-type>
14 <object-type name="MemSizeWdgt" />
14 <object-type name="MemSizeWdgt" />
15 <object-type name="QHexEdit" />
15 <object-type name="QHexEdit" />
16 <object-type name="XByteArray" />
16 <object-type name="XByteArray" />
17 <object-type name="SocExplorerPlot" />
17 <object-type name="SocExplorerPlot" />
18 <object-type name="TCP_Terminal_Client" />
18 <object-type name="TCP_Terminal_Client" />
19 <object-type name="codeFragment" />
19 <object-type name="codeFragment" />
20 <object-type name="srecFile" />
20 <object-type name="srecFile" />
21 <object-type name="binaryFile" />
21 <rejection class="Elf_Section"/>
22 <rejection class="Elf_Section"/>
22 <object-type name="elfparser" />
23 <object-type name="elfparser" />
23 <interface-type name="abstractBinFile">
24 <interface-type name="abstractBinFile">
24 <extra-includes>
25 <extra-includes>
25 <include file-name="QWidget" location="global"/>
26 <include file-name="QWidget" location="global"/>
26 <include file-name="QObject" location="global"/>
27 <include file-name="QObject" location="global"/>
27 </extra-includes>
28 </extra-includes>
28 </interface-type>
29 </interface-type>
29 <object-type name="ElfFile">
30 <object-type name="ElfFile">
30 <extra-includes>
31 <extra-includes>
31 <include file-name="QWidget" location="global"/>
32 <include file-name="QWidget" location="global"/>
32 <include file-name="QObject" location="global"/>
33 <include file-name="QObject" location="global"/>
33 </extra-includes>
34 </extra-includes>
34 </object-type>
35 </object-type>
35 <object-type name="elfFileWidget">
36 <object-type name="elfFileWidget">
36 <extra-includes>
37 <extra-includes>
37 <include file-name="QWidget" location="global"/>
38 <include file-name="QWidget" location="global"/>
38 <include file-name="QObject" location="global"/>
39 <include file-name="QObject" location="global"/>
39 </extra-includes>
40 </extra-includes>
40 </object-type>
41 </object-type>
41 <object-type name="srecFileWidget">
42 <object-type name="srecFileWidget">
42 <extra-includes>
43 <extra-includes>
43 <include file-name="QWidget" location="global"/>
44 <include file-name="QWidget" location="global"/>
44 <include file-name="QObject" location="global"/>
45 <include file-name="QObject" location="global"/>
45 </extra-includes>
46 </extra-includes>
46 </object-type>
47 </object-type>
48 <object-type name="binaryFileWidget">
49 <extra-includes>
50 <include file-name="QWidget" location="global"/>
51 <include file-name="QObject" location="global"/>
52 </extra-includes>
53 </object-type>
47 <object-type name="elfInfoWdgt">
54 <object-type name="elfInfoWdgt">
48 <extra-includes>
55 <extra-includes>
49 <include file-name="QWidget" location="global"/>
56 <include file-name="QWidget" location="global"/>
50 <include file-name="QObject" location="global"/>
57 <include file-name="QObject" location="global"/>
51 </extra-includes>
58 </extra-includes>
52 </object-type>
59 </object-type>
53
60
54 </typesystem>
61 </typesystem>
55
62
56
63
57
64
58
65
59
66
60
67
61
68
62
69
@@ -1,6 +1,6
1 #!/bin/bash
1 #!/bin/bash
2
2
3 #export QTDIR=/usr/include
3 #export QTDIR=/usr/include
4 #export QTDIR=/usr/include/qt5
4 #export QTDIR=/usr/include/qt5
5
5
6 pythonqt_generator --include-paths=./elf:./srec:/usr/include/qt5:/usr/include/qt5/QtCore:/usr/include/qt5/QtWidgets --output-directory=pythonQtOut PySocExplorer.h pythonQtgeneratorCfg.txt
6 pythonqt_generator --include-paths=./elf:./srec:./BinFile:/usr/include/qt5:/usr/include/qt5/QtCore:/usr/include/qt5/QtWidgets --output-directory=pythonQtOut PySocExplorer.h pythonQtgeneratorCfg.txt
@@ -1,180 +1,205
1 #include <QtGui>
1 #include <QtGui>
2
2
3 #include "qhexedit.h"
3 #include "qhexedit.h"
4
4
5
5
6 QHexEdit::QHexEdit(QWidget *parent) : QScrollArea(parent)
6 QHexEdit::QHexEdit(QWidget *parent) : QScrollArea(parent)
7 {
7 {
8 qHexEdit_p = new QHexEditPrivate(this);
8 qHexEdit_p = new QHexEditPrivate(this);
9 setWidget(qHexEdit_p);
9 setWidget(qHexEdit_p);
10 //setWidgetResizable(true);
10 //setWidgetResizable(true);
11
11
12 connect(qHexEdit_p, SIGNAL(currentAddressChanged(int)), this, SIGNAL(currentAddressChanged(int)));
12 connect(qHexEdit_p, SIGNAL(currentAddressChanged(int)), this, SIGNAL(currentAddressChanged(int)));
13 connect(qHexEdit_p, SIGNAL(currentSizeChanged(int)), this, SIGNAL(currentSizeChanged(int)));
13 connect(qHexEdit_p, SIGNAL(currentSizeChanged(int)), this, SIGNAL(currentSizeChanged(int)));
14 connect(qHexEdit_p, SIGNAL(dataChanged()), this, SIGNAL(dataChanged()));
14 connect(qHexEdit_p, SIGNAL(dataChanged()), this, SIGNAL(dataChanged()));
15 connect(qHexEdit_p, SIGNAL(overwriteModeChanged(bool)), this, SIGNAL(overwriteModeChanged(bool)));
15 connect(qHexEdit_p, SIGNAL(overwriteModeChanged(bool)), this, SIGNAL(overwriteModeChanged(bool)));
16 setFocusPolicy(Qt::NoFocus);
16 setFocusPolicy(Qt::NoFocus);
17 }
17 }
18
18
19 int QHexEdit::indexOf(const QByteArray & ba, int from) const
19 int QHexEdit::indexOf(const QByteArray & ba, int from) const
20 {
20 {
21 return qHexEdit_p->indexOf(ba, from);
21 return qHexEdit_p->indexOf(ba, from);
22 }
22 }
23
23
24 void QHexEdit::insert(int i, const QByteArray & ba)
24 void QHexEdit::insert(int i, const QByteArray & ba)
25 {
25 {
26 qHexEdit_p->insert(i, ba);
26 qHexEdit_p->insert(i, ba);
27 }
27 }
28
28
29 void QHexEdit::insert(int i, char ch)
29 void QHexEdit::insert(int i, char ch)
30 {
30 {
31 qHexEdit_p->insert(i, ch);
31 qHexEdit_p->insert(i, ch);
32 }
32 }
33
33
34 int QHexEdit::lastIndexOf(const QByteArray & ba, int from) const
34 int QHexEdit::lastIndexOf(const QByteArray & ba, int from) const
35 {
35 {
36 return qHexEdit_p->lastIndexOf(ba, from);
36 return qHexEdit_p->lastIndexOf(ba, from);
37 }
37 }
38
38
39 void QHexEdit::remove(int pos, int len)
39 void QHexEdit::remove(int pos, int len)
40 {
40 {
41 qHexEdit_p->remove(pos, len);
41 qHexEdit_p->remove(pos, len);
42 }
42 }
43
43
44 void QHexEdit::replace( int pos, int len, const QByteArray & after)
44 void QHexEdit::replace( int pos, int len, const QByteArray & after)
45 {
45 {
46 qHexEdit_p->replace(pos, len, after);
46 qHexEdit_p->replace(pos, len, after);
47 }
47 }
48
48
49 QString QHexEdit::toReadableString()
49 QString QHexEdit::toReadableString()
50 {
50 {
51 return qHexEdit_p->toRedableString();
51 return qHexEdit_p->toRedableString();
52 }
52 }
53
53
54 QString QHexEdit::selectionToReadableString()
54 QString QHexEdit::selectionToReadableString()
55 {
55 {
56 return qHexEdit_p->selectionToReadableString();
56 return qHexEdit_p->selectionToReadableString();
57 }
57 }
58
58
59 void QHexEdit::setAddressArea(bool addressArea)
59 void QHexEdit::setAddressArea(bool addressArea)
60 {
60 {
61 qHexEdit_p->setAddressArea(addressArea);
61 qHexEdit_p->setAddressArea(addressArea);
62 }
62 }
63
63
64 void QHexEdit::redo()
64 void QHexEdit::redo()
65 {
65 {
66 qHexEdit_p->redo();
66 qHexEdit_p->redo();
67 }
67 }
68
68
69 void QHexEdit::undo()
69 void QHexEdit::undo()
70 {
70 {
71 qHexEdit_p->undo();
71 qHexEdit_p->undo();
72 }
72 }
73
73
74 void QHexEdit::setAddressWidth(int addressWidth)
74 void QHexEdit::setAddressWidth(int addressWidth)
75 {
75 {
76 qHexEdit_p->setAddressWidth(addressWidth);
76 qHexEdit_p->setAddressWidth(addressWidth);
77 }
77 }
78
78
79 void QHexEdit::setAsciiArea(bool asciiArea)
79 void QHexEdit::setAsciiArea(bool asciiArea)
80 {
80 {
81 qHexEdit_p->setAsciiArea(asciiArea);
81 qHexEdit_p->setAsciiArea(asciiArea);
82 }
82 }
83
83
84 void QHexEdit::setHighlighting(bool mode)
84 void QHexEdit::setHighlighting(bool mode)
85 {
85 {
86 qHexEdit_p->setHighlighting(mode);
86 qHexEdit_p->setHighlighting(mode);
87 }
87 }
88
88
89 void QHexEdit::setAddressOffset(int offset)
89 void QHexEdit::setAddressOffset(int offset)
90 {
90 {
91 qHexEdit_p->setAddressOffset(offset);
91 qHexEdit_p->setAddressOffset(offset);
92 }
92 }
93
93
94 int QHexEdit::addressOffset()
94 int QHexEdit::addressOffset()
95 {
95 {
96 return qHexEdit_p->addressOffset();
96 return qHexEdit_p->addressOffset();
97 }
97 }
98
98
99 void QHexEdit::setCursorPosition(int cursorPos)
99 void QHexEdit::setCursorPosition(int cursorPos)
100 {
100 {
101 // cursorPos in QHexEditPrivate is the position of the textcoursor without
101 // cursorPos in QHexEditPrivate is the position of the textcoursor without
102 // blanks, means bytePos*2
102 // blanks, means bytePos*2
103 qHexEdit_p->setCursorPos(cursorPos*2);
103 qHexEdit_p->setCursorPos(cursorPos*2);
104 }
104 }
105
105
106 int QHexEdit::cursorPosition()
106 int QHexEdit::cursorPosition()
107 {
107 {
108 return qHexEdit_p->cursorPos() / 2;
108 return qHexEdit_p->cursorPos() / 2;
109 }
109 }
110
110
111
111
112 void QHexEdit::setData(const QByteArray &data)
112 void QHexEdit::setData(const QByteArray &data)
113 {
113 {
114 qHexEdit_p->setData(data);
114 qHexEdit_p->setData(data);
115 }
115 }
116
116
117 QByteArray QHexEdit::data()
117 QByteArray QHexEdit::data()
118 {
118 {
119 return qHexEdit_p->data();
119 return qHexEdit_p->data();
120 }
120 }
121
121
122 void QHexEdit::setAddressAreaColor(const QColor &color)
122 void QHexEdit::setAddressAreaColor(const QColor &color)
123 {
123 {
124 qHexEdit_p->setAddressAreaColor(color);
124 qHexEdit_p->setAddressAreaColor(color);
125 }
125 }
126
126
127 QColor QHexEdit::addressAreaColor()
127 QColor QHexEdit::addressAreaColor()
128 {
128 {
129 return qHexEdit_p->addressAreaColor();
129 return qHexEdit_p->addressAreaColor();
130 }
130 }
131
131
132 void QHexEdit::setHighlightingColor(const QColor &color)
132 void QHexEdit::setHighlightingColor(const QColor &color)
133 {
133 {
134 qHexEdit_p->setHighlightingColor(color);
134 qHexEdit_p->setHighlightingColor(color);
135 }
135 }
136
136
137 QColor QHexEdit::highlightingColor()
137 QColor QHexEdit::highlightingColor()
138 {
138 {
139 return qHexEdit_p->highlightingColor();
139 return qHexEdit_p->highlightingColor();
140 }
140 }
141
141
142 void QHexEdit::setSelectionColor(const QColor &color)
142 void QHexEdit::setSelectionColor(const QColor &color)
143 {
143 {
144 qHexEdit_p->setSelectionColor(color);
144 qHexEdit_p->setSelectionColor(color);
145 }
145 }
146
146
147 QColor QHexEdit::selectionColor()
147 QColor QHexEdit::selectionColor()
148 {
148 {
149 return qHexEdit_p->selectionColor();
149 return qHexEdit_p->selectionColor();
150 }
150 }
151
151
152 void QHexEdit::setOverwriteMode(bool overwriteMode)
152 void QHexEdit::setOverwriteMode(bool overwriteMode)
153 {
153 {
154 qHexEdit_p->setOverwriteMode(overwriteMode);
154 qHexEdit_p->setOverwriteMode(overwriteMode);
155 }
155 }
156
156
157 bool QHexEdit::overwriteMode()
157 bool QHexEdit::overwriteMode()
158 {
158 {
159 return qHexEdit_p->overwriteMode();
159 return qHexEdit_p->overwriteMode();
160 }
160 }
161
161
162 void QHexEdit::setReadOnly(bool readOnly)
162 void QHexEdit::setReadOnly(bool readOnly)
163 {
163 {
164 qHexEdit_p->setReadOnly(readOnly);
164 qHexEdit_p->setReadOnly(readOnly);
165 }
165 }
166
166
167 bool QHexEdit::isReadOnly()
167 bool QHexEdit::isReadOnly()
168 {
168 {
169 return qHexEdit_p->isReadOnly();
169 return qHexEdit_p->isReadOnly();
170 }
170 }
171
171
172 void QHexEdit::setFont(const QFont &font)
172 void QHexEdit::setFont(const QFont &font)
173 {
173 {
174 qHexEdit_p->setFont(font);
174 qHexEdit_p->setFont(font);
175 }
175 }
176
176
177 void QHexEdit::resetSelection(int pos)
178 {
179 qHexEdit_p->resetSelection(pos);
180 }
181
182 void QHexEdit::resetSelection()
183 {
184 qHexEdit_p->resetSelection();
185 }
186
187 void QHexEdit::setSelection(int pos)
188 {
189 qHexEdit_p->setSelection(pos);
190 }
191
192 int QHexEdit::getSelectionBegin()
193 {
194 return qHexEdit_p->getSelectionBegin();
195 }
196
197 int QHexEdit::getSelectionEnd()
198 {
199 return qHexEdit_p->getSelectionEnd();
200 }
201
177 const QFont & QHexEdit::font() const
202 const QFont & QHexEdit::font() const
178 {
203 {
179 return qHexEdit_p->font();
204 return qHexEdit_p->font();
180 }
205 }
@@ -1,237 +1,243
1 #ifndef QHEXEDIT_H
1 #ifndef QHEXEDIT_H
2 #define QHEXEDIT_H
2 #define QHEXEDIT_H
3
3
4 #include <QtGui>
4 #include <QtGui>
5 #include "qhexedit_p.h"
5 #include "qhexedit_p.h"
6 #include <QHBoxLayout>
6 #include <QHBoxLayout>
7
7
8 /** \mainpage
8 /** \mainpage
9 QHexEdit is a binary editor widget for Qt.
9 QHexEdit is a binary editor widget for Qt.
10
10
11 \version Version 0.6.3
11 \version Version 0.6.3
12 \image html hexedit.png
12 \image html hexedit.png
13 */
13 */
14
14
15
15
16 /*! QHexEdit is a hex editor widget written in C++ for the Qt (Qt4) framework.
16 /*! QHexEdit is a hex editor widget written in C++ for the Qt (Qt4) framework.
17 It is a simple editor for binary data, just like QPlainTextEdit is for text
17 It is a simple editor for binary data, just like QPlainTextEdit is for text
18 data. There are sip configuration files included, so it is easy to create
18 data. There are sip configuration files included, so it is easy to create
19 bindings for PyQt and you can use this widget also in python.
19 bindings for PyQt and you can use this widget also in python.
20
20
21 QHexEdit takes the data of a QByteArray (setData()) and shows it. You can use
21 QHexEdit takes the data of a QByteArray (setData()) and shows it. You can use
22 the mouse or the keyboard to navigate inside the widget. If you hit the keys
22 the mouse or the keyboard to navigate inside the widget. If you hit the keys
23 (0..9, a..f) you will change the data. Changed data is highlighted and can be
23 (0..9, a..f) you will change the data. Changed data is highlighted and can be
24 accessed via data().
24 accessed via data().
25
25
26 Normaly QHexEdit works in the overwrite Mode. You can set overwriteMode(false)
26 Normaly QHexEdit works in the overwrite Mode. You can set overwriteMode(false)
27 and insert data. In this case the size of data() increases. It is also possible
27 and insert data. In this case the size of data() increases. It is also possible
28 to delete bytes (del or backspace), here the size of data decreases.
28 to delete bytes (del or backspace), here the size of data decreases.
29
29
30 You can select data with keyboard hits or mouse movements. The copy-key will
30 You can select data with keyboard hits or mouse movements. The copy-key will
31 copy the selected data into the clipboard. The cut-key copies also but delets
31 copy the selected data into the clipboard. The cut-key copies also but delets
32 it afterwards. In overwrite mode, the paste function overwrites the content of
32 it afterwards. In overwrite mode, the paste function overwrites the content of
33 the (does not change the length) data. In insert mode, clipboard data will be
33 the (does not change the length) data. In insert mode, clipboard data will be
34 inserted. The clipboard content is expected in ASCII Hex notation. Unknown
34 inserted. The clipboard content is expected in ASCII Hex notation. Unknown
35 characters will be ignored.
35 characters will be ignored.
36
36
37 QHexEdit comes with undo/redo functionality. All changes can be undone, by
37 QHexEdit comes with undo/redo functionality. All changes can be undone, by
38 pressing the undo-key (usually ctr-z). They can also be redone afterwards.
38 pressing the undo-key (usually ctr-z). They can also be redone afterwards.
39 The undo/redo framework is cleared, when setData() sets up a new
39 The undo/redo framework is cleared, when setData() sets up a new
40 content for the editor. You can search data inside the content with indexOf()
40 content for the editor. You can search data inside the content with indexOf()
41 and lastIndexOf(). The replace() function is to change located subdata. This
41 and lastIndexOf(). The replace() function is to change located subdata. This
42 'replaced' data can also be undone by the undo/redo framework.
42 'replaced' data can also be undone by the undo/redo framework.
43
43
44 This widget can only handle small amounts of data. The size has to be below 10
44 This widget can only handle small amounts of data. The size has to be below 10
45 megabytes, otherwise the scroll sliders ard not shown and you can't scroll any
45 megabytes, otherwise the scroll sliders ard not shown and you can't scroll any
46 more.
46 more.
47 */
47 */
48 class QHexEdit : public QScrollArea
48 class QHexEdit : public QScrollArea
49 {
49 {
50 Q_OBJECT
50 Q_OBJECT
51 /*! Property data holds the content of QHexEdit. Call setData() to set the
51 /*! Property data holds the content of QHexEdit. Call setData() to set the
52 content of QHexEdit, data() returns the actual content.
52 content of QHexEdit, data() returns the actual content.
53 */
53 */
54 Q_PROPERTY(QByteArray data READ data WRITE setData)
54 Q_PROPERTY(QByteArray data READ data WRITE setData)
55
55
56 /*! Property addressOffset is added to the Numbers of the Address Area.
56 /*! Property addressOffset is added to the Numbers of the Address Area.
57 A offset in the address area (left side) is sometimes usefull, whe you show
57 A offset in the address area (left side) is sometimes usefull, whe you show
58 only a segment of a complete memory picture. With setAddressOffset() you set
58 only a segment of a complete memory picture. With setAddressOffset() you set
59 this property - with addressOffset() you get the actual value.
59 this property - with addressOffset() you get the actual value.
60 */
60 */
61 Q_PROPERTY(int addressOffset READ addressOffset WRITE setAddressOffset)
61 Q_PROPERTY(int addressOffset READ addressOffset WRITE setAddressOffset)
62
62
63 /*! Property address area color sets (setAddressAreaColor()) the backgorund
63 /*! Property address area color sets (setAddressAreaColor()) the backgorund
64 color of address areas. You can also read the color (addressaAreaColor()).
64 color of address areas. You can also read the color (addressaAreaColor()).
65 */
65 */
66 Q_PROPERTY(QColor addressAreaColor READ addressAreaColor WRITE setAddressAreaColor)
66 Q_PROPERTY(QColor addressAreaColor READ addressAreaColor WRITE setAddressAreaColor)
67
67
68 /*! Porperty cursorPosition sets or gets the position of the editor cursor
68 /*! Porperty cursorPosition sets or gets the position of the editor cursor
69 in QHexEdit.
69 in QHexEdit.
70 */
70 */
71 Q_PROPERTY(int cursorPosition READ cursorPosition WRITE setCursorPosition)
71 Q_PROPERTY(int cursorPosition READ cursorPosition WRITE setCursorPosition)
72
72
73 /*! Property highlighting color sets (setHighlightingColor()) the backgorund
73 /*! Property highlighting color sets (setHighlightingColor()) the backgorund
74 color of highlighted text areas. You can also read the color
74 color of highlighted text areas. You can also read the color
75 (highlightingColor()).
75 (highlightingColor()).
76 */
76 */
77 Q_PROPERTY(QColor highlightingColor READ highlightingColor WRITE setHighlightingColor)
77 Q_PROPERTY(QColor highlightingColor READ highlightingColor WRITE setHighlightingColor)
78
78
79 /*! Property selection color sets (setSelectionColor()) the backgorund
79 /*! Property selection color sets (setSelectionColor()) the backgorund
80 color of selected text areas. You can also read the color
80 color of selected text areas. You can also read the color
81 (selectionColor()).
81 (selectionColor()).
82 */
82 */
83 Q_PROPERTY(QColor selectionColor READ selectionColor WRITE setSelectionColor)
83 Q_PROPERTY(QColor selectionColor READ selectionColor WRITE setSelectionColor)
84
84
85 /*! Porperty overwrite mode sets (setOverwriteMode()) or gets (overwriteMode()) the mode
85 /*! Porperty overwrite mode sets (setOverwriteMode()) or gets (overwriteMode()) the mode
86 in which the editor works. In overwrite mode the user will overwrite existing data. The
86 in which the editor works. In overwrite mode the user will overwrite existing data. The
87 size of data will be constant. In insert mode the size will grow, when inserting
87 size of data will be constant. In insert mode the size will grow, when inserting
88 new data.
88 new data.
89 */
89 */
90 Q_PROPERTY(bool overwriteMode READ overwriteMode WRITE setOverwriteMode)
90 Q_PROPERTY(bool overwriteMode READ overwriteMode WRITE setOverwriteMode)
91
91
92 /*! Porperty readOnly sets (setReadOnly()) or gets (isReadOnly) the mode
92 /*! Porperty readOnly sets (setReadOnly()) or gets (isReadOnly) the mode
93 in which the editor works. In readonly mode the the user can only navigate
93 in which the editor works. In readonly mode the the user can only navigate
94 through the data and select data; modifying is not possible. This
94 through the data and select data; modifying is not possible. This
95 property's default is false.
95 property's default is false.
96 */
96 */
97 Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
97 Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
98
98
99 /*! Set the font of the widget. Please use fixed width fonts like Mono or Courier.*/
99 /*! Set the font of the widget. Please use fixed width fonts like Mono or Courier.*/
100 Q_PROPERTY(QFont font READ font WRITE setFont)
100 Q_PROPERTY(QFont font READ font WRITE setFont)
101
101
102
102
103 public:
103 public:
104 /*! Creates an instance of QHexEdit.
104 /*! Creates an instance of QHexEdit.
105 \param parent Parent widget of QHexEdit.
105 \param parent Parent widget of QHexEdit.
106 */
106 */
107 QHexEdit(QWidget *parent = 0);
107 QHexEdit(QWidget *parent = 0);
108
108
109 /*! Returns the index position of the first occurrence
109 /*! Returns the index position of the first occurrence
110 of the byte array ba in this byte array, searching forward from index position
110 of the byte array ba in this byte array, searching forward from index position
111 from. Returns -1 if ba could not be found. In addition to this functionality
111 from. Returns -1 if ba could not be found. In addition to this functionality
112 of QByteArray the cursorposition is set to the end of found bytearray and
112 of QByteArray the cursorposition is set to the end of found bytearray and
113 it will be selected.
113 it will be selected.
114
114
115 */
115 */
116 int indexOf(const QByteArray & ba, int from = 0) const;
116 int indexOf(const QByteArray & ba, int from = 0) const;
117
117
118 /*! Inserts a byte array.
118 /*! Inserts a byte array.
119 \param i Index position, where to insert
119 \param i Index position, where to insert
120 \param ba byte array, which is to insert
120 \param ba byte array, which is to insert
121 In overwrite mode, the existing data will be overwritten, in insertmode ba will be
121 In overwrite mode, the existing data will be overwritten, in insertmode ba will be
122 inserted and size of data grows.
122 inserted and size of data grows.
123 */
123 */
124 void insert(int i, const QByteArray & ba);
124 void insert(int i, const QByteArray & ba);
125
125
126 /*! Inserts a char.
126 /*! Inserts a char.
127 \param i Index position, where to insert
127 \param i Index position, where to insert
128 \param ch Char, which is to insert
128 \param ch Char, which is to insert
129 In overwrite mode, the existing data will be overwritten, in insertmode ba will be
129 In overwrite mode, the existing data will be overwritten, in insertmode ba will be
130 inserted and size of data grows.
130 inserted and size of data grows.
131 */
131 */
132 void insert(int i, char ch);
132 void insert(int i, char ch);
133
133
134 /*! Returns the index position of the last occurrence
134 /*! Returns the index position of the last occurrence
135 of the byte array ba in this byte array, searching backwards from index position
135 of the byte array ba in this byte array, searching backwards from index position
136 from. Returns -1 if ba could not be found. In addition to this functionality
136 from. Returns -1 if ba could not be found. In addition to this functionality
137 of QByteArray the cursorposition is set to the beginning of found bytearray and
137 of QByteArray the cursorposition is set to the beginning of found bytearray and
138 it will be selected.
138 it will be selected.
139
139
140 */
140 */
141 int lastIndexOf(const QByteArray & ba, int from = 0) const;
141 int lastIndexOf(const QByteArray & ba, int from = 0) const;
142
142
143 /*! Removes len bytes from the content.
143 /*! Removes len bytes from the content.
144 \param pos Index position, where to remove
144 \param pos Index position, where to remove
145 \param len Amount of bytes to remove
145 \param len Amount of bytes to remove
146 In overwrite mode, the existing bytes will be overwriten with 0x00.
146 In overwrite mode, the existing bytes will be overwriten with 0x00.
147 */
147 */
148 void remove(int pos, int len=1);
148 void remove(int pos, int len=1);
149
149
150 /*! Replaces len bytes from index position pos with the byte array after.
150 /*! Replaces len bytes from index position pos with the byte array after.
151 */
151 */
152 void replace( int pos, int len, const QByteArray & after);
152 void replace( int pos, int len, const QByteArray & after);
153
153
154 /*! Gives back a formatted image of the content of QHexEdit
154 /*! Gives back a formatted image of the content of QHexEdit
155 */
155 */
156 QString toReadableString();
156 QString toReadableString();
157
157
158 /*! Gives back a formatted image of the selected content of QHexEdit
158 /*! Gives back a formatted image of the selected content of QHexEdit
159 */
159 */
160 QString selectionToReadableString();
160 QString selectionToReadableString();
161
161
162 /*! \cond docNever */
162 /*! \cond docNever */
163 void setAddressOffset(int offset);
163 void setAddressOffset(int offset);
164 int addressOffset();
164 int addressOffset();
165 void setCursorPosition(int cusorPos);
165 void setCursorPosition(int cusorPos);
166 int cursorPosition();
166 int cursorPosition();
167 void setData(QByteArray const &data);
167 void setData(QByteArray const &data);
168 QByteArray data();
168 QByteArray data();
169 void setAddressAreaColor(QColor const &color);
169 void setAddressAreaColor(QColor const &color);
170 QColor addressAreaColor();
170 QColor addressAreaColor();
171 void setHighlightingColor(QColor const &color);
171 void setHighlightingColor(QColor const &color);
172 QColor highlightingColor();
172 QColor highlightingColor();
173 void setSelectionColor(QColor const &color);
173 void setSelectionColor(QColor const &color);
174 QColor selectionColor();
174 QColor selectionColor();
175 void setOverwriteMode(bool);
175 void setOverwriteMode(bool);
176 bool overwriteMode();
176 bool overwriteMode();
177 void setReadOnly(bool);
177 void setReadOnly(bool);
178 bool isReadOnly();
178 bool isReadOnly();
179 const QFont &font() const;
179 const QFont &font() const;
180 void setFont(const QFont &);
180 void setFont(const QFont &);
181 /*! \endcond docNever */
181 /*! \endcond docNever */
182 //Added by Alexis Jeandet to manage selection outside of qhexedit
183 void resetSelection(int pos); // set selectionStart and selectionEnd to pos
184 void resetSelection(); // set selectionEnd to selectionStart
185 void setSelection(int pos); // set min (if below init) or max (if greater init)
186 int getSelectionBegin();
187 int getSelectionEnd();
182
188
183 public slots:
189 public slots:
184 /*! Redoes the last operation. If there is no operation to redo, i.e.
190 /*! Redoes the last operation. If there is no operation to redo, i.e.
185 there is no redo step in the undo/redo history, nothing happens.
191 there is no redo step in the undo/redo history, nothing happens.
186 */
192 */
187 void redo();
193 void redo();
188
194
189 /*! Set the minimum width of the address area.
195 /*! Set the minimum width of the address area.
190 \param addressWidth Width in characters.
196 \param addressWidth Width in characters.
191 */
197 */
192 void setAddressWidth(int addressWidth);
198 void setAddressWidth(int addressWidth);
193
199
194 /*! Switch the address area on or off.
200 /*! Switch the address area on or off.
195 \param addressArea true (show it), false (hide it).
201 \param addressArea true (show it), false (hide it).
196 */
202 */
197 void setAddressArea(bool addressArea);
203 void setAddressArea(bool addressArea);
198
204
199 /*! Switch the ascii area on or off.
205 /*! Switch the ascii area on or off.
200 \param asciiArea true (show it), false (hide it).
206 \param asciiArea true (show it), false (hide it).
201 */
207 */
202 void setAsciiArea(bool asciiArea);
208 void setAsciiArea(bool asciiArea);
203
209
204 /*! Switch the highlighting feature on or of.
210 /*! Switch the highlighting feature on or of.
205 \param mode true (show it), false (hide it).
211 \param mode true (show it), false (hide it).
206 */
212 */
207 void setHighlighting(bool mode);
213 void setHighlighting(bool mode);
208
214
209 /*! Undoes the last operation. If there is no operation to undo, i.e.
215 /*! Undoes the last operation. If there is no operation to undo, i.e.
210 there is no undo step in the undo/redo history, nothing happens.
216 there is no undo step in the undo/redo history, nothing happens.
211 */
217 */
212 void undo();
218 void undo();
213
219
214 signals:
220 signals:
215
221
216 /*! Contains the address, where the cursor is located. */
222 /*! Contains the address, where the cursor is located. */
217 void currentAddressChanged(int address);
223 void currentAddressChanged(int address);
218
224
219 /*! Contains the size of the data to edit. */
225 /*! Contains the size of the data to edit. */
220 void currentSizeChanged(int size);
226 void currentSizeChanged(int size);
221
227
222 /*! The signal is emited every time, the data is changed. */
228 /*! The signal is emited every time, the data is changed. */
223 void dataChanged();
229 void dataChanged();
224
230
225 /*! The signal is emited every time, the overwrite mode is changed. */
231 /*! The signal is emited every time, the overwrite mode is changed. */
226 void overwriteModeChanged(bool state);
232 void overwriteModeChanged(bool state);
227
233
228 private:
234 private:
229 /*! \cond docNever */
235 /*! \cond docNever */
230 QHexEditPrivate *qHexEdit_p;
236 QHexEditPrivate *qHexEdit_p;
231 QHBoxLayout *layout;
237 QHBoxLayout *layout;
232 QScrollArea *scrollArea;
238 QScrollArea *scrollArea;
233 /*! \endcond docNever */
239 /*! \endcond docNever */
234 };
240 };
235
241
236 #endif
242 #endif
237
243
@@ -1,130 +1,132
1 #ifndef QHEXEDIT_P_H
1 #ifndef QHEXEDIT_P_H
2 #define QHEXEDIT_P_H
2 #define QHEXEDIT_P_H
3
3
4 /** \cond docNever */
4 /** \cond docNever */
5
5
6
6
7 #include <QtGui>
7 #include <QtGui>
8 #include "xbytearray.h"
8 #include "xbytearray.h"
9 #include <QWidget>
9 #include <QWidget>
10 #include <QObject>
10 #include <QObject>
11 #include <QScrollArea>
11 #include <QScrollArea>
12 #include <QUndoStack>
12 #include <QUndoStack>
13
13
14
14
15 class QHexEditPrivate : public QWidget
15 class QHexEditPrivate : public QWidget
16 {
16 {
17 Q_OBJECT
17 Q_OBJECT
18
18
19 public:
19 public:
20 QHexEditPrivate(QScrollArea *parent);
20 QHexEditPrivate(QScrollArea *parent);
21
21
22 void setAddressAreaColor(QColor const &color);
22 void setAddressAreaColor(QColor const &color);
23 QColor addressAreaColor();
23 QColor addressAreaColor();
24
24
25 void setAddressOffset(int offset);
25 void setAddressOffset(int offset);
26 int addressOffset();
26 int addressOffset();
27
27
28 void setCursorPos(int position);
28 void setCursorPos(int position);
29 int cursorPos();
29 int cursorPos();
30
30
31 void setData(QByteArray const &data);
31 void setData(QByteArray const &data);
32 QByteArray data();
32 QByteArray data();
33
33
34 void setHighlightingColor(QColor const &color);
34 void setHighlightingColor(QColor const &color);
35 QColor highlightingColor();
35 QColor highlightingColor();
36
36
37 void setOverwriteMode(bool overwriteMode);
37 void setOverwriteMode(bool overwriteMode);
38 bool overwriteMode();
38 bool overwriteMode();
39
39
40 void setReadOnly(bool readOnly);
40 void setReadOnly(bool readOnly);
41 bool isReadOnly();
41 bool isReadOnly();
42
42
43 void setSelectionColor(QColor const &color);
43 void setSelectionColor(QColor const &color);
44 QColor selectionColor();
44 QColor selectionColor();
45
45
46 XByteArray & xData();
46 XByteArray & xData();
47
47
48 int indexOf(const QByteArray & ba, int from = 0);
48 int indexOf(const QByteArray & ba, int from = 0);
49 void insert(int index, const QByteArray & ba);
49 void insert(int index, const QByteArray & ba);
50 void insert(int index, char ch);
50 void insert(int index, char ch);
51 int lastIndexOf(const QByteArray & ba, int from = 0);
51 int lastIndexOf(const QByteArray & ba, int from = 0);
52 void remove(int index, int len=1);
52 void remove(int index, int len=1);
53 void replace(int index, char ch);
53 void replace(int index, char ch);
54 void replace(int index, const QByteArray & ba);
54 void replace(int index, const QByteArray & ba);
55 void replace(int pos, int len, const QByteArray & after);
55 void replace(int pos, int len, const QByteArray & after);
56
56
57 void setAddressArea(bool addressArea);
57 void setAddressArea(bool addressArea);
58 void setAddressWidth(int addressWidth);
58 void setAddressWidth(int addressWidth);
59 void setAsciiArea(bool asciiArea);
59 void setAsciiArea(bool asciiArea);
60 void setHighlighting(bool mode);
60 void setHighlighting(bool mode);
61 virtual void setFont(const QFont &font);
61 virtual void setFont(const QFont &font);
62
62
63 void undo();
63 void undo();
64 void redo();
64 void redo();
65
65
66 QString toRedableString();
66 QString toRedableString();
67 QString selectionToReadableString();
67 QString selectionToReadableString();
68
68
69 void resetSelection(int pos); // set selectionStart and selectionEnd to pos
70 void resetSelection(); // set selectionEnd to selectionStart
71 void setSelection(int pos); // set min (if below init) or max (if greater init)
72 int getSelectionBegin();
73 int getSelectionEnd();
74
75
69 signals:
76 signals:
70 void currentAddressChanged(int address);
77 void currentAddressChanged(int address);
71 void currentSizeChanged(int size);
78 void currentSizeChanged(int size);
72 void dataChanged();
79 void dataChanged();
73 void overwriteModeChanged(bool state);
80 void overwriteModeChanged(bool state);
74
81
75 protected:
82 protected:
76 void keyPressEvent(QKeyEvent * event);
83 void keyPressEvent(QKeyEvent * event);
77 void mouseMoveEvent(QMouseEvent * event);
84 void mouseMoveEvent(QMouseEvent * event);
78 void mousePressEvent(QMouseEvent * event);
85 void mousePressEvent(QMouseEvent * event);
79
86
80 void paintEvent(QPaintEvent *event);
87 void paintEvent(QPaintEvent *event);
81
88
82 int cursorPos(QPoint pos); // calc cursorpos from graphics position. DOES NOT STORE POSITION
89 int cursorPos(QPoint pos); // calc cursorpos from graphics position. DOES NOT STORE POSITION
83
90
84 void resetSelection(int pos); // set selectionStart and selectionEnd to pos
85 void resetSelection(); // set selectionEnd to selectionStart
86 void setSelection(int pos); // set min (if below init) or max (if greater init)
87 int getSelectionBegin();
88 int getSelectionEnd();
89
91
90
92
91 private slots:
93 private slots:
92 void updateCursor();
94 void updateCursor();
93
95
94 private:
96 private:
95 void adjust();
97 void adjust();
96 void ensureVisible();
98 void ensureVisible();
97
99
98 QColor _addressAreaColor;
100 QColor _addressAreaColor;
99 QColor _highlightingColor;
101 QColor _highlightingColor;
100 QColor _selectionColor;
102 QColor _selectionColor;
101 QScrollArea *_scrollArea;
103 QScrollArea *_scrollArea;
102 QTimer _cursorTimer;
104 QTimer _cursorTimer;
103 QUndoStack *_undoStack;
105 QUndoStack *_undoStack;
104
106
105 XByteArray _xData; // Hält den Inhalt des Hex Editors
107 XByteArray _xData; // Hält den Inhalt des Hex Editors
106
108
107 bool _blink; // true: then cursor blinks
109 bool _blink; // true: then cursor blinks
108 bool _renderingRequired; // Flag to store that rendering is necessary
110 bool _renderingRequired; // Flag to store that rendering is necessary
109 bool _addressArea; // left area of QHexEdit
111 bool _addressArea; // left area of QHexEdit
110 bool _asciiArea; // medium area
112 bool _asciiArea; // medium area
111 bool _highlighting; // highlighting of changed bytes
113 bool _highlighting; // highlighting of changed bytes
112 bool _overwriteMode;
114 bool _overwriteMode;
113 bool _readOnly; // true: the user can only look and navigate
115 bool _readOnly; // true: the user can only look and navigate
114
116
115 int _charWidth, _charHeight; // char dimensions (dpendend on font)
117 int _charWidth, _charHeight; // char dimensions (dpendend on font)
116 int _cursorX, _cursorY; // graphics position of the cursor
118 int _cursorX, _cursorY; // graphics position of the cursor
117 int _cursorPosition; // character positioin in stream (on byte ends in to steps)
119 int _cursorPosition; // character positioin in stream (on byte ends in to steps)
118 int _xPosAdr, _xPosHex, _xPosAscii; // graphics x-position of the areas
120 int _xPosAdr, _xPosHex, _xPosAscii; // graphics x-position of the areas
119
121
120 int _selectionBegin; // First selected char
122 int _selectionBegin; // First selected char
121 int _selectionEnd; // Last selected char
123 int _selectionEnd; // Last selected char
122 int _selectionInit; // That's, where we pressed the mouse button
124 int _selectionInit; // That's, where we pressed the mouse button
123
125
124 int _size;
126 int _size;
125 };
127 };
126
128
127 /** \endcond docNever */
129 /** \endcond docNever */
128
130
129 #endif
131 #endif
130
132
@@ -1,319 +1,341
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 --
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 2 of the License, or
8 -- (at your option) any later version.
9 --
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
14 --
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
1 #include "srecfile.h"
22 #include "srecfile.h"
2 #include <QTextStream>
23 #include <QTextStream>
3
24
4 srecFile::srecFile()
25 srecFile::srecFile()
5 {
26 {
6 }
27 }
7
28
8 srecFile::srecFile(const QString &File)
29 srecFile::srecFile(const QString &File)
9 {
30 {
10 openFile(File);
31 openFile(File);
11 }
32 }
12
33
13 srecFile::srecFile(const QStringList &Files)
34 srecFile::srecFile(const QStringList &Files)
14 {
35 {
15 openFiles(Files);
36 openFiles(Files);
16 }
37 }
17
38
18 srecFile::~srecFile()
39 srecFile::~srecFile()
19 {
40 {
20
41
21 }
42 }
22
43
23 bool srecFile::openFile(const QString &File)
44 bool srecFile::openFile(const QString &File)
24 {
45 {
25 return openFiles(QStringList()<<File);
46 return openFiles(QStringList()<<File);
26 }
47 }
27
48
28 bool srecFile::openFiles(const QStringList &Files)
49 bool srecFile::openFiles(const QStringList &Files)
29 {
50 {
30 this->p_fileNames.clear();
51 this->p_fileNames.clear();
31 this->p_fileNames.append(Files);
52 this->p_fileNames.append(Files);
32 for(int i=0;i<p_files.count();i++)
53 for(int i=0;i<p_files.count();i++)
33 {
54 {
34 delete p_files.at(i);
55 delete p_files.at(i);
35 }
56 }
36 this->p_files.clear();
57 this->p_files.clear();
37 for(int i=0;i<Files.count();i++)
58 for(int i=0;i<Files.count();i++)
38 {
59 {
39 this->p_isSrec=true;
60 this->p_isSrec=true;
40 this->p_isSrec &= isSREC(Files.at(i));
61 this->p_isSrec &= isSREC(Files.at(i));
41 this->p_files.append(new QFile(Files.at(i)));
62 this->p_files.append(new QFile(Files.at(i)));
42 this->p_files.at(i)->open(QIODevice::ReadOnly);
63 this->p_files.at(i)->open(QIODevice::ReadOnly);
43 parseFile(this->p_files.at(i));
64 parseFile(this->p_files.at(i));
44 }
65 }
45 return true;
66 return true;
46 }
67 }
47
68
48 bool srecFile::isopened()
69 bool srecFile::isopened()
49 {
70 {
50 bool opened = true;
71 bool opened = true;
51 for(int i=0;i<this->p_files.count();i++)
72 for(int i=0;i<this->p_files.count();i++)
52 {
73 {
53 opened &= p_files.at(i)->isOpen();
74 opened &= p_files.at(i)->isOpen();
54 }
75 }
55 return opened;
76 return opened;
56 }
77 }
57
78
58 int srecFile::closeFile()
79 int srecFile::closeFile()
59 {
80 {
60 for(int i=0;i<p_files.count();i++)
81 for(int i=0;i<p_files.count();i++)
61 {
82 {
62 delete p_files.at(i);
83 delete p_files.at(i);
63 }
84 }
64 p_files.clear();
85 p_files.clear();
65 p_fileName.clear();
86 p_fileName.clear();
87 return 0;
66 }
88 }
67
89
68 QList<codeFragment *> srecFile::getFragments()
90 QList<codeFragment *> srecFile::getFragments()
69 {
91 {
70 return p_fragments;
92 return p_fragments;
71 }
93 }
72
94
73 bool srecFile::toSrec(QList<codeFragment *> fragments, const QString &File)
95 bool srecFile::toSrec(QList<codeFragment *> fragments, const QString &File)
74 {
96 {
75 QString line;
97 QString line;
76 QFile file(File);
98 QFile file(File);
77 file.open(QIODevice::WriteOnly);
99 file.open(QIODevice::WriteOnly);
78 if(file.isOpen())
100 if(file.isOpen())
79 {
101 {
80 QTextStream stream( &file );
102 QTextStream stream( &file );
81 //First build header
103 //First build header
82 line.append("S0");
104 line.append("S0");
83 line.append(QString("%1").arg(File.count()+3,2,16).replace(' ','0'));
105 line.append(QString("%1").arg(File.count()+3,2,16).replace(' ','0'));
84 line.append("0000");
106 line.append("0000");
85 for(int i=0;i<File.count();i++)
107 for(int i=0;i<File.count();i++)
86 {
108 {
87 line.append(QString("%1").arg((uchar)File.at(i).toLatin1(),2,16).replace(' ','0'));
109 line.append(QString("%1").arg((uchar)File.at(i).toLatin1(),2,16).replace(' ','0'));
88 }
110 }
89 line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0'));
111 line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0'));
90 line.append('\n');
112 line.append('\n');
91 stream << line.toUpper();
113 stream << line.toUpper();
92 for(int i=0;i<fragments.count();i++)
114 for(int i=0;i<fragments.count();i++)
93 {
115 {
94 codeFragment *fragment = fragments.at(i);
116 codeFragment *fragment = fragments.at(i);
95 for(int j=0;j<(int)(fragment->size);j+=16)
117 for(int j=0;j<(int)(fragment->size);j+=16)
96 {
118 {
97 line.clear();
119 line.clear();
98 line.append("S315");
120 line.append("S315");
99 line.append(QString("%1").arg(fragment->address+j,8,16).replace(' ','0'));
121 line.append(QString("%1").arg(fragment->address+j,8,16).replace(' ','0'));
100 for(int k=0;k<16;k++)
122 for(int k=0;k<16;k++)
101 {
123 {
102 line.append(QString("%1").arg((uchar)fragment->data[j+k],2,16).replace(' ','0'));
124 line.append(QString("%1").arg((uchar)fragment->data[j+k],2,16).replace(' ','0'));
103 }
125 }
104 line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0'));
126 line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0'));
105 line.append('\n');
127 line.append('\n');
106 stream << line.toUpper();
128 stream << line.toUpper();
107 }
129 }
108 int rem = fragment->size%16;
130 int rem = fragment->size%16;
109 if(rem)
131 if(rem)
110 {
132 {
111 line.clear();
133 line.clear();
112 line.append("S3");
134 line.append("S3");
113 line.append(QString("%1").arg(rem,2,16).replace(' ','0'));
135 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'));
136 line.append(QString("%1").arg(fragment->address+fragment->size-rem,8,16).replace(' ','0'));
115 for(int k=0;k<rem;k++)
137 for(int k=0;k<rem;k++)
116 {
138 {
117 line.append(QString("%1").arg((uchar)fragment->data[fragment->size-rem+k],2,16).replace(' ','0'));
139 line.append(QString("%1").arg((uchar)fragment->data[fragment->size-rem+k],2,16).replace(' ','0'));
118 }
140 }
119 line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0'));
141 line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0'));
120 line.append('\n');
142 line.append('\n');
121 stream << line.toUpper();
143 stream << line.toUpper();
122 }
144 }
123 line.clear();
145 line.clear();
124 line.append("S705");
146 line.append("S705");
125 line.append(QString("%1").arg(fragment->address,8,16).replace(' ','0'));
147 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'));
148 line.append(QString("%1").arg((uchar)srecFile::lineCheckSum(line),2,16).replace(' ','0'));
127 line.append('\n');
149 line.append('\n');
128 stream << line.toUpper();
150 stream << line.toUpper();
129 }
151 }
130 file.close();
152 file.close();
131 return true;
153 return true;
132 }
154 }
133
155
134 return false;
156 return false;
135 }
157 }
136
158
137 int srecFile::lineCount()
159 int srecFile::lineCount()
138 {
160 {
139 return p_lineCount;
161 return p_lineCount;
140 }
162 }
141
163
142 int srecFile::getFragmentsCount()
164 int srecFile::getFragmentsCount()
143 {
165 {
144 return p_fragments.count();
166 return p_fragments.count();
145 }
167 }
146
168
147 int srecFile::getFragmentAddress(int index)
169 int srecFile::getFragmentAddress(int index)
148 {
170 {
149 if((index < p_fragments.count()) && (index>=0))
171 if((index < p_fragments.count()) && (index>=0))
150 {
172 {
151 return p_fragments.at(index)->address;
173 return p_fragments.at(index)->address;
152 }
174 }
153 return 0;
175 return 0;
154 }
176 }
155
177
156 int srecFile::getFragmentSize(int index)
178 int srecFile::getFragmentSize(int index)
157 {
179 {
158 if((index < p_fragments.count()) && (index>=0))
180 if((index < p_fragments.count()) && (index>=0))
159 {
181 {
160 return p_fragments.at(index)->size;
182 return p_fragments.at(index)->size;
161 }
183 }
162 return 0;
184 return 0;
163 }
185 }
164
186
165 QString srecFile::getFragmentHeader(int index)
187 QString srecFile::getFragmentHeader(int index)
166 {
188 {
167 if((index < p_fragments.count()) && (index>=0))
189 if((index < p_fragments.count()) && (index>=0))
168 {
190 {
169 return p_fragments.at(index)->header;
191 return p_fragments.at(index)->header;
170 }
192 }
171 return "";
193 return "";
172 }
194 }
173
195
174 bool srecFile::getFragmentData(int index, char **buffer)
196 bool srecFile::getFragmentData(int index, char **buffer)
175 {
197 {
176
198
177 if((index < p_fragments.count()) && (index>=0))
199 if((index < p_fragments.count()) && (index>=0))
178 {
200 {
179 *buffer = (char *)this->p_fragments.at(index)->data;
201 *buffer = (char *)this->p_fragments.at(index)->data;
180 return true;
202 return true;
181 }
203 }
182 return false;
204 return false;
183 }
205 }
184
206
185 bool srecFile::isSREC()
207 bool srecFile::isSREC()
186 {
208 {
187 return p_isSrec & isopened();
209 return p_isSrec & isopened();
188 }
210 }
189
211
190 bool srecFile::isSREC(const QString &File)
212 bool srecFile::isSREC(const QString &File)
191 {
213 {
192 QFile file(File);
214 QFile file(File);
193 file.open(QIODevice::ReadOnly);
215 file.open(QIODevice::ReadOnly);
194 if(file.isOpen())
216 if(file.isOpen())
195 {
217 {
196 file.seek(0);
218 file.seek(0);
197 QString line=file.readLine();
219 QString line=file.readLine();
198 file.close();
220 file.close();
199 return ((line.at(0)=='S')&&(line.at(1)=='0'));
221 return ((line.at(0)=='S')&&(line.at(1)=='0'));
200 }
222 }
201 return false;
223 return false;
202 }
224 }
203
225
204 void srecFile::parseFile(QFile *file)
226 void srecFile::parseFile(QFile *file)
205 {
227 {
206 if(file->isOpen())
228 if(file->isOpen())
207 {
229 {
208 this->p_lineCount = 0;
230 this->p_lineCount = 0;
209 file->seek(0);
231 file->seek(0);
210 codeFragment* fragment=NULL;
232 codeFragment* fragment=NULL;
211 QByteArray data;
233 QByteArray data;
212 quint64 size=0;
234 quint64 size=0;
213 quint64 address=-1;
235 quint64 address=-1;
214 QString header;
236 QString header;
215 while (!file->atEnd())
237 while (!file->atEnd())
216 {
238 {
217 QString line = file->readLine();
239 QString line = file->readLine();
218 p_lineCount++;
240 p_lineCount++;
219 if(line.count()>4)
241 if(line.count()>4)
220 {
242 {
221 if(line.at(0)=='S')
243 if(line.at(0)=='S')
222 {
244 {
223 bool ok;
245 bool ok;
224 int count = line.mid(2,2).toInt(&ok,16);
246 int count = line.mid(2,2).toInt(&ok,16);
225 if(line.at(1)=='0')
247 if(line.at(1)=='0')
226 {
248 {
227 header.clear();
249 header.clear();
228 for(int i=0;i<(count-3);i++)
250 for(int i=0;i<(count-3);i++)
229 {
251 {
230 header.append((char)line.mid((2*i)+8,2).toInt(&ok,16));
252 header.append((char)line.mid((2*i)+8,2).toInt(&ok,16));
231 }
253 }
232 }
254 }
233 if(line.at(1)=='1')
255 if(line.at(1)=='1')
234 {
256 {
235 }
257 }
236 if(line.at(1)=='2')
258 if(line.at(1)=='2')
237 {
259 {
238
260
239 }
261 }
240 if(line.at(1)=='3')
262 if(line.at(1)=='3')
241 {
263 {
242 int naddress =line.mid(4,8).toInt(&ok,16);
264 int naddress =line.mid(4,8).toInt(&ok,16);
243 if(address !=naddress)
265 if(address !=naddress)
244 {
266 {
245 if(fragment!=NULL)
267 if(fragment!=NULL)
246 {
268 {
247 fragment->size = data.size();
269 fragment->size = data.size();
248 fragment->data = (char*)malloc(data.size());
270 fragment->data = (char*)malloc(data.size());
249 for(int i =0;i<data.size();i++)
271 for(int i =0;i<data.size();i++)
250 {
272 {
251 fragment->data[i]=data.at(i);
273 fragment->data[i]=data.at(i);
252 }
274 }
253 data.clear();
275 data.clear();
254 p_fragments.append(fragment);
276 p_fragments.append(fragment);
255 }
277 }
256 fragment = new codeFragment();
278 fragment = new codeFragment();
257 fragment->address = naddress;
279 fragment->address = naddress;
258 fragment->header = header;
280 fragment->header = header;
259 }
281 }
260 address = naddress+count-5;
282 address = naddress+count-5;
261 for(int i=0;i<(count-5);i++)
283 for(int i=0;i<(count-5);i++)
262 {
284 {
263 data.append((char)line.mid((2*i)+12,2).toInt(&ok,16));
285 data.append((char)line.mid((2*i)+12,2).toInt(&ok,16));
264 }
286 }
265 }
287 }
266 if(line.at(1)=='5')
288 if(line.at(1)=='5')
267 {
289 {
268
290
269 }
291 }
270 if(line.at(1)=='6')
292 if(line.at(1)=='6')
271 {
293 {
272
294
273 }
295 }
274 if(line.at(1)=='7')
296 if(line.at(1)=='7')
275 {
297 {
276
298
277 }
299 }
278 if(line.at(1)=='8')
300 if(line.at(1)=='8')
279 {
301 {
280
302
281 }
303 }
282 if(line.at(1)=='9')
304 if(line.at(1)=='9')
283 {
305 {
284
306
285 }
307 }
286 }
308 }
287 }
309 }
288 }
310 }
289 if(data.size()!=0)
311 if(data.size()!=0)
290 {
312 {
291 fragment->size = data.size();
313 fragment->size = data.size();
292 fragment->data = (char*)malloc(data.size());
314 fragment->data = (char*)malloc(data.size());
293 for(int i =0;i<data.size();i++)
315 for(int i =0;i<data.size();i++)
294 {
316 {
295 fragment->data[i]=data.at(i);
317 fragment->data[i]=data.at(i);
296 }
318 }
297 data.clear();
319 data.clear();
298 p_fragments.append(fragment);
320 p_fragments.append(fragment);
299 }
321 }
300
322
301 }
323 }
302 }
324 }
303
325
304 char srecFile::lineCheckSum(const QString &line)
326 char srecFile::lineCheckSum(const QString &line)
305 {
327 {
306 char sum=0;
328 char sum=0;
307 QString localLine = line;
329 QString localLine = line;
308 bool ok;
330 bool ok;
309 if(localLine.at(0)=='S') // then should skip the first two digits
331 if(localLine.at(0)=='S') // then should skip the first two digits
310 {
332 {
311 localLine.remove(0,2);
333 localLine.remove(0,2);
312 }
334 }
313 for(int i=0;i<localLine.count();i+=2)
335 for(int i=0;i<localLine.count();i+=2)
314 {
336 {
315 sum+=(char)(localLine.mid(i,2).toInt(&ok,16));
337 sum+=(char)(localLine.mid(i,2).toInt(&ok,16));
316 }
338 }
317 return ~sum;
339 return ~sum;
318 }
340 }
319
341
@@ -1,46 +1,67
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 --
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 2 of the License, or
8 -- (at your option) any later version.
9 --
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
14 --
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
1 #ifndef SRECFILE_H
22 #ifndef SRECFILE_H
2 #define SRECFILE_H
23 #define SRECFILE_H
3
24
4 #include <QObject>
25 #include <QObject>
5 #include <abstractbinfile.h>
26 #include <abstractbinfile.h>
6 #include <QFile>
27 #include <QFile>
7 #include <QStringList>
28 #include <QStringList>
8
29
9 class srecFile : public abstractBinFile
30 class srecFile : public abstractBinFile
10 {
31 {
11 Q_OBJECT
32 Q_OBJECT
12 public:
33 public:
13 explicit srecFile();
34 explicit srecFile();
14 srecFile(const QString& File);
35 srecFile(const QString& File);
15 srecFile(const QStringList& Files);
36 srecFile(const QStringList& Files);
16 ~srecFile();
37 ~srecFile();
17 bool openFile(const QString& File);
38 bool openFile(const QString& File);
18 bool openFiles(const QStringList& Files);
39 bool openFiles(const QStringList& Files);
19 bool isopened();
40 bool isopened();
20 int closeFile();
41 int closeFile();
21 QList<codeFragment*> getFragments();
42 QList<codeFragment*> getFragments();
22 static bool toSrec(QList<codeFragment*> fragments,const QString& File);
43 static bool toSrec(QList<codeFragment*> fragments,const QString& File);
23 int lineCount();
44 int lineCount();
24 int getFragmentsCount();
45 int getFragmentsCount();
25 int getFragmentAddress(int index);
46 int getFragmentAddress(int index);
26 int getFragmentSize(int index);
47 int getFragmentSize(int index);
27 QString getFragmentHeader(int index);
48 QString getFragmentHeader(int index);
28 bool getFragmentData(int index, char **buffer);
49 bool getFragmentData(int index, char **buffer);
29
50
30 bool isSREC();
51 bool isSREC();
31 static bool isSREC(const QString& File);
52 static bool isSREC(const QString& File);
32 signals:
53 signals:
33
54
34 public slots:
55 public slots:
35 private:
56 private:
36 void parseFile(QFile* file);
57 void parseFile(QFile* file);
37 static char lineCheckSum(const QString& line);
58 static char lineCheckSum(const QString& line);
38 QStringList p_fileNames;
59 QStringList p_fileNames;
39 QList<QFile*>p_files;
60 QList<QFile*>p_files;
40 QList<codeFragment*> p_fragments;
61 QList<codeFragment*> p_fragments;
41 int p_lineCount;
62 int p_lineCount;
42 bool p_isSrec;
63 bool p_isSrec;
43
64
44 };
65 };
45
66
46 #endif // SRECFILE_H
67 #endif // SRECFILE_H
@@ -1,68 +1,91
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 --
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 2 of the License, or
8 -- (at your option) any later version.
9 --
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
14 --
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
1 #include "srecfilewidget.h"
22 #include "srecfilewidget.h"
2 #include "ui_srecfilewidget.h"
23 #include "ui_srecfilewidget.h"
3 #include <QTableWidgetItem>
24 #include <QTableWidgetItem>
4 #include <qtablewidgetintitem.h>
25 #include <qtablewidgetintitem.h>
5
26
6 srecFileWidget::srecFileWidget(QWidget *parent) :
27 srecFileWidget::srecFileWidget(QWidget *parent) :
7 QWidget(parent),
28 QWidget(parent),
8 ui(new Ui::srecFileWidget)
29 ui(new Ui::srecFileWidget)
9 {
30 {
10 ui->setupUi(this);
31 ui->setupUi(this);
11 connect(this->ui->fragmentsList,SIGNAL(cellActivated(int,int)),this,SLOT(recordCellActivated(int,int)));
32 connect(this->ui->fragmentsList,SIGNAL(cellActivated(int,int)),this,SLOT(recordCellActivated(int,int)));
33 this->setWindowTitle("SocExplorer SREC viewer");
12 }
34 }
13
35
14 srecFileWidget::~srecFileWidget()
36 srecFileWidget::~srecFileWidget()
15 {
37 {
16 delete ui;
38 delete ui;
17 }
39 }
18
40
19 void srecFileWidget::updatSrecFile(srecFile *file)
41 void srecFileWidget::updatSrecFile(srecFile *file)
20 {
42 {
21 this->p_srec = file;
43 this->p_srec = file;
22 if(p_srec->isopened() && p_srec->isSREC())
44 if(p_srec->isopened() && p_srec->isSREC())
23 {
45 {
24 updateRecords();
46 updateRecords();
25 }
47 }
26 }
48 }
27
49
28 void srecFileWidget::updateRecords()
50 void srecFileWidget::updateRecords()
29 {
51 {
30 this->ui->fragmentsList->clear();
52 this->ui->fragmentsList->clear();
31 this->ui->fragmentsList->setRowCount(p_srec->getFragmentsCount());
53 this->ui->fragmentsList->setRowCount(p_srec->getFragmentsCount());
32 this->ui->fragmentsList->setHorizontalHeaderLabels(QStringList()<<"Index"<<"Address"<<"Size"<<"Header");
54 this->ui->fragmentsList->setHorizontalHeaderLabels(QStringList()<<"Index"<<"Address"<<"Size"<<"Header");
33 for(int i=0;i<p_srec->getFragmentsCount();i++)
55 for(int i=0;i<p_srec->getFragmentsCount();i++)
34 {
56 {
35 QTableWidgetItem *newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(i),DecimalItem);
57 QTableWidgetItem *newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(i),DecimalItem);
36 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
58 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
37 this->ui->fragmentsList->setItem(i, 0, newItem);
59 this->ui->fragmentsList->setItem(i, 0, newItem);
38
60
39 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("0x%1").arg(p_srec->getFragmentAddress(i),8,16).replace(" ","0"),HexaDecimalItem);
61 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("0x%1").arg(p_srec->getFragmentAddress(i),8,16).replace(" ","0"),HexaDecimalItem);
40 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
62 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
41 this->ui->fragmentsList->setItem(i, 1, newItem);
63 this->ui->fragmentsList->setItem(i, 1, newItem);
42
64
43 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(p_srec->getFragmentSize(i)),DecimalItem);
65 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(p_srec->getFragmentSize(i)),DecimalItem);
44 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
66 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
45 this->ui->fragmentsList->setItem(i, 2, newItem);
67 this->ui->fragmentsList->setItem(i, 2, newItem);
46
68
47 newItem = new QTableWidgetItem(p_srec->getFragmentHeader(i));
69 newItem = new QTableWidgetItem(p_srec->getFragmentHeader(i));
48 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
70 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
49 this->ui->fragmentsList->setItem(i, 3, newItem);
71 this->ui->fragmentsList->setItem(i, 3, newItem);
50
72
51 }
73 }
52 this->ui->fragmentsList->resizeColumnsToContents();
74 this->ui->fragmentsList->resizeColumnsToContents();
53 }
75 }
54
76
55 void srecFileWidget::recordCellActivated(int row, int column)
77 void srecFileWidget::recordCellActivated(int row, int column)
56 {
78 {
57 Q_UNUSED(column)
79 Q_UNUSED(column)
58 char* buff=NULL;
80 char* buff=NULL;
59 int index = this->ui->fragmentsList->item(row,0)->text().toInt();
81 int index = this->ui->fragmentsList->item(row,0)->text().toInt();
60 if(index!=-1)
82 if(index!=-1)
61 {
83 {
62 this->p_srec->getFragmentData(index,&buff);
84 this->p_srec->getFragmentData(index,&buff);
63 this->ui->fragmentHexView->setData(QByteArray(buff,this->p_srec->getFragmentSize(index)));
85 this->ui->fragmentHexView->setData(QByteArray(buff,this->p_srec->getFragmentSize(index)));
86 this->ui->fragmentHexView->setAddressOffset(this->p_srec->getFragmentAddress(index));
64 }
87 }
65
88
66 }
89 }
67
90
68
91
@@ -1,31 +1,52
1 /*------------------------------------------------------------------------------
2 -- This file is a part of the SocExplorer Software
3 -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS
4 --
5 -- This program is free software; you can redistribute it and/or modify
6 -- it under the terms of the GNU General Public License as published by
7 -- the Free Software Foundation; either version 2 of the License, or
8 -- (at your option) any later version.
9 --
10 -- This program is distributed in the hope that it will be useful,
11 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -- GNU General Public License for more details.
14 --
15 -- You should have received a copy of the GNU General Public License
16 -- along with this program; if not, write to the Free Software
17 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 -------------------------------------------------------------------------------*/
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
1 #ifndef SRECFILEWIDGET_H
22 #ifndef SRECFILEWIDGET_H
2 #define SRECFILEWIDGET_H
23 #define SRECFILEWIDGET_H
3
24
4 #include <QWidget>
25 #include <QWidget>
5 #include "srecfile.h"
26 #include "srecfile.h"
6
27
7 namespace Ui {
28 namespace Ui {
8 class srecFileWidget;
29 class srecFileWidget;
9 }
30 }
10
31
11 class srecFileWidget : public QWidget
32 class srecFileWidget : public QWidget
12 {
33 {
13 Q_OBJECT
34 Q_OBJECT
14
35
15 public:
36 public:
16 explicit srecFileWidget(QWidget *parent = 0);
37 explicit srecFileWidget(QWidget *parent = 0);
17 ~srecFileWidget();
38 ~srecFileWidget();
18
39
19 public slots:
40 public slots:
20 void updatSrecFile(srecFile* file);
41 void updatSrecFile(srecFile* file);
21 void updateRecords();
42 void updateRecords();
22
43
23 private slots:
44 private slots:
24 void recordCellActivated(int row, int column);
45 void recordCellActivated(int row, int column);
25
46
26 private:
47 private:
27 Ui::srecFileWidget *ui;
48 Ui::srecFileWidget *ui;
28 srecFile* p_srec;
49 srecFile* p_srec;
29 };
50 };
30
51
31 #endif // SRECFILEWIDGET_H
52 #endif // SRECFILEWIDGET_H
@@ -1,81 +1,84
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
2 <ui version="4.0">
3 <class>srecFileWidget</class>
3 <class>srecFileWidget</class>
4 <widget class="QWidget" name="srecFileWidget">
4 <widget class="QWidget" name="srecFileWidget">
5 <property name="geometry">
5 <property name="geometry">
6 <rect>
6 <rect>
7 <x>0</x>
7 <x>0</x>
8 <y>0</y>
8 <y>0</y>
9 <width>740</width>
9 <width>740</width>
10 <height>516</height>
10 <height>516</height>
11 </rect>
11 </rect>
12 </property>
12 </property>
13 <property name="windowTitle">
13 <property name="windowTitle">
14 <string>Form</string>
14 <string>Form</string>
15 </property>
15 </property>
16 <layout class="QGridLayout" name="gridLayout">
16 <layout class="QGridLayout" name="gridLayout">
17 <item row="0" column="1">
17 <item row="0" column="0">
18 <widget class="QGroupBox" name="groupBox_2">
18 <widget class="QSplitter" name="splitter">
19 <property name="title">
19 <property name="orientation">
20 <string>SREC records list</string>
20 <enum>Qt::Horizontal</enum>
21 </property>
21 </property>
22 <layout class="QVBoxLayout" name="verticalLayout_2">
22 <widget class="QGroupBox" name="groupBox">
23 <item>
23 <property name="title">
24 <widget class="QTableWidget" name="fragmentsList">
24 <string>Hexadecimal Viewer</string>
25 <column>
25 </property>
26 <property name="text">
26 <layout class="QVBoxLayout" name="verticalLayout">
27 <string>Index</string>
27 <item>
28 </property>
28 <widget class="QHexEdit" name="fragmentHexView" native="true">
29 </column>
29 <property name="minimumSize">
30 <column>
30 <size>
31 <property name="text">
31 <width>256</width>
32 <string>Address</string>
32 <height>0</height>
33 </property>
33 </size>
34 </column>
35 <column>
36 <property name="text">
37 <string>Size</string>
38 </property>
34 </property>
39 </column>
35 </widget>
40 <column>
36 </item>
41 <property name="text">
37 </layout>
42 <string>Header</string>
38 </widget>
43 </property>
39 <widget class="QGroupBox" name="groupBox_2">
44 </column>
40 <property name="title">
45 </widget>
41 <string>SREC records list</string>
46 </item>
42 </property>
47 </layout>
43 <layout class="QVBoxLayout" name="verticalLayout_2">
48 </widget>
44 <item>
49 </item>
45 <widget class="QTableWidget" name="fragmentsList">
50 <item row="0" column="0">
46 <column>
51 <widget class="QGroupBox" name="groupBox">
47 <property name="text">
52 <property name="title">
48 <string>Index</string>
53 <string>Hexadecimal Viewer</string>
49 </property>
54 </property>
50 </column>
55 <layout class="QVBoxLayout" name="verticalLayout">
51 <column>
56 <item>
52 <property name="text">
57 <widget class="QHexEdit" name="fragmentHexView" native="true">
53 <string>Address</string>
58 <property name="minimumSize">
54 </property>
59 <size>
55 </column>
60 <width>256</width>
56 <column>
61 <height>0</height>
57 <property name="text">
62 </size>
58 <string>Size</string>
63 </property>
59 </property>
64 </widget>
60 </column>
65 </item>
61 <column>
66 </layout>
62 <property name="text">
63 <string>Header</string>
64 </property>
65 </column>
66 </widget>
67 </item>
68 </layout>
69 </widget>
67 </widget>
70 </widget>
68 </item>
71 </item>
69 </layout>
72 </layout>
70 </widget>
73 </widget>
71 <customwidgets>
74 <customwidgets>
72 <customwidget>
75 <customwidget>
73 <class>QHexEdit</class>
76 <class>QHexEdit</class>
74 <extends>QWidget</extends>
77 <extends>QWidget</extends>
75 <header location="global">qhexedit.h</header>
78 <header location="global">qhexedit.h</header>
76 <container>1</container>
79 <container>1</container>
77 </customwidget>
80 </customwidget>
78 </customwidgets>
81 </customwidgets>
79 <resources/>
82 <resources/>
80 <connections/>
83 <connections/>
81 </ui>
84 </ui>
@@ -1,134 +1,135
1 #-------------------------------------------------
1 #-------------------------------------------------
2 #
2 #
3 # Project created by QtCreator 2011-09-19T22:52:10
3 # Project created by QtCreator 2011-09-19T22:52:10
4 #
4 #
5 #-------------------------------------------------
5 #-------------------------------------------------
6 SOCEXPLORER_ROOT = $${PWD}/..
6 SOCEXPLORER_ROOT = $${PWD}/..
7 include(../build_cfg/socexplorer.pri)
7 include(../build_cfg/socexplorer.pri)
8
8
9 TARGET = socexplorer$${DEBUG_EXT}
9 TARGET = socexplorer$${DEBUG_EXT}
10 TEMPLATE = app
10 TEMPLATE = app
11 CONFIG += pythonqt
11 CONFIG += pythonqt
12
12
13
13
14 QMAKE_LFLAGS_RELEASE += --enable-auto-import -mstackrealign
14 QMAKE_LFLAGS_RELEASE += --enable-auto-import -mstackrealign
15 QMAKE_LFLAGS_DEBUG += --enable-auto-import -mstackrealign
15 QMAKE_LFLAGS_DEBUG += --enable-auto-import -mstackrealign
16
16
17 include ( common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer.pri )
17 include ( common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer.pri )
18 include ( SocExplorerEngine/plugins/socexplorerplugin.prf )
18 include ( SocExplorerEngine/plugins/socexplorerplugin.prf )
19
19
20 INCLUDEPATH+=$${PWD} \
20 INCLUDEPATH+=$${PWD} \
21 $${PWD}/common \
21 $${PWD}/common \
22 $${PWD}/common/qhexedit \
22 $${PWD}/common/qhexedit \
23 $${PWD}/common/QCustomPlot \
23 $${PWD}/common/QCustomPlot \
24 $${PWD}/common/elf \
24 $${PWD}/common/elf \
25 $${PWD}/common/srec \
25 $${PWD}/common/srec \
26 $${PWD}/common/BinFile \
26 SocExplorerEngine/engine \
27 SocExplorerEngine/engine \
27 SocExplorerEngine/pluginloader \
28 SocExplorerEngine/pluginloader \
28 SocExplorerEngine/pluginsInterface \
29 SocExplorerEngine/pluginsInterface \
29 SocExplorerEngine/proxy \
30 SocExplorerEngine/proxy \
30 SocExplorerEngine/pluginManagerWdgt \
31 SocExplorerEngine/pluginManagerWdgt \
31 SocExplorerEngine/plugins \
32 SocExplorerEngine/plugins \
32 SocExplorerEngine/RegisterMVS \
33 SocExplorerEngine/RegisterMVS \
33 SocExplorerEngine/XmlEngine \
34 SocExplorerEngine/XmlEngine \
34 SocExplorerEngine/SOC \
35 SocExplorerEngine/SOC \
35 SocExplorerEngine/PeripheralWidget/src
36 SocExplorerEngine/PeripheralWidget/src
36
37
37 win32:INCLUDEPATH+= \
38 win32:INCLUDEPATH+= \
38 $${PWD}/common/elf/libelfWin32/include \
39 $${PWD}/common/elf/libelfWin32/include \
39 $${PWD}/common/elf/libelfWin32/include/libelf \
40 $${PWD}/common/elf/libelfWin32/include/libelf \
40
41
41
42
42 RC_FILE = ../win32cfg/socexplorer.rc
43 RC_FILE = ../win32cfg/socexplorer.rc
43
44
44
45
45 unix:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/linux -lsocexplorercommon$${DEBUG_EXT} -L$${SOCEXPLORER_ROOT}/bin/linux -lsocexplorerengine$${DEBUG_EXT}
46 unix:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/linux -lsocexplorercommon$${DEBUG_EXT} -L$${SOCEXPLORER_ROOT}/bin/linux -lsocexplorerengine$${DEBUG_EXT}
46
47
47 win32-g++:LIBS += $${SOCEXPLORER_ROOT}/bin/win32/socexplorercommon$${DEBUG_EXT}.dll $${SOCEXPLORER_ROOT}/bin/win32/socexplorerengine$${DEBUG_EXT}.dll
48 win32-g++:LIBS += $${SOCEXPLORER_ROOT}/bin/win32/socexplorercommon$${DEBUG_EXT}.dll $${SOCEXPLORER_ROOT}/bin/win32/socexplorerengine$${DEBUG_EXT}.dll
48
49
49
50
50 unix{
51 unix{
51 translation.files = $${SOCEXPLORER_ROOT}/translations/socexplorer_fr.qm \
52 translation.files = $${SOCEXPLORER_ROOT}/translations/socexplorer_fr.qm \
52 $${SOCEXPLORER_ROOT}/translations/socexplorer_en.qm
53 $${SOCEXPLORER_ROOT}/translations/socexplorer_en.qm
53 translation.path = $${SOCEXPLORER_TRANSLATION_INSTALL_PATH}
54 translation.path = $${SOCEXPLORER_TRANSLATION_INSTALL_PATH}
54 target.path = /usr/bin
55 target.path = /usr/bin
55 INSTALLS += translation target
56 INSTALLS += translation target
56 }
57 }
57
58
58 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common
59 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common
59 header.files = \
60 header.files = \
60 socexplorer.h
61 socexplorer.h
61 INSTALLS += header
62 INSTALLS += header
62
63
63
64
64 SOURCES += main.cpp\
65 SOURCES += main.cpp\
65 mainwindow.cpp \
66 mainwindow.cpp \
66 PyWdgt/pythonconsole.cpp \
67 PyWdgt/pythonconsole.cpp \
67 PyWdgt/pythonqtscriptingconsoledandd.cpp \
68 PyWdgt/pythonqtscriptingconsoledandd.cpp \
68 dockablepluginmanager.cpp \
69 dockablepluginmanager.cpp \
69 toolbar.cpp \
70 toolbar.cpp \
70 toolbarcontainer.cpp \
71 toolbarcontainer.cpp \
71 regsExplorer/regsexplorer.cpp \
72 regsExplorer/regsexplorer.cpp \
72 regsExplorer/regsviewer.cpp \
73 regsExplorer/regsviewer.cpp \
73 regsExplorer/regsexplorercfg.cpp \
74 regsExplorer/regsexplorercfg.cpp \
74 aboutsocexplorer.cpp
75 aboutsocexplorer.cpp
75
76
76 # regWidget/xmltagtextedit.cpp \
77 # regWidget/xmltagtextedit.cpp \
77 # regWidget/xmltaglabeledit.cpp \
78 # regWidget/xmltaglabeledit.cpp \
78 # regWidget/xmlelementslistwidget.cpp \
79 # regWidget/xmlelementslistwidget.cpp \
79 # regWidget/xmlelementslistview.cpp \
80 # regWidget/xmlelementslistview.cpp \
80 # regWidget/regpropeditor.cpp \
81 # regWidget/regpropeditor.cpp \
81 # regWidget/registerwdgt.cpp \
82 # regWidget/registerwdgt.cpp \
82 # regWidget/registereditor.cpp \
83 # regWidget/registereditor.cpp \
83 # regWidget/registercel.cpp \
84 # regWidget/registercel.cpp \
84 # regWidget/periphpropeditor.cpp \
85 # regWidget/periphpropeditor.cpp \
85 # regWidget/peripherialregs.cpp \
86 # regWidget/peripherialregs.cpp \
86 # regWidget/bitfieldpropeditor.cpp \
87 # regWidget/bitfieldpropeditor.cpp \
87 # regWidget/bitfield.cpp
88 # regWidget/bitfield.cpp
88
89
89
90
90 HEADERS += mainwindow.h \
91 HEADERS += mainwindow.h \
91 PyWdgt/pythonconsole.h \
92 PyWdgt/pythonconsole.h \
92 PyWdgt/pythonqtscriptingconsoledandd.h \
93 PyWdgt/pythonqtscriptingconsoledandd.h \
93 dockablepluginmanager.h \
94 dockablepluginmanager.h \
94 toolbar.h \
95 toolbar.h \
95 toolbarcontainer.h \
96 toolbarcontainer.h \
96 regsExplorer/regsexplorer.h \
97 regsExplorer/regsexplorer.h \
97 regsExplorer/regsviewer.h \
98 regsExplorer/regsviewer.h \
98 regsExplorer/regsexplorercfg.h \
99 regsExplorer/regsexplorercfg.h \
99 socexplorer.h \
100 socexplorer.h \
100 SocExplorerEngine/plugins/socexplorerplugin.h \
101 SocExplorerEngine/plugins/socexplorerplugin.h \
101 aboutsocexplorer.h
102 aboutsocexplorer.h
102 # regWidget/xmltagtextedit.h \
103 # regWidget/xmltagtextedit.h \
103 # regWidget/xmltaglabeledit.h \
104 # regWidget/xmltaglabeledit.h \
104 # regWidget/xmlelementslistwidget.h \
105 # regWidget/xmlelementslistwidget.h \
105 # regWidget/xmlelementslistview.h \
106 # regWidget/xmlelementslistview.h \
106 # regWidget/regpropeditor.h \
107 # regWidget/regpropeditor.h \
107 # regWidget/registerwdgt.h \
108 # regWidget/registerwdgt.h \
108 # regWidget/registereditor.h \
109 # regWidget/registereditor.h \
109 # regWidget/registercel.h \
110 # regWidget/registercel.h \
110 # regWidget/periphpropeditor.h \
111 # regWidget/periphpropeditor.h \
111 # regWidget/peripherialregs.h \
112 # regWidget/peripherialregs.h \
112 # regWidget/bitfieldpropeditor.h \
113 # regWidget/bitfieldpropeditor.h \
113 # regWidget/bitfield.h
114 # regWidget/bitfield.h
114
115
115
116
116 include ( NicePyConsole/NicePyConsole.pri)
117 include ( NicePyConsole/NicePyConsole.pri)
117
118
118 win32{
119 win32{
119 RESOURCES = ../ressources/SocExplorer.qrc
120 RESOURCES = ../ressources/SocExplorer.qrc
120 }
121 }
121
122
122 unix{
123 unix{
123 RESOURCES = ../ressources/SocExplorer.qrc
124 RESOURCES = ../ressources/SocExplorer.qrc
124 }
125 }
125
126
126 TRANSLATIONS = ../translations/socexplorer_fr.ts \
127 TRANSLATIONS = ../translations/socexplorer_fr.ts \
127 ../translations/socexplorer_en.ts
128 ../translations/socexplorer_en.ts
128
129
129
130
130
131
131
132
132
133
133
134
134
135
General Comments 0
You need to be logged in to leave comments. Login now