summaryrefslogtreecommitdiffstats
path: root/src/configenvironmentpage.h
blob: c92e7a1caa08c0e15ea87fe00fbf81c23d6f2f36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63


#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 <[email protected]>
 * @version 0.3
 */
class ConfigEnvironmentPage : public ConfigPageBase
{
    Q_OBJECT
  TQ_OBJECT
public:
    /**
     * Default Constructor
     */
    ConfigEnvironmentPage( Config*, TQMap<TQString, TQString>*, TQWidget *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;

    TQMap<TQString, TQString>* 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