VPTissue Reference Manual
StepFilterProxyModel.h
Go to the documentation of this file.
1 #ifndef STEP_FILTER_PROXY_MODEL_H_INCLUDED
2 #define STEP_FILTER_PROXY_MODEL_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
23 
24 #include <QSortFilterProxyModel>
25 
26 namespace SimPT_Shell {
27 
33 {
34  Q_OBJECT
35 
36 public:
38  explicit StepFilterProxyModel(QObject* parent = nullptr);
39 
41  virtual ~StepFilterProxyModel();
42 
43 public slots:
49  void SetStepRanges(const QString& ranges);
50 
51 protected:
52  bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const;
53 
54 private:
55  StepSelection m_step_selection;
56 };
57 
58 } // namespace
59 
60 #endif // end-of-include-guard
Custom proxy model to filter a QStandardModel with file names with time steps.
Namespace for SimPT shell package.
Definition: Client.cpp:50
Interface for StepSelection.
see the online Qt documentation
StepFilterProxyModel(QObject *parent=nullptr)
Constructor.
see the online Qt documentation
Class handling user input of ranges of steps.
Definition: StepSelection.h:32
void SetStepRanges(const QString &ranges)
Sets the ranges of the accepted steps of the first column.