##// END OF EJS Templates
New register explorer WIP...
jeandet -
r79:3440ba47d0f1 default
parent child
Show More
@@ -0,0 +1,44
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <class>RegsExplorerNew</class>
4 <widget class="QDockWidget" name="RegsExplorerNew">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>400</width>
10 <height>300</height>
11 </rect>
12 </property>
13 <property name="windowTitle">
14 <string>Regs Explorer</string>
15 </property>
16 <widget class="QWidget" name="dockWidgetContents">
17 <layout class="QGridLayout" name="gridLayout">
18 <item row="0" column="1">
19 <widget class="QComboBox" name="comboBox"/>
20 </item>
21 <item row="0" column="0">
22 <widget class="QLabel" name="label">
23 <property name="text">
24 <string>Root Plugin</string>
25 </property>
26 </widget>
27 </item>
28 <item row="1" column="0" colspan="2">
29 <widget class="SocRegsViewerNew" name="regsViewer" native="true"/>
30 </item>
31 </layout>
32 </widget>
33 </widget>
34 <customwidgets>
35 <customwidget>
36 <class>SocRegsViewerNew</class>
37 <extends>QWidget</extends>
38 <header location="global">socregsviewernew.h</header>
39 <container>1</container>
40 </customwidget>
41 </customwidgets>
42 <resources/>
43 <connections/>
44 </ui>
@@ -1,4 +1,4
1 9790824220ca06014e65a5c13aa4ed37f89d7593 src/SocExplorerEngine/PeripheralWidget
1 1cb664ab4bb3c531d706b1948a378ed9810c0dda src/SocExplorerEngine/PeripheralWidget
2 cc958c79ba0939809a70e63b8bac798930160243 src/common/genericBinaryFiles
2 cc958c79ba0939809a70e63b8bac798930160243 src/common/genericBinaryFiles
3 2dce25b198558be573f56c1cf337aa95ddd666d6 src/common/lppserial
3 2dce25b198558be573f56c1cf337aa95ddd666d6 src/common/lppserial
4 923afde9cc96bb419cf898560d080ec96991aeca src/common/qhexedit
4 923afde9cc96bb419cf898560d080ec96991aeca src/common/qhexedit
@@ -1,6 +1,10
1 #!/usr/bin/lppmon -e
1 #!/usr/bin/lppmon -e
2
2
3 class test(PySocExplorerEngine.socexplorerplugin):
3 class test(PySocExplorerEngine.socexplorerplugin):
4 def hello(self):
4 def hello(self):
5 print "hello"
5 print "hello"
6 def VID(self):
7 return 10
8 def PID(self):
9 return 100
6
10
@@ -1,16 +1,17
1 QGroupBox {
1 QGroupBox {
2 border: 1px solid gray;
2 border: 1px solid gray;
3 border-radius: 9px;
3 border-radius: 9px;
4 margin-top: 0.5em;
4 margin-top: 0.5em;
5 }
5 }
6
6
7 QGroupBox::title {
7 QGroupBox::title {
8 subcontrol-origin: margin;
8 subcontrol-origin: margin;
9 left: 10px;
9 left: 10px;
10 padding: 0 3px 0 3px;
10 padding: 0 3px 0 3px;
11 }
11 }
12
12
13 QWidget#CollapsablePeripheralWidget {
13 QWidget#CollapsablePeripheralWidget {
14 border: 1px solid gray;
14 border: 2px solid gray;
15 border-radius: 9px;
15 border-radius: 6px;
16 margin-top: 0.5em;
16 }
17 }
@@ -1,118 +1,119
1 #include "pythonconsole.h"
1 #include "pythonconsole.h"
2 #include <QPushButton>
2 #include <QPushButton>
3 #include <QFile>
3 #include <QFile>
4 #include <QTextStream>
4 #include <QTextStream>
5 #include <QCustomPlot/qcustomplot.h>
5 #include <QCustomPlot/qcustomplot.h>
6 #include "../common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.h"
6 #include "../common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.h"
7
7
8 #include <PythonQt.h>
8 #include <PythonQt.h>
9 #include "pluginloader.h"
9 #include "pluginloader.h"
10 #include <socexplorer.h>
10 #include <socexplorer.h>
11
11
12 void PythonQt_init_PySocExplorer(PyObject* module);
12 void PythonQt_init_PySocExplorer(PyObject* module);
13 void PythonQt_init_PySocExplorerEngine(PyObject* module) ;
13 void PythonQt_init_PySocExplorerEngine(PyObject* module) ;
14
14
15 PythonConsole::PythonConsole(socexplorerproxy *proxy, QWidget *parent) :
15 PythonConsole::PythonConsole(socexplorerproxy *proxy, QWidget *parent) :
16 QWidget(parent)
16 QWidget(parent)
17 {
17 {
18 //PythonQt::init();
18 //PythonQt::init();
19 PythonQt::init(PythonQt::RedirectStdOut);
19 PythonQt::init(PythonQt::RedirectStdOut);
20 PythonQt_QtAll::init();
20 PythonQt_QtAll::init();
21 this->proxy = proxy;
21 this->proxy = proxy;
22 this->mainlayout = new QHBoxLayout;
22 this->mainlayout = new QHBoxLayout;
23 this->mainContext = new PythonQtObjectPtr(PythonQt::self()->getMainModule());
23 this->mainContext = new PythonQtObjectPtr(PythonQt::self()->getMainModule());
24 this->mainContext->addVariable(QString("PYMODULES"),QVariant(QString(PYMODULES)));
24 this->mainContext->addVariable(QString("PYMODULES"),QVariant(QString(PYMODULES)));
25 this->console = new PythonQtScriptingConsoleDandD(NULL, PythonQt::self()->getMainModule());
25 this->console = new PythonQtScriptingConsoleDandD(NULL, PythonQt::self()->getMainModule());
26 this->mainlayout->addWidget(this->console);
26 this->mainlayout->addWidget(this->console);
27 this->setWindowTitle(tr("Python Scripting Console"));
27 this->setWindowTitle(tr("Python Scripting Console"));
28 this->bussdriver = 0;
28 this->bussdriver = 0;
29 this->setAcceptDrops(true);
29 this->setAcceptDrops(true);
30 this->setLayout(this->mainlayout);
30 this->setLayout(this->mainlayout);
31 connect(this->console,SIGNAL(pyConsoleRunFiles(QStringList)),this,SLOT(pyConsoleRunFiles(QStringList)));
31 connect(this->console,SIGNAL(pyConsoleRunFiles(QStringList)),this,SLOT(pyConsoleRunFiles(QStringList)));
32 this->mainContext->addObject("proxy", proxy);
32 this->mainContext->addObject("proxy", proxy);
33 PythonQt_init_PySocExplorer(0);
33 PythonQt_init_PySocExplorer(0);
34 PythonQt_init_PySocExplorerEngine(0);
34 PythonQt_init_PySocExplorerEngine(0);
35 this->mainContext->evalScript(QString("from PythonQt import *"));
35 this->mainContext->evalScript(QString("from PythonQt import *"));
36 }
36 }
37
37
38 void PythonConsole::addObject(const QString& name, QObject* object)
38 void PythonConsole::addObject(const QString& name, QObject* object)
39 {
39 {
40 this->mainContext->addObject(name, object);
40 this->mainContext->addObject(name, object);
41 }
41 }
42
42
43 void PythonConsole::removeVariable(const QString& name)
43 void PythonConsole::removeVariable(const QString& name)
44 {
44 {
45 this->mainContext->removeVariable(name);
45 this->mainContext->removeVariable(name);
46 }
46 }
47
47
48
48
49 void PythonConsole::setBussDriver(socexplorerplugin *driver)
49 void PythonConsole::setBussDriver(socexplorerplugin *driver)
50 {
50 {
51 this->bussdriver = driver;
51 this->bussdriver = driver;
52 this->mainContext->addObject("buss", this->bussdriver);
52 this->mainContext->addObject("buss", this->bussdriver);
53 }
53 }
54
54
55 void PythonConsole::registerObject(QObject* object,const QString& instanceName)
55 void PythonConsole::registerObject(QObject* object,const QString& instanceName)
56 {
56 {
57 this->mainContext->addObject(instanceName,object);
57 this->mainContext->addObject(instanceName,object);
58 }
58 }
59
59
60 void PythonConsole::changeSysDriverInstName(const QString newinstanceName,const QString previnstanceName)
60 void PythonConsole::changeSysDriverInstName(const QString newinstanceName,const QString previnstanceName)
61 {
61 {
62 socexplorerplugin* obj= this->proxy->getSysDriver(previnstanceName);
62 socexplorerplugin* obj= this->proxy->getSysDriver(previnstanceName);
63 if(obj==NULL)obj= this->proxy->getSysDriver(newinstanceName);
63 if(obj==NULL)obj= this->proxy->getSysDriver(newinstanceName);
64 if(obj==NULL)return;
64 if(obj==NULL)return;
65 this->mainContext->addObject(newinstanceName,obj->getPyObjectWrapper());
65 // this->mainContext->addObject(newinstanceName,obj->getPyObjectWrapper());
66 this->mainContext->addObject(newinstanceName,obj);
66 this->mainContext->removeVariable(previnstanceName);
67 this->mainContext->removeVariable(previnstanceName);
67 }
68 }
68
69
69 void PythonConsole::removeDriver(const QString& instanceName)
70 void PythonConsole::removeDriver(const QString& instanceName)
70 {
71 {
71 this->mainContext->removeVariable(instanceName);
72 this->mainContext->removeVariable(instanceName);
72 }
73 }
73
74
74 void PythonConsole::removeBussDriver()
75 void PythonConsole::removeBussDriver()
75 {
76 {
76 this->bussdriver = 0;
77 this->bussdriver = 0;
77 this->mainContext->removeVariable("buss");
78 this->mainContext->removeVariable("buss");
78 emit this->rootDriverDelete();
79 emit this->rootDriverDelete();
79 }
80 }
80
81
81
82
82 void PythonConsole::pyConsoleRunFiles(const QStringList & pathList)
83 void PythonConsole::pyConsoleRunFiles(const QStringList & pathList)
83 {
84 {
84 for (int i = 0; i < pathList.size() && i < 32; ++i)
85 for (int i = 0; i < pathList.size() && i < 32; ++i)
85 {
86 {
86 this->pyConsoleRunFile(pathList.at(i));
87 this->pyConsoleRunFile(pathList.at(i));
87 }
88 }
88 }
89 }
89
90
90 void PythonConsole::pyConsoleRunFile(const QString& fileName)
91 void PythonConsole::pyConsoleRunFile(const QString& fileName)
91 {
92 {
92 QString code;
93 QString code;
93 QFile file;
94 QFile file;
94 QFileInfo fileinfo;
95 QFileInfo fileinfo;
95
96
96 code.clear();
97 code.clear();
97 file.setFileName(fileName);
98 file.setFileName(fileName);
98 fileinfo.setFile(fileName);
99 fileinfo.setFile(fileName);
99 if(!fileinfo.suffix().compare("py"))
100 if(!fileinfo.suffix().compare("py"))
100 {
101 {
101 QString CMD="execfile(\'"+fileName+"\')";
102 QString CMD="execfile(\'"+fileName+"\')";
102 this->console->executePythonCommand(CMD);
103 this->console->executePythonCommand(CMD);
103 }
104 }
104 }
105 }
105
106
106
107
107 QSize PythonConsole::sizeHint()
108 QSize PythonConsole::sizeHint()
108 {
109 {
109 return QSize(800,80);
110 return QSize(800,80);
110 }
111 }
111
112
112
113
113
114
114
115
115
116
116
117
117
118
118
119
@@ -1,56 +1,59
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) 2012, Plasma Physics Laboratory - CNRS
3 -- Copyright (C) 2012, 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@lpp.polytechnique.fr
20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 ----------------------------------------------------------------------------*/
21 ----------------------------------------------------------------------------*/
22 #ifndef SOCEXPLORERENUMDEVICE_H
22 #ifndef SOCEXPLORERENUMDEVICE_H
23 #define SOCEXPLORERENUMDEVICE_H
23 #define SOCEXPLORERENUMDEVICE_H
24
24
25 #include <QObject>
25 #include <QObject>
26 #include <stdint.h>
26 #include <stdint.h>
27 #include <socexplorerplugin.h>
27 #include <socexplorerplugin.h>
28 #include <socmodel.h>
28 #include <socmodel.h>
29
29
30 class SOCEXPLORER_EXPORT socExplorerEnumDevice : public QObject
30 class SOCEXPLORER_EXPORT socExplorerEnumDevice : public QObject
31 {
31 {
32 Q_OBJECT
32 Q_OBJECT
33 public:
33 public:
34 explicit socExplorerEnumDevice(SOCModel* soc,int VID,int PID,qint32 baseAddress,const QString& name,QObject *parent = 0);
34 explicit socExplorerEnumDevice(SOCModel* soc,int VID,int PID,qint32 baseAddress,const QString& name,QObject *parent = 0);
35 qint32 baseAddress(){return _baseAddress;}
35 qint32 baseAddress(){return _baseAddress;}
36 int VID(){return _VID;}
36 int VID(){return _VID;}
37 int PID(){return _PID;}
37 int PID(){return _PID;}
38 QString name(){return *_devName;}
38 QString name(){return *_devName;}
39 bool visible(){return _visible;}
39 bool visible(){return _visible;}
40 void setVisible(bool visible){_visible=visible;}
40 void setVisible(bool visible){_visible=visible;}
41 const QString& socName(){return _SOC->name();}
42 bool sameSoc(socExplorerEnumDevice* dev){return sameSoc(_SOC);}
43 bool sameSoc(SOCModel* soc){return soc==_SOC;}
41 signals:
44 signals:
42
45
43 public slots:
46 public slots:
44 void writeReg(qint32 address,qint32 value);
47 void writeReg(qint32 address,qint32 value);
45 qint32 readReg(qint32 address);
48 qint32 readReg(qint32 address);
46 private:
49 private:
47 bool _visible;
50 bool _visible;
48 qint32 _baseAddress;
51 qint32 _baseAddress;
49 int _VID;
52 int _VID;
50 int _PID;
53 int _PID;
51 QString* _devName;
54 QString* _devName;
52 SOCModel* _SOC;
55 SOCModel* _SOC;
53
56
54 };
57 };
55
58
56 #endif // SOCEXPLORERENUMDEVICE_H
59 #endif // SOCEXPLORERENUMDEVICE_H
@@ -1,115 +1,117
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 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@lpp.polytechnique.fr
20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 ----------------------------------------------------------------------------*/
21 ----------------------------------------------------------------------------*/
22
22
23 #ifndef REGISTERSMODEL_H
23 #ifndef REGISTERSMODEL_H
24 #define REGISTERSMODEL_H
24 #define REGISTERSMODEL_H
25 #include <QString>
25 #include <QString>
26 #include <QList>
26 #include <QList>
27 #include <QObject>
27 #include <QObject>
28 #include <QDomDocument>
28 #include <QDomDocument>
29 #include <QDomElement>
29 #include <QDomElement>
30 #include "registerdata.h"
30 #include "registerdata.h"
31 #include <socclk.h>
31 #include <socclk.h>
32 #include <socexplorerplugin.h>
32 #include <socexplorerplugin.h>
33 class socExplorerEnumDevice;
33 class socExplorerEnumDevice;
34
34
35 class registerBitFieldModel
35 class registerBitFieldModel
36 {
36 {
37 public:
37 public:
38 registerBitFieldModel(const QString& name,const QString& description,
38 registerBitFieldModel(const QString& name,const QString& description,
39 int size, int offset, bool rw)
39 int size, int offset, bool rw)
40 {
40 {
41 this->name = name;
41 this->name = name;
42 this->description = description;
42 this->description = description;
43 this->size = size;
43 this->size = size;
44 this->offset = offset;
44 this->offset = offset;
45 this->rw = rw;
45 this->rw = rw;
46 }
46 }
47 QString name;
47 QString name;
48 QString description;
48 QString description;
49 int size;
49 int size;
50 int offset;
50 int offset;
51 bool rw;
51 bool rw;
52 };
52 };
53
53
54 class registerModel
54 class registerModel
55 {
55 {
56 public:
56 public:
57 registerModel(const QString& name,qint32 offset)
57 registerModel(const QString& name,qint32 offset)
58 {
58 {
59 this->name = name;
59 this->name = name;
60 this->offset = offset;
60 this->offset = offset;
61 }
61 }
62 QString name;
62 QString name;
63 qint32 offset;
63 qint32 offset;
64 QList<registerBitFieldModel> bitfields;
64 QList<registerBitFieldModel> bitfields;
65 };
65 };
66
66
67 class peripheralModel
67 class peripheralModel
68 {
68 {
69 public:
69 public:
70 peripheralModel(const QString& name)
70 peripheralModel(const QString& name)
71 {
71 {
72 this->name = name;
72 this->name = name;
73 }
73 }
74 QString name;
74 QString name;
75 QList<registerModel> registers;
75 QList<registerModel> registers;
76 };
76 };
77
77
78
78
79 class SOCEXPLORER_EXPORT SOCModel :public QObject
79 class SOCEXPLORER_EXPORT SOCModel :public QObject
80 {
80 {
81 Q_OBJECT
81 Q_OBJECT
82 public:
82 public:
83 SOCModel(socexplorerplugin* rootDev,QObject* parent=0);
83 SOCModel(socexplorerplugin* rootDev,QObject* parent=0);
84 bool isRootDev(socexplorerplugin* rootDev)
84 bool isRootDev(socexplorerplugin* rootDev)
85 {
85 {
86 return rootDev==p_rootDev;
86 return rootDev==p_rootDev;
87 }
87 }
88 bool enumDeviceExists(qint32 baseAddress);
88 bool enumDeviceExists(qint32 baseAddress);
89 socExplorerEnumDevice *getEnumDevice(qint32 baseAddress);
89 socExplorerEnumDevice *getEnumDevice(qint32 baseAddress);
90 const QString& name(){return p_name;}
90 public slots:
91 public slots:
91 qint32 getEnumDeviceBaseAddress(int VID,int PID,int count=0);
92 qint32 getEnumDeviceBaseAddress(int VID,int PID,int count=0);
92 qint32 getEnumDeviceCount(int VID,int PID);
93 qint32 getEnumDeviceCount(int VID,int PID);
93 socExplorerEnumDevice* addEnumDevice(int VID, int PID, qint32 baseAddress, const QString& name);
94 socExplorerEnumDevice* addEnumDevice(int VID, int PID, qint32 baseAddress, const QString& name);
94 int addEnumDevice(socExplorerEnumDevice* device);
95 int addEnumDevice(socExplorerEnumDevice* device);
95 void writeReg(qint32 address,qint32 value);
96 void writeReg(qint32 address,qint32 value);
96 qint32 readReg(qint32 address);
97 qint32 readReg(qint32 address);
97 bool isLitleEndian();
98 bool isLitleEndian();
98 private:
99 private:
100 QString p_name;
99 socexplorerplugin* p_rootDev;
101 socexplorerplugin* p_rootDev;
100 QList<socExplorerEnumDevice*> p_enumeratedDevices;
102 QList<socExplorerEnumDevice*> p_enumeratedDevices;
101 QList<SOCclk*> clktree;
103 QList<SOCclk*> clktree;
102 bool p_litleEndian;
104 bool p_litleEndian;
103 };
105 };
104
106
105
107
106
108
107
109
108 #endif // REGISTERSMODEL_H
110 #endif // REGISTERSMODEL_H
109
111
110
112
111
113
112
114
113
115
114
116
115
117
@@ -1,177 +1,175
1 SOCEXPLORER_ROOT = \"$${PWD}/../..\"
1 SOCEXPLORER_ROOT = \"$${PWD}/../..\"
2
2
3 include($${PWD}/../../build_cfg/socexplorer.pri)
3 include($${PWD}/../../build_cfg/socexplorer.pri)
4
4
5 TARGET = socexplorerengine$${DEBUG_EXT}
5 TARGET = socexplorerengine$${DEBUG_EXT}
6 TEMPLATE = lib
6 TEMPLATE = lib
7
7
8 #more verbose plugin loader to debug plugin loading issues such as dependencies issues
8 #more verbose plugin loader to debug plugin loading issues such as dependencies issues
9 SOCEXPLORER_PLUGIN_LOADER="custom"
9 SOCEXPLORER_PLUGIN_LOADER="custom"
10
10
11 SOCEXPLORER_CHAGESETNUM=$$system(hg id)
11 SOCEXPLORER_CHAGESETNUM=$$system(hg id)
12 isEmpty(SOCEXPLORER_CHAGESETNUM){
12 isEmpty(SOCEXPLORER_CHAGESETNUM){
13 SOCEXPLORER_CHAGESETNUM=2c7201cecc87+
13 SOCEXPLORER_CHAGESETNUM=2c7201cecc87+
14 }
14 }
15 SOCEXPLORER_CHAGESETNUMSTR = '\\"$${SOCEXPLORER_CHAGESETNUM}\\"'
15 SOCEXPLORER_CHAGESETNUMSTR = '\\"$${SOCEXPLORER_CHAGESETNUM}\\"'
16 SOCEXPLORER_BRANCH=$$system(hg branch)
16 SOCEXPLORER_BRANCH=$$system(hg branch)
17 isEmpty(SOCEXPLORER_BRANCH){
17 isEmpty(SOCEXPLORER_BRANCH){
18 SOCEXPLORER_BRANCH=default
18 SOCEXPLORER_BRANCH=default
19 }
19 }
20 SOCEXPLORER_BRANCHSTR = '\\"$${SOCEXPLORER_BRANCH}\\"'
20 SOCEXPLORER_BRANCHSTR = '\\"$${SOCEXPLORER_BRANCH}\\"'
21
21
22 DEFINES += SOCEXPLORER_VERSION="\"\\\"0.5.0"\\\"\"
22 DEFINES += SOCEXPLORER_VERSION="\"\\\"0.5.0"\\\"\"
23 DEFINES += SOCEXPLORER_CHAGESET=\"$${SOCEXPLORER_CHAGESETNUMSTR}\"
23 DEFINES += SOCEXPLORER_CHAGESET=\"$${SOCEXPLORER_CHAGESETNUMSTR}\"
24 DEFINES += SOCEXPLORER_BRANCH=\"$${SOCEXPLORER_BRANCHSTR}\"
24 DEFINES += SOCEXPLORER_BRANCH=\"$${SOCEXPLORER_BRANCHSTR}\"
25
25
26
26
27 message("Building SOCEXPLORER changeset $${SOCEXPLORER_CHAGESETNUM}")
27 message("Building SOCEXPLORER changeset $${SOCEXPLORER_CHAGESETNUM}")
28
28
29 DEFINES += SOCEXPLORER_EXPORTS
29 DEFINES += SOCEXPLORER_EXPORTS
30
30
31 include ( plugins/socexplorerplugin.prf )
31 include ( plugins/socexplorerplugin.prf )
32 include ( PeripheralWidget/PeripheralWidget.pri)
32 include ( PeripheralWidget/PeripheralWidget.pri)
33
33
34 win32:CONFIG += dll
34 win32:CONFIG += dll
35 win32:CONFIG -= static
35 win32:CONFIG -= static
36 win32:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/win32 -lsocexplorercommon$${DEBUG_EXT}
36 win32:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/win32 -lsocexplorercommon$${DEBUG_EXT}
37
37
38 contains(SOCEXPLORER_PLUGIN_LOADER,"custom")
38 contains(SOCEXPLORER_PLUGIN_LOADER,"custom")
39 {
39 {
40 unix:LIBS+= -ldl
40 unix:LIBS+= -ldl
41 unix:DEFINES += SOCEXPLORER_CUSTOM_PLUGIN_LOADER
41 unix:DEFINES += SOCEXPLORER_CUSTOM_PLUGIN_LOADER
42 unix:HEADERS += \
42 unix:HEADERS += \
43 pluginloader/unix/unixpluginloader.h
43 pluginloader/unix/unixpluginloader.h
44 unix:SOURCES += \
44 unix:SOURCES += \
45 pluginloader/unix/unixpluginloader.cpp
45 pluginloader/unix/unixpluginloader.cpp
46 }
46 }
47
47
48 target.path = $$[QT_INSTALL_LIBS]
48 target.path = $$[QT_INSTALL_LIBS]
49 isEmpty(target.path) {
49 isEmpty(target.path) {
50 error(can\'t get QT_INSTALL_LIBS)
50 error(can\'t get QT_INSTALL_LIBS)
51 }
51 }
52
52
53 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer
53 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer
54 header.files = engine/socexplorerengine.h \
54 header.files = engine/socexplorerengine.h \
55 pluginloader/pluginscache.h \
55 pluginloader/pluginscache.h \
56 plugins/socexplorerplugin.h \
56 plugins/socexplorerplugin.h \
57 proxy/socexplorerproxy.h \
57 proxy/socexplorerproxy.h \
58 engine/socexplorerxmlfile.h \
58 engine/socexplorerxmlfile.h \
59 SOC/socexplorerenumdevice.h \
59 SOC/socexplorerenumdevice.h \
60 plugins/genericPySysdriver.h \
60 plugins/genericPySysdriver.h \
61 XmlEngine/XMLmodel.h \
61 XmlEngine/XMLmodel.h \
62 XmlEngine/XMLdata.h \
62 XmlEngine/XMLdata.h \
63 XmlEngine/xmldriver.h \
63 XmlEngine/xmldriver.h \
64 SOC/socmodel.h \
64 SOC/socmodel.h \
65 SOC/registerdata.h \
65 SOC/registerdata.h \
66 SOC/socclk.h \
66 SOC/socclk.h \
67 PeripheralWidget/src/peripheralwidget.h \
67 PeripheralWidget/src/peripheralwidget.h \
68 PeripheralWidget/src/registerwidget.h \
68 PeripheralWidget/src/registerwidget.h \
69 PeripheralWidget/src/socregsviewer.h \
69 PeripheralWidget/src/socregsviewer.h \
70 PeripheralWidget/src/socregsviewernew.h \
70 PeripheralWidget/src/socregsviewernew.h \
71 memtester/memtester.h
71 memtester/memtester.h
72
72
73
73
74
74
75 isEmpty(header.path) {
75 isEmpty(header.path) {
76 error(can\'t get QT_INSTALL_HEADERS)
76 error(can\'t get QT_INSTALL_HEADERS)
77 }
77 }
78
78
79 pluginif.files = pluginsInterface/*.h \
79 pluginif.files = pluginsInterface/*.h \
80 pluginsInterface/*.cpp
80 pluginsInterface/*.cpp
81
81
82 pluginif.path = $$[QT_INSTALL_HEADERS]/SocExplorer/pluginsInterface
82 pluginif.path = $$[QT_INSTALL_HEADERS]/SocExplorer/pluginsInterface
83
83
84
84
85 INSTALLS += target header pluginif
85 INSTALLS += target header pluginif
86
86
87 INCLUDEPATH += engine \
87 INCLUDEPATH += engine \
88 pluginloader \
88 pluginloader \
89 pluginsInterface \
89 pluginsInterface \
90 proxy \
90 proxy \
91 plugins \
91 plugins \
92 pluginManagerWdgt \
92 pluginManagerWdgt \
93 ../common \
93 ../common \
94 ../common/genericBinaryFiles \
94 ../common/genericBinaryFiles \
95 ../ \
95 ../ \
96 RegisterMVS \
96 RegisterMVS \
97 XmlEngine \
97 XmlEngine \
98 SOC \
98 SOC \
99 PeripheralWidget/src \
99 PeripheralWidget/src \
100 memtester
100 memtester
101
101
102
102
103 HEADERS += \
103 HEADERS += \
104 pluginloader/pluginscache.h \
104 pluginloader/pluginscache.h \
105 pluginloader/pluginloader.h \
105 pluginloader/pluginloader.h \
106 plugins/genericPySysdriver.h \
107 pluginManagerWdgt/plugintree.h \
106 pluginManagerWdgt/plugintree.h \
108 pluginManagerWdgt/pluginmanagerWDGT.h \
107 pluginManagerWdgt/pluginmanagerWDGT.h \
109 pluginManagerWdgt/pluginlist.h \
108 pluginManagerWdgt/pluginlist.h \
110 pluginManagerWdgt/plugininfoswdgt.h \
109 pluginManagerWdgt/plugininfoswdgt.h \
111 XmlEngine/XMLmodel.h \
110 XmlEngine/XMLmodel.h \
112 XmlEngine/XMLdata.h \
111 XmlEngine/XMLdata.h \
113 SOC/socmodel.h \
112 SOC/socmodel.h \
114 SOC/registerdata.h \
113 SOC/registerdata.h \
115 XmlEngine/xmldriver.h \
114 XmlEngine/xmldriver.h \
116 PeripheralWidget/src/peripheralwidget.h \
115 PeripheralWidget/src/peripheralwidget.h \
117 PeripheralWidget/src/registerwidget.h \
116 PeripheralWidget/src/registerwidget.h \
118 PeripheralWidget/src/socregsviewer.h \
117 PeripheralWidget/src/socregsviewer.h \
119 SOC/socclk.h \
118 SOC/socclk.h \
120 engine/socexplorerengine.h \
119 engine/socexplorerengine.h \
121 engine/socexplorerxmlfile.h \
120 engine/socexplorerxmlfile.h \
122 plugins/socexplorerplugin.h \
121 plugins/socexplorerplugin.h \
123 pluginsInterface/socexplorerplugininterface.h \
122 pluginsInterface/socexplorerplugininterface.h \
124 pluginsInterface/socexplorerplugininterface_global.h \
123 pluginsInterface/socexplorerplugininterface_global.h \
125 proxy/socexplorerproxy.h \
124 proxy/socexplorerproxy.h \
126 SOC/socexplorerenumdevice.h \
125 SOC/socexplorerenumdevice.h \
127 PySocExplorerEngine.h \
126 PySocExplorerEngine.h \
128 memtester/memtester.h\
127 memtester/memtester.h\
129 PeripheralWidget/src/socregsviewernew.h \
128 PeripheralWidget/src/socregsviewernew.h \
130 PeripheralWidget/src/collapsableperipheralwidget.h
129 PeripheralWidget/src/collapsableperipheralwidget.h
131
130
132
131
133
132
134
133
135
134
136
135
137 SOURCES += \
136 SOURCES += \
138 pluginloader/pluginscache.cpp \
137 pluginloader/pluginscache.cpp \
139 pluginloader/pluginloader.cpp \
138 pluginloader/pluginloader.cpp \
140 pluginManagerWdgt/plugintree.cpp \
139 pluginManagerWdgt/plugintree.cpp \
141 pluginManagerWdgt/pluginmanagerWDGT.cpp \
140 pluginManagerWdgt/pluginmanagerWDGT.cpp \
142 pluginManagerWdgt/pluginlist.cpp \
141 pluginManagerWdgt/pluginlist.cpp \
143 pluginManagerWdgt/plugininfoswdgt.cpp \
142 pluginManagerWdgt/plugininfoswdgt.cpp \
144 XmlEngine/XMLmodel.cpp \
143 XmlEngine/XMLmodel.cpp \
145 XmlEngine/XMLdata.cpp \
144 XmlEngine/XMLdata.cpp \
146 SOC/socmodel.cpp \
145 SOC/socmodel.cpp \
147 SOC/registerdata.cpp \
146 SOC/registerdata.cpp \
148 XmlEngine/xmldriver.cpp \
147 XmlEngine/xmldriver.cpp \
149 PeripheralWidget/src/peripheralwidget.cpp \
148 PeripheralWidget/src/peripheralwidget.cpp \
150 PeripheralWidget/src/registerwidget.cpp \
149 PeripheralWidget/src/registerwidget.cpp \
151 PeripheralWidget/src/socregsviewer.cpp \
150 PeripheralWidget/src/socregsviewer.cpp \
152 SOC/socclk.cpp \
151 SOC/socclk.cpp \
153 plugins/genericPySysdriver.cpp \
154 engine/socexplorerengine.cpp \
152 engine/socexplorerengine.cpp \
155 engine/socexplorerxmlfile.cpp \
153 engine/socexplorerxmlfile.cpp \
156 proxy/socexplorerproxy.cpp \
154 proxy/socexplorerproxy.cpp \
157 SOC/socexplorerenumdevice.cpp \
155 SOC/socexplorerenumdevice.cpp \
158 plugins/socexplorerplugin.cpp \
156 plugins/socexplorerplugin.cpp \
159 memtester/memtester.cpp \
157 memtester/memtester.cpp \
160 PeripheralWidget/src/socregsviewernew.cpp \
158 PeripheralWidget/src/socregsviewernew.cpp \
161 PeripheralWidget/src/collapsableperipheralwidget.cpp
159 PeripheralWidget/src/collapsableperipheralwidget.cpp
162
160
163
161
164 OTHER_FILES += \
162 OTHER_FILES += \
165 plugins/socexplorerplugin.cpp \
163 plugins/socexplorerplugin.cpp \
166 pluginsInterface/socexplorerplugininterface.cpp \
164 pluginsInterface/socexplorerplugininterface.cpp \
167 plugins/socexplorerplugin.prf \
165 plugins/socexplorerplugin.prf \
168 pythongenerator.sh \
166 pythongenerator.sh \
169 pythonQtgeneratorCfg.txt
167 pythonQtgeneratorCfg.txt
170
168
171 FORMS += \
169 FORMS += \
172 PeripheralWidget/src/socregsviewernew.ui \
170 PeripheralWidget/src/socregsviewernew.ui \
173 PeripheralWidget/src/collapsableperipheralwidget.ui
171 PeripheralWidget/src/collapsableperipheralwidget.ui
174
172
175
173
176 RESOURCES += \
174 RESOURCES += \
177 PeripheralWidget/ressources/peripheralwidget.qrc
175 PeripheralWidget/ressources/peripheralwidget.qrc
@@ -1,244 +1,264
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@lpp.polytechnique.fr
20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 ----------------------------------------------------------------------------*/
21 ----------------------------------------------------------------------------*/
22
22
23 #include <socexplorerplugin.h>
23 #include <socexplorerplugin.h>
24 #include <abstractbinfile.h>
24 #include <abstractbinfile.h>
25 #include <srec/srecfile.h>
25 #include <srec/srecfile.h>
26 #include <BinFile/binaryfile.h>
26 #include <BinFile/binaryfile.h>
27
27
28 int socexplorerplugin::isConnected(){return this->Connected;}
28 int socexplorerplugin::isConnected(){return this->Connected;}
29
29
30 QString socexplorerplugin::baseName(){return *_Name;}
30 QString socexplorerplugin::baseName(){return *_Name;}
31
31
32 int socexplorerplugin::baseAddress(){return this->BaseAddress;}
32 int socexplorerplugin::baseAddress(){return this->BaseAddress;}
33
33
34 void socexplorerplugin::setBaseAddress(unsigned int baseAddress){this->BaseAddress = baseAddress;}
34 void socexplorerplugin::setBaseAddress(unsigned int baseAddress){this->BaseAddress = baseAddress;}
35
35
36 QString socexplorerplugin::instanceName()
36 QString socexplorerplugin::instanceName()
37 {
37 {
38 return this->_instanceName;
38 return this->_instanceName;
39 }
39 }
40
40
41 int socexplorerplugin::registermenu(QMenu *menu)
41 int socexplorerplugin::registermenu(QMenu *menu)
42 {
42 {
43 this->menu = menu->addMenu(this->_instanceName);
43 this->menu = menu->addMenu(this->_instanceName);
44 this->closeAction = this->menu->addAction(tr("Close plugin"));
44 this->closeAction = this->menu->addAction(tr("Close plugin"));
45 QObject::connect(this->closeAction,SIGNAL(triggered()),this,SLOT(closeMe()));
45 QObject::connect(this->closeAction,SIGNAL(triggered()),this,SLOT(closeMe()));
46 this->ChildsMenu = this->menu->addMenu(QString("Childs"));
46 this->ChildsMenu = this->menu->addMenu(QString("Childs"));
47 for(int i=0;i<this->childs.count();i++)
47 for(int i=0;i<this->childs.count();i++)
48 {
48 {
49 this->childs.at(i)->registermenu(this->ChildsMenu);
49 this->childs.at(i)->registermenu(this->ChildsMenu);
50 }
50 }
51 if(this->pyObject!=NULL)emit this->registerObject((QObject*)this->pyObject,this->instanceName());
51 emit this->registerObject((QObject*)this,this->instanceName());
52 return 0;
52 return 0;
53 }
53 }
54
54
55 void socexplorerplugin::postInstantiationTrigger()
55 void socexplorerplugin::postInstantiationTrigger()
56 {
56 {
57 return;
57 return;
58 }
58 }
59
59
60 unsigned int socexplorerplugin::Write(unsigned int *Value, unsigned int count, unsigned int address)
60 unsigned int socexplorerplugin::Write(unsigned int *Value, unsigned int count, unsigned int address)
61 {
61 {
62 if(parent!=NULL)
62 if(parent!=NULL)
63 {
63 {
64 return parent->Write(Value,count,address);
64 return parent->Write(Value,count,address);
65 }
65 }
66 return 0;
66 return 0;
67 }
67 }
68
68
69 unsigned int socexplorerplugin::Read(unsigned int *Value, unsigned int count, unsigned int address)
69 unsigned int socexplorerplugin::Read(unsigned int *Value, unsigned int count, unsigned int address)
70 {
70 {
71 if(parent!=NULL)
71 if(parent!=NULL)
72 {
72 {
73 return parent->Read(Value,count,address);
73 return parent->Read(Value,count,address);
74 }
74 }
75 return 0;
75 return 0;
76 }
76 }
77
77
78 QVariantList socexplorerplugin::Read(unsigned int address,unsigned int count)
79 {
80 unsigned int data[count];
81 QVariantList result;
82 Read(data,count,address);
83 for(unsigned int i = 0;i<count;i++)
84 {
85 result.append(QVariant((int)data[i]));
86 }
87 return result;
88 }
89 void socexplorerplugin::Write(unsigned int address,QList<QVariant> dataList)
90 {
91 unsigned int data[dataList.count()];
92 for(int i = 0;i<dataList.count();i++)
93 {
94 data[i] = (unsigned int)dataList.at(i).toUInt();
95 }
96 Write(data,dataList.count(),address);
97 }
98
99
100
78 void socexplorerplugin::closeMe(){emit this->closePlugin(this);}
101 void socexplorerplugin::closeMe(){emit this->closePlugin(this);}
79
102
80 void socexplorerplugin::activate(bool flag){this->setEnabled(flag);emit this->activateSig(flag);}
103 void socexplorerplugin::activate(bool flag){this->setEnabled(flag);emit this->activateSig(flag);}
81
104
82 void socexplorerplugin::setInstanceName(const QString &newName)
105 void socexplorerplugin::setInstanceName(const QString &newName)
83 {
106 {
84 this->_instanceName = newName;
107 this->_instanceName = newName;
85 if(this->menu)
108 if(this->menu)
86 this->menu->setTitle(this->_instanceName);
109 this->menu->setTitle(this->_instanceName);
87 this->setWindowTitle(newName);
110 this->setWindowTitle(newName);
88 }
111 }
89
112
90 bool socexplorerplugin::dumpMemory(unsigned int address, unsigned int count, QString file)
113 bool socexplorerplugin::dumpMemory(unsigned int address, unsigned int count, QString file)
91 {
114 {
92 unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int));
115 unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int));
93 if(buffer!=NULL)
116 if(buffer!=NULL)
94 {
117 {
95 this->Read(buffer,count,address);
118 this->Read(buffer,count,address);
96 QFile outfile(file);
119 QFile outfile(file);
97 if (!outfile.open(QIODevice::ReadWrite | QIODevice::Text))
120 if (!outfile.open(QIODevice::ReadWrite | QIODevice::Text))
98 return false;
121 return false;
99 QTextStream out(&outfile);
122 QTextStream out(&outfile);
100 for(int i=0;(unsigned int)i<count;i++)
123 for(int i=0;(unsigned int)i<count;i++)
101 out << "0x"+QString::number(address+(i*4),16) + ": 0x" + QString::number(buffer[i],16) + "\n";
124 out << "0x"+QString::number(address+(i*4),16) + ": 0x" + QString::number(buffer[i],16) + "\n";
102 free(buffer);
125 free(buffer);
103 out.flush();
126 out.flush();
104 outfile.close();
127 outfile.close();
105 return true;
128 return true;
106 }
129 }
107 return false;
130 return false;
108 }
131 }
109
132
110 bool socexplorerplugin::memSet(unsigned int address, int value, unsigned int count)
133 bool socexplorerplugin::memSet(unsigned int address, int value, unsigned int count)
111 {
134 {
112 unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int));
135 unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int));
113 if(buffer!=NULL)
136 if(buffer!=NULL)
114 {
137 {
115 memset((void*)buffer,value,count*sizeof(unsigned int));
138 memset((void*)buffer,value,count*sizeof(unsigned int));
116 this->Write(buffer,count,address);
139 this->Write(buffer,count,address);
117 free(buffer );
140 free(buffer );
118 return true;
141 return true;
119 }
142 }
120 return false;
143 return false;
121 }
144 }
122
145
123 bool socexplorerplugin::loadbin(unsigned int address, QString file)
146 bool socexplorerplugin::loadbin(unsigned int address, QString file)
124 {
147 {
125 QFile infile(file);
148 QFile infile(file);
126 if (!infile.open(QIODevice::ReadOnly))
149 if (!infile.open(QIODevice::ReadOnly))
127 return false;
150 return false;
128 uint32_t* buffer = (uint32_t*)malloc(infile.size());
151 uint32_t* buffer = (uint32_t*)malloc(infile.size());
129 if(buffer!=NULL)
152 if(buffer!=NULL)
130 {
153 {
131 infile.read((char*)buffer,infile.size());
154 infile.read((char*)buffer,infile.size());
132 for(int i=0;i<(infile.size()/4);i++)
155 for(int i=0;i<(infile.size()/4);i++)
133 {
156 {
134 buffer[i] = socexplorerBswap32(buffer[i]);
157 buffer[i] = socexplorerBswap32(buffer[i]);
135 }
158 }
136 this->Write(buffer,infile.size()/4,address);
159 this->Write(buffer,infile.size()/4,address);
137 free(buffer);
160 free(buffer);
138 return true;
161 return true;
139 }
162 }
140 return false;
163 return false;
141
164
142 }
165 }
143
166
144 bool socexplorerplugin::loadfile(abstractBinFile *file)
167 bool socexplorerplugin::loadfile(abstractBinFile *file)
145 {
168 {
146 if(file->isopened())
169 if(file->isopened())
147 {
170 {
148 QList<codeFragment*> fragments= file->getFragments();
171 QList<codeFragment*> fragments= file->getFragments();
149 for(int i=0;i<fragments.count();i++)
172 for(int i=0;i<fragments.count();i++)
150 {
173 {
151 int size = fragments.at(i)->size/4;
174 int size = fragments.at(i)->size/4;
152 // TODO fixme, should be the oposite
175 // TODO fixme, should be the oposite
153 #if __BYTE_ORDER == __LITTLE_ENDIAN
176 #if __BYTE_ORDER == __LITTLE_ENDIAN
154 if(!file->litleendian)
177 if(!file->litleendian)
155 {
178 {
156 uint32_t* buffer = (uint32_t*)malloc(fragments.at(i)->size);
179 uint32_t* buffer = (uint32_t*)malloc(fragments.at(i)->size);
157 memcpy(buffer,fragments.at(i)->data,fragments.at(i)->size);
180 memcpy(buffer,fragments.at(i)->data,fragments.at(i)->size);
158 if(buffer!=NULL)
181 if(buffer!=NULL)
159 {
182 {
160 for(int l=0;l<(size);l++)
183 for(int l=0;l<(size);l++)
161 {
184 {
162 buffer[l] = socexplorerBswap32(buffer[l]);
185 buffer[l] = socexplorerBswap32(buffer[l]);
163 }
186 }
164 this->Write(buffer,size,fragments.at(i)->address);
187 this->Write(buffer,size,fragments.at(i)->address);
165 free(buffer);
188 free(buffer);
166 }
189 }
167 }
190 }
168 else
191 else
169 {
192 {
170 this->Write((uint32_t*) fragments.at(i)->data,size,fragments.at(i)->address);
193 this->Write((uint32_t*) fragments.at(i)->data,size,fragments.at(i)->address);
171 }
194 }
172 #elif __BYTE_ORDER == __BIG_ENDIAN
195 #elif __BYTE_ORDER == __BIG_ENDIAN
173 if(file->litleendian)
196 if(file->litleendian)
174 {
197 {
175 uint32_t* buffer = (uint32_t*)malloc(fragments.at(i)->size);
198 uint32_t* buffer = (uint32_t*)malloc(fragments.at(i)->size);
176 memcpy(buffer,fragments.at(i)->data,fragments.at(i)->size);
199 memcpy(buffer,fragments.at(i)->data,fragments.at(i)->size);
177 if(buffer!=NULL)
200 if(buffer!=NULL)
178 {
201 {
179 for(int l=0;l<(size);l++)
202 for(int l=0;l<(size);l++)
180 {
203 {
181 buffer[l] = socexplorerBswap32(buffer[l]);
204 buffer[l] = socexplorerBswap32(buffer[l]);
182 }
205 }
183 this->Write(buffer,size,fragments.at(i)->address);
206 this->Write(buffer,size,fragments.at(i)->address);
184 free(buffer);
207 free(buffer);
185 }
208 }
186 }
209 }
187 else
210 else
188 {
211 {
189 this->Write((uint32_t*) fragments.at(i)->data,size,fragments.at(i)->address);
212 this->Write((uint32_t*) fragments.at(i)->data,size,fragments.at(i)->address);
190 }
213 }
191 #endif
214 #endif
192 }
215 }
193 }
216 }
194 return true;
217 return true;
195 }
218 }
196
219
197 bool socexplorerplugin::dumpMemory(unsigned int address, unsigned int count, QString file, const QString &format)
220 bool socexplorerplugin::dumpMemory(unsigned int address, unsigned int count, QString file, const QString &format)
198 {
221 {
199 unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int));
222 unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int));
200 if(buffer!=NULL)
223 if(buffer!=NULL)
201 {
224 {
202 this->Read(buffer,count,address);
225 this->Read(buffer,count,address);
203 if(!format.compare("srec",Qt::CaseInsensitive))
226 if(!format.compare("srec",Qt::CaseInsensitive))
204 {
227 {
205 //need to convert from in memory endianness to file endianness
228 //need to convert from in memory endianness to file endianness
206 //SREC is always big endian
229 //SREC is always big endian
207 #if __BYTE_ORDER == __LITTLE_ENDIAN
230 #if __BYTE_ORDER == __LITTLE_ENDIAN
208 for(int l=0;l<(count);l++)
231 for(int l=0;l<(count);l++)
209 {
232 {
210 buffer[l] = socexplorerBswap32(buffer[l]);
233 buffer[l] = socexplorerBswap32(buffer[l]);
211 }
234 }
212 #elif __BYTE_ORDER == __BIG_ENDIAN
235 #elif __BYTE_ORDER == __BIG_ENDIAN
213
236
214 #endif
237 #endif
215 codeFragment fragment((char*)buffer,count*4,address);
238 codeFragment fragment((char*)buffer,count*4,address);
216 srecFile::toSrec(QList<codeFragment*>()<<&fragment,file);
239 srecFile::toSrec(QList<codeFragment*>()<<&fragment,file);
217 }
240 }
218 if(!format.compare("bin",Qt::CaseInsensitive))
241 if(!format.compare("bin",Qt::CaseInsensitive))
219 {
242 {
220 //beware this format is not portable from a big endian host to a litle endian one
243 //beware this format is not portable from a big endian host to a litle endian one
221 codeFragment fragment((char*)buffer,count*4,address);
244 codeFragment fragment((char*)buffer,count*4,address);
222 binaryFile::toBinary(QList<codeFragment*>()<<&fragment,file);
245 binaryFile::toBinary(QList<codeFragment*>()<<&fragment,file);
223 }
246 }
224 if(!format.compare("hexa",Qt::CaseInsensitive))
247 if(!format.compare("hexa",Qt::CaseInsensitive))
225 {
248 {
226 QFile outfile(file);
249 QFile outfile(file);
227 if (!outfile.open(QIODevice::ReadWrite | QIODevice::Text))
250 if (!outfile.open(QIODevice::ReadWrite | QIODevice::Text))
228 return false;
251 return false;
229 QTextStream out(&outfile);
252 QTextStream out(&outfile);
230 for(int i=0;(unsigned int)i<count;i++)
253 for(int i=0;(unsigned int)i<count;i++)
231 out << "0x"+QString::number(address+(i*4),16) + ": 0x" + QString::number(buffer[i],16) + "\n";
254 out << "0x"+QString::number(address+(i*4),16) + ": 0x" + QString::number(buffer[i],16) + "\n";
232 free(buffer);
255 free(buffer);
233 out.flush();
256 out.flush();
234 outfile.close();
257 outfile.close();
235 }
258 }
236 return true;
259 return true;
237 }
260 }
238 return false;
261 return false;
239 }
262 }
240
263
241 void socexplorerplugin::makeGenericPyWrapper()
264
242 {
243 this->pyObject = new genericPySysdriver(this);
244 }
@@ -1,187 +1,182
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>
46 #include <abstractbinfile.h>
45 #include <abstractbinfile.h>
47 #ifndef driver_Name
46 #ifndef driver_Name
48 #define driver_Name "Plugin"
47 #define driver_Name "Plugin"
49 #endif
48 #endif
50 #ifndef driver_Author
49 #ifndef driver_Author
51 #define driver_Author "No Author"
50 #define driver_Author "No Author"
52 #endif
51 #endif
53 #ifndef driver_Version
52 #ifndef driver_Version
54 #define driver_Version "0.0.0"
53 #define driver_Version "0.0.0"
55 #endif
54 #endif
56 #ifndef driver_Description
55 #ifndef driver_Description
57 #define driver_Description "No description."
56 #define driver_Description "No description."
58 #endif
57 #endif
59 #ifndef driver_can_be_root
58 #ifndef driver_can_be_root
60 #define driver_can_be_root 0
59 #define driver_can_be_root 0
61 #endif
60 #endif
62 #ifndef driver_can_be_child
61 #ifndef driver_can_be_child
63 #define driver_can_be_child 0
62 #define driver_can_be_child 0
64 #endif
63 #endif
65 #ifndef driver_VID
64 #ifndef driver_VID
66 #define driver_VID 0
65 #define driver_VID 0
67 #endif
66 #endif
68 #ifndef driver_PID
67 #ifndef driver_PID
69 #define driver_PID 0
68 #define driver_PID 0
70 #endif
69 #endif
71
70
72 #if defined(SOCEXPLORER_SDK_BUILD)
71 #if defined(SOCEXPLORER_SDK_BUILD)
73 # define SOCEXPLORER_SDK_EXPORT Q_DECL_EXPORT
72 # define SOCEXPLORER_SDK_EXPORT Q_DECL_EXPORT
74 #else
73 #else
75 # define SOCEXPLORER_SDK_EXPORT Q_DECL_IMPORT
74 # define SOCEXPLORER_SDK_EXPORT Q_DECL_IMPORT
76 #endif
75 #endif
77
76
78 class genericPySysdriver;
77 class genericPySysdriver;
79
78
80 //! 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
81 //! between each plugins and to interact with SocExplorer software.
80 //! between each plugins and to interact with SocExplorer software.
82
81
83 class SOCEXPLORER_SDK_EXPORT socexplorerplugin : public QDockWidget
82 class SOCEXPLORER_SDK_EXPORT socexplorerplugin : public QDockWidget
84 {
83 {
85 Q_OBJECT
84 Q_OBJECT
86 public:
85 public:
87 //! 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
88 //! 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
89 //! createPyObject option and instanciate your own genericPySysdriver derivated object.
88 //! createPyObject option and instanciate your own genericPySysdriver derivated object.
90 socexplorerplugin(QWidget *parent = 0,bool createPyObject=true):QDockWidget(parent)
89 socexplorerplugin(QWidget *parent = 0,bool createPyObject=true):QDockWidget(parent)
91 {
90 {
92 closeAction=NULL;
91 closeAction=NULL;
93 menu=NULL;
92 menu=NULL;
94 ChildsMenu=NULL;
93 ChildsMenu=NULL;
95 this->Connected = false;
94 this->Connected = false;
96 this->setFeatures(QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetVerticalTitleBar);
95 this->setFeatures(QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetVerticalTitleBar);
97 _Name = new QString(driver_Name);
96 _Name = new QString(driver_Name);
98 _Author = new QString(driver_Author);
97 _Author = new QString(driver_Author);
99 _Version = new QString(driver_Version);
98 _Version = new QString(driver_Version);
100 _Description = new QString(driver_Description);
99 _Description = new QString(driver_Description);
101 _canBeChild = driver_can_be_child;
100 _canBeChild = driver_can_be_child;
102 _canBeRoot = driver_can_be_root;
101 _canBeRoot = driver_can_be_root;
103 _VID = driver_VID;
102 _VID = driver_VID;
104 _PID = driver_PID;
103 _PID = driver_PID;
105 if(createPyObject)
106 {
107 this->makeGenericPyWrapper();
108 }
109 }
104 }
110 //! Tells if the plugin is connected, it is used to enable or disable all childrens interfaces.
105 //! Tells if the plugin is connected, it is used to enable or disable all childrens interfaces.
111 virtual int isConnected();
106 virtual int isConnected();
112 //! Gives the associated Vendor IDentifier, usefull to automatically associate plugins with found
107 //! Gives the associated Vendor IDentifier, usefull to automatically associate plugins with found
113 //! hardware while board enumeration.
108 //! hardware while board enumeration.
114 virtual int VID(){return _PID;}
109 virtual int VID(){return _PID;}
115 //! Gives the associated Product IDentifier, usefull to automatically associate plugins with found
110 //! Gives the associated Product IDentifier, usefull to automatically associate plugins with found
116 //! hardware while board enumeration.
111 //! hardware while board enumeration.
117 virtual int PID(){return _VID;}
112 virtual int PID(){return _VID;}
118 //! Gives the plugin's base name, usefull to automatically generate instance name.
113 //! Gives the plugin's base name, usefull to automatically generate instance name.
119 virtual QString baseName();
114 virtual QString baseName();
120 //! Gives the base address of the current instance, for example if your plugin is supposed to drive
115 //! Gives the base address of the current instance, for example if your plugin is supposed to drive
121 //! an UART it will correspond to the address of it's first register. This address have at least to
116 //! an UART it will correspond to the address of it's first register. This address have at least to
122 //! be set by SocExplorer and it can be user accessible if you want.
117 //! be set by SocExplorer and it can be user accessible if you want.
123 virtual int baseAddress();
118 virtual int baseAddress();
124 //! Sets the base address of the current instance, for example if your plugin is supposed to drive
119 //! Sets the base address of the current instance, for example if your plugin is supposed to drive
125 //! 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
126 //! 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.
127 virtual void setBaseAddress(unsigned int baseAddress);
122 virtual void setBaseAddress(unsigned int baseAddress);
128
123
129 genericPySysdriver* getPyObjectWrapper(){return this->pyObject;}
130 QList<socexplorerplugin*> childs;
124 QList<socexplorerplugin*> childs;
131 socexplorerplugin* parent;
125 socexplorerplugin* parent;
132 QAction* closeAction;
126 QAction* closeAction;
133 QString instanceName();
127 QString instanceName();
128 QString instance(){return instanceName();}
134 QMenu* menu;
129 QMenu* menu;
135 QMenu* ChildsMenu;
130 QMenu* ChildsMenu;
136
131
137 signals:
132 signals:
138 //! Signal emited each time the plugin is about to be closed.
133 //! Signal emited each time the plugin is about to be closed.
139 void closePlugin(socexplorerplugin* driver);
134 void closePlugin(socexplorerplugin* driver);
140 void activateSig(bool flag);
135 void activateSig(bool flag);
141 void registerObject(QObject* object,const QString& instanceName);
136 void registerObject(QObject* object,const QString& instanceName);
142
137
143 public slots:
138 public slots:
144 virtual int registermenu(QMenu* menu);
139 virtual int registermenu(QMenu* menu);
145 virtual void postInstantiationTrigger();
140 virtual void postInstantiationTrigger();
146 //! Write slot this is the way your children plugins ask you for writing data.
141 //! Write slot this is the way your children plugins ask you for writing data.
147 //! If your plugin is supposed to have childern drivers you should implement this methode.
142 //! If your plugin is supposed to have childern drivers you should implement this methode.
148 //! By default this methode forward the write request to the parent plugin.
143 //! By default this methode forward the write request to the parent plugin.
149 //! \param Value Pointer the data buffer.
144 //! \param Value Pointer the data buffer.
150 //! \param count Number of 32 bits words you should to write.
145 //! \param count Number of 32 bits words you should to write.
151 //! \param address Address from where you should to start to write.
146 //! \param address Address from where you should to start to write.
152 //! \return Quantity of 32 bits words writtens.
147 //! \return Quantity of 32 bits words writtens.
153 virtual unsigned int Write(unsigned int* Value, unsigned int count,unsigned int address);
148 virtual unsigned int Write(unsigned int* Value, unsigned int count,unsigned int address);
154 //! Read slot this is the way your children plugins ask you for reading data.
149 //! Read slot this is the way your children plugins ask you for reading data.
155 //! If your plugin is supposed to have childern drivers you should implement this methode.
150 //! If your plugin is supposed to have childern drivers you should implement this methode.
156 //! By default this methode forward the write request to the parent plugin.
151 //! By default this methode forward the write request to the parent plugin.
157 //! \param Value Pointer the data buffer.
152 //! \param Value Pointer the data buffer.
158 //! \param count Number of 32 bits words you should to read.
153 //! \param count Number of 32 bits words you should to read.
159 //! \param address Address from where you should to start to read.
154 //! \param address Address from where you should to start to read.
160 //! \return Quantity of 32 bits words read.
155 //! \return Quantity of 32 bits words read.
161 virtual unsigned int Read(unsigned int* Value, unsigned int count,unsigned int address);
156 virtual unsigned int Read(unsigned int* Value, unsigned int count,unsigned int address);
162 virtual void closeMe();
157 virtual void closeMe();
163 virtual void activate(bool flag);
158 virtual void activate(bool flag);
164 virtual void setInstanceName(const QString& newName);
159 virtual void setInstanceName(const QString& newName);
165
160
166 virtual bool dumpMemory(unsigned int address,unsigned int count,QString file);
161 virtual bool dumpMemory(unsigned int address,unsigned int count,QString file);
167 virtual bool memSet(unsigned int address,int value, unsigned int count);
162 virtual bool memSet(unsigned int address,int value, unsigned int count);
168 virtual bool loadbin(unsigned int address,QString file);
163 virtual bool loadbin(unsigned int address,QString file);
169 virtual bool loadfile(abstractBinFile* file);
164 virtual bool loadfile(abstractBinFile* file);
170 virtual bool dumpMemory(unsigned int address,unsigned int count,QString file,const QString& format);
165 virtual bool dumpMemory(unsigned int address,unsigned int count,QString file,const QString& format);
166 QVariantList Read(unsigned int address, unsigned int count);
167 void Write(unsigned int address, QList<QVariant> dataList);
171 protected:
168 protected:
172 void makeGenericPyWrapper();
173 int BaseAddress;
169 int BaseAddress;
174 bool Connected;
170 bool Connected;
175 genericPySysdriver* pyObject;
176 QString* _Name;
171 QString* _Name;
177 QString* _Author;
172 QString* _Author;
178 QString* _Version;
173 QString* _Version;
179 QString* _Description;
174 QString* _Description;
180 QString _instanceName;
175 QString _instanceName;
181 int _canBeChild;
176 int _canBeChild;
182 int _canBeRoot;
177 int _canBeRoot;
183 int _VID;
178 int _VID;
184 int _PID;
179 int _PID;
185 };
180 };
186
181
187 #endif // SOCEXPLORERPLUGIN_H
182 #endif // SOCEXPLORERPLUGIN_H
@@ -1,1590 +1,1590
1 #include "PySocExplorerEngine0.h"
1 #include "PySocExplorerEngine0.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 <QVariant>
5 #include <QVariant>
6 #include <qaction.h>
6 #include <qaction.h>
7 #include <qbackingstore.h>
7 #include <qbackingstore.h>
8 #include <qbitmap.h>
8 #include <qbitmap.h>
9 #include <qbytearray.h>
9 #include <qbytearray.h>
10 #include <qcoreevent.h>
10 #include <qcoreevent.h>
11 #include <qcursor.h>
11 #include <qcursor.h>
12 #include <qdockwidget.h>
12 #include <qdockwidget.h>
13 #include <qevent.h>
13 #include <qevent.h>
14 #include <qfont.h>
14 #include <qfont.h>
15 #include <qgraphicseffect.h>
15 #include <qgraphicseffect.h>
16 #include <qgraphicsproxywidget.h>
16 #include <qgraphicsproxywidget.h>
17 #include <qicon.h>
17 #include <qicon.h>
18 #include <qkeysequence.h>
18 #include <qkeysequence.h>
19 #include <qlayout.h>
19 #include <qlayout.h>
20 #include <qlist.h>
20 #include <qlist.h>
21 #include <qlocale.h>
21 #include <qlocale.h>
22 #include <qmargins.h>
22 #include <qmargins.h>
23 #include <qmenu.h>
23 #include <qmenu.h>
24 #include <qmetaobject.h>
24 #include <qmetaobject.h>
25 #include <qobject.h>
25 #include <qobject.h>
26 #include <qpaintdevice.h>
26 #include <qpaintdevice.h>
27 #include <qpaintengine.h>
27 #include <qpaintengine.h>
28 #include <qpainter.h>
28 #include <qpainter.h>
29 #include <qpalette.h>
29 #include <qpalette.h>
30 #include <qpixmap.h>
30 #include <qpixmap.h>
31 #include <qpoint.h>
31 #include <qpoint.h>
32 #include <qrect.h>
32 #include <qrect.h>
33 #include <qregion.h>
33 #include <qregion.h>
34 #include <qsize.h>
34 #include <qsize.h>
35 #include <qsizepolicy.h>
35 #include <qsizepolicy.h>
36 #include <qstyle.h>
36 #include <qstyle.h>
37 #include <qstyleoption.h>
37 #include <qstyleoption.h>
38 #include <qwidget.h>
38 #include <qwidget.h>
39 #include <qwindow.h>
39 #include <qwindow.h>
40 #include <socexplorerplugin.h>
40 #include <socexplorerplugin.h>
41
41
42 PythonQtShell_socexplorerplugin::~PythonQtShell_socexplorerplugin() {
42 PythonQtShell_socexplorerplugin::~PythonQtShell_socexplorerplugin() {
43 PythonQtPrivate* priv = PythonQt::priv();
43 PythonQtPrivate* priv = PythonQt::priv();
44 if (priv) { priv->shellClassDeleted(this); }
44 if (priv) { priv->shellClassDeleted(this); }
45 }
45 }
46 int PythonQtShell_socexplorerplugin::PID()
46 int PythonQtShell_socexplorerplugin::PID()
47 {
47 {
48 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
48 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
49 static PyObject* name = PyString_FromString("PID");
49 static PyObject* name = PyString_FromString("PID");
50 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
50 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
51 if (obj) {
51 if (obj) {
52 static const char* argumentList[] ={"int"};
52 static const char* argumentList[] ={"int"};
53 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
53 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
54 int returnValue;
54 int returnValue;
55 void* args[1] = {NULL};
55 void* args[1] = {NULL};
56 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
56 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
57 if (result) {
57 if (result) {
58 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
58 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
59 if (args[0]!=&returnValue) {
59 if (args[0]!=&returnValue) {
60 if (args[0]==NULL) {
60 if (args[0]==NULL) {
61 PythonQt::priv()->handleVirtualOverloadReturnError("PID", methodInfo, result);
61 PythonQt::priv()->handleVirtualOverloadReturnError("PID", methodInfo, result);
62 } else {
62 } else {
63 returnValue = *((int*)args[0]);
63 returnValue = *((int*)args[0]);
64 }
64 }
65 }
65 }
66 }
66 }
67 if (result) { Py_DECREF(result); }
67 if (result) { Py_DECREF(result); }
68 Py_DECREF(obj);
68 Py_DECREF(obj);
69 return returnValue;
69 return returnValue;
70 } else {
70 } else {
71 PyErr_Clear();
71 PyErr_Clear();
72 }
72 }
73 }
73 }
74 return socexplorerplugin::PID();
74 return socexplorerplugin::PID();
75 }
75 }
76 unsigned int PythonQtShell_socexplorerplugin::Read(unsigned int* Value0, unsigned int count1, unsigned int address2)
76 unsigned int PythonQtShell_socexplorerplugin::Read(unsigned int* Value0, unsigned int count1, unsigned int address2)
77 {
77 {
78 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
78 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
79 static PyObject* name = PyString_FromString("Read");
79 static PyObject* name = PyString_FromString("Read");
80 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
80 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
81 if (obj) {
81 if (obj) {
82 static const char* argumentList[] ={"unsigned int" , "unsigned int*" , "unsigned int" , "unsigned int"};
82 static const char* argumentList[] ={"unsigned int" , "unsigned int*" , "unsigned int" , "unsigned int"};
83 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
83 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
84 unsigned int returnValue;
84 unsigned int returnValue;
85 void* args[4] = {NULL, (void*)&Value0, (void*)&count1, (void*)&address2};
85 void* args[4] = {NULL, (void*)&Value0, (void*)&count1, (void*)&address2};
86 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
86 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
87 if (result) {
87 if (result) {
88 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
88 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
89 if (args[0]!=&returnValue) {
89 if (args[0]!=&returnValue) {
90 if (args[0]==NULL) {
90 if (args[0]==NULL) {
91 PythonQt::priv()->handleVirtualOverloadReturnError("Read", methodInfo, result);
91 PythonQt::priv()->handleVirtualOverloadReturnError("Read", methodInfo, result);
92 } else {
92 } else {
93 returnValue = *((unsigned int*)args[0]);
93 returnValue = *((unsigned int*)args[0]);
94 }
94 }
95 }
95 }
96 }
96 }
97 if (result) { Py_DECREF(result); }
97 if (result) { Py_DECREF(result); }
98 Py_DECREF(obj);
98 Py_DECREF(obj);
99 return returnValue;
99 return returnValue;
100 } else {
100 } else {
101 PyErr_Clear();
101 PyErr_Clear();
102 }
102 }
103 }
103 }
104 return socexplorerplugin::Read(Value0, count1, address2);
104 return socexplorerplugin::Read(Value0, count1, address2);
105 }
105 }
106 int PythonQtShell_socexplorerplugin::VID()
106 int PythonQtShell_socexplorerplugin::VID()
107 {
107 {
108 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
108 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
109 static PyObject* name = PyString_FromString("VID");
109 static PyObject* name = PyString_FromString("VID");
110 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
110 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
111 if (obj) {
111 if (obj) {
112 static const char* argumentList[] ={"int"};
112 static const char* argumentList[] ={"int"};
113 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
113 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
114 int returnValue;
114 int returnValue;
115 void* args[1] = {NULL};
115 void* args[1] = {NULL};
116 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
116 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
117 if (result) {
117 if (result) {
118 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
118 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
119 if (args[0]!=&returnValue) {
119 if (args[0]!=&returnValue) {
120 if (args[0]==NULL) {
120 if (args[0]==NULL) {
121 PythonQt::priv()->handleVirtualOverloadReturnError("VID", methodInfo, result);
121 PythonQt::priv()->handleVirtualOverloadReturnError("VID", methodInfo, result);
122 } else {
122 } else {
123 returnValue = *((int*)args[0]);
123 returnValue = *((int*)args[0]);
124 }
124 }
125 }
125 }
126 }
126 }
127 if (result) { Py_DECREF(result); }
127 if (result) { Py_DECREF(result); }
128 Py_DECREF(obj);
128 Py_DECREF(obj);
129 return returnValue;
129 return returnValue;
130 } else {
130 } else {
131 PyErr_Clear();
131 PyErr_Clear();
132 }
132 }
133 }
133 }
134 return socexplorerplugin::VID();
134 return socexplorerplugin::VID();
135 }
135 }
136 unsigned int PythonQtShell_socexplorerplugin::Write(unsigned int* Value0, unsigned int count1, unsigned int address2)
136 unsigned int PythonQtShell_socexplorerplugin::Write(unsigned int* Value0, unsigned int count1, unsigned int address2)
137 {
137 {
138 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
138 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
139 static PyObject* name = PyString_FromString("Write");
139 static PyObject* name = PyString_FromString("Write");
140 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
140 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
141 if (obj) {
141 if (obj) {
142 static const char* argumentList[] ={"unsigned int" , "unsigned int*" , "unsigned int" , "unsigned int"};
142 static const char* argumentList[] ={"unsigned int" , "unsigned int*" , "unsigned int" , "unsigned int"};
143 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
143 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
144 unsigned int returnValue;
144 unsigned int returnValue;
145 void* args[4] = {NULL, (void*)&Value0, (void*)&count1, (void*)&address2};
145 void* args[4] = {NULL, (void*)&Value0, (void*)&count1, (void*)&address2};
146 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
146 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
147 if (result) {
147 if (result) {
148 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
148 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
149 if (args[0]!=&returnValue) {
149 if (args[0]!=&returnValue) {
150 if (args[0]==NULL) {
150 if (args[0]==NULL) {
151 PythonQt::priv()->handleVirtualOverloadReturnError("Write", methodInfo, result);
151 PythonQt::priv()->handleVirtualOverloadReturnError("Write", methodInfo, result);
152 } else {
152 } else {
153 returnValue = *((unsigned int*)args[0]);
153 returnValue = *((unsigned int*)args[0]);
154 }
154 }
155 }
155 }
156 }
156 }
157 if (result) { Py_DECREF(result); }
157 if (result) { Py_DECREF(result); }
158 Py_DECREF(obj);
158 Py_DECREF(obj);
159 return returnValue;
159 return returnValue;
160 } else {
160 } else {
161 PyErr_Clear();
161 PyErr_Clear();
162 }
162 }
163 }
163 }
164 return socexplorerplugin::Write(Value0, count1, address2);
164 return socexplorerplugin::Write(Value0, count1, address2);
165 }
165 }
166 void PythonQtShell_socexplorerplugin::actionEvent(QActionEvent* arg__1)
166 void PythonQtShell_socexplorerplugin::actionEvent(QActionEvent* arg__1)
167 {
167 {
168 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
168 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
169 static PyObject* name = PyString_FromString("actionEvent");
169 static PyObject* name = PyString_FromString("actionEvent");
170 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
170 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
171 if (obj) {
171 if (obj) {
172 static const char* argumentList[] ={"" , "QActionEvent*"};
172 static const char* argumentList[] ={"" , "QActionEvent*"};
173 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
173 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
174 void* args[2] = {NULL, (void*)&arg__1};
174 void* args[2] = {NULL, (void*)&arg__1};
175 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
175 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
176 if (result) { Py_DECREF(result); }
176 if (result) { Py_DECREF(result); }
177 Py_DECREF(obj);
177 Py_DECREF(obj);
178 return;
178 return;
179 } else {
179 } else {
180 PyErr_Clear();
180 PyErr_Clear();
181 }
181 }
182 }
182 }
183 socexplorerplugin::actionEvent(arg__1);
183 socexplorerplugin::actionEvent(arg__1);
184 }
184 }
185 void PythonQtShell_socexplorerplugin::activate(bool flag0)
185 void PythonQtShell_socexplorerplugin::activate(bool flag0)
186 {
186 {
187 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
187 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
188 static PyObject* name = PyString_FromString("activate");
188 static PyObject* name = PyString_FromString("activate");
189 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
189 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
190 if (obj) {
190 if (obj) {
191 static const char* argumentList[] ={"" , "bool"};
191 static const char* argumentList[] ={"" , "bool"};
192 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
192 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
193 void* args[2] = {NULL, (void*)&flag0};
193 void* args[2] = {NULL, (void*)&flag0};
194 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
194 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
195 if (result) { Py_DECREF(result); }
195 if (result) { Py_DECREF(result); }
196 Py_DECREF(obj);
196 Py_DECREF(obj);
197 return;
197 return;
198 } else {
198 } else {
199 PyErr_Clear();
199 PyErr_Clear();
200 }
200 }
201 }
201 }
202 socexplorerplugin::activate(flag0);
202 socexplorerplugin::activate(flag0);
203 }
203 }
204 int PythonQtShell_socexplorerplugin::baseAddress()
204 int PythonQtShell_socexplorerplugin::baseAddress()
205 {
205 {
206 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
206 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
207 static PyObject* name = PyString_FromString("baseAddress");
207 static PyObject* name = PyString_FromString("baseAddress");
208 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
208 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
209 if (obj) {
209 if (obj) {
210 static const char* argumentList[] ={"int"};
210 static const char* argumentList[] ={"int"};
211 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
211 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
212 int returnValue;
212 int returnValue;
213 void* args[1] = {NULL};
213 void* args[1] = {NULL};
214 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
214 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
215 if (result) {
215 if (result) {
216 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
216 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
217 if (args[0]!=&returnValue) {
217 if (args[0]!=&returnValue) {
218 if (args[0]==NULL) {
218 if (args[0]==NULL) {
219 PythonQt::priv()->handleVirtualOverloadReturnError("baseAddress", methodInfo, result);
219 PythonQt::priv()->handleVirtualOverloadReturnError("baseAddress", methodInfo, result);
220 } else {
220 } else {
221 returnValue = *((int*)args[0]);
221 returnValue = *((int*)args[0]);
222 }
222 }
223 }
223 }
224 }
224 }
225 if (result) { Py_DECREF(result); }
225 if (result) { Py_DECREF(result); }
226 Py_DECREF(obj);
226 Py_DECREF(obj);
227 return returnValue;
227 return returnValue;
228 } else {
228 } else {
229 PyErr_Clear();
229 PyErr_Clear();
230 }
230 }
231 }
231 }
232 return socexplorerplugin::baseAddress();
232 return socexplorerplugin::baseAddress();
233 }
233 }
234 QString PythonQtShell_socexplorerplugin::baseName()
234 QString PythonQtShell_socexplorerplugin::baseName()
235 {
235 {
236 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
236 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
237 static PyObject* name = PyString_FromString("baseName");
237 static PyObject* name = PyString_FromString("baseName");
238 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
238 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
239 if (obj) {
239 if (obj) {
240 static const char* argumentList[] ={"QString"};
240 static const char* argumentList[] ={"QString"};
241 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
241 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
242 QString returnValue;
242 QString returnValue;
243 void* args[1] = {NULL};
243 void* args[1] = {NULL};
244 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
244 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
245 if (result) {
245 if (result) {
246 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
246 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
247 if (args[0]!=&returnValue) {
247 if (args[0]!=&returnValue) {
248 if (args[0]==NULL) {
248 if (args[0]==NULL) {
249 PythonQt::priv()->handleVirtualOverloadReturnError("baseName", methodInfo, result);
249 PythonQt::priv()->handleVirtualOverloadReturnError("baseName", methodInfo, result);
250 } else {
250 } else {
251 returnValue = *((QString*)args[0]);
251 returnValue = *((QString*)args[0]);
252 }
252 }
253 }
253 }
254 }
254 }
255 if (result) { Py_DECREF(result); }
255 if (result) { Py_DECREF(result); }
256 Py_DECREF(obj);
256 Py_DECREF(obj);
257 return returnValue;
257 return returnValue;
258 } else {
258 } else {
259 PyErr_Clear();
259 PyErr_Clear();
260 }
260 }
261 }
261 }
262 return socexplorerplugin::baseName();
262 return socexplorerplugin::baseName();
263 }
263 }
264 void PythonQtShell_socexplorerplugin::changeEvent(QEvent* event0)
264 void PythonQtShell_socexplorerplugin::changeEvent(QEvent* event0)
265 {
265 {
266 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
266 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
267 static PyObject* name = PyString_FromString("changeEvent");
267 static PyObject* name = PyString_FromString("changeEvent");
268 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
268 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
269 if (obj) {
269 if (obj) {
270 static const char* argumentList[] ={"" , "QEvent*"};
270 static const char* argumentList[] ={"" , "QEvent*"};
271 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
271 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
272 void* args[2] = {NULL, (void*)&event0};
272 void* args[2] = {NULL, (void*)&event0};
273 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
273 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
274 if (result) { Py_DECREF(result); }
274 if (result) { Py_DECREF(result); }
275 Py_DECREF(obj);
275 Py_DECREF(obj);
276 return;
276 return;
277 } else {
277 } else {
278 PyErr_Clear();
278 PyErr_Clear();
279 }
279 }
280 }
280 }
281 socexplorerplugin::changeEvent(event0);
281 socexplorerplugin::changeEvent(event0);
282 }
282 }
283 void PythonQtShell_socexplorerplugin::childEvent(QChildEvent* arg__1)
283 void PythonQtShell_socexplorerplugin::childEvent(QChildEvent* arg__1)
284 {
284 {
285 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
285 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
286 static PyObject* name = PyString_FromString("childEvent");
286 static PyObject* name = PyString_FromString("childEvent");
287 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
287 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
288 if (obj) {
288 if (obj) {
289 static const char* argumentList[] ={"" , "QChildEvent*"};
289 static const char* argumentList[] ={"" , "QChildEvent*"};
290 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
290 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
291 void* args[2] = {NULL, (void*)&arg__1};
291 void* args[2] = {NULL, (void*)&arg__1};
292 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
292 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
293 if (result) { Py_DECREF(result); }
293 if (result) { Py_DECREF(result); }
294 Py_DECREF(obj);
294 Py_DECREF(obj);
295 return;
295 return;
296 } else {
296 } else {
297 PyErr_Clear();
297 PyErr_Clear();
298 }
298 }
299 }
299 }
300 socexplorerplugin::childEvent(arg__1);
300 socexplorerplugin::childEvent(arg__1);
301 }
301 }
302 void PythonQtShell_socexplorerplugin::closeEvent(QCloseEvent* event0)
302 void PythonQtShell_socexplorerplugin::closeEvent(QCloseEvent* event0)
303 {
303 {
304 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
304 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
305 static PyObject* name = PyString_FromString("closeEvent");
305 static PyObject* name = PyString_FromString("closeEvent");
306 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
306 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
307 if (obj) {
307 if (obj) {
308 static const char* argumentList[] ={"" , "QCloseEvent*"};
308 static const char* argumentList[] ={"" , "QCloseEvent*"};
309 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
309 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
310 void* args[2] = {NULL, (void*)&event0};
310 void* args[2] = {NULL, (void*)&event0};
311 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
311 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
312 if (result) { Py_DECREF(result); }
312 if (result) { Py_DECREF(result); }
313 Py_DECREF(obj);
313 Py_DECREF(obj);
314 return;
314 return;
315 } else {
315 } else {
316 PyErr_Clear();
316 PyErr_Clear();
317 }
317 }
318 }
318 }
319 socexplorerplugin::closeEvent(event0);
319 socexplorerplugin::closeEvent(event0);
320 }
320 }
321 void PythonQtShell_socexplorerplugin::closeMe()
321 void PythonQtShell_socexplorerplugin::closeMe()
322 {
322 {
323 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
323 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
324 static PyObject* name = PyString_FromString("closeMe");
324 static PyObject* name = PyString_FromString("closeMe");
325 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
325 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
326 if (obj) {
326 if (obj) {
327 static const char* argumentList[] ={""};
327 static const char* argumentList[] ={""};
328 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
328 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
329 void* args[1] = {NULL};
329 void* args[1] = {NULL};
330 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
330 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
331 if (result) { Py_DECREF(result); }
331 if (result) { Py_DECREF(result); }
332 Py_DECREF(obj);
332 Py_DECREF(obj);
333 return;
333 return;
334 } else {
334 } else {
335 PyErr_Clear();
335 PyErr_Clear();
336 }
336 }
337 }
337 }
338 socexplorerplugin::closeMe();
338 socexplorerplugin::closeMe();
339 }
339 }
340 void PythonQtShell_socexplorerplugin::contextMenuEvent(QContextMenuEvent* arg__1)
340 void PythonQtShell_socexplorerplugin::contextMenuEvent(QContextMenuEvent* arg__1)
341 {
341 {
342 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
342 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
343 static PyObject* name = PyString_FromString("contextMenuEvent");
343 static PyObject* name = PyString_FromString("contextMenuEvent");
344 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
344 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
345 if (obj) {
345 if (obj) {
346 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
346 static const char* argumentList[] ={"" , "QContextMenuEvent*"};
347 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
347 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
348 void* args[2] = {NULL, (void*)&arg__1};
348 void* args[2] = {NULL, (void*)&arg__1};
349 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
349 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
350 if (result) { Py_DECREF(result); }
350 if (result) { Py_DECREF(result); }
351 Py_DECREF(obj);
351 Py_DECREF(obj);
352 return;
352 return;
353 } else {
353 } else {
354 PyErr_Clear();
354 PyErr_Clear();
355 }
355 }
356 }
356 }
357 socexplorerplugin::contextMenuEvent(arg__1);
357 socexplorerplugin::contextMenuEvent(arg__1);
358 }
358 }
359 void PythonQtShell_socexplorerplugin::customEvent(QEvent* arg__1)
359 void PythonQtShell_socexplorerplugin::customEvent(QEvent* arg__1)
360 {
360 {
361 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
361 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
362 static PyObject* name = PyString_FromString("customEvent");
362 static PyObject* name = PyString_FromString("customEvent");
363 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
363 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
364 if (obj) {
364 if (obj) {
365 static const char* argumentList[] ={"" , "QEvent*"};
365 static const char* argumentList[] ={"" , "QEvent*"};
366 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
366 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
367 void* args[2] = {NULL, (void*)&arg__1};
367 void* args[2] = {NULL, (void*)&arg__1};
368 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
368 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
369 if (result) { Py_DECREF(result); }
369 if (result) { Py_DECREF(result); }
370 Py_DECREF(obj);
370 Py_DECREF(obj);
371 return;
371 return;
372 } else {
372 } else {
373 PyErr_Clear();
373 PyErr_Clear();
374 }
374 }
375 }
375 }
376 socexplorerplugin::customEvent(arg__1);
376 socexplorerplugin::customEvent(arg__1);
377 }
377 }
378 int PythonQtShell_socexplorerplugin::devType() const
378 int PythonQtShell_socexplorerplugin::devType() const
379 {
379 {
380 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
380 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
381 static PyObject* name = PyString_FromString("devType");
381 static PyObject* name = PyString_FromString("devType");
382 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
382 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
383 if (obj) {
383 if (obj) {
384 static const char* argumentList[] ={"int"};
384 static const char* argumentList[] ={"int"};
385 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
385 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
386 int returnValue;
386 int returnValue;
387 void* args[1] = {NULL};
387 void* args[1] = {NULL};
388 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
388 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
389 if (result) {
389 if (result) {
390 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
390 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
391 if (args[0]!=&returnValue) {
391 if (args[0]!=&returnValue) {
392 if (args[0]==NULL) {
392 if (args[0]==NULL) {
393 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
393 PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result);
394 } else {
394 } else {
395 returnValue = *((int*)args[0]);
395 returnValue = *((int*)args[0]);
396 }
396 }
397 }
397 }
398 }
398 }
399 if (result) { Py_DECREF(result); }
399 if (result) { Py_DECREF(result); }
400 Py_DECREF(obj);
400 Py_DECREF(obj);
401 return returnValue;
401 return returnValue;
402 } else {
402 } else {
403 PyErr_Clear();
403 PyErr_Clear();
404 }
404 }
405 }
405 }
406 return socexplorerplugin::devType();
406 return socexplorerplugin::devType();
407 }
407 }
408 void PythonQtShell_socexplorerplugin::dragEnterEvent(QDragEnterEvent* arg__1)
408 void PythonQtShell_socexplorerplugin::dragEnterEvent(QDragEnterEvent* arg__1)
409 {
409 {
410 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
410 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
411 static PyObject* name = PyString_FromString("dragEnterEvent");
411 static PyObject* name = PyString_FromString("dragEnterEvent");
412 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
412 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
413 if (obj) {
413 if (obj) {
414 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
414 static const char* argumentList[] ={"" , "QDragEnterEvent*"};
415 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
415 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
416 void* args[2] = {NULL, (void*)&arg__1};
416 void* args[2] = {NULL, (void*)&arg__1};
417 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
417 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
418 if (result) { Py_DECREF(result); }
418 if (result) { Py_DECREF(result); }
419 Py_DECREF(obj);
419 Py_DECREF(obj);
420 return;
420 return;
421 } else {
421 } else {
422 PyErr_Clear();
422 PyErr_Clear();
423 }
423 }
424 }
424 }
425 socexplorerplugin::dragEnterEvent(arg__1);
425 socexplorerplugin::dragEnterEvent(arg__1);
426 }
426 }
427 void PythonQtShell_socexplorerplugin::dragLeaveEvent(QDragLeaveEvent* arg__1)
427 void PythonQtShell_socexplorerplugin::dragLeaveEvent(QDragLeaveEvent* arg__1)
428 {
428 {
429 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
429 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
430 static PyObject* name = PyString_FromString("dragLeaveEvent");
430 static PyObject* name = PyString_FromString("dragLeaveEvent");
431 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
431 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
432 if (obj) {
432 if (obj) {
433 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
433 static const char* argumentList[] ={"" , "QDragLeaveEvent*"};
434 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
434 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
435 void* args[2] = {NULL, (void*)&arg__1};
435 void* args[2] = {NULL, (void*)&arg__1};
436 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
436 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
437 if (result) { Py_DECREF(result); }
437 if (result) { Py_DECREF(result); }
438 Py_DECREF(obj);
438 Py_DECREF(obj);
439 return;
439 return;
440 } else {
440 } else {
441 PyErr_Clear();
441 PyErr_Clear();
442 }
442 }
443 }
443 }
444 socexplorerplugin::dragLeaveEvent(arg__1);
444 socexplorerplugin::dragLeaveEvent(arg__1);
445 }
445 }
446 void PythonQtShell_socexplorerplugin::dragMoveEvent(QDragMoveEvent* arg__1)
446 void PythonQtShell_socexplorerplugin::dragMoveEvent(QDragMoveEvent* arg__1)
447 {
447 {
448 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
448 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
449 static PyObject* name = PyString_FromString("dragMoveEvent");
449 static PyObject* name = PyString_FromString("dragMoveEvent");
450 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
450 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
451 if (obj) {
451 if (obj) {
452 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
452 static const char* argumentList[] ={"" , "QDragMoveEvent*"};
453 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
453 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
454 void* args[2] = {NULL, (void*)&arg__1};
454 void* args[2] = {NULL, (void*)&arg__1};
455 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
455 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
456 if (result) { Py_DECREF(result); }
456 if (result) { Py_DECREF(result); }
457 Py_DECREF(obj);
457 Py_DECREF(obj);
458 return;
458 return;
459 } else {
459 } else {
460 PyErr_Clear();
460 PyErr_Clear();
461 }
461 }
462 }
462 }
463 socexplorerplugin::dragMoveEvent(arg__1);
463 socexplorerplugin::dragMoveEvent(arg__1);
464 }
464 }
465 void PythonQtShell_socexplorerplugin::dropEvent(QDropEvent* arg__1)
465 void PythonQtShell_socexplorerplugin::dropEvent(QDropEvent* arg__1)
466 {
466 {
467 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
467 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
468 static PyObject* name = PyString_FromString("dropEvent");
468 static PyObject* name = PyString_FromString("dropEvent");
469 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
469 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
470 if (obj) {
470 if (obj) {
471 static const char* argumentList[] ={"" , "QDropEvent*"};
471 static const char* argumentList[] ={"" , "QDropEvent*"};
472 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
472 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
473 void* args[2] = {NULL, (void*)&arg__1};
473 void* args[2] = {NULL, (void*)&arg__1};
474 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
474 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
475 if (result) { Py_DECREF(result); }
475 if (result) { Py_DECREF(result); }
476 Py_DECREF(obj);
476 Py_DECREF(obj);
477 return;
477 return;
478 } else {
478 } else {
479 PyErr_Clear();
479 PyErr_Clear();
480 }
480 }
481 }
481 }
482 socexplorerplugin::dropEvent(arg__1);
482 socexplorerplugin::dropEvent(arg__1);
483 }
483 }
484 bool PythonQtShell_socexplorerplugin::dumpMemory(unsigned int address0, unsigned int count1, QString file2)
484 bool PythonQtShell_socexplorerplugin::dumpMemory(unsigned int address0, unsigned int count1, QString file2)
485 {
485 {
486 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
486 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
487 static PyObject* name = PyString_FromString("dumpMemory");
487 static PyObject* name = PyString_FromString("dumpMemory");
488 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
488 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
489 if (obj) {
489 if (obj) {
490 static const char* argumentList[] ={"bool" , "unsigned int" , "unsigned int" , "QString"};
490 static const char* argumentList[] ={"bool" , "unsigned int" , "unsigned int" , "QString"};
491 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
491 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
492 bool returnValue;
492 bool returnValue;
493 void* args[4] = {NULL, (void*)&address0, (void*)&count1, (void*)&file2};
493 void* args[4] = {NULL, (void*)&address0, (void*)&count1, (void*)&file2};
494 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
494 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
495 if (result) {
495 if (result) {
496 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);
497 if (args[0]!=&returnValue) {
497 if (args[0]!=&returnValue) {
498 if (args[0]==NULL) {
498 if (args[0]==NULL) {
499 PythonQt::priv()->handleVirtualOverloadReturnError("dumpMemory", methodInfo, result);
499 PythonQt::priv()->handleVirtualOverloadReturnError("dumpMemory", methodInfo, result);
500 } else {
500 } else {
501 returnValue = *((bool*)args[0]);
501 returnValue = *((bool*)args[0]);
502 }
502 }
503 }
503 }
504 }
504 }
505 if (result) { Py_DECREF(result); }
505 if (result) { Py_DECREF(result); }
506 Py_DECREF(obj);
506 Py_DECREF(obj);
507 return returnValue;
507 return returnValue;
508 } else {
508 } else {
509 PyErr_Clear();
509 PyErr_Clear();
510 }
510 }
511 }
511 }
512 return socexplorerplugin::dumpMemory(address0, count1, file2);
512 return socexplorerplugin::dumpMemory(address0, count1, file2);
513 }
513 }
514 bool PythonQtShell_socexplorerplugin::dumpMemory(unsigned int address0, unsigned int count1, QString file2, const QString& format3)
514 bool PythonQtShell_socexplorerplugin::dumpMemory(unsigned int address0, unsigned int count1, QString file2, const QString& format3)
515 {
515 {
516 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
516 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
517 static PyObject* name = PyString_FromString("dumpMemory");
517 static PyObject* name = PyString_FromString("dumpMemory");
518 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
518 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
519 if (obj) {
519 if (obj) {
520 static const char* argumentList[] ={"bool" , "unsigned int" , "unsigned int" , "QString" , "const QString&"};
520 static const char* argumentList[] ={"bool" , "unsigned int" , "unsigned int" , "QString" , "const QString&"};
521 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList);
521 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList);
522 bool returnValue;
522 bool returnValue;
523 void* args[5] = {NULL, (void*)&address0, (void*)&count1, (void*)&file2, (void*)&format3};
523 void* args[5] = {NULL, (void*)&address0, (void*)&count1, (void*)&file2, (void*)&format3};
524 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
524 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
525 if (result) {
525 if (result) {
526 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
526 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
527 if (args[0]!=&returnValue) {
527 if (args[0]!=&returnValue) {
528 if (args[0]==NULL) {
528 if (args[0]==NULL) {
529 PythonQt::priv()->handleVirtualOverloadReturnError("dumpMemory", methodInfo, result);
529 PythonQt::priv()->handleVirtualOverloadReturnError("dumpMemory", methodInfo, result);
530 } else {
530 } else {
531 returnValue = *((bool*)args[0]);
531 returnValue = *((bool*)args[0]);
532 }
532 }
533 }
533 }
534 }
534 }
535 if (result) { Py_DECREF(result); }
535 if (result) { Py_DECREF(result); }
536 Py_DECREF(obj);
536 Py_DECREF(obj);
537 return returnValue;
537 return returnValue;
538 } else {
538 } else {
539 PyErr_Clear();
539 PyErr_Clear();
540 }
540 }
541 }
541 }
542 return socexplorerplugin::dumpMemory(address0, count1, file2, format3);
542 return socexplorerplugin::dumpMemory(address0, count1, file2, format3);
543 }
543 }
544 void PythonQtShell_socexplorerplugin::enterEvent(QEvent* arg__1)
544 void PythonQtShell_socexplorerplugin::enterEvent(QEvent* arg__1)
545 {
545 {
546 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
546 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
547 static PyObject* name = PyString_FromString("enterEvent");
547 static PyObject* name = PyString_FromString("enterEvent");
548 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
548 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
549 if (obj) {
549 if (obj) {
550 static const char* argumentList[] ={"" , "QEvent*"};
550 static const char* argumentList[] ={"" , "QEvent*"};
551 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
551 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
552 void* args[2] = {NULL, (void*)&arg__1};
552 void* args[2] = {NULL, (void*)&arg__1};
553 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
553 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
554 if (result) { Py_DECREF(result); }
554 if (result) { Py_DECREF(result); }
555 Py_DECREF(obj);
555 Py_DECREF(obj);
556 return;
556 return;
557 } else {
557 } else {
558 PyErr_Clear();
558 PyErr_Clear();
559 }
559 }
560 }
560 }
561 socexplorerplugin::enterEvent(arg__1);
561 socexplorerplugin::enterEvent(arg__1);
562 }
562 }
563 bool PythonQtShell_socexplorerplugin::event(QEvent* event0)
563 bool PythonQtShell_socexplorerplugin::event(QEvent* event0)
564 {
564 {
565 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
565 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
566 static PyObject* name = PyString_FromString("event");
566 static PyObject* name = PyString_FromString("event");
567 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
567 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
568 if (obj) {
568 if (obj) {
569 static const char* argumentList[] ={"bool" , "QEvent*"};
569 static const char* argumentList[] ={"bool" , "QEvent*"};
570 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
570 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
571 bool returnValue;
571 bool returnValue;
572 void* args[2] = {NULL, (void*)&event0};
572 void* args[2] = {NULL, (void*)&event0};
573 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
573 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
574 if (result) {
574 if (result) {
575 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
575 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
576 if (args[0]!=&returnValue) {
576 if (args[0]!=&returnValue) {
577 if (args[0]==NULL) {
577 if (args[0]==NULL) {
578 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
578 PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
579 } else {
579 } else {
580 returnValue = *((bool*)args[0]);
580 returnValue = *((bool*)args[0]);
581 }
581 }
582 }
582 }
583 }
583 }
584 if (result) { Py_DECREF(result); }
584 if (result) { Py_DECREF(result); }
585 Py_DECREF(obj);
585 Py_DECREF(obj);
586 return returnValue;
586 return returnValue;
587 } else {
587 } else {
588 PyErr_Clear();
588 PyErr_Clear();
589 }
589 }
590 }
590 }
591 return socexplorerplugin::event(event0);
591 return socexplorerplugin::event(event0);
592 }
592 }
593 bool PythonQtShell_socexplorerplugin::eventFilter(QObject* arg__1, QEvent* arg__2)
593 bool PythonQtShell_socexplorerplugin::eventFilter(QObject* arg__1, QEvent* arg__2)
594 {
594 {
595 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
595 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
596 static PyObject* name = PyString_FromString("eventFilter");
596 static PyObject* name = PyString_FromString("eventFilter");
597 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
597 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
598 if (obj) {
598 if (obj) {
599 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
599 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
600 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
600 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
601 bool returnValue;
601 bool returnValue;
602 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
602 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
603 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
603 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
604 if (result) {
604 if (result) {
605 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
605 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
606 if (args[0]!=&returnValue) {
606 if (args[0]!=&returnValue) {
607 if (args[0]==NULL) {
607 if (args[0]==NULL) {
608 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
608 PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
609 } else {
609 } else {
610 returnValue = *((bool*)args[0]);
610 returnValue = *((bool*)args[0]);
611 }
611 }
612 }
612 }
613 }
613 }
614 if (result) { Py_DECREF(result); }
614 if (result) { Py_DECREF(result); }
615 Py_DECREF(obj);
615 Py_DECREF(obj);
616 return returnValue;
616 return returnValue;
617 } else {
617 } else {
618 PyErr_Clear();
618 PyErr_Clear();
619 }
619 }
620 }
620 }
621 return socexplorerplugin::eventFilter(arg__1, arg__2);
621 return socexplorerplugin::eventFilter(arg__1, arg__2);
622 }
622 }
623 void PythonQtShell_socexplorerplugin::focusInEvent(QFocusEvent* arg__1)
623 void PythonQtShell_socexplorerplugin::focusInEvent(QFocusEvent* arg__1)
624 {
624 {
625 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
625 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
626 static PyObject* name = PyString_FromString("focusInEvent");
626 static PyObject* name = PyString_FromString("focusInEvent");
627 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
627 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
628 if (obj) {
628 if (obj) {
629 static const char* argumentList[] ={"" , "QFocusEvent*"};
629 static const char* argumentList[] ={"" , "QFocusEvent*"};
630 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
630 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
631 void* args[2] = {NULL, (void*)&arg__1};
631 void* args[2] = {NULL, (void*)&arg__1};
632 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
632 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
633 if (result) { Py_DECREF(result); }
633 if (result) { Py_DECREF(result); }
634 Py_DECREF(obj);
634 Py_DECREF(obj);
635 return;
635 return;
636 } else {
636 } else {
637 PyErr_Clear();
637 PyErr_Clear();
638 }
638 }
639 }
639 }
640 socexplorerplugin::focusInEvent(arg__1);
640 socexplorerplugin::focusInEvent(arg__1);
641 }
641 }
642 bool PythonQtShell_socexplorerplugin::focusNextPrevChild(bool next0)
642 bool PythonQtShell_socexplorerplugin::focusNextPrevChild(bool next0)
643 {
643 {
644 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
644 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
645 static PyObject* name = PyString_FromString("focusNextPrevChild");
645 static PyObject* name = PyString_FromString("focusNextPrevChild");
646 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
646 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
647 if (obj) {
647 if (obj) {
648 static const char* argumentList[] ={"bool" , "bool"};
648 static const char* argumentList[] ={"bool" , "bool"};
649 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
649 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
650 bool returnValue;
650 bool returnValue;
651 void* args[2] = {NULL, (void*)&next0};
651 void* args[2] = {NULL, (void*)&next0};
652 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
652 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
653 if (result) {
653 if (result) {
654 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
654 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
655 if (args[0]!=&returnValue) {
655 if (args[0]!=&returnValue) {
656 if (args[0]==NULL) {
656 if (args[0]==NULL) {
657 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
657 PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result);
658 } else {
658 } else {
659 returnValue = *((bool*)args[0]);
659 returnValue = *((bool*)args[0]);
660 }
660 }
661 }
661 }
662 }
662 }
663 if (result) { Py_DECREF(result); }
663 if (result) { Py_DECREF(result); }
664 Py_DECREF(obj);
664 Py_DECREF(obj);
665 return returnValue;
665 return returnValue;
666 } else {
666 } else {
667 PyErr_Clear();
667 PyErr_Clear();
668 }
668 }
669 }
669 }
670 return socexplorerplugin::focusNextPrevChild(next0);
670 return socexplorerplugin::focusNextPrevChild(next0);
671 }
671 }
672 void PythonQtShell_socexplorerplugin::focusOutEvent(QFocusEvent* arg__1)
672 void PythonQtShell_socexplorerplugin::focusOutEvent(QFocusEvent* arg__1)
673 {
673 {
674 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
674 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
675 static PyObject* name = PyString_FromString("focusOutEvent");
675 static PyObject* name = PyString_FromString("focusOutEvent");
676 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
676 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
677 if (obj) {
677 if (obj) {
678 static const char* argumentList[] ={"" , "QFocusEvent*"};
678 static const char* argumentList[] ={"" , "QFocusEvent*"};
679 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
679 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
680 void* args[2] = {NULL, (void*)&arg__1};
680 void* args[2] = {NULL, (void*)&arg__1};
681 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
681 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
682 if (result) { Py_DECREF(result); }
682 if (result) { Py_DECREF(result); }
683 Py_DECREF(obj);
683 Py_DECREF(obj);
684 return;
684 return;
685 } else {
685 } else {
686 PyErr_Clear();
686 PyErr_Clear();
687 }
687 }
688 }
688 }
689 socexplorerplugin::focusOutEvent(arg__1);
689 socexplorerplugin::focusOutEvent(arg__1);
690 }
690 }
691 bool PythonQtShell_socexplorerplugin::hasHeightForWidth() const
691 bool PythonQtShell_socexplorerplugin::hasHeightForWidth() const
692 {
692 {
693 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
693 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
694 static PyObject* name = PyString_FromString("hasHeightForWidth");
694 static PyObject* name = PyString_FromString("hasHeightForWidth");
695 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
695 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
696 if (obj) {
696 if (obj) {
697 static const char* argumentList[] ={"bool"};
697 static const char* argumentList[] ={"bool"};
698 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
698 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
699 bool returnValue;
699 bool returnValue;
700 void* args[1] = {NULL};
700 void* args[1] = {NULL};
701 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
701 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
702 if (result) {
702 if (result) {
703 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
703 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
704 if (args[0]!=&returnValue) {
704 if (args[0]!=&returnValue) {
705 if (args[0]==NULL) {
705 if (args[0]==NULL) {
706 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
706 PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result);
707 } else {
707 } else {
708 returnValue = *((bool*)args[0]);
708 returnValue = *((bool*)args[0]);
709 }
709 }
710 }
710 }
711 }
711 }
712 if (result) { Py_DECREF(result); }
712 if (result) { Py_DECREF(result); }
713 Py_DECREF(obj);
713 Py_DECREF(obj);
714 return returnValue;
714 return returnValue;
715 } else {
715 } else {
716 PyErr_Clear();
716 PyErr_Clear();
717 }
717 }
718 }
718 }
719 return socexplorerplugin::hasHeightForWidth();
719 return socexplorerplugin::hasHeightForWidth();
720 }
720 }
721 int PythonQtShell_socexplorerplugin::heightForWidth(int arg__1) const
721 int PythonQtShell_socexplorerplugin::heightForWidth(int arg__1) const
722 {
722 {
723 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
723 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
724 static PyObject* name = PyString_FromString("heightForWidth");
724 static PyObject* name = PyString_FromString("heightForWidth");
725 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
725 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
726 if (obj) {
726 if (obj) {
727 static const char* argumentList[] ={"int" , "int"};
727 static const char* argumentList[] ={"int" , "int"};
728 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
728 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
729 int returnValue;
729 int returnValue;
730 void* args[2] = {NULL, (void*)&arg__1};
730 void* args[2] = {NULL, (void*)&arg__1};
731 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
731 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
732 if (result) {
732 if (result) {
733 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
733 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
734 if (args[0]!=&returnValue) {
734 if (args[0]!=&returnValue) {
735 if (args[0]==NULL) {
735 if (args[0]==NULL) {
736 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
736 PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result);
737 } else {
737 } else {
738 returnValue = *((int*)args[0]);
738 returnValue = *((int*)args[0]);
739 }
739 }
740 }
740 }
741 }
741 }
742 if (result) { Py_DECREF(result); }
742 if (result) { Py_DECREF(result); }
743 Py_DECREF(obj);
743 Py_DECREF(obj);
744 return returnValue;
744 return returnValue;
745 } else {
745 } else {
746 PyErr_Clear();
746 PyErr_Clear();
747 }
747 }
748 }
748 }
749 return socexplorerplugin::heightForWidth(arg__1);
749 return socexplorerplugin::heightForWidth(arg__1);
750 }
750 }
751 void PythonQtShell_socexplorerplugin::hideEvent(QHideEvent* arg__1)
751 void PythonQtShell_socexplorerplugin::hideEvent(QHideEvent* arg__1)
752 {
752 {
753 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
753 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
754 static PyObject* name = PyString_FromString("hideEvent");
754 static PyObject* name = PyString_FromString("hideEvent");
755 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
755 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
756 if (obj) {
756 if (obj) {
757 static const char* argumentList[] ={"" , "QHideEvent*"};
757 static const char* argumentList[] ={"" , "QHideEvent*"};
758 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
758 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
759 void* args[2] = {NULL, (void*)&arg__1};
759 void* args[2] = {NULL, (void*)&arg__1};
760 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
760 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
761 if (result) { Py_DECREF(result); }
761 if (result) { Py_DECREF(result); }
762 Py_DECREF(obj);
762 Py_DECREF(obj);
763 return;
763 return;
764 } else {
764 } else {
765 PyErr_Clear();
765 PyErr_Clear();
766 }
766 }
767 }
767 }
768 socexplorerplugin::hideEvent(arg__1);
768 socexplorerplugin::hideEvent(arg__1);
769 }
769 }
770 void PythonQtShell_socexplorerplugin::initPainter(QPainter* painter0) const
770 void PythonQtShell_socexplorerplugin::initPainter(QPainter* painter0) const
771 {
771 {
772 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
772 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
773 static PyObject* name = PyString_FromString("initPainter");
773 static PyObject* name = PyString_FromString("initPainter");
774 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
774 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
775 if (obj) {
775 if (obj) {
776 static const char* argumentList[] ={"" , "QPainter*"};
776 static const char* argumentList[] ={"" , "QPainter*"};
777 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
777 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
778 void* args[2] = {NULL, (void*)&painter0};
778 void* args[2] = {NULL, (void*)&painter0};
779 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
779 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
780 if (result) { Py_DECREF(result); }
780 if (result) { Py_DECREF(result); }
781 Py_DECREF(obj);
781 Py_DECREF(obj);
782 return;
782 return;
783 } else {
783 } else {
784 PyErr_Clear();
784 PyErr_Clear();
785 }
785 }
786 }
786 }
787 socexplorerplugin::initPainter(painter0);
787 socexplorerplugin::initPainter(painter0);
788 }
788 }
789 void PythonQtShell_socexplorerplugin::inputMethodEvent(QInputMethodEvent* arg__1)
789 void PythonQtShell_socexplorerplugin::inputMethodEvent(QInputMethodEvent* arg__1)
790 {
790 {
791 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
791 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
792 static PyObject* name = PyString_FromString("inputMethodEvent");
792 static PyObject* name = PyString_FromString("inputMethodEvent");
793 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
793 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
794 if (obj) {
794 if (obj) {
795 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
795 static const char* argumentList[] ={"" , "QInputMethodEvent*"};
796 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
796 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
797 void* args[2] = {NULL, (void*)&arg__1};
797 void* args[2] = {NULL, (void*)&arg__1};
798 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
798 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
799 if (result) { Py_DECREF(result); }
799 if (result) { Py_DECREF(result); }
800 Py_DECREF(obj);
800 Py_DECREF(obj);
801 return;
801 return;
802 } else {
802 } else {
803 PyErr_Clear();
803 PyErr_Clear();
804 }
804 }
805 }
805 }
806 socexplorerplugin::inputMethodEvent(arg__1);
806 socexplorerplugin::inputMethodEvent(arg__1);
807 }
807 }
808 QVariant PythonQtShell_socexplorerplugin::inputMethodQuery(Qt::InputMethodQuery arg__1) const
808 QVariant PythonQtShell_socexplorerplugin::inputMethodQuery(Qt::InputMethodQuery arg__1) const
809 {
809 {
810 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
810 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
811 static PyObject* name = PyString_FromString("inputMethodQuery");
811 static PyObject* name = PyString_FromString("inputMethodQuery");
812 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
812 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
813 if (obj) {
813 if (obj) {
814 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
814 static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"};
815 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
815 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
816 QVariant returnValue;
816 QVariant returnValue;
817 void* args[2] = {NULL, (void*)&arg__1};
817 void* args[2] = {NULL, (void*)&arg__1};
818 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
818 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
819 if (result) {
819 if (result) {
820 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
820 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
821 if (args[0]!=&returnValue) {
821 if (args[0]!=&returnValue) {
822 if (args[0]==NULL) {
822 if (args[0]==NULL) {
823 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
823 PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result);
824 } else {
824 } else {
825 returnValue = *((QVariant*)args[0]);
825 returnValue = *((QVariant*)args[0]);
826 }
826 }
827 }
827 }
828 }
828 }
829 if (result) { Py_DECREF(result); }
829 if (result) { Py_DECREF(result); }
830 Py_DECREF(obj);
830 Py_DECREF(obj);
831 return returnValue;
831 return returnValue;
832 } else {
832 } else {
833 PyErr_Clear();
833 PyErr_Clear();
834 }
834 }
835 }
835 }
836 return socexplorerplugin::inputMethodQuery(arg__1);
836 return socexplorerplugin::inputMethodQuery(arg__1);
837 }
837 }
838 int PythonQtShell_socexplorerplugin::isConnected()
838 int PythonQtShell_socexplorerplugin::isConnected()
839 {
839 {
840 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
840 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
841 static PyObject* name = PyString_FromString("isConnected");
841 static PyObject* name = PyString_FromString("isConnected");
842 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
842 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
843 if (obj) {
843 if (obj) {
844 static const char* argumentList[] ={"int"};
844 static const char* argumentList[] ={"int"};
845 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
845 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
846 int returnValue;
846 int returnValue;
847 void* args[1] = {NULL};
847 void* args[1] = {NULL};
848 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
848 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
849 if (result) {
849 if (result) {
850 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
850 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
851 if (args[0]!=&returnValue) {
851 if (args[0]!=&returnValue) {
852 if (args[0]==NULL) {
852 if (args[0]==NULL) {
853 PythonQt::priv()->handleVirtualOverloadReturnError("isConnected", methodInfo, result);
853 PythonQt::priv()->handleVirtualOverloadReturnError("isConnected", methodInfo, result);
854 } else {
854 } else {
855 returnValue = *((int*)args[0]);
855 returnValue = *((int*)args[0]);
856 }
856 }
857 }
857 }
858 }
858 }
859 if (result) { Py_DECREF(result); }
859 if (result) { Py_DECREF(result); }
860 Py_DECREF(obj);
860 Py_DECREF(obj);
861 return returnValue;
861 return returnValue;
862 } else {
862 } else {
863 PyErr_Clear();
863 PyErr_Clear();
864 }
864 }
865 }
865 }
866 return socexplorerplugin::isConnected();
866 return socexplorerplugin::isConnected();
867 }
867 }
868 void PythonQtShell_socexplorerplugin::keyPressEvent(QKeyEvent* arg__1)
868 void PythonQtShell_socexplorerplugin::keyPressEvent(QKeyEvent* arg__1)
869 {
869 {
870 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
870 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
871 static PyObject* name = PyString_FromString("keyPressEvent");
871 static PyObject* name = PyString_FromString("keyPressEvent");
872 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
872 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
873 if (obj) {
873 if (obj) {
874 static const char* argumentList[] ={"" , "QKeyEvent*"};
874 static const char* argumentList[] ={"" , "QKeyEvent*"};
875 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
875 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
876 void* args[2] = {NULL, (void*)&arg__1};
876 void* args[2] = {NULL, (void*)&arg__1};
877 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
877 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
878 if (result) { Py_DECREF(result); }
878 if (result) { Py_DECREF(result); }
879 Py_DECREF(obj);
879 Py_DECREF(obj);
880 return;
880 return;
881 } else {
881 } else {
882 PyErr_Clear();
882 PyErr_Clear();
883 }
883 }
884 }
884 }
885 socexplorerplugin::keyPressEvent(arg__1);
885 socexplorerplugin::keyPressEvent(arg__1);
886 }
886 }
887 void PythonQtShell_socexplorerplugin::keyReleaseEvent(QKeyEvent* arg__1)
887 void PythonQtShell_socexplorerplugin::keyReleaseEvent(QKeyEvent* arg__1)
888 {
888 {
889 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
889 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
890 static PyObject* name = PyString_FromString("keyReleaseEvent");
890 static PyObject* name = PyString_FromString("keyReleaseEvent");
891 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
891 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
892 if (obj) {
892 if (obj) {
893 static const char* argumentList[] ={"" , "QKeyEvent*"};
893 static const char* argumentList[] ={"" , "QKeyEvent*"};
894 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
894 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
895 void* args[2] = {NULL, (void*)&arg__1};
895 void* args[2] = {NULL, (void*)&arg__1};
896 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
896 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
897 if (result) { Py_DECREF(result); }
897 if (result) { Py_DECREF(result); }
898 Py_DECREF(obj);
898 Py_DECREF(obj);
899 return;
899 return;
900 } else {
900 } else {
901 PyErr_Clear();
901 PyErr_Clear();
902 }
902 }
903 }
903 }
904 socexplorerplugin::keyReleaseEvent(arg__1);
904 socexplorerplugin::keyReleaseEvent(arg__1);
905 }
905 }
906 void PythonQtShell_socexplorerplugin::leaveEvent(QEvent* arg__1)
906 void PythonQtShell_socexplorerplugin::leaveEvent(QEvent* arg__1)
907 {
907 {
908 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
908 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
909 static PyObject* name = PyString_FromString("leaveEvent");
909 static PyObject* name = PyString_FromString("leaveEvent");
910 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
910 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
911 if (obj) {
911 if (obj) {
912 static const char* argumentList[] ={"" , "QEvent*"};
912 static const char* argumentList[] ={"" , "QEvent*"};
913 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
913 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
914 void* args[2] = {NULL, (void*)&arg__1};
914 void* args[2] = {NULL, (void*)&arg__1};
915 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
915 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
916 if (result) { Py_DECREF(result); }
916 if (result) { Py_DECREF(result); }
917 Py_DECREF(obj);
917 Py_DECREF(obj);
918 return;
918 return;
919 } else {
919 } else {
920 PyErr_Clear();
920 PyErr_Clear();
921 }
921 }
922 }
922 }
923 socexplorerplugin::leaveEvent(arg__1);
923 socexplorerplugin::leaveEvent(arg__1);
924 }
924 }
925 bool PythonQtShell_socexplorerplugin::loadbin(unsigned int address0, QString file1)
925 bool PythonQtShell_socexplorerplugin::loadbin(unsigned int address0, QString file1)
926 {
926 {
927 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
927 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
928 static PyObject* name = PyString_FromString("loadbin");
928 static PyObject* name = PyString_FromString("loadbin");
929 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
929 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
930 if (obj) {
930 if (obj) {
931 static const char* argumentList[] ={"bool" , "unsigned int" , "QString"};
931 static const char* argumentList[] ={"bool" , "unsigned int" , "QString"};
932 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
932 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
933 bool returnValue;
933 bool returnValue;
934 void* args[3] = {NULL, (void*)&address0, (void*)&file1};
934 void* args[3] = {NULL, (void*)&address0, (void*)&file1};
935 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
935 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
936 if (result) {
936 if (result) {
937 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
937 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
938 if (args[0]!=&returnValue) {
938 if (args[0]!=&returnValue) {
939 if (args[0]==NULL) {
939 if (args[0]==NULL) {
940 PythonQt::priv()->handleVirtualOverloadReturnError("loadbin", methodInfo, result);
940 PythonQt::priv()->handleVirtualOverloadReturnError("loadbin", methodInfo, result);
941 } else {
941 } else {
942 returnValue = *((bool*)args[0]);
942 returnValue = *((bool*)args[0]);
943 }
943 }
944 }
944 }
945 }
945 }
946 if (result) { Py_DECREF(result); }
946 if (result) { Py_DECREF(result); }
947 Py_DECREF(obj);
947 Py_DECREF(obj);
948 return returnValue;
948 return returnValue;
949 } else {
949 } else {
950 PyErr_Clear();
950 PyErr_Clear();
951 }
951 }
952 }
952 }
953 return socexplorerplugin::loadbin(address0, file1);
953 return socexplorerplugin::loadbin(address0, file1);
954 }
954 }
955 bool PythonQtShell_socexplorerplugin::memSet(unsigned int address0, int value1, unsigned int count2)
955 bool PythonQtShell_socexplorerplugin::memSet(unsigned int address0, int value1, unsigned int count2)
956 {
956 {
957 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
957 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
958 static PyObject* name = PyString_FromString("memSet");
958 static PyObject* name = PyString_FromString("memSet");
959 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
959 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
960 if (obj) {
960 if (obj) {
961 static const char* argumentList[] ={"bool" , "unsigned int" , "int" , "unsigned int"};
961 static const char* argumentList[] ={"bool" , "unsigned int" , "int" , "unsigned int"};
962 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
962 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
963 bool returnValue;
963 bool returnValue;
964 void* args[4] = {NULL, (void*)&address0, (void*)&value1, (void*)&count2};
964 void* args[4] = {NULL, (void*)&address0, (void*)&value1, (void*)&count2};
965 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
965 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
966 if (result) {
966 if (result) {
967 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
967 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
968 if (args[0]!=&returnValue) {
968 if (args[0]!=&returnValue) {
969 if (args[0]==NULL) {
969 if (args[0]==NULL) {
970 PythonQt::priv()->handleVirtualOverloadReturnError("memSet", methodInfo, result);
970 PythonQt::priv()->handleVirtualOverloadReturnError("memSet", methodInfo, result);
971 } else {
971 } else {
972 returnValue = *((bool*)args[0]);
972 returnValue = *((bool*)args[0]);
973 }
973 }
974 }
974 }
975 }
975 }
976 if (result) { Py_DECREF(result); }
976 if (result) { Py_DECREF(result); }
977 Py_DECREF(obj);
977 Py_DECREF(obj);
978 return returnValue;
978 return returnValue;
979 } else {
979 } else {
980 PyErr_Clear();
980 PyErr_Clear();
981 }
981 }
982 }
982 }
983 return socexplorerplugin::memSet(address0, value1, count2);
983 return socexplorerplugin::memSet(address0, value1, count2);
984 }
984 }
985 int PythonQtShell_socexplorerplugin::metric(QPaintDevice::PaintDeviceMetric arg__1) const
985 int PythonQtShell_socexplorerplugin::metric(QPaintDevice::PaintDeviceMetric arg__1) const
986 {
986 {
987 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
987 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
988 static PyObject* name = PyString_FromString("metric");
988 static PyObject* name = PyString_FromString("metric");
989 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
989 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
990 if (obj) {
990 if (obj) {
991 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
991 static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"};
992 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
992 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
993 int returnValue;
993 int returnValue;
994 void* args[2] = {NULL, (void*)&arg__1};
994 void* args[2] = {NULL, (void*)&arg__1};
995 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
995 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
996 if (result) {
996 if (result) {
997 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
997 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
998 if (args[0]!=&returnValue) {
998 if (args[0]!=&returnValue) {
999 if (args[0]==NULL) {
999 if (args[0]==NULL) {
1000 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
1000 PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result);
1001 } else {
1001 } else {
1002 returnValue = *((int*)args[0]);
1002 returnValue = *((int*)args[0]);
1003 }
1003 }
1004 }
1004 }
1005 }
1005 }
1006 if (result) { Py_DECREF(result); }
1006 if (result) { Py_DECREF(result); }
1007 Py_DECREF(obj);
1007 Py_DECREF(obj);
1008 return returnValue;
1008 return returnValue;
1009 } else {
1009 } else {
1010 PyErr_Clear();
1010 PyErr_Clear();
1011 }
1011 }
1012 }
1012 }
1013 return socexplorerplugin::metric(arg__1);
1013 return socexplorerplugin::metric(arg__1);
1014 }
1014 }
1015 QSize PythonQtShell_socexplorerplugin::minimumSizeHint() const
1015 QSize PythonQtShell_socexplorerplugin::minimumSizeHint() const
1016 {
1016 {
1017 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1017 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1018 static PyObject* name = PyString_FromString("getMinimumSizeHint");
1018 static PyObject* name = PyString_FromString("getMinimumSizeHint");
1019 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1019 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1020 if (obj) {
1020 if (obj) {
1021 static const char* argumentList[] ={"QSize"};
1021 static const char* argumentList[] ={"QSize"};
1022 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1022 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1023 QSize returnValue;
1023 QSize returnValue;
1024 void* args[1] = {NULL};
1024 void* args[1] = {NULL};
1025 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1025 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1026 if (result) {
1026 if (result) {
1027 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1027 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1028 if (args[0]!=&returnValue) {
1028 if (args[0]!=&returnValue) {
1029 if (args[0]==NULL) {
1029 if (args[0]==NULL) {
1030 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
1030 PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result);
1031 } else {
1031 } else {
1032 returnValue = *((QSize*)args[0]);
1032 returnValue = *((QSize*)args[0]);
1033 }
1033 }
1034 }
1034 }
1035 }
1035 }
1036 if (result) { Py_DECREF(result); }
1036 if (result) { Py_DECREF(result); }
1037 Py_DECREF(obj);
1037 Py_DECREF(obj);
1038 return returnValue;
1038 return returnValue;
1039 } else {
1039 } else {
1040 PyErr_Clear();
1040 PyErr_Clear();
1041 }
1041 }
1042 }
1042 }
1043 return socexplorerplugin::minimumSizeHint();
1043 return socexplorerplugin::minimumSizeHint();
1044 }
1044 }
1045 void PythonQtShell_socexplorerplugin::mouseDoubleClickEvent(QMouseEvent* arg__1)
1045 void PythonQtShell_socexplorerplugin::mouseDoubleClickEvent(QMouseEvent* arg__1)
1046 {
1046 {
1047 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1047 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1048 static PyObject* name = PyString_FromString("mouseDoubleClickEvent");
1048 static PyObject* name = PyString_FromString("mouseDoubleClickEvent");
1049 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1049 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1050 if (obj) {
1050 if (obj) {
1051 static const char* argumentList[] ={"" , "QMouseEvent*"};
1051 static const char* argumentList[] ={"" , "QMouseEvent*"};
1052 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1052 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1053 void* args[2] = {NULL, (void*)&arg__1};
1053 void* args[2] = {NULL, (void*)&arg__1};
1054 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1054 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1055 if (result) { Py_DECREF(result); }
1055 if (result) { Py_DECREF(result); }
1056 Py_DECREF(obj);
1056 Py_DECREF(obj);
1057 return;
1057 return;
1058 } else {
1058 } else {
1059 PyErr_Clear();
1059 PyErr_Clear();
1060 }
1060 }
1061 }
1061 }
1062 socexplorerplugin::mouseDoubleClickEvent(arg__1);
1062 socexplorerplugin::mouseDoubleClickEvent(arg__1);
1063 }
1063 }
1064 void PythonQtShell_socexplorerplugin::mouseMoveEvent(QMouseEvent* arg__1)
1064 void PythonQtShell_socexplorerplugin::mouseMoveEvent(QMouseEvent* arg__1)
1065 {
1065 {
1066 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1066 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1067 static PyObject* name = PyString_FromString("mouseMoveEvent");
1067 static PyObject* name = PyString_FromString("mouseMoveEvent");
1068 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1068 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1069 if (obj) {
1069 if (obj) {
1070 static const char* argumentList[] ={"" , "QMouseEvent*"};
1070 static const char* argumentList[] ={"" , "QMouseEvent*"};
1071 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1071 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1072 void* args[2] = {NULL, (void*)&arg__1};
1072 void* args[2] = {NULL, (void*)&arg__1};
1073 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1073 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1074 if (result) { Py_DECREF(result); }
1074 if (result) { Py_DECREF(result); }
1075 Py_DECREF(obj);
1075 Py_DECREF(obj);
1076 return;
1076 return;
1077 } else {
1077 } else {
1078 PyErr_Clear();
1078 PyErr_Clear();
1079 }
1079 }
1080 }
1080 }
1081 socexplorerplugin::mouseMoveEvent(arg__1);
1081 socexplorerplugin::mouseMoveEvent(arg__1);
1082 }
1082 }
1083 void PythonQtShell_socexplorerplugin::mousePressEvent(QMouseEvent* arg__1)
1083 void PythonQtShell_socexplorerplugin::mousePressEvent(QMouseEvent* arg__1)
1084 {
1084 {
1085 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1085 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1086 static PyObject* name = PyString_FromString("mousePressEvent");
1086 static PyObject* name = PyString_FromString("mousePressEvent");
1087 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1087 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1088 if (obj) {
1088 if (obj) {
1089 static const char* argumentList[] ={"" , "QMouseEvent*"};
1089 static const char* argumentList[] ={"" , "QMouseEvent*"};
1090 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1090 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1091 void* args[2] = {NULL, (void*)&arg__1};
1091 void* args[2] = {NULL, (void*)&arg__1};
1092 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1092 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1093 if (result) { Py_DECREF(result); }
1093 if (result) { Py_DECREF(result); }
1094 Py_DECREF(obj);
1094 Py_DECREF(obj);
1095 return;
1095 return;
1096 } else {
1096 } else {
1097 PyErr_Clear();
1097 PyErr_Clear();
1098 }
1098 }
1099 }
1099 }
1100 socexplorerplugin::mousePressEvent(arg__1);
1100 socexplorerplugin::mousePressEvent(arg__1);
1101 }
1101 }
1102 void PythonQtShell_socexplorerplugin::mouseReleaseEvent(QMouseEvent* arg__1)
1102 void PythonQtShell_socexplorerplugin::mouseReleaseEvent(QMouseEvent* arg__1)
1103 {
1103 {
1104 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1104 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1105 static PyObject* name = PyString_FromString("mouseReleaseEvent");
1105 static PyObject* name = PyString_FromString("mouseReleaseEvent");
1106 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1106 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1107 if (obj) {
1107 if (obj) {
1108 static const char* argumentList[] ={"" , "QMouseEvent*"};
1108 static const char* argumentList[] ={"" , "QMouseEvent*"};
1109 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1109 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1110 void* args[2] = {NULL, (void*)&arg__1};
1110 void* args[2] = {NULL, (void*)&arg__1};
1111 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1111 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1112 if (result) { Py_DECREF(result); }
1112 if (result) { Py_DECREF(result); }
1113 Py_DECREF(obj);
1113 Py_DECREF(obj);
1114 return;
1114 return;
1115 } else {
1115 } else {
1116 PyErr_Clear();
1116 PyErr_Clear();
1117 }
1117 }
1118 }
1118 }
1119 socexplorerplugin::mouseReleaseEvent(arg__1);
1119 socexplorerplugin::mouseReleaseEvent(arg__1);
1120 }
1120 }
1121 void PythonQtShell_socexplorerplugin::moveEvent(QMoveEvent* arg__1)
1121 void PythonQtShell_socexplorerplugin::moveEvent(QMoveEvent* arg__1)
1122 {
1122 {
1123 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1123 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1124 static PyObject* name = PyString_FromString("moveEvent");
1124 static PyObject* name = PyString_FromString("moveEvent");
1125 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1125 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1126 if (obj) {
1126 if (obj) {
1127 static const char* argumentList[] ={"" , "QMoveEvent*"};
1127 static const char* argumentList[] ={"" , "QMoveEvent*"};
1128 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1128 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1129 void* args[2] = {NULL, (void*)&arg__1};
1129 void* args[2] = {NULL, (void*)&arg__1};
1130 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1130 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1131 if (result) { Py_DECREF(result); }
1131 if (result) { Py_DECREF(result); }
1132 Py_DECREF(obj);
1132 Py_DECREF(obj);
1133 return;
1133 return;
1134 } else {
1134 } else {
1135 PyErr_Clear();
1135 PyErr_Clear();
1136 }
1136 }
1137 }
1137 }
1138 socexplorerplugin::moveEvent(arg__1);
1138 socexplorerplugin::moveEvent(arg__1);
1139 }
1139 }
1140 bool PythonQtShell_socexplorerplugin::nativeEvent(const QByteArray& eventType0, void* message1, long* result2)
1140 bool PythonQtShell_socexplorerplugin::nativeEvent(const QByteArray& eventType0, void* message1, long* result2)
1141 {
1141 {
1142 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1142 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1143 static PyObject* name = PyString_FromString("nativeEvent");
1143 static PyObject* name = PyString_FromString("nativeEvent");
1144 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1144 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1145 if (obj) {
1145 if (obj) {
1146 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
1146 static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"};
1147 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
1147 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
1148 bool returnValue;
1148 bool returnValue;
1149 void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2};
1149 void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2};
1150 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1150 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1151 if (result) {
1151 if (result) {
1152 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1152 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1153 if (args[0]!=&returnValue) {
1153 if (args[0]!=&returnValue) {
1154 if (args[0]==NULL) {
1154 if (args[0]==NULL) {
1155 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
1155 PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result);
1156 } else {
1156 } else {
1157 returnValue = *((bool*)args[0]);
1157 returnValue = *((bool*)args[0]);
1158 }
1158 }
1159 }
1159 }
1160 }
1160 }
1161 if (result) { Py_DECREF(result); }
1161 if (result) { Py_DECREF(result); }
1162 Py_DECREF(obj);
1162 Py_DECREF(obj);
1163 return returnValue;
1163 return returnValue;
1164 } else {
1164 } else {
1165 PyErr_Clear();
1165 PyErr_Clear();
1166 }
1166 }
1167 }
1167 }
1168 return socexplorerplugin::nativeEvent(eventType0, message1, result2);
1168 return socexplorerplugin::nativeEvent(eventType0, message1, result2);
1169 }
1169 }
1170 QPaintEngine* PythonQtShell_socexplorerplugin::paintEngine() const
1170 QPaintEngine* PythonQtShell_socexplorerplugin::paintEngine() const
1171 {
1171 {
1172 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1172 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1173 static PyObject* name = PyString_FromString("paintEngine");
1173 static PyObject* name = PyString_FromString("paintEngine");
1174 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1174 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1175 if (obj) {
1175 if (obj) {
1176 static const char* argumentList[] ={"QPaintEngine*"};
1176 static const char* argumentList[] ={"QPaintEngine*"};
1177 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1177 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1178 QPaintEngine* returnValue;
1178 QPaintEngine* returnValue;
1179 void* args[1] = {NULL};
1179 void* args[1] = {NULL};
1180 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1180 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1181 if (result) {
1181 if (result) {
1182 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1182 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1183 if (args[0]!=&returnValue) {
1183 if (args[0]!=&returnValue) {
1184 if (args[0]==NULL) {
1184 if (args[0]==NULL) {
1185 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
1185 PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result);
1186 } else {
1186 } else {
1187 returnValue = *((QPaintEngine**)args[0]);
1187 returnValue = *((QPaintEngine**)args[0]);
1188 }
1188 }
1189 }
1189 }
1190 }
1190 }
1191 if (result) { Py_DECREF(result); }
1191 if (result) { Py_DECREF(result); }
1192 Py_DECREF(obj);
1192 Py_DECREF(obj);
1193 return returnValue;
1193 return returnValue;
1194 } else {
1194 } else {
1195 PyErr_Clear();
1195 PyErr_Clear();
1196 }
1196 }
1197 }
1197 }
1198 return socexplorerplugin::paintEngine();
1198 return socexplorerplugin::paintEngine();
1199 }
1199 }
1200 void PythonQtShell_socexplorerplugin::paintEvent(QPaintEvent* event0)
1200 void PythonQtShell_socexplorerplugin::paintEvent(QPaintEvent* event0)
1201 {
1201 {
1202 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1202 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1203 static PyObject* name = PyString_FromString("paintEvent");
1203 static PyObject* name = PyString_FromString("paintEvent");
1204 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1204 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1205 if (obj) {
1205 if (obj) {
1206 static const char* argumentList[] ={"" , "QPaintEvent*"};
1206 static const char* argumentList[] ={"" , "QPaintEvent*"};
1207 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1207 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1208 void* args[2] = {NULL, (void*)&event0};
1208 void* args[2] = {NULL, (void*)&event0};
1209 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1209 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1210 if (result) { Py_DECREF(result); }
1210 if (result) { Py_DECREF(result); }
1211 Py_DECREF(obj);
1211 Py_DECREF(obj);
1212 return;
1212 return;
1213 } else {
1213 } else {
1214 PyErr_Clear();
1214 PyErr_Clear();
1215 }
1215 }
1216 }
1216 }
1217 socexplorerplugin::paintEvent(event0);
1217 socexplorerplugin::paintEvent(event0);
1218 }
1218 }
1219 void PythonQtShell_socexplorerplugin::postInstantiationTrigger()
1219 void PythonQtShell_socexplorerplugin::postInstantiationTrigger()
1220 {
1220 {
1221 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1221 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1222 static PyObject* name = PyString_FromString("postInstantiationTrigger");
1222 static PyObject* name = PyString_FromString("postInstantiationTrigger");
1223 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1223 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1224 if (obj) {
1224 if (obj) {
1225 static const char* argumentList[] ={""};
1225 static const char* argumentList[] ={""};
1226 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1226 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1227 void* args[1] = {NULL};
1227 void* args[1] = {NULL};
1228 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1228 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1229 if (result) { Py_DECREF(result); }
1229 if (result) { Py_DECREF(result); }
1230 Py_DECREF(obj);
1230 Py_DECREF(obj);
1231 return;
1231 return;
1232 } else {
1232 } else {
1233 PyErr_Clear();
1233 PyErr_Clear();
1234 }
1234 }
1235 }
1235 }
1236 socexplorerplugin::postInstantiationTrigger();
1236 socexplorerplugin::postInstantiationTrigger();
1237 }
1237 }
1238 QPaintDevice* PythonQtShell_socexplorerplugin::redirected(QPoint* offset0) const
1238 QPaintDevice* PythonQtShell_socexplorerplugin::redirected(QPoint* offset0) const
1239 {
1239 {
1240 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1240 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1241 static PyObject* name = PyString_FromString("redirected");
1241 static PyObject* name = PyString_FromString("redirected");
1242 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1242 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1243 if (obj) {
1243 if (obj) {
1244 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
1244 static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"};
1245 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1245 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1246 QPaintDevice* returnValue;
1246 QPaintDevice* returnValue;
1247 void* args[2] = {NULL, (void*)&offset0};
1247 void* args[2] = {NULL, (void*)&offset0};
1248 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1248 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1249 if (result) {
1249 if (result) {
1250 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1250 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1251 if (args[0]!=&returnValue) {
1251 if (args[0]!=&returnValue) {
1252 if (args[0]==NULL) {
1252 if (args[0]==NULL) {
1253 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
1253 PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result);
1254 } else {
1254 } else {
1255 returnValue = *((QPaintDevice**)args[0]);
1255 returnValue = *((QPaintDevice**)args[0]);
1256 }
1256 }
1257 }
1257 }
1258 }
1258 }
1259 if (result) { Py_DECREF(result); }
1259 if (result) { Py_DECREF(result); }
1260 Py_DECREF(obj);
1260 Py_DECREF(obj);
1261 return returnValue;
1261 return returnValue;
1262 } else {
1262 } else {
1263 PyErr_Clear();
1263 PyErr_Clear();
1264 }
1264 }
1265 }
1265 }
1266 return socexplorerplugin::redirected(offset0);
1266 return socexplorerplugin::redirected(offset0);
1267 }
1267 }
1268 int PythonQtShell_socexplorerplugin::registermenu(QMenu* menu0)
1268 int PythonQtShell_socexplorerplugin::registermenu(QMenu* menu0)
1269 {
1269 {
1270 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1270 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1271 static PyObject* name = PyString_FromString("registermenu");
1271 static PyObject* name = PyString_FromString("registermenu");
1272 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1272 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1273 if (obj) {
1273 if (obj) {
1274 static const char* argumentList[] ={"int" , "QMenu*"};
1274 static const char* argumentList[] ={"int" , "QMenu*"};
1275 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1275 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1276 int returnValue;
1276 int returnValue;
1277 void* args[2] = {NULL, (void*)&menu0};
1277 void* args[2] = {NULL, (void*)&menu0};
1278 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1278 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1279 if (result) {
1279 if (result) {
1280 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1280 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1281 if (args[0]!=&returnValue) {
1281 if (args[0]!=&returnValue) {
1282 if (args[0]==NULL) {
1282 if (args[0]==NULL) {
1283 PythonQt::priv()->handleVirtualOverloadReturnError("registermenu", methodInfo, result);
1283 PythonQt::priv()->handleVirtualOverloadReturnError("registermenu", methodInfo, result);
1284 } else {
1284 } else {
1285 returnValue = *((int*)args[0]);
1285 returnValue = *((int*)args[0]);
1286 }
1286 }
1287 }
1287 }
1288 }
1288 }
1289 if (result) { Py_DECREF(result); }
1289 if (result) { Py_DECREF(result); }
1290 Py_DECREF(obj);
1290 Py_DECREF(obj);
1291 return returnValue;
1291 return returnValue;
1292 } else {
1292 } else {
1293 PyErr_Clear();
1293 PyErr_Clear();
1294 }
1294 }
1295 }
1295 }
1296 return socexplorerplugin::registermenu(menu0);
1296 return socexplorerplugin::registermenu(menu0);
1297 }
1297 }
1298 void PythonQtShell_socexplorerplugin::resizeEvent(QResizeEvent* arg__1)
1298 void PythonQtShell_socexplorerplugin::resizeEvent(QResizeEvent* arg__1)
1299 {
1299 {
1300 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1300 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1301 static PyObject* name = PyString_FromString("resizeEvent");
1301 static PyObject* name = PyString_FromString("resizeEvent");
1302 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1302 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1303 if (obj) {
1303 if (obj) {
1304 static const char* argumentList[] ={"" , "QResizeEvent*"};
1304 static const char* argumentList[] ={"" , "QResizeEvent*"};
1305 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1305 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1306 void* args[2] = {NULL, (void*)&arg__1};
1306 void* args[2] = {NULL, (void*)&arg__1};
1307 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1307 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1308 if (result) { Py_DECREF(result); }
1308 if (result) { Py_DECREF(result); }
1309 Py_DECREF(obj);
1309 Py_DECREF(obj);
1310 return;
1310 return;
1311 } else {
1311 } else {
1312 PyErr_Clear();
1312 PyErr_Clear();
1313 }
1313 }
1314 }
1314 }
1315 socexplorerplugin::resizeEvent(arg__1);
1315 socexplorerplugin::resizeEvent(arg__1);
1316 }
1316 }
1317 void PythonQtShell_socexplorerplugin::setBaseAddress(unsigned int baseAddress0)
1317 void PythonQtShell_socexplorerplugin::setBaseAddress(unsigned int baseAddress0)
1318 {
1318 {
1319 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1319 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1320 static PyObject* name = PyString_FromString("setBaseAddress");
1320 static PyObject* name = PyString_FromString("setBaseAddress");
1321 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1321 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1322 if (obj) {
1322 if (obj) {
1323 static const char* argumentList[] ={"" , "unsigned int"};
1323 static const char* argumentList[] ={"" , "unsigned int"};
1324 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1324 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1325 void* args[2] = {NULL, (void*)&baseAddress0};
1325 void* args[2] = {NULL, (void*)&baseAddress0};
1326 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1326 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1327 if (result) { Py_DECREF(result); }
1327 if (result) { Py_DECREF(result); }
1328 Py_DECREF(obj);
1328 Py_DECREF(obj);
1329 return;
1329 return;
1330 } else {
1330 } else {
1331 PyErr_Clear();
1331 PyErr_Clear();
1332 }
1332 }
1333 }
1333 }
1334 socexplorerplugin::setBaseAddress(baseAddress0);
1334 socexplorerplugin::setBaseAddress(baseAddress0);
1335 }
1335 }
1336 void PythonQtShell_socexplorerplugin::setInstanceName(const QString& newName0)
1336 void PythonQtShell_socexplorerplugin::setInstanceName(const QString& newName0)
1337 {
1337 {
1338 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1338 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1339 static PyObject* name = PyString_FromString("setInstanceName");
1339 static PyObject* name = PyString_FromString("setInstanceName");
1340 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1340 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1341 if (obj) {
1341 if (obj) {
1342 static const char* argumentList[] ={"" , "const QString&"};
1342 static const char* argumentList[] ={"" , "const QString&"};
1343 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1343 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1344 void* args[2] = {NULL, (void*)&newName0};
1344 void* args[2] = {NULL, (void*)&newName0};
1345 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1345 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1346 if (result) { Py_DECREF(result); }
1346 if (result) { Py_DECREF(result); }
1347 Py_DECREF(obj);
1347 Py_DECREF(obj);
1348 return;
1348 return;
1349 } else {
1349 } else {
1350 PyErr_Clear();
1350 PyErr_Clear();
1351 }
1351 }
1352 }
1352 }
1353 socexplorerplugin::setInstanceName(newName0);
1353 socexplorerplugin::setInstanceName(newName0);
1354 }
1354 }
1355 QPainter* PythonQtShell_socexplorerplugin::sharedPainter() const
1355 QPainter* PythonQtShell_socexplorerplugin::sharedPainter() const
1356 {
1356 {
1357 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1357 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1358 static PyObject* name = PyString_FromString("sharedPainter");
1358 static PyObject* name = PyString_FromString("sharedPainter");
1359 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1359 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1360 if (obj) {
1360 if (obj) {
1361 static const char* argumentList[] ={"QPainter*"};
1361 static const char* argumentList[] ={"QPainter*"};
1362 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1362 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1363 QPainter* returnValue;
1363 QPainter* returnValue;
1364 void* args[1] = {NULL};
1364 void* args[1] = {NULL};
1365 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1365 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1366 if (result) {
1366 if (result) {
1367 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1367 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1368 if (args[0]!=&returnValue) {
1368 if (args[0]!=&returnValue) {
1369 if (args[0]==NULL) {
1369 if (args[0]==NULL) {
1370 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
1370 PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result);
1371 } else {
1371 } else {
1372 returnValue = *((QPainter**)args[0]);
1372 returnValue = *((QPainter**)args[0]);
1373 }
1373 }
1374 }
1374 }
1375 }
1375 }
1376 if (result) { Py_DECREF(result); }
1376 if (result) { Py_DECREF(result); }
1377 Py_DECREF(obj);
1377 Py_DECREF(obj);
1378 return returnValue;
1378 return returnValue;
1379 } else {
1379 } else {
1380 PyErr_Clear();
1380 PyErr_Clear();
1381 }
1381 }
1382 }
1382 }
1383 return socexplorerplugin::sharedPainter();
1383 return socexplorerplugin::sharedPainter();
1384 }
1384 }
1385 void PythonQtShell_socexplorerplugin::showEvent(QShowEvent* arg__1)
1385 void PythonQtShell_socexplorerplugin::showEvent(QShowEvent* arg__1)
1386 {
1386 {
1387 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1387 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1388 static PyObject* name = PyString_FromString("showEvent");
1388 static PyObject* name = PyString_FromString("showEvent");
1389 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1389 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1390 if (obj) {
1390 if (obj) {
1391 static const char* argumentList[] ={"" , "QShowEvent*"};
1391 static const char* argumentList[] ={"" , "QShowEvent*"};
1392 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1392 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1393 void* args[2] = {NULL, (void*)&arg__1};
1393 void* args[2] = {NULL, (void*)&arg__1};
1394 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1394 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1395 if (result) { Py_DECREF(result); }
1395 if (result) { Py_DECREF(result); }
1396 Py_DECREF(obj);
1396 Py_DECREF(obj);
1397 return;
1397 return;
1398 } else {
1398 } else {
1399 PyErr_Clear();
1399 PyErr_Clear();
1400 }
1400 }
1401 }
1401 }
1402 socexplorerplugin::showEvent(arg__1);
1402 socexplorerplugin::showEvent(arg__1);
1403 }
1403 }
1404 QSize PythonQtShell_socexplorerplugin::sizeHint() const
1404 QSize PythonQtShell_socexplorerplugin::sizeHint() const
1405 {
1405 {
1406 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1406 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1407 static PyObject* name = PyString_FromString("getSizeHint");
1407 static PyObject* name = PyString_FromString("getSizeHint");
1408 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1408 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1409 if (obj) {
1409 if (obj) {
1410 static const char* argumentList[] ={"QSize"};
1410 static const char* argumentList[] ={"QSize"};
1411 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1411 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
1412 QSize returnValue;
1412 QSize returnValue;
1413 void* args[1] = {NULL};
1413 void* args[1] = {NULL};
1414 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1414 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1415 if (result) {
1415 if (result) {
1416 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1416 args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
1417 if (args[0]!=&returnValue) {
1417 if (args[0]!=&returnValue) {
1418 if (args[0]==NULL) {
1418 if (args[0]==NULL) {
1419 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
1419 PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result);
1420 } else {
1420 } else {
1421 returnValue = *((QSize*)args[0]);
1421 returnValue = *((QSize*)args[0]);
1422 }
1422 }
1423 }
1423 }
1424 }
1424 }
1425 if (result) { Py_DECREF(result); }
1425 if (result) { Py_DECREF(result); }
1426 Py_DECREF(obj);
1426 Py_DECREF(obj);
1427 return returnValue;
1427 return returnValue;
1428 } else {
1428 } else {
1429 PyErr_Clear();
1429 PyErr_Clear();
1430 }
1430 }
1431 }
1431 }
1432 return socexplorerplugin::sizeHint();
1432 return socexplorerplugin::sizeHint();
1433 }
1433 }
1434 void PythonQtShell_socexplorerplugin::tabletEvent(QTabletEvent* arg__1)
1434 void PythonQtShell_socexplorerplugin::tabletEvent(QTabletEvent* arg__1)
1435 {
1435 {
1436 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1436 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1437 static PyObject* name = PyString_FromString("tabletEvent");
1437 static PyObject* name = PyString_FromString("tabletEvent");
1438 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1438 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1439 if (obj) {
1439 if (obj) {
1440 static const char* argumentList[] ={"" , "QTabletEvent*"};
1440 static const char* argumentList[] ={"" , "QTabletEvent*"};
1441 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1441 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1442 void* args[2] = {NULL, (void*)&arg__1};
1442 void* args[2] = {NULL, (void*)&arg__1};
1443 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1443 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1444 if (result) { Py_DECREF(result); }
1444 if (result) { Py_DECREF(result); }
1445 Py_DECREF(obj);
1445 Py_DECREF(obj);
1446 return;
1446 return;
1447 } else {
1447 } else {
1448 PyErr_Clear();
1448 PyErr_Clear();
1449 }
1449 }
1450 }
1450 }
1451 socexplorerplugin::tabletEvent(arg__1);
1451 socexplorerplugin::tabletEvent(arg__1);
1452 }
1452 }
1453 void PythonQtShell_socexplorerplugin::timerEvent(QTimerEvent* arg__1)
1453 void PythonQtShell_socexplorerplugin::timerEvent(QTimerEvent* arg__1)
1454 {
1454 {
1455 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1455 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1456 static PyObject* name = PyString_FromString("timerEvent");
1456 static PyObject* name = PyString_FromString("timerEvent");
1457 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1457 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1458 if (obj) {
1458 if (obj) {
1459 static const char* argumentList[] ={"" , "QTimerEvent*"};
1459 static const char* argumentList[] ={"" , "QTimerEvent*"};
1460 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1460 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1461 void* args[2] = {NULL, (void*)&arg__1};
1461 void* args[2] = {NULL, (void*)&arg__1};
1462 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1462 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1463 if (result) { Py_DECREF(result); }
1463 if (result) { Py_DECREF(result); }
1464 Py_DECREF(obj);
1464 Py_DECREF(obj);
1465 return;
1465 return;
1466 } else {
1466 } else {
1467 PyErr_Clear();
1467 PyErr_Clear();
1468 }
1468 }
1469 }
1469 }
1470 socexplorerplugin::timerEvent(arg__1);
1470 socexplorerplugin::timerEvent(arg__1);
1471 }
1471 }
1472 void PythonQtShell_socexplorerplugin::wheelEvent(QWheelEvent* arg__1)
1472 void PythonQtShell_socexplorerplugin::wheelEvent(QWheelEvent* arg__1)
1473 {
1473 {
1474 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1474 if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
1475 static PyObject* name = PyString_FromString("wheelEvent");
1475 static PyObject* name = PyString_FromString("wheelEvent");
1476 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1476 PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
1477 if (obj) {
1477 if (obj) {
1478 static const char* argumentList[] ={"" , "QWheelEvent*"};
1478 static const char* argumentList[] ={"" , "QWheelEvent*"};
1479 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1479 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
1480 void* args[2] = {NULL, (void*)&arg__1};
1480 void* args[2] = {NULL, (void*)&arg__1};
1481 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1481 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
1482 if (result) { Py_DECREF(result); }
1482 if (result) { Py_DECREF(result); }
1483 Py_DECREF(obj);
1483 Py_DECREF(obj);
1484 return;
1484 return;
1485 } else {
1485 } else {
1486 PyErr_Clear();
1486 PyErr_Clear();
1487 }
1487 }
1488 }
1488 }
1489 socexplorerplugin::wheelEvent(arg__1);
1489 socexplorerplugin::wheelEvent(arg__1);
1490 }
1490 }
1491 socexplorerplugin* PythonQtWrapper_socexplorerplugin::new_socexplorerplugin(QWidget* parent, bool createPyObject)
1491 socexplorerplugin* PythonQtWrapper_socexplorerplugin::new_socexplorerplugin(QWidget* parent, bool createPyObject)
1492 {
1492 {
1493 return new PythonQtShell_socexplorerplugin(parent, createPyObject); }
1493 return new PythonQtShell_socexplorerplugin(parent, createPyObject); }
1494
1494
1495 int PythonQtWrapper_socexplorerplugin::PID(socexplorerplugin* theWrappedObject)
1495 int PythonQtWrapper_socexplorerplugin::PID(socexplorerplugin* theWrappedObject)
1496 {
1496 {
1497 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_PID());
1497 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_PID());
1498 }
1498 }
1499
1499
1500 unsigned int PythonQtWrapper_socexplorerplugin::Read(socexplorerplugin* theWrappedObject, unsigned int* Value, unsigned int count, unsigned int address)
1500 unsigned int PythonQtWrapper_socexplorerplugin::Read(socexplorerplugin* theWrappedObject, unsigned int* Value, unsigned int count, unsigned int address)
1501 {
1501 {
1502 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_Read(Value, count, address));
1502 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_Read(Value, count, address));
1503 }
1503 }
1504
1504
1505 int PythonQtWrapper_socexplorerplugin::VID(socexplorerplugin* theWrappedObject)
1505 int PythonQtWrapper_socexplorerplugin::VID(socexplorerplugin* theWrappedObject)
1506 {
1506 {
1507 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_VID());
1507 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_VID());
1508 }
1508 }
1509
1509
1510 unsigned int PythonQtWrapper_socexplorerplugin::Write(socexplorerplugin* theWrappedObject, unsigned int* Value, unsigned int count, unsigned int address)
1510 unsigned int PythonQtWrapper_socexplorerplugin::Write(socexplorerplugin* theWrappedObject, unsigned int* Value, unsigned int count, unsigned int address)
1511 {
1511 {
1512 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_Write(Value, count, address));
1512 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_Write(Value, count, address));
1513 }
1513 }
1514
1514
1515 void PythonQtWrapper_socexplorerplugin::activate(socexplorerplugin* theWrappedObject, bool flag)
1515 void PythonQtWrapper_socexplorerplugin::activate(socexplorerplugin* theWrappedObject, bool flag)
1516 {
1516 {
1517 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_activate(flag));
1517 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_activate(flag));
1518 }
1518 }
1519
1519
1520 int PythonQtWrapper_socexplorerplugin::baseAddress(socexplorerplugin* theWrappedObject)
1520 int PythonQtWrapper_socexplorerplugin::baseAddress(socexplorerplugin* theWrappedObject)
1521 {
1521 {
1522 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_baseAddress());
1522 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_baseAddress());
1523 }
1523 }
1524
1524
1525 QString PythonQtWrapper_socexplorerplugin::baseName(socexplorerplugin* theWrappedObject)
1525 QString PythonQtWrapper_socexplorerplugin::baseName(socexplorerplugin* theWrappedObject)
1526 {
1526 {
1527 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_baseName());
1527 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_baseName());
1528 }
1528 }
1529
1529
1530 void PythonQtWrapper_socexplorerplugin::closeMe(socexplorerplugin* theWrappedObject)
1530 void PythonQtWrapper_socexplorerplugin::closeMe(socexplorerplugin* theWrappedObject)
1531 {
1531 {
1532 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_closeMe());
1532 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_closeMe());
1533 }
1533 }
1534
1534
1535 bool PythonQtWrapper_socexplorerplugin::dumpMemory(socexplorerplugin* theWrappedObject, unsigned int address, unsigned int count, QString file)
1535 bool PythonQtWrapper_socexplorerplugin::dumpMemory(socexplorerplugin* theWrappedObject, unsigned int address, unsigned int count, QString file)
1536 {
1536 {
1537 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_dumpMemory(address, count, file));
1537 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_dumpMemory(address, count, file));
1538 }
1538 }
1539
1539
1540 bool PythonQtWrapper_socexplorerplugin::dumpMemory(socexplorerplugin* theWrappedObject, unsigned int address, unsigned int count, QString file, const QString& format)
1540 bool PythonQtWrapper_socexplorerplugin::dumpMemory(socexplorerplugin* theWrappedObject, unsigned int address, unsigned int count, QString file, const QString& format)
1541 {
1541 {
1542 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_dumpMemory(address, count, file, format));
1542 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_dumpMemory(address, count, file, format));
1543 }
1543 }
1544
1544
1545 QString PythonQtWrapper_socexplorerplugin::instance(socexplorerplugin* theWrappedObject)
1546 {
1547 return ( theWrappedObject->instance());
1548 }
1549
1545 QString PythonQtWrapper_socexplorerplugin::instanceName(socexplorerplugin* theWrappedObject)
1550 QString PythonQtWrapper_socexplorerplugin::instanceName(socexplorerplugin* theWrappedObject)
1546 {
1551 {
1547 return ( theWrappedObject->instanceName());
1552 return ( theWrappedObject->instanceName());
1548 }
1553 }
1549
1554
1550 int PythonQtWrapper_socexplorerplugin::isConnected(socexplorerplugin* theWrappedObject)
1555 int PythonQtWrapper_socexplorerplugin::isConnected(socexplorerplugin* theWrappedObject)
1551 {
1556 {
1552 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_isConnected());
1557 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_isConnected());
1553 }
1558 }
1554
1559
1555 bool PythonQtWrapper_socexplorerplugin::loadbin(socexplorerplugin* theWrappedObject, unsigned int address, QString file)
1560 bool PythonQtWrapper_socexplorerplugin::loadbin(socexplorerplugin* theWrappedObject, unsigned int address, QString file)
1556 {
1561 {
1557 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_loadbin(address, file));
1562 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_loadbin(address, file));
1558 }
1563 }
1559
1564
1560 void PythonQtWrapper_socexplorerplugin::makeGenericPyWrapper(socexplorerplugin* theWrappedObject)
1561 {
1562 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_makeGenericPyWrapper());
1563 }
1564
1565 bool PythonQtWrapper_socexplorerplugin::memSet(socexplorerplugin* theWrappedObject, unsigned int address, int value, unsigned int count)
1565 bool PythonQtWrapper_socexplorerplugin::memSet(socexplorerplugin* theWrappedObject, unsigned int address, int value, unsigned int count)
1566 {
1566 {
1567 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_memSet(address, value, count));
1567 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_memSet(address, value, count));
1568 }
1568 }
1569
1569
1570 void PythonQtWrapper_socexplorerplugin::postInstantiationTrigger(socexplorerplugin* theWrappedObject)
1570 void PythonQtWrapper_socexplorerplugin::postInstantiationTrigger(socexplorerplugin* theWrappedObject)
1571 {
1571 {
1572 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_postInstantiationTrigger());
1572 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_postInstantiationTrigger());
1573 }
1573 }
1574
1574
1575 int PythonQtWrapper_socexplorerplugin::registermenu(socexplorerplugin* theWrappedObject, QMenu* menu)
1575 int PythonQtWrapper_socexplorerplugin::registermenu(socexplorerplugin* theWrappedObject, QMenu* menu)
1576 {
1576 {
1577 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_registermenu(menu));
1577 return ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_registermenu(menu));
1578 }
1578 }
1579
1579
1580 void PythonQtWrapper_socexplorerplugin::setBaseAddress(socexplorerplugin* theWrappedObject, unsigned int baseAddress)
1580 void PythonQtWrapper_socexplorerplugin::setBaseAddress(socexplorerplugin* theWrappedObject, unsigned int baseAddress)
1581 {
1581 {
1582 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_setBaseAddress(baseAddress));
1582 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_setBaseAddress(baseAddress));
1583 }
1583 }
1584
1584
1585 void PythonQtWrapper_socexplorerplugin::setInstanceName(socexplorerplugin* theWrappedObject, const QString& newName)
1585 void PythonQtWrapper_socexplorerplugin::setInstanceName(socexplorerplugin* theWrappedObject, const QString& newName)
1586 {
1586 {
1587 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_setInstanceName(newName));
1587 ( ((PythonQtPublicPromoter_socexplorerplugin*)theWrappedObject)->promoted_setInstanceName(newName));
1588 }
1588 }
1589
1589
1590
1590
@@ -1,173 +1,172
1 #include <PythonQt.h>
1 #include <PythonQt.h>
2 #include <QObject>
2 #include <QObject>
3 #include <QVariant>
3 #include <QVariant>
4 #include <qaction.h>
4 #include <qaction.h>
5 #include <qbackingstore.h>
5 #include <qbackingstore.h>
6 #include <qbitmap.h>
6 #include <qbitmap.h>
7 #include <qbytearray.h>
7 #include <qbytearray.h>
8 #include <qcoreevent.h>
8 #include <qcoreevent.h>
9 #include <qcursor.h>
9 #include <qcursor.h>
10 #include <qdockwidget.h>
10 #include <qdockwidget.h>
11 #include <qevent.h>
11 #include <qevent.h>
12 #include <qfont.h>
12 #include <qfont.h>
13 #include <qgraphicseffect.h>
13 #include <qgraphicseffect.h>
14 #include <qgraphicsproxywidget.h>
14 #include <qgraphicsproxywidget.h>
15 #include <qicon.h>
15 #include <qicon.h>
16 #include <qkeysequence.h>
16 #include <qkeysequence.h>
17 #include <qlayout.h>
17 #include <qlayout.h>
18 #include <qlist.h>
18 #include <qlist.h>
19 #include <qlocale.h>
19 #include <qlocale.h>
20 #include <qmargins.h>
20 #include <qmargins.h>
21 #include <qmenu.h>
21 #include <qmenu.h>
22 #include <qmetaobject.h>
22 #include <qmetaobject.h>
23 #include <qobject.h>
23 #include <qobject.h>
24 #include <qpaintdevice.h>
24 #include <qpaintdevice.h>
25 #include <qpaintengine.h>
25 #include <qpaintengine.h>
26 #include <qpainter.h>
26 #include <qpainter.h>
27 #include <qpalette.h>
27 #include <qpalette.h>
28 #include <qpixmap.h>
28 #include <qpixmap.h>
29 #include <qpoint.h>
29 #include <qpoint.h>
30 #include <qrect.h>
30 #include <qrect.h>
31 #include <qregion.h>
31 #include <qregion.h>
32 #include <qsize.h>
32 #include <qsize.h>
33 #include <qsizepolicy.h>
33 #include <qsizepolicy.h>
34 #include <qstyle.h>
34 #include <qstyle.h>
35 #include <qstyleoption.h>
35 #include <qstyleoption.h>
36 #include <qwidget.h>
36 #include <qwidget.h>
37 #include <qwindow.h>
37 #include <qwindow.h>
38 #include <socexplorerplugin.h>
38 #include <socexplorerplugin.h>
39
39
40
40
41
41
42 class PythonQtShell_socexplorerplugin : public socexplorerplugin
42 class PythonQtShell_socexplorerplugin : public socexplorerplugin
43 {
43 {
44 public:
44 public:
45 PythonQtShell_socexplorerplugin(QWidget* parent = 0, bool createPyObject = true):socexplorerplugin(parent, createPyObject),_wrapper(NULL) { };
45 PythonQtShell_socexplorerplugin(QWidget* parent = 0, bool createPyObject = true):socexplorerplugin(parent, createPyObject),_wrapper(NULL) { };
46
46
47 ~PythonQtShell_socexplorerplugin();
47 ~PythonQtShell_socexplorerplugin();
48
48
49 virtual int PID();
49 virtual int PID();
50 virtual unsigned int Read(unsigned int* Value, unsigned int count, unsigned int address);
50 virtual unsigned int Read(unsigned int* Value, unsigned int count, unsigned int address);
51 virtual int VID();
51 virtual int VID();
52 virtual unsigned int Write(unsigned int* Value, unsigned int count, unsigned int address);
52 virtual unsigned int Write(unsigned int* Value, unsigned int count, unsigned int address);
53 virtual void actionEvent(QActionEvent* arg__1);
53 virtual void actionEvent(QActionEvent* arg__1);
54 virtual void activate(bool flag);
54 virtual void activate(bool flag);
55 virtual int baseAddress();
55 virtual int baseAddress();
56 virtual QString baseName();
56 virtual QString baseName();
57 virtual void changeEvent(QEvent* event);
57 virtual void changeEvent(QEvent* event);
58 virtual void childEvent(QChildEvent* arg__1);
58 virtual void childEvent(QChildEvent* arg__1);
59 virtual void closeEvent(QCloseEvent* event);
59 virtual void closeEvent(QCloseEvent* event);
60 virtual void closeMe();
60 virtual void closeMe();
61 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
61 virtual void contextMenuEvent(QContextMenuEvent* arg__1);
62 virtual void customEvent(QEvent* arg__1);
62 virtual void customEvent(QEvent* arg__1);
63 virtual int devType() const;
63 virtual int devType() const;
64 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
64 virtual void dragEnterEvent(QDragEnterEvent* arg__1);
65 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
65 virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
66 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
66 virtual void dragMoveEvent(QDragMoveEvent* arg__1);
67 virtual void dropEvent(QDropEvent* arg__1);
67 virtual void dropEvent(QDropEvent* arg__1);
68 virtual bool dumpMemory(unsigned int address, unsigned int count, QString file);
68 virtual bool dumpMemory(unsigned int address, unsigned int count, QString file);
69 virtual bool dumpMemory(unsigned int address, unsigned int count, QString file, const QString& format);
69 virtual bool dumpMemory(unsigned int address, unsigned int count, QString file, const QString& format);
70 virtual void enterEvent(QEvent* arg__1);
70 virtual void enterEvent(QEvent* arg__1);
71 virtual bool event(QEvent* event);
71 virtual bool event(QEvent* event);
72 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
72 virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
73 virtual void focusInEvent(QFocusEvent* arg__1);
73 virtual void focusInEvent(QFocusEvent* arg__1);
74 virtual bool focusNextPrevChild(bool next);
74 virtual bool focusNextPrevChild(bool next);
75 virtual void focusOutEvent(QFocusEvent* arg__1);
75 virtual void focusOutEvent(QFocusEvent* arg__1);
76 virtual bool hasHeightForWidth() const;
76 virtual bool hasHeightForWidth() const;
77 virtual int heightForWidth(int arg__1) const;
77 virtual int heightForWidth(int arg__1) const;
78 virtual void hideEvent(QHideEvent* arg__1);
78 virtual void hideEvent(QHideEvent* arg__1);
79 virtual void initPainter(QPainter* painter) const;
79 virtual void initPainter(QPainter* painter) const;
80 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
80 virtual void inputMethodEvent(QInputMethodEvent* arg__1);
81 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
81 virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
82 virtual int isConnected();
82 virtual int isConnected();
83 virtual void keyPressEvent(QKeyEvent* arg__1);
83 virtual void keyPressEvent(QKeyEvent* arg__1);
84 virtual void keyReleaseEvent(QKeyEvent* arg__1);
84 virtual void keyReleaseEvent(QKeyEvent* arg__1);
85 virtual void leaveEvent(QEvent* arg__1);
85 virtual void leaveEvent(QEvent* arg__1);
86 virtual bool loadbin(unsigned int address, QString file);
86 virtual bool loadbin(unsigned int address, QString file);
87 virtual bool memSet(unsigned int address, int value, unsigned int count);
87 virtual bool memSet(unsigned int address, int value, unsigned int count);
88 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
88 virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
89 virtual QSize minimumSizeHint() const;
89 virtual QSize minimumSizeHint() const;
90 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
90 virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
91 virtual void mouseMoveEvent(QMouseEvent* arg__1);
91 virtual void mouseMoveEvent(QMouseEvent* arg__1);
92 virtual void mousePressEvent(QMouseEvent* arg__1);
92 virtual void mousePressEvent(QMouseEvent* arg__1);
93 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
93 virtual void mouseReleaseEvent(QMouseEvent* arg__1);
94 virtual void moveEvent(QMoveEvent* arg__1);
94 virtual void moveEvent(QMoveEvent* arg__1);
95 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
95 virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
96 virtual QPaintEngine* paintEngine() const;
96 virtual QPaintEngine* paintEngine() const;
97 virtual void paintEvent(QPaintEvent* event);
97 virtual void paintEvent(QPaintEvent* event);
98 virtual void postInstantiationTrigger();
98 virtual void postInstantiationTrigger();
99 virtual QPaintDevice* redirected(QPoint* offset) const;
99 virtual QPaintDevice* redirected(QPoint* offset) const;
100 virtual int registermenu(QMenu* menu);
100 virtual int registermenu(QMenu* menu);
101 virtual void resizeEvent(QResizeEvent* arg__1);
101 virtual void resizeEvent(QResizeEvent* arg__1);
102 virtual void setBaseAddress(unsigned int baseAddress);
102 virtual void setBaseAddress(unsigned int baseAddress);
103 virtual void setInstanceName(const QString& newName);
103 virtual void setInstanceName(const QString& newName);
104 virtual QPainter* sharedPainter() const;
104 virtual QPainter* sharedPainter() const;
105 virtual void showEvent(QShowEvent* arg__1);
105 virtual void showEvent(QShowEvent* arg__1);
106 virtual QSize sizeHint() const;
106 virtual QSize sizeHint() const;
107 virtual void tabletEvent(QTabletEvent* arg__1);
107 virtual void tabletEvent(QTabletEvent* arg__1);
108 virtual void timerEvent(QTimerEvent* arg__1);
108 virtual void timerEvent(QTimerEvent* arg__1);
109 virtual void wheelEvent(QWheelEvent* arg__1);
109 virtual void wheelEvent(QWheelEvent* arg__1);
110
110
111 PythonQtInstanceWrapper* _wrapper;
111 PythonQtInstanceWrapper* _wrapper;
112 };
112 };
113
113
114 class PythonQtPublicPromoter_socexplorerplugin : public socexplorerplugin
114 class PythonQtPublicPromoter_socexplorerplugin : public socexplorerplugin
115 { public:
115 { public:
116 inline int promoted_PID() { return socexplorerplugin::PID(); }
116 inline int promoted_PID() { return socexplorerplugin::PID(); }
117 inline unsigned int promoted_Read(unsigned int* Value, unsigned int count, unsigned int address) { return socexplorerplugin::Read(Value, count, address); }
117 inline unsigned int promoted_Read(unsigned int* Value, unsigned int count, unsigned int address) { return socexplorerplugin::Read(Value, count, address); }
118 inline int promoted_VID() { return socexplorerplugin::VID(); }
118 inline int promoted_VID() { return socexplorerplugin::VID(); }
119 inline unsigned int promoted_Write(unsigned int* Value, unsigned int count, unsigned int address) { return socexplorerplugin::Write(Value, count, address); }
119 inline unsigned int promoted_Write(unsigned int* Value, unsigned int count, unsigned int address) { return socexplorerplugin::Write(Value, count, address); }
120 inline void promoted_activate(bool flag) { socexplorerplugin::activate(flag); }
120 inline void promoted_activate(bool flag) { socexplorerplugin::activate(flag); }
121 inline int promoted_baseAddress() { return socexplorerplugin::baseAddress(); }
121 inline int promoted_baseAddress() { return socexplorerplugin::baseAddress(); }
122 inline QString promoted_baseName() { return socexplorerplugin::baseName(); }
122 inline QString promoted_baseName() { return socexplorerplugin::baseName(); }
123 inline void promoted_closeMe() { socexplorerplugin::closeMe(); }
123 inline void promoted_closeMe() { socexplorerplugin::closeMe(); }
124 inline bool promoted_dumpMemory(unsigned int address, unsigned int count, QString file) { return socexplorerplugin::dumpMemory(address, count, file); }
124 inline bool promoted_dumpMemory(unsigned int address, unsigned int count, QString file) { return socexplorerplugin::dumpMemory(address, count, file); }
125 inline bool promoted_dumpMemory(unsigned int address, unsigned int count, QString file, const QString& format) { return socexplorerplugin::dumpMemory(address, count, file, format); }
125 inline bool promoted_dumpMemory(unsigned int address, unsigned int count, QString file, const QString& format) { return socexplorerplugin::dumpMemory(address, count, file, format); }
126 inline int promoted_isConnected() { return socexplorerplugin::isConnected(); }
126 inline int promoted_isConnected() { return socexplorerplugin::isConnected(); }
127 inline bool promoted_loadbin(unsigned int address, QString file) { return socexplorerplugin::loadbin(address, file); }
127 inline bool promoted_loadbin(unsigned int address, QString file) { return socexplorerplugin::loadbin(address, file); }
128 inline void promoted_makeGenericPyWrapper() { socexplorerplugin::makeGenericPyWrapper(); }
129 inline bool promoted_memSet(unsigned int address, int value, unsigned int count) { return socexplorerplugin::memSet(address, value, count); }
128 inline bool promoted_memSet(unsigned int address, int value, unsigned int count) { return socexplorerplugin::memSet(address, value, count); }
130 inline void promoted_postInstantiationTrigger() { socexplorerplugin::postInstantiationTrigger(); }
129 inline void promoted_postInstantiationTrigger() { socexplorerplugin::postInstantiationTrigger(); }
131 inline int promoted_registermenu(QMenu* menu) { return socexplorerplugin::registermenu(menu); }
130 inline int promoted_registermenu(QMenu* menu) { return socexplorerplugin::registermenu(menu); }
132 inline void promoted_setBaseAddress(unsigned int baseAddress) { socexplorerplugin::setBaseAddress(baseAddress); }
131 inline void promoted_setBaseAddress(unsigned int baseAddress) { socexplorerplugin::setBaseAddress(baseAddress); }
133 inline void promoted_setInstanceName(const QString& newName) { socexplorerplugin::setInstanceName(newName); }
132 inline void promoted_setInstanceName(const QString& newName) { socexplorerplugin::setInstanceName(newName); }
134 };
133 };
135
134
136 class PythonQtWrapper_socexplorerplugin : public QObject
135 class PythonQtWrapper_socexplorerplugin : public QObject
137 { Q_OBJECT
136 { Q_OBJECT
138 public:
137 public:
139 public slots:
138 public slots:
140 socexplorerplugin* new_socexplorerplugin(QWidget* parent = 0, bool createPyObject = true);
139 socexplorerplugin* new_socexplorerplugin(QWidget* parent = 0, bool createPyObject = true);
141 void delete_socexplorerplugin(socexplorerplugin* obj) { delete obj; }
140 void delete_socexplorerplugin(socexplorerplugin* obj) { delete obj; }
142 int PID(socexplorerplugin* theWrappedObject);
141 int PID(socexplorerplugin* theWrappedObject);
143 unsigned int Read(socexplorerplugin* theWrappedObject, unsigned int* Value, unsigned int count, unsigned int address);
142 unsigned int Read(socexplorerplugin* theWrappedObject, unsigned int* Value, unsigned int count, unsigned int address);
144 int VID(socexplorerplugin* theWrappedObject);
143 int VID(socexplorerplugin* theWrappedObject);
145 unsigned int Write(socexplorerplugin* theWrappedObject, unsigned int* Value, unsigned int count, unsigned int address);
144 unsigned int Write(socexplorerplugin* theWrappedObject, unsigned int* Value, unsigned int count, unsigned int address);
146 void activate(socexplorerplugin* theWrappedObject, bool flag);
145 void activate(socexplorerplugin* theWrappedObject, bool flag);
147 int baseAddress(socexplorerplugin* theWrappedObject);
146 int baseAddress(socexplorerplugin* theWrappedObject);
148 QString baseName(socexplorerplugin* theWrappedObject);
147 QString baseName(socexplorerplugin* theWrappedObject);
149 void closeMe(socexplorerplugin* theWrappedObject);
148 void closeMe(socexplorerplugin* theWrappedObject);
150 bool dumpMemory(socexplorerplugin* theWrappedObject, unsigned int address, unsigned int count, QString file);
149 bool dumpMemory(socexplorerplugin* theWrappedObject, unsigned int address, unsigned int count, QString file);
151 bool dumpMemory(socexplorerplugin* theWrappedObject, unsigned int address, unsigned int count, QString file, const QString& format);
150 bool dumpMemory(socexplorerplugin* theWrappedObject, unsigned int address, unsigned int count, QString file, const QString& format);
151 QString instance(socexplorerplugin* theWrappedObject);
152 QString instanceName(socexplorerplugin* theWrappedObject);
152 QString instanceName(socexplorerplugin* theWrappedObject);
153 int isConnected(socexplorerplugin* theWrappedObject);
153 int isConnected(socexplorerplugin* theWrappedObject);
154 bool loadbin(socexplorerplugin* theWrappedObject, unsigned int address, QString file);
154 bool loadbin(socexplorerplugin* theWrappedObject, unsigned int address, QString file);
155 void makeGenericPyWrapper(socexplorerplugin* theWrappedObject);
156 bool memSet(socexplorerplugin* theWrappedObject, unsigned int address, int value, unsigned int count);
155 bool memSet(socexplorerplugin* theWrappedObject, unsigned int address, int value, unsigned int count);
157 void postInstantiationTrigger(socexplorerplugin* theWrappedObject);
156 void postInstantiationTrigger(socexplorerplugin* theWrappedObject);
158 int registermenu(socexplorerplugin* theWrappedObject, QMenu* menu);
157 int registermenu(socexplorerplugin* theWrappedObject, QMenu* menu);
159 void setBaseAddress(socexplorerplugin* theWrappedObject, unsigned int baseAddress);
158 void setBaseAddress(socexplorerplugin* theWrappedObject, unsigned int baseAddress);
160 void setInstanceName(socexplorerplugin* theWrappedObject, const QString& newName);
159 void setInstanceName(socexplorerplugin* theWrappedObject, const QString& newName);
161 void py_set_ChildsMenu(socexplorerplugin* theWrappedObject, QMenu* ChildsMenu){ theWrappedObject->ChildsMenu = ChildsMenu; }
160 void py_set_ChildsMenu(socexplorerplugin* theWrappedObject, QMenu* ChildsMenu){ theWrappedObject->ChildsMenu = ChildsMenu; }
162 QMenu* py_get_ChildsMenu(socexplorerplugin* theWrappedObject){ return theWrappedObject->ChildsMenu; }
161 QMenu* py_get_ChildsMenu(socexplorerplugin* theWrappedObject){ return theWrappedObject->ChildsMenu; }
163 void py_set_childs(socexplorerplugin* theWrappedObject, QList<socexplorerplugin* > childs){ theWrappedObject->childs = childs; }
162 void py_set_childs(socexplorerplugin* theWrappedObject, QList<socexplorerplugin* > childs){ theWrappedObject->childs = childs; }
164 QList<socexplorerplugin* > py_get_childs(socexplorerplugin* theWrappedObject){ return theWrappedObject->childs; }
163 QList<socexplorerplugin* > py_get_childs(socexplorerplugin* theWrappedObject){ return theWrappedObject->childs; }
165 void py_set_closeAction(socexplorerplugin* theWrappedObject, QAction* closeAction){ theWrappedObject->closeAction = closeAction; }
164 void py_set_closeAction(socexplorerplugin* theWrappedObject, QAction* closeAction){ theWrappedObject->closeAction = closeAction; }
166 QAction* py_get_closeAction(socexplorerplugin* theWrappedObject){ return theWrappedObject->closeAction; }
165 QAction* py_get_closeAction(socexplorerplugin* theWrappedObject){ return theWrappedObject->closeAction; }
167 void py_set_menu(socexplorerplugin* theWrappedObject, QMenu* menu){ theWrappedObject->menu = menu; }
166 void py_set_menu(socexplorerplugin* theWrappedObject, QMenu* menu){ theWrappedObject->menu = menu; }
168 QMenu* py_get_menu(socexplorerplugin* theWrappedObject){ return theWrappedObject->menu; }
167 QMenu* py_get_menu(socexplorerplugin* theWrappedObject){ return theWrappedObject->menu; }
169 void py_set_parent(socexplorerplugin* theWrappedObject, socexplorerplugin* parent){ theWrappedObject->parent = parent; }
168 void py_set_parent(socexplorerplugin* theWrappedObject, socexplorerplugin* parent){ theWrappedObject->parent = parent; }
170 socexplorerplugin* py_get_parent(socexplorerplugin* theWrappedObject){ return theWrappedObject->parent; }
169 socexplorerplugin* py_get_parent(socexplorerplugin* theWrappedObject){ return theWrappedObject->parent; }
171 };
170 };
172
171
173
172
@@ -1,242 +1,240
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) 2011, Plasma Physics Laboratory - CNRS
3 -- Copyright (C) 2011, 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@lpp.polytechnique.fr
20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 ----------------------------------------------------------------------------*/
21 ----------------------------------------------------------------------------*/
22 #include "mainwindow.h"
22 #include "mainwindow.h"
23 #include <QDockWidget>
23 #include <QDockWidget>
24
24
25 SocExplorerMainWindow::SocExplorerMainWindow(QString ScriptToEval, QWidget *parent)
25 SocExplorerMainWindow::SocExplorerMainWindow(QString ScriptToEval, QWidget *parent)
26 : QMainWindow(parent)
26 : QMainWindow(parent)
27 {
27 {
28 QCoreApplication::setApplicationName("SocExplorer");
28 QCoreApplication::setApplicationName("SocExplorer");
29 QCoreApplication::setOrganizationName("LPP");
29 QCoreApplication::setOrganizationName("LPP");
30 QCoreApplication::setOrganizationDomain("lpp.fr");
30 QCoreApplication::setOrganizationDomain("lpp.fr");
31 this->makeObjects(ScriptToEval);
31 this->makeObjects(ScriptToEval);
32 this->makeLayout();
32 this->makeLayout();
33 this->makeMenu();
33 this->makeMenu();
34 this->makeConnections();
34 this->makeConnections();
35 this->setWindowIcon(QIcon(":/images/icon.png"));
35 this->setWindowIcon(QIcon(":/images/icon.png"));
36 this->setAcceptDrops(true);
36 this->setAcceptDrops(true);
37 this->pluginManager->setRootLoadable(true);
37 this->pluginManager->setRootLoadable(true);
38 this->PythonConsoleInst->pyConsoleRunFile(ScriptToEval);
38 this->PythonConsoleInst->pyConsoleRunFile(ScriptToEval);
39 QFile file(":/styles/SocExplorer.css");
39 QFile file(":/styles/SocExplorer.css");
40 if(file.open(QIODevice::ReadOnly | QIODevice::Text))
40 if(file.open(QIODevice::ReadOnly | QIODevice::Text))
41 {
41 {
42 qApp->setStyleSheet(file.readAll());
42 qApp->setStyleSheet(file.readAll());
43 file.close();
43 file.close();
44 }
44 }
45 }
45 }
46
46
47
47
48 void SocExplorerMainWindow::makeObjects(QString ScriptToEval)
48 void SocExplorerMainWindow::makeObjects(QString ScriptToEval)
49 {
49 {
50 Q_UNUSED(ScriptToEval)
50 Q_UNUSED(ScriptToEval)
51 this->p_pluginGUIlist = new QList<QDockWidget*>();
51 this->p_pluginGUIlist = new QList<QDockWidget*>();
52 pluginsDockContainer = new QMainWindow;
52 pluginsDockContainer = new QMainWindow;
53 pluginsDockContainer->setWindowFlags(Qt::Widget);
53 pluginsDockContainer->setWindowFlags(Qt::Widget);
54 pluginsDockContainer->setDockNestingEnabled(true);
54 pluginsDockContainer->setDockNestingEnabled(true);
55 this->mainWidget = new QSplitter(Qt::Vertical);
55 this->mainWidget = new QSplitter(Qt::Vertical);
56 this->appTranslator = new QTranslator;
56 this->appTranslator = new QTranslator;
57 this->Quit = new QAction(tr("&Quit"),this);
57 this->Quit = new QAction(tr("&Quit"),this);
58 this->Quit->setShortcut(tr("CTRL+Q"));
58 this->Quit->setShortcut(tr("CTRL+Q"));
59 this->ManagePlugins = new QAction(tr("&Manage Plugins"),this);
59 this->ManagePlugins = new QAction(tr("&Manage Plugins"),this);
60 this->ManagePlugins->setShortcut(tr("CTRL+P"));
60 this->ManagePlugins->setShortcut(tr("CTRL+P"));
61 this->regsManager = new QAction(tr("&Manage registers"),this);
61 this->regsManager = new QAction(tr("&Manage registers"),this);
62 this->exploreRegs = new QAction(tr("&Explore registers"),this);
62 this->exploreRegs = new QAction(tr("&Explore registers"),this);
63 this->help = new QAction(tr("&Help"),this);
63 this->help = new QAction(tr("&Help"),this);
64 this->help->setShortcut(tr("CTRL+H"));
64 this->help->setShortcut(tr("CTRL+H"));
65 this->about = new QAction(tr("&About"),this);
65 this->about = new QAction(tr("&About"),this);
66 socexplorerproxy::setMainWindow(this);
66 socexplorerproxy::setMainWindow(this);
67 SocExplorerEngine::setMainWindow(this);
67 SocExplorerEngine::setMainWindow(this);
68 SocExplorerEngine::xmlModel()->scanXmlFiles();
68 SocExplorerEngine::xmlModel()->scanXmlFiles();
69 this->regExplorer = new regsExplorer();
69 this->regExplorer = new RegsExplorer();
70 this->regExplorer->setAllowedAreas(Qt::AllDockWidgetAreas);
70 this->regExplorer->setAllowedAreas(Qt::AllDockWidgetAreas);
71 this->addPluginInterface(this->regExplorer);
71 this->addPluginInterface(this->regExplorer);
72 this->PythonConsoleInst = new PythonConsole(socexplorerproxy::self());
72 this->PythonConsoleInst = new PythonConsole(socexplorerproxy::self());
73 this->PythonConsoleInst->addObject("SocExplorerEngine",SocExplorerEngine::self());
73 this->PythonConsoleInst->addObject("SocExplorerEngine",SocExplorerEngine::self());
74 this->pluginManager = new dockablePluginManager();
74 this->pluginManager = new dockablePluginManager();
75 this->toolpane = new toolBar;
75 this->toolpane = new toolBar;
76 this->p_about = new aboutsocexplorer();
76 this->p_about = new aboutsocexplorer();
77
78 }
77 }
79
78
80 void SocExplorerMainWindow::makeLayout()
79 void SocExplorerMainWindow::makeLayout()
81 {
80 {
82 this->mainWidget->addWidget(pluginsDockContainer);
81 this->mainWidget->addWidget(pluginsDockContainer);
83 this->mainWidget->addWidget(this->PythonConsoleInst);
82 this->mainWidget->addWidget(this->PythonConsoleInst);
84 this->toolpane->setAllowedAreas(Qt::RightDockWidgetArea|Qt::LeftDockWidgetArea);
83 this->toolpane->setAllowedAreas(Qt::RightDockWidgetArea|Qt::LeftDockWidgetArea);
85 this->addDockWidget(Qt::LeftDockWidgetArea,this->toolpane);
84 this->addDockWidget(Qt::LeftDockWidgetArea,this->toolpane);
86 this->toolpane->addTool(this->pluginManager);
85 this->toolpane->addTool(this->pluginManager);
87 this->setCentralWidget(this->mainWidget);
86 this->setCentralWidget(this->mainWidget);
88 }
87 }
89
88
90
89
91 void SocExplorerMainWindow::makeConnections()
90 void SocExplorerMainWindow::makeConnections()
92 {
91 {
93 connect(socexplorerproxy::self(),SIGNAL(clearMenu()),this,SLOT(clearMenu()));
92 connect(socexplorerproxy::self(),SIGNAL(clearMenu()),this,SLOT(clearMenu()));
94 connect(this,SIGNAL(translateSig()),socexplorerproxy::self(),SLOT(updateText()));
93 connect(this,SIGNAL(translateSig()),socexplorerproxy::self(),SLOT(updateText()));
95 connect(socexplorerproxy::self(),SIGNAL(addPluginGUI(QDockWidget*)),this,SLOT(addPluginInterface(QDockWidget*)));
94 connect(socexplorerproxy::self(),SIGNAL(addPluginGUI(QDockWidget*)),this,SLOT(addPluginInterface(QDockWidget*)));
96 connect(socexplorerproxy::self(),SIGNAL(removePluginGUI(QDockWidget*)),this,SLOT(removePluginInterface(QDockWidget*)));
95 connect(socexplorerproxy::self(),SIGNAL(removePluginGUI(QDockWidget*)),this,SLOT(removePluginInterface(QDockWidget*)));
97 connect(this->ManagePlugins,SIGNAL(triggered()),this,SLOT(launchPluginManager()));
96 connect(this->ManagePlugins,SIGNAL(triggered()),this,SLOT(launchPluginManager()));
98 connect(this->Quit,SIGNAL(triggered()),qApp,SLOT(quit()));
97 connect(this->Quit,SIGNAL(triggered()),qApp,SLOT(quit()));
99 connect(this,SIGNAL(registerObject(QObject*,QString)),this->PythonConsoleInst,SLOT(registerObject(QObject*,QString)));
98 connect(this,SIGNAL(registerObject(QObject*,QString)),this->PythonConsoleInst,SLOT(registerObject(QObject*,QString)));
100 connect(socexplorerproxy::self(),SIGNAL(registerObject(QObject*,QString)),this,SIGNAL(registerObject(QObject*,QString)));
99 connect(socexplorerproxy::self(),SIGNAL(registerObject(QObject*,QString)),this,SIGNAL(registerObject(QObject*,QString)));
101 connect(this->pluginManager,SIGNAL(geteplugintree()),socexplorerproxy::self(),SLOT(geteplugintree()));
100 connect(this->pluginManager,SIGNAL(geteplugintree()),socexplorerproxy::self(),SLOT(geteplugintree()));
102 connect(socexplorerproxy::self(),SIGNAL(treeChanged(QList<socexplorerplugin*>)),this->pluginManager,SIGNAL(treeChanged(QList<socexplorerplugin*>)));
101 connect(socexplorerproxy::self(),SIGNAL(treeChanged(QList<socexplorerplugin*>)),this->pluginManager,SIGNAL(treeChanged(QList<socexplorerplugin*>)));
103 connect(this->pluginManager,SIGNAL(changeSysDriverInstName(QString,QString)),socexplorerproxy::self(),SLOT(changeSysDriverInstName(QString,QString)));
102 connect(this->pluginManager,SIGNAL(changeSysDriverInstName(QString,QString)),socexplorerproxy::self(),SLOT(changeSysDriverInstName(QString,QString)));
104 connect(this->pluginManager,SIGNAL(changeSysDriverInstName(QString,QString)),this->PythonConsoleInst,SLOT(changeSysDriverInstName(QString,QString)));
103 connect(this->pluginManager,SIGNAL(changeSysDriverInstName(QString,QString)),this->PythonConsoleInst,SLOT(changeSysDriverInstName(QString,QString)));
105 connect(this->pluginManager,SIGNAL(closeSysDriver(QString)),socexplorerproxy::self(),SLOT(closeSysDriver(QString)));
104 connect(this->pluginManager,SIGNAL(closeSysDriver(QString)),socexplorerproxy::self(),SLOT(closeSysDriver(QString)));
106 connect(this->pluginManager,SIGNAL(closeSysDriver(QString)),this->PythonConsoleInst,SLOT(removeDriver(QString)));
105 connect(this->pluginManager,SIGNAL(closeSysDriver(QString)),this->PythonConsoleInst,SLOT(removeDriver(QString)));
107 connect(this->pluginManager,SIGNAL(pluginselected(QString)),this,SLOT(pluginselected(QString)));
106 connect(this->pluginManager,SIGNAL(pluginselected(QString)),this,SLOT(pluginselected(QString)));
108 connect(this->about,SIGNAL(triggered()),this,SLOT(showAboutBox()));
107 connect(this->about,SIGNAL(triggered()),this,SLOT(showAboutBox()));
109 connect(this->exploreRegs,SIGNAL(triggered()),this->regExplorer,SLOT(show()));
108 connect(this->exploreRegs,SIGNAL(triggered()),this->regExplorer,SLOT(show()));
110
109
111 this->pluginManager->connect(this->pluginManager,SIGNAL(loadSysDrviver(QString)),socexplorerproxy::self(),SLOT(loadSysDriver(QString)));
110 this->pluginManager->connect(this->pluginManager,SIGNAL(loadSysDrviver(QString)),socexplorerproxy::self(),SLOT(loadSysDriver(QString)));
112 this->pluginManager->connect(this->pluginManager,SIGNAL(loadSysDriverToParent(QString,QString)),socexplorerproxy::self(),SLOT(loadSysDriverToParent(QString,QString)));
111 this->pluginManager->connect(this->pluginManager,SIGNAL(loadSysDriverToParent(QString,QString)),socexplorerproxy::self(),SLOT(loadSysDriverToParent(QString,QString)));
113
112
114 }
113 }
115
114
116
115
117 void SocExplorerMainWindow::launchPluginManager()
116 void SocExplorerMainWindow::launchPluginManager()
118 {
117 {
119
118
120 if(this->pluginManager->isHidden())
119 if(this->pluginManager->isHidden())
121 {
120 {
122 this->pluginManager->setHidden(false);
121 this->pluginManager->setHidden(false);
123 }
122 }
124
123
125 }
124 }
126
125
127
126
128 void SocExplorerMainWindow::addPluginInterface(QDockWidget *plugin)
127 void SocExplorerMainWindow::addPluginInterface(QDockWidget *plugin)
129 {
128 {
130 plugin->setAllowedAreas(Qt::AllDockWidgetAreas);
129 plugin->setAllowedAreas(Qt::AllDockWidgetAreas);
131 this->pluginsDockContainer->addDockWidget(Qt::TopDockWidgetArea,plugin);
130 this->pluginsDockContainer->addDockWidget(Qt::TopDockWidgetArea,plugin);
132 if(p_pluginGUIlist->count()!=0)
131 if(p_pluginGUIlist->count()!=0)
133 this->pluginsDockContainer->tabifyDockWidget(p_pluginGUIlist->last(),plugin);
132 this->pluginsDockContainer->tabifyDockWidget(p_pluginGUIlist->last(),plugin);
134 p_pluginGUIlist->append(plugin);
133 p_pluginGUIlist->append(plugin);
135
136 }
134 }
137
135
138 void SocExplorerMainWindow::removePluginInterface(QDockWidget *plugin)
136 void SocExplorerMainWindow::removePluginInterface(QDockWidget *plugin)
139 {
137 {
140 p_pluginGUIlist->removeOne(plugin);
138 p_pluginGUIlist->removeOne(plugin);
141 this->pluginsDockContainer->removeDockWidget(plugin);
139 this->pluginsDockContainer->removeDockWidget(plugin);
142 }
140 }
143
141
144
142
145 void SocExplorerMainWindow::clearMenu()
143 void SocExplorerMainWindow::clearMenu()
146 {
144 {
147 this->menuBar()->clear();
145 this->menuBar()->clear();
148 this->makeMenu();
146 this->makeMenu();
149 }
147 }
150
148
151
149
152 void SocExplorerMainWindow::makeMenu()
150 void SocExplorerMainWindow::makeMenu()
153 {
151 {
154 this->FileMenu = menuBar()->addMenu(tr("&File"));
152 this->FileMenu = menuBar()->addMenu(tr("&File"));
155 this->PluginsMenu = menuBar()->addMenu(tr("&Plugins"));
153 this->PluginsMenu = menuBar()->addMenu(tr("&Plugins"));
156 this->ToolsMenu = menuBar()->addMenu(tr("&Tools"));
154 this->ToolsMenu = menuBar()->addMenu(tr("&Tools"));
157 this->ToolsMenu->addAction(this->exploreRegs);
155 this->ToolsMenu->addAction(this->exploreRegs);
158 this->FileMenu->addAction(this->Quit);
156 this->FileMenu->addAction(this->Quit);
159 socexplorerproxy::self()->makeMenu(this->PluginsMenu);
157 socexplorerproxy::self()->makeMenu(this->PluginsMenu);
160 this->PluginsMenu->addAction(this->ManagePlugins);
158 this->PluginsMenu->addAction(this->ManagePlugins);
161
159
162 this->helpMenu = menuBar()->addMenu(tr("Help"));
160 this->helpMenu = menuBar()->addMenu(tr("Help"));
163 this->helpMenu->addAction(this->help);
161 this->helpMenu->addAction(this->help);
164 this->helpMenu->addAction(this->about);
162 this->helpMenu->addAction(this->about);
165
163
166 }
164 }
167
165
168
166
169 SocExplorerMainWindow::~SocExplorerMainWindow()
167 SocExplorerMainWindow::~SocExplorerMainWindow()
170 {
168 {
171 }
169 }
172
170
173
171
174 void SocExplorerMainWindow::setLangage(QAction *action)
172 void SocExplorerMainWindow::setLangage(QAction *action)
175 {
173 {
176 QString local = action->data().toString();
174 QString local = action->data().toString();
177 QString qmPath = QDir(QString("translations")).absolutePath();
175 QString qmPath = QDir(QString("translations")).absolutePath();
178 appTranslator->load(qmPath+"/socexplorer_"+local+".qm");
176 appTranslator->load(qmPath+"/socexplorer_"+local+".qm");
179 qApp->installTranslator(appTranslator);
177 qApp->installTranslator(appTranslator);
180 emit this->translateSig();
178 emit this->translateSig();
181 }
179 }
182
180
183
181
184 void SocExplorerMainWindow::createLangMenu()
182 void SocExplorerMainWindow::createLangMenu()
185 {
183 {
186 this->langMenu = menuBar()->addMenu(tr("&Langue"));
184 this->langMenu = menuBar()->addMenu(tr("&Langue"));
187 this->langActionGrp = new QActionGroup(this);
185 this->langActionGrp = new QActionGroup(this);
188 connect(this->langActionGrp,SIGNAL(triggered(QAction*)),this,SLOT(setLangage(QAction*)));
186 connect(this->langActionGrp,SIGNAL(triggered(QAction*)),this,SLOT(setLangage(QAction*)));
189 QDir* qmDir = new QDir(QString("translations"));
187 QDir* qmDir = new QDir(QString("translations"));
190 QStringList LangFiles = qmDir->entryList(QStringList("socexplorer_*.qm"));
188 QStringList LangFiles = qmDir->entryList(QStringList("socexplorer_*.qm"));
191 for(int i=0;i<LangFiles.size();++i)
189 for(int i=0;i<LangFiles.size();++i)
192 {
190 {
193 QString Local = LangFiles[i];
191 QString Local = LangFiles[i];
194 Local.remove(0,Local.indexOf('_')+1);
192 Local.remove(0,Local.indexOf('_')+1);
195 Local.chop(3);
193 Local.chop(3);
196 QTranslator translator;
194 QTranslator translator;
197 translator.load(LangFiles[i],qmDir->absolutePath());
195 translator.load(LangFiles[i],qmDir->absolutePath());
198 QString langage = translator.translate("MainWindow","English");
196 QString langage = translator.translate("MainWindow","English");
199 QAction *action = new QAction(tr("&%1 %2").arg(i+1).arg(langage),this);
197 QAction *action = new QAction(tr("&%1 %2").arg(i+1).arg(langage),this);
200 action->setCheckable(true);
198 action->setCheckable(true);
201 action->setData(Local);
199 action->setData(Local);
202 langMenu->addAction(action);
200 langMenu->addAction(action);
203 langActionGrp->addAction(action);
201 langActionGrp->addAction(action);
204 if(langage==tr("English"))
202 if(langage==tr("English"))
205 action->setChecked(true);
203 action->setChecked(true);
206 }
204 }
207 }
205 }
208
206
209
207
210 void SocExplorerMainWindow::updateText()
208 void SocExplorerMainWindow::updateText()
211 {
209 {
212 emit this->translateSig();
210 emit this->translateSig();
213 }
211 }
214
212
215
213
216
214
217 void SocExplorerMainWindow::showAboutBox()
215 void SocExplorerMainWindow::showAboutBox()
218 {
216 {
219 p_about->show();
217 p_about->show();
220 }
218 }
221
219
222 void SocExplorerMainWindow::pluginselected(const QString &instanceName)
220 void SocExplorerMainWindow::pluginselected(const QString &instanceName)
223 {
221 {
224 socexplorerplugin* drv=socexplorerproxy::self()->getSysDriver(instanceName);
222 socexplorerplugin* drv=socexplorerproxy::self()->getSysDriver(instanceName);
225 if(drv)
223 if(drv)
226 drv->raise();
224 drv->raise();
227 }
225 }
228
226
229
227
230
228
231 void SocExplorerMainWindow::closeEvent(QCloseEvent *event)
229 void SocExplorerMainWindow::closeEvent(QCloseEvent *event)
232 {
230 {
233 socexplorerproxy::self()->close();
231 socexplorerproxy::self()->close();
234 qApp->closeAllWindows();
232 qApp->closeAllWindows();
235 event->accept();
233 event->accept();
236 }
234 }
237
235
238
236
239
237
240
238
241
239
242
240
@@ -1,86 +1,86
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) 2011, Plasma Physics Laboratory - CNRS
3 -- Copyright (C) 2011, 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@lpp.polytechnique.fr
20 -- Mail : alexis.jeandet@lpp.polytechnique.fr
21 ----------------------------------------------------------------------------*/
21 ----------------------------------------------------------------------------*/
22 #ifndef MAINWINDOW_H
22 #ifndef MAINWINDOW_H
23 #define MAINWINDOW_H
23 #define MAINWINDOW_H
24
24
25 #include <QMainWindow>
25 #include <QMainWindow>
26 #include <QApplication>
26 #include <QApplication>
27 #include <QVBoxLayout>
27 #include <QVBoxLayout>
28 #include <QIcon>
28 #include <QIcon>
29 #include <QMenuBar>
29 #include <QMenuBar>
30 #include <QMenu>
30 #include <QMenu>
31 #include <QAction>
31 #include <QAction>
32 #include <QDockWidget>
32 #include <QDockWidget>
33 #include <QTranslator>
33 #include <QTranslator>
34 #include <QSplitter>
34 #include <QSplitter>
35 #include "dockablepluginmanager.h"
35 #include "dockablepluginmanager.h"
36 #include <socexplorerproxy.h>
36 #include <socexplorerproxy.h>
37 #include "PyWdgt/pythonconsole.h"
37 #include "PyWdgt/pythonconsole.h"
38 #include "aboutsocexplorer.h"
38 #include "aboutsocexplorer.h"
39 #include "toolbar.h"
39 #include "toolbar.h"
40 #include "regsExplorer/regsexplorer.h"
40 #include "regsExplorer/regsexplorer.h"
41
41
42 class SocExplorerMainWindow : public QMainWindow
42 class SocExplorerMainWindow : public QMainWindow
43 {
43 {
44 Q_OBJECT
44 Q_OBJECT
45
45
46 public:
46 public:
47 SocExplorerMainWindow(QString ScriptToEval,QWidget *parent = 0);
47 SocExplorerMainWindow(QString ScriptToEval,QWidget *parent = 0);
48 ~SocExplorerMainWindow();
48 ~SocExplorerMainWindow();
49 QAction* Quit,*LoadPlugin,*ManagePlugins,*help,*regsManager,*exploreRegs,*about,*translateAction;
49 QAction* Quit,*LoadPlugin,*ManagePlugins,*help,*regsManager,*exploreRegs,*about,*translateAction;
50 QActionGroup*langActionGrp;
50 QActionGroup*langActionGrp;
51 QMenu* FileMenu,*PluginsMenu,*ToolsMenu,*langMenu,*helpMenu;
51 QMenu* FileMenu,*PluginsMenu,*ToolsMenu,*langMenu,*helpMenu;
52 QTranslator* appTranslator;
52 QTranslator* appTranslator;
53 void createLangMenu();
53 void createLangMenu();
54 void closeEvent(QCloseEvent *event);
54 void closeEvent(QCloseEvent *event);
55 toolBar* toolpane;
55 toolBar* toolpane;
56
56
57
57
58 public slots:
58 public slots:
59 void launchPluginManager();
59 void launchPluginManager();
60 void addPluginInterface(QDockWidget* plugin);
60 void addPluginInterface(QDockWidget* plugin);
61 void removePluginInterface(QDockWidget* plugin);
61 void removePluginInterface(QDockWidget* plugin);
62 void clearMenu();
62 void clearMenu();
63 void updateText();
63 void updateText();
64 void setLangage(QAction* action);
64 void setLangage(QAction* action);
65 void showAboutBox();
65 void showAboutBox();
66 void pluginselected(const QString& instanceName);
66 void pluginselected(const QString& instanceName);
67
67
68 signals:
68 signals:
69 void translateSig();
69 void translateSig();
70 void registerObject(QObject* object,const QString& instanceName);
70 void registerObject(QObject* object,const QString& instanceName);
71
71
72 private:
72 private:
73 void makeObjects(QString ScriptToEval);
73 void makeObjects(QString ScriptToEval);
74 void makeLayout();
74 void makeLayout();
75 void makeConnections();
75 void makeConnections();
76 void makeMenu();
76 void makeMenu();
77 QMainWindow* pluginsDockContainer;
77 QMainWindow* pluginsDockContainer;
78 QSplitter* mainWidget;
78 QSplitter* mainWidget;
79 PythonConsole* PythonConsoleInst;
79 PythonConsole* PythonConsoleInst;
80 dockablePluginManager* pluginManager;
80 dockablePluginManager* pluginManager;
81 regsExplorer* regExplorer;
81 RegsExplorer* regExplorer;
82 aboutsocexplorer* p_about;
82 aboutsocexplorer* p_about;
83 QList<QDockWidget*>* p_pluginGUIlist;
83 QList<QDockWidget*>* p_pluginGUIlist;
84 };
84 };
85
85
86 #endif // MAINWINDOW_H
86 #endif // MAINWINDOW_H
@@ -1,50 +1,58
1 #include "regsexplorer.h"
1 #include "regsexplorer.h"
2 #include "ui_regsexplorernew.h"
2 #include "socmodel.h"
3 #include "socmodel.h"
3
4
4 regsExplorer::regsExplorer(QWidget *parent) :
5 RegsExplorer::RegsExplorer(QWidget *parent) :
5 QDockWidget(parent)
6 QDockWidget(parent),
7 ui(new Ui::RegsExplorerNew)
6 {
8 {
7 mainWidget = new QTabWidget;
9 ui->setupUi(this);
8 cfg = new regsExplorerCfg;
9 socViewer = new SocRegsViewerNew(tr("No soc Detected"),this);
10 this->setWidget(this->mainWidget);
11 this->mainWidget->addTab(this->cfg,"Config");
12 this->mainWidget->addTab(this->socViewer,"View");
13 this->setWindowTitle(tr("Regs Explorer"));
14 connect(SocExplorerEngine::self(),SIGNAL(enumDeviceAdded(socExplorerEnumDevice*)),this,SLOT(addDev(socExplorerEnumDevice*)));
10 connect(SocExplorerEngine::self(),SIGNAL(enumDeviceAdded(socExplorerEnumDevice*)),this,SLOT(addDev(socExplorerEnumDevice*)));
11 delegate.device=NULL;
12 }
13
14 RegsExplorer::~RegsExplorer()
15 {
16 delete ui;
15 }
17 }
16
18
17
19 void RegsExplorer::addDev(socExplorerEnumDevice *device)
18 void regsExplorer::addDev(socExplorerEnumDevice *device)
19 {
20 {
20 delegate.device = device;
21 if((delegate.device->sameSoc(device))||(delegate.device==NULL))
21 peripheralWidget* peripheral=new peripheralWidget(device->name(),device->baseAddress(),&delegate,this);
22 this->socViewer->addPeripheral(peripheral);
23 peripheralModel periphM=SocExplorerEngine::xmlModel()->getPeripheral(device->name());
24 int startIndex,stopIndex;
25 QString desc;
26 QString name;
27 bool rw;
28 for(int i=0;i<periphM.registers.count();i++)
29 {
22 {
30 peripheral->addRegister(periphM.registers.at(i).name,device->baseAddress() + periphM.registers.at(i).offset);
23 delegate.device = device;
31 for(int j=0;j<periphM.registers.at(i).bitfields.count();j++)
24 peripheralWidget* peripheral=new peripheralWidget(device->name(),device->baseAddress(),&delegate,this);
25 this->ui->regsViewer->addPeripheral(peripheral);
26 peripheralModel periphM=SocExplorerEngine::xmlModel()->getPeripheral(device->name());
27 int startIndex,stopIndex;
28 QString desc;
29 QString name;
30 bool rw;
31 this->ui->regsViewer->setSocName(device->socName());
32 for(int i=0;i<periphM.registers.count();i++)
32 {
33 {
33 startIndex = periphM.registers.at(i).bitfields.at(j).offset;
34 peripheral->addRegister(periphM.registers.at(i).name,device->baseAddress() + periphM.registers.at(i).offset);
34 stopIndex = periphM.registers.at(i).bitfields.at(j).offset+periphM.registers.at(i).bitfields.at(j).size-1;
35 for(int j=0;j<periphM.registers.at(i).bitfields.count();j++)
35 desc = periphM.registers.at(i).bitfields.at(j).description;
36 {
36 rw = periphM.registers.at(i).bitfields.at(j).rw;
37 startIndex = periphM.registers.at(i).bitfields.at(j).offset;
37 name = periphM.registers.at(i).bitfields.at(j).name;
38 stopIndex = periphM.registers.at(i).bitfields.at(j).offset+periphM.registers.at(i).bitfields.at(j).size-1;
38 peripheral->registerAt(i)->setBitFieldAttribute(startIndex,stopIndex,name,desc,rw);
39 desc = periphM.registers.at(i).bitfields.at(j).description;
40 rw = periphM.registers.at(i).bitfields.at(j).rw;
41 name = periphM.registers.at(i).bitfields.at(j).name;
42 peripheral->registerAt(i)->setBitFieldAttribute(startIndex,stopIndex,name,desc,rw);
43 }
39 }
44 }
40 }
45 }
41 // connect(peripheral,SIGNAL(readRegSig(qint32)),device,SLOT(readReg(qint32)));
42 // connect(peripheral,SIGNAL(writeRegSig(qint32,qint32)),device,SLOT(writeReg(qint32,qint32)));
43 // QCheckBox* chkbx = this->cfg->addDev(device);
44 // chkbx->setChecked(true);
45 // connect(chkbx,SIGNAL(toggled(bool)),peripheral,SLOT(setVisible(bool)));
46 }
46 }
47
47
48
48 void RegsExplorer::changeEvent(QEvent *e)
49
49 {
50
50 QDockWidget::changeEvent(e);
51 switch (e->type()) {
52 case QEvent::LanguageChange:
53 ui->retranslateUi(this);
54 break;
55 default:
56 break;
57 }
58 }
@@ -1,66 +1,37
1 /*------------------------------------------------------------------------------
1 #ifndef REGSEXPLORERNEW_H
2 -- This file is a part of the SocExplorer Software
2 #define REGSEXPLORERNEW_H
3 -- Copyright (C) 2011, 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@lpp.polytechnique.fr
21 ----------------------------------------------------------------------------*/
22 #ifndef REGSEXPLORER_H
23 #define REGSEXPLORER_H
24
3
25 #include <QWidget>
26 #include <QTabWidget>
27 #include <QDockWidget>
4 #include <QDockWidget>
28 #include "regsexplorercfg.h"
29 #include "regsviewer.h"
30 #include <QGridLayout>
31 #include <socexplorerengine.h>
5 #include <socexplorerengine.h>
32 #include <peripheralwidget.h>
6 #include <peripheralwidget.h>
33 #include <socregsviewer.h>
34 #include <socregsviewernew.h>
7 #include <socregsviewernew.h>
35
8
36
9 namespace Ui {
10 class RegsExplorerNew;
11 }
37
12
38 class regsExplorer : public QDockWidget
13 class RegsExplorer : public QDockWidget
39 {
14 {
40 Q_OBJECT
15 Q_OBJECT
41 class regExplorerReadWriteDelegate: public peripheralWidget::readWriteProxy
16 class regExplorerReadWriteDelegate: public peripheralWidget::readWriteProxy
42 {
17 {
43 public:
18 public:
44 regExplorerReadWriteDelegate() {}
19 regExplorerReadWriteDelegate() {}
45 void writeReg(qint32 address,qint32 value){if(device)device->writeReg(address,value);}
20 void writeReg(qint32 address,qint32 value){if(device)device->writeReg(address,value);}
46 qint32 readReg(qint32 address){if(device)return device->readReg(address);}
21 qint32 readReg(qint32 address){if(device)return device->readReg(address);}
47 socExplorerEnumDevice* device;
22 socExplorerEnumDevice* device;
48 };
23 };
49 public:
24 public:
50 explicit regsExplorer(QWidget *parent = 0);
25 explicit RegsExplorer(QWidget *parent = 0);
51
26 ~RegsExplorer();
52 signals:
53
54 public slots:
27 public slots:
55
56 void addDev(socExplorerEnumDevice* device);
28 void addDev(socExplorerEnumDevice* device);
29 protected:
30 void changeEvent(QEvent *e);
57
31
58 private:
32 private:
59 QTabWidget* mainWidget;
33 Ui::RegsExplorerNew *ui;
60 regsExplorerCfg* cfg;
61 // socRegsViewer* socViewer;
62 SocRegsViewerNew* socViewer;
63 regExplorerReadWriteDelegate delegate;
34 regExplorerReadWriteDelegate delegate;
64 };
35 };
65
36
66 #endif // REGSEXPLORER_H
37 #endif // REGSEXPLORERNEW_H
@@ -1,114 +1,113
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/pythonQtOut/generated_cpp/PySocExplorerEngine/PySocExplorerEngine.pri )
18 include ( SocExplorerEngine/pythonQtOut/generated_cpp/PySocExplorerEngine/PySocExplorerEngine.pri )
19 include ( SocExplorerEngine/plugins/socexplorerplugin.prf )
19 include ( SocExplorerEngine/plugins/socexplorerplugin.prf )
20
20
21 INCLUDEPATH+=$${PWD} \
21 INCLUDEPATH+=$${PWD} \
22 $${PWD}/common \
22 $${PWD}/common \
23 $${PWD}/common/qhexedit \
23 $${PWD}/common/qhexedit \
24 $${PWD}/common/QCustomPlot \
24 $${PWD}/common/QCustomPlot \
25 $${PWD}/common/genericBinaryFiles \
25 $${PWD}/common/genericBinaryFiles \
26 $${PWD}/common/genericBinaryFiles/elf \
26 $${PWD}/common/genericBinaryFiles/elf \
27 $${PWD}/common/genericBinaryFiles/srec \
27 $${PWD}/common/genericBinaryFiles/srec \
28 $${PWD}/common/genericBinaryFiles/BinFile \
28 $${PWD}/common/genericBinaryFiles/BinFile \
29 SocExplorerEngine/engine \
29 SocExplorerEngine/engine \
30 SocExplorerEngine/pluginloader \
30 SocExplorerEngine/pluginloader \
31 SocExplorerEngine/pluginsInterface \
31 SocExplorerEngine/pluginsInterface \
32 SocExplorerEngine/proxy \
32 SocExplorerEngine/proxy \
33 SocExplorerEngine/pluginManagerWdgt \
33 SocExplorerEngine/pluginManagerWdgt \
34 SocExplorerEngine/plugins \
34 SocExplorerEngine/plugins \
35 SocExplorerEngine/RegisterMVS \
35 SocExplorerEngine/RegisterMVS \
36 SocExplorerEngine/XmlEngine \
36 SocExplorerEngine/XmlEngine \
37 SocExplorerEngine/SOC \
37 SocExplorerEngine/SOC \
38 SocExplorerEngine/PeripheralWidget/src \
38 SocExplorerEngine/PeripheralWidget/src \
39 SocExplorerEngine/memtester
39 SocExplorerEngine/memtester
40
40
41 win32:INCLUDEPATH+= \
41 win32:INCLUDEPATH+= \
42 $${PWD}/common/genericBinaryFiles/elf/libelfWin32/include \
42 $${PWD}/common/genericBinaryFiles/elf/libelfWin32/include \
43 $${PWD}/common/genericBinaryFiles/elf/libelfWin32/include/libelf \
43 $${PWD}/common/genericBinaryFiles/elf/libelfWin32/include/libelf \
44
44
45
45
46 RC_FILE = ../win32cfg/socexplorer.rc
46 RC_FILE = ../win32cfg/socexplorer.rc
47
47
48
48
49 unix:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/linux -lsocexplorercommon$${DEBUG_EXT} -L$${SOCEXPLORER_ROOT}/bin/linux -lsocexplorerengine$${DEBUG_EXT}
49 unix:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/linux -lsocexplorercommon$${DEBUG_EXT} -L$${SOCEXPLORER_ROOT}/bin/linux -lsocexplorerengine$${DEBUG_EXT}
50
50
51 win32-g++:LIBS += $${SOCEXPLORER_ROOT}/bin/win32/socexplorercommon$${DEBUG_EXT}.dll $${SOCEXPLORER_ROOT}/bin/win32/socexplorerengine$${DEBUG_EXT}.dll
51 win32-g++:LIBS += $${SOCEXPLORER_ROOT}/bin/win32/socexplorercommon$${DEBUG_EXT}.dll $${SOCEXPLORER_ROOT}/bin/win32/socexplorerengine$${DEBUG_EXT}.dll
52
52
53
53
54 unix{
54 unix{
55 translation.files = $${SOCEXPLORER_ROOT}/translations/socexplorer_fr.qm \
55 translation.files = $${SOCEXPLORER_ROOT}/translations/socexplorer_fr.qm \
56 $${SOCEXPLORER_ROOT}/translations/socexplorer_en.qm
56 $${SOCEXPLORER_ROOT}/translations/socexplorer_en.qm
57 translation.path = $${SOCEXPLORER_TRANSLATION_INSTALL_PATH}
57 translation.path = $${SOCEXPLORER_TRANSLATION_INSTALL_PATH}
58 target.path = /usr/bin
58 target.path = /usr/bin
59 INSTALLS += translation target
59 INSTALLS += translation target
60 }
60 }
61
61
62 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common
62 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common
63 header.files = \
63 header.files = \
64 socexplorer.h
64 socexplorer.h
65 INSTALLS += header
65 INSTALLS += header
66
66
67
67
68 SOURCES += main.cpp\
68 SOURCES += main.cpp\
69 mainwindow.cpp \
69 mainwindow.cpp \
70 PyWdgt/pythonconsole.cpp \
70 PyWdgt/pythonconsole.cpp \
71 PyWdgt/pythonqtscriptingconsoledandd.cpp \
71 PyWdgt/pythonqtscriptingconsoledandd.cpp \
72 dockablepluginmanager.cpp \
72 dockablepluginmanager.cpp \
73 toolbar.cpp \
73 toolbar.cpp \
74 toolbarcontainer.cpp \
74 toolbarcontainer.cpp \
75 regsExplorer/regsexplorer.cpp \
75 aboutsocexplorer.cpp \
76 regsExplorer/regsviewer.cpp \
76 regsExplorer/regsexplorer.cpp
77 regsExplorer/regsexplorercfg.cpp \
78 aboutsocexplorer.cpp
79
77
80 HEADERS += mainwindow.h \
78 HEADERS += mainwindow.h \
81 PyWdgt/pythonconsole.h \
79 PyWdgt/pythonconsole.h \
82 PyWdgt/pythonqtscriptingconsoledandd.h \
80 PyWdgt/pythonqtscriptingconsoledandd.h \
83 dockablepluginmanager.h \
81 dockablepluginmanager.h \
84 toolbar.h \
82 toolbar.h \
85 toolbarcontainer.h \
83 toolbarcontainer.h \
86 regsExplorer/regsexplorer.h \
87 regsExplorer/regsviewer.h \
88 regsExplorer/regsexplorercfg.h \
89 socexplorer.h \
84 socexplorer.h \
90 SocExplorerEngine/plugins/socexplorerplugin.h \
85 SocExplorerEngine/plugins/socexplorerplugin.h \
91 aboutsocexplorer.h
86 aboutsocexplorer.h \
87 regsExplorer/regsexplorer.h
92
88
93
89
94 include ( NicePyConsole/NicePyConsole.pri)
90 include ( NicePyConsole/NicePyConsole.pri)
95
91
96 win32{
92 win32{
97 RESOURCES = ../ressources/SocExplorer.qrc
93 RESOURCES = ../ressources/SocExplorer.qrc
98 }
94 }
99
95
100 unix{
96 unix{
101 RESOURCES = ../ressources/SocExplorer.qrc
97 RESOURCES = ../ressources/SocExplorer.qrc
102 }
98 }
103
99
104 TRANSLATIONS = ../translations/socexplorer_fr.ts \
100 TRANSLATIONS = ../translations/socexplorer_fr.ts \
105 ../translations/socexplorer_en.ts
101 ../translations/socexplorer_en.ts
106
102
103 FORMS += \
104 regsExplorer/regsexplorernew.ui
107
105
108
106
109
107
110
108
111
109
112
110
113
111
114
112
113
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now