summaryrefslogtreecommitdiffstats
path: root/kmid/midicfgdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmid/midicfgdlg.cpp')
-rw-r--r--kmid/midicfgdlg.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kmid/midicfgdlg.cpp b/kmid/midicfgdlg.cpp
index a10144a4..855de04a 100644
--- a/kmid/midicfgdlg.cpp
+++ b/kmid/midicfgdlg.cpp
@@ -21,10 +21,10 @@
or to Antonio Larrosa, Rio Arnoya, 10 5B, 29006 Malaga, Spain
***************************************************************************/
-#include <qpushbutton.h>
-#include <qlistbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqpushbutton.h>
+#include <tqlistbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <kfiledialog.h>
@@ -38,25 +38,25 @@
#include <kstandarddirs.h>
MidiConfigDialog::MidiConfigDialog(DeviceManager *dm,
- QWidget *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);
- QWidget *page = new QWidget( this );
+ TQWidget *page = new TQWidget( this );
setMainWidget(page);
- QVBoxLayout *topLayout=new QVBoxLayout(page, 0, spacingHint());
- QLabel *label=new QLabel(i18n("Select the MIDI device you want to use:"),page);
+ TQVBoxLayout *topLayout=new TQVBoxLayout(page, 0, spacingHint());
+ TQLabel *label=new TQLabel(i18n("Select the MIDI device you want to use:"),page);
topLayout->addWidget(label);
- mididevices=new QListBox(page,"midideviceslist");
+ mididevices=new TQListBox(page,"midideviceslist");
topLayout->addWidget(mididevices,3);
- connect(mididevices,SIGNAL(highlighted(int)),SLOT(deviceselected(int)));
+ connect(mididevices,TQT_SIGNAL(highlighted(int)),TQT_SLOT(deviceselected(int)));
devman=dm;
- QString temp;
+ TQString temp;
for (int i=0;i<devman->midiPorts()+devman->synthDevices();i++)
{
if (strcmp(devman->type(i),"")!=0)
- temp = QString("%1 - %2").arg(devman->name(i)).arg(devman->type(i));
+ temp = TQString("%1 - %2").arg(devman->name(i)).arg(devman->type(i));
else
temp = devman->name(i);
@@ -65,7 +65,7 @@ MidiConfigDialog::MidiConfigDialog(DeviceManager *dm,
selecteddevice=devman->defaultDevice();
mididevices->setCurrentItem(selecteddevice);
- QLabel *label2=new QLabel(i18n("Use the MIDI map:"),page);
+ TQLabel *label2=new TQLabel(i18n("Use the MIDI map:"),page);
topLayout->addWidget(label2);
@@ -78,20 +78,20 @@ MidiConfigDialog::MidiConfigDialog(DeviceManager *dm,
strcpy(selectedmap,devman->midiMapFilename());
}
- if (selectedmap!=NULL) maplabel=new QLabel(selectedmap,page);
- else maplabel=new QLabel(i18n("None"),page);
+ if (selectedmap!=NULL) maplabel=new TQLabel(selectedmap,page);
+ else maplabel=new TQLabel(i18n("None"),page);
topLayout->addWidget(maplabel);
- QHBoxLayout *hbox=new QHBoxLayout(topLayout);
+ TQHBoxLayout *hbox=new TQHBoxLayout(topLayout);
hbox->addStretch(1);
- mapbrowse=new QPushButton(i18n("Browse..."),page);
+ mapbrowse=new TQPushButton(i18n("Browse..."),page);
hbox->addWidget(mapbrowse);
- connect(mapbrowse,SIGNAL(clicked()),SLOT(browseMap()) );
+ connect(mapbrowse,TQT_SIGNAL(clicked()),TQT_SLOT(browseMap()) );
- mapnone=new QPushButton(i18n("None"),page);
+ mapnone=new TQPushButton(i18n("None"),page);
hbox->addWidget(mapnone);
- connect(mapnone,SIGNAL(clicked()),SLOT(noMap()) );
+ connect(mapnone,TQT_SIGNAL(clicked()),TQT_SLOT(noMap()) );
topLayout->addStretch(1);
@@ -104,7 +104,7 @@ void MidiConfigDialog::deviceselected(int idx)
void MidiConfigDialog::browseMap()
{
- QString path = KGlobal::dirs()->findAllResources("appdata", "maps/*.map").last();
+ TQString path = KGlobal::dirs()->findAllResources("appdata", "maps/*.map").last();
path.truncate(path.findRev('/'));
KURL url = KFileDialog::getOpenURL(path,"*.map",this);
@@ -118,11 +118,11 @@ void MidiConfigDialog::browseMap()
return;
}
- QString filename = url.path();
+ TQString filename = url.path();
delete selectedmap;
selectedmap=new char[filename.length()+1];
- strcpy(selectedmap,QFile::encodeName(filename));
+ strcpy(selectedmap,TQFile::encodeName(filename));
maplabel->setText(selectedmap);
}