|
|
|
@ -129,8 +129,8 @@ void k9Copy::createCopyWindows() {
|
|
|
|
|
m_previewAcc=addToolWindow(m_mp2,KDockWidget::DockRight,getMainDockWidget(),0,i18n("Preview"),i18n("Preview"));
|
|
|
|
|
m_ToolViews.append(m_previewAcc);
|
|
|
|
|
|
|
|
|
|
connect(m_k9Main,TQT_SIGNAL(showPreview( k9DVD*, k9DVDTitle*,int )),m_mp2,TQT_SLOT(open( k9DVD*, k9DVDTitle*,int )));
|
|
|
|
|
connect(m_k9Main,TQT_SIGNAL(stopPreview()),m_mp2,TQT_SLOT(bStopClick()));
|
|
|
|
|
connect(m_k9Main,TQ_SIGNAL(showPreview( k9DVD*, k9DVDTitle*,int )),m_mp2,TQ_SLOT(open( k9DVD*, k9DVDTitle*,int )));
|
|
|
|
|
connect(m_k9Main,TQ_SIGNAL(stopPreview()),m_mp2,TQ_SLOT(bStopClick()));
|
|
|
|
|
|
|
|
|
|
m_factors =new k9TitleFactor( this);
|
|
|
|
|
m_factors->setUseDvdAuthor(m_useDvdAuthor);
|
|
|
|
@ -138,8 +138,8 @@ void k9Copy::createCopyWindows() {
|
|
|
|
|
acc=addToolWindow(m_factors,KDockWidget::DockBottom,getMainDockWidget(),10,i18n("Shrink Factor"),i18n("Shrink Factor"));
|
|
|
|
|
m_ToolViews.append(acc);
|
|
|
|
|
|
|
|
|
|
connect(m_k9Main,TQT_SIGNAL(SelectionChanged( k9DVD*,bool )),m_factors,TQT_SLOT(SelectionChanged( k9DVD*,bool )));
|
|
|
|
|
connect(m_k9Main,TQT_SIGNAL(changedTitle( k9DVDTitle* )),m_factors,TQT_SLOT(changedTitle( k9DVDTitle* )));
|
|
|
|
|
connect(m_k9Main,TQ_SIGNAL(SelectionChanged( k9DVD*,bool )),m_factors,TQ_SLOT(SelectionChanged( k9DVD*,bool )));
|
|
|
|
|
connect(m_k9Main,TQ_SIGNAL(changedTitle( k9DVDTitle* )),m_factors,TQ_SLOT(changedTitle( k9DVDTitle* )));
|
|
|
|
|
|
|
|
|
|
KDockWidget *dw=dockManager->findWidgetParentDock (m_factors);
|
|
|
|
|
dw->setForcedFixedHeight(h);
|
|
|
|
@ -148,10 +148,10 @@ void k9Copy::createCopyWindows() {
|
|
|
|
|
|
|
|
|
|
// allow the view to change the statusbar and caption
|
|
|
|
|
|
|
|
|
|
connect(m_k9Main, TQT_SIGNAL(changeStatusbar(const TQString&,int )),
|
|
|
|
|
this, TQT_SLOT(changeStatusbar(const TQString&,int)));
|
|
|
|
|
connect(m_k9Main, TQT_SIGNAL(changeCaption(const TQString&)),
|
|
|
|
|
this, TQT_SLOT(changeCaption(const TQString&)));
|
|
|
|
|
connect(m_k9Main, TQ_SIGNAL(changeStatusbar(const TQString&,int )),
|
|
|
|
|
this, TQ_SLOT(changeStatusbar(const TQString&,int)));
|
|
|
|
|
connect(m_k9Main, TQ_SIGNAL(changeCaption(const TQString&)),
|
|
|
|
|
this, TQ_SLOT(changeCaption(const TQString&)));
|
|
|
|
|
|
|
|
|
|
setAutoSaveSettings();
|
|
|
|
|
KSimpleConfig settings("K9Copy");
|
|
|
|
@ -195,8 +195,8 @@ void k9Copy::createImportWindows() {
|
|
|
|
|
acc=addToolWindow(m_menuEdit, KDockWidget::DockRight, getMainDockWidget(),20,i18n("Edit menu"),i18n("Edit Menu"));
|
|
|
|
|
m_ToolViews.append(acc);
|
|
|
|
|
|
|
|
|
|
connect (m_k9Import,TQT_SIGNAL(titleSelected(k9Title*)),m_menuEdit,TQT_SLOT(titleSelected(k9Title*)));
|
|
|
|
|
connect (m_k9Import,TQT_SIGNAL(rootSelected(k9NewDVD*)),m_menuEdit,TQT_SLOT(rootSelected(k9NewDVD*)));
|
|
|
|
|
connect (m_k9Import,TQ_SIGNAL(titleSelected(k9Title*)),m_menuEdit,TQ_SLOT(titleSelected(k9Title*)));
|
|
|
|
|
connect (m_k9Import,TQ_SIGNAL(rootSelected(k9NewDVD*)),m_menuEdit,TQ_SLOT(rootSelected(k9NewDVD*)));
|
|
|
|
|
m_k9Import->setMenuEdit(m_menuEdit);
|
|
|
|
|
|
|
|
|
|
m_newTitle=new k9NewTitle(this);
|
|
|
|
@ -211,16 +211,16 @@ void k9Copy::createImportWindows() {
|
|
|
|
|
m_chapterEdit->setIcon(SmallIcon("title"));
|
|
|
|
|
acc=addToolWindow(m_chapterEdit, KDockWidget::DockBottom, getMainDockWidget(),20,i18n("Chapter properties"),i18n("Chapter properties"));
|
|
|
|
|
m_ToolViews.append(acc);
|
|
|
|
|
connect(m_k9Import,TQT_SIGNAL(aviFileSelected(k9AviFile*)),m_chapterEdit,TQT_SLOT(setAviFile(k9AviFile*)));
|
|
|
|
|
connect(m_k9Import,TQ_SIGNAL(aviFileSelected(k9AviFile*)),m_chapterEdit,TQ_SLOT(setAviFile(k9AviFile*)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// allow the view to change the statusbar and caption
|
|
|
|
|
/*
|
|
|
|
|
connect(m_k9Main, TQT_SIGNAL(changeStatusbar(const TQString&,int )),
|
|
|
|
|
this, TQT_SLOT(changeStatusbar(const TQString&,int)));
|
|
|
|
|
connect(m_k9Main, TQT_SIGNAL(changeCaption(const TQString&)),
|
|
|
|
|
this, TQT_SLOT(changeCaption(const TQString&)));
|
|
|
|
|
connect(m_k9Main, TQ_SIGNAL(changeStatusbar(const TQString&,int )),
|
|
|
|
|
this, TQ_SLOT(changeStatusbar(const TQString&,int)));
|
|
|
|
|
connect(m_k9Main, TQ_SIGNAL(changeCaption(const TQString&)),
|
|
|
|
|
this, TQ_SLOT(changeCaption(const TQString&)));
|
|
|
|
|
*/
|
|
|
|
|
setAutoSaveSettings();
|
|
|
|
|
KSimpleConfig settings("K9Copy");
|
|
|
|
@ -251,18 +251,18 @@ bool k9Copy::queryClose ( ) {
|
|
|
|
|
|
|
|
|
|
void k9Copy::setupActions() {
|
|
|
|
|
|
|
|
|
|
m_actions["open"]=KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
|
|
|
|
|
m_actions["quit"]=KStdAction::quit(this, TQT_SLOT(quit()), actionCollection());
|
|
|
|
|
m_actions["preferences"]=KStdAction::preferences(this,TQT_SLOT(preferences()),actionCollection());
|
|
|
|
|
KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
|
|
|
|
|
KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
|
|
|
|
|
m_actions["open"]=KStdAction::open(this, TQ_SLOT(fileOpen()), actionCollection());
|
|
|
|
|
m_actions["quit"]=KStdAction::quit(this, TQ_SLOT(quit()), actionCollection());
|
|
|
|
|
m_actions["preferences"]=KStdAction::preferences(this,TQ_SLOT(preferences()),actionCollection());
|
|
|
|
|
KStdAction::keyBindings(this, TQ_SLOT(optionsConfigureKeys()), actionCollection());
|
|
|
|
|
KStdAction::configureToolbars(this, TQ_SLOT(optionsConfigureToolbars()), actionCollection());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setStandardToolBarMenuEnabled(TRUE);
|
|
|
|
|
createStandardStatusBarAction();
|
|
|
|
|
|
|
|
|
|
PlayTitleAction = new TDEAction(i18n("Play title"), 0,
|
|
|
|
|
this, TQT_SLOT(ActionPlayTitle()),
|
|
|
|
|
this, TQ_SLOT(ActionPlayTitle()),
|
|
|
|
|
actionCollection(), "PlayTitle");
|
|
|
|
|
m_actions["playtitle"]=PlayTitleAction;
|
|
|
|
|
|
|
|
|
@ -271,28 +271,28 @@ void k9Copy::setupActions() {
|
|
|
|
|
PlayTitleAction->setIconSet(TQIconSet(img));
|
|
|
|
|
|
|
|
|
|
CopyAction = new TDEAction(i18n("Copy"), 0,
|
|
|
|
|
this, TQT_SLOT(ActionCopy()),
|
|
|
|
|
this, TQ_SLOT(ActionCopy()),
|
|
|
|
|
actionCollection(), "Copy");
|
|
|
|
|
m_actions["copy"]=CopyAction;
|
|
|
|
|
CopyAction->setIcon("dvdcopy");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkMpeg2Action = new TDEAction(i18n("Extract MPEG2"),0,
|
|
|
|
|
this, TQT_SLOT(ActionMpeg2()),
|
|
|
|
|
this, TQ_SLOT(ActionMpeg2()),
|
|
|
|
|
actionCollection(),"MakeMPEG2");
|
|
|
|
|
m_actions["mp2"]=mkMpeg2Action;
|
|
|
|
|
|
|
|
|
|
mkMpeg2Action->setIcon("mpeg");
|
|
|
|
|
|
|
|
|
|
mkMP4Action = new TDEAction(i18n("Create MPEG-4"),0,
|
|
|
|
|
this, TQT_SLOT(ActionMP4()),
|
|
|
|
|
this, TQ_SLOT(ActionMP4()),
|
|
|
|
|
actionCollection(),"MakeMPEG4");
|
|
|
|
|
m_actions["mp4"]=mkMP4Action;
|
|
|
|
|
|
|
|
|
|
mkMP4Action->setIcon("mp4");
|
|
|
|
|
|
|
|
|
|
ejectAction = new TDEAction(i18n("Eject"),0,
|
|
|
|
|
this, TQT_SLOT(ActionEject()),
|
|
|
|
|
this, TQ_SLOT(ActionEject()),
|
|
|
|
|
actionCollection() , "Eject");
|
|
|
|
|
ejectAction->setIcon("player_eject");
|
|
|
|
|
|
|
|
|
@ -300,19 +300,19 @@ void k9Copy::setupActions() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
backupAction= new TDERadioAction(i18n("DVD Backup"),0,
|
|
|
|
|
this, TQT_SLOT(ActionBackup()),
|
|
|
|
|
this, TQ_SLOT(ActionBackup()),
|
|
|
|
|
actionCollection(), "backup");
|
|
|
|
|
backupAction->setExclusiveGroup("mode");
|
|
|
|
|
m_actions["backup"]=backupAction;
|
|
|
|
|
|
|
|
|
|
authorAction= new TDERadioAction(i18n("DVD Author"),0,
|
|
|
|
|
this, TQT_SLOT(ActionAuthor()),
|
|
|
|
|
this, TQ_SLOT(ActionAuthor()),
|
|
|
|
|
actionCollection(), "author");
|
|
|
|
|
authorAction->setExclusiveGroup("mode");
|
|
|
|
|
m_actions["author"]=authorAction;
|
|
|
|
|
|
|
|
|
|
m_actions["create"]= new TDEAction(i18n("Create DVD"),0,
|
|
|
|
|
this, TQT_SLOT(ActionCreate()),
|
|
|
|
|
this, TQ_SLOT(ActionCreate()),
|
|
|
|
|
actionCollection(), "Create");
|
|
|
|
|
m_actions["create"]->setIcon("author");
|
|
|
|
|
|
|
|
|
@ -354,7 +354,7 @@ void k9Copy::optionsConfigureToolbars() {
|
|
|
|
|
// use the standard toolbar editor
|
|
|
|
|
saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
|
|
|
|
|
KEditToolbar dlg(factory());
|
|
|
|
|
connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(newToolbarConfig()));
|
|
|
|
|
connect(&dlg,TQ_SIGNAL(newToolbarConfig()),this,TQ_SLOT(newToolbarConfig()));
|
|
|
|
|
dlg.exec();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -375,8 +375,8 @@ void k9Copy::fileOpen() {
|
|
|
|
|
void k9Copy::addMp4TitleOptions() {
|
|
|
|
|
m_mp4=new k9MP4Title(this);
|
|
|
|
|
m_ToolViews.append(addToolWindow(m_mp4,KDockWidget::DockBottom,getMainDockWidget(),10,i18n("MPEG4 Encoding options"),i18n("MPEG4 Encoding Options")));
|
|
|
|
|
connect(m_k9Main,TQT_SIGNAL(changedTitle( k9DVDTitle* )),m_mp4,TQT_SLOT(titleChanged( k9DVDTitle* )));
|
|
|
|
|
connect(m_k9Main,TQT_SIGNAL(SelectionChanged( k9DVD*,bool )),m_mp4,TQT_SLOT(selectionChanged( k9DVD*,bool )));
|
|
|
|
|
connect(m_k9Main,TQ_SIGNAL(changedTitle( k9DVDTitle* )),m_mp4,TQ_SLOT(titleChanged( k9DVDTitle* )));
|
|
|
|
|
connect(m_k9Main,TQ_SIGNAL(SelectionChanged( k9DVD*,bool )),m_mp4,TQ_SLOT(selectionChanged( k9DVD*,bool )));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -399,8 +399,8 @@ void k9Copy::preferences() {
|
|
|
|
|
m_previewAcc=addToolWindow(m_mp2,KDockWidget::DockRight,getMainDockWidget(),0,i18n("Preview"),i18n("Preview"));
|
|
|
|
|
m_ToolViews.append(m_previewAcc);
|
|
|
|
|
//kViewMPEG2 * v=(kViewMPEG2*) m_mp2;
|
|
|
|
|
connect(m_k9Main,TQT_SIGNAL(showPreview( k9DVD*, k9DVDTitle*,int )),m_mp2,TQT_SLOT(open( k9DVD*, k9DVDTitle*,int )));
|
|
|
|
|
connect(m_k9Main,TQT_SIGNAL(stopPreview()),m_mp2,TQT_SLOT(bStopClick()));
|
|
|
|
|
connect(m_k9Main,TQ_SIGNAL(showPreview( k9DVD*, k9DVDTitle*,int )),m_mp2,TQ_SLOT(open( k9DVD*, k9DVDTitle*,int )));
|
|
|
|
|
connect(m_k9Main,TQ_SIGNAL(stopPreview()),m_mp2,TQ_SLOT(bStopClick()));
|
|
|
|
|
|
|
|
|
|
m_mp4->load();
|
|
|
|
|
}
|
|
|
|
|