From 0d382a262c0638d0f572fc37193ccc5ed3dc895f Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 17 Feb 2010 00:32:19 +0000 Subject: 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 --- k9author/k9menu.h | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 k9author/k9menu.h (limited to 'k9author/k9menu.h') diff --git a/k9author/k9menu.h b/k9author/k9menu.h new file mode 100644 index 0000000..91e8a20 --- /dev/null +++ b/k9author/k9menu.h @@ -0,0 +1,71 @@ +// +// C++ Interface: k9menu +// +// Description: +// +// +// Author: Jean-Michel PETIT , (C) 2007 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef K9MENU_H +#define K9MENU_H + +#include "k9common.h" +#include "k9config.h" +#include +#include +#include +#include +#include +#include +/** + @author Jean-Michel PETIT +*/ +class k9MenuButton; +class k9Menu : public QObject { + Q_OBJECT +public slots: + void setStartScript(const QString &); + void setStartScript2(const QString &); + void setEndScript(const QString& _value); + +public: + enum eFormat { + PAL=1,NTSC=2 + }; + k9Menu(QObject *parent = 0, const char *name = 0); + ~k9Menu(); + k9MenuButton *addButton(); + void createMenus(QDomElement *_rootNode); + void setWorkDir(const QString& _value); + QString getWorkDir() const; + void setFormat(const eFormat& _value); + void setMenuFileName(const QString& _value); + QString getMenuFileName() const; + + void setCanvas(QCanvas* _value); + QCanvas* getCanvas() const; + + QString getStartScript() const; + QString getEndScript() const; + QString getStartScript2() const; +private: + QPtrList m_buttons; + QString m_workDir; + QString m_menuFileName; + eFormat m_format; + QCanvas *m_canvas; + QString m_startScript; + QString m_startScript2; + QString m_endScript; + k9Config *m_config; + void convertJpegToMpeg(const QString &_imageJpg,const QString &_imageMpg) ; + void createAudio(const QString & _audioFile); + void multiplex(const QString &_audio, const QString &_video, const QString _result); + void spumux(const QString &_hiFileName,const QString &_mpgFileName); + void appendMenu(QDomElement *_rootNode); +}; + +#endif -- cgit v1.2.1