|
|
#ifndef PYTHONQTWRAPPER_QHEADERVIEW_H
|
|
|
#define PYTHONQTWRAPPER_QHEADERVIEW_H
|
|
|
|
|
|
#include <qheaderview.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#include <QVariant>
|
|
|
#include <qabstractitemdelegate.h>
|
|
|
#include <qabstractitemmodel.h>
|
|
|
#include <qaction.h>
|
|
|
#include <qbitmap.h>
|
|
|
#include <qbytearray.h>
|
|
|
#include <qcoreevent.h>
|
|
|
#include <qcursor.h>
|
|
|
#include <qevent.h>
|
|
|
#include <qfont.h>
|
|
|
#include <qheaderview.h>
|
|
|
#include <qicon.h>
|
|
|
#include <qinputcontext.h>
|
|
|
#include <qitemselectionmodel.h>
|
|
|
#include <qkeysequence.h>
|
|
|
#include <qlayout.h>
|
|
|
#include <qlist.h>
|
|
|
#include <qlocale.h>
|
|
|
#include <qobject.h>
|
|
|
#include <qpaintdevice.h>
|
|
|
#include <qpaintengine.h>
|
|
|
#include <qpainter.h>
|
|
|
#include <qpalette.h>
|
|
|
#include <qpoint.h>
|
|
|
#include <qrect.h>
|
|
|
#include <qregion.h>
|
|
|
#include <qscrollbar.h>
|
|
|
#include <qsize.h>
|
|
|
#include <qsizepolicy.h>
|
|
|
#include <qstyle.h>
|
|
|
#include <qstyleoption.h>
|
|
|
#include <qwidget.h>
|
|
|
|
|
|
class PythonQtWrapper_QHeaderView : public QObject
|
|
|
{ Q_OBJECT
|
|
|
public:
|
|
|
public slots:
|
|
|
QHeaderView* new_QHeaderView(Qt::Orientation orientation, QWidget* parent = 0);
|
|
|
void delete_QHeaderView(QHeaderView* obj) { delete obj; }
|
|
|
bool cascadingSectionResizes(QHeaderView* theWrappedObject) const;
|
|
|
int count(QHeaderView* theWrappedObject) const;
|
|
|
Qt::Alignment defaultAlignment(QHeaderView* theWrappedObject) const;
|
|
|
int defaultSectionSize(QHeaderView* theWrappedObject) const;
|
|
|
void doItemsLayout(QHeaderView* theWrappedObject);
|
|
|
int hiddenSectionCount(QHeaderView* theWrappedObject) const;
|
|
|
void hideSection(QHeaderView* theWrappedObject, int logicalIndex);
|
|
|
bool highlightSections(QHeaderView* theWrappedObject) const;
|
|
|
bool isClickable(QHeaderView* theWrappedObject) const;
|
|
|
bool isMovable(QHeaderView* theWrappedObject) const;
|
|
|
bool isSectionHidden(QHeaderView* theWrappedObject, int logicalIndex) const;
|
|
|
bool isSortIndicatorShown(QHeaderView* theWrappedObject) const;
|
|
|
int length(QHeaderView* theWrappedObject) const;
|
|
|
int logicalIndex(QHeaderView* theWrappedObject, int visualIndex) const;
|
|
|
int logicalIndexAt(QHeaderView* theWrappedObject, const QPoint& pos) const;
|
|
|
int logicalIndexAt(QHeaderView* theWrappedObject, int position) const;
|
|
|
int logicalIndexAt(QHeaderView* theWrappedObject, int x, int y) const;
|
|
|
int minimumSectionSize(QHeaderView* theWrappedObject) const;
|
|
|
void moveSection(QHeaderView* theWrappedObject, int from, int to);
|
|
|
int offset(QHeaderView* theWrappedObject) const;
|
|
|
Qt::Orientation orientation(QHeaderView* theWrappedObject) const;
|
|
|
void reset(QHeaderView* theWrappedObject);
|
|
|
QHeaderView::ResizeMode resizeMode(QHeaderView* theWrappedObject, int logicalIndex) const;
|
|
|
void resizeSection(QHeaderView* theWrappedObject, int logicalIndex, int size);
|
|
|
void resizeSections(QHeaderView* theWrappedObject, QHeaderView::ResizeMode mode);
|
|
|
bool restoreState(QHeaderView* theWrappedObject, const QByteArray& state);
|
|
|
QByteArray saveState(QHeaderView* theWrappedObject) const;
|
|
|
int sectionPosition(QHeaderView* theWrappedObject, int logicalIndex) const;
|
|
|
int sectionSize(QHeaderView* theWrappedObject, int logicalIndex) const;
|
|
|
int sectionSizeHint(QHeaderView* theWrappedObject, int logicalIndex) const;
|
|
|
int sectionViewportPosition(QHeaderView* theWrappedObject, int logicalIndex) const;
|
|
|
bool sectionsHidden(QHeaderView* theWrappedObject) const;
|
|
|
bool sectionsMoved(QHeaderView* theWrappedObject) const;
|
|
|
void setCascadingSectionResizes(QHeaderView* theWrappedObject, bool enable);
|
|
|
void setClickable(QHeaderView* theWrappedObject, bool clickable);
|
|
|
void setDefaultAlignment(QHeaderView* theWrappedObject, Qt::Alignment alignment);
|
|
|
void setDefaultSectionSize(QHeaderView* theWrappedObject, int size);
|
|
|
void setHighlightSections(QHeaderView* theWrappedObject, bool highlight);
|
|
|
void setMinimumSectionSize(QHeaderView* theWrappedObject, int size);
|
|
|
void setModel(QHeaderView* theWrappedObject, QAbstractItemModel* model);
|
|
|
void setMovable(QHeaderView* theWrappedObject, bool movable);
|
|
|
void setResizeMode(QHeaderView* theWrappedObject, QHeaderView::ResizeMode mode);
|
|
|
void setResizeMode(QHeaderView* theWrappedObject, int logicalIndex, QHeaderView::ResizeMode mode);
|
|
|
void setSectionHidden(QHeaderView* theWrappedObject, int logicalIndex, bool hide);
|
|
|
void setSortIndicator(QHeaderView* theWrappedObject, int logicalIndex, Qt::SortOrder order);
|
|
|
void setSortIndicatorShown(QHeaderView* theWrappedObject, bool show);
|
|
|
void setStretchLastSection(QHeaderView* theWrappedObject, bool stretch);
|
|
|
void showSection(QHeaderView* theWrappedObject, int logicalIndex);
|
|
|
QSize sizeHint(QHeaderView* theWrappedObject) const;
|
|
|
Qt::SortOrder sortIndicatorOrder(QHeaderView* theWrappedObject) const;
|
|
|
int sortIndicatorSection(QHeaderView* theWrappedObject) const;
|
|
|
bool stretchLastSection(QHeaderView* theWrappedObject) const;
|
|
|
int stretchSectionCount(QHeaderView* theWrappedObject) const;
|
|
|
void swapSections(QHeaderView* theWrappedObject, int first, int second);
|
|
|
int visualIndex(QHeaderView* theWrappedObject, int logicalIndex) const;
|
|
|
int visualIndexAt(QHeaderView* theWrappedObject, int position) const;
|
|
|
};
|
|
|
|
|
|
#endif // PYTHONQTWRAPPER_QHEADERVIEW_H
|
|
|
|