diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
commit | f2cfda2a54780868dfe0af7bd652fcd4906547da (patch) | |
tree | c6ac23545528f5701818424f2af5f79ce3665e6c /src/optionssimple.h | |
download | soundkonverter-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/optionssimple.h')
-rwxr-xr-x | src/optionssimple.h | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/src/optionssimple.h b/src/optionssimple.h new file mode 100755 index 0000000..bb88d22 --- /dev/null +++ b/src/optionssimple.h @@ -0,0 +1,107 @@ + + +#ifndef OPTIONSSIMPLE_H +#define OPTIONSSIMPLE_H + +#include "outputdirectory.h" +#include "conversionoptions.h" + +#include <qwidget.h> + +class Config; +class ConversionOptions; +class OptionsDetailed; + +class KComboBox; +class KToolBarButton; +class KPushButton; + +/** + * @short The options widget for setting up the output options very easy + * @author Daniel Faust <[email protected]> + * @version 0.3 + */ +class OptionsSimple : public QWidget +{ + Q_OBJECT +public: + /** + * Constructor + */ + OptionsSimple( Config*, OptionsDetailed*, const QString &text, QWidget* parent=0, const char* name=0 ); + + /** + * Detructor + */ + virtual ~OptionsSimple(); + + /** + * Set the current options + */ +// void setCurrentOptions( const ConversionOptions& ); + + /** + * Refills the whole form (e.g. after a config change) + */ + void refill(); // TODO syncronize with optionsDetailed + + void setCurrentProfile( const QString& profile ); + void setCurrentFormat( const QString& format ); + void setCurrentOutputDirectory( const QString& directory ); + +private: + KComboBox* cProfile; + KPushButton* pProfileRemove; + KPushButton* pProfileInfo; + KComboBox* cFormat; + KPushButton* pFormatInfo; + + OutputDirectory* outputDirectory; + + Config* config; + OptionsDetailed* optionsDetailed; + + QStringList sProfile; + QStringList sFormat; + + int profileIndex( const QString& string ); + int formatIndex( const QString& string ); + +//public slots: +// void setProfile( const QString &profile ); +// void setFormat( const QString &format ); + +private slots: + void profileInfo(); + void profileRemove(); + void formatInfo(); + void profileChanged(); + void formatChanged(); + void outputDirectoryModeChanged( OutputDirectory::Mode ); + void outputDirectoryPathChanged( const QString& ); + + void somethingChanged(); + +signals: +// 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 ); +// void setOutputDirectoryPath( const QString& directory ); +// void setOptions( const ConversionOptions& options ); +// void setUserOptions( const QString& options ); + + void optionsChanged(); +}; + +#endif |