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.concatenatetablesproxymodel;
15 extern(C++):
16 
17 import qt.config;
18 import qt.core.abstractitemmodel;
19 import qt.core.list;
20 import qt.core.map;
21 import qt.core.mimedata;
22 import qt.core.namespace;
23 import qt.core.object;
24 import qt.core.size;
25 import qt.core.stringlist;
26 import qt.core.variant;
27 import qt.helpers;
28 
29 /+ QT_REQUIRE_CONFIG(concatenatetablesproxymodel); +/
30 
31 
32 extern(C++, class) struct QConcatenateTablesProxyModelPrivate;
33 
34 class /+ Q_CORE_EXPORT +/ QConcatenateTablesProxyModel : QAbstractItemModel
35 {
36     mixin(Q_OBJECT);
37 
38 public:
39     /+ explicit +/this(QObject parent = null);
40     ~this();
41 
42     final QList!(QAbstractItemModel) sourceModels() const;
43     /+ Q_SCRIPTABLE +/ @QScriptable final void addSourceModel(QAbstractItemModel sourceModel);
44     /+ Q_SCRIPTABLE +/ @QScriptable final void removeSourceModel(QAbstractItemModel sourceModel);
45 
46     final QModelIndex mapFromSource(ref const(QModelIndex) sourceIndex) const;
47     final QModelIndex mapToSource(ref const(QModelIndex) proxyIndex) const;
48 
49     override QVariant data(ref const(QModelIndex) index, int role = /+ Qt:: +/qt.core.namespace.ItemDataRole.DisplayRole) const;
50     override bool setData(ref const(QModelIndex) index, ref const(QVariant) value, int role = /+ Qt:: +/qt.core.namespace.ItemDataRole.EditRole);
51     override QMap!(int, QVariant) itemData(ref const(QModelIndex) proxyIndex) const;
52     override bool setItemData(ref const(QModelIndex) index, ref const(QMap!(int, QVariant)) roles);
53     override /+ Qt:: +/qt.core.namespace.ItemFlags flags(ref const(QModelIndex) index) const;
54     override QModelIndex index(int row, int column, ref const(QModelIndex) parent = globalInitVar!QModelIndex) const;
55     override QModelIndex parent(ref const(QModelIndex) index) const;
56     override int rowCount(ref const(QModelIndex) parent = globalInitVar!QModelIndex) const;
57     override QVariant headerData(int section, /+ Qt:: +/qt.core.namespace.Orientation orientation, int role = /+ Qt:: +/qt.core.namespace.ItemDataRole.DisplayRole) const;
58     override int columnCount(ref const(QModelIndex) parent = globalInitVar!QModelIndex) const;
59     override QStringList mimeTypes() const;
60     override QMimeData mimeData(ref const(QModelIndexList) indexes) const;
61     override bool canDropMimeData(const(QMimeData) data, /+ Qt:: +/qt.core.namespace.DropAction action, int row, int column, ref const(QModelIndex) parent) const;
62     override bool dropMimeData(const(QMimeData) data, /+ Qt:: +/qt.core.namespace.DropAction action, int row, int column, ref const(QModelIndex) parent);
63     override QSize span(ref const(QModelIndex) index) const;
64 
65 private:
66     /+ Q_DECLARE_PRIVATE(QConcatenateTablesProxyModel) +/
67     /+ Q_DISABLE_COPY(QConcatenateTablesProxyModel) +/
68 
69     /+ Q_PRIVATE_SLOT(d_func(), void _q_slotRowsAboutToBeInserted(const QModelIndex &, int start, int end))
70     Q_PRIVATE_SLOT(d_func(), void _q_slotRowsInserted(const QModelIndex &, int start, int end))
71     Q_PRIVATE_SLOT(d_func(), void _q_slotRowsAboutToBeRemoved(const QModelIndex &, int start, int end))
72     Q_PRIVATE_SLOT(d_func(), void _q_slotRowsRemoved(const QModelIndex &, int start, int end))
73     Q_PRIVATE_SLOT(d_func(), void _q_slotColumnsAboutToBeInserted(const QModelIndex &parent, int start, int end))
74     Q_PRIVATE_SLOT(d_func(), void _q_slotColumnsInserted(const QModelIndex &parent, int, int))
75     Q_PRIVATE_SLOT(d_func(), void _q_slotColumnsAboutToBeRemoved(const QModelIndex &parent, int start, int end))
76     Q_PRIVATE_SLOT(d_func(), void _q_slotColumnsRemoved(const QModelIndex &parent, int, int))
77     Q_PRIVATE_SLOT(d_func(), void _q_slotDataChanged(const QModelIndex &from, const QModelIndex &to, const QVector<int> &roles))
78     Q_PRIVATE_SLOT(d_func(), void _q_slotSourceLayoutAboutToBeChanged(QList<QPersistentModelIndex>, QAbstractItemModel::LayoutChangeHint))
79     Q_PRIVATE_SLOT(d_func(), void _q_slotSourceLayoutChanged(const QList<QPersistentModelIndex> &, QAbstractItemModel::LayoutChangeHint))
80     Q_PRIVATE_SLOT(d_func(), void _q_slotModelAboutToBeReset())
81     Q_PRIVATE_SLOT(d_func(), void _q_slotModelReset()) +/
82 }
83