summaryrefslogtreecommitdiffstats
path: root/src/k9copy.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
commitb0e912c8b3d02a518fedda28c3180eb4794a7520 (patch)
tree07d344862562fab58cbe2df39d13d16f2e4d2bea /src/k9copy.cpp
parent4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff)
downloadk9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz
k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k9copy.cpp')
-rw-r--r--src/k9copy.cpp94
1 files changed, 47 insertions, 47 deletions
diff --git a/src/k9copy.cpp b/src/k9copy.cpp
index a65fdf5..ba0275e 100644
--- a/src/k9copy.cpp
+++ b/src/k9copy.cpp
@@ -23,13 +23,13 @@
#include <kdockwidget.h>
#include <kmdidefines.h>
#include <kmdichildarea.h>
-#include <qframe.h>
+#include <tqframe.h>
#include <kkeydialog.h>
#include <kedittoolbar.h>
#include <klibloader.h>
#include "kviewmpeg2.h"
#include "k9titlefactor.h"
-#include <qdom.h>
+#include <tqdom.h>
#include <ksimpleconfig.h>
#include "k9mp4title.h"
#include "k9tools.h"
@@ -65,7 +65,7 @@ k9Copy::k9Copy()
// automatically save settings if changed: window size, toolbar
// position, icon size, etc. Also to add actions for the statusbar
// toolbar, and keybindings if necessary.
- resize(QSize(800,600));
+ resize(TQSize(800,600));
setToolviewStyle(KMdi::TextAndIcon);
createCopyWindows();
@@ -121,15 +121,15 @@ void k9Copy::createCopyWindows() {
m_ToolViews.append(acc);
if (m_useXine) {
- m_mp2=new K9Mplayer(this);
+ m_mp2=new K9Mplayer(TQT_TQOBJECT(this));
} else
m_mp2=new kViewMPEG2();
m_previewAcc=addToolWindow(m_mp2,KDockWidget::DockRight,getMainDockWidget(),0,i18n("Preview"),i18n("Preview"));
m_ToolViews.append(m_previewAcc);
- connect(m_k9Main,SIGNAL(showPreview( k9DVD*, k9DVDTitle*,int )),m_mp2,SLOT(open( k9DVD*, k9DVDTitle*,int )));
- connect(m_k9Main,SIGNAL(stopPreview()),m_mp2,SLOT(bStopClick()));
+ 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()));
m_factors =new k9TitleFactor( this);
m_factors->setUseDvdAuthor(m_useDvdAuthor);
@@ -137,8 +137,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,SIGNAL(SelectionChanged( k9DVD*,bool )),m_factors,SLOT(SelectionChanged( k9DVD*,bool )));
- connect(m_k9Main,SIGNAL(changedTitle( k9DVDTitle* )),m_factors,SLOT(changedTitle( k9DVDTitle* )));
+ 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* )));
KDockWidget *dw=dockManager->findWidgetParentDock (m_factors);
dw->setForcedFixedHeight(h);
@@ -147,10 +147,10 @@ void k9Copy::createCopyWindows() {
// allow the view to change the statusbar and caption
- connect(m_k9Main, SIGNAL(changeStatusbar(const QString&,int )),
- this, SLOT(changeStatusbar(const QString&,int)));
- connect(m_k9Main, SIGNAL(changeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ 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&)));
setAutoSaveSettings();
KSimpleConfig settings("K9Copy");
@@ -194,8 +194,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,SIGNAL(titleSelected(k9Title*)),m_menuEdit,SLOT(titleSelected(k9Title*)));
- connect (m_k9Import,SIGNAL(rootSelected(k9NewDVD*)),m_menuEdit,SLOT(rootSelected(k9NewDVD*)));
+ 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*)));
m_k9Import->setMenuEdit(m_menuEdit);
m_newTitle=new k9NewTitle(this);
@@ -210,16 +210,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,SIGNAL(aviFileSelected(k9AviFile*)),m_chapterEdit,SLOT(setAviFile(k9AviFile*)));
+ connect(m_k9Import,TQT_SIGNAL(aviFileSelected(k9AviFile*)),m_chapterEdit,TQT_SLOT(setAviFile(k9AviFile*)));
// allow the view to change the statusbar and caption
/*
- connect(m_k9Main, SIGNAL(changeStatusbar(const QString&,int )),
- this, SLOT(changeStatusbar(const QString&,int)));
- connect(m_k9Main, SIGNAL(changeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
+ 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&)));
*/
setAutoSaveSettings();
KSimpleConfig settings("K9Copy");
@@ -250,48 +250,48 @@ bool k9Copy::queryClose ( ) {
void k9Copy::setupActions() {
- m_actions["open"]=KStdAction::open(this, SLOT(fileOpen()), actionCollection());
- m_actions["quit"]=KStdAction::quit(this, SLOT(quit()), actionCollection());
- m_actions["preferences"]=KStdAction::preferences(this,SLOT(preferences()),actionCollection());
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
+ m_actions["open"]=KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection());
+ m_actions["quit"]=KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(quit()), actionCollection());
+ m_actions["preferences"]=KStdAction::preferences(TQT_TQOBJECT(this),TQT_SLOT(preferences()),actionCollection());
+ KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureToolbars()), actionCollection());
setStandardToolBarMenuEnabled(TRUE);
createStandardStatusBarAction();
PlayTitleAction = new KAction(i18n("Play title"), 0,
- this, SLOT(ActionPlayTitle()),
+ TQT_TQOBJECT(this), TQT_SLOT(ActionPlayTitle()),
actionCollection(), "PlayTitle");
m_actions["playtitle"]=PlayTitleAction;
- QImage img;
+ TQImage img;
img.loadFromData( img_preview, sizeof( img_preview ), "PNG" );
- PlayTitleAction->setIconSet(QIconSet(img));
+ PlayTitleAction->setIconSet(TQIconSet(img));
CopyAction = new KAction(i18n("Copy"), 0,
- this, SLOT(ActionCopy()),
+ TQT_TQOBJECT(this), TQT_SLOT(ActionCopy()),
actionCollection(), "Copy");
m_actions["copy"]=CopyAction;
CopyAction->setIcon("dvdcopy");
mkMpeg2Action = new KAction(i18n("Extract MPEG2"),0,
- this, SLOT(ActionMpeg2()),
+ TQT_TQOBJECT(this), TQT_SLOT(ActionMpeg2()),
actionCollection(),"MakeMPEG2");
m_actions["mp2"]=mkMpeg2Action;
mkMpeg2Action->setIcon("mpeg");
mkMP4Action = new KAction(i18n("Create MPEG-4"),0,
- this, SLOT(ActionMP4()),
+ TQT_TQOBJECT(this), TQT_SLOT(ActionMP4()),
actionCollection(),"MakeMPEG4");
m_actions["mp4"]=mkMP4Action;
mkMP4Action->setIcon("mp4");
ejectAction = new KAction(i18n("Eject"),0,
- this, SLOT(ActionEject()),
+ TQT_TQOBJECT(this), TQT_SLOT(ActionEject()),
actionCollection() , "Eject");
ejectAction->setIcon("player_eject");
@@ -299,19 +299,19 @@ void k9Copy::setupActions() {
backupAction= new KRadioAction(i18n("DVD Backup"),0,
- this, SLOT(ActionBackup()),
+ TQT_TQOBJECT(this), TQT_SLOT(ActionBackup()),
actionCollection(), "backup");
backupAction->setExclusiveGroup("mode");
m_actions["backup"]=backupAction;
authorAction= new KRadioAction(i18n("DVD Author"),0,
- this, SLOT(ActionAuthor()),
+ TQT_TQOBJECT(this), TQT_SLOT(ActionAuthor()),
actionCollection(), "author");
authorAction->setExclusiveGroup("mode");
m_actions["author"]=authorAction;
m_actions["create"]= new KAction(i18n("Create DVD"),0,
- this, SLOT(ActionCreate()),
+ TQT_TQOBJECT(this), TQT_SLOT(ActionCreate()),
actionCollection(), "Create");
m_actions["create"]->setIcon("author");
@@ -353,7 +353,7 @@ void k9Copy::optionsConfigureToolbars() {
// use the standard toolbar editor
saveMainWindowSettings(KGlobal::config(), autoSaveGroup());
KEditToolbar dlg(factory());
- connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(newToolbarConfig()));
+ connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(newToolbarConfig()));
dlg.exec();
}
@@ -374,8 +374,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,SIGNAL(changedTitle( k9DVDTitle* )),m_mp4,SLOT(titleChanged( k9DVDTitle* )));
- connect(m_k9Main,SIGNAL(SelectionChanged( k9DVD*,bool )),m_mp4,SLOT(selectionChanged( k9DVD*,bool )));
+ 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 )));
}
@@ -392,14 +392,14 @@ void k9Copy::preferences() {
m_ToolViews.removeRef(m_previewAcc);
if (m_useXine)
- m_mp2=new K9Mplayer(this);
+ m_mp2=new K9Mplayer(TQT_TQOBJECT(this));
else
m_mp2=new kViewMPEG2();
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,SIGNAL(showPreview( k9DVD*, k9DVDTitle*,int )),m_mp2,SLOT(open( k9DVD*, k9DVDTitle*,int )));
- connect(m_k9Main,SIGNAL(stopPreview()),m_mp2,SLOT(bStopClick()));
+ 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()));
m_mp4->load();
}
@@ -444,7 +444,7 @@ void k9Copy::ActionCreate() {
m_k9Import->execute();
}
-KMdiToolViewAccessor * k9Copy::setToolWindow(QWidget *_widget,KDockWidget::DockPosition _pos,const QString &tabToolTip,const QString &tabCaption) {
+KMdiToolViewAccessor * k9Copy::setToolWindow(TQWidget *_widget,KDockWidget::DockPosition _pos,const TQString &tabToolTip,const TQString &tabCaption) {
KMdiToolViewAccessor *acc=addToolWindow(_widget, _pos, getMainDockWidget(),0,tabToolTip,tabCaption);
m_ToolViews.append(acc);
return acc;
@@ -456,26 +456,26 @@ void k9Copy::removeToolWindow(KMdiToolViewAccessor *toolWin) {
}
-void k9Copy::changeStatusbar(const QString& text,int id) {
+void k9Copy::changeStatusbar(const TQString& text,int id) {
// display the text on the statusbar
statusBar()->changeItem(text,id);
}
-void k9Copy::changeCaption(const QString& text) {
+void k9Copy::changeCaption(const TQString& text) {
// display the text on the caption
setCaption(text);
}
-void k9Copy::clone( QString _input,QString _output) {
+void k9Copy::clone( TQString _input,TQString _output) {
show();
m_k9Main->Clone( _input,_output);
}
-void k9Copy::setInput(QString _input) {
+void k9Copy::setInput(TQString _input) {
m_k9Main->setInput(_input);
}
-void k9Copy::setOutput(QString _output) {
+void k9Copy::setOutput(TQString _output) {
m_k9Main->setOutput(_output);
}
@@ -494,7 +494,7 @@ void k9Copy::saveDock() {
}
}
-void k9Copy::closeEvent( QCloseEvent* ce ) {
+void k9Copy::closeEvent( TQCloseEvent* ce ) {
saveDock();
ce->accept();
kapp->quit();