summaryrefslogtreecommitdiffstats
path: root/tdemid
diff options
context:
space:
mode:
Diffstat (limited to 'tdemid')
-rw-r--r--tdemid/channel.cpp28
-rw-r--r--tdemid/channelcfgdlg.cpp6
-rw-r--r--tdemid/collectdlg.cpp2
-rw-r--r--tdemid/kdisptext.cpp6
-rw-r--r--tdemid/klcdnumber.cpp6
-rw-r--r--tdemid/ktrianglebutton.cpp18
-rw-r--r--tdemid/midicfgdlg.cpp2
-rw-r--r--tdemid/tdemidclient.cpp36
8 files changed, 52 insertions, 52 deletions
diff --git a/tdemid/channel.cpp b/tdemid/channel.cpp
index 3cda48dd..91d63bc0 100644
--- a/tdemid/channel.cpp
+++ b/tdemid/channel.cpp
@@ -42,7 +42,7 @@
KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
{
channel=chn;
- replay=TRUE;
+ replay=true;
int i;
for (i=0;i<128;i++) pressed[i]=0;
keyboard = TQPixmap(locate("appdata","icons/keyboard.xpm"));
@@ -52,11 +52,11 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
TDEConfig *kcfg=TDEGlobal::instance()->config();
kcfg->setGroup("KMid");
- TQFont *qtextfontdefault=new TQFont("lucida",18,TQFont::Bold,TRUE);
+ TQFont *qtextfontdefault=new TQFont("lucida",18,TQFont::Bold,true);
qcvfont=new TQFont(kcfg->readFontEntry("ChannelViewFont",qtextfontdefault));
delete qtextfontdefault;
- instrumentCombo = new TQComboBox(FALSE,this,"instr");
+ instrumentCombo = new TQComboBox(false,this,"instr");
instrumentCombo->setGeometry(160,2,200,20);
for (i=0;i<128;i++)
@@ -66,7 +66,7 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
forcepgm=new KMidButton(this,"forcepgm");
forcepgm->setGeometry(135,4,16,16);
- forcepgm->setToggleButton(TRUE);
+ forcepgm->setToggleButton(true);
button1 = TQPixmap(locate("appdata","icons/button1.xpm"));
button2 = TQPixmap(locate("appdata","icons/button2.xpm"));
forcepgm->setPixmaps(button1,button2);
@@ -169,9 +169,9 @@ void KMidChannel::changeInstrument(int pgm)
void KMidChannel::changeForceState(bool i)
{
- replay=FALSE;
+ replay=false;
forcepgm->setOn(i);
- replay=TRUE;
+ replay=true;
}
void KMidChannel::reset(int level)
@@ -180,12 +180,12 @@ void KMidChannel::reset(int level)
if (level>=1)
{
instrumentCombo->setCurrentItem(0);
- replay=FALSE;
- forcepgm->setOn(FALSE);
- replay=TRUE;
+ replay=false;
+ forcepgm->setOn(false);
+ replay=true;
};
- repaint(FALSE);
+ repaint(false);
}
void KMidChannel::saveState(bool *p,int *pgm)
@@ -198,7 +198,7 @@ void KMidChannel::loadState(bool *p,int *pgm)
{
for (int i=0;i<128;i++) pressed[i]=p[i];
instrumentCombo->setCurrentItem(*pgm);
- repaint(FALSE);
+ repaint(false);
}
void KMidChannel::pgmChanged(int i)
@@ -209,9 +209,9 @@ void KMidChannel::pgmChanged(int i)
data[2]=i;
data[3]=0;
- replay=FALSE;
- forcepgm->setOn(TRUE);
- replay=TRUE;
+ replay=false;
+ forcepgm->setOn(true);
+ replay=true;
emit signalToKMidClient(data);
diff --git a/tdemid/channelcfgdlg.cpp b/tdemid/channelcfgdlg.cpp
index 76f6b87a..533a5573 100644
--- a/tdemid/channelcfgdlg.cpp
+++ b/tdemid/channelcfgdlg.cpp
@@ -12,7 +12,7 @@
#include <tqlayout.h>
#include <tqvbuttongroup.h>
-ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *name) : KDialogBase(parent,name,TRUE,i18n("Configure Channel View"),Ok|Cancel, Ok)
+ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *name) : KDialogBase(parent,name,true,i18n("Configure Channel View"),Ok|Cancel, Ok)
{
TQWidget *page = new TQWidget( this );
setMainWidget(page);
@@ -22,10 +22,10 @@ ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *na
rb0=new TQRadioButton(i18n("3D look"),qbg,"3d");
rb1=new TQRadioButton(i18n("3D - filled"),qbg,"4d");
- qbg->setExclusive(TRUE);
+ qbg->setExclusive(true);
topLayout->addWidget( qbg );
- ((ChannelView::lookMode()==0)?rb0:rb1)->setChecked(TRUE);
+ ((ChannelView::lookMode()==0)?rb0:rb1)->setChecked(true);
connect (qbg, TQ_SIGNAL(pressed(int)),this,TQ_SLOT(modeselected(int)));
}
diff --git a/tdemid/collectdlg.cpp b/tdemid/collectdlg.cpp
index 226d86d1..4f373b49 100644
--- a/tdemid/collectdlg.cpp
+++ b/tdemid/collectdlg.cpp
@@ -38,7 +38,7 @@
#include "songlist.h"
#include "slman.h"
-CollectionDialog::CollectionDialog(SLManager *slm,int selC,TQWidget *parent,const char *name) : TQDialog(parent,name,TRUE)
+CollectionDialog::CollectionDialog(SLManager *slm,int selC,TQWidget *parent,const char *name) : TQDialog(parent,name,true)
{
setCaption(i18n("Collections Manager"));
ok=new KPushButton(KStdGuiItem::ok(),this);
diff --git a/tdemid/kdisptext.cpp b/tdemid/kdisptext.cpp
index 51f8fc40..466c1564 100644
--- a/tdemid/kdisptext.cpp
+++ b/tdemid/kdisptext.cpp
@@ -125,7 +125,7 @@ void KDisplayText::ClearEv(bool totally)
this->killTimers();
autoscrollv=0;
resizeContents(0,0);
- viewport()->repaint(TRUE);
+ viewport()->repaint(true);
}
}
@@ -508,7 +508,7 @@ void KDisplayText::fontChanged(void)
qfmetr=new TQFontMetrics(*qtextfont);
calculatePositions();
nvisiblelines=height()/qfmetr->lineSpacing();
- viewport()->repaint(TRUE);
+ viewport()->repaint(true);
}
void KDisplayText::ChangeTypeOfTextEvents(int type)
@@ -534,7 +534,7 @@ void KDisplayText::ChangeTypeOfTextEvents(int type)
setContentsPos(0,first_line->ypos);
}
- viewport()->repaint(TRUE);
+ viewport()->repaint(true);
}
int KDisplayText::ChooseTypeOfTextEvents(void)
diff --git a/tdemid/klcdnumber.cpp b/tdemid/klcdnumber.cpp
index 57385a39..7b3ac247 100644
--- a/tdemid/klcdnumber.cpp
+++ b/tdemid/klcdnumber.cpp
@@ -197,7 +197,7 @@ void KLCDNumber::setValue(double v)
void KLCDNumber::display (double v)
{
setValue(v);
- repaint(FALSE);
+ repaint(false);
}
void KLCDNumber::display (int v)
@@ -317,13 +317,13 @@ void KLCDNumber::defaultValueClicked()
void KLCDNumber::setLCDBackgroundColor(int r,int g,int b)
{
backgcolor=TQColor(r,g,b);
- repaint(FALSE);
+ repaint(false);
}
void KLCDNumber::setLCDColor(int r,int g,int b)
{
LCDcolor=TQColor(r,g,b);
- repaint(FALSE);
+ repaint(false);
}
void KLCDNumber::setRange(double min, double max)
diff --git a/tdemid/ktrianglebutton.cpp b/tdemid/ktrianglebutton.cpp
index 0e2a1d3c..4f7fb139 100644
--- a/tdemid/ktrianglebutton.cpp
+++ b/tdemid/ktrianglebutton.cpp
@@ -34,7 +34,7 @@ KTriangleButton::KTriangleButton( Direction d,TQWidget *_parent, const char *nam
: TQButton( _parent , name)
{
dir=d;
- raised = FALSE;
+ raised = false;
setFocusPolicy( TQWidget::NoFocus );
}
@@ -46,16 +46,16 @@ void KTriangleButton::enterEvent( TQEvent* )
{
if ( isEnabled() )
{
- raised = TRUE;
- repaint(FALSE);
+ raised = true;
+ repaint(false);
}
}
void KTriangleButton::leaveEvent( TQEvent * )
{
- if( raised != FALSE )
+ if( raised != false )
{
- raised = FALSE;
+ raised = false;
repaint();
}
}
@@ -77,19 +77,19 @@ void KTriangleButton::paint( TQPainter *painter )
{
if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
qDrawWinButton( painter, 0, 0, width(),
- height(), colorGroup(), TRUE );
+ height(), colorGroup(), true );
else
qDrawShadePanel( painter, 0, 0, width(),
- height(), colorGroup(), TRUE, 2, 0L );
+ height(), colorGroup(), true, 2, 0L );
}
else if ( raised )
{
if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
qDrawWinButton( painter, 0, 0, width(), height(),
- colorGroup(), FALSE );
+ colorGroup(), false );
else
qDrawShadePanel( painter, 0, 0, width(), height(),
- colorGroup(), FALSE, 2, 0L );
+ colorGroup(), false, 2, 0L );
}
if (dir==Right)
diff --git a/tdemid/midicfgdlg.cpp b/tdemid/midicfgdlg.cpp
index 9a801bed..c5c55d6f 100644
--- a/tdemid/midicfgdlg.cpp
+++ b/tdemid/midicfgdlg.cpp
@@ -38,7 +38,7 @@
#include <tdestandarddirs.h>
MidiConfigDialog::MidiConfigDialog(DeviceManager *dm,
- TQWidget *parent,const char *name) : KDialogBase(parent,name,TRUE,
+ TQWidget *parent,const char *name) : KDialogBase(parent,name,true,
i18n("Configure MIDI Devices"), KDialogBase::Ok|KDialogBase::Cancel)
{
setMinimumSize(360,240);
diff --git a/tdemid/tdemidclient.cpp b/tdemid/tdemidclient.cpp
index 1c7290db..8579ae88 100644
--- a/tdemid/tdemidclient.cpp
+++ b/tdemid/tdemidclient.cpp
@@ -111,11 +111,11 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
tempoLCD->setMinimumSize(tempoLCD->sizeHint());
connect(tempoLCD,TQ_SIGNAL(valueChanged(double)),this,TQ_SLOT(slotSetTempo(double)));
- comboSongs = new TQComboBox(FALSE, this,"Songs");
+ 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");
+ 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() );
@@ -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);
@@ -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;
}
@@ -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);