summaryrefslogtreecommitdiffstats
path: root/tdemid/channel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdemid/channel.cpp')
-rw-r--r--tdemid/channel.cpp28
1 files changed, 14 insertions, 14 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);