##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QStandardItem.h
110 lines | 6.5 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSTANDARDITEM_H
#define PYTHONQTWRAPPER_QSTANDARDITEM_H
#include <qstandarditemmodel.h>
#include <QObject>
#include <QVariant>
#include <qabstractitemmodel.h>
#include <qbrush.h>
#include <qdatastream.h>
#include <qfont.h>
#include <qicon.h>
#include <qlist.h>
#include <qsize.h>
#include <qstandarditemmodel.h>
class PythonQtWrapper_QStandardItem : public QObject
{ Q_OBJECT
public:
Q_ENUMS(ItemType )
enum ItemType{
Type = QStandardItem::Type, UserType = QStandardItem::UserType};
public slots:
QStandardItem* new_QStandardItem();
QStandardItem* new_QStandardItem(const QIcon& icon, const QString& text);
QStandardItem* new_QStandardItem(const QString& text);
QStandardItem* new_QStandardItem(int rows, int columns = 1);
void delete_QStandardItem(QStandardItem* obj) { delete obj; }
QString accessibleDescription(QStandardItem* theWrappedObject) const;
QString accessibleText(QStandardItem* theWrappedObject) const;
void appendColumn(QStandardItem* theWrappedObject, const QList<QStandardItem* >& items);
void appendRow(QStandardItem* theWrappedObject, QStandardItem* item);
void appendRow(QStandardItem* theWrappedObject, const QList<QStandardItem* >& items);
void appendRows(QStandardItem* theWrappedObject, const QList<QStandardItem* >& items);
QBrush background(QStandardItem* theWrappedObject) const;
Qt::CheckState checkState(QStandardItem* theWrappedObject) const;
QStandardItem* child(QStandardItem* theWrappedObject, int row, int column = 0) const;
QStandardItem* clone(QStandardItem* theWrappedObject) const;
int column(QStandardItem* theWrappedObject) const;
int columnCount(QStandardItem* theWrappedObject) const;
QVariant data(QStandardItem* theWrappedObject, int role = Qt::UserRole + 1) const;
Qt::ItemFlags flags(QStandardItem* theWrappedObject) const;
QFont font(QStandardItem* theWrappedObject) const;
QBrush foreground(QStandardItem* theWrappedObject) const;
bool hasChildren(QStandardItem* theWrappedObject) const;
QIcon icon(QStandardItem* theWrappedObject) const;
QModelIndex index(QStandardItem* theWrappedObject) const;
void insertColumn(QStandardItem* theWrappedObject, int column, const QList<QStandardItem* >& items);
void insertColumns(QStandardItem* theWrappedObject, int column, int count);
void insertRow(QStandardItem* theWrappedObject, int row, QStandardItem* item);
void insertRow(QStandardItem* theWrappedObject, int row, const QList<QStandardItem* >& items);
void insertRows(QStandardItem* theWrappedObject, int row, const QList<QStandardItem* >& items);
void insertRows(QStandardItem* theWrappedObject, int row, int count);
bool isCheckable(QStandardItem* theWrappedObject) const;
bool isDragEnabled(QStandardItem* theWrappedObject) const;
bool isDropEnabled(QStandardItem* theWrappedObject) const;
bool isEditable(QStandardItem* theWrappedObject) const;
bool isEnabled(QStandardItem* theWrappedObject) const;
bool isSelectable(QStandardItem* theWrappedObject) const;
bool isTristate(QStandardItem* theWrappedObject) const;
QStandardItemModel* model(QStandardItem* theWrappedObject) const;
void writeTo(QStandardItem* theWrappedObject, QDataStream& out);
void readFrom(QStandardItem* theWrappedObject, QDataStream& in);
QStandardItem* parent(QStandardItem* theWrappedObject) const;
void removeColumn(QStandardItem* theWrappedObject, int column);
void removeColumns(QStandardItem* theWrappedObject, int column, int count);
void removeRow(QStandardItem* theWrappedObject, int row);
void removeRows(QStandardItem* theWrappedObject, int row, int count);
int row(QStandardItem* theWrappedObject) const;
int rowCount(QStandardItem* theWrappedObject) const;
void setAccessibleDescription(QStandardItem* theWrappedObject, const QString& accessibleDescription);
void setAccessibleText(QStandardItem* theWrappedObject, const QString& accessibleText);
void setBackground(QStandardItem* theWrappedObject, const QBrush& brush);
void setCheckState(QStandardItem* theWrappedObject, Qt::CheckState checkState);
void setCheckable(QStandardItem* theWrappedObject, bool checkable);
void setChild(QStandardItem* theWrappedObject, int row, QStandardItem* item);
void setChild(QStandardItem* theWrappedObject, int row, int column, QStandardItem* item);
void setColumnCount(QStandardItem* theWrappedObject, int columns);
void setData(QStandardItem* theWrappedObject, const QVariant& value, int role = Qt::UserRole + 1);
void setDragEnabled(QStandardItem* theWrappedObject, bool dragEnabled);
void setDropEnabled(QStandardItem* theWrappedObject, bool dropEnabled);
void setEditable(QStandardItem* theWrappedObject, bool editable);
void setEnabled(QStandardItem* theWrappedObject, bool enabled);
void setFlags(QStandardItem* theWrappedObject, Qt::ItemFlags flags);
void setFont(QStandardItem* theWrappedObject, const QFont& font);
void setForeground(QStandardItem* theWrappedObject, const QBrush& brush);
void setIcon(QStandardItem* theWrappedObject, const QIcon& icon);
void setRowCount(QStandardItem* theWrappedObject, int rows);
void setSelectable(QStandardItem* theWrappedObject, bool selectable);
void setSizeHint(QStandardItem* theWrappedObject, const QSize& sizeHint);
void setStatusTip(QStandardItem* theWrappedObject, const QString& statusTip);
void setText(QStandardItem* theWrappedObject, const QString& text);
void setTextAlignment(QStandardItem* theWrappedObject, Qt::Alignment textAlignment);
void setToolTip(QStandardItem* theWrappedObject, const QString& toolTip);
void setTristate(QStandardItem* theWrappedObject, bool tristate);
void setWhatsThis(QStandardItem* theWrappedObject, const QString& whatsThis);
QSize sizeHint(QStandardItem* theWrappedObject) const;
void sortChildren(QStandardItem* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder);
QString statusTip(QStandardItem* theWrappedObject) const;
QStandardItem* takeChild(QStandardItem* theWrappedObject, int row, int column = 0);
QList<QStandardItem* > takeColumn(QStandardItem* theWrappedObject, int column);
QList<QStandardItem* > takeRow(QStandardItem* theWrappedObject, int row);
QString text(QStandardItem* theWrappedObject) const;
Qt::Alignment textAlignment(QStandardItem* theWrappedObject) const;
QString toolTip(QStandardItem* theWrappedObject) const;
int type(QStandardItem* theWrappedObject) const;
QString whatsThis(QStandardItem* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QSTANDARDITEM_H