summaryrefslogtreecommitdiffstats
path: root/src/configbackendspage.h
blob: 3ca26ff793d3ac86d30f56cd4b8759b2090a716d (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82


#ifndef CONFIGBACKENDSPAGE_H
#define CONFIGBACKENDSPAGE_H

#include <configpagebase.h>

#include <tqstringlist.h>

class Config;
class KComboBox;
class KScrollView;
class TQGroupBox;
class TQGridLayout;
class TQLabel;
class TQSlider;
class TQCheckBox;
class TQVBox;

/**
* @short The page for configuring the environment
 * @author Daniel Faust <hessijames@gmail.com>
 * @version 0.3
 */
class ConfigBackendsPage : public ConfigPageBase
{
    Q_OBJECT
  
public:
    /**
     * Default Constructor
     */
    ConfigBackendsPage( Config*, TQMap<TQString, TQString>*, TQWidget *parent=0, const char *name=0 );

    /**
     * Default Destructor
     */
    virtual ~ConfigBackendsPage();

private:
    struct FormatOptions
    {
        // TODO remove the string lists
        TQString format;
        TQGroupBox* group;
        TQGridLayout* grid;
        TQLabel* lEncoder;
        KComboBox* cEncoder;
        TQLabel* lStrength;
        TQSlider* sStrength;
        TQLabel* lStrengthDisplay;
        TQLabel* lDecoder;
        KComboBox* cDecoder;
        TQLabel* lReplayGain;
        KComboBox* cReplayGain;
        TQCheckBox* cInternalReplayGain;
    };

    TQValueList<FormatOptions> formatOptions;

    TQGridLayout* grid;
    KScrollView* scrollView;
    TQVBox* box;

    KComboBox* cRipper;

    Config* config;

    TQMap<TQString, TQString>* binaries;

public slots:
    void resetDefaults();
    void saveSettings();
    void rebuild();
    void refill();
    void encoderChanged();
    void strengthChanged();

};

#endif // CONFIGBACKENDSPAGE_H