1 /******************************************************************************
5 * Copyright (C) 1997-2012 by Dimitri van Heesch.
7 * Permission to use, copy, modify, and distribute this software and its
8 * documentation under the terms of the GNU General Public License is hereby
9 * granted. No representations are made about the suitability of this software
10 * for any purpose. It is provided "as is" without express or implied warranty.
11 * See the GNU General Public License for more details.
25 class InputInt : public QObject, public Input
30 InputInt( QGridLayout *layout,int &row,
31 const QString &id, int defVal,
32 int minVal, int maxVal,
33 const QString &docs );
39 Kind kind() const { return Int; }
40 QString docs() const { return m_docs; }
41 QString id() const { return m_id; }
42 void addDependency(Input *) { Q_ASSERT(false); }
43 void setEnabled(bool);
44 void updateDependencies() {}
45 void writeValue(QTextStream &t,QTextCodec *codec);
49 void setValue(int val);
56 void showHelp(Input *);