summaryrefslogtreecommitdiffstats
path: root/src/optionsdetailed.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-01 19:09:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-01 19:09:31 +0000
commitf2cfda2a54780868dfe0af7bd652fcd4906547da (patch)
treec6ac23545528f5701818424f2af5f79ce3665e6c /src/optionsdetailed.h
downloadsoundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.tar.gz
soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.zip
Added KDE3 version of SoundKonverter
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1097614 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/optionsdetailed.h')
-rwxr-xr-xsrc/optionsdetailed.h145
1 files changed, 145 insertions, 0 deletions
diff --git a/src/optionsdetailed.h b/src/optionsdetailed.h
new file mode 100755
index 0000000..e743907
--- /dev/null
+++ b/src/optionsdetailed.h
@@ -0,0 +1,145 @@
+
+
+#ifndef OPTIONSDETAILED_H
+#define OPTIONSDETAILED_H
+
+#include "outputdirectory.h"
+#include "conversionoptions.h"
+
+#include <qwidget.h>
+
+class Config;
+//class OutputDirectory;
+class ConversionOptions;
+
+class QLabel;
+class KIntSpinBox;
+class QCheckBox;
+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 QWidget
+{
+ Q_OBJECT
+public:
+ /**
+ * Constructor
+ */
+ OptionsDetailed( Config*, QWidget* 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;
+
+ QCheckBox* cBitrateRangeSwitch;
+ KIntSpinBox* iMinBitrate;
+ QLabel* lBitrateRangeTo;
+ KIntSpinBox* iMaxBitrate;
+ QLabel* lBitrateRangeUnit;
+
+ QCheckBox* cSamplingrateSwitch;
+ KComboBox* cSamplingrate;
+ QLabel* lSamplingrateUnit;
+ QCheckBox* cChannelsSwitch;
+ KComboBox* cChannels;
+ QCheckBox* cReplayGain;
+
+ KToolBarButton* pProfileSave;
+
+ KLineEdit* lUserOptions;
+
+ QWidget* normalOptions;
+ QWidget* advancedOptions;
+
+ OutputDirectory* outputDirectory;
+
+ Config* config;
+// QString getQualityMode();
+
+ QString lastQualityMode;
+
+ /** because we can't search within combo boxes, we need a seperate string lists, that we can search */
+ QStringList sFormat;
+ QStringList sQualityMode;
+ QStringList sBitrateMode;
+ QStringList sChannels;
+ int formatIndex( const QString &string );
+ int qualityModeIndex( const QString &string );
+ int bitrateModeIndex( const QString &string );
+ int channelsIndex( const QString &string );
+
+ int getQuality();
+ bool getBitrateRangeEnabled();
+ bool getSamplingrateEnabled();
+ int getSamplingrate();
+ bool getChannelsEnabled();
+ QString getChannels();
+
+private slots:
+ void formatChanged();
+ void qualityModeChanged();
+ void qualityChanged();
+ void bitrateModeChanged();
+ void bitrateRangeToggled();
+ void samplingrateToggled();
+ void channelsToggled();
+ void saveProfile();
+ void somethingChanged();
+
+public:
+ QString getFormat();
+ OutputDirectory::Mode getOutputDirectoryMode();
+ QString getOutputDirectoryPath();
+ void setFormat( const QString &format );
+ void setQualityMode( const QString &qualityMode );
+ void setQuality( int quality );
+ void setBitrateMode( const QString &bitrateMode );
+ void setBitrateRangeEnabled( bool enabled );
+ void setMinBitrate( int bitrate );
+ void setMaxBitrate( int bitrate );
+ void setSamplingrateEnabled( bool enabled );
+ void setSamplingrate( int sampleRate );
+ void setSamplingrate( const QString &sampleRate );
+ void setChannelsEnabled( bool enabled );
+ void setChannels( const QString &channels );
+ void setReplayGainEnabled( bool enabled );
+ void setOutputDirectoryMode( OutputDirectory::Mode mode );
+ void setOutputDirectoryPath( const QString &path );
+ void setUserOptions( const QString &options );
+
+public slots:
+ void toggleAdvancedOptions();
+
+signals:
+ void optionsChanged();
+};
+
+#endif // OPTIONSDETAILED_H