summaryrefslogtreecommitdiffstats
path: root/src/outputdirectory.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/outputdirectory.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/outputdirectory.h')
-rwxr-xr-xsrc/outputdirectory.h92
1 files changed, 92 insertions, 0 deletions
diff --git a/src/outputdirectory.h b/src/outputdirectory.h
new file mode 100755
index 0000000..85b5236
--- /dev/null
+++ b/src/outputdirectory.h
@@ -0,0 +1,92 @@
+
+
+#ifndef OUTPUTDIRECTORY_H
+#define OUTPUTDIRECTORY_H
+
+#include <qwidget.h>
+#include <kprocess.h>
+
+class FileListItem;
+
+class Config;
+class KComboBox;
+class KLineEdit;
+class KToolBarButton;
+
+/**
+ * @short The input area for the output directory
+ * @author Daniel Faust <[email protected]>
+ * @version 0.3
+ */
+class OutputDirectory : public QWidget
+{
+ Q_OBJECT
+public:
+ enum Mode {
+// Default,
+ MetaData,
+ Source,
+ Specify,
+ CopyStructure
+ };
+
+ /**
+ * Constructor
+ */
+ OutputDirectory( Config*, QWidget* parent = 0, const char* name = 0 );
+
+ Mode mode();
+ void setMode( Mode );
+ QString directory();
+ void setDirectory( const QString& );
+
+ static QString calcPath( FileListItem* fileListItem, Config* config, QString extension = "" );
+ static QString changeExtension( const QString& filename, const QString& extension );
+ static QString uniqueFileName( const QString& filename );
+ static QString makePath( const QString& path );
+ static QString vfatPath( const QString& path );
+
+ /**
+ * Destructor
+ */
+ virtual ~OutputDirectory();
+
+public slots:
+ //void setActive( bool );
+ void enable();
+ void disable();
+
+private slots:
+ void modeChangedSlot( int );
+ void directoryChangedSlot( const QString& );
+ void selectDir();
+ void gotoDir();
+ //void modeInfo();
+ //void dirInfo();
+ //void savePaths();
+
+private:
+ KComboBox* cMode;
+ //KToolBarButton* pModeInfo;
+ KLineEdit* lDir;
+ KToolBarButton* pDirSelect;
+ KToolBarButton* pDirGoto;
+ //KToolBarButton* pDirInfo;
+ KToolBarButton* pClear;
+
+ bool modeJustChanged;
+
+ KProcess kfm;
+
+ Config* config;
+
+/* QString sharedDirPath;
+ QString metadataPath;
+ QString copyStructurePath;
+*/
+signals:
+ void modeChanged( OutputDirectory::Mode );
+ void directoryChanged( const QString& );
+};
+
+#endif // OUTPUTDIRECTORY_H