|
|
@ -122,7 +122,7 @@ void k9Copy::createCopyWindows() {
|
|
|
|
m_ToolViews.append(acc);
|
|
|
|
m_ToolViews.append(acc);
|
|
|
|
|
|
|
|
|
|
|
|
if (m_useXine) {
|
|
|
|
if (m_useXine) {
|
|
|
|
m_mp2=new K9Mplayer(TQT_TQOBJECT(this));
|
|
|
|
m_mp2=new K9Mplayer(this);
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
m_mp2=new kViewMPEG2();
|
|
|
|
m_mp2=new kViewMPEG2();
|
|
|
|
|
|
|
|
|
|
|
@ -251,18 +251,18 @@ bool k9Copy::queryClose ( ) {
|
|
|
|
|
|
|
|
|
|
|
|
void k9Copy::setupActions() {
|
|
|
|
void k9Copy::setupActions() {
|
|
|
|
|
|
|
|
|
|
|
|
m_actions["open"]=KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection());
|
|
|
|
m_actions["open"]=KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
|
|
|
|
m_actions["quit"]=KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(quit()), actionCollection());
|
|
|
|
m_actions["quit"]=KStdAction::quit(this, TQT_SLOT(quit()), actionCollection());
|
|
|
|
m_actions["preferences"]=KStdAction::preferences(TQT_TQOBJECT(this),TQT_SLOT(preferences()),actionCollection());
|
|
|
|
m_actions["preferences"]=KStdAction::preferences(this,TQT_SLOT(preferences()),actionCollection());
|
|
|
|
KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureKeys()), actionCollection());
|
|
|
|
KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
|
|
|
|
KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureToolbars()), actionCollection());
|
|
|
|
KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setStandardToolBarMenuEnabled(TRUE);
|
|
|
|
setStandardToolBarMenuEnabled(TRUE);
|
|
|
|
createStandardStatusBarAction();
|
|
|
|
createStandardStatusBarAction();
|
|
|
|
|
|
|
|
|
|
|
|
PlayTitleAction = new TDEAction(i18n("Play title"), 0,
|
|
|
|
PlayTitleAction = new TDEAction(i18n("Play title"), 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(ActionPlayTitle()),
|
|
|
|
this, TQT_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,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(ActionCopy()),
|
|
|
|
this, TQT_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,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(ActionMpeg2()),
|
|
|
|
this, TQT_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,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(ActionMP4()),
|
|
|
|
this, TQT_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,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(ActionEject()),
|
|
|
|
this, TQT_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,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(ActionBackup()),
|
|
|
|
this, TQT_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,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(ActionAuthor()),
|
|
|
|
this, TQT_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,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(ActionCreate()),
|
|
|
|
this, TQT_SLOT(ActionCreate()),
|
|
|
|
actionCollection(), "Create");
|
|
|
|
actionCollection(), "Create");
|
|
|
|
m_actions["create"]->setIcon("author");
|
|
|
|
m_actions["create"]->setIcon("author");
|
|
|
|
|
|
|
|
|
|
|
@ -393,7 +393,7 @@ void k9Copy::preferences() {
|
|
|
|
m_ToolViews.removeRef(m_previewAcc);
|
|
|
|
m_ToolViews.removeRef(m_previewAcc);
|
|
|
|
|
|
|
|
|
|
|
|
if (m_useXine)
|
|
|
|
if (m_useXine)
|
|
|
|
m_mp2=new K9Mplayer(TQT_TQOBJECT(this));
|
|
|
|
m_mp2=new K9Mplayer(this);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
m_mp2=new kViewMPEG2();
|
|
|
|
m_mp2=new kViewMPEG2();
|
|
|
|
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"));
|
|
|
|