PythonQtWrapper_QDoubleValidator.h
63 lines
| 2.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QDOUBLEVALIDATOR_H | ||
#define PYTHONQTWRAPPER_QDOUBLEVALIDATOR_H | ||||
#include <qvalidator.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qlocale.h> | ||||
#include <qobject.h> | ||||
#include <qvalidator.h> | ||||
florianlink
|
r24 | class PythonQtShell_QDoubleValidator : public QDoubleValidator | ||
{ | ||||
public: | ||||
PythonQtShell_QDoubleValidator(QObject* parent):QDoubleValidator(parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QDoubleValidator(double bottom, double top, int decimals, QObject* parent):QDoubleValidator(bottom, top, decimals, parent),_wrapper(NULL) {}; | ||||
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 void fixup(QString& arg__1) const; | ||||
virtual void setRange(double bottom, double top, int decimals = 0); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual QValidator::State validate(QString& arg__1, int& arg__2) const; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r28 | class PythonQtPublicPromoter_QDoubleValidator : public QDoubleValidator | ||
{ public: | ||||
inline void promoted_setRange(double bottom, double top, int decimals = 0) { QDoubleValidator::setRange(bottom, top, decimals); } | ||||
inline QValidator::State promoted_validate(QString& arg__1, int& arg__2) const { return QDoubleValidator::validate(arg__1, arg__2); } | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QDoubleValidator : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Notation ) | ||||
enum Notation{ | ||||
StandardNotation = QDoubleValidator::StandardNotation, ScientificNotation = QDoubleValidator::ScientificNotation}; | ||||
public slots: | ||||
QDoubleValidator* new_QDoubleValidator(QObject* parent); | ||||
QDoubleValidator* new_QDoubleValidator(double bottom, double top, int decimals, QObject* parent); | ||||
void delete_QDoubleValidator(QDoubleValidator* obj) { delete obj; } | ||||
florianlink
|
r73 | void setBottom(QDoubleValidator* theWrappedObject, double arg__1); | ||
florianlink
|
r24 | double top(QDoubleValidator* theWrappedObject) const; | ||
double bottom(QDoubleValidator* theWrappedObject) const; | ||||
QDoubleValidator::Notation notation(QDoubleValidator* theWrappedObject) const; | ||||
florianlink
|
r28 | void setTop(QDoubleValidator* theWrappedObject, double arg__1); | ||
void setNotation(QDoubleValidator* theWrappedObject, QDoubleValidator::Notation arg__1); | ||||
int decimals(QDoubleValidator* theWrappedObject) const; | ||||
florianlink
|
r73 | void setDecimals(QDoubleValidator* theWrappedObject, int arg__1); | ||
void setRange(QDoubleValidator* theWrappedObject, double bottom, double top, int decimals = 0); | ||||
QValidator::State validate(QDoubleValidator* theWrappedObject, QString& arg__1, int& arg__2) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QDOUBLEVALIDATOR_H | ||||