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 "ui_pgmargsbase.h"
18 class PgmArgs
: public QDialog
, private Ui::PgmArgsBase
22 PgmArgs(QWidget
* parent
, const QString
& pgm
,
23 const std::map
<QString
,QString
>& envVars
,
24 const QStringList
& allOptions
);
27 void setArgs(const QString
& text
) { programArgs
->setText(text
); }
28 QString
args() const { return programArgs
->text(); }
29 void setOptions(const QSet
<QString
>& selectedOptions
);
30 QSet
<QString
> options() const;
31 void setWd(const QString
& wd
) { wdEdit
->setText(wd
); }
32 QString
wd() const { return wdEdit
->text(); }
33 const std::map
<QString
,EnvVar
>& envVars() { return m_envVars
; }
36 std::map
<QString
,EnvVar
> m_envVars
;
38 void parseEnvInput(QString
& name
, QString
& value
);
39 void modifyVar(bool resurrect
);
40 virtual void accept();
43 void on_buttonModify_clicked();
44 void on_buttonDelete_clicked();
45 void on_envList_currentItemChanged();
46 void on_wdBrowse_clicked();
47 void on_insertFile_clicked();
48 void on_insertDir_clicked();
51 #endif // PgmArgs_included