3 // Copyright by Johannes Sixt
4 // This file is under GPL, the GNU General Public Licence
6 #ifndef PgmArgs_included
7 #define PgmArgs_included
11 #include <qlineedit.h>
12 #include <qpushbutton.h>
14 #include <qlistview.h>
18 class PgmArgs
: public QDialog
22 PgmArgs(QWidget
* parent
, const QString
& pgm
, QDict
<EnvVar
>& envVars
);
25 void setArgs(const QString
& text
) { m_programArgs
.setText(text
); }
26 const char* args() const { return m_programArgs
.text(); }
27 void setWd(const QString
& wd
) { m_wd
.setText(wd
); }
28 QString
wd() const { return m_wd
.text(); }
29 QDict
<EnvVar
>& envVars() { return m_envVars
; }
32 QDict
<EnvVar
> m_envVars
;
35 void parseEnvInput(QString
& name
, QString
& value
);
38 QLineEdit m_programArgs
;
44 QPushButton m_buttonOK
;
45 QPushButton m_buttonCancel
;
46 QPushButton m_buttonModify
;
47 QPushButton m_buttonDelete
;
50 QVBoxLayout m_buttons
;
55 void envListCurrentChanged(QListViewItem
*);
59 #endif // PgmArgs_included