summaryrefslogtreecommitdiffstats
path: root/src/dirdialog.h
blob: 7cb850a12c9a2409be69ab18df5d44f6620f30c1 (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
64
65
66

#ifndef DIRDIALOG_H
#define DIRDIALOG_H

#include <kdialog.h>

class Config;

class TQCheckBox;

class KLineEdit;
class KPushButton;
// class KURLRequester;
class KListBox;

/**
 * @short The Replay Gain Tool
 * @author Daniel Faust <[email protected]>
 * @version 0.3
 */
class DirDialog : public KDialog
{
    Q_OBJECT
  
public:
    enum Mode {
        Convert    = 0x0001,
        ReplayGain = 0x0002
    };

    /**
     * Constructor
     */
    DirDialog( Config*, Mode, TQWidget* parent=0, const char* name=0, bool modal=true, WFlags f=0 );

    /**
     * Destructor
     */
    virtual ~DirDialog();

    TQString directory;
    TQStringList selectedFileTypes;
    bool recursive;

private slots:
    void selectDirectoryClicked();
    void okClicked();
    void selectAllClicked();
    void selectNoneClicked();
    void recursiveToggled( bool );

private:
//     KURLRequester* uDirectory;
    KLineEdit* lDirectory;
    KPushButton* pDirectory;
    KListBox* fileTypes;
    KPushButton* pSelectAll;
    KPushButton* pSelectNone;
    TQCheckBox* cRecursive;
    KPushButton* pCancel;
    KPushButton* pOk;

};


#endif