summaryrefslogtreecommitdiffstats
path: root/arts/tools
diff options
context:
space:
mode:
Diffstat (limited to 'arts/tools')
-rw-r--r--arts/tools/artsactions.cpp44
-rw-r--r--arts/tools/artsactions.h8
-rw-r--r--arts/tools/artscontrolapplet.cpp32
-rw-r--r--arts/tools/artscontrolapplet.h10
-rw-r--r--arts/tools/artscontrolapplet_private.h32
-rw-r--r--arts/tools/audiomanager.cpp40
-rw-r--r--arts/tools/audiomanager.h22
-rw-r--r--arts/tools/choosebusdlg.cpp44
-rw-r--r--arts/tools/choosebusdlg.h8
-rw-r--r--arts/tools/environmentview.cpp58
-rw-r--r--arts/tools/environmentview.h6
-rw-r--r--arts/tools/fftscopeview.cpp36
-rw-r--r--arts/tools/fftscopeview.h6
-rw-r--r--arts/tools/levelmeters.cpp64
-rw-r--r--arts/tools/levelmeters.h42
-rw-r--r--arts/tools/main.cpp28
-rw-r--r--arts/tools/main.h20
-rw-r--r--arts/tools/mediatypesview.cpp10
-rw-r--r--arts/tools/mediatypesview.h2
-rw-r--r--arts/tools/midiinstdlg.cpp86
-rw-r--r--arts/tools/midiinstdlg.h14
-rw-r--r--arts/tools/midimanagerview.cpp44
-rw-r--r--arts/tools/midimanagerview.h2
-rw-r--r--arts/tools/midiportdlg.cpp28
-rw-r--r--arts/tools/midiportdlg.h20
-rw-r--r--arts/tools/statusview.cpp26
-rw-r--r--arts/tools/statusview.h10
-rw-r--r--arts/tools/templateview.cpp4
-rw-r--r--arts/tools/templateview.h6
29 files changed, 376 insertions, 376 deletions
diff --git a/arts/tools/artsactions.cpp b/arts/tools/artsactions.cpp
index 213c81bb..c483beb0 100644
--- a/arts/tools/artsactions.cpp
+++ b/arts/tools/artsactions.cpp
@@ -36,8 +36,8 @@
#include "environmentview.h"
#include "mediatypesview.h"
-ArtsActions::ArtsActions( KArtsServer* server, KActionCollection* col, QWidget* parent, const char* name )
- : QObject( parent,name )
+ArtsActions::ArtsActions( KArtsServer* server, KActionCollection* col, TQWidget* parent, const char* name )
+ : TQObject( parent,name )
, _kartsserver( server )
, _actioncollection( col )
, _a_sv( 0 ), _a_am( 0 ), _a_asv( 0 ), _a_mmv( 0 ), _a_ev( 0 ), _a_mtv( 0 )
@@ -62,52 +62,52 @@ ArtsActions::~ArtsActions() {
}
KAction* ArtsActions::actionScopeView() {
- if ( !_a_sv ) _a_sv = new KAction( i18n( "&FFT Scope" ), "artsfftscope", KShortcut(), this, SLOT( viewScopeView() ), _actioncollection, "artssupport_view_scopeview" );
+ if ( !_a_sv ) _a_sv = new KAction( i18n( "&FFT Scope" ), "artsfftscope", KShortcut(), this, TQT_SLOT( viewScopeView() ), _actioncollection, "artssupport_view_scopeview" );
return _a_sv;
}
KAction* ArtsActions::actionAudioManager() {
- if ( !_a_am ) _a_am = new KAction( i18n( "&Audio Manager" ), "artsaudiomanager", KShortcut(), this, SLOT( viewAudioManager() ), _actioncollection, "artssupport_view_audiomanager" );
+ if ( !_a_am ) _a_am = new KAction( i18n( "&Audio Manager" ), "artsaudiomanager", KShortcut(), this, TQT_SLOT( viewAudioManager() ), _actioncollection, "artssupport_view_audiomanager" );
return _a_am;
}
KAction* ArtsActions::actionArtsStatusView() {
- if ( !_a_asv ) _a_asv = new KAction( i18n( "aRts &Status" ), "artscontrol", KShortcut(), this, SLOT( viewArtsStatusView() ), _actioncollection, "artssupport_view_artsstatus" );
+ if ( !_a_asv ) _a_asv = new KAction( i18n( "aRts &Status" ), "artscontrol", KShortcut(), this, TQT_SLOT( viewArtsStatusView() ), _actioncollection, "artssupport_view_artsstatus" );
return _a_asv;
}
KAction* ArtsActions::actionMidiManagerView() {
- if ( !_a_mmv ) _a_mmv = new KAction( i18n( "&MIDI Manager" ), "artsmidimanager", KShortcut(), this, SLOT( viewMidiManagerView() ), _actioncollection, "artssupport_view_midimanager" );
+ if ( !_a_mmv ) _a_mmv = new KAction( i18n( "&MIDI Manager" ), "artsmidimanager", KShortcut(), this, TQT_SLOT( viewMidiManagerView() ), _actioncollection, "artssupport_view_midimanager" );
return _a_mmv;
}
KAction* ArtsActions::actionEnvironmentView() {
- if ( !_a_ev ) _a_ev = new KAction( i18n( "&Environment" ), "artsenvironment", KShortcut(), this, SLOT( viewEnvironmentView() ), _actioncollection, "artssupport_view_environment" );
+ if ( !_a_ev ) _a_ev = new KAction( i18n( "&Environment" ), "artsenvironment", KShortcut(), this, TQT_SLOT( viewEnvironmentView() ), _actioncollection, "artssupport_view_environment" );
return _a_ev;
}
KAction* ArtsActions::actionMediaTypesView() {
- if ( !_a_mtv ) _a_mtv = new KAction( i18n( "Available Media &Types" ), "artsmediatypes", KShortcut(), this, SLOT( viewMediaTypesView() ), _actioncollection, "artssupport_view_mediatypes" );
+ if ( !_a_mtv ) _a_mtv = new KAction( i18n( "Available Media &Types" ), "artsmediatypes", KShortcut(), this, TQT_SLOT( viewMediaTypesView() ), _actioncollection, "artssupport_view_mediatypes" );
return _a_mtv;
}
KAction* ArtsActions::actionStyleNormal() {
- if ( !_a_style_normal ) _a_style_normal = new KAction( i18n( "Style: NormalBars" ), "", KShortcut(), this, SLOT( _p_style_normal() ), _actioncollection, "artssupport_style_normal" );
+ if ( !_a_style_normal ) _a_style_normal = new KAction( i18n( "Style: NormalBars" ), "", KShortcut(), this, TQT_SLOT( _p_style_normal() ), _actioncollection, "artssupport_style_normal" );
return _a_style_normal;
}
KAction* ArtsActions::actionStyleFire() {
- if ( !_a_style_fire ) _a_style_fire = new KAction( i18n( "Style: FireBars" ), "", KShortcut(), this, SLOT( _p_style_fire() ), _actioncollection, "artssupport_style_fire" );
+ if ( !_a_style_fire ) _a_style_fire = new KAction( i18n( "Style: FireBars" ), "", KShortcut(), this, TQT_SLOT( _p_style_fire() ), _actioncollection, "artssupport_style_fire" );
return _a_style_fire;
}
KAction* ArtsActions::actionStyleLine() {
- if ( !_a_style_line ) _a_style_line = new KAction( i18n( "Style: LineBars" ), "", KShortcut(), this, SLOT( _p_style_line() ), _actioncollection, "artssupport_style_line" );
+ if ( !_a_style_line ) _a_style_line = new KAction( i18n( "Style: LineBars" ), "", KShortcut(), this, TQT_SLOT( _p_style_line() ), _actioncollection, "artssupport_style_line" );
return _a_style_line;
}
KAction* ArtsActions::actionStyleLED() {
- if ( !_a_style_led ) _a_style_led = new KAction( i18n( "Style: LEDs" ), "", KShortcut(), this, SLOT( _p_style_led() ), _actioncollection, "artssupport_style_led" );
+ if ( !_a_style_led ) _a_style_led = new KAction( i18n( "Style: LEDs" ), "", KShortcut(), this, TQT_SLOT( _p_style_led() ), _actioncollection, "artssupport_style_led" );
return _a_style_led;
}
KAction* ArtsActions::actionStyleAnalog() {
- if ( !_a_style_analog ) _a_style_analog = new KAction( i18n( "Style: Analog" ), "", KShortcut(), this, SLOT( _p_style_analog() ), _actioncollection, "artssupport_style_analog" );
+ if ( !_a_style_analog ) _a_style_analog = new KAction( i18n( "Style: Analog" ), "", KShortcut(), this, TQT_SLOT( _p_style_analog() ), _actioncollection, "artssupport_style_analog" );
return _a_style_analog;
}
KAction* ArtsActions::actionStyleSmall() {
- if ( !_a_style_small ) _a_style_small = new KAction( i18n( "Style: Small" ), "", KShortcut(), this, SLOT( _p_style_small() ), _actioncollection, "artssupport_style_small" );
+ if ( !_a_style_small ) _a_style_small = new KAction( i18n( "Style: Small" ), "", KShortcut(), this, TQT_SLOT( _p_style_small() ), _actioncollection, "artssupport_style_small" );
return _a_style_small;
}
KPopupMenu* ArtsActions::stylemenu() {
@@ -124,11 +124,11 @@ KPopupMenu* ArtsActions::stylemenu() {
return _stylemenu;
}
-KAction* ArtsActions::actionMoreBars( const QObject* receiver, const char* slot, KActionCollection *actioncollection ) {
+KAction* ArtsActions::actionMoreBars( const TQObject* receiver, const char* slot, KActionCollection *actioncollection ) {
static KAction *_a_morebars = new KAction( i18n( "More Bars in VU-Meters" ), "up", KShortcut(), receiver, slot, actioncollection, "artssupport_morebars" );
return _a_morebars;
}
-KAction* ArtsActions::actionLessBars( const QObject* receiver, const char* slot, KActionCollection *actioncollection ) {
+KAction* ArtsActions::actionLessBars( const TQObject* receiver, const char* slot, KActionCollection *actioncollection ) {
static KAction *_a_lessbars = new KAction( i18n( "Less Bars in VU-Meters" ), "down", KShortcut(), receiver, slot, actioncollection, "artssupport_lessbars" );
return _a_lessbars;
}
@@ -136,7 +136,7 @@ KAction* ArtsActions::actionLessBars( const QObject* receiver, const char* slot,
void ArtsActions::viewScopeView() {
if ( !_sv ) {
_sv = new FFTScopeView( _kartsserver->server() );
- connect( _sv, SIGNAL( closed() ), this, SLOT( viewScopeView() ) );
+ connect( _sv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewScopeView() ) );
} else {
delete _sv;
_sv = 0;
@@ -145,7 +145,7 @@ void ArtsActions::viewScopeView() {
void ArtsActions::viewAudioManager() {
if ( !_am ) {
_am = new Gui_AUDIO_MANAGER();
- connect( _am, SIGNAL( closed() ), this, SLOT( viewAudioManager() ) );
+ connect( _am, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewAudioManager() ) );
} else {
delete _am;
_am = 0;
@@ -154,7 +154,7 @@ void ArtsActions::viewAudioManager() {
void ArtsActions::viewArtsStatusView() {
if ( !_asv ) {
_asv = new ArtsStatusView( _kartsserver->server() );
- connect( _asv, SIGNAL( closed() ), this, SLOT( viewArtsStatusView() ) );
+ connect( _asv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewArtsStatusView() ) );
} else {
delete _asv;
_asv = 0;
@@ -163,7 +163,7 @@ void ArtsActions::viewArtsStatusView() {
void ArtsActions::viewMidiManagerView() {
if ( !_mmv ) {
_mmv = new MidiManagerView();
- connect( _mmv, SIGNAL( closed() ), this, SLOT( viewMidiManagerView() ) );
+ connect( _mmv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewMidiManagerView() ) );
} else {
delete _mmv;
_mmv = 0;
@@ -172,7 +172,7 @@ void ArtsActions::viewMidiManagerView() {
void ArtsActions::viewEnvironmentView() {
if ( !_ev ) {
_ev = new EnvironmentView( defaultEnvironment() );
- connect( _ev, SIGNAL( closed() ), this, SLOT( viewEnvironmentView() ) );
+ connect( _ev, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewEnvironmentView() ) );
} else {
delete _ev;
_ev = 0;
@@ -181,7 +181,7 @@ void ArtsActions::viewEnvironmentView() {
void ArtsActions::viewMediaTypesView() {
if ( !_mtv ) {
_mtv = new MediaTypesView();
- connect( _mtv, SIGNAL( closed() ), this, SLOT( viewMediaTypesView() ) );
+ connect( _mtv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewMediaTypesView() ) );
} else {
delete _mtv;
_mtv = 0;
diff --git a/arts/tools/artsactions.h b/arts/tools/artsactions.h
index 15a19f64..441d7373 100644
--- a/arts/tools/artsactions.h
+++ b/arts/tools/artsactions.h
@@ -21,7 +21,7 @@
#ifndef ARTS_ACTIONS_H
#define ARTS_ACTIONS_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kdelibs_export.h>
class KArtsServer;
class KAction;
@@ -50,7 +50,7 @@ public:
@param qwidget the parent QWidget
@param name the name of the object
*/
- ArtsActions( KArtsServer* artsserver, KActionCollection* actioncollection, QWidget* qwidget, const char* name=0 );
+ ArtsActions( KArtsServer* artsserver, KActionCollection* actioncollection, TQWidget* qwidget, const char* name=0 );
/** Destructor */
~ArtsActions();
@@ -75,8 +75,8 @@ public:
KAction* actionStyleSmall();
KPopupMenu* stylemenu();
- static KAction* actionMoreBars( const QObject*, const char*, KActionCollection* );
- static KAction* actionLessBars( const QObject*, const char*, KActionCollection* );
+ static KAction* actionMoreBars( const TQObject*, const char*, KActionCollection* );
+ static KAction* actionLessBars( const TQObject*, const char*, KActionCollection* );
public slots:
void viewScopeView();
diff --git a/arts/tools/artscontrolapplet.cpp b/arts/tools/artscontrolapplet.cpp
index a178c2d3..e4a7e16a 100644
--- a/arts/tools/artscontrolapplet.cpp
+++ b/arts/tools/artscontrolapplet.cpp
@@ -21,15 +21,15 @@
#include <kapplication.h>
#include <kmessagebox.h>
#include <kdebug.h>
-#include <qcursor.h>
-#include <qtimer.h>
+#include <tqcursor.h>
+#include <tqtimer.h>
#include "artscontrolapplet.h"
#include "artscontrolapplet_private.h"
extern "C"
{
- KDE_EXPORT KPanelApplet* init( QWidget *parent, const QString configFile)
+ KDE_EXPORT KPanelApplet* init( TQWidget *parent, const TQString configFile)
{
KGlobal::locale()->insertCatalogue("artscontrol");
return new ArtsControlApplet(configFile, KPanelApplet::Normal,
@@ -38,9 +38,9 @@ extern "C"
}
}
-ArtsControlApplet::ArtsControlApplet(const QString& configFile, Type type, int actions, QWidget *parent, const char *name) : KPanelApplet(configFile, type, actions, parent, name)
+ArtsControlApplet::ArtsControlApplet(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name) : KPanelApplet(configFile, type, actions, parent, name)
{
- //kdDebug()<<"ArtsControlApplet::ArtsControlApplet( const QString& "<<configFile<<", Type "<<type<<", int "<<actions<<", QWidget* "<<parent<<", const char* "<<name<<" )"<<endl;
+ //kdDebug()<<"ArtsControlApplet::ArtsControlApplet( const TQString& "<<configFile<<", Type "<<type<<", int "<<actions<<", TQWidget* "<<parent<<", const char* "<<name<<" )"<<endl;
// Get the current application configuration handle
ksConfig = config();
@@ -48,7 +48,7 @@ ArtsControlApplet::ArtsControlApplet(const QString& configFile, Type type, int a
if( !p->barts ) KMessageBox::information(0, i18n("Something with the ArtsServer went wrong. You probably need to restart aRts and then reload this applet."));
setCustomMenu(p->menu);
- p->layout = new QBoxLayout( this, QBoxLayout::LeftToRight );
+ p->layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
p->layout->setSpacing( 2 );
if( p->barts ) {
@@ -61,7 +61,7 @@ ArtsControlApplet::ArtsControlApplet(const QString& configFile, Type type, int a
p->layout->activate();
- QTimer::singleShot( 100, this, SLOT( supdatelayout() ) );
+ TQTimer::singleShot( 100, this, TQT_SLOT( supdatelayout() ) );
kdDebug()<<"ArtsControlApplet::ArtsControlApplet() finished."<<endl;
}
@@ -101,14 +101,14 @@ kdDebug()<<"ArtsControlApplet::heightForWidth( int "<<w<<" )"<<endl;
return p->layout->sizeHint().height();
}
-void ArtsControlApplet::resizeEvent( QResizeEvent * /*_Event*/ ) {
- kdDebug()<<"ArtsControlApplet::resizeEvent( QResizeEvent * )"<<endl;
+void ArtsControlApplet::resizeEvent( TQResizeEvent * /*_Event*/ ) {
+ kdDebug()<<"ArtsControlApplet::resizeEvent( TQResizeEvent * )"<<endl;
}
-void ArtsControlApplet::mousePressEvent( QMouseEvent* ev ) {
- //kdDebug()<<"ArtsControlApplet::mousePressEvent( QMouseEvent* "<<ev<<" )"<<endl;
+void ArtsControlApplet::mousePressEvent( TQMouseEvent* ev ) {
+ //kdDebug()<<"ArtsControlApplet::mousePressEvent( TQMouseEvent* "<<ev<<" )"<<endl;
if ( Qt::RightButton == ev->button() /*|| Qt::LeftButton == ev->button()*/ )
- p->menu->exec( QCursor::pos() );
+ p->menu->exec( TQCursor::pos() );
}
void ArtsControlApplet::positionChange( Position ) {
@@ -122,12 +122,12 @@ kdDebug()<<k_funcinfo<<" position()="<<position()<<endl;
{
case pTop:
case pBottom:
- p->layout->setDirection( QBoxLayout::LeftToRight );
+ p->layout->setDirection( TQBoxLayout::LeftToRight );
if ( p->barts ) p->vu.direction( Arts::LeftToRight );
break;
case pRight:
case pLeft:
- p->layout->setDirection( QBoxLayout::TopToBottom );
+ p->layout->setDirection( TQBoxLayout::TopToBottom );
if ( p->barts ) p->vu.direction( Arts::TopToBottom );
break;
default: break;
@@ -138,8 +138,8 @@ void ArtsControlAppletPrivate::SVinline() {
kdDebug() << k_funcinfo << endl;
if ( !svinline ) {
svinline = new FFTScopeView( arts->server(), _parent );
- svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( QFrame::Panel|QFrame::Sunken );
- connect( svinline, SIGNAL( closed() ), this, SLOT( SVinline() ) );
+ svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( TQFrame::Panel|TQFrame::Sunken );
+ connect( svinline, TQT_SIGNAL( closed() ), this, TQT_SLOT( SVinline() ) );
layout->addWidget( svinline );
} else {
delete svinline;
diff --git a/arts/tools/artscontrolapplet.h b/arts/tools/artscontrolapplet.h
index 09ff15fe..9efe5eb5 100644
--- a/arts/tools/artscontrolapplet.h
+++ b/arts/tools/artscontrolapplet.h
@@ -23,7 +23,7 @@
#endif
#include <kpanelapplet.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kconfig.h>
class ArtsControlAppletPrivate;
@@ -41,8 +41,8 @@ public:
* @param parent The pointer to the parent widget handed over in the factory function.
* @param name A Qt object name for your applet.
**/
- ArtsControlApplet(const QString& configFile, Type t = Normal, int = 0,
- QWidget * = 0, const char * = 0);
+ ArtsControlApplet(const TQString& configFile, Type t = Normal, int = 0,
+ TQWidget * = 0, const char * = 0);
/** destructor */
~ArtsControlApplet();
/**
@@ -112,9 +112,9 @@ public:
protected:
- void resizeEvent( QResizeEvent* );
+ void resizeEvent( TQResizeEvent* );
- virtual void mousePressEvent( QMouseEvent* );
+ virtual void mousePressEvent( TQMouseEvent* );
void positionChange( Position );
diff --git a/arts/tools/artscontrolapplet_private.h b/arts/tools/artscontrolapplet_private.h
index 044a156b..2b681b92 100644
--- a/arts/tools/artscontrolapplet_private.h
+++ b/arts/tools/artscontrolapplet_private.h
@@ -20,15 +20,15 @@
#include "artscontrolapplet.h"
-#include <qobject.h>
+#include <tqobject.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qslider.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqslider.h>
+#include <tqpushbutton.h>
#include <kpopupmenu.h>
#include <kaction.h>
-#include <qfont.h>
+#include <tqfont.h>
#include <kartsserver.h>
#include <kartsdispatcher.h>
@@ -45,13 +45,13 @@
class VolumeSlider;
-class KDE_EXPORT ArtsControlAppletPrivate : public QObject {
+class KDE_EXPORT ArtsControlAppletPrivate : public TQObject {
Q_OBJECT
private:
ArtsControlApplet *_parent;
ArtsActions* _artsactions;
public:
- QBoxLayout *layout;
+ TQBoxLayout *layout;
KArtsServer *arts;
KArtsDispatcher *dispatcher;
Arts::StereoVolumeControl volume;
@@ -66,7 +66,7 @@ public:
KAction *_styleNormalBars, *_styleFireBars, *_styleLineBars, *_styleLEDs, *_styleAnalog, *_styleSmall;
ArtsControlAppletPrivate( ArtsControlApplet *parent )
- : QObject(parent)
+ : TQObject(parent)
, _parent( parent )
, barts( false )
, bInUpdate( false )
@@ -82,7 +82,7 @@ public:
menu = new KPopupMenu( 0 );
_showSV = _artsactions->actionScopeView();
_showSV->plug( menu );
- _showSVinline = new KAction( i18n( "Toggle &Inline FFT Scope" ), "artscontrol", KShortcut(), this, SLOT( SVinline() ), this );
+ _showSVinline = new KAction( i18n( "Toggle &Inline FFT Scope" ), "artscontrol", KShortcut(), this, TQT_SLOT( SVinline() ), this );
_showSVinline->plug( menu );
_showAM = _artsactions->actionAudioManager();
_showAM->plug( menu );
@@ -96,12 +96,12 @@ public:
_showMediaTypes->plug( menu );
menu->insertSeparator();
menu->insertItem( i18n( "VU-Style" ), _artsactions->stylemenu() );
- connect( _artsactions, SIGNAL( styleNormal() ), this, SLOT( styleNormalBars() ) );
- connect( _artsactions, SIGNAL( styleFire() ), this, SLOT( styleFireBars() ) );
- connect( _artsactions, SIGNAL( styleLine() ), this, SLOT( styleLineBars() ) );
- connect( _artsactions, SIGNAL( styleLED() ), this, SLOT( styleLEDs() ) );
- connect( _artsactions, SIGNAL( styleAnalog() ), this, SLOT( styleAnalog() ) );
- connect( _artsactions, SIGNAL( styleSmall() ), this, SLOT( styleSmall() ) );
+ connect( _artsactions, TQT_SIGNAL( styleNormal() ), this, TQT_SLOT( styleNormalBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleFire() ), this, TQT_SLOT( styleFireBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleLine() ), this, TQT_SLOT( styleLineBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleLED() ), this, TQT_SLOT( styleLEDs() ) );
+ connect( _artsactions, TQT_SIGNAL( styleAnalog() ), this, TQT_SLOT( styleAnalog() ) );
+ connect( _artsactions, TQT_SIGNAL( styleSmall() ), this, TQT_SLOT( styleSmall() ) );
}
~ArtsControlAppletPrivate() {
if ( svinline ) SVinline();
diff --git a/arts/tools/audiomanager.cpp b/arts/tools/audiomanager.cpp
index 1216e192..3e3789ae 100644
--- a/arts/tools/audiomanager.cpp
+++ b/arts/tools/audiomanager.cpp
@@ -24,8 +24,8 @@
#include "audiomanager.h"
#include "choosebusdlg.h"
-#include <qtimer.h>
-#include <qlayout.h>
+#include <tqtimer.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <klistview.h>
@@ -37,7 +37,7 @@ using namespace std;
* as this is an 1:1 port of an old arts-0.3.4.1 artsbuilable visual widget,
* you'll see some porting artefacts, and it's not elegance itself ;)
*/
-Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( QWidget* parent, const char* name ) : Template_ArtsView( parent,name )
+Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( TQWidget* parent, const char* name ) : Template_ArtsView( parent,name )
{
this->setCaption( i18n( "Audio Manager" ) );
this->setIcon( MainBarIcon( "artsaudiomanager", 32 ) );
@@ -53,9 +53,9 @@ Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( QWidget* parent, const char* name ) : Temp
tick();
show();
- QTimer *updatetimer = new QTimer(this);
+ TQTimer *updatetimer = new TQTimer(this);
updatetimer->start(500);
- QObject::connect(updatetimer,SIGNAL(timeout()),this,SLOT(tick()));
+ TQObject::connect(updatetimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(tick()));
}
Gui_AUDIO_MANAGER::~Gui_AUDIO_MANAGER()
@@ -65,14 +65,14 @@ Gui_AUDIO_MANAGER::~Gui_AUDIO_MANAGER()
}
#if 0
-void Gui_AUDIO_MANAGER::widgetDestroyed(QWidget *widget)
+void Gui_AUDIO_MANAGER::widgetDestroyed(TQWidget *widget)
{
assert(widget == listview);
listview = 0;
}
#endif
-void Gui_AUDIO_MANAGER::setParent(QWidget *parent, QBoxLayout * /*layout*/)
+void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*layout*/)
{
/************************************************************************
* From Gui_INSTRUMENT_MAPPER:
@@ -90,8 +90,8 @@ void Gui_AUDIO_MANAGER::setParent(QWidget *parent, QBoxLayout * /*layout*/)
* else would be appropriate. Check that. FIXME
************************************************************************/
- QVBoxLayout *mainlayout = new QVBoxLayout(parent);
- /*QHBoxLayout *contentslayout = new QHBoxLayout;*/
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(parent);
+ /*TQHBoxLayout *contentslayout = new QHBoxLayout;*/
// list
@@ -103,8 +103,8 @@ void Gui_AUDIO_MANAGER::setParent(QWidget *parent, QBoxLayout * /*layout*/)
listview->setMinimumSize(300,100);
- QObject::connect(listview,SIGNAL(executed(QListViewItem *)),proxy,
- SLOT(edit(QListViewItem *)));
+ TQObject::connect(listview,TQT_SIGNAL(executed(TQListViewItem *)),proxy,
+ TQT_SLOT(edit(TQListViewItem *)));
mainlayout->addWidget(listview);
@@ -128,13 +128,13 @@ void Gui_AUDIO_MANAGER::tick()
for(c=0;c<acs->size();c++)
{
//char status[2][10] = {"init","running"};
- QString description = QString::fromUtf8( (*acs)[c].title.c_str() );
- QString type;
+ TQString description = TQString::fromUtf8( (*acs)[c].title.c_str() );
+ TQString type;
if((*acs)[c].direction == Arts::amPlay)
type = i18n("play");
else
type = i18n("record");
- QString destination = QString::fromUtf8( (*acs)[c].destination.c_str() );
+ TQString destination = TQString::fromUtf8( (*acs)[c].destination.c_str() );
long ID = (*acs)[c].ID;
(void)new AudioManagerItem(listview, description, type, destination, ID);
@@ -143,7 +143,7 @@ void Gui_AUDIO_MANAGER::tick()
//Widget->show();
}
-void Gui_AUDIO_MANAGER::edit(QListViewItem *item)
+void Gui_AUDIO_MANAGER::edit(TQListViewItem *item)
{
AudioManagerItem *ai = (AudioManagerItem *)item;
ChooseBusDlg *cd = new ChooseBusDlg(0);
@@ -153,9 +153,9 @@ void Gui_AUDIO_MANAGER::edit(QListViewItem *item)
int accept = cd->exec();
inDialog = false;
- if( accept == QDialog::Accepted )
+ if( accept == TQDialog::Accepted )
{
- QString result = cd->result();
+ TQString result = cd->result();
if(!result.isNull())
{
//lukas: I hope UTF-8 is OK here...
@@ -173,13 +173,13 @@ GuiAudioManagerProxy::GuiAudioManagerProxy(Gui_AUDIO_MANAGER *gim)
this->gim = gim;
}
-void GuiAudioManagerProxy::edit(QListViewItem *item)
+void GuiAudioManagerProxy::edit(TQListViewItem *item)
{
gim->edit(item);
}
-AudioManagerItem::AudioManagerItem(QListView *parent, QString a,
- QString b, QString c, long ID) :QListViewItem(parent,a,b,c)
+AudioManagerItem::AudioManagerItem(TQListView *parent, TQString a,
+ TQString b, TQString c, long ID) :TQListViewItem(parent,a,b,c)
{
_ID = ID;
}
diff --git a/arts/tools/audiomanager.h b/arts/tools/audiomanager.h
index c8e00e4e..8b08184f 100644
--- a/arts/tools/audiomanager.h
+++ b/arts/tools/audiomanager.h
@@ -25,8 +25,8 @@
#define _AUDIOMANAGER_H_
#include <artsflow.h>
-#include <qwidget.h>
-#include <qlistview.h>
+#include <tqwidget.h>
+#include <tqlistview.h>
#include "templateview.h"
@@ -38,7 +38,7 @@ class Gui_AUDIO_MANAGER : public Template_ArtsView
{
Q_OBJECT
protected:
- QWidget *ParentWidget;
+ TQWidget *ParentWidget;
KListView *listview;
GuiAudioManagerProxy *proxy;
Arts::AudioManager AudioManager;
@@ -47,30 +47,30 @@ protected:
unsigned long changes;
int x,y;
public:
- Gui_AUDIO_MANAGER( QWidget* =0, const char* =0 );
+ Gui_AUDIO_MANAGER( TQWidget* =0, const char* =0 );
~Gui_AUDIO_MANAGER();
- void setParent(QWidget *Parent,QBoxLayout *layout);
+ void setParent(TQWidget *Parent,TQBoxLayout *layout);
- void edit(QListViewItem *item);
+ void edit(TQListViewItem *item);
public slots:
void tick();
};
-class GuiAudioManagerProxy :public QObject {
+class GuiAudioManagerProxy :public TQObject {
Q_OBJECT
Gui_AUDIO_MANAGER *gim;
public:
GuiAudioManagerProxy(Gui_AUDIO_MANAGER *gim);
public slots:
- void edit(QListViewItem *item);
+ void edit(TQListViewItem *item);
};
-class AudioManagerItem : public QListViewItem {
+class AudioManagerItem : public TQListViewItem {
long _ID;
public:
- AudioManagerItem(QListView *parent, QString a, QString b,
- QString c, long ID);
+ AudioManagerItem(TQListView *parent, TQString a, TQString b,
+ TQString c, long ID);
~AudioManagerItem();
long ID();
diff --git a/arts/tools/choosebusdlg.cpp b/arts/tools/choosebusdlg.cpp
index ad6adeb8..cb005f4c 100644
--- a/arts/tools/choosebusdlg.cpp
+++ b/arts/tools/choosebusdlg.cpp
@@ -23,10 +23,10 @@
#include <artsflow.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
#include <kbuttonbox.h>
#include <kseparator.h>
@@ -38,26 +38,26 @@
using namespace std;
-static void min_size(QWidget *w) {
+static void min_size(TQWidget *w) {
w->setMinimumSize(w->sizeHint());
}
-ChooseBusDlg::ChooseBusDlg(QWidget *parent)
+ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
: KDialog(parent,"X", TRUE)
, _newbusitemindex( -1 )
{
setCaption(i18n("Choose Bus"));
- QVBoxLayout *mainlayout = new QVBoxLayout(this);
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..."
mainlayout->addSpacing(5);
- QLabel *captionlabel = new QLabel(this);
- QFont labelfont(captionlabel->font());
+ TQLabel *captionlabel = new TQLabel(this);
+ TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont);
- captionlabel->setText(QString(" ")+i18n("Available busses:")+QString(" "));
+ captionlabel->setText(TQString(" ")+i18n("Available busses:")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
min_size(captionlabel);
mainlayout->addWidget(captionlabel);
@@ -73,7 +73,7 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
// listwidget
- listbox = new QListBox(this);
+ listbox = new TQListBox(this);
listbox->setMinimumSize(300,200);
Arts::AudioManager aman = Arts::Reference("global:Arts_AudioManager");
@@ -100,12 +100,12 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
// new bus lineedit
- QBoxLayout * layout2 = new QHBoxLayout( mainlayout );
+ TQBoxLayout * layout2 = new TQHBoxLayout( mainlayout );
//mainlayout->addLayout( layout2 );
- QLabel * newbuslabel = new QLabel( i18n( "New bus:" ), this );
+ TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this );
layout2->addWidget( newbuslabel );
lineedit = new KLineEdit( this );
- connect( lineedit, SIGNAL( textChanged( const QString & ) ), SLOT( textChanged( const QString & ) ) );
+ connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) );
layout2->addWidget( lineedit );
// hruler
@@ -119,22 +119,22 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
// buttons
mainlayout->addSpacing(5);
- QHBoxLayout *buttonlayout = new QHBoxLayout( mainlayout );
+ TQHBoxLayout *buttonlayout = new TQHBoxLayout( mainlayout );
//mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
- QPushButton * okbutton = bbox->addButton(KStdGuiItem::ok());
+ TQPushButton * okbutton = bbox->addButton(KStdGuiItem::ok());
okbutton->setDefault( true );
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
- QButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
- connect( cancelbutton, SIGNAL( clicked() ), SLOT(reject() ) );
+ TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
+ connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
bbox->layout();
@@ -144,7 +144,7 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
mainlayout->freeze();
}
-QString ChooseBusDlg::result()
+TQString ChooseBusDlg::result()
{
if(listbox->currentItem() != -1)
{
@@ -158,7 +158,7 @@ void ChooseBusDlg::help()
KApplication::kApplication()->invokeHelp("", "artsbuilder");
}
-void ChooseBusDlg::textChanged( const QString & busname )
+void ChooseBusDlg::textChanged( const TQString & busname )
{
if( ! busname.isEmpty() )
{
diff --git a/arts/tools/choosebusdlg.h b/arts/tools/choosebusdlg.h
index 320df6e3..252226bd 100644
--- a/arts/tools/choosebusdlg.h
+++ b/arts/tools/choosebusdlg.h
@@ -30,19 +30,19 @@ class QPushButton;
class ChooseBusDlg :public KDialog {
Q_OBJECT
- QListBox *listbox;
+ TQListBox *listbox;
KLineEdit * lineedit;
int _newbusitemindex;
public:
- ChooseBusDlg(QWidget *parent);
+ ChooseBusDlg(TQWidget *parent);
public slots:
- QString result();
+ TQString result();
void help();
protected slots:
- void textChanged( const QString & );
+ void textChanged( const TQString & );
};
#endif
diff --git a/arts/tools/environmentview.cpp b/arts/tools/environmentview.cpp
index 0b8a7457..9cedfed1 100644
--- a/arts/tools/environmentview.cpp
+++ b/arts/tools/environmentview.cpp
@@ -22,9 +22,9 @@
*/
#include "environmentview.h"
-#include <qdir.h>
-#include <qfile.h>
-#include <qpushbutton.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqpushbutton.h>
#include <klistbox.h>
#include <kartswidget.h>
@@ -34,7 +34,7 @@
#include <fstream>
#include <vector>
-#include <qlayout.h>
+#include <tqlayout.h>
#define DEFAULT_ENV_FILENAME "~/default.arts-env"
@@ -42,12 +42,12 @@ using namespace Arts;
using Environment::Container;
using Environment::Item;
-class ItemView : public QListBoxText {
+class ItemView : public TQListBoxText {
public:
Item item;
KArtsWidget *widget;
- ItemView(QListBox *listBox, Item item)
- : QListBoxText(listBox), item(item), widget(0)
+ ItemView(TQListBox *listBox, Item item)
+ : TQListBoxText(listBox), item(item), widget(0)
{
}
~ItemView()
@@ -56,44 +56,44 @@ public:
widget = 0;
printf("~ItemView()\n");
}
- QString text() const {
- return QString::fromLatin1(item._interfaceName().c_str());
+ TQString text() const {
+ return TQString::fromLatin1(item._interfaceName().c_str());
}
};
-EnvironmentView::EnvironmentView( Container container, QWidget* parent, const char* name ) : Template_ArtsView( parent,name ), container(container)
+EnvironmentView::EnvironmentView( Container container, TQWidget* parent, const char* name ) : Template_ArtsView( parent,name ), container(container)
{
this->setCaption( i18n( "Environment" ) );
this->setIcon( MainBarIcon( "artsenvironment", 32 ) );
- QVBoxLayout* _layout = new QVBoxLayout( this );
+ TQVBoxLayout* _layout = new TQVBoxLayout( this );
_layout->setAutoAdd( true );
defaultEnvFileName = DEFAULT_ENV_FILENAME;
- defaultEnvFileName.replace('~', QDir::homeDirPath());
+ defaultEnvFileName.replace('~', TQDir::homeDirPath());
listBox = new KListBox(this);
update();
- connect(listBox,SIGNAL(executed(QListBoxItem*)),
- this,SLOT(view(QListBoxItem*)));
+ connect(listBox,TQT_SIGNAL(executed(TQListBoxItem*)),
+ this,TQT_SLOT(view(TQListBoxItem*)));
- QPushButton *mixerButton = new QPushButton(i18n("Add Mixer"), this);
- connect(mixerButton, SIGNAL(clicked()), this, SLOT(addMixer()));
+ TQPushButton *mixerButton = new TQPushButton(i18n("Add Mixer"), this);
+ connect(mixerButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addMixer()));
- QPushButton *effectRackButton = new QPushButton(i18n("Add Effect Rack"), this);
- connect(effectRackButton, SIGNAL(clicked()), this, SLOT(addEffectRack()));
+ TQPushButton *effectRackButton = new TQPushButton(i18n("Add Effect Rack"), this);
+ connect(effectRackButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addEffectRack()));
- QPushButton *delButton = new QPushButton(i18n("Delete Item"), this);
- connect(delButton, SIGNAL(clicked()), this, SLOT(delItem()));
+ TQPushButton *delButton = new TQPushButton(i18n("Delete Item"), this);
+ connect(delButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(delItem()));
- QPushButton *loadButton = new
- QPushButton(i18n("Load %1").arg(DEFAULT_ENV_FILENAME), this);
- connect(loadButton, SIGNAL(clicked()), this, SLOT(load()));
+ TQPushButton *loadButton = new
+ TQPushButton(i18n("Load %1").arg(DEFAULT_ENV_FILENAME), this);
+ connect(loadButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(load()));
- QPushButton *saveButton = new
- QPushButton(i18n("Save %1").arg(DEFAULT_ENV_FILENAME), this);
- connect(saveButton, SIGNAL(clicked()), this, SLOT(save()));
+ TQPushButton *saveButton = new
+ TQPushButton(i18n("Save %1").arg(DEFAULT_ENV_FILENAME), this);
+ connect(saveButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(save()));
show();
}
-void EnvironmentView::view(QListBoxItem *i)
+void EnvironmentView::view(TQListBoxItem *i)
{
ItemView *iv = static_cast<ItemView*>(i);
@@ -148,7 +148,7 @@ void EnvironmentView::update()
void EnvironmentView::load()
{
- std::ifstream infile(QFile::encodeName(defaultEnvFileName).data());
+ std::ifstream infile(TQFile::encodeName(defaultEnvFileName).data());
std::string line;
std::vector<std::string> strseq;
@@ -163,7 +163,7 @@ void EnvironmentView::save()
std::vector<std::string> *strseq;
strseq = defaultEnvironment().saveToList();
- std::ofstream outfile(QFile::encodeName(defaultEnvFileName).data());
+ std::ofstream outfile(TQFile::encodeName(defaultEnvFileName).data());
for(std::vector<std::string>::iterator i = strseq->begin(); i != strseq->end(); i++)
outfile << ( *i ) << std::endl;
delete strseq;
diff --git a/arts/tools/environmentview.h b/arts/tools/environmentview.h
index 7da8a240..351a5df0 100644
--- a/arts/tools/environmentview.h
+++ b/arts/tools/environmentview.h
@@ -36,13 +36,13 @@ class EnvironmentView : public Template_ArtsView {
protected:
Arts::Environment::Container container;
KListBox *listBox;
- QString defaultEnvFileName;
+ TQString defaultEnvFileName;
public:
- EnvironmentView( Arts::Environment::Container container, QWidget* =0, const char* =0 );
+ EnvironmentView( Arts::Environment::Container container, TQWidget* =0, const char* =0 );
public slots:
- void view(QListBoxItem *i);
+ void view(TQListBoxItem *i);
void addMixer();
void addEffectRack();
void delItem();
diff --git a/arts/tools/fftscopeview.cpp b/arts/tools/fftscopeview.cpp
index 20d9fb70..fcaa5304 100644
--- a/arts/tools/fftscopeview.cpp
+++ b/arts/tools/fftscopeview.cpp
@@ -22,9 +22,9 @@
#include "fftscopeview.h"
-#include <qlayout.h>
-#include <qcursor.h>
-#include <qtimer.h>
+#include <tqlayout.h>
+#include <tqcursor.h>
+#include <tqtimer.h>
#include <kaction.h>
#include <kpopupmenu.h>
#include <kartswidget.h>
@@ -37,7 +37,7 @@
using namespace std;
using namespace Arts;
-FFTScopeView::FFTScopeView( SimpleSoundServer server, QWidget* parent )
+FFTScopeView::FFTScopeView( SimpleSoundServer server, TQWidget* parent )
: Template_ArtsView( parent )
, server( server )
, scopeData( 0 )
@@ -59,7 +59,7 @@ kdDebug()<<k_funcinfo<<endl;
}
updateScopeData();
- QBoxLayout * l = new QHBoxLayout( this );
+ TQBoxLayout * l = new TQHBoxLayout( this );
l->setAutoAdd( TRUE );
for ( unsigned int i=0;i<scopeData->size();i++ )
@@ -75,25 +75,25 @@ kdDebug()<<k_funcinfo<<endl;
l->activate();
show();
- updatetimer = new QTimer( this );
+ updatetimer = new TQTimer( this );
updatetimer->start( 100 );
- connect( updatetimer,SIGNAL( timeout() ),this,SLOT( updateScope() ) );
+ connect( updatetimer,TQT_SIGNAL( timeout() ),this,TQT_SLOT( updateScope() ) );
_artsactions = new ArtsActions( 0, 0, this );
- _moreBars = ArtsActions::actionMoreBars( this, SLOT( moreBars() ), 0 );
- _lessBars = ArtsActions::actionLessBars( this, SLOT( lessBars() ), 0 );
+ _moreBars = ArtsActions::actionMoreBars( this, TQT_SLOT( moreBars() ), 0 );
+ _lessBars = ArtsActions::actionLessBars( this, TQT_SLOT( lessBars() ), 0 );
_menu = new KPopupMenu( 0 );
_moreBars->plug( _menu ); _lessBars->plug( _menu );
- _substyle = new KAction( i18n( "Substyle" ), "", KShortcut(), this, SLOT( substyle() ), this );
+ _substyle = new KAction( i18n( "Substyle" ), "", KShortcut(), this, TQT_SLOT( substyle() ), this );
_substyle->plug( _menu );
_menu->insertItem( i18n("VU-Style"), _artsactions->stylemenu() );
- connect( _artsactions, SIGNAL( styleNormal() ), this, SLOT( styleNormalBars() ) );
- connect( _artsactions, SIGNAL( styleFire() ), this, SLOT( styleFireBars() ) );
- connect( _artsactions, SIGNAL( styleLine() ), this, SLOT( styleLineBars() ) );
- connect( _artsactions, SIGNAL( styleLED() ), this, SLOT( styleLEDs() ) );
- connect( _artsactions, SIGNAL( styleAnalog() ), this, SLOT( styleAnalog() ) );
- connect( _artsactions, SIGNAL( styleSmall() ), this, SLOT( styleSmall() ) );
+ connect( _artsactions, TQT_SIGNAL( styleNormal() ), this, TQT_SLOT( styleNormalBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleFire() ), this, TQT_SLOT( styleFireBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleLine() ), this, TQT_SLOT( styleLineBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleLED() ), this, TQT_SLOT( styleLEDs() ) );
+ connect( _artsactions, TQT_SIGNAL( styleAnalog() ), this, TQT_SLOT( styleAnalog() ) );
+ connect( _artsactions, TQT_SIGNAL( styleSmall() ), this, TQT_SLOT( styleSmall() ) );
}
FFTScopeView::~FFTScopeView() {
@@ -121,9 +121,9 @@ void FFTScopeView::updateScope() {
}
}
-void FFTScopeView::mousePressEvent( QMouseEvent* ev ) {
+void FFTScopeView::mousePressEvent( TQMouseEvent* ev ) {
if ( Qt::RightButton == ev->button() /*|| Qt::LeftButton == ev->button()*/ )
- _menu->exec( QCursor::pos() );
+ _menu->exec( TQCursor::pos() );
}
void FFTScopeView::moreBars() {
diff --git a/arts/tools/fftscopeview.h b/arts/tools/fftscopeview.h
index 504bec88..a6e14f57 100644
--- a/arts/tools/fftscopeview.h
+++ b/arts/tools/fftscopeview.h
@@ -49,7 +49,7 @@ protected:
std::vector<float> scopeDraw;
std::vector<Arts::LevelMeter> scopeScales;
std::vector<KArtsWidget*> aw;
- QTimer *updatetimer;
+ TQTimer *updatetimer;
ArtsActions* _artsactions;
KPopupMenu *_menu, *_stylemenu;
@@ -57,10 +57,10 @@ protected:
KAction *_styleNormalBars, *_styleFireBars, *_styleLineBars, *_styleLEDs, *_styleAnalog, *_styleSmall;
KAction *_substyle;
- void mousePressEvent( QMouseEvent* );
+ void mousePressEvent( TQMouseEvent* );
public:
void updateScopeData();
- FFTScopeView( Arts::SimpleSoundServer server, QWidget* =0 );
+ FFTScopeView( Arts::SimpleSoundServer server, TQWidget* =0 );
~FFTScopeView();
public slots:
diff --git a/arts/tools/levelmeters.cpp b/arts/tools/levelmeters.cpp
index 3b2ca1ac..1d0b080c 100644
--- a/arts/tools/levelmeters.cpp
+++ b/arts/tools/levelmeters.cpp
@@ -1,13 +1,13 @@
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qfontmetrics.h>
-#include <qptrlist.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqfontmetrics.h>
+#include <tqptrlist.h>
#include <kled.h>
#include "levelmeters.h"
const int PeakBar::peakMillis=1500;
-PeakBar::PeakBar(QWidget *parent)
+PeakBar::PeakBar(TQWidget *parent)
: ACLevelMeter(parent)
, maxValue( 0.0f )
, minValue( 0.0f )
@@ -19,19 +19,19 @@ PeakBar::PeakBar(QWidget *parent)
lastValues.setAutoDelete( TRUE );
- setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
- setSizePolicy(QSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred));
+ setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
setBackgroundMode(NoBackground);
setMinimumSize(frameWidth()+7, 70);
}
void PeakBar::frameChanged() {
setMinimumSize(frameWidth()+7, 70);
- QFrame::frameChanged();
+ TQFrame::frameChanged();
}
-QSize PeakBar::sizeHint() const {
- return QSize(13, 250);
+TQSize PeakBar::sizeHint() const {
+ return TQSize(13, 250);
}
void PeakBar::checkMinMax() {
@@ -47,7 +47,7 @@ void PeakBar::checkMinMax() {
maxValue= 0.f;
minValue= 1.f;
clipped = false;
- for (QPtrListIterator<Observation> it(lastValues); it.current(); ++it) {
+ for (TQPtrListIterator<Observation> it(lastValues); it.current(); ++it) {
float value= it.current()->value;
if (value>maxValue)
maxValue= value;
@@ -59,9 +59,9 @@ void PeakBar::checkMinMax() {
}
}
-void PeakBar::drawContents(QPainter *p)
+void PeakBar::drawContents(TQPainter *p)
{
- QRect size= contentsRect();
+ TQRect size= contentsRect();
checkMinMax();
@@ -69,7 +69,7 @@ void PeakBar::drawContents(QPainter *p)
p->setPen(NoPen);
p->drawRect(size);
- QRect bar= size;
+ TQRect bar= size;
p->setBrush(clipped ? red : blue);
if (horizontalMode) {
bar.setWidth((int)(bar.width()*currentValue));
@@ -109,10 +109,10 @@ void PeakBar::setValue(float f) {
// -------------------------------------------------------------
-PeakLevelMeters::PeakLevelMeters(QWidget *parent):
+PeakLevelMeters::PeakLevelMeters(TQWidget *parent):
StereoLevelMeter(parent), left(this), right(this), scaleView(this)
{
- QBoxLayout *layout= new QHBoxLayout(this);
+ TQBoxLayout *layout= new TQHBoxLayout(this);
layout->addWidget(&left);
// layout->setStretchFactor(&left, 0);
layout->addWidget(&right);
@@ -122,7 +122,7 @@ PeakLevelMeters::PeakLevelMeters(QWidget *parent):
left.setLineWidth(2);
right.setLineWidth(2);
scaleView.setScaleMargins(right.frameWidth());
- setSizePolicy(QSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
setDbRange(36);
}
@@ -142,9 +142,9 @@ void PeakLevelMeters::setValues(float leftVal, float rightVal) {
right.setValue(f);
}
-ScaleView::ScaleView(QWidget *parent): QFrame(parent) {
+ScaleView::ScaleView(TQWidget *parent): TQFrame(parent) {
font.setPixelSize(10);
- setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred));
}
void ScaleView::setDbRange(int db) {
@@ -152,16 +152,16 @@ void ScaleView::setDbRange(int db) {
repaint();
}
-QSize ScaleView::sizeHint() const {
- return QSize(QFontMetrics(font).width("-88")+8, 250);
+TQSize ScaleView::sizeHint() const {
+ return TQSize(TQFontMetrics(font).width("-88")+8, 250);
}
-void ScaleView::drawContents(QPainter *p) {
- QRect size= contentsRect();
+void ScaleView::drawContents(TQPainter *p) {
+ TQRect size= contentsRect();
size.rTop()+= upperMargin;
size.rBottom()-= lowerMargin;
- QFrame::drawContents(p); // clear background
+ TQFrame::drawContents(p); // clear background
int step=3;
while (dbRange/step*20>size.height())
@@ -173,7 +173,7 @@ void ScaleView::drawContents(QPainter *p) {
p->setPen(black);
p->setFont(font);
- QString numStr;
+ TQString numStr;
for (int i=0; i<=dbRange; i++) {
int y= size.top()+(size.height()-1)*i/dbRange;
if (i%step==0) {
@@ -187,12 +187,12 @@ void ScaleView::drawContents(QPainter *p) {
// -------------------------------------------------------------
-LedMeter::LedMeter(QWidget *parent, bool blueState) : ACLevelMeter(parent) {
+LedMeter::LedMeter(TQWidget *parent, bool blueState) : ACLevelMeter(parent) {
setBackgroundColor(black);
- QBoxLayout * l = new QVBoxLayout( this );
+ TQBoxLayout * l = new TQVBoxLayout( this );
l->setAutoAdd(TRUE);
for(int i=0;i<12;i++) {
- QColor c;
+ TQColor c;
if(blueState)
c = blue;
else {
@@ -202,8 +202,8 @@ LedMeter::LedMeter(QWidget *parent, bool blueState) : ACLevelMeter(parent) {
}
// put each led in its own frame, since it seems to be broken
- QFrame *lframe = new QFrame(this);
- QBoxLayout *lfl = new QVBoxLayout( lframe );
+ TQFrame *lframe = new TQFrame(this);
+ TQBoxLayout *lfl = new TQVBoxLayout( lframe );
lfl->setAutoAdd(TRUE);
leds[i] =
new KLed(c,KLed::Off, KLed::Sunken, KLed::Circular,lframe);
@@ -223,10 +223,10 @@ void LedMeter::setValue(float f)
// -------------------------------------------------------------
-StereoLedMeters::StereoLedMeters(QWidget *parent)
+StereoLedMeters::StereoLedMeters(TQWidget *parent)
: StereoLevelMeter(parent), left(this), right(this)
{
- QBoxLayout *layout= new QHBoxLayout(this);
+ TQBoxLayout *layout= new TQHBoxLayout(this);
layout->addWidget(&left);
layout->addWidget(&right);
}
diff --git a/arts/tools/levelmeters.h b/arts/tools/levelmeters.h
index 14f8a1ff..638d0d9a 100644
--- a/arts/tools/levelmeters.h
+++ b/arts/tools/levelmeters.h
@@ -22,10 +22,10 @@
#ifndef ARTS_TOOLS_LEVELMETERS_H
#define ARTS_TOOLS_LEVELMETERS_H
-#include <qobject.h>
-#include <qframe.h>
-#include <qdatetime.h>
-#include <qptrlist.h>
+#include <tqobject.h>
+#include <tqframe.h>
+#include <tqdatetime.h>
+#include <tqptrlist.h>
#include <math.h>
// helper functions
@@ -42,10 +42,10 @@ inline float DBToLevel(float db) {
/**
* Base class for a single volume / value bar.
*/
-class ACLevelMeter : public QFrame {
+class ACLevelMeter : public TQFrame {
Q_OBJECT
public:
- ACLevelMeter(QWidget *parent): QFrame(parent) {}
+ ACLevelMeter(TQWidget *parent): TQFrame(parent) {}
public slots:
virtual void setValue(float f) = 0;
};
@@ -53,10 +53,10 @@ public slots:
/**
* Base class for a pair of volume / value bars.
*/
-class StereoLevelMeter : public QFrame {
+class StereoLevelMeter : public TQFrame {
Q_OBJECT
public:
- StereoLevelMeter(QWidget *parent): QFrame(parent) {}
+ StereoLevelMeter(TQWidget *parent): TQFrame(parent) {}
public slots:
virtual void setValues(float left, float right) = 0;
};
@@ -74,11 +74,11 @@ protected:
class Observation {
public:
- QTime time;
+ TQTime time;
float value;
Observation(float aValue): value(aValue) { time.start(); }
};
- QPtrList<Observation> lastValues;
+ TQPtrList<Observation> lastValues;
float currentValue, maxValue, minValue;
void checkMinMax();
@@ -89,29 +89,29 @@ protected:
void frameChanged();
public:
- PeakBar(QWidget *parent);
+ PeakBar(TQWidget *parent);
- QSize sizeHint() const;
+ TQSize sizeHint() const;
- void drawContents(QPainter *p);
+ void drawContents(TQPainter *p);
virtual void setValue(float f);
};
/**
* Special class which draws the Db scale with ticks, numbers and so on.
*/
-class ScaleView : public QFrame {
+class ScaleView : public TQFrame {
Q_OBJECT
protected:
- QFont font;
+ TQFont font;
int dbRange;
int upperMargin, lowerMargin;
public:
- ScaleView(QWidget *parent);
+ ScaleView(TQWidget *parent);
void setDbRange(int db);
void setScaleMargins(int margins) { upperMargin= margins; lowerMargin=margins; }
- QSize sizeHint() const;
- void drawContents(QPainter *p);
+ TQSize sizeHint() const;
+ void drawContents(TQPainter *p);
};
/**
@@ -127,7 +127,7 @@ protected:
ScaleView scaleView;
public:
- PeakLevelMeters(QWidget *parent);
+ PeakLevelMeters(TQWidget *parent);
public slots:
void setValues(float leftVal, float rightVal);
@@ -147,7 +147,7 @@ protected:
KLed *leds[12];
public:
- LedMeter(QWidget *parent, bool blueState = false);
+ LedMeter(TQWidget *parent, bool blueState = false);
void setValue(float f);
};
@@ -160,7 +160,7 @@ protected:
LedMeter left, right;
public:
- StereoLedMeters(QWidget *parent);
+ StereoLedMeters(TQWidget *parent);
public slots:
void setValues(float left, float right);
};
diff --git a/arts/tools/main.cpp b/arts/tools/main.cpp
index 90674b30..60df8f1d 100644
--- a/arts/tools/main.cpp
+++ b/arts/tools/main.cpp
@@ -35,9 +35,9 @@
#include <artsversion.h>
#include <kartsfloatwatch.h>
-#include <qlabel.h>
-#include <qslider.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqslider.h>
+#include <tqpushbutton.h>
#include <kaction.h>
#include <kled.h>
#include <kmessagebox.h>
@@ -51,7 +51,7 @@
using namespace std;
using namespace Arts;
-void FreeVerbView::closeEvent(QCloseEvent *e) {
+void FreeVerbView::closeEvent(TQCloseEvent *e) {
e->accept();
emit closed();
}
@@ -67,11 +67,11 @@ FreeVerbView::FreeVerbView(SimpleSoundServer server) : server(server) {
GenericGuiFactory factory;
Widget gui = factory.createGui(freeverb);
- QBoxLayout * l = new QHBoxLayout( this );
+ TQBoxLayout * l = new TQHBoxLayout( this );
if(!gui.isNull())
l->add(new KArtsWidget(gui, this));
else
- l->add(new QLabel(i18n("No GUI found for this effect."), this));
+ l->add(new TQLabel(i18n("No GUI found for this effect."), this));
l->freeze();
show();
}
@@ -82,18 +82,18 @@ FreeVerbView::~FreeVerbView() {
}
-VControl::VControl( KArtsServer* artsserver, QWidget *parent) : QFrame(parent)
+VControl::VControl( KArtsServer* artsserver, TQWidget *parent) : TQFrame(parent)
, freeVerbView(0)
, server( artsserver )
{
- connect( server, SIGNAL( restartedServer() ), this, SLOT( initaRtsConnections() ) );
+ connect( server, TQT_SIGNAL( restartedServer() ), this, TQT_SLOT( initaRtsConnections() ) );
/* if(server.isNull())
{
KMessageBox::error( 0, i18n("Connection to the soundserver failed - make sure that artsd is really running and that your kdelibs version is not older than kdemultimedia."));
exit(1);
}*/
- boxLayout = new QHBoxLayout( this );
+ boxLayout = new TQHBoxLayout( this );
// 0 => 4.0
// 200 => 2.0
@@ -136,7 +136,7 @@ void VControl::useOldVolumeBar(int old) {
void VControl::showFreeVerbView() {
if(!freeVerbView) {
freeVerbView = new FreeVerbView(server->server());
- connect(freeVerbView,SIGNAL(closed()),this,SLOT(showFreeVerbView()));
+ connect(freeVerbView,TQT_SIGNAL(closed()),this,TQT_SLOT(showFreeVerbView()));
} else {
delete freeVerbView;
freeVerbView = 0;
@@ -160,7 +160,7 @@ void MainWindow::toggleVolumeBar() {
MainWindow::MainWindow() : KMainWindow(0), kartsserver( new KArtsServer( this ) ) {
kdDebug() << k_funcinfo << endl;
- connect( kartsserver, SIGNAL( restartedServer() ), this, SLOT( serverRestarted() ) );
+ connect( kartsserver, TQT_SIGNAL( restartedServer() ), this, TQT_SLOT( serverRestarted() ) );
vc = new VControl( kartsserver, this );
setCentralWidget( vc );
@@ -172,11 +172,11 @@ kdDebug() << k_funcinfo << endl;
( void ) artsactions->actionMidiManagerView();
( void ) artsactions->actionEnvironmentView();
( void ) artsactions->actionMediaTypesView();
- ( void ) new KAction( i18n("Toggle Free&Verb"), 0, vc, SLOT( showFreeVerbView() ), actionCollection(), "view_freeverb" );
+ ( void ) new KAction( i18n("Toggle Free&Verb"), 0, vc, TQT_SLOT( showFreeVerbView() ), actionCollection(), "view_freeverb" );
showOldVolumeDisplay=
new KToggleAction( i18n( "Old aRts-Control-Style for VU-Meter" /*"&LED-Style Volume Display"*/ ), 0, this,
- SLOT( toggleVolumeBar() ), actionCollection(), "old_volume_display" );
- ( void ) KStdAction::quit( this, SLOT( close() ), actionCollection(), "quit_artscontrol" );
+ TQT_SLOT( toggleVolumeBar() ), actionCollection(), "old_volume_display" );
+ ( void ) KStdAction::quit( this, TQT_SLOT( close() ), actionCollection(), "quit_artscontrol" );
createGUI("artscontrol.rc");
resize(20,300);
diff --git a/arts/tools/main.h b/arts/tools/main.h
index 4e74d4af..2770b054 100644
--- a/arts/tools/main.h
+++ b/arts/tools/main.h
@@ -24,19 +24,19 @@
#define MAIN_H
#include <qiomanager.h>
#include <dispatcher.h>
-#include <qmessagebox.h>
+#include <tqmessagebox.h>
#include <kapplication.h>
-#include <qframe.h>
+#include <tqframe.h>
#include <kmainwindow.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <klocale.h>
#include <kstdaction.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include <artsflow.h>
#include <soundserver.h>
-#include <qobject.h>
+#include <tqobject.h>
#include <kartswidget.h>
#include <flowsystem.h>
#include <artsmodules.h>
@@ -47,14 +47,14 @@ class PeakBar;
class PeakLevelMeter;
class VScale;
-class FreeVerbView : public QWidget {
+class FreeVerbView : public TQWidget {
Q_OBJECT
protected:
Arts::Synth_FREEVERB freeverb;
Arts::SimpleSoundServer server;
long effectID;
- void closeEvent(QCloseEvent *e);
+ void closeEvent(TQCloseEvent *e);
public:
FreeVerbView(Arts::SimpleSoundServer server);
~FreeVerbView();
@@ -64,7 +64,7 @@ signals:
class KArtsWidget;
-class VControl : public QFrame {
+class VControl : public TQFrame {
Q_OBJECT
protected:
class StereoLevelMeter *stereoMeter;
@@ -74,10 +74,10 @@ protected:
KArtsWidget *svcguiw;
KArtsServer *server;
- QBoxLayout *boxLayout;
+ TQBoxLayout *boxLayout;
public:
- VControl( KArtsServer*, QWidget *parent);
+ VControl( KArtsServer*, TQWidget *parent);
~VControl();
public slots:
diff --git a/arts/tools/mediatypesview.cpp b/arts/tools/mediatypesview.cpp
index 40d7984b..9353cda6 100644
--- a/arts/tools/mediatypesview.cpp
+++ b/arts/tools/mediatypesview.cpp
@@ -21,7 +21,7 @@
*/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klistview.h>
#include <klocale.h>
#include <kartsserver.h>
@@ -33,11 +33,11 @@
using namespace std;
using namespace Arts;
-MediaTypesView::MediaTypesView( QWidget* parent, const char* name ) : Template_ArtsView( parent,name )
+MediaTypesView::MediaTypesView( TQWidget* parent, const char* name ) : Template_ArtsView( parent,name )
{
this->setCaption( i18n( "Available Media Types" ) );
this->setIcon( MainBarIcon( "artsmediatypes", 32 ) );
- QBoxLayout *l= new QHBoxLayout(this);
+ TQBoxLayout *l= new TQHBoxLayout(this);
l->setAutoAdd(true);
KListView *listView = new KListView(this);
@@ -46,7 +46,7 @@ MediaTypesView::MediaTypesView( QWidget* parent, const char* name ) : Template_A
Arts::TraderQuery q;
std::vector<Arts::TraderOffer> *results = q.query();
std::map<std::string, bool> done;
- QString str;
+ TQString str;
for(std::vector<Arts::TraderOffer>::iterator i = results->begin(); i != results->end(); i++)
{
@@ -58,7 +58,7 @@ MediaTypesView::MediaTypesView( QWidget* parent, const char* name ) : Template_A
continue;
done[*it] = true;
- (void) new QListViewItem(listView, (*it).c_str());
+ (void) new TQListViewItem(listView, (*it).c_str());
}
delete ext;
}
diff --git a/arts/tools/mediatypesview.h b/arts/tools/mediatypesview.h
index 1e2500b3..e61338c6 100644
--- a/arts/tools/mediatypesview.h
+++ b/arts/tools/mediatypesview.h
@@ -29,7 +29,7 @@
class MediaTypesView : public Template_ArtsView {
Q_OBJECT
public:
- MediaTypesView( QWidget* =0, const char* =0 );
+ MediaTypesView( TQWidget* =0, const char* =0 );
~MediaTypesView();
};
diff --git a/arts/tools/midiinstdlg.cpp b/arts/tools/midiinstdlg.cpp
index 519d6b85..f606bbae 100644
--- a/arts/tools/midiinstdlg.cpp
+++ b/arts/tools/midiinstdlg.cpp
@@ -24,36 +24,36 @@
#include <kstandarddirs.h>
#include <kapplication.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qfile.h>
-#include <qdir.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqfile.h>
+#include <tqdir.h>
#include <kbuttonbox.h>
#include <kseparator.h>
#include <kdebug.h>
-#include <qbutton.h>
-#include <qpushbutton.h>
+#include <tqbutton.h>
+#include <tqpushbutton.h>
#include <kstdguiitem.h>
-static QStringList getArtsPath()
+static TQStringList getArtsPath()
{
- QStringList artsPath;
- QString dir = locate("data", "artsbuilder/examples/");
+ TQStringList artsPath;
+ TQString dir = locate("data", "artsbuilder/examples/");
artsPath += dir;
- QString home = QDir::homeDirPath() + "/arts/structures/";
+ TQString home = TQDir::homeDirPath() + "/arts/structures/";
artsPath += home;
return artsPath;
}
-static QStringList listFiles(QString directory, QString extension)
+static TQStringList listFiles(TQString directory, TQString extension)
{
- QStringList result;
- QStringList artsPath = getArtsPath();
+ TQStringList result;
+ TQStringList artsPath = getArtsPath();
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = artsPath.begin(); it != artsPath.end(); it++ ) {
- QString pathname = *it + "/" + directory;
- QDir dir(pathname, extension);
+ TQString pathname = *it + "/" + directory;
+ TQDir dir(pathname, extension);
if (dir.exists()) {
//kdDebug() << "found dir " << dir.absPath() << endl;
result += dir.entryList();
@@ -63,19 +63,19 @@ static QStringList listFiles(QString directory, QString extension)
return result;
}
-MidiInstDlg::MidiInstDlg(QWidget *parent)
- :QDialog(parent,"instrument",TRUE)
+MidiInstDlg::MidiInstDlg(TQWidget *parent)
+ :TQDialog(parent,"instrument",TRUE)
{
- QVBoxLayout *mainlayout = new QVBoxLayout(this);
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: title
mainlayout->addSpacing(5);
- QLabel *captionlabel = new QLabel(this);
- QFont labelfont(captionlabel->font());
+ TQLabel *captionlabel = new TQLabel(this);
+ TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont);
- captionlabel->setText(QString(" ")+i18n("Instrument")+QString(" "));
+ captionlabel->setText(TQString(" ")+i18n("Instrument")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
//min_size(captionlabel);
mainlayout->addWidget(captionlabel);
@@ -89,13 +89,13 @@ MidiInstDlg::MidiInstDlg(QWidget *parent)
// combobox
- box = new QComboBox(this);
+ box = new TQComboBox(this);
- QStringList instruments = listFiles(".","*.arts");
- QStringList::Iterator it;
+ TQStringList instruments = listFiles(".","*.arts");
+ TQStringList::Iterator it;
for ( it = instruments.begin(); it != instruments.end(); it++ ) {
- QString modname = *it;
- QString prefix = QString::fromLatin1("instrument_");
+ TQString modname = *it;
+ TQString prefix = TQString::fromLatin1("instrument_");
if (modname.length() > 5)
modname.truncate(modname.length()-5); // kill .arts extension
if ( (modname.startsWith(prefix)) && (!modname.contains("_GUI")) )
@@ -104,11 +104,11 @@ MidiInstDlg::MidiInstDlg(QWidget *parent)
}
- QStringList maps = listFiles(".","*.arts-map");
+ TQStringList maps = listFiles(".","*.arts-map");
for ( it = maps.begin(); it != maps.end(); it++ ) {
- QString modname = *it;
- QString prefix = QString::fromLatin1("instrument_");
+ TQString modname = *it;
+ TQString prefix = TQString::fromLatin1("instrument_");
if (modname.length() > 9)
modname.truncate(modname.length()-9); // kill .arts-map extension
if (modname.startsWith(prefix))
@@ -127,7 +127,7 @@ MidiInstDlg::MidiInstDlg(QWidget *parent)
// buttons
- QHBoxLayout *buttonlayout = new QHBoxLayout;
+ TQHBoxLayout *buttonlayout = new QHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
@@ -135,11 +135,11 @@ MidiInstDlg::MidiInstDlg(QWidget *parent)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
- QButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->layout();
@@ -149,23 +149,23 @@ MidiInstDlg::MidiInstDlg(QWidget *parent)
mainlayout->freeze();
}
-QCString MidiInstDlg::filename()
+TQCString MidiInstDlg::filename()
{
- QStringList artsPath = getArtsPath();
- QString instrument = box->currentText();
+ TQStringList artsPath = getArtsPath();
+ TQString instrument = box->currentText();
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = artsPath.begin(); it != artsPath.end(); it++ ) {
- QString pathname = *it + QString::fromLatin1("/instrument_") + instrument + QString::fromLatin1(".arts");
- QFileInfo fi(pathname);
+ TQString pathname = *it + TQString::fromLatin1("/instrument_") + instrument + TQString::fromLatin1(".arts");
+ TQFileInfo fi(pathname);
if (fi.exists() && fi.isReadable())
- return QFile::encodeName(pathname);
+ return TQFile::encodeName(pathname);
- pathname = *it + QString::fromLatin1("/instrument_") + instrument + QString::fromLatin1(".arts-map");
+ pathname = *it + TQString::fromLatin1("/instrument_") + instrument + TQString::fromLatin1(".arts-map");
fi.setFile(pathname);
if (fi.exists() && fi.isReadable())
- return QFile::encodeName(pathname);
+ return TQFile::encodeName(pathname);
}
return "";
diff --git a/arts/tools/midiinstdlg.h b/arts/tools/midiinstdlg.h
index 45bf6b93..57735513 100644
--- a/arts/tools/midiinstdlg.h
+++ b/arts/tools/midiinstdlg.h
@@ -22,16 +22,16 @@
#ifndef ARTS_TOOLS_MIDIINSTDLG_H
#define ARTS_TOOLS_MIDIINSTDLG_H
-#include <qdialog.h>
-#include <qcombobox.h>
-#include <qcstring.h>
+#include <tqdialog.h>
+#include <tqcombobox.h>
+#include <tqcstring.h>
-class MidiInstDlg :public QDialog {
+class MidiInstDlg :public TQDialog {
Q_OBJECT
- QComboBox *box;
+ TQComboBox *box;
public:
- MidiInstDlg(QWidget *parent);
- QCString filename();
+ MidiInstDlg(TQWidget *parent);
+ TQCString filename();
public slots:
void help();
};
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
diff --git a/arts/tools/midimanagerview.h b/arts/tools/midimanagerview.h
index 9a7b773e..546e1cef 100644
--- a/arts/tools/midimanagerview.h
+++ b/arts/tools/midimanagerview.h
@@ -46,7 +46,7 @@ protected:
public:
MidiManagerView();
- void closeEvent(QCloseEvent *e);
+ void closeEvent(TQCloseEvent *e);
public slots:
void updateLists();
void slotConnect();
diff --git a/arts/tools/midiportdlg.cpp b/arts/tools/midiportdlg.cpp
index 2819d00a..8dd71d2b 100644
--- a/arts/tools/midiportdlg.cpp
+++ b/arts/tools/midiportdlg.cpp
@@ -23,24 +23,24 @@
#include <klocale.h>
#include <kapplication.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <kseparator.h>
#include <kbuttonbox.h>
-#include <qlineedit.h>
-#include <qbutton.h>
-#include <qpushbutton.h>
+#include <tqlineedit.h>
+#include <tqbutton.h>
+#include <tqpushbutton.h>
#include <kstdguiitem.h>
-MidiPortDlg::MidiPortDlg(QWidget *parent, const char *oldname, const char *title) :QDialog(parent,title,TRUE)
+MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *title) :TQDialog(parent,title,TRUE)
{
- QVBoxLayout *mainlayout = new QVBoxLayout(this);
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: title
mainlayout->addSpacing(5);
- QLabel *captionlabel = new QLabel(this);
- QFont labelfont(captionlabel->font());
+ TQLabel *captionlabel = new TQLabel(this);
+ TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont);
captionlabel->setText(i18n("OSS MIDI Port"));
@@ -57,7 +57,7 @@ MidiPortDlg::MidiPortDlg(QWidget *parent, const char *oldname, const char *title
// editwidget
- edit = new QLineEdit(this);
+ edit = new TQLineEdit(this);
edit->setText(oldname);
//min_size(edit);
@@ -72,7 +72,7 @@ MidiPortDlg::MidiPortDlg(QWidget *parent, const char *oldname, const char *title
// buttons
- QHBoxLayout *buttonlayout = new QHBoxLayout;
+ TQHBoxLayout *buttonlayout = new QHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
@@ -80,13 +80,13 @@ MidiPortDlg::MidiPortDlg(QWidget *parent, const char *oldname, const char *title
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- QPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ TQPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
helpbutton->setAutoDefault( true );
helpbutton->setDefault( true );
- QPushButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ TQPushButton *okbutton = bbox->addButton(KStdGuiItem::ok());
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
okbutton->setAutoDefault( true );
okbutton->setDefault( true );
diff --git a/arts/tools/midiportdlg.h b/arts/tools/midiportdlg.h
index ac616f84..8992776b 100644
--- a/arts/tools/midiportdlg.h
+++ b/arts/tools/midiportdlg.h
@@ -22,18 +22,18 @@
#ifndef ARTS_TOOLS_MIDIPORTDLG_H
#define ARTS_TOOLS_MIDIPORTDLG_H
-#include <qdialog.h>
-#include <qtimer.h>
-#include <qlabel.h>
-#include <qscrollbar.h>
-#include <qlineedit.h>
-#include <qlayout.h>
-
-class MidiPortDlg :public QDialog {
+#include <tqdialog.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
+#include <tqscrollbar.h>
+#include <tqlineedit.h>
+#include <tqlayout.h>
+
+class MidiPortDlg :public TQDialog {
Q_OBJECT
- QLineEdit *edit;
+ TQLineEdit *edit;
public:
- MidiPortDlg(QWidget *parent, const char *device, const char *title);
+ MidiPortDlg(TQWidget *parent, const char *device, const char *title);
const char *device();
public slots:
diff --git a/arts/tools/statusview.cpp b/arts/tools/statusview.cpp
index 7c1454e1..c29cf4ed 100644
--- a/arts/tools/statusview.cpp
+++ b/arts/tools/statusview.cpp
@@ -21,28 +21,28 @@
*/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
-#include <qpushbutton.h>
-#include <qwidget.h>
-#include <qtimer.h>
-#include <qlabel.h>
+#include <tqpushbutton.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
#include "statusview.h"
using namespace std;
using namespace Arts;
-ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, QWidget* parent, const char* name )
+ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, TQWidget* parent, const char* name )
: Template_ArtsView( parent,name )
, server(a_server)
{
this->setCaption( i18n( "aRts Status" ) );
- QBoxLayout *l= new QVBoxLayout(this);
+ TQBoxLayout *l= new TQVBoxLayout(this);
//l->setAutoAdd(TRUE);
RealtimeStatus rs= server.realtimeStatus();
- l->addWidget(new QLabel(rs==rtRealtime?
+ l->addWidget(new TQLabel(rs==rtRealtime?
i18n("Artsd is running with realtime scheduling."):
rs==rtNoSupport?
i18n("Your system does not support realtime scheduling."):
@@ -54,19 +54,19 @@ ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, QWidget* parent, cons
this, "realtimeLabel"));
l->addSpacing(10);
- suspendLabel= new QLabel(i18n("Determining suspend status..."),
+ suspendLabel= new TQLabel(i18n("Determining suspend status..."),
this, "suspendLabel");
l->addWidget(suspendLabel);
l->addSpacing(6);
l->setMargin(6);
- suspendButton= new QPushButton(this, "suspendButton");
+ suspendButton= new TQPushButton(this, "suspendButton");
suspendButton->setText(i18n("&Suspend Now"));
l->addWidget(suspendButton);
- connect(suspendButton, SIGNAL(clicked()), this, SLOT(suspendButtonClicked()));
+ connect(suspendButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(suspendButtonClicked()));
- artsPollStatusTimer= new QTimer(this);
- connect(artsPollStatusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
+ artsPollStatusTimer= new TQTimer(this);
+ connect(artsPollStatusTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateStatus()));
artsPollStatusTimer->start(1000);
//l->activate();
show();
diff --git a/arts/tools/statusview.h b/arts/tools/statusview.h
index 7fa17357..e1f167ab 100644
--- a/arts/tools/statusview.h
+++ b/arts/tools/statusview.h
@@ -24,7 +24,7 @@
#ifndef STATUSVIEW_H
#define STATUSVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <arts/soundserver.h>
#include "templateview.h"
@@ -36,17 +36,17 @@ class QLabel;
class ArtsStatusView : public Template_ArtsView {
Q_OBJECT
public:
- ArtsStatusView(Arts::SoundServer server, QWidget* =0, const char* =0 );
+ ArtsStatusView(Arts::SoundServer server, TQWidget* =0, const char* =0 );
public slots:
void updateStatus();
void suspendButtonClicked();
protected:
- QTimer *artsPollStatusTimer;
+ TQTimer *artsPollStatusTimer;
Arts::SoundServer server;
- QLabel *suspendLabel;
- QButton *suspendButton;
+ TQLabel *suspendLabel;
+ TQButton *suspendButton;
};
#endif
diff --git a/arts/tools/templateview.cpp b/arts/tools/templateview.cpp
index 6f5a5fd6..a589ff46 100644
--- a/arts/tools/templateview.cpp
+++ b/arts/tools/templateview.cpp
@@ -22,7 +22,7 @@
//#include <kdebug.h>
-Template_ArtsView::Template_ArtsView( QWidget* parent, const char* name ) : QFrame( parent,name ){
+Template_ArtsView::Template_ArtsView( TQWidget* parent, const char* name ) : TQFrame( parent,name ){
//kdDebug()<<k_funcinfo<<endl;
}
@@ -30,7 +30,7 @@ Template_ArtsView::~Template_ArtsView() {
//kdDebug()<<k_funcinfo<<endl;
}
-void Template_ArtsView::closeEvent( QCloseEvent *e ) {
+void Template_ArtsView::closeEvent( TQCloseEvent *e ) {
//kdDebug()<<k_funcinfo<<endl;
e->accept();
emit closed();
diff --git a/arts/tools/templateview.h b/arts/tools/templateview.h
index a3badea8..efdd35f4 100644
--- a/arts/tools/templateview.h
+++ b/arts/tools/templateview.h
@@ -22,16 +22,16 @@
#define ARTS_TEMPLATEVIEW_H
//#include <artsflow.h>
-#include <qframe.h>
+#include <tqframe.h>
class Template_ArtsView : public QFrame
{
Q_OBJECT
public:
- Template_ArtsView( QWidget* =0, const char* =0 );
+ Template_ArtsView( TQWidget* =0, const char* =0 );
~Template_ArtsView();
- void closeEvent( QCloseEvent* );
+ void closeEvent( TQCloseEvent* );
signals:
void closed();
};