1 /******************************************************************************
5 * Copyright (C) 1997-2015 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 _INPUTSTRLIST_H
16 #define _INPUTSTRLIST_H
21 #include <QStringList>
31 class InputStrList : public QObject, public Input
36 enum ListMode { ListString = 0,
39 ListFileDir = ListFile | ListDir
42 InputStrList( QGridLayout *layout,int &row,
43 const QString &id, const QStringList &sl,
44 ListMode v, const QString &docs);
45 void setValue(const QStringList &sl);
49 Kind kind() const { return StrList; }
50 QString docs() const { return m_docs; }
51 QString id() const { return m_id; }
52 QString templateDocs() const { return m_tdocs; }
53 void addDependency(Input *) { Q_ASSERT(false); }
54 void setEnabled(bool);
55 void updateDependencies() {}
56 void writeValue(QTextStream &t,QTextCodec *codec);
57 void setTemplateDocs(const QString &docs) { m_tdocs = docs; }
65 void showHelp(Input *);
71 void selectText(const QString &s);
86 QStringList m_default;
87 QStringList m_strList;