summaryrefslogtreecommitdiffstats
path: root/arts/tools/environmentview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arts/tools/environmentview.cpp')
-rw-r--r--arts/tools/environmentview.cpp58
1 files changed, 29 insertions, 29 deletions
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;