tuchulcha  0.10.1
Graphical Workflow Configuration Editor
PrefixValidator.h
Go to the documentation of this file.
1 /* Copyright (C) 2009 Jens-Malte Gottfried
2 
3  This file is part of Tuchulcha.
4 
5  Tuchulcha is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Tuchulcha is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Tuchulcha. If not, see <http://www.gnu.org/licenses/>.
17 */
24 #ifndef PREFIXVALIDATOR_H_
25 #define PREFIXVALIDATOR_H_
26 
27 #include <QValidator>
28 class QParameterFile;
29 
31 
32 class PrefixValidator : public QValidator {
33  Q_OBJECT
34 public:
36 
39  PrefixValidator(const QParameterFile& data, QObject* parent = 0);
40 
42 
51  virtual QValidator::State validate(QString& input, int& pos) const;
52 
54 
59  virtual void fixup(QString& input) const;
60 
61 private:
63 };
64 
65 #endif /*PREFIXVALIDATOR_H_*/
virtual QValidator::State validate(QString &input, int &pos) const
Validate input string.
PrefixValidator(const QParameterFile &data, QObject *parent=0)
default constructor
Qt implementation for ParameterFile class.
const QParameterFile & _parameterFile
parent ParameterFile
Validator for prefix edit widgets.
virtual void fixup(QString &input) const
Fix given input string.