blob: 4a5de228ed115c7be1284f8f56c9540590d5eabb (
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
#ifndef OPTIONSDETAILED_H
#define OPTIONSDETAILED_H
#include "outputdirectory.h"
#include "conversionoptions.h"
#include <tqwidget.h>
class Config;
//class OutputDirectory;
class ConversionOptions;
class TQLabel;
class KIntSpinBox;
class TQCheckBox;
class KComboBox;
class KLineEdit;
class KToolBarButton;
/**
* @short The options widget for setting up the output options more detailed
* @author Daniel Faust <[email protected]>
* @version 0.3
*/
class OptionsDetailed : public TQWidget
{
Q_OBJECT
public:
/**
* Constructor
*/
OptionsDetailed( Config*, TQWidget* parent=0, const char* name=0 );
/**
* Destructor
*/
virtual ~OptionsDetailed();
/**
* Return the current options
*/
ConversionOptions getCurrentOptions();
/**
* Set the current options
*/
void setCurrentOptions( const ConversionOptions& );
/**
* Refills the whole form (e.g. after a config change)
*/
void refill(); // TODO syncronize with optionsSimple
private:
KComboBox* cFormat;
KComboBox* cQualityMode;
KIntSpinBox* iQuality;
KComboBox* cBitrateMode;
TQCheckBox* cBitrateRangeSwitch;
KIntSpinBox* iMinBitrate;
TQLabel* lBitrateRangeTo;
KIntSpinBox* iMaxBitrate;
TQLabel* lBitrateRangeUnit;
TQCheckBox* cSamplingrateSwitch;
KComboBox* cSamplingrate;
TQLabel* lSamplingrateUnit;
TQCheckBox* cChannelsSwitch;
KComboBox* cChannels;
TQCheckBox* cReplayGain;
KToolBarButton* pProfileSave;
KLineEdit* lUserOptions;
TQWidget* normalOptions;
TQWidget* advancedOptions;
OutputDirectory* outputDirectory;
Config* config;
// TQString getQualityMode();
TQString lastQualityMode;
/** because we can't search within combo boxes, we need a seperate string lists, that we can search */
TQStringList sFormat;
TQStringList sQualityMode;
TQStringList sBitrateMode;
TQStringList sChannels;
int formatIndex( const TQString &string );
int qualityModeIndex( const TQString &string );
int bitrateModeIndex( const TQString &string );
int channelsIndex( const TQString &string );
int getQuality();
bool getBitrateRangeEnabled();
bool getSamplingrateEnabled();
int getSamplingrate();
bool getChannelsEnabled();
TQString getChannels();
private slots:
void formatChanged();
void qualityModeChanged();
void qualityChanged();
void bitrateModeChanged();
void bitrateRangeToggled();
void samplingrateToggled();
void channelsToggled();
void saveProfile();
void somethingChanged();
public:
TQString getFormat();
OutputDirectory::Mode getOutputDirectoryMode();
TQString getOutputDirectoryPath();
void setFormat( const TQString &format );
void setQualityMode( const TQString &qualityMode );
void setQuality( int quality );
void setBitrateMode( const TQString &bitrateMode );
void setBitrateRangeEnabled( bool enabled );
void setMinBitrate( int bitrate );
void setMaxBitrate( int bitrate );
void setSamplingrateEnabled( bool enabled );
void setSamplingrate( int sampleRate );
void setSamplingrate( const TQString &sampleRate );
void setChannelsEnabled( bool enabled );
void setChannels( const TQString &channels );
void setReplayGainEnabled( bool enabled );
void setOutputDirectoryMode( OutputDirectory::Mode mode );
void setOutputDirectoryPath( const TQString &path );
void setUserOptions( const TQString &options );
public slots:
void toggleAdvancedOptions();
signals:
void optionsChanged();
};
#endif // OPTIONSDETAILED_H
|