QtPdCom  1.0.0
TableModelImpl.h
Go to the documentation of this file.
1/*****************************************************************************
2 *
3 * Copyright (C) 2012-2022 Florian Pose <fp@igh.de>
4 * 2013 Dr. Wilhelm Hagemeister <hm@igh-essen.com>
5 *
6 * This file is part of the QtPdCom library.
7 *
8 * The QtPdCom library is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version.
12 *
13 * The QtPdCom library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 * License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with the QtPdCom Library. If not, see <http://www.gnu.org/licenses/>.
20 *
21 ****************************************************************************/
22
23#ifndef QTPDCOM_TABLEMODEL_IMPL_H
24#define QTPDCOM_TABLEMODEL_IMPL_H
25
26#include <QtPdCom1/TableModel.h>
27
28#include <QAbstractTableModel>
29#include <QVector>
30#include <QColor>
31
32namespace QtPdCom {
33
34/****************************************************************************/
35
41{
42 public:
44
45 private:
47 unsigned int rows = 0;
48 unsigned int visibleRows = UINT_MAX;
49 unsigned int rowCapacity = 0;
50 typedef QVector<TableColumn *> ColumnVector;
54 void updateRows();
57
58 friend class TableModel;
59
60};
61
62/****************************************************************************/
63
64} // namespace QTPDCOM_TABLEMODEL_IMPL_H
65
66#endif
Table model.
Definition: TableModelImpl.h:41
ColumnVector columnVector
Vector of table columns.
Definition: TableModelImpl.h:52
unsigned int rowCapacity
Definition: TableModelImpl.h:49
QtPdCom::IntVariable valueHighlightRow
Definition: TableModelImpl.h:55
TableModel *const parent
Definition: TableModelImpl.h:46
unsigned int visibleRows
Definition: TableModelImpl.h:48
QVector< TableColumn * > ColumnVector
Column vector type.
Definition: TableModelImpl.h:50
QtPdCom::IntVariable visibleRowCount
Definition: TableModelImpl.h:56
Impl(TableModel *parent)
Definition: TableModelImpl.h:43
void updateRows()
Calculates the number of table rows.
Definition: TableModel.cpp:367
unsigned int rows
Definition: TableModelImpl.h:47
Table model.
Definition: TableModel.h:43
Definition: Message.h:31