Debian Codegraph @

src/collectionsetupmodel.h

raw symbols SCIP
1 /*
2 Copyright (C) 2005-2014 Mario Stephan <[email protected]>
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published
6 by the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef COLLECTIONSETUPMODEL_H
19 #define COLLECTIONSETUPMODEL_H
20
21 #include <QTreeView>
22 #include <QDirModel>
23
24 class CollectionSetupModel : public QDirModel
25 {
26 Q_OBJECT
27 public:
28 CollectionSetupModel();
29 QStringList dirsChecked();
30 void setDirsChecked(QStringList list);
31
32 private:
33 QSet<QString> checked;
34 QSet<QString> checkedPartially;
35 virtual Qt::ItemFlags flags(const QModelIndex& index) const;
36
37 virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
38 virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
39
40 bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
41 };
42
43 #endif // COLLECTIONSETUPMODEL_H