2 * Copyright Johannes Sixt
3 * This file is licensed under the GNU General Public License Version 2.
4 * See the file COPYING in the toplevel directory of the source directory.
7 #ifndef PgmArgs_included
8 #define PgmArgs_included
10 #include "pgmargsbase.h"
11 #include <qlineedit.h>
17 class PgmArgs
: public PgmArgsBase
21 PgmArgs(QWidget
* parent
, const QString
& pgm
, QDict
<EnvVar
>& envVars
,
22 const QStringList
& allOptions
);
25 void setArgs(const QString
& text
) { programArgs
->setText(text
); }
26 QString
args() const { return programArgs
->text(); }
27 void setOptions(const QStringList
& selectedOptions
);
28 QStringList
options() const;
29 void setWd(const QString
& wd
) { wdEdit
->setText(wd
); }
30 QString
wd() const { return wdEdit
->text(); }
31 QDict
<EnvVar
>& envVars() { return m_envVars
; }
34 QDict
<EnvVar
> m_envVars
;
37 void parseEnvInput(QString
& name
, QString
& value
);
38 void modifyVar(bool resurrect
);
43 void envListCurrentChanged();
51 #endif // PgmArgs_included