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.
15 #ifndef _INPUTSTRING_H
16 #define _INPUTSTRING_H
22 #include <QStringList>
30 class InputString : public QObject, public Input
35 enum StringMode { StringFree=0,
41 InputString( QGridLayout *layout,int &row,
42 const QString &id, const QString &s,
45 const QString &absPath = QString() );
47 void addValue(QString s);
53 Kind kind() const { return String; }
54 QString docs() const { return m_docs; }
55 QString id() const { return m_id; }
56 void addDependency(Input *) { Q_ASSERT(false); }
57 void setEnabled(bool);
58 void updateDependencies() {}
59 void writeValue(QTextStream &t,QTextCodec *codec);
63 void setValue(const QString&);
67 void showHelp(Input *);