diff options
Diffstat (limited to 'src/configenvironmentpage.h')
-rwxr-xr-x | src/configenvironmentpage.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/configenvironmentpage.h b/src/configenvironmentpage.h new file mode 100755 index 0000000..37b0c2e --- /dev/null +++ b/src/configenvironmentpage.h @@ -0,0 +1,62 @@ + + +#ifndef CONFIGENVIRONMENTPAGE_H +#define CONFIGENVIRONMENTPAGE_H + +#include <configpagebase.h> + +class Config; +class KPushButton; +class KListBox; + +/** +* @short The page for configuring the environment + * @author Daniel Faust <hessijames@gmail.com> + * @version 0.3 + */ +class ConfigEnvironmentPage : public ConfigPageBase +{ + Q_OBJECT +public: + /** + * Default Constructor + */ + ConfigEnvironmentPage( Config*, QMap<QString, QString>*, QWidget *parent=0, const char *name=0 ); + + /** + * Default Destructor + */ + virtual ~ConfigEnvironmentPage(); + +private: + KListBox* lDirectories; + KPushButton* pDirUp; + KPushButton* pDirDown; + KPushButton* pAddDirectory; + KPushButton* pRemoveDirectory; + KListBox* lFoundPrograms; + KListBox* lNotFoundPrograms; + + Config* config; + + QMap<QString, QString>* binaries; + +public slots: + void resetDefaults(); + void saveSettings(); + +private slots: + void directoriesSelectionChanged( int ); + void dirUp(); + void dirDown(); + void addDirectory(); + void removeDirectory(); + void refill(); + +signals: + void rebuildBackendsPage(); + +}; + +#endif // CONFIGENVIRONMENTPAGE_H + |