1 /**************************************************************************** 2 ** 3 ** DQt - D bindings for the Qt Toolkit 4 ** 5 ** GNU Lesser General Public License Usage 6 ** This file may be used under the terms of the GNU Lesser 7 ** General Public License version 3 as published by the Free Software 8 ** Foundation and appearing in the file LICENSE.LGPL3 included in the 9 ** packaging of this file. Please review the following information to 10 ** ensure the GNU Lesser General Public License version 3 requirements 11 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 12 ** 13 ****************************************************************************/ 14 module qt.core.transposeproxymodel; 15 extern(C++): 16 17 import qt.config; 18 import qt.core.abstractitemmodel; 19 import qt.core.abstractproxymodel; 20 import qt.core.map; 21 import qt.core.namespace; 22 import qt.core.object; 23 import qt.core.size; 24 import qt.core.variant; 25 import qt.helpers; 26 27 /+ QT_REQUIRE_CONFIG(transposeproxymodel); 28 29 30 class QTransposeProxyModelPrivate; +/ 31 32 class /+ Q_CORE_EXPORT +/ QTransposeProxyModel : QAbstractProxyModel 33 { 34 mixin(Q_OBJECT); 35 /+ Q_DISABLE_COPY(QTransposeProxyModel) +/ 36 /+ Q_DECLARE_PRIVATE(QTransposeProxyModel) +/ 37 public: 38 /+ explicit +/this(QObject parent = null); 39 ~this(); 40 override void setSourceModel(QAbstractItemModel newSourceModel); 41 override int rowCount(ref const(QModelIndex) parent = globalInitVar!QModelIndex) const; 42 override int columnCount(ref const(QModelIndex) parent = globalInitVar!QModelIndex) const; 43 override QVariant headerData(int section, /+ Qt:: +/qt.core.namespace.Orientation orientation, int role = /+ Qt:: +/qt.core.namespace.ItemDataRole.DisplayRole) const; 44 override bool setHeaderData(int section, /+ Qt:: +/qt.core.namespace.Orientation orientation, ref const(QVariant) value, int role = /+ Qt:: +/qt.core.namespace.ItemDataRole.EditRole); 45 override bool setItemData(ref const(QModelIndex) index, ref const(QMap!(int, QVariant)) roles); 46 override QSize span(ref const(QModelIndex) index) const; 47 override QMap!(int, QVariant) itemData(ref const(QModelIndex) index) const; 48 override QModelIndex mapFromSource(ref const(QModelIndex) sourceIndex) const; 49 override QModelIndex mapToSource(ref const(QModelIndex) proxyIndex) const; 50 override QModelIndex parent(ref const(QModelIndex) index) const; 51 override QModelIndex index(int row, int column, ref const(QModelIndex) parent = globalInitVar!QModelIndex) const; 52 override bool insertRows(int row, int count, ref const(QModelIndex) parent = globalInitVar!QModelIndex); 53 override bool removeRows(int row, int count, ref const(QModelIndex) parent = globalInitVar!QModelIndex); 54 override bool moveRows(ref const(QModelIndex) sourceParent, int sourceRow, int count, ref const(QModelIndex) destinationParent, int destinationChild); 55 override bool insertColumns(int column, int count, ref const(QModelIndex) parent = globalInitVar!QModelIndex); 56 override bool removeColumns(int column, int count, ref const(QModelIndex) parent = globalInitVar!QModelIndex); 57 override bool moveColumns(ref const(QModelIndex) sourceParent, int sourceColumn, int count, ref const(QModelIndex) destinationParent, int destinationChild); 58 override void sort(int column, /+ Qt:: +/qt.core.namespace.SortOrder order = /+ Qt:: +/qt.core.namespace.SortOrder.AscendingOrder); 59 protected: 60 this(ref QTransposeProxyModelPrivate , QObject parent); 61 } 62