Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 8e93828d75
commit 257013fc4a

@ -91,8 +91,8 @@ void k9MenuEdit::bFontClick() {
if (m_menuEditor->getSelected()) { if (m_menuEditor->getSelected()) {
k9MenuButton *b=m_menuEditor->getSelected(); k9MenuButton *b=m_menuEditor->getSelected();
TQFont myFont(b->getFont()); TQFont myFont(b->getFont());
int result = KFontDialog::getFont( myFont ); int result = TDEFontDialog::getFont( myFont );
if ( result == KFontDialog::Accepted && m_menuEditor->getSelected() ) { if ( result == TDEFontDialog::Accepted && m_menuEditor->getSelected() ) {
TQPtrList <k9MenuButton> *l=m_menuEditor->getSelection(); TQPtrList <k9MenuButton> *l=m_menuEditor->getSelection();
for (b=l->first();b;b=l->next()) { for (b=l->first();b;b=l->next()) {
b->setFont(myFont); b->setFont(myFont);
@ -101,8 +101,8 @@ void k9MenuEdit::bFontClick() {
} else { } else {
if (m_text) { if (m_text) {
TQFont myFont(m_text->font()); TQFont myFont(m_text->font());
int result = KFontDialog::getFont( myFont ); int result = TDEFontDialog::getFont( myFont );
if ( result == KFontDialog::Accepted ) if ( result == TDEFontDialog::Accepted )
setFont(myFont); setFont(myFont);
} }

@ -44,7 +44,7 @@
k9Copy::k9Copy() k9Copy::k9Copy()
: KMdiMainFrm( 0, "k9Copy" ,KMdi::IDEAlMode ) { : KMdiMainFrm( 0, "k9Copy" ,KMdi::IDEAlMode ) {
// tell the KMainWindow that this is indeed the main widget // tell the TDEMainWindow that this is indeed the main widget
m_k9MainView=NULL; m_k9MainView=NULL;
m_k9ImportView =NULL; m_k9ImportView =NULL;
@ -260,7 +260,7 @@ void k9Copy::setupActions() {
setStandardToolBarMenuEnabled(TRUE); setStandardToolBarMenuEnabled(TRUE);
createStandardStatusBarAction(); createStandardStatusBarAction();
PlayTitleAction = new KAction(i18n("Play title"), 0, PlayTitleAction = new TDEAction(i18n("Play title"), 0,
TQT_TQOBJECT(this), TQT_SLOT(ActionPlayTitle()), TQT_TQOBJECT(this), TQT_SLOT(ActionPlayTitle()),
actionCollection(), "PlayTitle"); actionCollection(), "PlayTitle");
m_actions["playtitle"]=PlayTitleAction; m_actions["playtitle"]=PlayTitleAction;
@ -269,28 +269,28 @@ void k9Copy::setupActions() {
img.loadFromData( img_preview, sizeof( img_preview ), "PNG" ); img.loadFromData( img_preview, sizeof( img_preview ), "PNG" );
PlayTitleAction->setIconSet(TQIconSet(img)); PlayTitleAction->setIconSet(TQIconSet(img));
CopyAction = new KAction(i18n("Copy"), 0, CopyAction = new TDEAction(i18n("Copy"), 0,
TQT_TQOBJECT(this), TQT_SLOT(ActionCopy()), TQT_TQOBJECT(this), TQT_SLOT(ActionCopy()),
actionCollection(), "Copy"); actionCollection(), "Copy");
m_actions["copy"]=CopyAction; m_actions["copy"]=CopyAction;
CopyAction->setIcon("dvdcopy"); CopyAction->setIcon("dvdcopy");
mkMpeg2Action = new KAction(i18n("Extract MPEG2"),0, mkMpeg2Action = new TDEAction(i18n("Extract MPEG2"),0,
TQT_TQOBJECT(this), TQT_SLOT(ActionMpeg2()), TQT_TQOBJECT(this), TQT_SLOT(ActionMpeg2()),
actionCollection(),"MakeMPEG2"); actionCollection(),"MakeMPEG2");
m_actions["mp2"]=mkMpeg2Action; m_actions["mp2"]=mkMpeg2Action;
mkMpeg2Action->setIcon("mpeg"); mkMpeg2Action->setIcon("mpeg");
mkMP4Action = new KAction(i18n("Create MPEG-4"),0, mkMP4Action = new TDEAction(i18n("Create MPEG-4"),0,
TQT_TQOBJECT(this), TQT_SLOT(ActionMP4()), TQT_TQOBJECT(this), TQT_SLOT(ActionMP4()),
actionCollection(),"MakeMPEG4"); actionCollection(),"MakeMPEG4");
m_actions["mp4"]=mkMP4Action; m_actions["mp4"]=mkMP4Action;
mkMP4Action->setIcon("mp4"); mkMP4Action->setIcon("mp4");
ejectAction = new KAction(i18n("Eject"),0, ejectAction = new TDEAction(i18n("Eject"),0,
TQT_TQOBJECT(this), TQT_SLOT(ActionEject()), TQT_TQOBJECT(this), TQT_SLOT(ActionEject()),
actionCollection() , "Eject"); actionCollection() , "Eject");
ejectAction->setIcon("player_eject"); ejectAction->setIcon("player_eject");
@ -298,19 +298,19 @@ void k9Copy::setupActions() {
m_actions["eject"]=ejectAction; m_actions["eject"]=ejectAction;
backupAction= new KRadioAction(i18n("DVD Backup"),0, backupAction= new TDERadioAction(i18n("DVD Backup"),0,
TQT_TQOBJECT(this), TQT_SLOT(ActionBackup()), TQT_TQOBJECT(this), TQT_SLOT(ActionBackup()),
actionCollection(), "backup"); actionCollection(), "backup");
backupAction->setExclusiveGroup("mode"); backupAction->setExclusiveGroup("mode");
m_actions["backup"]=backupAction; m_actions["backup"]=backupAction;
authorAction= new KRadioAction(i18n("DVD Author"),0, authorAction= new TDERadioAction(i18n("DVD Author"),0,
TQT_TQOBJECT(this), TQT_SLOT(ActionAuthor()), TQT_TQOBJECT(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 KAction(i18n("Create DVD"),0, m_actions["create"]= new TDEAction(i18n("Create DVD"),0,
TQT_TQOBJECT(this), TQT_SLOT(ActionCreate()), TQT_TQOBJECT(this), TQT_SLOT(ActionCreate()),
actionCollection(), "Create"); actionCollection(), "Create");
m_actions["create"]->setIcon("author"); m_actions["create"]->setIcon("author");

@ -90,13 +90,13 @@ private:
void createCopyWindows(); void createCopyWindows();
void removeToolWindows(); void removeToolWindows();
void saveDock(); void saveDock();
KAction *CopyAction; TDEAction *CopyAction;
KAction *PlayTitleAction; TDEAction *PlayTitleAction;
KAction *mkMP4Action; TDEAction *mkMP4Action;
KAction *mkMpeg2Action; TDEAction *mkMpeg2Action;
KAction *ejectAction; TDEAction *ejectAction;
KRadioAction *backupAction; TDERadioAction *backupAction;
KRadioAction *authorAction; TDERadioAction *authorAction;
private: private:
k9Main *m_k9Main; k9Main *m_k9Main;
KMdiChildView *m_k9MainView,*m_k9ImportView; KMdiChildView *m_k9MainView,*m_k9ImportView;
@ -112,7 +112,7 @@ private:
k9Import *m_k9Import; k9Import *m_k9Import;
bool m_useXine; bool m_useXine;
bool m_useDvdAuthor; bool m_useDvdAuthor;
TQMap <TQString,KAction*> m_actions; TQMap <TQString,TDEAction*> m_actions;
TQPtrList <KMdiToolViewAccessor> m_ToolViews; TQPtrList <KMdiToolViewAccessor> m_ToolViews;
k9CdDrives m_drives; k9CdDrives m_drives;
}; };

@ -41,7 +41,7 @@ k9prefAuthor::~k9prefAuthor()
/*$SPECIALIZATION$*/ /*$SPECIALIZATION$*/
void k9prefAuthor::bButtonFontClicked() void k9prefAuthor::bButtonFontClicked()
{ {
KFontDialog::getFont( m_font ); TDEFontDialog::getFont( m_font );
} }
void k9prefAuthor::save() { void k9prefAuthor::save() {

Loading…
Cancel
Save