summaryrefslogtreecommitdiffstats
path: root/tdemid/tdemidclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdemid/tdemidclient.cpp')
-rw-r--r--tdemid/tdemidclient.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/tdemid/tdemidclient.cpp b/tdemid/tdemidclient.cpp
index b05411bc..8579ae88 100644
--- a/tdemid/tdemidclient.cpp
+++ b/tdemid/tdemidclient.cpp
@@ -43,7 +43,7 @@
#include <tdeglobal.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <kurl.h>
#include <tdeaction.h>
#include <kdebug.h>
@@ -69,7 +69,7 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
: DCOPObject("KMidIface"), TQWidget(parent,name)
{
actionCollection=ac;
- TDEConfig *cfg=kapp->config();
+ TDEConfig *cfg=tdeApp->config();
cfg->setGroup("KMid");
midifile_opened=0L;
loopsong=cfg->readNumEntry("Loop",0);
@@ -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)));
+ comboSongs = new TQComboBox(false, this,"Songs");
+ 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)));
+ comboEncodings = new TQComboBox(false, this, "Encodings");
+ 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();
@@ -310,9 +310,9 @@ int tdemidClient::openFile(const char *filename)
midifile_opened=0L;
timebar->setRange(0,240000);
timebar->setValue(0);
- timetags->repaint(TRUE);
+ timetags->repaint(true);
kdispt->ClearEv();
- kdispt->repaint(TRUE);
+ kdispt->repaint(true);
topLevelWidget()->setCaption("KMid");
return -1;
@@ -327,7 +327,7 @@ int tdemidClient::openFile(const char *filename)
// noteArray=player->parseNotes();
noteArray=player->noteArray();
timebar->setRange(0,(int)(player->information()->millisecsTotal));
- timetags->repaint(TRUE);
+ timetags->repaint(true);
kdispt->ClearEv();
spev=player->specialEvents();
while (spev)
@@ -343,7 +343,7 @@ int tdemidClient::openFile(const char *filename)
kdispt->CursorToHome();
// kdispt->updateScrollBars();
emit mustRechooseTextEvent();
- kdispt->repaint(TRUE);
+ kdispt->repaint(true);
tempoLCD->display(tempoToMetronomeTempo(m_kMid.pctl->tempo));
currentTempo=tempoLCD->getValue();
tempoLCD->setDefaultValue(tempoToMetronomeTempo(m_kMid.pctl->tempo)*m_kMid.pctl->ratioTempo);
@@ -372,10 +372,10 @@ 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();
+ tdeApp->enter_loop();
deleteFile=true;
}
@@ -565,7 +565,7 @@ void tdemidClient::slotPlay()
int type;
ulong x=timeOfNextEvent(&type);
if (type!=0)
- timer4events->start(x,TRUE);
+ timer4events->start(x,true);
timer4timebar->start(1000);
@@ -669,12 +669,12 @@ void tdemidClient::slotSeek(int i)
int type;
ulong x=timeOfNextEvent(&type);
if (type!=0)
- timer4events->start(x-(currentmillisec-beginmillisec),TRUE);
+ timer4events->start(x-(currentmillisec-beginmillisec),true);
/*
if (spev==NULL) return;
ulong delaymillisec=spev->absmilliseconds-(currentmillisec-beginmillisec);
- timer4events->start(delaymillisec,TRUE);
+ timer4events->start(delaymillisec,true);
*/
m_kMid.pctl->OK=0;
@@ -892,7 +892,7 @@ void tdemidClient::slotPause()
int type;
ulong x=timeOfNextEvent(&type);
if (type!=0)
- timer4events->start(x-(currentmillisec-beginmillisec),TRUE);
+ timer4events->start(x-(currentmillisec-beginmillisec),true);
timer4timebar->start(1000);
if (noteArray!=NULL)
@@ -925,7 +925,7 @@ void tdemidClient::slotStop()
if (!shuttingdown)
{
- for (int i=0;i<16;i++) m_kMid.pctl->forcepgm[i]=FALSE;
+ for (int i=0;i<16;i++) m_kMid.pctl->forcepgm[i]=false;
if (channelView) channelView->reset();
if (tempoLCD)
{
@@ -1121,7 +1121,7 @@ void tdemidClient::processSpecialEvent()
if (delaymillisec<10) processNext=1;
}
- if (delaymillisec!=~(long)0) timer4events->start(delaymillisec,TRUE);
+ if (delaymillisec!=~(long)0) timer4events->start(delaymillisec,true);
}
@@ -1129,7 +1129,7 @@ void tdemidClient::repaintText(int type)
{
kdispt->ChangeTypeOfTextEvents(type);
typeoftextevents=type;
- kdispt->repaint(TRUE);
+ kdispt->repaint(true);
}
int tdemidClient::ChooseTypeOfTextEvents(void)
@@ -1265,11 +1265,11 @@ void tdemidClient::slotSelectSong(int i)
player->removeSong();
timebar->setRange(0,240000);
timebar->setValue(0);
- timetags->repaint(TRUE);
+ timetags->repaint(true);
kdispt->ClearEv();
- kdispt->repaint(TRUE);
+ kdispt->repaint(true);
comboSongs->clear();
- comboSongs->repaint(TRUE);
+ comboSongs->repaint(true);
topLevelWidget()->setCaption("KMid");
return;
}
@@ -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(tdeApp,TQ_SIGNAL(shutDown()),parentWidget(),TQ_SLOT(shuttingDown()));
}
else if ((channelView!=NULL)&&(i==0))
@@ -1410,7 +1410,7 @@ void tdemidClient::rethinkNextEvent(void)
currentmillisec=tv.tv_sec*1000+tv.tv_usec/1000;
delaymillisec=x-(currentmillisec-beginmillisec);
- timer4events->start(delaymillisec,TRUE);
+ timer4events->start(delaymillisec,true);
}
void tdemidClient::communicationFromChannelView(int *i)
@@ -1487,7 +1487,7 @@ void tdemidClient::slotSetTempo(double value)
timebar->setRange(0,(int)(player->information()->millisecsTotal));
timebar->setValue(pausedatmillisec);
- timetags->repaint(TRUE);
+ timetags->repaint(true);
kdispt->ClearEv(false);
@@ -1519,7 +1519,7 @@ void tdemidClient::slotSetTempo(double value)
void tdemidClient::downloadFinished(TDEIO::Job *)
{
downloaded=true;
- kapp->exit_loop();
+ tdeApp->exit_loop();
}
TQSize tdemidClient::sizeHint() const