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