PythonQtWrapper_QSizePolicy.h
53 lines
| 3.1 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QSIZEPOLICY_H | ||
#define PYTHONQTWRAPPER_QSIZEPOLICY_H | ||||
#include <qsizepolicy.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qsizepolicy.h> | ||||
class PythonQtWrapper_QSizePolicy : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
florianlink
|
r24 | Q_ENUMS(ControlType PolicyFlag Policy ) | ||
florianlink
|
r73 | Q_FLAGS(ControlTypes ) | ||
florianlink
|
r13 | enum ControlType{ | ||
DefaultType = QSizePolicy::DefaultType, ButtonBox = QSizePolicy::ButtonBox, CheckBox = QSizePolicy::CheckBox, ComboBox = QSizePolicy::ComboBox, Frame = QSizePolicy::Frame, GroupBox = QSizePolicy::GroupBox, Label = QSizePolicy::Label, Line = QSizePolicy::Line, LineEdit = QSizePolicy::LineEdit, PushButton = QSizePolicy::PushButton, RadioButton = QSizePolicy::RadioButton, Slider = QSizePolicy::Slider, SpinBox = QSizePolicy::SpinBox, TabWidget = QSizePolicy::TabWidget, ToolButton = QSizePolicy::ToolButton}; | ||||
enum PolicyFlag{ | ||||
GrowFlag = QSizePolicy::GrowFlag, ExpandFlag = QSizePolicy::ExpandFlag, ShrinkFlag = QSizePolicy::ShrinkFlag, IgnoreFlag = QSizePolicy::IgnoreFlag}; | ||||
florianlink
|
r24 | enum Policy{ | ||
Fixed = QSizePolicy::Fixed, Minimum = QSizePolicy::Minimum, Maximum = QSizePolicy::Maximum, Preferred = QSizePolicy::Preferred, MinimumExpanding = QSizePolicy::MinimumExpanding, Expanding = QSizePolicy::Expanding, Ignored = QSizePolicy::Ignored}; | ||||
florianlink
|
r73 | Q_DECLARE_FLAGS(ControlTypes, ControlType) | ||
florianlink
|
r13 | public slots: | ||
QSizePolicy* new_QSizePolicy(); | ||||
QSizePolicy* new_QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical); | ||||
QSizePolicy* new_QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical, QSizePolicy::ControlType type); | ||||
florianlink
|
r24 | QSizePolicy* new_QSizePolicy(const QSizePolicy& other) { | ||
QSizePolicy* a = new QSizePolicy(); | ||||
*((QSizePolicy*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QSizePolicy(QSizePolicy* obj) { delete obj; } | ||
florianlink
|
r73 | QSizePolicy::ControlType controlType(QSizePolicy* theWrappedObject) const; | ||
florianlink
|
r24 | void setHorizontalPolicy(QSizePolicy* theWrappedObject, QSizePolicy::Policy d); | ||
int verticalStretch(QSizePolicy* theWrappedObject) const; | ||||
florianlink
|
r13 | int horizontalStretch(QSizePolicy* theWrappedObject) const; | ||
florianlink
|
r73 | bool operator_equal(QSizePolicy* theWrappedObject, const QSizePolicy& s) const; | ||
void setHorizontalStretch(QSizePolicy* theWrappedObject, uchar stretchFactor); | ||||
void setHeightForWidth(QSizePolicy* theWrappedObject, bool b); | ||||
void writeTo(QSizePolicy* theWrappedObject, QDataStream& arg__1); | ||||
florianlink
|
r24 | void setVerticalStretch(QSizePolicy* theWrappedObject, uchar stretchFactor); | ||
florianlink
|
r28 | void transpose(QSizePolicy* theWrappedObject); | ||
Qt::Orientations expandingDirections(QSizePolicy* theWrappedObject) const; | ||||
QSizePolicy::Policy verticalPolicy(QSizePolicy* theWrappedObject) const; | ||||
bool hasHeightForWidth(QSizePolicy* theWrappedObject) const; | ||||
florianlink
|
r73 | QSizePolicy::Policy horizontalPolicy(QSizePolicy* theWrappedObject) const; | ||
void setControlType(QSizePolicy* theWrappedObject, QSizePolicy::ControlType type); | ||||
florianlink
|
r28 | void setVerticalPolicy(QSizePolicy* theWrappedObject, QSizePolicy::Policy d); | ||
florianlink
|
r73 | void readFrom(QSizePolicy* theWrappedObject, QDataStream& arg__1); | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QSIZEPOLICY_H | ||||