blob: 91e8a20b2eea4ded20370d4d8306375fe838fcf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
//
// C++ Interface: k9menu
//
// Description:
//
//
// Author: Jean-Michel PETIT <[email protected]>, (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 <[email protected]>
*/
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
|