Updated documentation.
[kdbg.git] / kdbg / pgmargs.h
blob12e032c70f07850f7a622bd6baa1fc07a9bb381b
1 // $Id$
3 // Copyright by Johannes Sixt
4 // This file is under GPL, the GNU General Public Licence
6 #ifndef PgmArgs_included
7 #define PgmArgs_included
9 #include <qdialog.h>
10 #include <qlabel.h>
11 #include <qlineedit.h>
12 #include <qpushbutton.h>
13 #include <qlayout.h>
14 #include <qlistview.h>
15 #include <qdict.h>
16 #include "envvar.h"
18 class PgmArgs : public QDialog
20 Q_OBJECT
21 public:
22 PgmArgs(QWidget* parent, const QString& pgm, QDict<EnvVar>& envVars);
23 virtual ~PgmArgs();
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; }
31 protected:
32 QDict<EnvVar> m_envVars;
34 void initEnvList();
35 void parseEnvInput(QString& name, QString& value);
37 QLabel m_label;
38 QLineEdit m_programArgs;
39 QLabel m_wdLabel;
40 QLineEdit m_wd;
41 QLabel m_envLabel;
42 QLineEdit m_envVar;
43 QListView m_envList;
44 QPushButton m_buttonOK;
45 QPushButton m_buttonCancel;
46 QPushButton m_buttonModify;
47 QPushButton m_buttonDelete;
48 QHBoxLayout m_layout;
49 QVBoxLayout m_edits;
50 QVBoxLayout m_buttons;
52 protected slots:
53 void modifyVar();
54 void deleteVar();
55 void envListCurrentChanged(QListViewItem*);
56 void accept();
59 #endif // PgmArgs_included