SREC File parser working....
Jeandet Alexis -
r45:c6b44a3b51fa default
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -0,0 +1,68
1 #include "srecfilewidget.h"
2 #include "ui_srecfilewidget.h"
3 #include <QTableWidgetItem>
4 #include <qtablewidgetintitem.h>
5
6 srecFileWidget::srecFileWidget(QWidget *parent) :
7 QWidget(parent),
8 ui(new Ui::srecFileWidget)
9 {
10 ui->setupUi(this);
11 connect(this->ui->fragmentsList,SIGNAL(cellActivated(int,int)),this,SLOT(recordCellActivated(int,int)));
12 }
13
14 srecFileWidget::~srecFileWidget()
15 {
16 delete ui;
17 }
18
19 void srecFileWidget::updatSrecFile(srecFile *file)
20 {
21 this->p_srec = file;
22 if(p_srec->isopened() && p_srec->isSREC())
23 {
24 updateRecords();
25 }
26 }
27
28 void srecFileWidget::updateRecords()
29 {
30 this->ui->fragmentsList->clear();
31 this->ui->fragmentsList->setRowCount(p_srec->getFragmentsCount());
32 this->ui->fragmentsList->setHorizontalHeaderLabels(QStringList()<<"Index"<<"Address"<<"Size"<<"Header");
33 for(int i=0;i<p_srec->getFragmentsCount();i++)
34 {
35 QTableWidgetItem *newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(i),DecimalItem);
36 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
37 this->ui->fragmentsList->setItem(i, 0, newItem);
38
39 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("0x%1").arg(p_srec->getFragmentAddress(i),8,16).replace(" ","0"),HexaDecimalItem);
40 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
41 this->ui->fragmentsList->setItem(i, 1, newItem);
42
43 newItem = (QTableWidgetItem*)new QTableWidgetIntItem(QString("%1").arg(p_srec->getFragmentSize(i)),DecimalItem);
44 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
45 this->ui->fragmentsList->setItem(i, 2, newItem);
46
47 newItem = new QTableWidgetItem(p_srec->getFragmentHeader(i));
48 newItem->setFlags(newItem->flags() ^ Qt::ItemIsEditable);
49 this->ui->fragmentsList->setItem(i, 3, newItem);
50
51 }
52 this->ui->fragmentsList->resizeColumnsToContents();
53 }
54
55 void srecFileWidget::recordCellActivated(int row, int column)
56 {
57 Q_UNUSED(column)
58 char* buff=NULL;
59 int index = this->ui->fragmentsList->item(row,0)->text().toInt();
60 if(index!=-1)
61 {
62 this->p_srec->getFragmentData(index,&buff);
63 this->ui->fragmentHexView->setData(QByteArray(buff,this->p_srec->getFragmentSize(index)));
64 }
65
66 }
67
68
@@ -0,0 +1,31
1 #ifndef SRECFILEWIDGET_H
2 #define SRECFILEWIDGET_H
3
4 #include <QWidget>
5 #include "srecfile.h"
6
7 namespace Ui {
8 class srecFileWidget;
9 }
10
11 class srecFileWidget : public QWidget
12 {
13 Q_OBJECT
14
15 public:
16 explicit srecFileWidget(QWidget *parent = 0);
17 ~srecFileWidget();
18
19 public slots:
20 void updatSrecFile(srecFile* file);
21 void updateRecords();
22
23 private slots:
24 void recordCellActivated(int row, int column);
25
26 private:
27 Ui::srecFileWidget *ui;
28 srecFile* p_srec;
29 };
30
31 #endif // SRECFILEWIDGET_H
@@ -0,0 +1,81
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <class>srecFileWidget</class>
4 <widget class="QWidget" name="srecFileWidget">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>740</width>
10 <height>516</height>
11 </rect>
12 </property>
13 <property name="windowTitle">
14 <string>Form</string>
15 </property>
16 <layout class="QGridLayout" name="gridLayout">
17 <item row="0" column="1">
18 <widget class="QGroupBox" name="groupBox_2">
19 <property name="title">
20 <string>SREC records list</string>
21 </property>
22 <layout class="QVBoxLayout" name="verticalLayout_2">
23 <item>
24 <widget class="QTableWidget" name="fragmentsList">
25 <column>
26 <property name="text">
27 <string>Index</string>
28 </property>
29 </column>
30 <column>
31 <property name="text">
32 <string>Address</string>
33 </property>
34 </column>
35 <column>
36 <property name="text">
37 <string>Size</string>
38 </property>
39 </column>
40 <column>
41 <property name="text">
42 <string>Header</string>
43 </property>
44 </column>
45 </widget>
46 </item>
47 </layout>
48 </widget>
49 </item>
50 <item row="0" column="0">
51 <widget class="QGroupBox" name="groupBox">
52 <property name="title">
53 <string>Hexadecimal Viewer</string>
54 </property>
55 <layout class="QVBoxLayout" name="verticalLayout">
56 <item>
57 <widget class="QHexEdit" name="fragmentHexView" native="true">
58 <property name="minimumSize">
59 <size>
60 <width>256</width>
61 <height>0</height>
62 </size>
63 </property>
64 </widget>
65 </item>
66 </layout>
67 </widget>
68 </item>
69 </layout>
70 </widget>
71 <customwidgets>
72 <customwidget>
73 <class>QHexEdit</class>
74 <extends>QWidget</extends>
75 <header location="global">qhexedit.h</header>
76 <container>1</container>
77 </customwidget>
78 </customwidgets>
79 <resources/>
80 <connections/>
81 </ui>
@@ -6,9 +6,10
6 #include "SocExplorerPlot.h"
6 #include "SocExplorerPlot.h"
7 #include "tcp_terminal_client.h"
7 #include "tcp_terminal_client.h"
8 #include "elf/elfparser.h"
8 #include "elf/elfparser.h"
9 #include "abstractexecfile.h"
9 #include "abstractbinfile.h"
10 #include "elf/elffile.h"
10 #include "elf/elffile.h"
11 #include "elf/elffilewidget.h"
11 #include "elf/elffilewidget.h"
12 #include "elf/elfinfowdgt.h"
12 #include "elf/elfinfowdgt.h"
13 #include "QCustomPlot/qcustomplot.h"
13 #include "QCustomPlot/qcustomplot.h"
14 #include "srec/srecfile.h"
14 #include "srec/srecfile.h"
15 #include "srec/srecfilewidget.h"
@@ -19,7 +19,7
19 /*-- Author : Alexis Jeandet
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
21 ----------------------------------------------------------------------------*/
22 #include "abstractexecfile.h"
22 #include "abstractbinfile.h"
23
23
24
24
25 codeFragment::codeFragment()
25 codeFragment::codeFragment()
@@ -19,8 +19,8
19 /*-- Author : Alexis Jeandet
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
21 ----------------------------------------------------------------------------*/
22 #ifndef ABSTRACTEXECFILE_H
22 #ifndef ABSTRACTBINFILE_H
23 #define ABSTRACTEXECFILE_H
23 #define ABSTRACTBINFILE_H
24
24
25 #include <QtCore/QObject>
25 #include <QtCore/QObject>
26
26
@@ -28,13 +28,14 class codeFragment
28 {
28 {
29 public:
29 public:
30 codeFragment();
30 codeFragment();
31 codeFragment(char* data, quint32 size, quint32 address):data(data),size(size),address(address){}
31 codeFragment(char* data, quint64 size, quint64 address):data(data),size(size),address(address){}
32 QString header;
32 char* data;
33 char* data;
33 quint32 size;
34 quint64 size;
34 quint32 address;
35 quint64 address;
35 };
36 };
36
37
37 class abstractExecFile : public QObject
38 class abstractBinFile : public QObject
38 {
39 {
39 Q_OBJECT
40 Q_OBJECT
40 public:
41 public:
@@ -48,4 +49,4 protected:
48 QString p_fileName;
49 QString p_fileName;
49 };
50 };
50
51
51 #endif // ABSTRACTEXECFILE_H
52 #endif // ABSTRACTBINFILE_H
@@ -42,7 +42,9 header.files = \
42 qipdialogbox.h \
42 qipdialogbox.h \
43 lppserial/src/RS232.h \
43 lppserial/src/RS232.h \
44 qtablewidgetintitem.h \
44 qtablewidgetintitem.h \
45 srec/srecfile.h
45 srec/srecfile.h \
46 srec/srecfilewidget.h \
47 abstractbinfile.cpp
46
48
47 win32{
49 win32{
48 elfheader.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common/libelf
50 elfheader.path = $$[QT_INSTALL_HEADERS]/SocExplorer/common/libelf
@@ -68,7 +70,7 isEmpty(header.path) {
68
70
69 INSTALLS += target header
71 INSTALLS += target header
70
72
71 INCLUDEPATH += QCustomPlot qhexedit
73 INCLUDEPATH += QCustomPlot qhexedit srec
72
74
73 HEADERS += \
75 HEADERS += \
74 memsizewdgt.h \
76 memsizewdgt.h \
@@ -82,14 +84,15 HEADERS += \
82 tcp_terminal_client.h \
84 tcp_terminal_client.h \
83 elf/elfinfowdgt.h \
85 elf/elfinfowdgt.h \
84 elf/elfparser.h \
86 elf/elfparser.h \
85 abstractexecfile.h \
86 elf/elffile.h \
87 elf/elffile.h \
87 qipdialogbox.h \
88 qipdialogbox.h \
88 PySocExplorer.h \
89 PySocExplorer.h \
89 SocExplorerPlot.h \
90 SocExplorerPlot.h \
90 elf/elffilewidget.h \
91 elf/elffilewidget.h \
91 qtablewidgetintitem.h \
92 qtablewidgetintitem.h \
92 srec/srecfile.h
93 srec/srecfile.h \
94 srec/srecfilewidget.h \
95 abstractbinfile.h
93
96
94
97
95 SOURCES += \
98 SOURCES += \
@@ -104,16 +107,18 SOURCES += \
104 tcp_terminal_client.cpp \
107 tcp_terminal_client.cpp \
105 elf/elfinfowdgt.cpp \
108 elf/elfinfowdgt.cpp \
106 elf/elfparser.cpp \
109 elf/elfparser.cpp \
107 abstractexecfile.cpp \
108 elf/elffile.cpp \
110 elf/elffile.cpp \
109 qipdialogbox.cpp \
111 qipdialogbox.cpp \
110 SocExplorerPlot.cpp \
112 SocExplorerPlot.cpp \
111 elf/elffilewidget.cpp \
113 elf/elffilewidget.cpp \
112 qtablewidgetintitem.cpp \
114 qtablewidgetintitem.cpp \
113 srec/srecfile.cpp
115 srec/srecfile.cpp \
116 srec/srecfilewidget.cpp \
117 abstractbinfile.cpp
114
118
115 FORMS += \
119 FORMS += \
116 elf/elffilewidget.ui
120 elf/elffilewidget.ui \
121 srec/srecfilewidget.ui
117
122
118 OTHER_FILES += \
123 OTHER_FILES += \
119 ./pythongenerator.sh \
124 ./pythongenerator.sh \
@@ -22,9 +22,10
22 alexis.jeandet@member.fsf.org
22 alexis.jeandet@member.fsf.org
23 ----------------------------------------------------------------------------*/
23 ----------------------------------------------------------------------------*/
24 #include "elffile.h"
24 #include "elffile.h"
25 #include "srec/srecfile.h"
25
26
26 ElfFile::ElfFile()
27 ElfFile::ElfFile()
27 :abstractExecFile()
28 :abstractBinFile()
28 {
29 {
29 this->opened = false;
30 this->opened = false;
30 this->type_elf = false;
31 this->type_elf = false;
@@ -33,7 +34,7 ElfFile::ElfFile()
33 }
34 }
34
35
35 ElfFile::ElfFile(const QString &File)
36 ElfFile::ElfFile(const QString &File)
36 :abstractExecFile()
37 :abstractBinFile()
37 {
38 {
38 this->opened = false;
39 this->opened = false;
39 this->type_elf = false;
40 this->type_elf = false;
@@ -141,7 +142,7 codeFragment *ElfFile::getFragment(const
141 getSectionData(i,&fragment->data);
142 getSectionData(i,&fragment->data);
142 }
143 }
143 }
144 }
144
145 return fragment;
145 }
146 }
146
147
147
148
@@ -1039,3 +1040,8 bool ElfFile::isElf(const QString &File)
1039 }
1040 }
1040 return false;
1041 return false;
1041 }
1042 }
1043
1044 bool ElfFile::toSrec(const QString &File)
1045 {
1046 return srecFile::toSrec(this->getFragments(),File);
1047 }
@@ -19,7 +19,7
19 /*-- Author : Alexis Jeandet
19 /*-- Author : Alexis Jeandet
20 -- Mail : alexis.jeandet@member.fsf.org
20 -- Mail : alexis.jeandet@member.fsf.org
21 ----------------------------------------------------------------------------*/
21 ----------------------------------------------------------------------------*/
22 #include <abstractexecfile.h>
22 #include <abstractbinfile.h>
23 #include <QtCore/QObject>
23 #include <QtCore/QObject>
24 #include <QtCore/QStringList>
24 #include <QtCore/QStringList>
25 #include <libelf.h>
25 #include <libelf.h>
@@ -58,7 +58,7 public:
58 GElf_Sym* sym;
58 GElf_Sym* sym;
59 };
59 };
60
60
61 class ElfFile : public abstractExecFile
61 class ElfFile : public abstractBinFile
62 {
62 {
63 Q_OBJECT
63 Q_OBJECT
64 public:
64 public:
@@ -109,6 +109,8 public:
109 bool iself();
109 bool iself();
110 static bool isElf(const QString& File);
110 static bool isElf(const QString& File);
111
111
112 bool toSrec(const QString& File);
113
112 private:
114 private:
113 codeFragment* getFragment(const QString& name);
115 codeFragment* getFragment(const QString& name);
114 void updateSections();
116 void updateSections();
This diff has been collapsed as it changes many lines, (1013 lines changed) Show them Hide them
@@ -7,7 +7,7
7 #include <QSpinBox>
7 #include <QSpinBox>
8 #include <QVariant>
8 #include <QVariant>
9 #include <QWidget>
9 #include <QWidget>
10 #include <abstractexecfile.h>
10 #include <abstractbinfile.h>
11 #include <elffile.h>
11 #include <elffile.h>
12 #include <elfparser.h>
12 #include <elfparser.h>
13 #include <qaction.h>
13 #include <qaction.h>
@@ -46,6 +46,7
46 #include <qstyle.h>
46 #include <qstyle.h>
47 #include <qstyleoption.h>
47 #include <qstyleoption.h>
48 #include <qwidget.h>
48 #include <qwidget.h>
49 #include <srecfile.h>
49
50
50 PythonQtShell_ElfFile::~PythonQtShell_ElfFile() {
51 PythonQtShell_ElfFile::~PythonQtShell_ElfFile() {
51 PythonQtPrivate* priv = PythonQt::priv();
52 PythonQtPrivate* priv = PythonQt::priv();
@@ -361,6 +362,11 bool PythonQtWrapper_ElfFile::openFile(
361 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_openFile(File));
362 return ( ((PythonQtPublicPromoter_ElfFile*)theWrappedObject)->promoted_openFile(File));
362 }
363 }
363
364
365 bool PythonQtWrapper_ElfFile::toSrec(ElfFile* theWrappedObject, const QString& File)
366 {
367 return ( theWrappedObject->toSrec(File));
368 }
369
364
370
365
371
366 PythonQtShell_MemSizeWdgt::~PythonQtShell_MemSizeWdgt() {
372 PythonQtShell_MemSizeWdgt::~PythonQtShell_MemSizeWdgt() {
@@ -4704,11 +4710,11 QString PythonQtWrapper_XByteArray::toR
4704
4710
4705
4711
4706
4712
4707 PythonQtShell_abstractExecFile::~PythonQtShell_abstractExecFile() {
4713 PythonQtShell_abstractBinFile::~PythonQtShell_abstractBinFile() {
4708 PythonQtPrivate* priv = PythonQt::priv();
4714 PythonQtPrivate* priv = PythonQt::priv();
4709 if (priv) { priv->shellClassDeleted(this); }
4715 if (priv) { priv->shellClassDeleted(this); }
4710 }
4716 }
4711 void PythonQtShell_abstractExecFile::childEvent(QChildEvent* arg__1)
4717 void PythonQtShell_abstractBinFile::childEvent(QChildEvent* arg__1)
4712 {
4718 {
4713 if (_wrapper) {
4719 if (_wrapper) {
4714 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
4720 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
@@ -4723,9 +4729,9 if (_wrapper) {
4723 return;
4729 return;
4724 }
4730 }
4725 }
4731 }
4726 abstractExecFile::childEvent(arg__1);
4732 abstractBinFile::childEvent(arg__1);
4727 }
4733 }
4728 int PythonQtShell_abstractExecFile::closeFile()
4734 int PythonQtShell_abstractBinFile::closeFile()
4729 {
4735 {
4730 if (_wrapper) {
4736 if (_wrapper) {
4731 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile");
4737 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile");
@@ -4753,7 +4759,7 if (_wrapper) {
4753 }
4759 }
4754 return int();
4760 return int();
4755 }
4761 }
4756 void PythonQtShell_abstractExecFile::customEvent(QEvent* arg__1)
4762 void PythonQtShell_abstractBinFile::customEvent(QEvent* arg__1)
4757 {
4763 {
4758 if (_wrapper) {
4764 if (_wrapper) {
4759 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
4765 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
@@ -4768,9 +4774,9 if (_wrapper) {
4768 return;
4774 return;
4769 }
4775 }
4770 }
4776 }
4771 abstractExecFile::customEvent(arg__1);
4777 abstractBinFile::customEvent(arg__1);
4772 }
4778 }
4773 bool PythonQtShell_abstractExecFile::event(QEvent* arg__1)
4779 bool PythonQtShell_abstractBinFile::event(QEvent* arg__1)
4774 {
4780 {
4775 if (_wrapper) {
4781 if (_wrapper) {
4776 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
4782 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
@@ -4796,9 +4802,9 if (_wrapper) {
4796 return returnValue;
4802 return returnValue;
4797 }
4803 }
4798 }
4804 }
4799 return abstractExecFile::event(arg__1);
4805 return abstractBinFile::event(arg__1);
4800 }
4806 }
4801 bool PythonQtShell_abstractExecFile::eventFilter(QObject* arg__1, QEvent* arg__2)
4807 bool PythonQtShell_abstractBinFile::eventFilter(QObject* arg__1, QEvent* arg__2)
4802 {
4808 {
4803 if (_wrapper) {
4809 if (_wrapper) {
4804 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
4810 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
@@ -4824,9 +4830,9 if (_wrapper) {
4824 return returnValue;
4830 return returnValue;
4825 }
4831 }
4826 }
4832 }
4827 return abstractExecFile::eventFilter(arg__1, arg__2);
4833 return abstractBinFile::eventFilter(arg__1, arg__2);
4828 }
4834 }
4829 QList<codeFragment* > PythonQtShell_abstractExecFile::getFragments()
4835 QList<codeFragment* > PythonQtShell_abstractBinFile::getFragments()
4830 {
4836 {
4831 if (_wrapper) {
4837 if (_wrapper) {
4832 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments");
4838 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments");
@@ -4854,7 +4860,7 if (_wrapper) {
4854 }
4860 }
4855 return QList<codeFragment* >();
4861 return QList<codeFragment* >();
4856 }
4862 }
4857 bool PythonQtShell_abstractExecFile::isopened()
4863 bool PythonQtShell_abstractBinFile::isopened()
4858 {
4864 {
4859 if (_wrapper) {
4865 if (_wrapper) {
4860 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened");
4866 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened");
@@ -4882,7 +4888,7 if (_wrapper) {
4882 }
4888 }
4883 return bool();
4889 return bool();
4884 }
4890 }
4885 bool PythonQtShell_abstractExecFile::openFile(const QString& File)
4891 bool PythonQtShell_abstractBinFile::openFile(const QString& File)
4886 {
4892 {
4887 if (_wrapper) {
4893 if (_wrapper) {
4888 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile");
4894 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile");
@@ -4910,7 +4916,7 if (_wrapper) {
4910 }
4916 }
4911 return bool();
4917 return bool();
4912 }
4918 }
4913 void PythonQtShell_abstractExecFile::timerEvent(QTimerEvent* arg__1)
4919 void PythonQtShell_abstractBinFile::timerEvent(QTimerEvent* arg__1)
4914 {
4920 {
4915 if (_wrapper) {
4921 if (_wrapper) {
4916 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
4922 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
@@ -4925,11 +4931,11 if (_wrapper) {
4925 return;
4931 return;
4926 }
4932 }
4927 }
4933 }
4928 abstractExecFile::timerEvent(arg__1);
4934 abstractBinFile::timerEvent(arg__1);
4929 }
4935 }
4930 abstractExecFile* PythonQtWrapper_abstractExecFile::new_abstractExecFile()
4936 abstractBinFile* PythonQtWrapper_abstractBinFile::new_abstractBinFile()
4931 {
4937 {
4932 return new PythonQtShell_abstractExecFile(); }
4938 return new PythonQtShell_abstractBinFile(); }
4933
4939
4934
4940
4935
4941
@@ -4941,7 +4947,7 codeFragment* PythonQtWrapper_codeFragme
4941 {
4947 {
4942 return new PythonQtShell_codeFragment(); }
4948 return new PythonQtShell_codeFragment(); }
4943
4949
4944 codeFragment* PythonQtWrapper_codeFragment::new_codeFragment(char* data, unsigned int size, unsigned int address)
4950 codeFragment* PythonQtWrapper_codeFragment::new_codeFragment(char* data, quint64 size, quint64 address)
4945 {
4951 {
4946 return new PythonQtShell_codeFragment(data, size, address); }
4952 return new PythonQtShell_codeFragment(data, size, address); }
4947
4953
@@ -7045,16 +7051,56 int PythonQtWrapper_srecFile::closeFile
7045 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_closeFile());
7051 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_closeFile());
7046 }
7052 }
7047
7053
7054 int PythonQtWrapper_srecFile::getFragmentAddress(srecFile* theWrappedObject, int index)
7055 {
7056 return ( theWrappedObject->getFragmentAddress(index));
7057 }
7058
7059 bool PythonQtWrapper_srecFile::getFragmentData(srecFile* theWrappedObject, int index, char** buffer)
7060 {
7061 return ( theWrappedObject->getFragmentData(index, buffer));
7062 }
7063
7064 QString PythonQtWrapper_srecFile::getFragmentHeader(srecFile* theWrappedObject, int index)
7065 {
7066 return ( theWrappedObject->getFragmentHeader(index));
7067 }
7068
7069 int PythonQtWrapper_srecFile::getFragmentSize(srecFile* theWrappedObject, int index)
7070 {
7071 return ( theWrappedObject->getFragmentSize(index));
7072 }
7073
7048 QList<codeFragment* > PythonQtWrapper_srecFile::getFragments(srecFile* theWrappedObject)
7074 QList<codeFragment* > PythonQtWrapper_srecFile::getFragments(srecFile* theWrappedObject)
7049 {
7075 {
7050 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_getFragments());
7076 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_getFragments());
7051 }
7077 }
7052
7078
7079 int PythonQtWrapper_srecFile::getFragmentsCount(srecFile* theWrappedObject)
7080 {
7081 return ( theWrappedObject->getFragmentsCount());
7082 }
7083
7084 bool PythonQtWrapper_srecFile::isSREC(srecFile* theWrappedObject)
7085 {
7086 return ( theWrappedObject->isSREC());
7087 }
7088
7089 bool PythonQtWrapper_srecFile::static_srecFile_isSREC(const QString& File)
7090 {
7091 return (srecFile::isSREC(File));
7092 }
7093
7053 bool PythonQtWrapper_srecFile::isopened(srecFile* theWrappedObject)
7094 bool PythonQtWrapper_srecFile::isopened(srecFile* theWrappedObject)
7054 {
7095 {
7055 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_isopened());
7096 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_isopened());
7056 }
7097 }
7057
7098
7099 int PythonQtWrapper_srecFile::lineCount(srecFile* theWrappedObject)
7100 {
7101 return ( theWrappedObject->lineCount());
7102 }
7103
7058 bool PythonQtWrapper_srecFile::openFile(srecFile* theWrappedObject, const QString& File)
7104 bool PythonQtWrapper_srecFile::openFile(srecFile* theWrappedObject, const QString& File)
7059 {
7105 {
7060 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_openFile(File));
7106 return ( ((PythonQtPublicPromoter_srecFile*)theWrappedObject)->promoted_openFile(File));
@@ -7065,4 +7111,921 bool PythonQtWrapper_srecFile::openFile
7065 return ( theWrappedObject->openFiles(Files));
7111 return ( theWrappedObject->openFiles(Files));
7066 }
7112 }
7067
7113
7068
7114 bool PythonQtWrapper_srecFile::static_srecFile_toSrec(QList<codeFragment* > fragments, const QString& File)
7115 {
7116 return (srecFile::toSrec(fragments, File));
7117 }
7118
7119
7120
7121 PythonQtShell_srecFileWidget::~PythonQtShell_srecFileWidget() {
7122 PythonQtPrivate* priv = PythonQt::priv();
7123 if (priv) { priv->shellClassDeleted(this); }
7124 }
7125 void PythonQtShell_srecFileWidget::actionEvent(QActionEvent* arg__1)
7126 {
7127 if (_wrapper) {
7128 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent");
7129 PyErr_Clear();
7130 if (obj && !PythonQtSlotFunction_Check(obj)) {
7131 static const char* argumentList[] ={"" , "QActionEvent*"};
7132 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7133 void* args[2] = {NULL, (void*)&arg__1};
7134 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7135 if (result) { Py_DECREF(result); }
7136 Py_DECREF(obj);
7137 return;
7138 }
7139 }
7140 srecFileWidget::actionEvent(arg__1);
7141 }
7142 void PythonQtShell_srecFileWidget::changeEvent(QEvent* arg__1)
7143 {
7144 if (_wrapper) {
7145 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent");
7146 PyErr_Clear();
7147 if (obj && !PythonQtSlotFunction_Check(obj)) {
7148 static const char* argumentList[] ={"" , "QEvent*"};
7149 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7150 void* args[2] = {NULL, (void*)&arg__1};
7151 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7152 if (result) { Py_DECREF(result); }
7153 Py_DECREF(obj);
7154 return;
7155 }
7156 }
7157 srecFileWidget::changeEvent(arg__1);
7158 }
7159 void PythonQtShell_srecFileWidget::childEvent(QChildEvent* arg__1)
7160 {
7161 if (_wrapper) {
7162 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
7163 PyErr_Clear();
7164 if (obj && !PythonQtSlotFunction_Check(obj)) {
7165 static const char* argumentList[] ={"" , "QChildEvent*"};
7166 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7167 void* args[2] = {NULL, (void*)&arg__1};
7168 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7169 if (result) { Py_DECREF(result); }
7170 Py_DECREF(obj);
7171 return;
7172 }
7173 }
7174 srecFileWidget::childEvent(arg__1);
7175 }
7176 void PythonQtShell_srecFileWidget::closeEvent(QCloseEvent* arg__1)
7177 {
7178 if (_wrapper) {
7179 PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent");
7180 PyErr_Clear();
7181 if (obj && !PythonQtSlotFunction_Check(obj)) {
7182 static const char* argumentList[] ={"" , "QCloseEvent*"};
7183 static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
7184 void* args[2] = {NULL, (void*)&arg__1};
7185 PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
7186 if (result) { Py_DECREF(result); }