blob: 66262fcca9929cf3d88eb09ff9ea3b15def8406a (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
//
// 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 <tdeapplication.h>
#include <tdemdimainfrm.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 {
TQ_OBJECT
public:
/**
* Default Constructor
*/
k9Copy();
void clone(TQString _input,TQString _output);
void setInput(TQString _input);
void setOutput(TQString _output);
KDockWidget* getVisibleDock();
KMdiToolViewAccessor * setToolWindow(TQWidget *_widget,KDockWidget::DockPosition _pos,const TQString &tabToolTip,const TQString &tabCaption) ;
void removeToolWindow(KMdiToolViewAccessor *toolWin);
/**
* Default Destructor
*/
virtual ~k9Copy();
protected:
bool queryClose( );
void closeEvent( TQCloseEvent* ce );
private slots:
void ActionCopy();
void ActionMP4();
void ActionEject();
void ActionMpeg2();
void ActionBackup();
void ActionAuthor();
void ActionPlayTitle();
void ActionCreate();
void changeStatusbar(const TQString& text,int id);
void changeCaption(const TQString& 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();
TDEAction *CopyAction;
TDEAction *PlayTitleAction;
TDEAction *mkMP4Action;
TDEAction *mkMpeg2Action;
TDEAction *ejectAction;
TDERadioAction *backupAction;
TDERadioAction *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;
TQWidget *m_mp2;
k9MenuEdit *m_menuEdit;
k9NewTitle *m_newTitle;
k9ChapterEdit *m_chapterEdit;
k9Import *m_k9Import;
bool m_useXine;
bool m_useDvdAuthor;
TQMap <TQString,TDEAction*> m_actions;
TQPtrList <KMdiToolViewAccessor> m_ToolViews;
k9CdDrives m_drives;
};
#endif
|