summaryrefslogtreecommitdiffstats
path: root/tdemid
diff options
context:
space:
mode:
Diffstat (limited to 'tdemid')
-rw-r--r--tdemid/CMakeLists.txt6
-rw-r--r--tdemid/README6
-rw-r--r--tdemid/channel.cpp4
-rw-r--r--tdemid/channel.h2
-rw-r--r--tdemid/channelcfgdlg.cpp2
-rw-r--r--tdemid/channelcfgdlg.h2
-rw-r--r--tdemid/channelview.cpp8
-rw-r--r--tdemid/channelview.h2
-rw-r--r--tdemid/collectdlg.cpp20
-rw-r--r--tdemid/collectdlg.h2
-rw-r--r--tdemid/kdisptext.cpp6
-rw-r--r--tdemid/kdisptext.h2
-rw-r--r--tdemid/klcdnumber.cpp10
-rw-r--r--tdemid/klcdnumber.h2
-rw-r--r--tdemid/ktrianglebutton.cpp8
-rw-r--r--tdemid/ktrianglebutton.h2
-rw-r--r--tdemid/main.cpp2
-rw-r--r--tdemid/midicfgdlg.cpp6
-rw-r--r--tdemid/midicfgdlg.h2
-rw-r--r--tdemid/qslidertime.h2
-rw-r--r--tdemid/slman.cpp2
-rw-r--r--tdemid/songlist.cpp2
-rw-r--r--tdemid/tdemid_part.cpp12
-rw-r--r--tdemid/tdemid_part.h10
-rw-r--r--tdemid/tdemidclient.cpp24
-rw-r--r--tdemid/tdemidclient.h2
-rw-r--r--tdemid/tdemidframe.cpp100
-rw-r--r--tdemid/tdemidframe.h4
28 files changed, 126 insertions, 126 deletions
diff --git a/tdemid/CMakeLists.txt b/tdemid/CMakeLists.txt
index fd9f5989..2c90de95 100644
--- a/tdemid/CMakeLists.txt
+++ b/tdemid/CMakeLists.txt
@@ -53,7 +53,7 @@ tde_add_kpart( libtdemidpart AUTOMOC
DESTINATION ${PLUGIN_INSTALL_DIR}
)
-file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/part_dummy.cpp "" )
+configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake part_dummy.cpp COPYONLY )
##### tdemid (executable) #######################
@@ -86,13 +86,13 @@ add_custom_target( instrname.i18n
tde_create_translated_desktop(
SOURCE tdemid.desktop
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdemid-desktops
+ PO_DIR tdemid-desktops
)
tde_create_translated_desktop(
SOURCE x-karaoke.desktop
DESTINATION ${MIME_INSTALL_DIR}/audio
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdemid-desktops
+ PO_DIR tdemid-desktops
)
install( FILES tdemidui.rc DESTINATION ${DATA_INSTALL_DIR}/tdemid )
diff --git a/tdemid/README b/tdemid/README
index c391c24c..a9b806d8 100644
--- a/tdemid/README
+++ b/tdemid/README
@@ -64,7 +64,7 @@ Index
and do a 'make' . Simple , isn't it ?
By default it will use the external midi device, if you want to use another
- one (fm, awe, or anything else), edit the file main.cc and change the value
+ one (fm, awe, or anything else), edit the file main.cpp and change the value
of DEFAULT_DEVICE to the one you want, or specify the -d option as in :
consoletdemid -d 1 mymidifile.mid
@@ -73,7 +73,7 @@ Index
-----------------
No installing of consoleKMid is actually done, just copy the consoleKMid file
yourself to where you want (usually /usr/local/bin ). To use the fm device,
- you should specify in fmout.cc the path to where the fm patches are installed
+ you should specify in fmout.cpp the path to where the fm patches are installed
( /etc by default)
5. Running
@@ -92,7 +92,7 @@ Index
consoletdemid -M /opt/kde/share/apps/tdemid/maps/YamahaPSS790.map mymidifile
- You can also edit main.cc in the player directory and change the value of
+ You can also edit main.cpp in the player directory and change the value of
DEFAULT_MAP to whatever you want, so that you don't need to specify the
-M option each time you run consoletdemid.
diff --git a/tdemid/channel.cpp b/tdemid/channel.cpp
index 6b8e23cf..0b03ddc0 100644
--- a/tdemid/channel.cpp
+++ b/tdemid/channel.cpp
@@ -62,7 +62,7 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
for (i=0;i<128;i++)
instrumentCombo->insertItem(i18n(instrumentName[i]),i);
- connect(instrumentCombo,TQT_SIGNAL(activated(int)),this,TQT_SLOT(pgmChanged(int)));
+ connect(instrumentCombo,TQ_SIGNAL(activated(int)),this,TQ_SLOT(pgmChanged(int)));
forcepgm=new KMidButton(this,"forcepgm");
forcepgm->setGeometry(135,4,16,16);
@@ -71,7 +71,7 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
button2 = TQPixmap(locate("appdata","icons/button2.xpm"));
forcepgm->setPixmaps(button1,button2);
forcepgm->show();
- connect(forcepgm,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(changeForcedState(bool)));
+ connect(forcepgm,TQ_SIGNAL(toggled(bool)),this,TQ_SLOT(changeForcedState(bool)));
}
diff --git a/tdemid/channel.h b/tdemid/channel.h
index 4f88ae36..2674ffe5 100644
--- a/tdemid/channel.h
+++ b/tdemid/channel.h
@@ -38,7 +38,7 @@ class TQComboBox;
class KMidButton;
class KMidChannel : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
private:
diff --git a/tdemid/channelcfgdlg.cpp b/tdemid/channelcfgdlg.cpp
index e55aaa58..76f6b87a 100644
--- a/tdemid/channelcfgdlg.cpp
+++ b/tdemid/channelcfgdlg.cpp
@@ -27,7 +27,7 @@ ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *na
topLayout->addWidget( qbg );
((ChannelView::lookMode()==0)?rb0:rb1)->setChecked(TRUE);
- connect (qbg, TQT_SIGNAL(pressed(int)),this,TQT_SLOT(modeselected(int)));
+ connect (qbg, TQ_SIGNAL(pressed(int)),this,TQ_SLOT(modeselected(int)));
}
void ChannelViewConfigDialog::modeselected(int idx)
diff --git a/tdemid/channelcfgdlg.h b/tdemid/channelcfgdlg.h
index c4378e4e..73a21efc 100644
--- a/tdemid/channelcfgdlg.h
+++ b/tdemid/channelcfgdlg.h
@@ -30,7 +30,7 @@ class TQVButtonGroup;
class TQRadioButton;
class ChannelViewConfigDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdemid/channelview.cpp b/tdemid/channelview.cpp
index 50a88f24..32f6472a 100644
--- a/tdemid/channelview.cpp
+++ b/tdemid/channelview.cpp
@@ -40,12 +40,12 @@ ChannelView::ChannelView(void) : TDEMainWindow(0, "ChannelView")
Channel[i]=new KMidChannel3D(i+1,this);
else
Channel[i]=new KMidChannel4D(i+1,this);
- connect(Channel[i],TQT_SIGNAL(signalToKMidClient(int *)),this,TQT_SLOT(slottotdemidclient(int *)));
+ connect(Channel[i],TQ_SIGNAL(signalToKMidClient(int *)),this,TQ_SLOT(slottotdemidclient(int *)));
Channel[i]->setGeometry(5,5+i*CHANNELHEIGHT,width()-20,CHANNELHEIGHT);
Channel[i]->show();
}
- scrollbar=new TQScrollBar(1,16,1,1,1,Qt::Vertical,this,"Channelscrollbar");
- connect(scrollbar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(ScrollChn(int)));
+ scrollbar=new TQScrollBar(1,16,1,1,1,TQt::Vertical,this,"Channelscrollbar");
+ connect(scrollbar,TQ_SIGNAL(valueChanged(int)),this,TQ_SLOT(ScrollChn(int)));
setScrollBarRange();
}
@@ -150,7 +150,7 @@ void ChannelView::lookMode(int i)
else
Channel[i]=new KMidChannel4D(i+1,this);
- connect(Channel[i],TQT_SIGNAL(signalToKMidClient(int *)),this,TQT_SLOT(slottotdemidclient(int *)));
+ connect(Channel[i],TQ_SIGNAL(signalToKMidClient(int *)),this,TQ_SLOT(slottotdemidclient(int *)));
Channel[i]->setGeometry(5,5+(i-(scrollbar->value()-1))*CHANNELHEIGHT,width()-20,CHANNELHEIGHT);
Channel[i]->loadState(tmp,&pgm);
Channel[i]->show();
diff --git a/tdemid/channelview.h b/tdemid/channelview.h
index b54015ce..c26ba564 100644
--- a/tdemid/channelview.h
+++ b/tdemid/channelview.h
@@ -32,7 +32,7 @@
class ChannelView : public TDEMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
private:
KMidChannel *Channel[16];
diff --git a/tdemid/collectdlg.cpp b/tdemid/collectdlg.cpp
index 4df74df7..226d86d1 100644
--- a/tdemid/collectdlg.cpp
+++ b/tdemid/collectdlg.cpp
@@ -43,18 +43,18 @@ CollectionDialog::CollectionDialog(SLManager *slm,int selC,TQWidget *parent,cons
setCaption(i18n("Collections Manager"));
ok=new KPushButton(KStdGuiItem::ok(),this);
ok->setGeometry(140,200,100,30);
-connect(ok,TQT_SIGNAL(clicked()),TQT_SLOT(accept()) );
+connect(ok,TQ_SIGNAL(clicked()),TQ_SLOT(accept()) );
cancel=new KPushButton(KStdGuiItem::cancel(),this);
cancel->setGeometry(250,200,100,30);
-connect(cancel,TQT_SIGNAL(clicked()),TQT_SLOT(reject()) );
+connect(cancel,TQ_SIGNAL(clicked()),TQ_SLOT(reject()) );
label=new TQLabel(i18n("Available collections:"),this);
label->adjustSize();
label->move(10,10);
collections=new TQListBox(this,"collectionlist");
collections->setGeometry(10,20+label->height(),340,90);
-connect(collections,TQT_SIGNAL(highlighted(int)),TQT_SLOT(collectionselected(int)));
-connect(collections,TQT_SIGNAL(selected(int)),TQT_SLOT(changeCollectionName(int)));
+connect(collections,TQ_SIGNAL(highlighted(int)),TQ_SLOT(collectionselected(int)));
+connect(collections,TQ_SIGNAL(selected(int)),TQ_SLOT(changeCollectionName(int)));
slman=slm;
for (int i=0;i<=slman->numberOfCollections();i++)
{
@@ -74,7 +74,7 @@ label2->move(10,collections->y()+collections->height()+10);
songs=new TQListBox(this,"songlist");
songs->setGeometry(10,label2->y()+label2->height()+10,340,120);
-connect(songs,TQT_SIGNAL(highlighted(int)),TQT_SLOT(songselected(int)));
+connect(songs,TQ_SIGNAL(highlighted(int)),TQ_SLOT(songselected(int)));
currentsl=slman->getCollection(selectedC);
if (slman->numberOfCollections()>0)
{
@@ -85,24 +85,24 @@ if (slman->numberOfCollections()>0)
newC=new TQPushButton(i18n("&New..."),this);
newC->adjustSize();
newC->move(360,collections->y()+5);
-connect(newC,TQT_SIGNAL(clicked()),TQT_SLOT(newCollection()) );
+connect(newC,TQ_SIGNAL(clicked()),TQ_SLOT(newCollection()) );
copyC=new TQPushButton(i18n("&Copy..."),this);
copyC->adjustSize();
copyC->move(360,newC->y()+newC->height()+5);
-connect(copyC,TQT_SIGNAL(clicked()),TQT_SLOT(copyCollection()) );
+connect(copyC,TQ_SIGNAL(clicked()),TQ_SLOT(copyCollection()) );
deleteC=new TQPushButton(i18n("Delete"),this);
deleteC->adjustSize();
deleteC->move(360,copyC->y()+copyC->height()+5);
-connect(deleteC,TQT_SIGNAL(clicked()),TQT_SLOT(deleteCollection()) );
+connect(deleteC,TQ_SIGNAL(clicked()),TQ_SLOT(deleteCollection()) );
addS=new TQPushButton(i18n("&Add..."),this);
addS->adjustSize();
addS->move(360,songs->y()+5);
-connect(addS,TQT_SIGNAL(clicked()),TQT_SLOT(addSong()) );
+connect(addS,TQ_SIGNAL(clicked()),TQ_SLOT(addSong()) );
delS=new TQPushButton(i18n("&Remove"),this);
delS->adjustSize();
delS->move(360,addS->y()+addS->height()+5);
-connect(delS,TQT_SIGNAL(clicked()),TQT_SLOT(removeSong()) );
+connect(delS,TQ_SIGNAL(clicked()),TQ_SLOT(removeSong()) );
ok->move(ok->x(),songs->y()+songs->height()+10);
cancel->move(ok->x()+ok->width()+5,ok->y());
diff --git a/tdemid/collectdlg.h b/tdemid/collectdlg.h
index 262a6227..fcf4b94a 100644
--- a/tdemid/collectdlg.h
+++ b/tdemid/collectdlg.h
@@ -35,7 +35,7 @@ class TQListBox;
class KURL;
class CollectionDialog : public TQDialog
{
- Q_OBJECT
+ TQ_OBJECT
private:
SLManager *slman;
diff --git a/tdemid/kdisptext.cpp b/tdemid/kdisptext.cpp
index d701ccb4..51f8fc40 100644
--- a/tdemid/kdisptext.cpp
+++ b/tdemid/kdisptext.cpp
@@ -122,7 +122,7 @@ void KDisplayText::ClearEv(bool totally)
RemoveLinkedList();
if (totally)
{
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
autoscrollv=0;
resizeContents(0,0);
viewport()->repaint(TRUE);
@@ -425,7 +425,7 @@ void KDisplayText::PaintIn(int type)
autoscrollv+=qfmetr->lineSpacing();
if (b) startTimer(100);
else {
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
startTimer(100/(autoscrollv/qfmetr->lineSpacing()+1));
}
}
@@ -484,7 +484,7 @@ void KDisplayText::gotomsec(ulong i)
}
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
autoscrollv=0;
setContentsPos(0,first_line->ypos);
viewport()->repaint();
diff --git a/tdemid/kdisptext.h b/tdemid/kdisptext.h
index 04a25f27..548e849e 100644
--- a/tdemid/kdisptext.h
+++ b/tdemid/kdisptext.h
@@ -50,7 +50,7 @@ class TQScrollBar;
class KDisplayText : public TQScrollView
{
- Q_OBJECT
+ TQ_OBJECT
private:
TQTextCodec *lyrics_codec;
diff --git a/tdemid/klcdnumber.cpp b/tdemid/klcdnumber.cpp
index 3fdf80c4..57385a39 100644
--- a/tdemid/klcdnumber.cpp
+++ b/tdemid/klcdnumber.cpp
@@ -71,10 +71,10 @@ KLCDNumber::KLCDNumber(bool _setUserChangeValue,int _numDigits,TQWidget *parent,
downBtn=new KTriangleButton(KTriangleButton::Left,this,"Down");
upBtn->setGeometry(width()-BUTTONWIDTH,0,BUTTONWIDTH,height());
downBtn->setGeometry(0,0,BUTTONWIDTH,height());
- connect(upBtn,TQT_SIGNAL(clicked()),this,TQT_SLOT(increaseValue()));
- connect(downBtn,TQT_SIGNAL(clicked()),this,TQT_SLOT(decreaseValue()));
- connect(upBtn,TQT_SIGNAL(clickedQuickly()),this,TQT_SLOT(increaseValueFast()));
- connect(downBtn,TQT_SIGNAL(clickedQuickly()),this,TQT_SLOT(decreaseValueFast()));
+ connect(upBtn,TQ_SIGNAL(clicked()),this,TQ_SLOT(increaseValue()));
+ connect(downBtn,TQ_SIGNAL(clicked()),this,TQ_SLOT(decreaseValue()));
+ connect(upBtn,TQ_SIGNAL(clickedQuickly()),this,TQ_SLOT(increaseValueFast()));
+ connect(downBtn,TQ_SIGNAL(clickedQuickly()),this,TQ_SLOT(decreaseValueFast()));
};
}
@@ -299,7 +299,7 @@ void KLCDNumber::mousePressEvent (TQMouseEvent *e)
void KLCDNumber::timerEvent(TQTimerEvent *)
{
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
doubleclicked=false;
}
diff --git a/tdemid/klcdnumber.h b/tdemid/klcdnumber.h
index b124a5db..d824d2d1 100644
--- a/tdemid/klcdnumber.h
+++ b/tdemid/klcdnumber.h
@@ -32,7 +32,7 @@ class TQColor;
class KLCDNumber : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
protected:
class digit {
diff --git a/tdemid/ktrianglebutton.cpp b/tdemid/ktrianglebutton.cpp
index 5bda855f..0e2a1d3c 100644
--- a/tdemid/ktrianglebutton.cpp
+++ b/tdemid/ktrianglebutton.cpp
@@ -35,7 +35,7 @@ KTriangleButton::KTriangleButton( Direction d,TQWidget *_parent, const char *nam
{
dir=d;
raised = FALSE;
- setFocusPolicy( TQ_NoFocus );
+ setFocusPolicy( TQWidget::NoFocus );
}
KTriangleButton::~KTriangleButton()
@@ -144,17 +144,17 @@ void KTriangleButton::mouseReleaseEvent(TQMouseEvent *e)
void KTriangleButton::timerEvent(TQTimerEvent *)
{
- if (!usingTimer) {TQT_TQOBJECT(this)->killTimers();return;};
+ if (!usingTimer) {this->killTimers();return;};
if (timeCount==0)
{
timeCount++;
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
startTimer(120);
} else
if (timeCount==30)
{
timeCount=-1;
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
startTimer(80);
}
else if (timeCount>0) timeCount++;
diff --git a/tdemid/ktrianglebutton.h b/tdemid/ktrianglebutton.h
index 5013b8d8..a6b840ee 100644
--- a/tdemid/ktrianglebutton.h
+++ b/tdemid/ktrianglebutton.h
@@ -32,7 +32,7 @@
class KTriangleButton : public TQButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdemid/main.cpp b/tdemid/main.cpp
index 40902097..3f12b7c9 100644
--- a/tdemid/main.cpp
+++ b/tdemid/main.cpp
@@ -71,7 +71,7 @@ int main(int argc, char **argv)
app.setMainWidget ( tdemidframe );
- TQObject::connect(&app,TQT_SIGNAL(shutDown()),tdemidframe,TQT_SLOT(shuttingDown()));
+ TQObject::connect(&app,TQ_SIGNAL(shutDown()),tdemidframe,TQ_SLOT(shuttingDown()));
if (app.isRestored())
{
diff --git a/tdemid/midicfgdlg.cpp b/tdemid/midicfgdlg.cpp
index 446f7e03..010e8f42 100644
--- a/tdemid/midicfgdlg.cpp
+++ b/tdemid/midicfgdlg.cpp
@@ -50,7 +50,7 @@ MidiConfigDialog::MidiConfigDialog(DeviceManager *dm,
topLayout->addWidget(label);
mididevices=new TQListBox(page,"midideviceslist");
topLayout->addWidget(mididevices,3);
- connect(mididevices,TQT_SIGNAL(highlighted(int)),TQT_SLOT(deviceselected(int)));
+ connect(mididevices,TQ_SIGNAL(highlighted(int)),TQ_SLOT(deviceselected(int)));
devman=dm;
TQString temp;
for (int i=0;i<devman->midiPorts()+devman->synthDevices();i++)
@@ -87,11 +87,11 @@ MidiConfigDialog::MidiConfigDialog(DeviceManager *dm,
hbox->addStretch(1);
mapbrowse=new TQPushButton(i18n("Browse..."),page);
hbox->addWidget(mapbrowse);
- connect(mapbrowse,TQT_SIGNAL(clicked()),TQT_SLOT(browseMap()) );
+ connect(mapbrowse,TQ_SIGNAL(clicked()),TQ_SLOT(browseMap()) );
mapnone=new TQPushButton(i18n("None"),page);
hbox->addWidget(mapnone);
- connect(mapnone,TQT_SIGNAL(clicked()),TQT_SLOT(noMap()) );
+ connect(mapnone,TQ_SIGNAL(clicked()),TQ_SLOT(noMap()) );
topLayout->addStretch(1);
diff --git a/tdemid/midicfgdlg.h b/tdemid/midicfgdlg.h
index 98585e6f..e15f73ca 100644
--- a/tdemid/midicfgdlg.h
+++ b/tdemid/midicfgdlg.h
@@ -33,7 +33,7 @@ class TQPushButton;
class TQListBox;
class MidiConfigDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdemid/qslidertime.h b/tdemid/qslidertime.h
index 57aa3b18..4131cde5 100644
--- a/tdemid/qslidertime.h
+++ b/tdemid/qslidertime.h
@@ -30,7 +30,7 @@ class TQWidget;
class QSliderTime : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
private:
diff --git a/tdemid/slman.cpp b/tdemid/slman.cpp
index ca441850..7f63368b 100644
--- a/tdemid/slman.cpp
+++ b/tdemid/slman.cpp
@@ -1,6 +1,6 @@
/**************************************************************************
- slman.cc - SongList Manager, which holds a set of collections (SongLists)
+ slman.cpp - SongList Manager, which holds a set of collections (SongLists)
Copyright (C) 1997,98 Antonio Larrosa Jimenez
This program is free software; you can redistribute it and/or modify
diff --git a/tdemid/songlist.cpp b/tdemid/songlist.cpp
index cc2572d8..01a03a94 100644
--- a/tdemid/songlist.cpp
+++ b/tdemid/songlist.cpp
@@ -1,6 +1,6 @@
/**************************************************************************
- songlist.cc - class SongList, which holds a list of songs (collection)
+ songlist.cpp - class SongList, which holds a list of songs (collection)
Copyright (C) 1997,98 Antonio Larrosa Jimenez
This program is free software; you can redistribute it and/or modify
diff --git a/tdemid/tdemid_part.cpp b/tdemid/tdemid_part.cpp
index 81c31973..ed6e062b 100644
--- a/tdemid/tdemid_part.cpp
+++ b/tdemid/tdemid_part.cpp
@@ -73,26 +73,26 @@ TDEInstance *KMidFactory::instance()
widget = new tdemidClient(parentWidget, actionCollection());
widget->show();
- widget->setFocusPolicy(TQ_ClickFocus);
+ widget->setFocusPolicy(TQWidget::ClickFocus);
setWidget(widget);
// create and connect our actions
(void)new TDEAction(i18n("Play"), "media-playback-start", 0, this,
- TQT_SLOT(slotPlay()), actionCollection(),
+ TQ_SLOT(slotPlay()), actionCollection(),
"play");
(void)new TDEAction(i18n("Stop"), "media-playback-stop", 0, this,
- TQT_SLOT(slotStop()), actionCollection(),
+ TQ_SLOT(slotStop()), actionCollection(),
"stop");
(void)new TDEAction(i18n("Backward"),
"2leftarrow", 0, this,
- TQT_SLOT(slotBackward()), actionCollection(),
+ TQ_SLOT(slotBackward()), actionCollection(),
"backward");
(void)new TDEAction(i18n("Forward"),
"2rightarrow", 0, this,
- TQT_SLOT(slotForward()), actionCollection(),
+ TQ_SLOT(slotForward()), actionCollection(),
"forward");
m_extension = new KMidBrowserExtension(this);
@@ -111,7 +111,7 @@ bool KMidPart::openFile()
widget->openURL(m_file);
widget->stop();
widget->show();
- TQTimer::singleShot(2000, this, TQT_SLOT(slotPlay()));
+ TQTimer::singleShot(2000, this, TQ_SLOT(slotPlay()));
return true;
}
diff --git a/tdemid/tdemid_part.h b/tdemid/tdemid_part.h
index d15a341e..03c053ef 100644
--- a/tdemid/tdemid_part.h
+++ b/tdemid/tdemid_part.h
@@ -9,9 +9,9 @@ class TDEInstance;
class KMidBrowserExtension;
class tdemidClient;
-class KDE_EXPORT KMidFactory : public KParts::Factory
+class TDE_EXPORT KMidFactory : public KParts::Factory
{
- Q_OBJECT
+ TQ_OBJECT
public:
KMidFactory();
@@ -19,7 +19,7 @@ class KDE_EXPORT KMidFactory : public KParts::Factory
virtual KParts::Part* createPartObject(TQWidget *parentWidget, const char *widgetName,
TQObject* parent = 0, const char* name = 0,
- const char* classname = TQOBJECT_OBJECT_NAME_STRING,
+ const char* classname = "TQObject",
const TQStringList &args = TQStringList());
static TDEInstance *instance();
@@ -31,7 +31,7 @@ class KDE_EXPORT KMidFactory : public KParts::Factory
class KMidPart: public KParts::ReadOnlyPart
{
- Q_OBJECT
+ TQ_OBJECT
public:
KMidPart(TQWidget *parentWidget, const char *widgetName,
@@ -55,7 +55,7 @@ class KMidPart: public KParts::ReadOnlyPart
class KMidBrowserExtension : public KParts::BrowserExtension
{
- Q_OBJECT
+ TQ_OBJECT
friend class KMidPart;
public:
diff --git a/tdemid/tdemidclient.cpp b/tdemid/tdemidclient.cpp
index b05411bc..dc6f09ae 100644
--- a/tdemid/tdemidclient.cpp
+++ b/tdemid/tdemidclient.cpp
@@ -90,10 +90,10 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
// currentsl=slman->getCollection(activecollection);
itsme=0;
m_kMid.pid=0;
- timebar = new TQSlider(0,240000,30000,60000,Qt::Horizontal, this);
+ timebar = new TQSlider(0,240000,30000,60000,TQt::Horizontal, this);
timebar->setSteps(30000,60000);
timebar->setValue(0);
- connect (timebar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotSeek(int)));
+ connect (timebar,TQ_SIGNAL(valueChanged(int)),this,TQ_SLOT(slotSeek(int)));
timetags = new QSliderTime(timebar,this);
timetags->setMinimumSize(timetags->sizeHint());
@@ -109,14 +109,14 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
tempoLCD->setDefaultValue(120);
tempoLCD->setUserSetDefaultValue(true);
tempoLCD->setMinimumSize(tempoLCD->sizeHint());
- connect(tempoLCD,TQT_SIGNAL(valueChanged(double)),this,TQT_SLOT(slotSetTempo(double)));
+ connect(tempoLCD,TQ_SIGNAL(valueChanged(double)),this,TQ_SLOT(slotSetTempo(double)));
comboSongs = new TQComboBox(FALSE, this,"Songs");
- connect (comboSongs,TQT_SIGNAL(activated(int)),this,TQT_SLOT(slotSelectSong(int)));
+ connect (comboSongs,TQ_SIGNAL(activated(int)),this,TQ_SLOT(slotSelectSong(int)));
comboSongs->setMinimumWidth(200);
comboEncodings = new TQComboBox(FALSE, this, "Encodings");
- connect (comboEncodings,TQT_SIGNAL(activated(int)),this,TQT_SLOT(slotSelectEncoding(int)));
+ connect (comboEncodings,TQ_SIGNAL(activated(int)),this,TQ_SLOT(slotSelectEncoding(int)));
comboEncodings->insertItem(i18n("Default"));
comboEncodings->insertStringList( TDEGlobal::charsets()->descriptiveEncodingNames() );
comboEncodings->setCurrentItem(0);
@@ -125,12 +125,12 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
rhythmview->setMaximumHeight(7);
rhythmview->setMinimumHeight(7);
- volumebar = new TQSlider(0,200,10,100,Qt::Vertical, this );
+ volumebar = new TQSlider(0,200,10,100,TQt::Vertical, this );
volumebar->setSteps(10,20);
volumebar->setValue(100);
volumebar->setTickmarks(TQSlider::NoMarks);
volumebar->setTickInterval(50);
- connect (volumebar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotSetVolume(int)));
+ connect (volumebar,TQ_SIGNAL(valueChanged(int)),this,TQ_SLOT(slotSetVolume(int)));
visiblevolumebar=cfg->readNumEntry("ShowVolumeBar",0);
if (visiblevolumebar) volumebar->show();
@@ -141,9 +141,9 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
kdispt->show();
timer4timebar=new TQTimer(this);
- connect (timer4timebar,TQT_SIGNAL(timeout()),this,TQT_SLOT(timebarUpdate()));
+ connect (timer4timebar,TQ_SIGNAL(timeout()),this,TQ_SLOT(timebarUpdate()));
timer4events=new TQTimer(this);
- connect (timer4events,TQT_SIGNAL(timeout()),this,TQT_SLOT(processSpecialEvent()));
+ connect (timer4events,TQ_SIGNAL(timeout()),this,TQ_SLOT(processSpecialEvent()));
TQString samplefile =
TDEGlobal::dirs()->findAllResources("appdata", "fm/*.o3").last();
@@ -372,7 +372,7 @@ int tdemidClient::openURL(const TQString _url)
filename = TQString("/tmp/") + u.filename();
TDEIO::Job *iojob = TDEIO::copy( u, KURL::fromPathOrURL( filename ) );
downloaded=false;
- connect( iojob, TQT_SIGNAL( result( TDEIO::Job *) ), this, TQT_SLOT(downloadFinished( TDEIO::Job * ) ) );
+ connect( iojob, TQ_SIGNAL( result( TDEIO::Job *) ), this, TQ_SLOT(downloadFinished( TDEIO::Job * ) ) );
if (!downloaded)
kapp->enter_loop();
@@ -1373,8 +1373,8 @@ void tdemidClient::visibleChannelView(int i)
}
}
channelView->show();
- connect(channelView,TQT_SIGNAL(signalToKMidClient(int *)),this,TQT_SLOT(communicationFromChannelView(int *)));
- connect(kapp,TQT_SIGNAL(shutDown()),parentWidget(),TQT_SLOT(shuttingDown()));
+ connect(channelView,TQ_SIGNAL(signalToKMidClient(int *)),this,TQ_SLOT(communicationFromChannelView(int *)));
+ connect(kapp,TQ_SIGNAL(shutDown()),parentWidget(),TQ_SLOT(shuttingDown()));
}
else if ((channelView!=NULL)&&(i==0))
diff --git a/tdemid/tdemidclient.h b/tdemid/tdemidclient.h
index a5ebd4c9..15ffda08 100644
--- a/tdemid/tdemidclient.h
+++ b/tdemid/tdemidclient.h
@@ -54,7 +54,7 @@ class TQString;
class tdemidClient : public TQWidget, virtual public KMidIface
{
- Q_OBJECT
+ TQ_OBJECT
private:
#ifdef TDEMidDEBUG
diff --git a/tdemid/tdemidframe.cpp b/tdemid/tdemidframe.cpp
index fbfaa4c0..88069499 100644
--- a/tdemid/tdemidframe.cpp
+++ b/tdemid/tdemidframe.cpp
@@ -68,73 +68,73 @@ tdemidFrame::tdemidFrame(const char *name)
/*
kKeysAccel=new TDEAccel(this);
kKeysAccel->insertItem(i18n("Play/Pause"),"Play/Pause", Key_Space);
- kKeysAccel->connectItem("Play/Pause", TQT_TQOBJECT(this), TQT_SLOT(spacePressed()));
+ kKeysAccel->connectItem("Play/Pause", this, TQ_SLOT(spacePressed()));
kKeysAccel->insertItem(i18n("Stop"),"Stop", Key_Backspace);
- kKeysAccel->connectItem("Stop",tdemidclient,TQT_SLOT(song_Stop()));
+ kKeysAccel->connectItem("Stop",tdemidclient,TQ_SLOT(song_Stop()));
kKeysAccel->insertItem(i18n("Previous Song"),"Previous Song", Key_Left);
- kKeysAccel->connectItem("Previous Song",tdemidclient,TQT_SLOT(song_PlayPrevSong()));
+ kKeysAccel->connectItem("Previous Song",tdemidclient,TQ_SLOT(song_PlayPrevSong()));
kKeysAccel->insertItem(i18n("Next Song"),"Next Song", Key_Right);
- kKeysAccel->connectItem("Next Song",tdemidclient,TQT_SLOT(song_PlayNextSong()));
+ kKeysAccel->connectItem("Next Song",tdemidclient,TQ_SLOT(song_PlayNextSong()));
kKeysAccel->insertItem(i18n("Scroll Down Karaoke"),"Scroll down karaoke",Key_Down);
- kKeysAccel->connectItem("Scroll Down karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollDown()));
+ kKeysAccel->connectItem("Scroll Down karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollDown()));
kKeysAccel->insertItem(i18n("Scroll Up Karaoke"),"Scroll up karaoke",Key_Up);
- kKeysAccel->connectItem("Scroll Up Karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollUp()));
+ kKeysAccel->connectItem("Scroll Up Karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollUp()));
kKeysAccel->insertItem(i18n("Scroll Page Down Karaoke"),"Scroll page down karaoke",Key_PageDown);
- kKeysAccel->connectItem("Scroll Page Down Karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollPageDown()));
+ kKeysAccel->connectItem("Scroll Page Down Karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollPageDown()));
kKeysAccel->insertItem(i18n("Scroll Page Up Karaoke"),"Scroll page up karaoke",Key_PageUp);
- kKeysAccel->connectItem("Scroll Page Up Karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollPageUp()));
+ kKeysAccel->connectItem("Scroll Page Up Karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollPageUp()));
kKeysAccel->readSettings();
*/
- KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(file_Open()), actionCollection());
- (void)new TDEAction(i18n("&Save Lyrics..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(file_SaveLyrics()), actionCollection(), "file_save_lyrics");
- KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection());
+ KStdAction::open(this, TQ_SLOT(file_Open()), actionCollection());
+ (void)new TDEAction(i18n("&Save Lyrics..."), 0, this,
+ TQ_SLOT(file_SaveLyrics()), actionCollection(), "file_save_lyrics");
+ KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection());
(void)new TDEAction(i18n("&Play"), "media-playback-start", TQt::Key_Space,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotPlay()), actionCollection(), "song_play");
- (void)new TDEAction(i18n("P&ause"), "media-playback-pause", TQt::Key_P, TQT_TQOBJECT(tdemidclient),
- TQT_SLOT(slotPause()), actionCollection(), "song_pause");
+ tdemidclient, TQ_SLOT(slotPlay()), actionCollection(), "song_play");
+ (void)new TDEAction(i18n("P&ause"), "media-playback-pause", TQt::Key_P, tdemidclient,
+ TQ_SLOT(slotPause()), actionCollection(), "song_pause");
(void)new TDEAction(i18n("&Stop"), "media-playback-stop", TQt::Key_Backspace,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotStop()), actionCollection(), "song_stop");
+ tdemidclient, TQ_SLOT(slotStop()), actionCollection(), "song_stop");
(void)new TDEAction(i18n("P&revious Song"), "media-skip-backward", Key_Left,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotPrevSong()), actionCollection(),
+ tdemidclient, TQ_SLOT(slotPrevSong()), actionCollection(),
"song_previous");
(void)new TDEAction(i18n("&Next Song"), "media-skip-forward", Key_Right,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotNextSong()), actionCollection(),
+ tdemidclient, TQ_SLOT(slotNextSong()), actionCollection(),
"song_next");
- (void)new TDEToggleAction(i18n("&Loop"), 0, TQT_TQOBJECT(this), TQT_SLOT(song_Loop()),
+ (void)new TDEToggleAction(i18n("&Loop"), 0, this, TQ_SLOT(song_Loop()),
actionCollection(), "song_loop");
- (void)new TDEAction(i18n("Rewind"), "2leftarrow", 0, TQT_TQOBJECT(tdemidclient),
- TQT_SLOT(slotRewind()), actionCollection(), "song_rewind");
+ (void)new TDEAction(i18n("Rewind"), "2leftarrow", 0, tdemidclient,
+ TQ_SLOT(slotRewind()), actionCollection(), "song_rewind");
- (void)new TDEAction(i18n("Forward"), "2rightarrow", 0, TQT_TQOBJECT(tdemidclient),
- TQT_SLOT(slotForward()), actionCollection(), "song_forward");
+ (void)new TDEAction(i18n("Forward"), "2rightarrow", 0, tdemidclient,
+ TQ_SLOT(slotForward()), actionCollection(), "song_forward");
- (void)new TDEAction(i18n("&Organize..."), 0, TQT_TQOBJECT(this), TQT_SLOT(collect_organize()),
+ (void)new TDEAction(i18n("&Organize..."), 0, this, TQ_SLOT(collect_organize()),
actionCollection(), "collect_organize");
TQStringList playmodes;
playmodes.append(i18n("In Order"));
playmodes.append(i18n("Shuffle"));
- TDESelectAction *act=new TDESelectAction(i18n("Play Order"), 0, /*this, TQT_SLOT(collect_PlayOrder(int)),*/
+ TDESelectAction *act=new TDESelectAction(i18n("Play Order"), 0, /*this, TQ_SLOT(collect_PlayOrder(int)),*/
actionCollection(), "play_order");
- connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(collect_PlayOrder(int)));
+ connect(act,TQ_SIGNAL(activated(int)),this, TQ_SLOT(collect_PlayOrder(int)));
act->setItems(playmodes);
- (void)new TDEToggleAction(i18n("Auto-Add to Collection"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(collect_AutoAdd()), actionCollection(), "collect_autoadd");
+ (void)new TDEToggleAction(i18n("Auto-Add to Collection"), 0, this,
+ TQ_SLOT(collect_AutoAdd()), actionCollection(), "collect_autoadd");
playmodes.clear();
playmodes.append(i18n("&General MIDI"));
playmodes.append(i18n("&MT-32"));
- act=new TDESelectAction(i18n("File Type"), 0,/* this, TQT_SLOT(options_FileType(int)),*/
+ act=new TDESelectAction(i18n("File Type"), 0,/* this, TQ_SLOT(options_FileType(int)),*/
actionCollection(), "file_type");
- connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(options_FileType(int)));
+ connect(act,TQ_SIGNAL(activated(int)),this, TQ_SLOT(options_FileType(int)));
act->setItems(playmodes);
playmodes.clear();
@@ -142,35 +142,35 @@ tdemidFrame::tdemidFrame(const char *name)
playmodes.append(i18n("&Lyric Events"));
act=new TDESelectAction(i18n("Display Events"), Key_T, /*this,
- TQT_SLOT(options_DisplayEvents(int)),*/ actionCollection(),
+ TQ_SLOT(options_DisplayEvents(int)),*/ actionCollection(),
"display_events");
- connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(options_DisplayEvents(int)));
+ connect(act,TQ_SIGNAL(activated(int)),this, TQ_SLOT(options_DisplayEvents(int)));
act->setItems(playmodes);
- (void)new TDEToggleAction(i18n("Automatic Text Chooser"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_AutomaticText()), actionCollection(),
+ (void)new TDEToggleAction(i18n("Automatic Text Chooser"), 0, this,
+ TQ_SLOT(options_AutomaticText()), actionCollection(),
"option_automatictext");
TDEToggleAction* togact = new TDEToggleAction(i18n("Show &Volume Bar"), "volume",
- 0, TQT_TQOBJECT(this), TQT_SLOT(options_ShowVolumeBar()), actionCollection(),
+ 0, this, TQ_SLOT(options_ShowVolumeBar()), actionCollection(),
"toggle_volumebar");
togact->setCheckedState(i18n("Hide &Volume Bar"));
togact = new TDEToggleAction(i18n("Show &Channel View"), "piano",
- 0, TQT_TQOBJECT(this), TQT_SLOT(options_ShowChannelView()), actionCollection(),
+ 0, this, TQ_SLOT(options_ShowChannelView()), actionCollection(),
"toggle_channelview");
togact->setCheckedState(i18n("Hide &Channel View"));
- (void)new TDEAction(i18n("Channel View &Options..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_ChannelViewOptions()), actionCollection(),
+ (void)new TDEAction(i18n("Channel View &Options..."), 0, this,
+ TQ_SLOT(options_ChannelViewOptions()), actionCollection(),
"channelview_options");
- (void)new TDEAction(i18n("&Font Change..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_FontChange()), actionCollection(),
+ (void)new TDEAction(i18n("&Font Change..."), 0, this,
+ TQ_SLOT(options_FontChange()), actionCollection(),
"change_font");
- (void)new TDEAction(i18n("MIDI &Setup..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_MidiSetup()), actionCollection(), "midi_setup");
+ (void)new TDEAction(i18n("MIDI &Setup..."), 0, this,
+ TQ_SLOT(options_MidiSetup()), actionCollection(), "midi_setup");
setupGUI((ToolBar | Keys | StatusBar | Save | Create ), "tdemidui.rc" );
@@ -212,14 +212,14 @@ tdemidFrame::tdemidFrame(const char *name)
setAcceptDrops(true);
- connect( tdemidclient, TQT_SIGNAL( mustRechooseTextEvent() ),
- this, TQT_SLOT( rechooseTextEvent() ) );
+ connect( tdemidclient, TQ_SIGNAL( mustRechooseTextEvent() ),
+ this, TQ_SLOT( rechooseTextEvent() ) );
- connect( tdemidclient, TQT_SIGNAL( stopPause() ),
- this, TQT_SLOT( song_stopPause() ) );
+ connect( tdemidclient, TQ_SIGNAL( stopPause() ),
+ this, TQ_SLOT( song_stopPause() ) );
-// connect( tdemidclient, TQT_SIGNAL( channelView_Destroyed() ),
-// this, TQT_SLOT( channelViewDestroyed() ) );
+// connect( tdemidclient, TQ_SIGNAL( channelView_Destroyed() ),
+// this, TQ_SLOT( channelViewDestroyed() ) );
TDECmdLineArgs * args = TDECmdLineArgs::parsedArgs();
@@ -258,7 +258,7 @@ tdemidFrame::tdemidFrame(const char *name)
/*
kKeys->addKey("Play/Pause",Key_Space);
kKeys->registerWidget("KMidFrame",this);
- kKeys->connectFunction("KMidFrame","Play/Pause",this,TQT_SLOT(spacePressed()));
+ kKeys->connectFunction("KMidFrame","Play/Pause",this,TQ_SLOT(spacePressed()));
*/
// kKeysAccel->writeSettings(cfg);
@@ -599,7 +599,7 @@ void tdemidFrame::options_ShowChannelView()
} else
{
tdemidclient->visibleChannelView(1);
- connect (tdemidclient->getChannelView(),TQT_SIGNAL(destroyMe()),this,TQT_SLOT(channelViewDestroyed()));
+ connect (tdemidclient->getChannelView(),TQ_SIGNAL(destroyMe()),this,TQ_SLOT(channelViewDestroyed()));
}
}
diff --git a/tdemid/tdemidframe.h b/tdemid/tdemidframe.h
index bba4e6f7..247e6745 100644
--- a/tdemid/tdemidframe.h
+++ b/tdemid/tdemidframe.h
@@ -39,9 +39,9 @@ class TDEToolBar;
class TQDragEvent;
class TDEAccel;
-class KDE_EXPORT tdemidFrame : public TDEMainWindow
+class TDE_EXPORT tdemidFrame : public TDEMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
private:
#ifdef TDEMidDEBUG