From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- arts/tools/environmentview.cpp | 58 +++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'arts/tools/environmentview.cpp') 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 -#include -#include +#include +#include +#include #include #include @@ -34,7 +34,7 @@ #include #include -#include +#include #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(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 strseq; @@ -163,7 +163,7 @@ void EnvironmentView::save() std::vector *strseq; strseq = defaultEnvironment().saveToList(); - std::ofstream outfile(QFile::encodeName(defaultEnvFileName).data()); + std::ofstream outfile(TQFile::encodeName(defaultEnvFileName).data()); for(std::vector::iterator i = strseq->begin(); i != strseq->end(); i++) outfile << ( *i ) << std::endl; delete strseq; -- cgit v1.2.1