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