diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
commit | 0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch) | |
tree | 8578dcddfce4191f3f7a142a37769df7add48475 /src/k9copy.h | |
download | k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.tar.gz k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.zip |
Added old abandoned version of k9copy
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1091546 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k9copy.h')
-rw-r--r-- | src/k9copy.h | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/src/k9copy.h b/src/k9copy.h new file mode 100644 index 0000000..2fb43f4 --- /dev/null +++ b/src/k9copy.h @@ -0,0 +1,121 @@ +// +// C++ Interface: k9copy +// +// Description: +// +// +// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2005 +// +// Copyright: See COPYING file that comes with this distribution +// +// + + +#ifndef _K9COPY_H_ +#define _K9COPY_H_ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "k9common.h" +#include "k9cddrive.h" +#include <kapplication.h> +#include <kmdimainfrm.h> + +enum eStatusBarId {sbMessage=0,sbFactor=1}; + +class k9Import; +class k9Main; +class kViewMPEG2; +class k9PlaybackOptions; +class k9LangSelect; +class k9MP4Title; +class k9TitleFactor; +class k9MenuEdit; +class k9NewTitle; +class k9ChapterEdit; +class k9Copy : public KMdiMainFrm { + Q_OBJECT +public: + /** + * Default Constructor + */ + k9Copy(); + + void clone(QString _input,QString _output); + void setInput(QString _input); + void setOutput(QString _output); + + KDockWidget* getVisibleDock(); + KMdiToolViewAccessor * setToolWindow(QWidget *_widget,KDockWidget::DockPosition _pos,const QString &tabToolTip,const QString &tabCaption) ; + void removeToolWindow(KMdiToolViewAccessor *toolWin); + + /** + * Default Destructor + */ + virtual ~k9Copy(); + +protected: + bool queryClose( ); + void closeEvent( QCloseEvent* ce ); + +private slots: + void ActionCopy(); + void ActionMP4(); + void ActionEject(); + void ActionMpeg2(); + void ActionBackup(); + void ActionAuthor(); + void ActionPlayTitle(); + void ActionCreate(); + void changeStatusbar(const QString& text,int id); + void changeCaption(const QString& text); + void optionsConfigureKeys(); + void optionsConfigureToolbars(); + void newToolbarConfig(); + void addMp4TitleOptions(); +public slots: + void fileOpen(); + void preferences(); + void quit(); + void setActions(bool enabled); + void setEnabledCreateDVD(bool _state); +private: + void setupAccel(); + void setupActions(); + void initCodecs(); + void createImportWindows(); + void createCopyWindows(); + void removeToolWindows(); + void saveDock(); + KAction *CopyAction; + KAction *PlayTitleAction; + KAction *mkMP4Action; + KAction *mkMpeg2Action; + KAction *ejectAction; + KRadioAction *backupAction; + KRadioAction *authorAction; +private: + k9Main *m_k9Main; + KMdiChildView *m_k9MainView,*m_k9ImportView; + KMdiToolViewAccessor *m_previewAcc; + k9PlaybackOptions *m_options; + k9TitleFactor *m_factors; + k9LangSelect *m_lang; + k9MP4Title *m_mp4; + QWidget *m_mp2; + k9MenuEdit *m_menuEdit; + k9NewTitle *m_newTitle; + k9ChapterEdit *m_chapterEdit; + k9Import *m_k9Import; + bool m_useXine; + bool m_useDvdAuthor; + QMap <QString,KAction*> m_actions; + QPtrList <KMdiToolViewAccessor> m_ToolViews; + k9CdDrives m_drives; +}; + + + +#endif |