##// END OF EJS Templates
Added Python Console and some Wrappers....
Added Python Console and some Wrappers. More code cleaning, WIP.

File last commit:

r5:92e4585e8fab default
r5:92e4585e8fab default
Show More
PyQLop0.h
185 lines | 7.7 KiB | text/x-c | CLexer
#include <PythonQt.h>
#include <QObject>
#include <QVariant>
#include <SocExplorerPlot.h>
#include <qaction.h>
#include <qbackingstore.h>
#include <qbitmap.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qcursor.h>
#include <qdockwidget.h>
#include <qevent.h>
#include <qfont.h>
#include <qgraphicseffect.h>
#include <qgraphicsproxywidget.h>
#include <qicon.h>
#include <qkeysequence.h>
#include <qlayout.h>
#include <qlist.h>
#include <qlocale.h>
#include <qlopservice.h>
#include <qmargins.h>
#include <qmetaobject.h>
#include <qobject.h>
#include <qpaintdevice.h>
#include <qpaintengine.h>
#include <qpainter.h>
#include <qpalette.h>
#include <qpen.h>
#include <qpixmap.h>
#include <qpoint.h>
#include <qrect.h>
#include <qregion.h>
#include <qsize.h>
#include <qsizepolicy.h>
#include <qstyle.h>
#include <qwidget.h>
#include <qwindow.h>
class PythonQtShell_QLopService : public QLopService
{
public:
PythonQtShell_QLopService(QObject* parent = 0):QLopService(parent),_wrapper(NULL) { };
~PythonQtShell_QLopService();
virtual void childEvent(QChildEvent* arg__1);
virtual void customEvent(QEvent* arg__1);
virtual bool event(QEvent* arg__1);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual QDockWidget* getGUI();
virtual const QString& serviceName();
virtual void timerEvent(QTimerEvent* arg__1);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QLopService : public QLopService
{ public:
inline QDockWidget* promoted_getGUI() { return getGUI(); }
inline const QString& promoted_serviceName() { return QLopService::serviceName(); }
};
class PythonQtWrapper_QLopService : public QObject
{ Q_OBJECT
public:
public slots:
QLopService* new_QLopService(QObject* parent = 0);
void delete_QLopService(QLopService* obj) { delete obj; }
QDockWidget* getGUI(QLopService* theWrappedObject);
const QString* serviceName(QLopService* theWrappedObject);
};
class PythonQtShell_SocExplorerPlot : public SocExplorerPlot
{
public:
PythonQtShell_SocExplorerPlot(QWidget* parent = 0):SocExplorerPlot(parent),_wrapper(NULL) { };
~PythonQtShell_SocExplorerPlot();
virtual void actionEvent(QActionEvent* arg__1);
virtual void changeEvent(QEvent* arg__1);
virtual void childEvent(QChildEvent* arg__1);
virtual void closeEvent(QCloseEvent* arg__1);
virtual void contextMenuEvent(QContextMenuEvent* arg__1);
virtual void customEvent(QEvent* arg__1);
virtual int devType() const;
virtual void dragEnterEvent(QDragEnterEvent* arg__1);
virtual void dragLeaveEvent(QDragLeaveEvent* arg__1);
virtual void dragMoveEvent(QDragMoveEvent* arg__1);
virtual void dropEvent(QDropEvent* arg__1);
virtual void enterEvent(QEvent* arg__1);
virtual bool event(QEvent* arg__1);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual void focusInEvent(QFocusEvent* arg__1);
virtual bool focusNextPrevChild(bool next);
virtual void focusOutEvent(QFocusEvent* arg__1);
virtual bool hasHeightForWidth() const;
virtual int heightForWidth(int arg__1) const;
virtual void hideEvent(QHideEvent* arg__1);
virtual void initPainter(QPainter* painter) const;
virtual void inputMethodEvent(QInputMethodEvent* arg__1);
virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const;
virtual void keyPressEvent(QKeyEvent* arg__1);
virtual void keyReleaseEvent(QKeyEvent* arg__1);
virtual void leaveEvent(QEvent* arg__1);
virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const;
virtual QSize minimumSizeHint() const;
virtual void mouseDoubleClickEvent(QMouseEvent* arg__1);
virtual void mouseMoveEvent(QMouseEvent* arg__1);
virtual void mousePressEvent(QMouseEvent* arg__1);
virtual void mouseReleaseEvent(QMouseEvent* arg__1);
virtual void moveEvent(QMoveEvent* arg__1);
virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result);
virtual QPaintEngine* paintEngine() const;
virtual void paintEvent(QPaintEvent* arg__1);
virtual QPaintDevice* redirected(QPoint* offset) const;
virtual void resizeEvent(QResizeEvent* arg__1);
virtual QPainter* sharedPainter() const;
virtual void showEvent(QShowEvent* arg__1);
virtual QSize sizeHint() const;
virtual void tabletEvent(QTabletEvent* arg__1);
virtual void timerEvent(QTimerEvent* arg__1);
virtual void wheelEvent(QWheelEvent* arg__1);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_SocExplorerPlot : public SocExplorerPlot
{ public:
inline void promoted_keyPressEvent(QKeyEvent* arg__1) { SocExplorerPlot::keyPressEvent(arg__1); }
inline void promoted_keyReleaseEvent(QKeyEvent* arg__1) { SocExplorerPlot::keyReleaseEvent(arg__1); }
inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { SocExplorerPlot::mouseMoveEvent(arg__1); }
inline void promoted_mousePressEvent(QMouseEvent* arg__1) { SocExplorerPlot::mousePressEvent(arg__1); }
inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { SocExplorerPlot::mouseReleaseEvent(arg__1); }
inline void promoted_wheelEvent(QWheelEvent* arg__1) { SocExplorerPlot::wheelEvent(arg__1); }
};
class PythonQtWrapper_SocExplorerPlot : public QObject
{ Q_OBJECT
public:
public slots:
SocExplorerPlot* new_SocExplorerPlot(QWidget* parent = 0);
void delete_SocExplorerPlot(SocExplorerPlot* obj) { delete obj; }
int addGraph(SocExplorerPlot* theWrappedObject);
void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
void addGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QVariant x, QVariant y);
void exportToPDF(SocExplorerPlot* theWrappedObject, const QString& fileName);
void exportToSVG(SocExplorerPlot* theWrappedObject, const QString& fileName);
QPen getGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex);
void keyPressEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1);
void keyReleaseEvent(SocExplorerPlot* theWrappedObject, QKeyEvent* arg__1);
void mouseMoveEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
void mousePressEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
void mouseReleaseEvent(SocExplorerPlot* theWrappedObject, QMouseEvent* arg__1);
void removeAllGraphs(SocExplorerPlot* theWrappedObject);
bool removeGraph(SocExplorerPlot* theWrappedObject, int graphIndex);
void replot(SocExplorerPlot* theWrappedObject);
void rescaleAxis(SocExplorerPlot* theWrappedObject);
void setAdaptativeSampling(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable);
void setGraphData(SocExplorerPlot* theWrappedObject, int graphIndex, QList<QVariant > x, QList<QVariant > y);
void setGraphLineStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString lineStyle);
void setGraphName(SocExplorerPlot* theWrappedObject, int graphIndex, QString name);
void setGraphPen(SocExplorerPlot* theWrappedObject, int graphIndex, QPen pen);
void setGraphScatterStyle(SocExplorerPlot* theWrappedObject, int graphIndex, QString scatterStyle);
void setLegendFont(SocExplorerPlot* theWrappedObject, QFont font);
void setLegendSelectedFont(SocExplorerPlot* theWrappedObject, QFont font);
void setTitle(SocExplorerPlot* theWrappedObject, QString title);
void setUseFastVector(SocExplorerPlot* theWrappedObject, int graphIndex, bool enable);
void setXaxisDateTimeFormat(SocExplorerPlot* theWrappedObject, const QString& format);
void setXaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
void setXaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
void setYaxisLabel(SocExplorerPlot* theWrappedObject, QString label);
void setYaxisRange(SocExplorerPlot* theWrappedObject, double lower, double upper);
void show(SocExplorerPlot* theWrappedObject);
void wheelEvent(SocExplorerPlot* theWrappedObject, QWheelEvent* arg__1);
};