You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k9copy/k9author/k9menu.h

72 lines
1.8 KiB

//
// C++ Interface: k9menu
//
// Description:
//
//
// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef K9MENU_H
#define K9MENU_H
#include "k9common.h"
#include "k9config.h"
#include <qobject.h>
#include <qptrlist.h>
#include <qimage.h>
#include <qfont.h>
#include <qdom.h>
#include <qcanvas.h>
/**
@author Jean-Michel PETIT <k9copy@free.fr>
*/
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 <k9MenuButton> 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