summaryrefslogtreecommitdiffstats
path: root/arts/tools/midimanagerview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arts/tools/midimanagerview.cpp')
-rw-r--r--arts/tools/midimanagerview.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/arts/tools/midimanagerview.cpp b/arts/tools/midimanagerview.cpp
index 6b40aad4..4849af78 100644
--- a/arts/tools/midimanagerview.cpp
+++ b/arts/tools/midimanagerview.cpp
@@ -27,10 +27,10 @@
#define protected public
#include "midimanagerwidget.h"
#undef protected
-#include <qpushbutton.h>
-#include <qlistbox.h>
-#include <qlayout.h>
-#include <qpainter.h>
+#include <tqpushbutton.h>
+#include <tqlistbox.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
#include <stdio.h>
#include <kaction.h>
#include <klocale.h>
@@ -62,28 +62,28 @@ Arts::Environment::Container defaultEnvironment()
return d;
}
-class MidiManagerItem : public QListBoxText {
+class MidiManagerItem : public TQListBoxText {
public:
MidiClientInfo info;
MidiManagerItem(const MidiClientInfo &info) :info(info)
{
}
- QString text () const {
- return QString::fromUtf8(info.title.c_str());
+ TQString text () const {
+ return TQString::fromUtf8(info.title.c_str());
}
};
-class ConnectionWidget : public QWidget {
+class ConnectionWidget : public TQWidget {
public:
MidiManagerView *v;
- ConnectionWidget(MidiManagerView *v, QWidget *parent) : QWidget(parent), v(v)
+ ConnectionWidget(MidiManagerView *v, TQWidget *parent) : TQWidget(parent), v(v)
{
}
- void paintEvent(QPaintEvent * /*event*/)
+ void paintEvent(TQPaintEvent * /*event*/)
{
- QPainter painter;
+ TQPainter painter;
painter.begin(this);
// painter.fillRect(event->rect(),white);
@@ -96,8 +96,8 @@ public:
conn != item->info.connections.end(); conn++)
{
MidiManagerItem *outitem = v->itemMap[*conn];
- QRect r1 = v->widget->inputsListBox->itemRect(item);
- QRect r2 = v->widget->outputsListBox->itemRect(outitem);
+ TQRect r1 = v->widget->inputsListBox->itemRect(item);
+ TQRect r2 = v->widget->outputsListBox->itemRect(outitem);
if(r1.height() > 0 && r2.height() > 0)
{
@@ -113,23 +113,23 @@ public:
MidiManagerView::MidiManagerView()
: manager(Reference("global:Arts_MidiManager"))
{
- QTimer *updatetimer = new QTimer(this);
+ TQTimer *updatetimer = new TQTimer(this);
updatetimer->start(5000);
- connect(updatetimer,SIGNAL(timeout()),this,SLOT(updateLists()));
+ connect(updatetimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(updateLists()));
widget = new MidiManagerWidget(this);
setCentralWidget(widget);
setCaption(i18n("MIDI Manager"));
setIcon( MainBarIcon( "artsfftscope", 32 ) );
- (void)new KAction(i18n("&System MIDI Port (OSS)"), 0, this, SLOT(addOSSMidiPort()),
+ (void)new KAction(i18n("&System MIDI Port (OSS)"), 0, this, TQT_SLOT(addOSSMidiPort()),
actionCollection(), "add_oss_midi_port");
(void)new KAction(i18n("&aRts Synthesis MIDI Output"), 0, this,
- SLOT(addArtsMidiOutput()), actionCollection(), "add_arts_midi_output");
+ TQT_SLOT(addArtsMidiOutput()), actionCollection(), "add_arts_midi_output");
- (void) KStdAction::quit( this, SLOT(close()), actionCollection());
- connect(widget->connectButton,SIGNAL(clicked()), this, SLOT(slotConnect()));
- connect(widget->disconnectButton,SIGNAL(clicked()), this, SLOT(slotDisconnect()));
+ (void) KStdAction::quit( this, TQT_SLOT(close()), actionCollection());
+ connect(widget->connectButton,TQT_SIGNAL(clicked()), this, TQT_SLOT(slotConnect()));
+ connect(widget->disconnectButton,TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDisconnect()));
connectionWidget = new ConnectionWidget(this, widget->connectionFrame);
connectionWidget->setMinimumSize(60,10);
@@ -142,7 +142,7 @@ MidiManagerView::MidiManagerView()
setIcon( MainBarIcon( "artsfftscope", 32 ) );
}
-void MidiManagerView::closeEvent(QCloseEvent *e)
+void MidiManagerView::closeEvent(TQCloseEvent *e)
{
e->accept();
emit closed();
@@ -168,7 +168,7 @@ void MidiManagerView::updateLists()
widget->outputsListBox->clear();
for(i = clients->begin(); i != clients->end(); i++)
{
- QListBox *box;
+ TQListBox *box;
if(i->direction == mcdPlay)
box = widget->inputsListBox;
else