Rename a number of old tq methods that are no longer tq specific

pull/1/head
Timothy Pearson 13 years ago
parent b248983f92
commit 83fbc82a10

@ -25,7 +25,7 @@
#include "structureport.h" #include "structureport.h"
//#include <arts/debug.h> //#include <arts/debug.h>
#include <tqpalette.h> #include <palette.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <kmessagebox.h> #include <kmessagebox.h>
#include <klocale.h> #include <klocale.h>
@ -55,7 +55,7 @@ CreateTool::CreateTool(ModuleWidget *mwidget)
CreateTool::~CreateTool() CreateTool::~CreateTool()
{ {
mwidget->tqrepaint(componentRect); mwidget->repaint(componentRect);
mwidget->setCursor(oldCursor); mwidget->setCursor(oldCursor);
mwidget->setMouseTracking(oldMouseTracking); mwidget->setMouseTracking(oldMouseTracking);
} }
@ -89,7 +89,7 @@ void CreateTool::mouseMoveEvent(TQMouseEvent *e)
&& mwidget->colXPos(x + width, &cellx2) && mwidget->rowYPos(y + height, &celly2); && mwidget->colXPos(x + width, &cellx2) && mwidget->rowYPos(y + height, &celly2);
if(!posok) return; if(!posok) return;
mwidget->tqrepaint(componentRect); mwidget->repaint(componentRect);
componentRect = TQRect(cellx, celly, cellx2 - cellx, celly2 - celly); componentRect = TQRect(cellx, celly, cellx2 - cellx, celly2 - celly);
TQPainter *p = new TQPainter; TQPainter *p = new TQPainter;
@ -303,7 +303,7 @@ void ConnectPortsTool::mouseMoveEvent(TQMouseEvent *e)
{ {
TQPainter painter(mwidget); TQPainter painter(mwidget);
painter.setPen(TQt::white); painter.setPen(TQt::white);
mwidget->tqrepaint(TQRect(firstPos, lastPos).normalize()); mwidget->repaint(TQRect(firstPos, lastPos).normalize());
painter.drawLine(firstPos, e->pos()); painter.drawLine(firstPos, e->pos());
lastPos = e->pos(); lastPos = e->pos();
} }
@ -334,6 +334,6 @@ void ConnectPortsTool::mouseReleaseEvent(TQMouseEvent *e)
} }
} }
} }
mwidget->tqrepaint(TQRect(firstPos, lastPos).normalize()); mwidget->repaint(TQRect(firstPos, lastPos).normalize());
mwidget->leaveTool(this); mwidget->leaveTool(this);
} }

@ -83,7 +83,7 @@ char *DirManager::directory(const char *subdir, const TQString &desc)
TQString dir = TQFile::decodeName(dirname); TQString dir = TQFile::decodeName(dirname);
message = i18n("You need the folder %1.\n" message = i18n("You need the folder %1.\n"
"It will be used to store %2.\nShould I create it now?") "It will be used to store %2.\nShould I create it now?")
.tqarg(dir).tqarg(desc); .arg(dir).arg(desc);
if(KMessageBox::questionYesNo(0,message,i18n("aRts Folder Missing"),i18n("Create Folder"),i18n("Do Not Create")) if(KMessageBox::questionYesNo(0,message,i18n("aRts Folder Missing"),i18n("Create Folder"),i18n("Do Not Create"))
== KMessageBox::Yes) == KMessageBox::Yes)

@ -20,7 +20,7 @@
*/ */
#include <tqfile.h> #include <tqfile.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
@ -41,7 +41,7 @@
#ifndef KDE_USE_FINAL #ifndef KDE_USE_FINAL
static void min_size(TQWidget *w) { static void min_size(TQWidget *w) {
w->setMinimumSize(w->tqsizeHint()); w->setMinimumSize(w->sizeHint());
} }
#endif #endif
@ -53,19 +53,19 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
setCaption(i18n("aRts Module Execution")); setCaption(i18n("aRts Module Execution"));
maintqlayout = new TQVBoxLayout(this); mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..." // caption label: "Synthesis running..."
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this); TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font()); TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont); captionlabel->setFont(labelfont);
captionlabel->setText(TQString(" ")+i18n("Synthesis running...")+TQString(" ")); captionlabel->setText(TQString(" ")+i18n("Synthesis running...")+TQString(" "));
captionlabel->tqsetAlignment(AlignCenter); captionlabel->setAlignment(AlignCenter);
min_size(captionlabel); min_size(captionlabel);
maintqlayout->addWidget(captionlabel); mainlayout->addWidget(captionlabel);
cpuusagelabel = new TQLabel(this); cpuusagelabel = new TQLabel(this);
cpuusagelabel->setText(i18n("CPU usage: unknown")); cpuusagelabel->setText(i18n("CPU usage: unknown"));
@ -78,41 +78,41 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
cpuusagetimer->start( 2000, false ); cpuusagetimer->start( 2000, false );
min_size(cpuusagelabel); min_size(cpuusagelabel);
maintqlayout->addWidget(cpuusagelabel); mainlayout->addWidget(cpuusagelabel);
// ruler above the slidertqlayout // ruler above the sliderlayout
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator* sep = new KSeparator( KSeparator::HLine, this); KSeparator* sep = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(sep); mainlayout->addWidget(sep);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// sliders, controlpanels // sliders, controlpanels
slidertqlayout = new TQVBoxLayout; sliderlayout = new TQVBoxLayout;
maintqlayout->addLayout(slidertqlayout); mainlayout->addLayout(sliderlayout);
#if 0 /* PORT */ #if 0 /* PORT */
this->GUIServer = GUIServer; this->GUIServer = GUIServer;
GUIServer->setGlobalParent(this); GUIServer->setGlobalParent(this);
GUIServer->setGlobalLayout(slidertqlayout); GUIServer->setGlobalLayout(sliderlayout);
#endif #endif
// hruler below the slidertqlayout // hruler below the sliderlayout
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
sep = new KSeparator( KSeparator::HLine, this); sep = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(sep); mainlayout->addWidget(sep);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -125,18 +125,18 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) ); connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->tqlayout(); bbox->layout();
//min_size(bbox); //min_size(bbox);
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
// maintqlayout->freeze(); // mainlayout->freeze();
} }
void ExecDlg::start() void ExecDlg::start()
{ {
maintqlayout->freeze(); mainlayout->freeze();
} }
void ExecDlg::guiServerTick() void ExecDlg::guiServerTick()
@ -151,7 +151,7 @@ void ExecDlg::updateCpuUsage()
#if 0 /* TODO:PORT */ #if 0 /* TODO:PORT */
char cpuusage[100]; char cpuusage[100];
ArtsCorba::tqStatus s = Synthesizer->gettqStatus(); ArtsCorba::Status s = Synthesizer->getStatus();
if(s.halted) if(s.halted)
{ {
cpuusagetimer->stop(); cpuusagetimer->stop();

@ -27,7 +27,7 @@
#include <tqtimer.h> #include <tqtimer.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqscrollbar.h> #include <tqscrollbar.h>
#include <tqlayout.h> #include <layout.h>
class ExecDlg :public TQDialog { class ExecDlg :public TQDialog {
Q_OBJECT Q_OBJECT
@ -35,7 +35,7 @@ class ExecDlg :public TQDialog {
public: public:
TQTimer *cpuusagetimer; TQTimer *cpuusagetimer;
TQLabel *cpuusagelabel; TQLabel *cpuusagelabel;
TQVBoxLayout *maintqlayout,*slidertqlayout; TQVBoxLayout *mainlayout,*sliderlayout;
ExecutableStructure *structure; ExecutableStructure *structure;
void start(); void start();

@ -21,7 +21,7 @@
#include "interfacedlg.h" #include "interfacedlg.h"
#include "structureport.h" #include "structureport.h"
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlistbox.h> #include <tqlistbox.h>
#include <kbuttonbox.h> #include <kbuttonbox.h>
@ -45,46 +45,46 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
{ {
setCaption(i18n("aRts: Structureport View")); setCaption(i18n("aRts: Structureport View"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
//TQHBoxLayout *contentstqlayout = new TQHBoxLayout; //TQHBoxLayout *contentslayout = new TQHBoxLayout;
// object type // object type
/* /*
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *objectlabel = new TQLabel(this); TQLabel *objectlabel = new TQLabel(this);
TQFont labelfont(objectlabel->font()); TQFont labelfont(objectlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
objectlabel->setFont(labelfont); objectlabel->setFont(labelfont);
objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" ")); objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" "));
objectlabel->tqsetAlignment(AlignCenter); objectlabel->setAlignment(AlignCenter);
min_size(objectlabel); min_size(objectlabel);
maintqlayout->addWidget(objectlabel); mainlayout->addWidget(objectlabel);
*/ */
// port description // port description
/* /*
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *portlabel = new TQLabel(this); TQLabel *portlabel = new TQLabel(this);
labelfont.setPointSize(labelfont.pointSize()*4/5); labelfont.setPointSize(labelfont.pointSize()*4/5);
portlabel->setFont(labelfont); portlabel->setFont(labelfont);
portlabel->setText(i18n("Port description: ")+ port->description); portlabel->setText(i18n("Port description: ")+ port->description);
min_size(portlabel); min_size(portlabel);
portlabel->tqsetAlignment(AlignCenter); portlabel->setAlignment(AlignCenter);
maintqlayout->addWidget(portlabel); mainlayout->addWidget(portlabel);
int labelwidth = imax(portlabel->tqsizeHint().width(),objectlabel->tqsizeHint().width()); int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width());
portlabel->setMinimumWidth(labelwidth); portlabel->setMinimumWidth(labelwidth);
objectlabel->setMinimumWidth(labelwidth); objectlabel->setMinimumWidth(labelwidth);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(contentstqlayout); mainlayout->addLayout(contentslayout);
*/ */
// list // list
@ -93,23 +93,23 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
update(); update();
listbox->setMinimumSize(340,400); listbox->setMinimumSize(340,400);
maintqlayout->addWidget(listbox); mainlayout->addWidget(listbox);
connect( listbox, TQT_SIGNAL( doubleClicked ( TQListBoxItem *)), this, connect( listbox, TQT_SIGNAL( doubleClicked ( TQListBoxItem *)), this,
TQT_SLOT(accept())); TQT_SLOT(accept()));
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -121,14 +121,14 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel()); TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
bbox->tqlayout(); bbox->layout();
//min_size(bbox); //min_size(bbox);
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
//maintqlayout->activate(); //mainlayout->activate();
maintqlayout->freeze(); mainlayout->freeze();
} }
string InterfaceDlg::interfaceName() string InterfaceDlg::interfaceName()
@ -159,10 +159,10 @@ void InterfaceDlg::update(const string& interface, const string& indent)
{ {
listbox->insertItem((indent + interface).c_str()); listbox->insertItem((indent + interface).c_str());
vector<string> *tqchildren = Arts::Dispatcher::the()->interfaceRepo().queryChildren(interface); vector<string> *children = Arts::Dispatcher::the()->interfaceRepo().queryChildren(interface);
for (vector<string>::iterator ci = tqchildren->begin(); ci != tqchildren->end(); ++ci) for (vector<string>::iterator ci = children->begin(); ci != children->end(); ++ci)
update(ci->c_str(), indent+" "); update(ci->c_str(), indent+" ");
delete tqchildren; delete children;
} }
void InterfaceDlg::update() void InterfaceDlg::update()

@ -441,7 +441,7 @@ void ArtsBuilderWindow::publish()
checkName(); checkName();
structure->publish(); structure->publish();
KMessageBox::information(this, KMessageBox::information(this,
i18n("The structure has been published as: '%1' on the server.").tqarg( structure->name().c_str() )); i18n("The structure has been published as: '%1' on the server.").arg( structure->name().c_str() ));
} }
TQString ArtsBuilderWindow::getOpenFilename(const char *pattern, const char *initialDir) TQString ArtsBuilderWindow::getOpenFilename(const char *pattern, const char *initialDir)
@ -587,7 +587,7 @@ bool ArtsBuilderWindow::save(TQString filename)
if(file.status()) { if(file.status()) {
KMessageBox::sorry(this, KMessageBox::sorry(this,
i18n("The file '%1' could not be opened for writing: %2") i18n("The file '%1' could not be opened for writing: %2")
.tqarg(filename).tqarg(strerror(file.status())), .arg(filename).arg(strerror(file.status())),
i18n("aRts Warning")); i18n("aRts Warning"));
return false; return false;
} }
@ -597,7 +597,7 @@ bool ArtsBuilderWindow::save(TQString filename)
if(!file.close()) { if(!file.close()) {
KMessageBox::sorry(this, KMessageBox::sorry(this,
i18n("Saving to file '%1' could not be finished correctly: %2") i18n("Saving to file '%1' could not be finished correctly: %2")
.tqarg(filename).tqarg(strerror(file.status())), .arg(filename).arg(strerror(file.status())),
i18n("aRts Warning")); i18n("aRts Warning"));
return false; return false;
} }
@ -872,7 +872,7 @@ ArtsBuilderApp::ArtsBuilderApp(TQString filename)
mainWindow->open(filename); mainWindow->open(filename);
} else { } else {
KMessageBox::sorry(0, KMessageBox::sorry(0,
i18n("The specified file '%1' does not exist.").tqarg(filename), i18n("The specified file '%1' does not exist.").arg(filename),
i18n("aRts Warning")); i18n("aRts Warning"));
} }
} }

@ -24,7 +24,7 @@
#include <stdio.h> #include <stdio.h>
#include <arts/debug.h> #include <arts/debug.h>
#include <tqpalette.h> #include <palette.h>
#include <tqdrawutil.h> #include <tqdrawutil.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <algorithm> #include <algorithm>

@ -21,7 +21,7 @@
#include "portposdlg.h" #include "portposdlg.h"
#include "structureport.h" #include "structureport.h"
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlistbox.h> #include <tqlistbox.h>
#include <kbuttonbox.h> #include <kbuttonbox.h>
@ -46,46 +46,46 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
setCaption(i18n("aRts: Structureport View")); setCaption(i18n("aRts: Structureport View"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
//TQHBoxLayout *contentstqlayout = new TQHBoxLayout; //TQHBoxLayout *contentslayout = new TQHBoxLayout;
// object type // object type
/* /*
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *objectlabel = new TQLabel(this); TQLabel *objectlabel = new TQLabel(this);
TQFont labelfont(objectlabel->font()); TQFont labelfont(objectlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
objectlabel->setFont(labelfont); objectlabel->setFont(labelfont);
objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" ")); objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" "));
objectlabel->tqsetAlignment(AlignCenter); objectlabel->setAlignment(AlignCenter);
min_size(objectlabel); min_size(objectlabel);
maintqlayout->addWidget(objectlabel); mainlayout->addWidget(objectlabel);
*/ */
// port description // port description
/* /*
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *portlabel = new TQLabel(this); TQLabel *portlabel = new TQLabel(this);
labelfont.setPointSize(labelfont.pointSize()*4/5); labelfont.setPointSize(labelfont.pointSize()*4/5);
portlabel->setFont(labelfont); portlabel->setFont(labelfont);
portlabel->setText(i18n("Port description: ")+ port->description); portlabel->setText(i18n("Port description: ")+ port->description);
min_size(portlabel); min_size(portlabel);
portlabel->tqsetAlignment(AlignCenter); portlabel->setAlignment(AlignCenter);
maintqlayout->addWidget(portlabel); mainlayout->addWidget(portlabel);
int labelwidth = imax(portlabel->tqsizeHint().width(),objectlabel->tqsizeHint().width()); int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width());
portlabel->setMinimumWidth(labelwidth); portlabel->setMinimumWidth(labelwidth);
objectlabel->setMinimumWidth(labelwidth); objectlabel->setMinimumWidth(labelwidth);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(contentstqlayout); mainlayout->addLayout(contentslayout);
*/ */
// list // list
@ -94,21 +94,21 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
update(); update();
listbox->setMinimumSize(100,200); listbox->setMinimumSize(100,200);
maintqlayout->addWidget(listbox); mainlayout->addWidget(listbox);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -133,14 +133,14 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
TQButton *cancelbutton = bbox->addButton(i18n("Cancel")); TQButton *cancelbutton = bbox->addButton(i18n("Cancel"));
connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
*/ */
bbox->tqlayout(); bbox->layout();
//min_size(bbox); //min_size(bbox);
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
//maintqlayout->activate(); //mainlayout->activate();
maintqlayout->freeze(); mainlayout->freeze();
} }
void PortPosDlg::raise() void PortPosDlg::raise()
@ -247,7 +247,7 @@ void PortPosDlg::update()
} }
} }
} }
listbox->tqrepaint(); listbox->repaint();
} }
void PortPosDlg::help() void PortPosDlg::help()

@ -26,7 +26,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
@ -115,7 +115,7 @@ void PropertyPanel::setSelectedComponent( StructureComponent *component )
if(component->pixmap()) if(component->pixmap())
{ {
moduleIconLabel->setPixmap( *component->pixmap() ); moduleIconLabel->setPixmap( *component->pixmap() );
moduleIconLabel->setMinimumSize( moduleIconLabel->tqsizeHint() ); moduleIconLabel->setMinimumSize( moduleIconLabel->sizeHint() );
moduleIconLabel->show(); moduleIconLabel->show();
} }
else else
@ -128,11 +128,11 @@ void PropertyPanel::setSelectedComponent( StructureComponent *component )
it != modulePorts.end(); it++) it != modulePorts.end(); it++)
{ {
TQString portTitle = (*it)->description TQString portTitle = (*it)->description
+ TQString(" (%1)").tqarg( (*it)->PortDesc.type().direction == Arts::output ? + TQString(" (%1)").arg( (*it)->PortDesc.type().direction == Arts::output ?
i18n("OUTPUT") : i18n("INPUT") ); i18n("OUTPUT") : i18n("INPUT") );
portCombo->insertItem( portTitle ); portCombo->insertItem( portTitle );
} }
//portCombo->setMinimumSize( portCombo->tqsizeHint() ); //portCombo->setMinimumSize( portCombo->sizeHint() );
setEnabled(true); setEnabled(true);
} }
} }
@ -344,7 +344,7 @@ bool PropertyPanel::eventFilter( TQObject *o, TQEvent *e )
TQString entered = TQT_TQKEYEVENT(e)->text(); TQString entered = TQT_TQKEYEVENT(e)->text();
bool goodString = entered.length() > 0; bool goodString = entered.length() > 0;
// kdDebug() << TQString("pressed '%1'").tqarg(entered) << endl; // kdDebug() << TQString("pressed '%1'").arg(entered) << endl;
for( unsigned int i = 0; i < entered.length(); i++) for( unsigned int i = 0; i < entered.length(); i++)
goodString = goodString && entered[i].isLetterOrNumber(); goodString = goodString && entered[i].isLetterOrNumber();

@ -21,7 +21,7 @@
#define PROPERTYPANEL_H #define PROPERTYPANEL_H
#include "propertypanelbase.h" #include "propertypanelbase.h"
#include "tqpalette.h" #include "palette.h"
#include <vector> #include <vector>
#include <list> #include <list>

@ -314,7 +314,7 @@
<property name="name"> <property name="name">
<cstring>tipLabel</cstring> <cstring>tipLabel</cstring>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set> <set>WordBreak|AlignVCenter|AlignLeft</set>
</property> </property>
<property name="wordwrap" stdset="0"> <property name="wordwrap" stdset="0">

@ -34,8 +34,8 @@ enum ScrollBarDirtyFlags {
}; };
#define HSBEXT horizontalScrollBar()->tqsizeHint().height() #define HSBEXT horizontalScrollBar()->sizeHint().height()
#define VSBEXT verticalScrollBar()->tqsizeHint().width() #define VSBEXT verticalScrollBar()->sizeHint().width()
class TQCornerSquare : public TQWidget // internal class class TQCornerSquare : public TQWidget // internal class
@ -88,7 +88,7 @@ void TQCornerSquare::paintEvent( TQPaintEvent * )
used by functions such as setXOffset() or maxYOffset(). used by functions such as setXOffset() or maxYOffset().
\i The \e widget coordinates. (0,0) is the top-left corner of the widget, \i The \e widget coordinates. (0,0) is the top-left corner of the widget,
\e including the frame. They are used by functions such as tqrepaint(). \e including the frame. They are used by functions such as repaint().
\i The \e view coordinates. (0,0) is the top-left corner of the view, \e \i The \e view coordinates. (0,0) is the top-left corner of the view, \e
excluding the frame. This is the least-used coordinate system; it is used by excluding the frame. This is the least-used coordinate system; it is used by
@ -135,7 +135,7 @@ void TQCornerSquare::paintEvent( TQPaintEvent * )
The \link setCellHeight() cell height\endlink and \link setCellWidth() The \link setCellHeight() cell height\endlink and \link setCellWidth()
cell width\endlink are set to 0. cell width\endlink are set to 0.
Frame line tqshapes (TQFrame::HLink and TQFrame::VLine) are disallowed; Frame line shapes (TQFrame::HLink and TQFrame::VLine) are disallowed;
see TQFrame::setFrameStyle(). see TQFrame::setFrameStyle().
Note that the \a f argument is \e not \link setTableFlags() table Note that the \a f argument is \e not \link setTableFlags() table
@ -207,7 +207,7 @@ void QtTableView::show()
/*! /*!
\overload void QtTableView::tqrepaint( bool erase ) \overload void QtTableView::repaint( bool erase )
Repaints the entire view. Repaints the entire view.
*/ */
@ -221,16 +221,16 @@ void QtTableView::show()
If \a w is negative, it is replaced with <code>width() - x</code>. If \a w is negative, it is replaced with <code>width() - x</code>.
If \a h is negative, it is replaced with <code>height() - y</code>. If \a h is negative, it is replaced with <code>height() - y</code>.
Doing a tqrepaint() usually is faster than doing an update(), but Doing a repaint() usually is faster than doing an update(), but
calling update() many times in a row will generate a single paint calling update() many times in a row will generate a single paint
event. event.
At present, QtTableView is the only widget that reimplements \link At present, QtTableView is the only widget that reimplements \link
TQWidget::tqrepaint() tqrepaint()\endlink. It does this because by TQWidget::repaint() repaint()\endlink. It does this because by
clearing and then repainting one cell at at time, it can make the clearing and then repainting one cell at at time, it can make the
screen flicker less than it would otherwise. */ screen flicker less than it would otherwise. */
void QtTableView::tqrepaint( int x, int y, int w, int h, bool erase ) void QtTableView::repaint( int x, int y, int w, int h, bool erase )
{ {
if ( !isVisible() || testWState(WState_BlockUpdates) ) if ( !isVisible() || testWState(WState_BlockUpdates) )
return; return;
@ -249,7 +249,7 @@ void QtTableView::tqrepaint( int x, int y, int w, int h, bool erase )
} }
/*! /*!
\overload void QtTableView::tqrepaint( const TQRect &r, bool erase ) \overload void QtTableView::repaint( const TQRect &r, bool erase )
Replaints rectangle \a r. If \a erase is TRUE draws the background Replaints rectangle \a r. If \a erase is TRUE draws the background
using the palette's background. using the palette's background.
*/ */
@ -288,7 +288,7 @@ void QtTableView::setNumRows( int rows )
nRows = rows; nRows = rows;
if ( autoUpdate() && isVisible() && if ( autoUpdate() && isVisible() &&
( oldLastVisible != lastRowVisible() || oldTopCell != topCell() ) ) ( oldLastVisible != lastRowVisible() || oldTopCell != topCell() ) )
tqrepaint( oldTopCell != topCell() ); repaint( oldTopCell != topCell() );
} else { } else {
// Be more careful - if destructing, bad things might happen. // Be more careful - if destructing, bad things might happen.
nRows = rows; nRows = rows;
@ -328,7 +328,7 @@ void QtTableView::setNumCols( int cols )
if ( autoUpdate() && isVisible() ) { if ( autoUpdate() && isVisible() ) {
int maxCol = lastColVisible(); int maxCol = lastColVisible();
if ( maxCol >= oldCols || maxCol >= nCols ) if ( maxCol >= oldCols || maxCol >= nCols )
tqrepaint(); repaint();
} }
updateScrollBars( horRange ); updateScrollBars( horRange );
updateFrameSize(); updateFrameSize();
@ -591,7 +591,7 @@ void QtTableView::setCellWidth( int cellWidth )
updateScrollBars( horSteps | horRange ); updateScrollBars( horSteps | horRange );
if ( autoUpdate() && isVisible() ) if ( autoUpdate() && isVisible() )
tqrepaint(); repaint();
} }
@ -643,7 +643,7 @@ void QtTableView::setCellHeight( int cellHeight )
#endif #endif
cellH = (short)cellHeight; cellH = (short)cellHeight;
if ( autoUpdate() && isVisible() ) if ( autoUpdate() && isVisible() )
tqrepaint(); repaint();
updateScrollBars( verSteps | verRange ); updateScrollBars( verSteps | verRange );
} }
@ -817,7 +817,7 @@ void QtTableView::setTableFlags( uint f )
(f & Tbl_snapToVGrid) != 0 && yCellDelta != 0 ) { (f & Tbl_snapToVGrid) != 0 && yCellDelta != 0 ) {
snapToGrid( (f & Tbl_snapToHGrid) != 0, // do snapping snapToGrid( (f & Tbl_snapToHGrid) != 0, // do snapping
(f & Tbl_snapToVGrid) != 0 ); (f & Tbl_snapToVGrid) != 0 );
repaintMask |= Tbl_snapToGrid; // tqrepaint table repaintMask |= Tbl_snapToGrid; // repaint table
} }
} }
@ -825,7 +825,7 @@ void QtTableView::setTableFlags( uint f )
setAutoUpdate( TRUE ); setAutoUpdate( TRUE );
updateScrollBars(); updateScrollBars();
if ( isVisible() && (f & repaintMask) ) if ( isVisible() && (f & repaintMask) )
tqrepaint(); repaint();
} }
} }
@ -881,7 +881,7 @@ void QtTableView::clearTableFlags( uint f )
(f & Tbl_smoothVScrolling) != 0 && yCellDelta != 0 ) { (f & Tbl_smoothVScrolling) != 0 && yCellDelta != 0 ) {
snapToGrid( (f & Tbl_smoothHScrolling) != 0, // do snapping snapToGrid( (f & Tbl_smoothHScrolling) != 0, // do snapping
(f & Tbl_smoothVScrolling) != 0 ); (f & Tbl_smoothVScrolling) != 0 );
repaintMask |= Tbl_smoothScrolling; // tqrepaint table repaintMask |= Tbl_smoothScrolling; // repaint table
} }
} }
if ( f & Tbl_snapToHGrid ) { if ( f & Tbl_snapToHGrid ) {
@ -894,7 +894,7 @@ void QtTableView::clearTableFlags( uint f )
setAutoUpdate( TRUE ); setAutoUpdate( TRUE );
updateScrollBars(); // returns immediately if nothing to do updateScrollBars(); // returns immediately if nothing to do
if ( isVisible() && (f & repaintMask) ) if ( isVisible() && (f & repaintMask) )
tqrepaint(); repaint();
} }
} }
@ -916,20 +916,20 @@ void QtTableView::clearTableFlags( uint f )
automatically whenever it has changed in some way (for example, when a automatically whenever it has changed in some way (for example, when a
\link setTableFlags() flag\endlink is changed). \link setTableFlags() flag\endlink is changed).
If \a enable is FALSE, the view does NOT tqrepaint itself or update If \a enable is FALSE, the view does NOT repaint itself or update
its internal state variables when it is changed. This can be its internal state variables when it is changed. This can be
useful to avoid flicker during large changes and is singularly useful to avoid flicker during large changes and is singularly
useless otherwise. Disable auto-update, do the changes, re-enable useless otherwise. Disable auto-update, do the changes, re-enable
auto-update and call tqrepaint(). auto-update and call repaint().
\warning Do not leave the view in this state for a long time \warning Do not leave the view in this state for a long time
(i.e., between events). If, for example, the user interacts with the (i.e., between events). If, for example, the user interacts with the
view when auto-update is off, strange things can happen. view when auto-update is off, strange things can happen.
Setting auto-update to TRUE does not tqrepaint the view; you must call Setting auto-update to TRUE does not repaint the view; you must call
tqrepaint() to do this. repaint() to do this.
\sa autoUpdate(), tqrepaint() \sa autoUpdate(), repaint()
*/ */
void QtTableView::setAutoUpdate( bool enable ) void QtTableView::setAutoUpdate( bool enable )
@ -963,7 +963,7 @@ void QtTableView::updateCell( int row, int col, bool erase )
TQRect uR = TQRect( xPos, yPos, TQRect uR = TQRect( xPos, yPos,
cellW ? cellW : cellWidth(col), cellW ? cellW : cellWidth(col),
cellH ? cellH : cellHeight(row) ); cellH ? cellH : cellHeight(row) );
tqrepaint( uR.intersect(viewRect()), erase ); repaint( uR.intersect(viewRect()), erase );
} }
@ -1379,13 +1379,13 @@ void QtTableView::paintEvent( TQPaintEvent *e )
// Note that this needs to be done regardless whether we do // Note that this needs to be done regardless whether we do
// eraseInPaint or not. Reason: a subclass may implement // eraseInPaint or not. Reason: a subclass may implement
// flicker-freeness and encourage the use of tqrepaint(FALSE). // flicker-freeness and encourage the use of repaint(FALSE).
// The subclass, however, cannot draw all pixels, just those // The subclass, however, cannot draw all pixels, just those
// inside the cells. So QtTableView is reponsible for all pixels // inside the cells. So QtTableView is reponsible for all pixels
// outside the cells. // outside the cells.
TQRect viewR = viewRect(); TQRect viewR = viewRect();
const TQColorGroup g = tqcolorGroup(); const TQColorGroup g = colorGroup();
if ( xPos <= maxX ) { if ( xPos <= maxX ) {
TQRect r = viewR; TQRect r = viewR;
@ -1426,7 +1426,7 @@ void QtTableView::resizeEvent( TQResizeEvent * )
void QtTableView::updateView() void QtTableView::updateView()
{ {
tqrepaint( viewRect() ); repaint( viewRect() );
} }
/*! /*!
@ -1443,7 +1443,7 @@ TQScrollBar *QtTableView::verticalScrollBar() const
#ifndef TQT_NO_CURSOR #ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor ); sb->setCursor( arrowCursor );
#endif #endif
sb->resize( sb->tqsizeHint() ); // height is irrelevant sb->resize( sb->sizeHint() ); // height is irrelevant
Q_CHECK_PTR(sb); Q_CHECK_PTR(sb);
sb->setTracking( FALSE ); sb->setTracking( FALSE );
sb->setFocusPolicy( TQ_NoFocus ); sb->setFocusPolicy( TQ_NoFocus );
@ -1474,7 +1474,7 @@ TQScrollBar *QtTableView::horizontalScrollBar() const
#ifndef TQT_NO_CURSOR #ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor ); sb->setCursor( arrowCursor );
#endif #endif
sb->resize( sb->tqsizeHint() ); // width is irrelevant sb->resize( sb->sizeHint() ); // width is irrelevant
sb->setFocusPolicy( TQ_NoFocus ); sb->setFocusPolicy( TQ_NoFocus );
Q_CHECK_PTR(sb); Q_CHECK_PTR(sb);
sb->setTracking( FALSE ); sb->setTracking( FALSE );
@ -1522,7 +1522,7 @@ void QtTableView::setHorScrollBar( bool on, bool update )
else else
sbDirty = sbDirty | verMask; sbDirty = sbDirty | verMask;
if ( hideScrollBar && isVisible() ) if ( hideScrollBar && isVisible() )
tqrepaint( hScrollBar->x(), hScrollBar->y(), repaint( hScrollBar->x(), hScrollBar->y(),
width() - hScrollBar->x(), hScrollBar->height() ); width() - hScrollBar->x(), hScrollBar->height() );
} }
if ( update ) if ( update )
@ -1561,7 +1561,7 @@ void QtTableView::setVerScrollBar( bool on, bool update )
else else
sbDirty = sbDirty | horMask; sbDirty = sbDirty | horMask;
if ( hideScrollBar && isVisible() ) if ( hideScrollBar && isVisible() )
tqrepaint( vScrollBar->x(), vScrollBar->y(), repaint( vScrollBar->x(), vScrollBar->y(),
vScrollBar->width(), height() - vScrollBar->y() ); vScrollBar->width(), height() - vScrollBar->y() );
} }
if ( update ) if ( update )
@ -2006,7 +2006,7 @@ void QtTableView::updateScrollBars( uint f )
if ( sbDirty & horValue ) if ( sbDirty & horValue )
hScrollBar->setValue( xOffs ); hScrollBar->setValue( xOffs );
// show scrollbar only when it has a sane tqgeometry // show scrollbar only when it has a sane geometry
if ( !hScrollBar->isVisible() ) if ( !hScrollBar->isVisible() )
hScrollBar->show(); hScrollBar->show();
} }
@ -2030,7 +2030,7 @@ void QtTableView::updateScrollBars( uint f )
if ( sbDirty & verValue ) if ( sbDirty & verValue )
vScrollBar->setValue( yOffs ); vScrollBar->setValue( yOffs );
// show scrollbar only when it has a sane tqgeometry // show scrollbar only when it has a sane geometry
if ( !vScrollBar->isVisible() ) if ( !vScrollBar->isVisible() )
vScrollBar->show(); vScrollBar->show();
} }
@ -2253,7 +2253,7 @@ void QtTableView::showOrHideScrollBars()
Call this function when the table view's total size is changed; Call this function when the table view's total size is changed;
typically because the result of cellHeight() or cellWidth() have changed. typically because the result of cellHeight() or cellWidth() have changed.
This function does not tqrepaint the widget. This function does not repaint the widget.
*/ */
void QtTableView::updateTableSize() void QtTableView::updateTableSize()

@ -32,9 +32,9 @@ public:
virtual void setPalette( const TQPalette & ); virtual void setPalette( const TQPalette & );
void show(); void show();
void tqrepaint( bool erase=TRUE ); void repaint( bool erase=TRUE );
void tqrepaint( int x, int y, int w, int h, bool erase=TRUE ); void repaint( int x, int y, int w, int h, bool erase=TRUE );
void tqrepaint( const TQRect &, bool erase=TRUE ); void repaint( const TQRect &, bool erase=TRUE );
protected: protected:
QtTableView( TQWidget *parent=0, const char *name=0, WFlags f=0 ); QtTableView( TQWidget *parent=0, const char *name=0, WFlags f=0 );
@ -235,11 +235,11 @@ inline TQRect QtTableView::cellUpdateRect() const
inline bool QtTableView::autoUpdate() const inline bool QtTableView::autoUpdate() const
{ return isUpdatesEnabled(); } { return isUpdatesEnabled(); }
inline void QtTableView::tqrepaint( bool erase ) inline void QtTableView::repaint( bool erase )
{ tqrepaint( 0, 0, width(), height(), erase ); } { repaint( 0, 0, width(), height(), erase ); }
inline void QtTableView::tqrepaint( const TQRect &r, bool erase ) inline void QtTableView::repaint( const TQRect &r, bool erase )
{ tqrepaint( r.x(), r.y(), r.width(), r.height(), erase ); } { repaint( r.x(), r.y(), r.width(), r.height(), erase ); }
inline void QtTableView::updateScrollBars() inline void QtTableView::updateScrollBars()
{ updateScrollBars( 0 ); } { updateScrollBars( 0 ); }

@ -20,7 +20,7 @@
*/ */
#include "retrievedlg.h" #include "retrievedlg.h"
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlistbox.h> #include <tqlistbox.h>
#include <kbuttonbox.h> #include <kbuttonbox.h>
@ -37,33 +37,33 @@
#include <tqpushbutton.h> #include <tqpushbutton.h>
static void min_size(TQWidget *w) { static void min_size(TQWidget *w) {
w->setMinimumSize(w->tqsizeHint()); w->setMinimumSize(w->sizeHint());
} }
RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE) RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
{ {
setCaption(i18n("Retrieve Structure From Server")); setCaption(i18n("Retrieve Structure From Server"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..." // caption label: "Synthesis running..."
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this); TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font()); TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont); captionlabel->setFont(labelfont);
captionlabel->setText(TQString(" ")+i18n("Published structures")+TQString(" ")); captionlabel->setText(TQString(" ")+i18n("Published structures")+TQString(" "));
captionlabel->tqsetAlignment(AlignCenter); captionlabel->setAlignment(AlignCenter);
min_size(captionlabel); min_size(captionlabel);
maintqlayout->addWidget(captionlabel); mainlayout->addWidget(captionlabel);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// listwidget // listwidget
@ -85,23 +85,23 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
listbox->insertItem((*ni).c_str()); listbox->insertItem((*ni).c_str());
#endif #endif
maintqlayout->addWidget(listbox); mainlayout->addWidget(listbox);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -113,12 +113,12 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) ); connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->tqlayout(); bbox->layout();
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
maintqlayout->freeze(); mainlayout->freeze();
} }
TQString RetrieveDlg::result() TQString RetrieveDlg::result()

@ -29,7 +29,7 @@
#include <tqlabel.h> #include <tqlabel.h>
#include <tqscrollbar.h> #include <tqscrollbar.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlistbox.h> #include <tqlistbox.h>
#include <string> #include <string>

@ -22,7 +22,7 @@
#include "structureport.h" #include "structureport.h"
#include "drawutils.h" #include "drawutils.h"
#include <tqpainter.h> #include <tqpainter.h>
#include <tqpalette.h> #include <palette.h>
#include <tqdrawutil.h> #include <tqdrawutil.h>
#include <tqbitmap.h> #include <tqbitmap.h>
#include <assert.h> #include <assert.h>

@ -89,7 +89,7 @@ module Arts {
attribute long midlinewidth; attribute long midlinewidth;
attribute long framestyle; attribute long framestyle;
attribute Shape frametqshape; attribute Shape frameshape;
attribute Shadow frameshadow; attribute Shadow frameshadow;
}; };
@ -126,7 +126,7 @@ module Arts {
interface LayoutBox : Frame { interface LayoutBox : Frame {
/// Sets the direction of the widgets. Can be changed on-the-fly. /// Sets the direction of the widgets. Can be changed on-the-fly.
attribute Direction direction; attribute Direction direction;
/// Adds a widget with the stretch-factor and the tqalignment. /// Adds a widget with the stretch-factor and the alignment.
void addWidget( Widget widget, long stretch, long align ); void addWidget( Widget widget, long stretch, long align );
void addWidget( Widget widget, long stretch ); void addWidget( Widget widget, long stretch );
void addWidget( Widget widget ); void addWidget( Widget widget );
@ -256,7 +256,7 @@ module Arts {
interface Label : Frame { interface Label : Frame {
/// The text to show. /// The text to show.
attribute string text; attribute string text;
/// The tqalignment of the text. See enum Align /// The alignment of the text. See enum Align
attribute long align; attribute long align;
/// Fontsize [pixel] /// Fontsize [pixel]
/*writeonly*/ attribute long fontsize; /*writeonly*/ attribute long fontsize;

@ -24,25 +24,25 @@
#include "kartswidget.h" #include "kartswidget.h"
#include "kwidgetrepo.h" #include "kwidgetrepo.h"
#include "debug.h" #include "debug.h"
#include "tqlayout.h" #include "layout.h"
class KArtsWidgetPrivate { class KArtsWidgetPrivate {
public: public:
TQHBoxLayout *tqlayout; TQHBoxLayout *layout;
}; };
KArtsWidget::KArtsWidget( TQWidget* parent, const char* name ) KArtsWidget::KArtsWidget( TQWidget* parent, const char* name )
:TQWidget( parent, name ), _content( Arts::Widget::null() ) :TQWidget( parent, name ), _content( Arts::Widget::null() )
{ {
d = new KArtsWidgetPrivate; d = new KArtsWidgetPrivate;
d->tqlayout = new TQHBoxLayout(this); d->layout = new TQHBoxLayout(this);
} }
KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* parent, const char* name ) KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* parent, const char* name )
:TQWidget( parent, name ), _content( Arts::Widget::null()) :TQWidget( parent, name ), _content( Arts::Widget::null())
{ {
d = new KArtsWidgetPrivate; d = new KArtsWidgetPrivate;
d->tqlayout = new TQHBoxLayout(this); d->layout = new TQHBoxLayout(this);
setContent(content); setContent(content);
} }
@ -50,7 +50,7 @@ KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* parent, const char* na
:TQWidget( parent, name, wflags ), _content( Arts::Widget::null() ) :TQWidget( parent, name, wflags ), _content( Arts::Widget::null() )
{ {
d = new KArtsWidgetPrivate; d = new KArtsWidgetPrivate;
d->tqlayout = new TQHBoxLayout( this ); d->layout = new TQHBoxLayout( this );
setContent( content ); setContent( content );
} }
@ -58,7 +58,7 @@ KArtsWidget::KArtsWidget(TQWidget* parent, const char* name, WFlags wflags )
:TQWidget(parent, name, wflags ), _content(Arts::Widget::null()) :TQWidget(parent, name, wflags ), _content(Arts::Widget::null())
{ {
d = new KArtsWidgetPrivate; d = new KArtsWidgetPrivate;
d->tqlayout = new TQHBoxLayout(this); d->layout = new TQHBoxLayout(this);
} }
KArtsWidget::~KArtsWidget() KArtsWidget::~KArtsWidget()
@ -80,7 +80,7 @@ void KArtsWidget::setContent(Arts::Widget content)
_content = content; _content = content;
contentAsWidget->reparent(this,TQPoint(0,0),content.visible()); contentAsWidget->reparent(this,TQPoint(0,0),content.visible());
d->tqlayout->addWidget(contentAsWidget); d->layout->addWidget(contentAsWidget);
} }
Arts::Widget KArtsWidget::content() Arts::Widget KArtsWidget::content()

@ -32,12 +32,12 @@ class KArtsWidgetPrivate;
/** /**
* KArtsWidget provides a simple way to treat Arts::Widget classes like * KArtsWidget provides a simple way to treat Arts::Widget classes like
* native TQt widgets. Suppose you use TQt, and want to put an Arts::Widget * native TQt widgets. Suppose you use TQt, and want to put an Arts::Widget
* type into a tqlayout, you can do so using this code * type into a layout, you can do so using this code
* *
* <pre> * <pre>
* Arts::Widget widget = ...get widget from somewhere...; * Arts::Widget widget = ...get widget from somewhere...;
* KArtsWidget *w = new KArtsWidget(widget, this); * KArtsWidget *w = new KArtsWidget(widget, this);
* tqlayout->addWidget(w); * layout->addWidget(w);
* </pre> * </pre>
* *
* In line 2 of the code, the "this" is the parent widget (which is usually * In line 2 of the code, the "this" is the parent widget (which is usually

@ -73,12 +73,12 @@ void KFrame_impl::framestyle( long fs )
_qframe->setFrameStyle( fs ); _qframe->setFrameStyle( fs );
} }
Shape KFrame_impl::frametqshape() Shape KFrame_impl::frameshape()
{ {
return ( Shape )_qframe->frameShape(); return ( Shape )_qframe->frameShape();
} }
void KFrame_impl::frametqshape( Shape fs ) void KFrame_impl::frameshape( Shape fs )
{ {
_qframe->setFrameShape( ( TQFrame::Shape )fs ); _qframe->setFrameShape( ( TQFrame::Shape )fs );
} }

@ -44,8 +44,8 @@ class KDE_EXPORT KFrame_impl : virtual public Arts::Frame_skel,
void midlinewidth( long mlw ); void midlinewidth( long mlw );
long framestyle(); long framestyle();
void framestyle( long fs ); void framestyle( long fs );
Shape frametqshape(); Shape frameshape();
void frametqshape( Shape fs ); void frameshape( Shape fs );
Shadow frameshadow(); Shadow frameshadow();
void frameshadow( Shadow fs ); void frameshadow( Shadow fs );
}; //class }; //class

@ -52,7 +52,7 @@ void KGraph::addLine(Arts::KGraphLine_impl *line)
void KGraph::redrawLine(Arts::KGraphLine_impl * /*line*/) void KGraph::redrawLine(Arts::KGraphLine_impl * /*line*/)
{ {
tqrepaint(); repaint();
} }
void KGraph::removeLine(Arts::KGraphLine_impl *line) void KGraph::removeLine(Arts::KGraphLine_impl *line)

@ -92,13 +92,13 @@ void RotateLabel::title( TQString n ) {
void RotateLabel::align( long n ) { void RotateLabel::align( long n ) {
_align=n; _align=n;
tqrepaint(); repaint();
} }
void RotateLabel::bottom( Arts::TextBottom bottom ) { void RotateLabel::bottom( Arts::TextBottom bottom ) {
_bottom = bottom; _bottom = bottom;
title( _title ); title( _title );
tqrepaint(); repaint();
} }
// vim: sw=4 ts=4 // vim: sw=4 ts=4

@ -21,7 +21,7 @@
#include "klayoutbox_impl.h" #include "klayoutbox_impl.h"
#include <tqframe.h> #include <tqframe.h>
#include <tqlayout.h> #include <layout.h>
#include <kdebug.h> #include <kdebug.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqstyle.h> #include <tqstyle.h>
@ -85,11 +85,11 @@ void KLayoutBox_Separator::paintEvent( TQPaintEvent* ) {
TQPainter p( this ); TQPainter p( this );
TQStyle::SFlags flags = TQStyle::Style_Default; TQStyle::SFlags flags = TQStyle::Style_Default;
if ( width() < height() ) flags |= TQStyle::Style_Horizontal; if ( width() < height() ) flags |= TQStyle::Style_Horizontal;
tqstyle().tqdrawPrimitive( TQStyle::PE_Splitter, &p, rect(), tqcolorGroup(), flags ); tqstyle().tqdrawPrimitive( TQStyle::PE_Splitter, &p, rect(), colorGroup(), flags );
} }
TQSize KLayoutBox_Separator::tqminimumSizeHint() const { TQSize KLayoutBox_Separator::minimumSizeHint() const {
int wh = tqstyle().tqpixelMetric( TQStyle::PM_SplitterWidth, this ); int wh = tqstyle().pixelMetric( TQStyle::PM_SplitterWidth, this );
return TQSize( wh, wh ); return TQSize( wh, wh );
} }
@ -105,12 +105,12 @@ KLayoutBox_Line::KLayoutBox_Line( int width, int space, TQWidget* p, const char*
void KLayoutBox_Line::paintEvent( TQPaintEvent* ) { void KLayoutBox_Line::paintEvent( TQPaintEvent* ) {
//kdDebug() << k_funcinfo << size() << endl; //kdDebug() << k_funcinfo << size() << endl;
TQPainter p( this ); TQPainter p( this );
p.setPen( TQPen( tqcolorGroup().foreground(), _width ) ); p.setPen( TQPen( colorGroup().foreground(), _width ) );
if ( width() > height() ) p.drawLine( 0, height()/2, width(), height()/2 ); if ( width() > height() ) p.drawLine( 0, height()/2, width(), height()/2 );
else p.drawLine( width()/2, 0, width()/2, height() ); else p.drawLine( width()/2, 0, width()/2, height() );
} }
TQSize KLayoutBox_Line::tqminimumSizeHint() const { TQSize KLayoutBox_Line::minimumSizeHint() const {
//kdDebug() << k_funcinfo << size() << endl; //kdDebug() << k_funcinfo << size() << endl;
int wh = _width + 2* _space; int wh = _width + 2* _space;
return TQSize( wh, wh ); return TQSize( wh, wh );

@ -85,7 +85,7 @@ public:
KLayoutBox_Separator( TQWidget*, const char* =0 ); KLayoutBox_Separator( TQWidget*, const char* =0 );
void resizeEvent( TQResizeEvent* ); void resizeEvent( TQResizeEvent* );
void paintEvent( TQPaintEvent* ); void paintEvent( TQPaintEvent* );
TQSize tqminimumSizeHint() const; TQSize minimumSizeHint() const;
}; };
class KLayoutBox_Line : public TQWidget { class KLayoutBox_Line : public TQWidget {
@ -96,7 +96,7 @@ private:
public: public:
KLayoutBox_Line( int, int, TQWidget*, const char* =0 ); KLayoutBox_Line( int, int, TQWidget*, const char* =0 );
void paintEvent( TQPaintEvent* ); void paintEvent( TQPaintEvent* );
TQSize tqminimumSizeHint() const; TQSize minimumSizeHint() const;
}; };
#endif #endif

@ -91,7 +91,7 @@ void KLevelMeter_FireBars::invalue( float n, float p ) {
_bar->setGeometry( int( this->width()-_value*this->width() ), 0, this->width(), this->height() ); _bar->setGeometry( int( this->width()-_value*this->width() ), 0, this->width(), this->height() );
break; break;
} }
tqrepaint(); repaint();
} }
void KLevelMeter_FireBars::paintEvent( TQPaintEvent* ) { void KLevelMeter_FireBars::paintEvent( TQPaintEvent* ) {

@ -25,7 +25,7 @@
#include <tqframe.h> #include <tqframe.h>
#include <kdebug.h> #include <kdebug.h>
#include <tqlayout.h> #include <layout.h>
#include <kartswidget.h> #include <kartswidget.h>
#include "klevelmeter_private.h" #include "klevelmeter_private.h"

@ -31,14 +31,14 @@ KLevelMeter_LineBars::KLevelMeter_LineBars( Arts::KLevelMeter_impl* impl, TQWidg
//kdDebug()<<"KLevelMeter_LineBars::KLevelMeter_LineBars( Arts::KLevelMeter_impl* "<<impl<<", TQWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", Arts::Direction "<<dir<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl; //kdDebug()<<"KLevelMeter_LineBars::KLevelMeter_LineBars( Arts::KLevelMeter_impl* "<<impl<<", TQWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", Arts::Direction "<<dir<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
this->setMinimumSize( 5, 5 ); this->setMinimumSize( 5, 5 );
this->substyle( substyle ); this->substyle( substyle );
_stdcolors = tqcolorGroup(); _stdcolors = colorGroup();
setBackgroundMode( TQt::NoBackground ); setBackgroundMode( TQt::NoBackground );
} }
void KLevelMeter_LineBars::invalue( float n, float p ) { void KLevelMeter_LineBars::invalue( float n, float p ) {
_value = amptondb( n ); _value = amptondb( n );
_peak = amptondb( p ); _peak = amptondb( p );
tqrepaint(); repaint();
} }
void KLevelMeter_LineBars::substyle( long n ) { void KLevelMeter_LineBars::substyle( long n ) {

@ -22,7 +22,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqlayout.h> #include <layout.h>
KLevelMeter_NormalBars::KLevelMeter_NormalBars( Arts::KLevelMeter_impl* impl, TQWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) { KLevelMeter_NormalBars::KLevelMeter_NormalBars( Arts::KLevelMeter_impl* impl, TQWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) {
//kdDebug()<<"KLevelMeter_NormalBars::KLevelMeter_NormalBars( Arts::KLevelMeter_impl* "<<impl<<", TQWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl; //kdDebug()<<"KLevelMeter_NormalBars::KLevelMeter_NormalBars( Arts::KLevelMeter_impl* "<<impl<<", TQWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;

@ -22,7 +22,7 @@
#include "kpopupbox_impl.h" #include "kpopupbox_impl.h"
#include "kpopupbox_private.h" #include "kpopupbox_private.h"
#include <tqlayout.h> #include <layout.h>
using namespace Arts; using namespace Arts;
@ -60,8 +60,8 @@ KPopupBox_widget::KPopupBox_widget( TQWidget *parent, const char* name ) : TQFra
this->setMargin( 1 ); this->setLineWidth( 1 ); this->setMargin( 1 ); this->setLineWidth( 1 );
_titlebar = new TQFrame( this ); _titlebar = new TQFrame( this );
_titlebartqlayout = new TQBoxLayout( _titlebar, TQBoxLayout::BottomToTop ); _titlebarlayout = new TQBoxLayout( _titlebar, TQBoxLayout::BottomToTop );
_titlebartqlayout->setAutoAdd( true ); _titlebarlayout->setAutoAdd( true );
_showbutton = new ShowButton( _titlebar ); _showbutton = new ShowButton( _titlebar );
connect( _showbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( hide( bool ) ) ); connect( _showbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( hide( bool ) ) );
@ -90,13 +90,13 @@ void KPopupBox_widget::direction( Arts::Direction n ) {
switch( n ) { switch( n ) {
case LeftToRight: case LeftToRight:
case RightToLeft: case RightToLeft:
_titlebartqlayout->setDirection( TQBoxLayout::BottomToTop ); _titlebarlayout->setDirection( TQBoxLayout::BottomToTop );
_drag->setMinimumHeight( 30 ); _drag->setMinimumHeight( 30 );
_drag->setMinimumWidth( 0 ); _drag->setMinimumWidth( 0 );
break; break;
case TopToBottom: case TopToBottom:
case BottomToTop: case BottomToTop:
_titlebartqlayout->setDirection( TQBoxLayout::RightToLeft ); _titlebarlayout->setDirection( TQBoxLayout::RightToLeft );
_drag->setMinimumHeight( 0 ); _drag->setMinimumHeight( 0 );
_drag->setMinimumWidth( 30 ); _drag->setMinimumWidth( 30 );
} }

@ -54,7 +54,7 @@ private:
TQBoxLayout *_layout; TQBoxLayout *_layout;
TQFrame *_titlebar; TQFrame *_titlebar;
TQBoxLayout *_titlebartqlayout; TQBoxLayout *_titlebarlayout;
HandleDrag *_drag; HandleDrag *_drag;
ShowButton *_showbutton; ShowButton *_showbutton;
OwnButton *_ownbutton; OwnButton *_ownbutton;
@ -88,7 +88,7 @@ public:
TQPainter p( this ); TQPainter p( this );
TQStyle::SFlags flags = TQStyle::Style_Default; TQStyle::SFlags flags = TQStyle::Style_Default;
if( width() < height() ) flags |= TQStyle::Style_Horizontal; if( width() < height() ) flags |= TQStyle::Style_Horizontal;
tqstyle().tqdrawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), tqcolorGroup(), flags ); tqstyle().tqdrawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags );
} }
signals: signals:
void clicked(); void clicked();
@ -107,7 +107,7 @@ static const char* const inside_xpm[] = { "5 5 2 1", "# c black", ". c None", "#
static const char* const own_xpm[] = { "5 5 2 1", "# c black", ". c None", "###..", "#.###", "###.#", ".#..#", ".####"}; static const char* const own_xpm[] = { "5 5 2 1", "# c black", ". c None", "###..", "#.###", "###.#", ".#..#", ".####"};
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqlayout.h> #include <layout.h>
class ShowButton : public TQPushButton { class ShowButton : public TQPushButton {
Q_OBJECT Q_OBJECT
@ -151,17 +151,17 @@ public slots:
} }
} }
public: public:
TQSize tqminimumSizeHint() const { TQSize minimumSizeHint() const {
int wh = tqstyle().tqpixelMetric( TQStyle::PM_DockWindowHandleExtent, this ); int wh = tqstyle().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
return TQSize( wh, wh ); return TQSize( wh, wh );
} }
TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); } TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); }
TQSize tqminimumSize() const { return tqminimumSizeHint(); } TQSize minimumSize() const { return minimumSizeHint(); }
TQSize tqsizeHint() const { return tqminimumSize(); } TQSize sizeHint() const { return minimumSize(); }
void drawButton( TQPainter * p ) void drawButton( TQPainter * p )
{ {
p->fillRect( 0,0, width(), height(), TQBrush( tqcolorGroup().brush( TQColorGroup::Background ) ) ); p->fillRect( 0,0, width(), height(), TQBrush( colorGroup().brush( TQColorGroup::Background ) ) );
p->drawPixmap( ( width() - pixmap()->width() ) / 2, ( height() - pixmap()->height() ) / 2, *pixmap() ); p->drawPixmap( ( width() - pixmap()->width() ) / 2, ( height() - pixmap()->height() ) / 2, *pixmap() );
} }
}; };
@ -187,17 +187,17 @@ public slots:
else setPixmap( _pmown ); else setPixmap( _pmown );
} }
public: public:
TQSize tqminimumSizeHint() const { TQSize minimumSizeHint() const {
int wh = tqstyle().tqpixelMetric( TQStyle::PM_DockWindowHandleExtent, this ); int wh = tqstyle().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
return TQSize( wh, wh ); return TQSize( wh, wh );
} }
TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); } TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); }
TQSize tqminimumSize() const { return tqminimumSizeHint(); } TQSize minimumSize() const { return minimumSizeHint(); }
TQSize tqsizeHint() const { return tqminimumSize(); } TQSize sizeHint() const { return minimumSize(); }
void drawButton( TQPainter * p ) void drawButton( TQPainter * p )
{ {
p->fillRect( 0,0, width(), height(), TQBrush( tqcolorGroup().brush( TQColorGroup::Background ) ) ); p->fillRect( 0,0, width(), height(), TQBrush( colorGroup().brush( TQColorGroup::Background ) ) );
p->drawPixmap( ( width() - pixmap()->width() ) / 2, ( height() - pixmap()->height() ) / 2, *pixmap() ); p->drawPixmap( ( width() - pixmap()->width() ) / 2, ( height() - pixmap()->height() ) / 2, *pixmap() );
} }
}; };

@ -53,7 +53,7 @@ struct KPoti::KPotiPrivate
bool bgDirty; bool bgDirty;
KPixmap bgdb; KPixmap bgdb;
KPixmap bgPixmap( const TQColorGroup & tqcolorGroup ) KPixmap bgPixmap( const TQColorGroup & colorGroup )
{ {
if( bgDirty || bgdb.isNull() ) if( bgDirty || bgdb.isNull() )
{ {
@ -73,8 +73,8 @@ struct KPoti::KPotiPrivate
// inset shadow // inset shadow
KPixmap gradient( bgdb.size() ); KPixmap gradient( bgdb.size() );
KPixmapEffect::gradient( gradient, tqcolorGroup.light(), tqcolorGroup.dark(), KPixmapEffect::DiagonalGradient ); KPixmapEffect::gradient( gradient, colorGroup.light(), colorGroup.dark(), KPixmapEffect::DiagonalGradient );
dbp.setBrush( TQBrush( tqcolorGroup.button(), gradient ) ); dbp.setBrush( TQBrush( colorGroup.button(), gradient ) );
dbp.drawEllipse( drawRect ); dbp.drawEllipse( drawRect );
potiRect.setSize( drawRect.size() * 0.9 ); potiRect.setSize( drawRect.size() * 0.9 );
@ -133,12 +133,12 @@ TQSizePolicy KPoti::sizePolicy() const
return TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Preferred ); return TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Preferred );
} }
TQSize KPoti::tqsizeHint() const TQSize KPoti::sizeHint() const
{ {
return tqminimumSizeHint(); return minimumSizeHint();
} }
TQSize KPoti::tqminimumSizeHint() const TQSize KPoti::minimumSizeHint() const
{ {
int width = 40; int width = 40;
int height = 40; int height = 40;
@ -162,7 +162,7 @@ TQString KPoti::text() const
void KPoti::setText( const TQString & text ) void KPoti::setText( const TQString & text )
{ {
d->label = text; d->label = text;
setMinimumSize( tqminimumSizeHint() ); setMinimumSize( minimumSizeHint() );
updateGeometry(); updateGeometry();
} }
@ -392,7 +392,7 @@ void KPoti::setColor( const TQColor &c )
{ {
d->potiColor = c; d->potiColor = c;
d->potiDirty = true; d->potiDirty = true;
tqrepaint(); repaint();
} }
@ -408,8 +408,8 @@ void KPoti::paintPoti( TQPainter * p )
p2.translate( db.rect().center().x(), db.rect().center().y() ); p2.translate( db.rect().center().x(), db.rect().center().y() );
p2.rotate( potiPos * 180.0 / PI ); p2.rotate( potiPos * 180.0 / PI );
TQRect pointer( db.width() / -20, db.width() / -2, db.width() / 10, db.width() / 2 ); TQRect pointer( db.width() / -20, db.width() / -2, db.width() / 10, db.width() / 2 );
TQBrush buttonbrush( tqcolorGroup().button() ); TQBrush buttonbrush( colorGroup().button() );
qDrawShadePanel( &p2, pointer, tqcolorGroup(), true, 1, &buttonbrush ); qDrawShadePanel( &p2, pointer, colorGroup(), true, 1, &buttonbrush );
p2.end(); p2.end();
p->drawPixmap( d->potiRect, db ); p->drawPixmap( d->potiRect, db );
@ -440,7 +440,7 @@ void KPoti::reallyMovePoti( float newPos )
void KPoti::drawContents( TQPainter * p ) void KPoti::drawContents( TQPainter * p )
{ {
TQPixmap doublebuffer( contentsRect().size() ); TQPixmap doublebuffer( contentsRect().size() );
doublebuffer.fill( tqcolorGroup().background() ); doublebuffer.fill( colorGroup().background() );
TQPainter dbp( &doublebuffer ); TQPainter dbp( &doublebuffer );
if( m_bLabel ) if( m_bLabel )
{ {
@ -455,10 +455,10 @@ void KPoti::drawContents( TQPainter * p )
if( ticks ) if( ticks )
drawTicks( &dbp, buttonRadius, tickLength, interval ); drawTicks( &dbp, buttonRadius, tickLength, interval );
dbp.drawPixmap( d->buttonRect, d->bgPixmap( tqcolorGroup() ) ); dbp.drawPixmap( d->buttonRect, d->bgPixmap( colorGroup() ) );
if( hasFocus() ) if( hasFocus() )
tqstyle().tqdrawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, tqcolorGroup() ); tqstyle().tqdrawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, colorGroup() );
paintPoti( &dbp ); paintPoti( &dbp );
dbp.end(); dbp.end();
@ -711,7 +711,7 @@ void KPoti::repeatTimeout()
void KPoti::drawTicks( TQPainter *p, double dist, double w, int i ) const void KPoti::drawTicks( TQPainter *p, double dist, double w, int i ) const
{ {
p->setPen( tqcolorGroup().foreground() ); p->setPen( colorGroup().foreground() );
double angle,s,c; double angle,s,c;
double x, y; double x, y;
for (int v=0; v<=i; v++) for (int v=0; v<=i; v++)

@ -53,8 +53,8 @@ public:
int tickInterval() const { return tickInt; } int tickInterval() const { return tickInt; }
virtual TQSizePolicy sizePolicy() const; virtual TQSizePolicy sizePolicy() const;
virtual TQSize tqsizeHint() const; virtual TQSize sizeHint() const;
virtual TQSize tqminimumSizeHint() const; virtual TQSize minimumSizeHint() const;
TQString text() const; TQString text() const;
public slots: public slots:

@ -75,8 +75,8 @@ void KTickmarks_Widget::drawContents( TQPainter* p ) {
int _minsize; int _minsize;
// Shorcuts // Shorcuts
int w,h; int w,h;
TQColor colornormal = tqcolorGroup().foreground(); TQColor colornormal = colorGroup().foreground();
TQColor colordiff = tqcolorGroup().buttonText(); TQColor colordiff = colorGroup().buttonText();
if ( _dir == Arts::BottomToTop || _dir == Arts::TopToBottom ) { if ( _dir == Arts::BottomToTop || _dir == Arts::TopToBottom ) {
p->translate( contentsRect().left(), contentsRect().bottom() ); p->translate( contentsRect().left(), contentsRect().bottom() );

@ -159,10 +159,10 @@ void KVolumeFader_Widget::drawContents( TQPainter* p ){
if ( _dir==Arts::BottomToTop ) h = contentsRect().height() * ( 1 - _value ); if ( _dir==Arts::BottomToTop ) h = contentsRect().height() * ( 1 - _value );
else h = contentsRect().height() * _value; else h = contentsRect().height() * _value;
for ( int i=int( h ); i<contentsRect().height(); i++ ) { for ( int i=int( h ); i<contentsRect().height(); i++ ) {
p->setPen( interpolate( tqcolorGroup().light(), tqcolorGroup().highlight(), float( i )/contentsRect().height() ) ); p->setPen( interpolate( colorGroup().light(), colorGroup().highlight(), float( i )/contentsRect().height() ) );
p->drawLine( contentsRect().left(), this->frameWidth() + i, contentsRect().right(), this->frameWidth() + i ); p->drawLine( contentsRect().left(), this->frameWidth() + i, contentsRect().right(), this->frameWidth() + i );
} }
p->setPen( tqcolorGroup().dark() ); p->setPen( colorGroup().dark() );
p->drawLine( contentsRect().left(), this->frameWidth() + int( h ), contentsRect().right(), this->frameWidth() + int( h ) ); p->drawLine( contentsRect().left(), this->frameWidth() + int( h ), contentsRect().right(), this->frameWidth() + int( h ) );
} else { } else {
float w; float w;
@ -170,10 +170,10 @@ void KVolumeFader_Widget::drawContents( TQPainter* p ){
if ( _dir==Arts::LeftToRight ) w = - contentsRect().width() * ( 1 - _value ); if ( _dir==Arts::LeftToRight ) w = - contentsRect().width() * ( 1 - _value );
else w = - contentsRect().width() * _value; else w = - contentsRect().width() * _value;
for ( int i=int( w ); i>=-contentsRect().width(); i-- ) { for ( int i=int( w ); i>=-contentsRect().width(); i-- ) {
p->setPen( interpolate( tqcolorGroup().light(), tqcolorGroup().highlight(), float( -i )/contentsRect().width() ) ); p->setPen( interpolate( colorGroup().light(), colorGroup().highlight(), float( -i )/contentsRect().width() ) );
p->drawLine( this->frameWidth() + i, contentsRect().top(), this->frameWidth() + i, contentsRect().bottom() ); p->drawLine( this->frameWidth() + i, contentsRect().top(), this->frameWidth() + i, contentsRect().bottom() );
} }
p->setPen( tqcolorGroup().dark() ); p->setPen( colorGroup().dark() );
p->drawLine( this->frameWidth() + int( w ), contentsRect().top(), this->frameWidth() + int( w ), contentsRect().bottom() ); p->drawLine( this->frameWidth() + int( w ), contentsRect().top(), this->frameWidth() + int( w ), contentsRect().bottom() );
} }
} }

@ -143,26 +143,26 @@ void KWidget_impl::visible(bool newVisible)
SizePolicy KWidget_impl::hSizePolicy() SizePolicy KWidget_impl::hSizePolicy()
{ {
return ( SizePolicy )_qwidget->tqsizePolicy().horData(); return ( SizePolicy )_qwidget->sizePolicy().horData();
} }
void KWidget_impl::hSizePolicy( SizePolicy p ) void KWidget_impl::hSizePolicy( SizePolicy p )
{ {
TQSizePolicy sp = _qwidget->tqsizePolicy(); TQSizePolicy sp = _qwidget->sizePolicy();
sp.setHorData( ( TQSizePolicy::SizeType )p ); sp.setHorData( ( TQSizePolicy::SizeType )p );
_qwidget->tqsetSizePolicy( sp ); _qwidget->setSizePolicy( sp );
} }
SizePolicy KWidget_impl::vSizePolicy() SizePolicy KWidget_impl::vSizePolicy()
{ {
return ( SizePolicy )_qwidget->tqsizePolicy().verData(); return ( SizePolicy )_qwidget->sizePolicy().verData();
} }
void KWidget_impl::vSizePolicy( SizePolicy p ) void KWidget_impl::vSizePolicy( SizePolicy p )
{ {
TQSizePolicy sp = _qwidget->tqsizePolicy(); TQSizePolicy sp = _qwidget->sizePolicy();
sp.setVerData( ( TQSizePolicy::SizeType )p ); sp.setVerData( ( TQSizePolicy::SizeType )p );
_qwidget->tqsetSizePolicy( sp ); _qwidget->setSizePolicy( sp );
} }
void KWidget_impl::show() void KWidget_impl::show()

@ -54,7 +54,7 @@ struct TimeStamp {
/** /**
* different status of a midi command * different status of a midi command
*/ */
enum MidiCommandtqStatus { enum MidiCommandStatus {
// Masks: // Masks:
mcsCommandMask = 0xf0, mcsCommandMask = 0xf0,
mcsChannelMask = 0x0f, mcsChannelMask = 0x0f,

@ -49,7 +49,7 @@ public:
if(newName != _name) if(newName != _name)
{ {
_name = newName; _name = newName;
amClient.title(i18n("Mixer (\"%1\")").tqarg(TQString::fromUtf8(_name.c_str())).utf8().data()); amClient.title(i18n("Mixer (\"%1\")").arg(TQString::fromUtf8(_name.c_str())).utf8().data());
amClient.autoRestoreID("mixer_"+_name); amClient.autoRestoreID("mixer_"+_name);
for(unsigned int i = 0; i < _inputs.size(); i++) for(unsigned int i = 0; i < _inputs.size(); i++)
_inputs[i].busname(channelName(i)); _inputs[i].busname(channelName(i));

@ -42,7 +42,7 @@ module Arts {
* isMultiPort specifies if the port can take multiple incoming * isMultiPort specifies if the port can take multiple incoming
* connections or not. This is only relevant/allowed for input ports, * connections or not. This is only relevant/allowed for input ports,
* the output of all output ports may be connected to any amount of * the output of all output ports may be connected to any amount of
* tqreceivers. * receivers.
* *
* Ports which can take multiple connections are handled differently * Ports which can take multiple connections are handled differently
* internally. (Also, artsbuilder needs to know whether to allow multi- * internally. (Also, artsbuilder needs to know whether to allow multi-

@ -48,20 +48,20 @@ ArtsControlApplet::ArtsControlApplet(const TQString& configFile, Type type, int
if( !p->barts ) KMessageBox::information(0, i18n("Something with the ArtsServer went wrong. You probably need to restart aRts and then reload this applet.")); 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); setCustomMenu(p->menu);
p->tqlayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight ); p->layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
p->tqlayout->setSpacing( 2 ); p->layout->setSpacing( 2 );
if( p->barts ) { if( p->barts ) {
p->vu = Arts::StereoVolumeControlGui( p->volume ); p->vu = Arts::StereoVolumeControlGui( p->volume );
p->vu.label().fontsize( 8 ); p->vu.label().fontsize( 8 );
p->vuw = new KArtsWidget( p->vu, this ); p->vuw = new KArtsWidget( p->vu, this );
p->vuw->setMinimumSize( 16,16 ); p->vuw->setMinimumSize( 16,16 );
p->tqlayout->addWidget( p->vuw ); p->layout->addWidget( p->vuw );
} }
p->tqlayout->activate(); p->layout->activate();
TQTimer::singleShot( 100, this, TQT_SLOT( supdatetqlayout() ) ); TQTimer::singleShot( 100, this, TQT_SLOT( supdatelayout() ) );
kdDebug()<<"ArtsControlApplet::ArtsControlApplet() finished."<<endl; kdDebug()<<"ArtsControlApplet::ArtsControlApplet() finished."<<endl;
} }
@ -93,12 +93,12 @@ kdDebug()<<k_funcinfo<<endl;
int ArtsControlApplet::widthForHeight( int h ) const { int ArtsControlApplet::widthForHeight( int h ) const {
kdDebug()<<"ArtsControlApplet::widthForHeight( int "<<h<<" )"<<endl; kdDebug()<<"ArtsControlApplet::widthForHeight( int "<<h<<" )"<<endl;
return p->tqlayout->tqsizeHint().width(); return p->layout->sizeHint().width();
} }
int ArtsControlApplet::heightForWidth( int w ) const { int ArtsControlApplet::heightForWidth( int w ) const {
kdDebug()<<"ArtsControlApplet::heightForWidth( int "<<w<<" )"<<endl; kdDebug()<<"ArtsControlApplet::heightForWidth( int "<<w<<" )"<<endl;
return p->tqlayout->tqsizeHint().height(); return p->layout->sizeHint().height();
} }
void ArtsControlApplet::resizeEvent( TQResizeEvent * /*_Event*/ ) { void ArtsControlApplet::resizeEvent( TQResizeEvent * /*_Event*/ ) {
@ -122,12 +122,12 @@ kdDebug()<<k_funcinfo<<" position()="<<position()<<endl;
{ {
case pTop: case pTop:
case pBottom: case pBottom:
p->tqlayout->setDirection( TQBoxLayout::LeftToRight ); p->layout->setDirection( TQBoxLayout::LeftToRight );
if ( p->barts ) p->vu.direction( Arts::LeftToRight ); if ( p->barts ) p->vu.direction( Arts::LeftToRight );
break; break;
case pRight: case pRight:
case pLeft: case pLeft:
p->tqlayout->setDirection( TQBoxLayout::TopToBottom ); p->layout->setDirection( TQBoxLayout::TopToBottom );
if ( p->barts ) p->vu.direction( Arts::TopToBottom ); if ( p->barts ) p->vu.direction( Arts::TopToBottom );
break; break;
default: break; default: break;
@ -140,23 +140,23 @@ kdDebug() << k_funcinfo << endl;
svinline = new FFTScopeView( arts->server(), _parent ); svinline = new FFTScopeView( arts->server(), _parent );
svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( TQFrame::Panel|TQFrame::Sunken ); svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( TQFrame::Panel|TQFrame::Sunken );
connect( svinline, TQT_SIGNAL( closed() ), this, TQT_SLOT( SVinline() ) ); connect( svinline, TQT_SIGNAL( closed() ), this, TQT_SLOT( SVinline() ) );
tqlayout->addWidget( svinline ); layout->addWidget( svinline );
} else { } else {
delete svinline; delete svinline;
svinline = 0; svinline = 0;
} }
_parent->supdatetqlayout(); _parent->supdatelayout();
} }
void ArtsControlAppletPrivate::moreBars() { vu.left().count( vu.left().count()+10 ); vu.right().count( vu.right().count()+10 ); } void ArtsControlAppletPrivate::moreBars() { vu.left().count( vu.left().count()+10 ); vu.right().count( vu.right().count()+10 ); }
void ArtsControlAppletPrivate::lessBars() { vu.left().count( vu.left().count()-10 ); vu.right().count( vu.right().count()-10 ); } void ArtsControlAppletPrivate::lessBars() { vu.left().count( vu.left().count()-10 ); vu.right().count( vu.right().count()-10 ); }
void ArtsControlAppletPrivate::styleNormalBars() { vu.left().style( Arts::lmNormalBars ); vu.right().style( Arts::lmNormalBars ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleNormalBars() { vu.left().style( Arts::lmNormalBars ); vu.right().style( Arts::lmNormalBars ); _parent->supdatelayout(); }
void ArtsControlAppletPrivate::styleFireBars() { vu.left().style( Arts::lmFireBars ); vu.right().style( Arts::lmFireBars ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleFireBars() { vu.left().style( Arts::lmFireBars ); vu.right().style( Arts::lmFireBars ); _parent->supdatelayout(); }
void ArtsControlAppletPrivate::styleLineBars() { vu.left().style( Arts::lmLineBars ); vu.right().style( Arts::lmLineBars ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleLineBars() { vu.left().style( Arts::lmLineBars ); vu.right().style( Arts::lmLineBars ); _parent->supdatelayout(); }
void ArtsControlAppletPrivate::styleLEDs() { vu.left().style( Arts::lmLEDs ); vu.right().style( Arts::lmLEDs ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleLEDs() { vu.left().style( Arts::lmLEDs ); vu.right().style( Arts::lmLEDs ); _parent->supdatelayout(); }
void ArtsControlAppletPrivate::styleAnalog() { vu.left().style( Arts::lmAnalog ); vu.right().style( Arts::lmAnalog ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleAnalog() { vu.left().style( Arts::lmAnalog ); vu.right().style( Arts::lmAnalog ); _parent->supdatelayout(); }
void ArtsControlAppletPrivate::styleSmall() { vu.left().style( Arts::lmSmall ); vu.right().style( Arts::lmSmall ); _parent->supdatetqlayout(); } void ArtsControlAppletPrivate::styleSmall() { vu.left().style( Arts::lmSmall ); vu.right().style( Arts::lmSmall ); _parent->supdatelayout(); }
// vim: sw=4 ts=4 // vim: sw=4 ts=4
#include "artscontrolapplet.moc" #include "artscontrolapplet.moc"

@ -120,7 +120,7 @@ protected:
void positionChange( Position ); void positionChange( Position );
public slots: public slots:
void supdatetqlayout() { emit updateLayout(); } void supdatelayout() { emit updateLayout(); }
protected slots: protected slots:
void resetLayout(); void resetLayout();

@ -22,7 +22,7 @@
#include <tqobject.h> #include <tqobject.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqslider.h> #include <tqslider.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
@ -52,7 +52,7 @@ private:
ArtsControlApplet *_parent; ArtsControlApplet *_parent;
ArtsActions* _artsactions; ArtsActions* _artsactions;
public: public:
TQBoxLayout *tqlayout; TQBoxLayout *layout;
KArtsServer *arts; KArtsServer *arts;
KArtsDispatcher *dispatcher; KArtsDispatcher *dispatcher;
Arts::StereoVolumeControl volume; Arts::StereoVolumeControl volume;
@ -63,7 +63,7 @@ public:
Arts::StereoVolumeControlGui vu; Arts::StereoVolumeControlGui vu;
KPopupMenu *menu; KPopupMenu *menu;
KAction *_showSV, *_showSVinline, *_showAM, *_showArtstqStatus, *_showMidiManager, *_showEnvironment, *_showMediaTypes, *_moreBars, *_lessBars; KAction *_showSV, *_showSVinline, *_showAM, *_showArtsStatus, *_showMidiManager, *_showEnvironment, *_showMediaTypes, *_moreBars, *_lessBars;
KAction *_styleNormalBars, *_styleFireBars, *_styleLineBars, *_styleLEDs, *_styleAnalog, *_styleSmall; KAction *_styleNormalBars, *_styleFireBars, *_styleLineBars, *_styleLEDs, *_styleAnalog, *_styleSmall;
ArtsControlAppletPrivate( ArtsControlApplet *parent ) ArtsControlAppletPrivate( ArtsControlApplet *parent )
@ -87,8 +87,8 @@ public:
_showSVinline->plug( menu ); _showSVinline->plug( menu );
_showAM = _artsactions->actionAudioManager(); _showAM = _artsactions->actionAudioManager();
_showAM->plug( menu ); _showAM->plug( menu );
_showArtstqStatus = _artsactions->actionArtsStatusView(); _showArtsStatus = _artsactions->actionArtsStatusView();
_showArtstqStatus->plug( menu ); _showArtsStatus->plug( menu );
_showMidiManager = _artsactions->actionMidiManagerView(); _showMidiManager = _artsactions->actionMidiManagerView();
_showMidiManager->plug( menu ); _showMidiManager->plug( menu );
_showEnvironment = _artsactions->actionEnvironmentView(); _showEnvironment = _artsactions->actionEnvironmentView();

@ -25,7 +25,7 @@
#include "choosebusdlg.h" #include "choosebusdlg.h"
#include <tqtimer.h> #include <tqtimer.h>
#include <tqlayout.h> #include <layout.h>
#include <klocale.h> #include <klocale.h>
#include <klistview.h> #include <klistview.h>
@ -72,13 +72,13 @@ void Gui_AUDIO_MANAGER::widgetDestroyed(TQWidget *widget)
} }
#endif #endif
void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*tqlayout*/) void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*layout*/)
{ {
/************************************************************************ /************************************************************************
* From Gui_INSTRUMENT_MAPPER: * From Gui_INSTRUMENT_MAPPER:
* *
* I am still not sure wether this kind of putting yourself into a parent * I am still not sure wether this kind of putting yourself into a parent
* widget (with own tqlayout etc.) is a good idea (there may not even be * widget (with own layout etc.) is a good idea (there may not even be
* a singe call to setParent, because there is no parent). * a singe call to setParent, because there is no parent).
* *
* But the "how to write aRts widgets"-stuff will need some experiments, * But the "how to write aRts widgets"-stuff will need some experiments,
@ -90,8 +90,8 @@ void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*tqlayout*/)
* else would be appropriate. Check that. FIXME * else would be appropriate. Check that. FIXME
************************************************************************/ ************************************************************************/
TQVBoxLayout *maintqlayout = new TQVBoxLayout(parent); TQVBoxLayout *mainlayout = new TQVBoxLayout(parent);
/*TQHBoxLayout *contentstqlayout = new TQHBoxLayout;*/ /*TQHBoxLayout *contentslayout = new TQHBoxLayout;*/
// list // list
@ -106,10 +106,10 @@ void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*tqlayout*/)
TQObject::connect(listview,TQT_SIGNAL(executed(TQListViewItem *)),proxy, TQObject::connect(listview,TQT_SIGNAL(executed(TQListViewItem *)),proxy,
TQT_SLOT(edit(TQListViewItem *))); TQT_SLOT(edit(TQListViewItem *)));
maintqlayout->addWidget(listview); mainlayout->addWidget(listview);
maintqlayout->activate(); mainlayout->activate();
//maintqlayout->freeze(); //mainlayout->freeze();
ParentWidget = parent; ParentWidget = parent;
} }

@ -51,7 +51,7 @@ public:
Gui_AUDIO_MANAGER( TQWidget* =0, const char* =0 ); Gui_AUDIO_MANAGER( TQWidget* =0, const char* =0 );
~Gui_AUDIO_MANAGER(); ~Gui_AUDIO_MANAGER();
void setParent(TQWidget *Parent,TQBoxLayout *tqlayout); void setParent(TQWidget *Parent,TQBoxLayout *layout);
void edit(TQListViewItem *item); void edit(TQListViewItem *item);
public slots: public slots:

@ -23,7 +23,7 @@
#include <artsflow.h> #include <artsflow.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlistbox.h> #include <tqlistbox.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
@ -39,7 +39,7 @@
using namespace std; using namespace std;
static void min_size(TQWidget *w) { static void min_size(TQWidget *w) {
w->setMinimumSize(w->tqsizeHint()); w->setMinimumSize(w->sizeHint());
} }
ChooseBusDlg::ChooseBusDlg(TQWidget *parent) ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
@ -48,27 +48,27 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
{ {
setCaption(i18n("Choose Bus")); setCaption(i18n("Choose Bus"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..." // caption label: "Synthesis running..."
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this); TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font()); TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont); captionlabel->setFont(labelfont);
captionlabel->setText(TQString(" ")+i18n("Available busses:")+TQString(" ")); captionlabel->setText(TQString(" ")+i18n("Available busses:")+TQString(" "));
captionlabel->tqsetAlignment(AlignCenter); captionlabel->setAlignment(AlignCenter);
min_size(captionlabel); min_size(captionlabel);
maintqlayout->addWidget(captionlabel); mainlayout->addWidget(captionlabel);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// listwidget // listwidget
@ -89,41 +89,41 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
if( listbox->count() > 0 ) if( listbox->count() > 0 )
listbox->setCurrentItem( 0 ); listbox->setCurrentItem( 0 );
maintqlayout->addWidget(listbox); mainlayout->addWidget(listbox);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// new bus lineedit // new bus lineedit
TQBoxLayout * tqlayout2 = new TQHBoxLayout( maintqlayout ); TQBoxLayout * layout2 = new TQHBoxLayout( mainlayout );
//maintqlayout->addLayout( tqlayout2 ); //mainlayout->addLayout( layout2 );
TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this ); TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this );
tqlayout2->addWidget( newbuslabel ); layout2->addWidget( newbuslabel );
lineedit = new KLineEdit( this ); lineedit = new KLineEdit( this );
connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) ); connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) );
tqlayout2->addWidget( lineedit ); layout2->addWidget( lineedit );
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler3 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler3 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler3); mainlayout->addWidget(ruler3);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// buttons // buttons
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQHBoxLayout *buttontqlayout = new TQHBoxLayout( maintqlayout ); TQHBoxLayout *buttonlayout = new TQHBoxLayout( mainlayout );
//maintqlayout->addLayout(buttontqlayout); //mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -136,12 +136,12 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel()); TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
bbox->tqlayout(); bbox->layout();
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
maintqlayout->freeze(); mainlayout->freeze();
} }
TQString ChooseBusDlg::result() TQString ChooseBusDlg::result()

@ -34,7 +34,7 @@
#include <fstream> #include <fstream>
#include <vector> #include <vector>
#include <tqlayout.h> #include <layout.h>
#define DEFAULT_ENV_FILENAME "~/default.arts-env" #define DEFAULT_ENV_FILENAME "~/default.arts-env"
@ -57,7 +57,7 @@ public:
printf("~ItemView()\n"); printf("~ItemView()\n");
} }
TQString text() const { TQString text() const {
return TQString::tqfromLatin1(item._interfaceName().c_str()); return TQString::fromLatin1(item._interfaceName().c_str());
} }
}; };
@ -84,11 +84,11 @@ EnvironmentView::EnvironmentView( Container container, TQWidget* parent, const c
connect(delButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(delItem())); connect(delButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(delItem()));
TQPushButton *loadButton = new TQPushButton *loadButton = new
TQPushButton(i18n("Load %1").tqarg(DEFAULT_ENV_FILENAME), this); TQPushButton(i18n("Load %1").arg(DEFAULT_ENV_FILENAME), this);
connect(loadButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(load())); connect(loadButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(load()));
TQPushButton *saveButton = new TQPushButton *saveButton = new
TQPushButton(i18n("Save %1").tqarg(DEFAULT_ENV_FILENAME), this); TQPushButton(i18n("Save %1").arg(DEFAULT_ENV_FILENAME), this);
connect(saveButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(save())); connect(saveButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(save()));
show(); show();
} }

@ -22,7 +22,7 @@
#include "fftscopeview.h" #include "fftscopeview.h"
#include <tqlayout.h> #include <layout.h>
#include <tqcursor.h> #include <tqcursor.h>
#include <tqtimer.h> #include <tqtimer.h>
#include <kaction.h> #include <kaction.h>

@ -1,4 +1,4 @@
#include <tqlayout.h> #include <layout.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqfontmetrics.h> #include <tqfontmetrics.h>
#include <tqptrlist.h> #include <tqptrlist.h>
@ -20,7 +20,7 @@ PeakBar::PeakBar(TQWidget *parent)
lastValues.setAutoDelete( TRUE ); lastValues.setAutoDelete( TRUE );
setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred)); setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
setBackgroundMode(NoBackground); setBackgroundMode(NoBackground);
setMinimumSize(frameWidth()+7, 70); setMinimumSize(frameWidth()+7, 70);
} }
@ -30,7 +30,7 @@ void PeakBar::frameChanged() {
TQFrame::frameChanged(); TQFrame::frameChanged();
} }
TQSize PeakBar::tqsizeHint() const { TQSize PeakBar::sizeHint() const {
return TQSize(13, 250); return TQSize(13, 250);
} }
@ -104,7 +104,7 @@ void PeakBar::setValue(float f) {
lastValues.append(new Observation(f)); lastValues.append(new Observation(f));
tqrepaint(); repaint();
} }
// ------------------------------------------------------------- // -------------------------------------------------------------
@ -112,17 +112,17 @@ void PeakBar::setValue(float f) {
PeakLevelMeters::PeakLevelMeters(TQWidget *parent): PeakLevelMeters::PeakLevelMeters(TQWidget *parent):
StereoLevelMeter(parent), left(this), right(this), scaleView(this) StereoLevelMeter(parent), left(this), right(this), scaleView(this)
{ {
TQBoxLayout *tqlayout= new TQHBoxLayout(this); TQBoxLayout *layout= new TQHBoxLayout(this);
tqlayout->addWidget(&left); layout->addWidget(&left);
// tqlayout->setStretchFactor(&left, 0); // layout->setStretchFactor(&left, 0);
tqlayout->addWidget(&right); layout->addWidget(&right);
// tqlayout->setStretchFactor(&right, 0); // layout->setStretchFactor(&right, 0);
tqlayout->addWidget(&scaleView); layout->addWidget(&scaleView);
// tqlayout->setStretchFactor(&scaleView, 0); // layout->setStretchFactor(&scaleView, 0);
left.setLineWidth(2); left.setLineWidth(2);
right.setLineWidth(2); right.setLineWidth(2);
scaleView.setScaleMargins(right.frameWidth()); scaleView.setScaleMargins(right.frameWidth());
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred)); setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
setDbRange(36); setDbRange(36);
} }
@ -144,15 +144,15 @@ void PeakLevelMeters::setValues(float leftVal, float rightVal) {
ScaleView::ScaleView(TQWidget *parent): TQFrame(parent) { ScaleView::ScaleView(TQWidget *parent): TQFrame(parent) {
font.setPixelSize(10); font.setPixelSize(10);
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred)); setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred));
} }
void ScaleView::setDbRange(int db) { void ScaleView::setDbRange(int db) {
dbRange= db; dbRange= db;
tqrepaint(); repaint();
} }
TQSize ScaleView::tqsizeHint() const { TQSize ScaleView::sizeHint() const {
return TQSize(TQFontMetrics(font).width("-88")+8, 250); return TQSize(TQFontMetrics(font).width("-88")+8, 250);
} }
@ -226,9 +226,9 @@ void LedMeter::setValue(float f)
StereoLedMeters::StereoLedMeters(TQWidget *parent) StereoLedMeters::StereoLedMeters(TQWidget *parent)
: StereoLevelMeter(parent), left(this), right(this) : StereoLevelMeter(parent), left(this), right(this)
{ {
TQBoxLayout *tqlayout= new TQHBoxLayout(this); TQBoxLayout *layout= new TQHBoxLayout(this);
tqlayout->addWidget(&left); layout->addWidget(&left);
tqlayout->addWidget(&right); layout->addWidget(&right);
} }
void StereoLedMeters::setValues(float leftVal, float rightVal) { void StereoLedMeters::setValues(float leftVal, float rightVal) {

@ -94,7 +94,7 @@ protected:
public: public:
PeakBar(TQWidget *parent); PeakBar(TQWidget *parent);
TQSize tqsizeHint() const; TQSize sizeHint() const;
void drawContents(TQPainter *p); void drawContents(TQPainter *p);
virtual void setValue(float f); virtual void setValue(float f);
@ -114,7 +114,7 @@ public:
ScaleView(TQWidget *parent); ScaleView(TQWidget *parent);
void setDbRange(int db); void setDbRange(int db);
void setScaleMargins(int margins) { upperMargin= margins; lowerMargin=margins; } void setScaleMargins(int margins) { upperMargin= margins; lowerMargin=margins; }
TQSize tqsizeHint() const; TQSize sizeHint() const;
void drawContents(TQPainter *p); void drawContents(TQPainter *p);
}; };

@ -32,7 +32,7 @@
#include <kaboutdata.h> #include <kaboutdata.h>
#include <klocale.h> #include <klocale.h>
#include <kstdaction.h> #include <kstdaction.h>
#include <tqlayout.h> #include <layout.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <artsflow.h> #include <artsflow.h>
#include <soundserver.h> #include <soundserver.h>

@ -21,7 +21,7 @@
*/ */
#include <tqlayout.h> #include <layout.h>
#include <klistview.h> #include <klistview.h>
#include <klocale.h> #include <klocale.h>
#include <kartsserver.h> #include <kartsserver.h>

@ -24,7 +24,7 @@
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kapplication.h> #include <kapplication.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqdir.h> #include <tqdir.h>
@ -66,26 +66,26 @@ static TQStringList listFiles(TQString directory, TQString extension)
MidiInstDlg::MidiInstDlg(TQWidget *parent) MidiInstDlg::MidiInstDlg(TQWidget *parent)
:TQDialog(parent,"instrument",TRUE) :TQDialog(parent,"instrument",TRUE)
{ {
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: title // caption label: title
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this); TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font()); TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont); captionlabel->setFont(labelfont);
captionlabel->setText(TQString(" ")+i18n("Instrument")+TQString(" ")); captionlabel->setText(TQString(" ")+i18n("Instrument")+TQString(" "));
captionlabel->tqsetAlignment(AlignCenter); captionlabel->setAlignment(AlignCenter);
//min_size(captionlabel); //min_size(captionlabel);
maintqlayout->addWidget(captionlabel); mainlayout->addWidget(captionlabel);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// combobox // combobox
@ -95,7 +95,7 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
TQStringList::Iterator it; TQStringList::Iterator it;
for ( it = instruments.begin(); it != instruments.end(); it++ ) { for ( it = instruments.begin(); it != instruments.end(); it++ ) {
TQString modname = *it; TQString modname = *it;
TQString prefix = TQString::tqfromLatin1("instrument_"); TQString prefix = TQString::fromLatin1("instrument_");
if (modname.length() > 5) if (modname.length() > 5)
modname.truncate(modname.length()-5); // kill .arts extension modname.truncate(modname.length()-5); // kill .arts extension
if ( (modname.startsWith(prefix)) && (!modname.contains("_GUI")) ) if ( (modname.startsWith(prefix)) && (!modname.contains("_GUI")) )
@ -108,7 +108,7 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
for ( it = maps.begin(); it != maps.end(); it++ ) { for ( it = maps.begin(); it != maps.end(); it++ ) {
TQString modname = *it; TQString modname = *it;
TQString prefix = TQString::tqfromLatin1("instrument_"); TQString prefix = TQString::fromLatin1("instrument_");
if (modname.length() > 9) if (modname.length() > 9)
modname.truncate(modname.length()-9); // kill .arts-map extension modname.truncate(modname.length()-9); // kill .arts-map extension
if (modname.startsWith(prefix)) if (modname.startsWith(prefix))
@ -116,23 +116,23 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
//kdDebug() << "inserted map: " << modname.mid(prefix.length()) << endl; //kdDebug() << "inserted map: " << modname.mid(prefix.length()) << endl;
} }
maintqlayout->addWidget(box); mainlayout->addWidget(box);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -141,12 +141,12 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) ); connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->tqlayout(); bbox->layout();
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
maintqlayout->freeze(); mainlayout->freeze();
} }
TQCString MidiInstDlg::filename() TQCString MidiInstDlg::filename()
@ -157,12 +157,12 @@ TQCString MidiInstDlg::filename()
TQStringList::Iterator it; TQStringList::Iterator it;
for ( it = artsPath.begin(); it != artsPath.end(); it++ ) { for ( it = artsPath.begin(); it != artsPath.end(); it++ ) {
TQString pathname = *it + TQString::tqfromLatin1("/instrument_") + instrument + TQString::tqfromLatin1(".arts"); TQString pathname = *it + TQString::fromLatin1("/instrument_") + instrument + TQString::fromLatin1(".arts");
TQFileInfo fi(pathname); TQFileInfo fi(pathname);
if (fi.exists() && fi.isReadable()) if (fi.exists() && fi.isReadable())
return TQFile::encodeName(pathname); return TQFile::encodeName(pathname);
pathname = *it + TQString::tqfromLatin1("/instrument_") + instrument + TQString::tqfromLatin1(".arts-map"); pathname = *it + TQString::fromLatin1("/instrument_") + instrument + TQString::fromLatin1(".arts-map");
fi.setFile(pathname); fi.setFile(pathname);
if (fi.exists() && fi.isReadable()) if (fi.exists() && fi.isReadable())
return TQFile::encodeName(pathname); return TQFile::encodeName(pathname);

@ -29,7 +29,7 @@
#undef protected #undef protected
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqlistbox.h> #include <tqlistbox.h>
#include <tqlayout.h> #include <layout.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <stdio.h> #include <stdio.h>
#include <kaction.h> #include <kaction.h>
@ -96,8 +96,8 @@ public:
conn != item->info.connections.end(); conn++) conn != item->info.connections.end(); conn++)
{ {
MidiManagerItem *outitem = v->itemMap[*conn]; MidiManagerItem *outitem = v->itemMap[*conn];
TQRect r1 = v->widget->inputsListBox->tqitemRect(item); TQRect r1 = v->widget->inputsListBox->itemRect(item);
TQRect r2 = v->widget->outputsListBox->tqitemRect(outitem); TQRect r2 = v->widget->outputsListBox->itemRect(outitem);
if(r1.height() > 0 && r2.height() > 0) if(r1.height() > 0 && r2.height() > 0)
{ {
@ -185,7 +185,7 @@ void MidiManagerView::updateLists()
widget->inputsListBox->setSelected(itemMap[srcID],true); widget->inputsListBox->setSelected(itemMap[srcID],true);
if(destID && itemMap[destID]) if(destID && itemMap[destID])
widget->outputsListBox->setSelected(itemMap[destID],true); widget->outputsListBox->setSelected(itemMap[destID],true);
connectionWidget->tqrepaint(); connectionWidget->repaint();
} }
void MidiManagerView::slotConnect() void MidiManagerView::slotConnect()

@ -23,7 +23,7 @@
#include <klocale.h> #include <klocale.h>
#include <kapplication.h> #include <kapplication.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <kseparator.h> #include <kseparator.h>
#include <kbuttonbox.h> #include <kbuttonbox.h>
@ -34,26 +34,26 @@
MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *title) :TQDialog(parent,title,TRUE) MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *title) :TQDialog(parent,title,TRUE)
{ {
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: title // caption label: title
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this); TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font()); TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2); labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont); captionlabel->setFont(labelfont);
captionlabel->setText(i18n("OSS MIDI Port")); captionlabel->setText(i18n("OSS MIDI Port"));
captionlabel->tqsetAlignment(AlignCenter); captionlabel->setAlignment(AlignCenter);
//min_size(captionlabel); //min_size(captionlabel);
maintqlayout->addWidget(captionlabel); mainlayout->addWidget(captionlabel);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2); mainlayout->addWidget(ruler2);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// editwidget // editwidget
@ -61,23 +61,23 @@ MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *titl
edit->setText(oldname); edit->setText(oldname);
//min_size(edit); //min_size(edit);
maintqlayout->addWidget(edit); mainlayout->addWidget(edit);
// hruler // hruler
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this); KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler); mainlayout->addWidget(ruler);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
// buttons // buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout; TQHBoxLayout *buttonlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout); mainlayout->addLayout(buttonlayout);
maintqlayout->addSpacing(5); mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this); KButtonBox *bbox = new KButtonBox(this);
TQPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); TQPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -90,12 +90,12 @@ MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *titl
okbutton->setAutoDefault( true ); okbutton->setAutoDefault( true );
okbutton->setDefault( true ); okbutton->setDefault( true );
bbox->tqlayout(); bbox->layout();
buttontqlayout->addWidget(bbox); buttonlayout->addWidget(bbox);
buttontqlayout->addSpacing(5); buttonlayout->addSpacing(5);
maintqlayout->freeze(); mainlayout->freeze();
} }
const char *MidiPortDlg::device() const char *MidiPortDlg::device()

@ -27,7 +27,7 @@
#include <tqlabel.h> #include <tqlabel.h>
#include <tqscrollbar.h> #include <tqscrollbar.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqlayout.h> #include <layout.h>
class MidiPortDlg :public TQDialog { class MidiPortDlg :public TQDialog {
Q_OBJECT Q_OBJECT

@ -21,7 +21,7 @@
*/ */
#include <tqlayout.h> #include <layout.h>
#include <klocale.h> #include <klocale.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqwidget.h> #include <tqwidget.h>
@ -41,7 +41,7 @@ ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, TQWidget* parent, con
TQBoxLayout *l= new TQVBoxLayout(this); TQBoxLayout *l= new TQVBoxLayout(this);
//l->setAutoAdd(TRUE); //l->setAutoAdd(TRUE);
RealtimetqStatus rs= server.realtimetqStatus(); RealtimeStatus rs= server.realtimeStatus();
l->addWidget(new TQLabel(rs==rtRealtime? l->addWidget(new TQLabel(rs==rtRealtime?
i18n("Artsd is running with realtime scheduling."): i18n("Artsd is running with realtime scheduling."):
rs==rtNoSupport? rs==rtNoSupport?
@ -66,7 +66,7 @@ ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, TQWidget* parent, con
connect(suspendButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(suspendButtonClicked())); connect(suspendButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(suspendButtonClicked()));
artsPollStatusTimer= new TQTimer(this); artsPollStatusTimer= new TQTimer(this);
connect(artsPollStatusTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updatetqStatus())); connect(artsPollStatusTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateStatus()));
artsPollStatusTimer->start(1000); artsPollStatusTimer->start(1000);
//l->activate(); //l->activate();
show(); show();
@ -77,7 +77,7 @@ void ArtsStatusView::suspendButtonClicked()
(void)server.suspend(); // TODO: error msg if suspend not possible? (void)server.suspend(); // TODO: error msg if suspend not possible?
} }
void ArtsStatusView::updatetqStatus() void ArtsStatusView::updateStatus()
{ {
long seconds= server.secondsUntilSuspend(); long seconds= server.secondsUntilSuspend();
if (seconds<0) if (seconds<0)

@ -40,7 +40,7 @@ public:
ArtsStatusView(Arts::SoundServer server, TQWidget* =0, const char* =0 ); ArtsStatusView(Arts::SoundServer server, TQWidget* =0, const char* =0 );
public slots: public slots:
void updatetqStatus(); void updateStatus();
void suspendButtonClicked(); void suspendButtonClicked();
protected: protected:

@ -23,7 +23,7 @@
#include <tqlabel.h> #include <tqlabel.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <tqlayout.h> #include <layout.h>
#include <tqhbuttongroup.h> #include <tqhbuttongroup.h>
#include "collectionlist.h" #include "collectionlist.h"

@ -162,7 +162,7 @@ void CollectionList::slotRefreshItems(const KFileItemList &items)
// If the item is no longer on disk, remove it from the collection. // If the item is no longer on disk, remove it from the collection.
if(item->file().fileInfo().exists()) if(item->file().fileInfo().exists())
item->tqrepaint(); item->repaint();
else else
clearItem(item); clearItem(item);
} }
@ -392,13 +392,13 @@ void CollectionListItem::refresh()
file().coverInfo()->setCover(); file().coverInfo()->setCover();
if(listView()->isVisible()) if(listView()->isVisible())
tqrepaint(); repaint();
for(PlaylistItemList::Iterator it = m_tqchildren.begin(); it != m_tqchildren.end(); ++it) { for(PlaylistItemList::Iterator it = m_children.begin(); it != m_children.end(); ++it) {
(*it)->playlist()->update(); (*it)->playlist()->update();
(*it)->playlist()->dataChanged(); (*it)->playlist()->dataChanged();
if((*it)->listView()->isVisible()) if((*it)->listView()->isVisible())
(*it)->tqrepaint(); (*it)->repaint();
} }
CollectionList::instance()->dataChanged(); CollectionList::instance()->dataChanged();
@ -411,7 +411,7 @@ PlaylistItem *CollectionListItem::itemForPlaylist(const Playlist *playlist)
return this; return this;
PlaylistItemList::ConstIterator it; PlaylistItemList::ConstIterator it;
for(it = m_tqchildren.begin(); it != m_tqchildren.end(); ++it) for(it = m_children.begin(); it != m_children.end(); ++it)
if((*it)->playlist() == playlist) if((*it)->playlist() == playlist)
return *it; return *it;
return 0; return 0;
@ -428,11 +428,11 @@ void CollectionListItem::updateCollectionDict(const TQString &oldPath, const TQS
collection->addToDict(newPath, this); collection->addToDict(newPath, this);
} }
void CollectionListItem::tqrepaint() const void CollectionListItem::repaint() const
{ {
TQListViewItem::tqrepaint(); TQListViewItem::repaint();
for(PlaylistItemList::ConstIterator it = m_tqchildren.begin(); it != m_tqchildren.end(); ++it) for(PlaylistItemList::ConstIterator it = m_children.begin(); it != m_children.end(); ++it)
(*it)->tqrepaint(); (*it)->repaint();
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -468,8 +468,8 @@ CollectionListItem::~CollectionListItem()
{ {
m_shuttingDown = true; m_shuttingDown = true;
for(PlaylistItemList::ConstIterator it = m_tqchildren.begin(); for(PlaylistItemList::ConstIterator it = m_children.begin();
it != m_tqchildren.end(); it != m_children.end();
++it) ++it)
{ {
(*it)->playlist()->clearItem(*it); (*it)->playlist()->clearItem(*it);
@ -486,13 +486,13 @@ CollectionListItem::~CollectionListItem()
void CollectionListItem::addChildItem(PlaylistItem *child) void CollectionListItem::addChildItem(PlaylistItem *child)
{ {
m_tqchildren.append(child); m_children.append(child);
} }
void CollectionListItem::removeChildItem(PlaylistItem *child) void CollectionListItem::removeChildItem(PlaylistItem *child)
{ {
if(!m_shuttingDown) if(!m_shuttingDown)
m_tqchildren.remove(child); m_children.remove(child);
} }
bool CollectionListItem::checkCurrent() bool CollectionListItem::checkCurrent()

@ -21,7 +21,7 @@
#include <kfileitem.h> #include <kfileitem.h>
#include <tqdict.h> #include <tqdict.h>
#include <tqclipboard.h> #include <clipboard.h>
#include <tqvaluevector.h> #include <tqvaluevector.h>
#include "playlist.h" #include "playlist.h"
@ -96,7 +96,7 @@ public:
virtual bool canReload() const { return true; } virtual bool canReload() const { return true; }
public slots: public slots:
virtual void paste() { decode(kapp->tqclipboard()->data()); } virtual void paste() { decode(kapp->clipboard()->data()); }
virtual void clear(); virtual void clear();
void slotCheckCache(); void slotCheckCache();
@ -172,8 +172,8 @@ public:
virtual void refresh(); virtual void refresh();
PlaylistItem *itemForPlaylist(const Playlist *playlist); PlaylistItem *itemForPlaylist(const Playlist *playlist);
void updateCollectionDict(const TQString &oldPath, const TQString &newPath); void updateCollectionDict(const TQString &oldPath, const TQString &newPath);
void tqrepaint() const; void repaint() const;
PlaylistItemList tqchildren() const { return m_tqchildren; } PlaylistItemList children() const { return m_children; }
protected: protected:
CollectionListItem(const FileHandle &file); CollectionListItem(const FileHandle &file);
@ -192,7 +192,7 @@ protected:
private: private:
bool m_shuttingDown; bool m_shuttingDown;
PlaylistItemList m_tqchildren; PlaylistItemList m_children;
}; };
#endif #endif

@ -50,7 +50,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>164</width> <width>164</width>
<height>0</height> <height>0</height>
@ -65,7 +65,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -73,7 +73,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -22,7 +22,7 @@ CoverIconViewItem::CoverIconViewItem(coverKey id, TQIconView *parent) :
KIconViewItem(parent), m_id(id) KIconViewItem(parent), m_id(id)
{ {
CoverDataPtr data = CoverManager::coverInfo(id); CoverDataPtr data = CoverManager::coverInfo(id);
setText(TQString("%1 - %2").tqarg(data->artist, data->album)); setText(TQString("%1 - %2").arg(data->artist, data->album));
setPixmap(data->thumbnail()); setPixmap(data->thumbnail());
} }

@ -19,7 +19,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqcursor.h> #include <tqcursor.h>
@ -34,10 +34,10 @@ struct CoverPopup : public TQWidget
CoverPopup(const TQPixmap &image, const TQPoint &p) : CoverPopup(const TQPixmap &image, const TQPoint &p) :
TQWidget(0, 0, WDestructiveClose | WX11BypassWM) TQWidget(0, 0, WDestructiveClose | WX11BypassWM)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQHBoxLayout *layout = new TQHBoxLayout(this);
TQLabel *label = new TQLabel(this); TQLabel *label = new TQLabel(this);
tqlayout->addWidget(label); layout->addWidget(label);
label->setFrameStyle(TQFrame::Box | TQFrame::Raised); label->setFrameStyle(TQFrame::Box | TQFrame::Raised);
label->setLineWidth(1); label->setLineWidth(1);
label->setPixmap(image); label->setPixmap(image);

@ -269,7 +269,7 @@ const char *CoverDrag::format(int i) const
return 0; return 0;
} }
TQByteArray CoverDrag::tqencodedData(const char *mimetype) const TQByteArray CoverDrag::encodedData(const char *mimetype) const
{ {
if(qstrcmp(CoverDrag::mimetype, mimetype) == 0) { if(qstrcmp(CoverDrag::mimetype, mimetype) == 0) {
TQByteArray data; TQByteArray data;
@ -303,7 +303,7 @@ bool CoverDrag::decode(const TQMimeSource *e, coverKey &id)
if(!canDecode(e)) if(!canDecode(e))
return false; return false;
TQByteArray data = e->tqencodedData(mimetype); TQByteArray data = e->encodedData(mimetype);
TQDataStream ds(data, IO_ReadOnly); TQDataStream ds(data, IO_ReadOnly);
TQ_UINT32 i; TQ_UINT32 i;
@ -395,7 +395,7 @@ coverKey CoverManager::addCover(const TQPixmap &large, const TQString &artist, c
// Save it to file first! // Save it to file first!
TQString ext = TQString("/coverdb/coverID-%1.png").tqarg(id); TQString ext = TQString("/coverdb/coverID-%1.png").arg(id);
coverData->path = KGlobal::dirs()->saveLocation("appdata") + ext; coverData->path = KGlobal::dirs()->saveLocation("appdata") + ext;
kdDebug() << "Saving pixmap to " << coverData->path << endl; kdDebug() << "Saving pixmap to " << coverData->path << endl;
@ -413,8 +413,8 @@ coverKey CoverManager::addCover(const TQPixmap &large, const TQString &artist, c
data()->covers[id] = coverData; data()->covers[id] = coverData;
// Make sure the new cover isn't inadvertently cached. // Make sure the new cover isn't inadvertently cached.
data()->pixmapCache.remove(TQString("f%1").tqarg(coverData->path)); data()->pixmapCache.remove(TQString("f%1").arg(coverData->path));
data()->pixmapCache.remove(TQString("t%1").tqarg(coverData->path)); data()->pixmapCache.remove(TQString("t%1").arg(coverData->path));
return id; return id;
} }
@ -436,8 +436,8 @@ bool CoverManager::removeCover(coverKey id)
// Remove cover from cache. // Remove cover from cache.
CoverDataPtr coverData = coverInfo(id); CoverDataPtr coverData = coverInfo(id);
data()->pixmapCache.remove(TQString("f%1").tqarg(coverData->path)); data()->pixmapCache.remove(TQString("f%1").arg(coverData->path));
data()->pixmapCache.remove(TQString("t%1").tqarg(coverData->path)); data()->pixmapCache.remove(TQString("t%1").arg(coverData->path));
// Remove references to files that had that track ID. // Remove references to files that had that track ID.
TQDictIterator<coverKey> it(data()->tracks); TQDictIterator<coverKey> it(data()->tracks);
@ -462,8 +462,8 @@ bool CoverManager::replaceCover(coverKey id, const TQPixmap &large)
CoverDataPtr coverData = coverInfo(id); CoverDataPtr coverData = coverInfo(id);
// Empty old pixmaps from cache. // Empty old pixmaps from cache.
data()->pixmapCache.remove(TQString("%1%2").tqarg("t", coverData->path)); data()->pixmapCache.remove(TQString("%1%2").arg("t", coverData->path));
data()->pixmapCache.remove(TQString("%1%2").tqarg("f", coverData->path)); data()->pixmapCache.remove(TQString("%1%2").arg("f", coverData->path));
large.save(coverData->path, "PNG"); large.save(coverData->path, "PNG");
return true; return true;

@ -68,7 +68,7 @@ public:
CoverDrag(coverKey id, TQWidget *src); CoverDrag(coverKey id, TQWidget *src);
virtual const char *format(int i) const; virtual const char *format(int i) const;
virtual TQByteArray tqencodedData(const char *mimetype) const; virtual TQByteArray encodedData(const char *mimetype) const;
void setId(coverKey id) { m_id = id; } void setId(coverKey id) { m_id = id; }

@ -22,7 +22,7 @@
#include <tqstringlist.h> #include <tqstringlist.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <tqhbox.h> #include <tqhbox.h>

@ -12,7 +12,7 @@
<height>374</height> <height>374</height>
</rect> </rect>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>420</width> <width>420</width>
<height>320</height> <height>320</height>
@ -24,7 +24,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout4</cstring> <cstring>layout4</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -48,7 +48,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -61,7 +61,7 @@
<property name="text"> <property name="text">
<string>Are you sure that you want to remove these items?</string> <string>Are you sure that you want to remove these items?</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>
@ -72,7 +72,7 @@
<property name="text"> <property name="text">
<string>Deletion method placeholder, never shown to user.</string> <string>Deletion method placeholder, never shown to user.</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignCenter</set> <set>WordBreak|AlignCenter</set>
</property> </property>
</widget> </widget>
@ -101,7 +101,7 @@
<property name="text"> <property name="text">
<string>Placeholder for number of files, not in GUI</string> <string>Placeholder for number of files, not in GUI</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>

@ -50,9 +50,9 @@ DirectoryList::DirectoryList(const TQStringList &directories, bool importPlaylis
m_base->importPlaylistsCheckBox->setChecked(importPlaylists); m_base->importPlaylistsCheckBox->setChecked(importPlaylists);
TQSize sz = tqsizeHint(); TQSize sz = sizeHint();
setMinimumSize(kMax(350, sz.width()), kMax(250, sz.height())); setMinimumSize(kMax(350, sz.width()), kMax(250, sz.height()));
resize(tqsizeHint()); resize(sizeHint());
} }
DirectoryList::~DirectoryList() DirectoryList::~DirectoryList()

@ -63,7 +63,7 @@
<property name="text"> <property name="text">
<string>These folders will be scanned on startup for new files.</string> <string>These folders will be scanned on startup for new files.</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter</set> <set>WordBreak|AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -77,7 +77,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>40</height> <height>40</height>

@ -17,7 +17,7 @@
#include <klocale.h> #include <klocale.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqlayout.h> #include <layout.h>
#include "exampleoptions.h" #include "exampleoptions.h"

@ -44,7 +44,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqdir.h> #include <tqdir.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqsignalmapper.h> #include <tqsignalmapper.h>
#include <tqheader.h> #include <tqheader.h>
@ -232,7 +232,7 @@ FileRenamerWidget::FileRenamerWidget(TQWidget *parent) :
m_exampleText->setPaletteBackgroundColor(temp->paletteBackgroundColor()); m_exampleText->setPaletteBackgroundColor(temp->paletteBackgroundColor());
delete temp; delete temp;
tqlayout()->setMargin(0); // We'll be wrapped by KDialogBase layout()->setMargin(0); // We'll be wrapped by KDialogBase
// This must be created before createTagRows() is called. // This must be created before createTagRows() is called.
@ -352,10 +352,10 @@ unsigned FileRenamerWidget::addRowCategory(TagType category)
downMapper->connect(row.downButton, TQT_SIGNAL(clicked()), TQT_SLOT(map())); downMapper->connect(row.downButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
downMapper->setMapping(TQT_TQOBJECT(row.downButton), id); downMapper->setMapping(TQT_TQOBJECT(row.downButton), id);
TQString labelText = TQString("<b>%1</b>").tqarg(TagRenamerOptions::tagTypeText(category)); TQString labelText = TQString("<b>%1</b>").arg(TagRenamerOptions::tagTypeText(category));
TQLabel *label = new TQLabel(labelText, frame); TQLabel *label = new TQLabel(labelText, frame);
frame->setStretchFactor(label, 1); frame->setStretchFactor(label, 1);
label->tqsetAlignment(AlignCenter); label->setAlignment(AlignCenter);
TQVBox *options = new TQVBox(frame); TQVBox *options = new TQVBox(frame);
row.enableButton = new KPushButton(i18n("Remove"), options); row.enableButton = new KPushButton(i18n("Remove"), options);
@ -410,7 +410,7 @@ bool FileRenamerWidget::removeRow(unsigned id)
if(m_rows[id].position > 0) if(m_rows[id].position > 0)
checkboxPosition = m_rows[id].position - 1; checkboxPosition = m_rows[id].position - 1;
// The checkbox is contained within a tqlayout widget, so the tqlayout // The checkbox is contained within a layout widget, so the layout
// widget is the one the needs to die. // widget is the one the needs to die.
delete m_folderSwitches[checkboxPosition]->parent(); delete m_folderSwitches[checkboxPosition]->parent();
m_folderSwitches.erase(&m_folderSwitches[checkboxPosition]); m_folderSwitches.erase(&m_folderSwitches[checkboxPosition]);
@ -675,17 +675,17 @@ void FileRenamerWidget::moveItem(unsigned id, MovementDirection direction)
// Move the item two spaces above/below its previous position. It has to // Move the item two spaces above/below its previous position. It has to
// be 2 spaces because of the checkbox. // be 2 spaces because of the checkbox.
TQBoxLayout *tqlayout = dynamic_cast<TQBoxLayout *>(m_mainFrame->tqlayout()); TQBoxLayout *layout = dynamic_cast<TQBoxLayout *>(m_mainFrame->layout());
tqlayout->remove(l); layout->remove(l);
tqlayout->insertWidget(2 * newPos, l); layout->insertWidget(2 * newPos, l);
// Move the top item two spaces in the opposite direction, for a similar // Move the top item two spaces in the opposite direction, for a similar
// reason. // reason.
tqlayout->remove(w); layout->remove(w);
tqlayout->insertWidget(2 * pos, w); layout->insertWidget(2 * pos, w);
tqlayout->tqinvalidate(); layout->invalidate();
TQTimer::singleShot(0, this, TQT_SLOT(exampleTextChanged())); TQTimer::singleShot(0, this, TQT_SLOT(exampleTextChanged()));
} }
@ -778,7 +778,7 @@ void FileRenamerWidget::insertCategory()
// Set its down button to be disabled. // Set its down button to be disabled.
m_rows[id].downButton->setEnabled(false); m_rows[id].downButton->setEnabled(false);
m_mainFrame->tqlayout()->tqinvalidate(); m_mainFrame->layout()->invalidate();
m_mainView->update(); m_mainView->update();
// Now update according to the code in loadConfig(). // Now update according to the code in loadConfig().
@ -875,7 +875,7 @@ void FileRenamer::rename(const PlaylistItemList &items)
setFolderIcon(it.data(), itemMap[it.key()]); setFolderIcon(it.data(), itemMap[it.key()]);
} }
else else
errorFiles << i18n("%1 to %2").tqarg(it.key()).tqarg(it.data()); errorFiles << i18n("%1 to %2").arg(it.key()).arg(it.data());
processEvents(); processEvents();
} }
@ -952,7 +952,7 @@ void FileRenamer::setFolderIcon(const KURL &dst, const PlaylistItem *item)
config.setGroup("Desktop Entry"); config.setGroup("Desktop Entry");
if(!config.hasKey("Icon")) { if(!config.hasKey("Icon")) {
config.writeEntry("Icon", TQString("%1/.juk-thumbnail.png").tqarg(path)); config.writeEntry("Icon", TQString("%1/.juk-thumbnail.png").arg(path));
config.sync(); config.sync();
} }

@ -61,7 +61,7 @@ struct Row
/** /**
* A list of rows, each of which may have its own category options and other * A list of rows, each of which may have its own category options and other
* associated data. There is no relation between the order of rows in the vector and their * associated data. There is no relation between the order of rows in the vector and their
* GUI tqlayout. Instead, each Row has a position member which indicates what GUI position it * GUI layout. Instead, each Row has a position member which indicates what GUI position it
* takes up. The index into the vector is known as the row identifier (which is unique but * takes up. The index into the vector is known as the row identifier (which is unique but
* not necessarily constant). * not necessarily constant).
*/ */
@ -186,7 +186,7 @@ private:
/** /**
* This function adds a "Insert Folder separator" checkbox to the end of * This function adds a "Insert Folder separator" checkbox to the end of
* the current tqlayout. The setting defaults to being unchecked. * the current layout. The setting defaults to being unchecked.
*/ */
void addFolderSeparatorCheckbox(); void addFolderSeparatorCheckbox();
@ -336,7 +336,7 @@ private:
/** /**
* This moves the widget \p l in the direction given by \p direction, taking * This moves the widget \p l in the direction given by \p direction, taking
* care to make sure that the checkboxes are not moved, and that they are * care to make sure that the checkboxes are not moved, and that they are
* enabled or disabled as appropriate for the new tqlayout, and that the up and * enabled or disabled as appropriate for the new layout, and that the up and
* down buttons are also adjusted as necessary. * down buttons are also adjusted as necessary.
* *
* @param id the identifier of the row to move * @param id the identifier of the row to move
@ -427,14 +427,14 @@ private slots:
virtual void slotRemoveRow(int id); virtual void slotRemoveRow(int id);
/** /**
* This function moves \p category up in the tqlayout. * This function moves \p category up in the layout.
* *
* @param id the unique id of the widget to move up. * @param id the unique id of the widget to move up.
*/ */
virtual void moveItemUp(int id); virtual void moveItemUp(int id);
/** /**
* This function moves \p category down in the tqlayout. * This function moves \p category down in the layout.
* *
* @param id the unique id of the widget to move down. * @param id the unique id of the widget to move down.
*/ */

@ -29,7 +29,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout4</cstring> <cstring>layout4</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -68,7 +68,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="2" column="1"> <widget class="TQLayoutWidget" row="2" column="1">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -216,7 +216,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -232,7 +232,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -257,7 +257,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -295,7 +295,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>0</height> <height>0</height>

@ -17,7 +17,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <knuminput.h> #include <knuminput.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqlineedit.h> #include <tqlineedit.h>
@ -29,28 +29,28 @@ FileRenamerTagOptions::FileRenamerTagOptions(TQWidget *parent,
const TagRenamerOptions &options) : const TagRenamerOptions &options) :
FileRenamerTagOptionsBase(parent), m_options(options) FileRenamerTagOptionsBase(parent), m_options(options)
{ {
tqlayout()->setSpacing(KDialog::spacingHint()); layout()->setSpacing(KDialog::spacingHint());
tqlayout()->setMargin(0); layout()->setMargin(0);
m_emptyTagGroup->tqlayout()->setSpacing(KDialog::spacingHint()); m_emptyTagGroup->layout()->setSpacing(KDialog::spacingHint());
m_trackGroup->tqlayout()->setSpacing(KDialog::spacingHint()); m_trackGroup->layout()->setSpacing(KDialog::spacingHint());
m_emptyValueLayout->setSpacing(KDialog::spacingHint()); m_emptyValueLayout->setSpacing(KDialog::spacingHint());
m_exampleLayout->setSpacing(KDialog::spacingHint()); m_exampleLayout->setSpacing(KDialog::spacingHint());
m_spinLayout->setSpacing(KDialog::spacingHint()); m_spinLayout->setSpacing(KDialog::spacingHint());
m_widthLayout->setSpacing(KDialog::spacingHint()); m_widthLayout->setSpacing(KDialog::spacingHint());
m_tagLayout->setSpacing(KDialog::spacingHint()); m_tagLayout->setSpacing(KDialog::spacingHint());
m_tagFormatGroup->tqlayout()->setSpacing(KDialog::spacingHint()); m_tagFormatGroup->layout()->setSpacing(KDialog::spacingHint());
if(m_options.category() != Track) if(m_options.category() != Track)
m_trackGroup->hide(); m_trackGroup->hide();
TQString tagText = m_options.tagTypeText(); TQString tagText = m_options.tagTypeText();
setCaption(caption().tqarg(tagText)); setCaption(caption().arg(tagText));
m_tagFormatGroup->setTitle(m_tagFormatGroup->title().tqarg(tagText)); m_tagFormatGroup->setTitle(m_tagFormatGroup->title().arg(tagText));
m_emptyTagGroup->setTitle(m_emptyTagGroup->title().tqarg(tagText)); m_emptyTagGroup->setTitle(m_emptyTagGroup->title().arg(tagText));
m_description->setText(m_description->text().tqarg(tagText)); m_description->setText(m_description->text().arg(tagText));
m_tagLabel->setText(m_tagLabel->text().tqarg(tagText)); m_tagLabel->setText(m_tagLabel->text().arg(tagText));
m_prefixText->setText(options.prefix()); m_prefixText->setText(options.prefix());
m_suffixText->setText(options.suffix()); m_suffixText->setText(options.suffix());

@ -40,7 +40,7 @@
<property name="textFormat"> <property name="textFormat">
<enum>RichText</enum> <enum>RichText</enum>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignCenter</set> <set>WordBreak|AlignCenter</set>
</property> </property>
</widget> </widget>
@ -65,7 +65,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -76,7 +76,7 @@
<property name="name"> <property name="name">
<cstring>m_prefixText</cstring> <cstring>m_prefixText</cstring>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignRight</set> <set>AlignRight</set>
</property> </property>
</widget> </widget>
@ -92,7 +92,7 @@
<property name="name"> <property name="name">
<cstring>m_suffixText</cstring> <cstring>m_suffixText</cstring>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignLeft</set> <set>AlignLeft</set>
</property> </property>
</widget> </widget>
@ -106,7 +106,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -127,7 +127,7 @@
<property name="text"> <property name="text">
<string>Substitution Example</string> <string>Substitution Example</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>
@ -218,7 +218,7 @@
<property name="textFormat"> <property name="textFormat">
<enum>RichText</enum> <enum>RichText</enum>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignCenter</set> <set>WordBreak|AlignCenter</set>
</property> </property>
</widget> </widget>
@ -315,7 +315,7 @@
<property name="text"> <property name="text">
<string>3 -&gt;</string> <string>3 -&gt;</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -326,7 +326,7 @@
<property name="text"> <property name="text">
<string>14 -&gt;</string> <string>14 -&gt;</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -346,7 +346,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>0</height> <height>0</height>

@ -92,14 +92,14 @@ void HistoryPlaylist::slotCreateNewItem()
HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *parent, TQListViewItem *after) : HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *parent, TQListViewItem *after) :
PlaylistItem(item, parent, after), PlaylistItem(item, parent, after),
m_dateTime(TQDateTime::tqcurrentDateTime()) m_dateTime(TQDateTime::currentDateTime())
{ {
setText(0, KGlobal::locale()->formatDateTime(m_dateTime)); setText(0, KGlobal::locale()->formatDateTime(m_dateTime));
} }
HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *parent) : HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *parent) :
PlaylistItem(item, parent), PlaylistItem(item, parent),
m_dateTime(TQDateTime::tqcurrentDateTime()) m_dateTime(TQDateTime::currentDateTime())
{ {
setText(0, KGlobal::locale()->formatDateTime(m_dateTime)); setText(0, KGlobal::locale()->formatDateTime(m_dateTime));
} }

@ -43,7 +43,7 @@ class KTRMLookup;
extern "C" extern "C"
{ {
#if HAVE_MUSICBRAINZ >= 4 #if HAVE_MUSICBRAINZ >= 4
static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, int fileId, TPFiletqStatus status); static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, int fileId, TPFileStatus status);
#else #else
static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, int fileId); static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, int fileId);
#endif #endif
@ -205,14 +205,14 @@ private:
class KTRMEvent : public TQCustomEvent class KTRMEvent : public TQCustomEvent
{ {
public: public:
enum tqStatus { enum Status {
Recognized, Recognized,
Unrecognized, Unrecognized,
Collision, Collision,
Error Error
}; };
KTRMEvent(int fileId, tqStatus status) : KTRMEvent(int fileId, Status status) :
TQCustomEvent(id), TQCustomEvent(id),
m_fileId(fileId), m_fileId(fileId),
m_status(status) {} m_status(status) {}
@ -222,7 +222,7 @@ public:
return m_fileId; return m_fileId;
} }
tqStatus status() const Status status() const
{ {
return m_status; return m_status;
} }
@ -231,7 +231,7 @@ public:
private: private:
int m_fileId; int m_fileId;
tqStatus m_status; Status m_status;
}; };
/** /**
@ -242,7 +242,7 @@ private:
class KTRMEventHandler : public TQObject class KTRMEventHandler : public TQObject
{ {
public: public:
static void send(int fileId, KTRMEvent::tqStatus status) static void send(int fileId, KTRMEvent::Status status)
{ {
KApplication::postEvent(instance(), new KTRMEvent(fileId, status)); KApplication::postEvent(instance(), new KTRMEvent(fileId, status));
} }
@ -303,7 +303,7 @@ protected:
* Callback fuction for TunePimp lookup events. * Callback fuction for TunePimp lookup events.
*/ */
#if HAVE_MUSICBRAINZ >= 4 #if HAVE_MUSICBRAINZ >= 4
static void TRMNotifyCallback(tunepimp_t /*pimp*/, void* /*data*/, TPCallbackEnum type, int fileId, TPFiletqStatus status) static void TRMNotifyCallback(tunepimp_t /*pimp*/, void* /*data*/, TPCallbackEnum type, int fileId, TPFileStatus status)
#else #else
static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, int fileId) static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, int fileId)
#endif #endif
@ -313,7 +313,7 @@ static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type,
#if HAVE_MUSICBRAINZ < 4 #if HAVE_MUSICBRAINZ < 4
track_t track = tp_GetTrack(pimp, fileId); track_t track = tp_GetTrack(pimp, fileId);
TPFiletqStatus status = tr_GettqStatus(track); TPFileStatus status = tr_GetStatus(track);
#endif #endif
switch(status) { switch(status) {
@ -496,7 +496,7 @@ void KTRMLookup::unrecognized()
tr_Lock(track); tr_Lock(track);
tr_GetTRM(track, trm, 255); tr_GetTRM(track, trm, 255);
if ( !trm[0] ) { if ( !trm[0] ) {
tr_SettqStatus(track, ePending); tr_SetStatus(track, ePending);
tp_Wake(KTRMRequestHandler::instance()->tunePimp(), track); tp_Wake(KTRMRequestHandler::instance()->tunePimp(), track);
} }
else else

@ -68,7 +68,7 @@ void MusicBrainzLookup::error()
void MusicBrainzLookup::message(const TQString &s) const void MusicBrainzLookup::message(const TQString &s) const
{ {
KMainWindow *w = static_cast<KMainWindow *>(kapp->mainWidget()); KMainWindow *w = static_cast<KMainWindow *>(kapp->mainWidget());
w->statusBar()->message(TQString("%1 (%2)").tqarg(s).tqarg(m_file.fileInfo().fileName()), 3000); w->statusBar()->message(TQString("%1 (%2)").arg(s).arg(m_file.fileInfo().fileName()), 3000);
} }
void MusicBrainzLookup::confirmation() void MusicBrainzLookup::confirmation()

@ -20,7 +20,7 @@
#include <kio/netaccess.h> #include <kio/netaccess.h>
#include <tqimage.h> #include <tqimage.h>
#include <tqlayout.h> #include <layout.h>
#include <tqevent.h> #include <tqevent.h>
#include <tqdragobject.h> #include <tqdragobject.h>
#include <tqimage.h> #include <tqimage.h>
@ -58,9 +58,9 @@ NowPlaying::NowPlaying(TQWidget *parent, PlaylistCollection *collection, const c
CollectionList::instance()->addObserver(&m_observer); CollectionList::instance()->addObserver(&m_observer);
tqlayout()->setMargin(5); layout()->setMargin(5);
tqlayout()->setSpacing(3); layout()->setSpacing(3);
setFixedHeight(imageSize + 2 + tqlayout()->margin() * 2); setFixedHeight(imageSize + 2 + layout()->margin() * 2);
setStretchFactor(new CoverItem(this), 0); setStretchFactor(new CoverItem(this), 0);
setStretchFactor(new TrackItem(this), 2); setStretchFactor(new TrackItem(this), 2);
@ -109,7 +109,7 @@ CoverItem::CoverItem(NowPlaying *parent) :
TQLabel(parent, "CoverItem"), TQLabel(parent, "CoverItem"),
NowPlayingItem(parent) NowPlayingItem(parent)
{ {
setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2); setFixedHeight(parent->height() - parent->layout()->margin() * 2);
setFrameStyle(Box | Plain); setFrameStyle(Box | Plain);
setLineWidth(1); setLineWidth(1);
setMargin(1); setMargin(1);
@ -218,17 +218,17 @@ TrackItem::TrackItem(NowPlaying *parent) :
TQWidget(parent, "TrackItem"), TQWidget(parent, "TrackItem"),
NowPlayingItem(parent) NowPlayingItem(parent)
{ {
setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2); setFixedHeight(parent->height() - parent->layout()->margin() * 2);
tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
TQVBoxLayout *tqlayout = new TQVBoxLayout(this); TQVBoxLayout *layout = new TQVBoxLayout(this);
m_label = new LinkLabel(this); m_label = new LinkLabel(this);
m_label->setLinkUnderline(false); m_label->setLinkUnderline(false);
tqlayout->addStretch(); layout->addStretch();
tqlayout->addWidget(m_label); layout->addWidget(m_label);
tqlayout->addStretch(); layout->addStretch();
connect(m_label, TQT_SIGNAL(linkClicked(const TQString &)), this, connect(m_label, TQT_SIGNAL(linkClicked(const TQString &)), this,
TQT_SLOT(slotOpenLink(const TQString &))); TQT_SLOT(slotOpenLink(const TQString &)));
@ -270,13 +270,13 @@ void TrackItem::slotUpdate()
"<font size=\"+%3\"><b><a href=\"artist\">%4</a>%5<a href=\"album\">%6</a></b>"; "<font size=\"+%3\"><b><a href=\"artist\">%4</a>%5<a href=\"album\">%6</a></b>";
if(NowPlayingItem::parent()->collection()->showMoreActive()) if(NowPlayingItem::parent()->collection()->showMoreActive())
format.append(TQString(" (<a href=\"clear\">%1</a>)").tqarg(i18n("back to playlist"))); format.append(TQString(" (<a href=\"clear\">%1</a>)").arg(i18n("back to playlist")));
format.append("</font>"); format.append("</font>");
do { do {
m_label->setText(format.tqarg(size).tqarg(title).tqarg(size - 2) m_label->setText(format.arg(size).arg(title).arg(size - 2)
.tqarg(artist).tqarg(separator).tqarg(album)); .arg(artist).arg(separator).arg(album));
--size; --size;
} while(m_label->heightForWidth(m_label->width()) > imageSize && size >= 0); } while(m_label->heightForWidth(m_label->width()) > imageSize && size >= 0);
@ -291,10 +291,10 @@ HistoryItem::HistoryItem(NowPlaying *parent) :
LinkLabel(parent, "HistoryItem"), LinkLabel(parent, "HistoryItem"),
NowPlayingItem(parent) NowPlayingItem(parent)
{ {
setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2); setFixedHeight(parent->height() - parent->layout()->margin() * 2);
tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
setLinkUnderline(false); setLinkUnderline(false);
setText(TQString("<b>%1</b>").tqarg(i18n("History"))); setText(TQString("<b>%1</b>").arg(i18n("History")));
m_timer = new TQTimer(this); m_timer = new TQTimer(this);
connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAddPlaying())); connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAddPlaying()));
@ -309,14 +309,14 @@ void HistoryItem::update(const FileHandle &file)
m_history.remove(m_history.fromLast()); m_history.remove(m_history.fromLast());
TQString format = "<br /><a href=\"%1\"><font size=\"-1\">%2</font></a>"; TQString format = "<br /><a href=\"%1\"><font size=\"-1\">%2</font></a>";
TQString current = TQString("<b>%1</b>").tqarg(i18n("History")); TQString current = TQString("<b>%1</b>").arg(i18n("History"));
TQString previous; TQString previous;
for(TQValueList<Item>::ConstIterator it = m_history.begin(); for(TQValueList<Item>::ConstIterator it = m_history.begin();
it != m_history.end(); ++it) it != m_history.end(); ++it)
{ {
previous = current; previous = current;
current.append(format.tqarg((*it).anchor).tqarg(TQStyleSheet::escape((*it).file.tag()->title()))); current.append(format.arg((*it).anchor).arg(TQStyleSheet::escape((*it).file.tag()->title())));
setText(current); setText(current);
if(heightForWidth(width()) > imageSize) { if(heightForWidth(width()) > imageSize) {
setText(previous); setText(previous);

@ -46,7 +46,7 @@
using namespace ActionCollection; using namespace ActionCollection;
enum PlayerManagertqStatus { StatusStopped = -1, StatusPaused = 1, StatusPlaying = 2 }; enum PlayerManagerStatus { StatusStopped = -1, StatusPaused = 1, StatusPlaying = 2 };
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// helper functions // helper functions

@ -102,7 +102,7 @@ public:
(column == m_playlist->columnOffset() + PlaylistItem::CoverColumn && (column == m_playlist->columnOffset() + PlaylistItem::CoverColumn &&
item->file().coverInfo()->hasCover())) item->file().coverInfo()->hasCover()))
{ {
TQRect r = m_playlist->tqitemRect(item); TQRect r = m_playlist->itemRect(item);
int headerPosition = m_playlist->header()->sectionPos(column); int headerPosition = m_playlist->header()->sectionPos(column);
r.setLeft(headerPosition); r.setLeft(headerPosition);
r.setRight(headerPosition + m_playlist->header()->sectionSize(column)); r.setRight(headerPosition + m_playlist->header()->sectionSize(column));
@ -543,7 +543,7 @@ void Playlist::save()
TQFile file(m_fileName); TQFile file(m_fileName);
if(!file.open(IO_WriteOnly)) if(!file.open(IO_WriteOnly))
return KMessageBox::error(this, i18n("Could not save to file %1.").tqarg(m_fileName)); return KMessageBox::error(this, i18n("Could not save to file %1.").arg(m_fileName));
TQTextStream stream(&file); TQTextStream stream(&file);
@ -727,12 +727,12 @@ void Playlist::synchronizePlayingItems(const PlaylistList &sources, bool setMast
void Playlist::copy() void Playlist::copy()
{ {
kapp->tqclipboard()->setData(dragObject(0), TQClipboard::Clipboard); kapp->clipboard()->setData(dragObject(0), TQClipboard::Clipboard);
} }
void Playlist::paste() void Playlist::paste()
{ {
decode(kapp->tqclipboard()->data(), static_cast<PlaylistItem *>(currentItem())); decode(kapp->clipboard()->data(), static_cast<PlaylistItem *>(currentItem()));
} }
void Playlist::clear() void Playlist::clear()
@ -2127,7 +2127,7 @@ void Playlist::slotShowRMBMenu(TQListViewItem *item, const TQPoint &point, int c
if(showEdit) if(showEdit)
m_rmbMenu->changeItem(m_rmbEditID, m_rmbMenu->changeItem(m_rmbEditID,
i18n("Edit '%1'").tqarg(columnText(column + columnOffset()))); i18n("Edit '%1'").arg(columnText(column + columnOffset())));
m_rmbMenu->setItemVisible(m_rmbEditID, showEdit); m_rmbMenu->setItemVisible(m_rmbEditID, showEdit);

@ -208,7 +208,7 @@ void PlaylistBox::duplicate()
void PlaylistBox::paste() void PlaylistBox::paste()
{ {
Item *i = static_cast<Item *>(currentItem()); Item *i = static_cast<Item *>(currentItem());
decode(kapp->tqclipboard()->data(), i); decode(kapp->clipboard()->data(), i);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -445,7 +445,7 @@ void PlaylistBox::contentsDropEvent(TQDropEvent *e)
if(m_dropItem) { if(m_dropItem) {
Item *old = m_dropItem; Item *old = m_dropItem;
m_dropItem = 0; m_dropItem = 0;
old->tqrepaint(); old->repaint();
} }
} }
@ -493,14 +493,14 @@ void PlaylistBox::contentsDragMoveEvent(TQDragMoveEvent *e)
if(e->isAccepted()) { if(e->isAccepted()) {
m_dropItem = target; m_dropItem = target;
target->tqrepaint(); target->repaint();
m_showTimer->start(1500, true); m_showTimer->start(1500, true);
} }
else else
m_dropItem = 0; m_dropItem = 0;
if(old) if(old)
old->tqrepaint(); old->repaint();
} }
} }
else { else {
@ -517,7 +517,7 @@ void PlaylistBox::contentsDragLeaveEvent(TQDragLeaveEvent *e)
if(m_dropItem) { if(m_dropItem) {
Item *old = m_dropItem; Item *old = m_dropItem;
m_dropItem = 0; m_dropItem = 0;
old->tqrepaint(); old->repaint();
} }
KListView::contentsDragLeaveEvent(e); KListView::contentsDragLeaveEvent(e);
} }
@ -722,10 +722,10 @@ int PlaylistBox::Item::compare(TQListViewItem *i, int col, bool) const
return text(col).lower().localeAwareCompare(i->text(col).lower()); return text(col).lower().localeAwareCompare(i->text(col).lower());
} }
void PlaylistBox::Item::paintCell(TQPainter *painter, const TQColorGroup &tqcolorGroup, int column, int width, int align) void PlaylistBox::Item::paintCell(TQPainter *painter, const TQColorGroup &colorGroup, int column, int width, int align)
{ {
PlaylistBox *playlistBox = static_cast<PlaylistBox *>(listView()); PlaylistBox *playlistBox = static_cast<PlaylistBox *>(listView());
playlistBox->viewMode()->paintCell(this, painter, tqcolorGroup, column, width, align); playlistBox->viewMode()->paintCell(this, painter, colorGroup, column, width, align);
} }
void PlaylistBox::Item::setText(int column, const TQString &text) void PlaylistBox::Item::setText(int column, const TQString &text)

@ -162,7 +162,7 @@ protected:
void setSortedFirst(bool first = true) { m_sortedFirst = first; } void setSortedFirst(bool first = true) { m_sortedFirst = first; }
virtual int compare(TQListViewItem *i, int col, bool) const; virtual int compare(TQListViewItem *i, int col, bool) const;
virtual void paintCell(TQPainter *p, const TQColorGroup &tqcolorGroup, int column, int width, int align); virtual void paintCell(TQPainter *p, const TQColorGroup &colorGroup, int column, int width, int align);
virtual void paintFocus(TQPainter *, const TQColorGroup &, const TQRect &) {} virtual void paintFocus(TQPainter *, const TQColorGroup &, const TQRect &) {}
virtual void setText(int column, const TQString &text); virtual void setText(int column, const TQString &text);

@ -747,11 +747,11 @@ TQString PlaylistCollection::uniquePlaylistName(const TQString &suggest) const
base.remove(TQRegExp("\\s\\([0-9]+\\)$")); base.remove(TQRegExp("\\s\\([0-9]+\\)$"));
int count = 1; int count = 1;
TQString s = TQString("%1 (%2)").tqarg(base).tqarg(count); TQString s = TQString("%1 (%2)").arg(base).arg(count);
while(m_playlistNames.contains(s)) { while(m_playlistNames.contains(s)) {
count++; count++;
s = TQString("%1 (%2)").tqarg(base).tqarg(count); s = TQString("%1 (%2)").arg(base).arg(count);
} }
return s; return s;

@ -272,10 +272,10 @@ void PlaylistItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, i
if(!m_playingItems.contains(this)) if(!m_playingItems.contains(this))
return KListViewItem::paintCell(p, cg, column, width, align); return KListViewItem::paintCell(p, cg, column, width, align);
TQColorGroup tqcolorGroup = cg; TQColorGroup colorGroup = cg;
TQColor base = tqcolorGroup.base(); TQColor base = colorGroup.base();
TQColor selection = tqcolorGroup.highlight(); TQColor selection = colorGroup.highlight();
int r = (base.red() + selection.red()) / 2; int r = (base.red() + selection.red()) / 2;
int b = (base.blue() + selection.blue()) / 2; int b = (base.blue() + selection.blue()) / 2;
@ -283,8 +283,8 @@ void PlaylistItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, i
TQColor c(r, g, b); TQColor c(r, g, b);
tqcolorGroup.setColor(TQColorGroup::Base, c); colorGroup.setColor(TQColorGroup::Base, c);
TQListViewItem::paintCell(p, tqcolorGroup, column, width, align); TQListViewItem::paintCell(p, colorGroup, column, width, align);
} }
int PlaylistItem::compare(TQListViewItem *item, int column, bool ascending) const int PlaylistItem::compare(TQListViewItem *item, int column, bool ascending) const

@ -16,7 +16,7 @@
#include <kaction.h> #include <kaction.h>
#include <kdebug.h> #include <kdebug.h>
#include <tqlayout.h> #include <layout.h>
#include <tqevent.h> #include <tqevent.h>
#include "playlistsplitter.h" #include "playlistsplitter.h"
@ -94,7 +94,7 @@ void PlaylistSplitter::slotFocusCurrentPlaylist()
if(!item) if(!item)
return; return;
// A little bit of a hack to make TQListView tqrepaint things properly. Switch // A little bit of a hack to make TQListView repaint things properly. Switch
// to single selection mode, set the selection and then switch back. // to single selection mode, set the selection and then switch back.
playlist->setSelectionMode(TQListView::Single); playlist->setSelectionMode(TQListView::Single);

@ -30,7 +30,7 @@ class PlaylistInterface;
class TagEditor; class TagEditor;
/** /**
* This is the main tqlayout class of JuK. It should contain a PlaylistBox and * This is the main layout class of JuK. It should contain a PlaylistBox and
* a TQWidgetStack of the Playlists. * a TQWidgetStack of the Playlists.
* *
* This class serves as a "mediator" (see "Design Patterns") between the JuK * This class serves as a "mediator" (see "Design Patterns") between the JuK

@ -23,7 +23,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <kaction.h> #include <kaction.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
@ -163,7 +163,7 @@ void SearchLine::updateColumns()
TQStringList columnHeaders; TQStringList columnHeaders;
columnHeaders.append(TQString("<%1>").tqarg(i18n("All Visible"))); columnHeaders.append(TQString("<%1>").arg(i18n("All Visible")));
Playlist *playlist = CollectionList::instance(); Playlist *playlist = CollectionList::instance();

@ -19,7 +19,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqtimer.h> #include <tqtimer.h>

@ -77,7 +77,7 @@ SplashScreen::SplashScreen() : TQLabel(0 , "splashScreen", TQt::WStyle_Splash)
setPaletteBackgroundPixmap(background); setPaletteBackgroundPixmap(background);
setMargin(7); setMargin(7);
tqsetAlignment(AlignLeft | AlignBottom); setAlignment(AlignLeft | AlignBottom);
setPaletteForegroundColor(TQColor(107, 158, 194)); setPaletteForegroundColor(TQColor(107, 158, 194));

@ -21,7 +21,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqlayout.h> #include <layout.h>
#include "statuslabel.h" #include "statuslabel.h"
#include "filehandle.h" #include "filehandle.h"
@ -42,7 +42,7 @@ StatusLabel::StatusLabel(PlaylistInterface *playlist, TQWidget *parent, const ch
{ {
TQFrame *trackAndPlaylist = new TQFrame(this); TQFrame *trackAndPlaylist = new TQFrame(this);
trackAndPlaylist->setFrameStyle(Box | Sunken); trackAndPlaylist->setFrameStyle(Box | Sunken);
trackAndPlaylist->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); trackAndPlaylist->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
// Make sure that we have enough of a margin to suffice for the borders, // Make sure that we have enough of a margin to suffice for the borders,
// hence the "lineWidth() * 2" // hence the "lineWidth() * 2"
@ -53,23 +53,23 @@ StatusLabel::StatusLabel(PlaylistInterface *playlist, TQWidget *parent, const ch
m_playlistLabel = new KSqueezedTextLabel(trackAndPlaylist, "playlistLabel"); m_playlistLabel = new KSqueezedTextLabel(trackAndPlaylist, "playlistLabel");
trackAndPlaylistLayout->addWidget(m_playlistLabel); trackAndPlaylistLayout->addWidget(m_playlistLabel);
m_playlistLabel->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); m_playlistLabel->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
m_playlistLabel->setTextFormat(PlainText); m_playlistLabel->setTextFormat(PlainText);
m_playlistLabel->tqsetAlignment(AlignLeft | AlignVCenter); m_playlistLabel->setAlignment(AlignLeft | AlignVCenter);
m_trackLabel = new KSqueezedTextLabel(trackAndPlaylist, "trackLabel"); m_trackLabel = new KSqueezedTextLabel(trackAndPlaylist, "trackLabel");
trackAndPlaylistLayout->addWidget(m_trackLabel); trackAndPlaylistLayout->addWidget(m_trackLabel);
m_trackLabel->tqsetAlignment(AlignRight | AlignVCenter); m_trackLabel->setAlignment(AlignRight | AlignVCenter);
m_trackLabel->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); m_trackLabel->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
m_trackLabel->setTextFormat(PlainText); m_trackLabel->setTextFormat(PlainText);
trackAndPlaylistLayout->addSpacing(5); trackAndPlaylistLayout->addSpacing(5);
m_itemTimeLabel = new TQLabel(this); m_itemTimeLabel = new TQLabel(this);
TQFontMetrics fontMetrics(font()); TQFontMetrics fontMetrics(font());
m_itemTimeLabel->tqsetAlignment(AlignCenter); m_itemTimeLabel->setAlignment(AlignCenter);
m_itemTimeLabel->setMinimumWidth(fontMetrics.boundingRect("000:00 / 000:00").width()); m_itemTimeLabel->setMinimumWidth(fontMetrics.boundingRect("000:00 / 000:00").width());
m_itemTimeLabel->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding); m_itemTimeLabel->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding);
m_itemTimeLabel->setFrameStyle(Box | Sunken); m_itemTimeLabel->setFrameStyle(Box | Sunken);
m_itemTimeLabel->installEventFilter(this); m_itemTimeLabel->installEventFilter(this);
@ -78,7 +78,7 @@ StatusLabel::StatusLabel(PlaylistInterface *playlist, TQWidget *parent, const ch
TQHBox *jumpBox = new TQHBox(this); TQHBox *jumpBox = new TQHBox(this);
jumpBox->setFrameStyle(Box | Sunken); jumpBox->setFrameStyle(Box | Sunken);
jumpBox->tqsetSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Minimum); jumpBox->setSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Minimum);
TQPushButton *jumpButton = new TQPushButton(jumpBox); TQPushButton *jumpButton = new TQPushButton(jumpBox);
jumpButton->setPixmap(SmallIcon("up")); jumpButton->setPixmap(SmallIcon("up"));

@ -118,7 +118,7 @@ protected:
inline char hashStringAccess(const TQString &in, int index) inline char hashStringAccess(const TQString &in, int index)
{ {
return in.tqunicode()[index].cell(); return in.unicode()[index].cell();
} }
inline char hashStringAccess(const TQCString &in, int index) inline char hashStringAccess(const TQCString &in, int index)

@ -31,8 +31,8 @@
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqvaluevector.h> #include <tqvaluevector.h>
#include <tqstylesheet.h> #include <stylesheet.h>
#include <tqpalette.h> #include <palette.h>
#include <netwm.h> #include <netwm.h>
@ -370,7 +370,7 @@ void SystemTray::createPopup()
for(unsigned i = 0; i < m_labels.capacity(); ++i) { for(unsigned i = 0; i < m_labels.capacity(); ++i) {
m_labels[i] = new FlickerFreeLabel(" ", infoBox); m_labels[i] = new FlickerFreeLabel(" ", infoBox);
m_labels[i]->tqsetAlignment(AlignRight | AlignVCenter); m_labels[i]->setAlignment(AlignRight | AlignVCenter);
} }
// We don't want an autodelete popup. There are times when it will need // We don't want an autodelete popup. There are times when it will need
@ -385,7 +385,7 @@ void SystemTray::createPopup()
int labelCount = 0; int labelCount = 0;
TQString title = TQStyleSheet::escape(playingInfo->title()); TQString title = TQStyleSheet::escape(playingInfo->title());
m_labels[labelCount++]->setText(TQString("<qt><nobr><h2>%1</h2></nobr><qt>").tqarg(title)); m_labels[labelCount++]->setText(TQString("<qt><nobr><h2>%1</h2></nobr><qt>").arg(title));
if(!playingInfo->artist().isEmpty()) if(!playingInfo->artist().isEmpty())
m_labels[labelCount++]->setText(playingInfo->artist()); m_labels[labelCount++]->setText(playingInfo->artist());
@ -393,8 +393,8 @@ void SystemTray::createPopup()
if(!playingInfo->album().isEmpty()) { if(!playingInfo->album().isEmpty()) {
TQString album = TQStyleSheet::escape(playingInfo->album()); TQString album = TQStyleSheet::escape(playingInfo->album());
TQString s = playingInfo->year() > 0 TQString s = playingInfo->year() > 0
? TQString("<qt><nobr>%1 (%2)</nobr></qt>").tqarg(album).tqarg(playingInfo->year()) ? TQString("<qt><nobr>%1 (%2)</nobr></qt>").arg(album).arg(playingInfo->year())
: TQString("<qt><nobr>%1</nobr></qt>").tqarg(album); : TQString("<qt><nobr>%1</nobr></qt>").arg(album);
m_labels[labelCount++]->setText(s); m_labels[labelCount++]->setText(s);
} }
@ -531,8 +531,8 @@ void SystemTray::setToolTip(const TQString &tip, const TQPixmap &cover)
TQString html = i18n("%1 is Cover Art, %2 is the playing track, %3 is the appname", TQString html = i18n("%1 is Cover Art, %2 is the playing track, %3 is the appname",
"<center><table cellspacing=\"2\"><tr><td valign=\"middle\">%1</td>" "<center><table cellspacing=\"2\"><tr><td valign=\"middle\">%1</td>"
"<td valign=\"middle\">%2</td></tr></table><em>%3</em></center>"); "<td valign=\"middle\">%2</td></tr></table><em>%3</em></center>");
html = html.tqarg("<img valign=\"middle\" src=\"tipCover\""); html = html.arg("<img valign=\"middle\" src=\"tipCover\"");
html = html.tqarg(TQString("<nobr>%1</nobr>").tqarg(tip), i18n("JuK")); html = html.arg(TQString("<nobr>%1</nobr>").arg(tip), i18n("JuK"));
TQToolTip::add(this, html); TQToolTip::add(this, html);
} }

@ -90,7 +90,7 @@ private:
void createButtonBox(TQWidget *parent); void createButtonBox(TQWidget *parent);
// Creates the widget tqlayout for the popup, returning the TQVBox that // Creates the widget layout for the popup, returning the TQVBox that
// holds the text labels. Uses buttonsToLeft() to figure out which // holds the text labels. Uses buttonsToLeft() to figure out which
// order to create them in. @p file is used to grab the cover. // order to create them in. @p file is used to grab the cover.
TQVBox *createPopupLayout(TQWidget *parent, const FileHandle &file); TQVBox *createPopupLayout(TQWidget *parent, const FileHandle &file);

@ -33,7 +33,7 @@
#include <tqlabel.h> #include <tqlabel.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlayout.h> #include <layout.h>
#include <tqdir.h> #include <tqdir.h>
#include <tqvalidator.h> #include <tqvalidator.h>
#include <tqtooltip.h> #include <tqtooltip.h>
@ -90,11 +90,11 @@ public:
m_width(-1) {} m_width(-1) {}
void setWidth(int w = -1) void setWidth(int w = -1)
{ {
m_width = w == -1 ? TQHBoxLayout::tqminimumSize().width() : w; m_width = w == -1 ? TQHBoxLayout::minimumSize().width() : w;
} }
virtual TQSize tqminimumSize() const virtual TQSize minimumSize() const
{ {
TQSize s = TQHBoxLayout::tqminimumSize(); TQSize s = TQHBoxLayout::minimumSize();
s.setWidth(m_width); s.setWidth(m_width);
return s; return s;
} }
@ -481,16 +481,16 @@ void TagEditor::setupLayout()
static const int horizontalSpacing = 12; static const int horizontalSpacing = 12;
static const int verticalSpacing = 2; static const int verticalSpacing = 2;
TQHBoxLayout *tqlayout = new TQHBoxLayout(this, 6, horizontalSpacing); TQHBoxLayout *layout = new TQHBoxLayout(this, 6, horizontalSpacing);
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// define two columns of the bottem tqlayout // define two columns of the bottem layout
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
TQVBoxLayout *leftColumnLayout = new TQVBoxLayout(tqlayout, verticalSpacing); TQVBoxLayout *leftColumnLayout = new TQVBoxLayout(layout, verticalSpacing);
TQVBoxLayout *rightColumnLayout = new TQVBoxLayout(tqlayout, verticalSpacing); TQVBoxLayout *rightColumnLayout = new TQVBoxLayout(layout, verticalSpacing);
tqlayout->setStretchFactor(leftColumnLayout, 2); layout->setStretchFactor(leftColumnLayout, 2);
tqlayout->setStretchFactor(rightColumnLayout, 3); layout->setStretchFactor(rightColumnLayout, 3);
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// put stuff in the left column -- all of the field names are class wide // put stuff in the left column -- all of the field names are class wide
@ -560,7 +560,7 @@ void TagEditor::setupLayout()
// addItem(i18n("Length:"), m_lengthBox, trackRowLayout); // addItem(i18n("Length:"), m_lengthBox, trackRowLayout);
m_lengthBox->setMinimumWidth(fontMetrics().width("00:00") + trackRowLayout->spacing()); m_lengthBox->setMinimumWidth(fontMetrics().width("00:00") + trackRowLayout->spacing());
m_lengthBox->setMaximumWidth(50); m_lengthBox->setMaximumWidth(50);
m_lengthBox->tqsetAlignment(TQt::AlignRight); m_lengthBox->setAlignment(TQt::AlignRight);
m_lengthBox->setReadOnly(true); m_lengthBox->setReadOnly(true);
trackRowLayout->addWidget(addHidden(m_lengthBox)); trackRowLayout->addWidget(addHidden(m_lengthBox));
@ -572,7 +572,7 @@ void TagEditor::setupLayout()
// addItem(i18n("Bitrate:"), m_bitrateBox, trackRowLayout); // addItem(i18n("Bitrate:"), m_bitrateBox, trackRowLayout);
m_bitrateBox->setMinimumWidth(fontMetrics().width("000") + trackRowLayout->spacing()); m_bitrateBox->setMinimumWidth(fontMetrics().width("000") + trackRowLayout->spacing());
m_bitrateBox->setMaximumWidth(50); m_bitrateBox->setMaximumWidth(50);
m_bitrateBox->tqsetAlignment(TQt::AlignRight); m_bitrateBox->setAlignment(TQt::AlignRight);
m_bitrateBox->setReadOnly(true); m_bitrateBox->setReadOnly(true);
trackRowLayout->addWidget(addHidden(m_bitrateBox)); trackRowLayout->addWidget(addHidden(m_bitrateBox));
@ -711,9 +711,9 @@ void TagEditor::saveChangesPrompt()
} }
} }
void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlayout, const TQString &iconName) void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *layout, const TQString &iconName)
{ {
if(!item || !tqlayout) if(!item || !layout)
return; return;
TQLabel *label = new TQLabel(item, text, this); TQLabel *label = new TQLabel(item, text, this);
@ -727,14 +727,14 @@ void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlay
label->setMinimumHeight(enableBox->height()); label->setMinimumHeight(enableBox->height());
if(tqlayout->direction() == TQBoxLayout::LeftToRight) { if(layout->direction() == TQBoxLayout::LeftToRight) {
tqlayout->addWidget(iconLabel); layout->addWidget(iconLabel);
tqlayout->addWidget(label); layout->addWidget(label);
tqlayout->addWidget(item); layout->addWidget(item);
tqlayout->addWidget(enableBox); layout->addWidget(enableBox);
} }
else { else {
TQHBoxLayout *l = new TQHBoxLayout(tqlayout); TQHBoxLayout *l = new TQHBoxLayout(layout);
l->addWidget(iconLabel); l->addWidget(iconLabel);
l->addWidget(label); l->addWidget(label);
@ -745,7 +745,7 @@ void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlay
l->addWidget(enableBox); l->addWidget(enableBox);
l->setStretchFactor(enableBox, 0); l->setStretchFactor(enableBox, 0);
tqlayout->addWidget(item); layout->addWidget(item);
} }
enableBox->hide(); enableBox->hide();

@ -67,10 +67,10 @@ private:
void save(const PlaylistItemList &list); void save(const PlaylistItemList &list);
void saveChangesPrompt(); void saveChangesPrompt();
/** /**
* Adds an item to JuK's tagging tqlayout. This handles the creation and * Adds an item to JuK's tagging layout. This handles the creation and
* placement of the "enable" box as well. * placement of the "enable" box as well.
*/ */
void addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlayout, const TQString &iconName = TQString()); void addItem(const TQString &text, TQWidget *item, TQBoxLayout *layout, const TQString &iconName = TQString());
/** /**
* Adds a widget to m_hideList and returns that widget. * Adds a widget to m_hideList and returns that widget.

@ -136,7 +136,7 @@ Note that the order in which the schemes appear in the list is relevant, since t
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>130</height> <height>130</height>

@ -69,12 +69,12 @@ TagRenamerOptions::TagRenamerOptions(const CategoryID &category)
if(categoryNum > 0) if(categoryNum > 0)
typeKey.append(TQString::number(categoryNum)); typeKey.append(TQString::number(categoryNum));
setSuffix(config.readEntry(TQString("%1Suffix").tqarg(typeKey))); setSuffix(config.readEntry(TQString("%1Suffix").arg(typeKey)));
setPrefix(config.readEntry(TQString("%1Prefix").tqarg(typeKey))); setPrefix(config.readEntry(TQString("%1Prefix").arg(typeKey)));
// Default the emptyAction to ignoring the empty tag. // Default the emptyAction to ignoring the empty tag.
const TQString emptyAction = config.readEntry(TQString("%1EmptyAction").tqarg(typeKey)).lower(); const TQString emptyAction = config.readEntry(TQString("%1EmptyAction").arg(typeKey)).lower();
setEmptyAction(IgnoreEmptyTag); setEmptyAction(IgnoreEmptyTag);
if(emptyAction == "forceemptyinclude") if(emptyAction == "forceemptyinclude")
@ -82,9 +82,9 @@ TagRenamerOptions::TagRenamerOptions(const CategoryID &category)
else if(emptyAction == "usereplacementvalue") else if(emptyAction == "usereplacementvalue")
setEmptyAction(UseReplacementValue); setEmptyAction(UseReplacementValue);
setEmptyText(config.readEntry(TQString("%1EmptyText").tqarg(typeKey))); setEmptyText(config.readEntry(TQString("%1EmptyText").arg(typeKey)));
setTrackWidth(config.readUnsignedNumEntry(TQString("%1TrackWidth").tqarg(typeKey))); setTrackWidth(config.readUnsignedNumEntry(TQString("%1TrackWidth").arg(typeKey)));
setDisabled(config.readBoolEntry(TQString("%1Disabled").tqarg(typeKey), disabled)); setDisabled(config.readBoolEntry(TQString("%1Disabled").arg(typeKey), disabled));
} }
TQString TagRenamerOptions::tagTypeText(TagType type, bool translate) TQString TagRenamerOptions::tagTypeText(TagType type, bool translate)
@ -117,8 +117,8 @@ void TagRenamerOptions::saveConfig(unsigned categoryNum) const
KConfigGroup config(KGlobal::config(), "FileRenamer"); KConfigGroup config(KGlobal::config(), "FileRenamer");
config.writeEntry(TQString("%1Suffix").tqarg(typeKey), suffix()); config.writeEntry(TQString("%1Suffix").arg(typeKey), suffix());
config.writeEntry(TQString("%1Prefix").tqarg(typeKey), prefix()); config.writeEntry(TQString("%1Prefix").arg(typeKey), prefix());
TQString emptyStr; TQString emptyStr;
@ -136,12 +136,12 @@ void TagRenamerOptions::saveConfig(unsigned categoryNum) const
break; break;
} }
config.writeEntry(TQString("%1EmptyAction").tqarg(typeKey), emptyStr); config.writeEntry(TQString("%1EmptyAction").arg(typeKey), emptyStr);
config.writeEntry(TQString("%1EmptyText").tqarg(typeKey), emptyText()); config.writeEntry(TQString("%1EmptyText").arg(typeKey), emptyText());
config.writeEntry(TQString("%1Disabled").tqarg(typeKey), disabled()); config.writeEntry(TQString("%1Disabled").arg(typeKey), disabled());
if(category() == Track) if(category() == Track)
config.writeEntry(TQString("%1TrackWidth").tqarg(typeKey), trackWidth()); config.writeEntry(TQString("%1TrackWidth").arg(typeKey), trackWidth());
config.sync(); config.sync();
} }

@ -176,7 +176,7 @@ bool TagTransactionManager::processChangeList(bool undo)
item->file().setFile(tag->fileName()); item->file().setFile(tag->fileName());
item->refreshFromDisk(); item->refreshFromDisk();
item->tqrepaint(); item->repaint();
item->playlist()->dataChanged(); item->playlist()->dataChanged();
item->playlist()->update(); item->playlist()->update();
} }

@ -31,7 +31,7 @@
<property name="title"> <property name="title">
<string>File Name</string> <string>File Name</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignTop</set> <set>AlignTop</set>
</property> </property>
<hbox> <hbox>
@ -50,7 +50,7 @@
<property name="text"> <property name="text">
<string></string> <string></string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignLeft</set> <set>AlignVCenter|AlignLeft</set>
</property> </property>
<property name="indent"> <property name="indent">
@ -76,7 +76,7 @@
<property name="title"> <property name="title">
<string>Select Best Possible Match</string> <string>Select Best Possible Match</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignTop</set> <set>AlignTop</set>
</property> </property>
<vbox> <vbox>

@ -52,7 +52,7 @@ void TreeViewItemPlaylist::retag(const TQStringList &files, Playlist *)
if(KMessageBox::warningContinueCancelList( if(KMessageBox::warningContinueCancelList(
this, this,
i18n("You are about to change the %1 on these files.").tqarg(changedTag), i18n("You are about to change the %1 on these files.").arg(changedTag),
files, files,
i18n("Changing Track Tags"), i18n("Changing Track Tags"),
KStdGuiItem::cont(), KStdGuiItem::cont(),

@ -49,7 +49,7 @@ ViewMode::~ViewMode()
void ViewMode::paintCell(PlaylistBox::Item *item, void ViewMode::paintCell(PlaylistBox::Item *item,
TQPainter *painter, TQPainter *painter,
const TQColorGroup &tqcolorGroup, const TQColorGroup &colorGroup,
int column, int width, int) int column, int width, int)
{ {
if(width < item->pixmap(column)->width()) if(width < item->pixmap(column)->width())
@ -79,8 +79,8 @@ void ViewMode::paintCell(PlaylistBox::Item *item,
painter->setPen(oldPen); painter->setPen(oldPen);
painter->fillRect(border, border, width - border * 2, item->height() - border * 2 + 1, painter->fillRect(border, border, width - border * 2, item->height() - border * 2 + 1,
tqcolorGroup.brush(TQColorGroup::Highlight)); colorGroup.brush(TQColorGroup::Highlight));
painter->setPen(tqcolorGroup.highlightedText()); painter->setPen(colorGroup.highlightedText());
} }
else else
painter->eraseRect(0, 0, width, item->height()); painter->eraseRect(0, 0, width, item->height());
@ -224,10 +224,10 @@ CompactViewMode::~CompactViewMode()
void CompactViewMode::paintCell(PlaylistBox::Item *item, void CompactViewMode::paintCell(PlaylistBox::Item *item,
TQPainter *painter, TQPainter *painter,
const TQColorGroup &tqcolorGroup, const TQColorGroup &colorGroup,
int column, int width, int align) int column, int width, int align)
{ {
item->KListViewItem::paintCell(painter, tqcolorGroup, column, width, align); item->KListViewItem::paintCell(painter, colorGroup, column, width, align);
if(item == item->listView()->dropItem()) if(item == item->listView()->dropItem())
paintDropIndicator(painter, width, item->height()); paintDropIndicator(painter, width, item->height());
} }

@ -40,7 +40,7 @@ public:
virtual void paintCell(PlaylistBox::Item *item, virtual void paintCell(PlaylistBox::Item *item,
TQPainter *painter, TQPainter *painter,
const TQColorGroup &tqcolorGroup, const TQColorGroup &colorGroup,
int column, int width, int align); int column, int width, int align);
virtual bool eventFilter(TQObject *watched, TQEvent *e); virtual bool eventFilter(TQObject *watched, TQEvent *e);
@ -106,7 +106,7 @@ public:
virtual void paintCell(PlaylistBox::Item *item, virtual void paintCell(PlaylistBox::Item *item,
TQPainter *painter, TQPainter *painter,
const TQColorGroup &tqcolorGroup, const TQColorGroup &colorGroup,
int column, int width, int align); int column, int width, int align);
virtual void setupItem(PlaylistBox::Item *item) const { item->KListViewItem::setup(); } virtual void setupItem(PlaylistBox::Item *item) const { item->KListViewItem::setup(); }

@ -37,7 +37,7 @@ WebImage::WebImage(const TQString &imageURL, const TQString &thumbURL,
int width, int height) : int width, int height) :
m_imageURL(imageURL), m_imageURL(imageURL),
m_thumbURL(thumbURL), m_thumbURL(thumbURL),
m_size(TQString("\n%1 x %2").tqarg(width).tqarg(height)) m_size(TQString("\n%1 x %2").arg(width).arg(height))
{ {
} }

@ -25,7 +25,7 @@
#include <kurllabel.h> #include <kurllabel.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <tqlayout.h> #include <layout.h>
#include <tqimage.h> #include <tqimage.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
@ -86,15 +86,15 @@ void WebImageFetcherDialog::showCreditURL(const TQString &url)
{ {
// Don't use static member since I'm sure that someday knowing my luck // Don't use static member since I'm sure that someday knowing my luck
// Yahoo will change their mimetype they serve. // Yahoo will change their mimetype they serve.
(void) new KRun(KURL(url), tqtopLevelWidget()); (void) new KRun(KURL(url), topLevelWidget());
} }
void WebImageFetcherDialog::setLayout() void WebImageFetcherDialog::setLayout()
{ {
setCaption(TQString("%1 - %2 (%3)") setCaption(TQString("%1 - %2 (%3)")
.tqarg(m_file.tag()->artist()) .arg(m_file.tag()->artist())
.tqarg(m_file.tag()->album()) .arg(m_file.tag()->album())
.tqarg(m_imageList.size())); .arg(m_imageList.size()));
m_iconWidget->clear(); m_iconWidget->clear();
for(uint i = 0; i < m_imageList.size(); i++) for(uint i = 0; i < m_imageList.size(); i++)
@ -218,7 +218,7 @@ CoverIconViewItem::~CoverIconViewItem()
void CoverIconViewItem::imageData(KIO::Job *, const TQByteArray &data) void CoverIconViewItem::imageData(KIO::Job *, const TQByteArray &data)
{ {
int currentSize = m_buffer.size(); int currentSize = m_buffer.size();
m_buffer.tqresize(currentSize + data.size(), TQGArray::SpeedOptim); m_buffer.resize(currentSize + data.size(), TQGArray::SpeedOptim);
memcpy(&(m_buffer.data()[currentSize]), data.data(), data.size()); memcpy(&(m_buffer.data()[currentSize]), data.data(), data.size());
} }

@ -244,8 +244,8 @@ void Kaboodle::Player::tickerTimeout(void)
if(extension) if(extension)
emit setStatusBarText(i18n("Playing %1 - %2") emit setStatusBarText(i18n("Playing %1 - %2")
.tqarg(current.prettyURL()) .arg(current.prettyURL())
.tqarg(positionString() + "/" + lengthString())); .arg(positionString() + "/" + lengthString()));
} }
updateTitle(); updateTitle();

@ -35,7 +35,7 @@
#include <kstdaction.h> #include <kstdaction.h>
#include <kurldrag.h> #include <kurldrag.h>
#include <tqdragobject.h> #include <tqdragobject.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlcdnumber.h> #include <tqlcdnumber.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <kkeydialog.h> #include <kkeydialog.h>

@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <kvideowidget.h> #include <kvideowidget.h>
#include <tqdragobject.h> #include <tqdragobject.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqtoolbutton.h> #include <tqtoolbutton.h>
#include <tqtooltip.h> #include <tqtooltip.h>
@ -80,10 +80,10 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
sliderBox->setFocusPolicy(TQ_ClickFocus); sliderBox->setFocusPolicy(TQ_ClickFocus);
sliderBox->setAcceptDrops(true); sliderBox->setAcceptDrops(true);
TQHBoxLayout *tqlayout = new TQHBoxLayout(sliderBox); TQHBoxLayout *layout = new TQHBoxLayout(sliderBox);
tqlayout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
tqlayout->setMargin(0); layout->setMargin(0);
tqlayout->setAutoAdd(true); layout->setAutoAdd(true);
playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQT_SLOT(play()), sliderBox); playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQT_SLOT(play()), sliderBox);
pauseButton = createButton(BarIconSet("player_pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox); pauseButton = createButton(BarIconSet("player_pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox);
@ -99,7 +99,7 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
labelFont.setBold(true); labelFont.setBold(true);
TQFontMetrics labelFontMetrics(labelFont); TQFontMetrics labelFontMetrics(labelFont);
elapsedLabel->setFont(labelFont); elapsedLabel->setFont(labelFont);
elapsedLabel->tqsetAlignment(AlignCenter | AlignVCenter | ExpandTabs); elapsedLabel->setAlignment(AlignCenter | AlignVCenter | ExpandTabs);
elapsedLabel->setFixedHeight(labelFontMetrics.height()); elapsedLabel->setFixedHeight(labelFontMetrics.height());
elapsedLabel->setMinimumWidth(labelFontMetrics.width("00:00")); elapsedLabel->setMinimumWidth(labelFontMetrics.width("00:00"));

@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <kurl.h> #include <kurl.h>
#include <tqevent.h> #include <tqevent.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlcdnumber.h> #include <tqlcdnumber.h>
#include <tqwidget.h> #include <tqwidget.h>

@ -45,7 +45,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>

@ -21,7 +21,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout5</cstring> <cstring>layout5</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -74,7 +74,7 @@
<property name="text"> <property name="text">
<string>Track:</string> <string>Track:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -85,7 +85,7 @@
<property name="text"> <property name="text">
<string>Comment:</string> <string>Comment:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -101,7 +101,7 @@
<property name="text"> <property name="text">
<string>Title:</string> <string>Title:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -114,7 +114,7 @@
<property name="text"> <property name="text">
<string>Artist:</string> <string>Artist:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -153,7 +153,7 @@
<property name="text"> <property name="text">
<string>Artist:</string> <string>Artist:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -166,7 +166,7 @@
<property name="text"> <property name="text">
<string>Album:</string> <string>Album:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -192,7 +192,7 @@
<property name="text"> <property name="text">
<string>Year:</string> <string>Year:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -205,7 +205,7 @@
<property name="text"> <property name="text">
<string>Genre:</string> <string>Genre:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -223,7 +223,7 @@
<property name="text"> <property name="text">
<string>Comment:</string> <string>Comment:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -244,7 +244,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>
@ -267,7 +267,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout4</cstring> <cstring>layout4</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -283,7 +283,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>121</width> <width>121</width>
<height>20</height> <height>20</height>

@ -70,7 +70,7 @@ void EncodeFileImp::encode(){
int counter(1); int counter(1);
KMessageBox::information(this, KMessageBox::information(this,
i18n("%1 Job(s) have been started. You can watch their progress in the " \ i18n("%1 Job(s) have been started. You can watch their progress in the " \
"jobs section.").tqarg(counter), "jobs section.").arg(counter),
i18n("Jobs have started"), i18n("Jobs have started")); i18n("Jobs have started"), i18n("Jobs have started"));
} }

@ -31,7 +31,7 @@
#include <kurl.h> #include <kurl.h>
#include <kdebug.h> #include <kdebug.h>
#include <knotifyclient.h> #include <knotifyclient.h>
#include <tqtextedit.h> #include <textedit.h>
#include <kinputdialog.h> #include <kinputdialog.h>
/** /**
@ -53,7 +53,7 @@ void Encoder::loadSettings() {
EncoderPrefs* Encoder::loadEncoder( int encoder ){ EncoderPrefs* Encoder::loadEncoder( int encoder ){
EncoderPrefs* prefs; EncoderPrefs* prefs;
TQString currentEncoderGroup = TQString("Encoder_%1").tqarg(encoder); TQString currentEncoderGroup = TQString("Encoder_%1").arg(encoder);
prefs = EncoderPrefs::prefs(currentEncoderGroup); prefs = EncoderPrefs::prefs(currentEncoderGroup);
if ( !EncoderPrefs::hasPrefs(currentEncoderGroup) ) { if ( !EncoderPrefs::hasPrefs(currentEncoderGroup) ) {
KMessageBox::sorry(0, i18n("No encoder has been selected.\nPlease select an encoder in the configuration."), i18n("No Encoder Selected")); KMessageBox::sorry(0, i18n("No encoder has been selected.\nPlease select an encoder in the configuration."), i18n("No Encoder Selected"));
@ -132,8 +132,8 @@ void Encoder::removeJob(int id ) {
* @param job the job to encode. * @param job the job to encode.
*/ */
void Encoder::encodeWav(Job *job ) { void Encoder::encodeWav(Job *job ) {
emit(addJob(job, i18n("Encoding (%1): %2 - %3").tqarg(loadEncoder(job->encoder)->extension()) emit(addJob(job, i18n("Encoding (%1): %2 - %3").arg(loadEncoder(job->encoder)->extension())
.tqarg(job->track_artist).tqarg(job->track_title))); .arg(job->track_artist).arg(job->track_title)));
pendingJobs.append(job); pendingJobs.append(job);
tendToNewJobs(); tendToNewJobs();
} }
@ -252,12 +252,12 @@ void Encoder::receivedThreadOutput(KProcess *process, char *buffer, int length )
reportCount++; reportCount++;
return; return;
} }
//qDebug(TQString("Pre cropped: %1").tqarg(output).latin1()); //qDebug(TQString("Pre cropped: %1").arg(output).latin1());
output = output.mid(output.find('%')-loadEncoder(job->encoder)->percentLength(),2); output = output.mid(output.find('%')-loadEncoder(job->encoder)->percentLength(),2);
//qDebug(TQString("Post cropped: %1").tqarg(output).latin1()); //qDebug(TQString("Post cropped: %1").arg(output).latin1());
bool conversionSuccessfull = false; bool conversionSuccessfull = false;
int percent = output.toInt(&conversionSuccessfull); int percent = output.toInt(&conversionSuccessfull);
//qDebug(TQString("number: %1").tqarg(percent).latin1()); //qDebug(TQString("number: %1").arg(percent).latin1());
if ( percent >= 0 && percent < 100 && conversionSuccessfull ) { if ( percent >= 0 && percent < 100 && conversionSuccessfull ) {
emit(updateProgress(job->id, percent)); emit(updateProgress(job->id, percent));
} }
@ -284,7 +284,7 @@ void Encoder::jobDone(KProcess *process ) {
bool showDebugBox = false; bool showDebugBox = false;
if ( process->exitStatus() == 127 ) { if ( process->exitStatus() == 127 ) {
KMessageBox::sorry(0, i18n("The selected encoder was not found.\nThe wav file has been removed. Command was: %1").tqarg(job->errorString), i18n("Encoding Failed")); KMessageBox::sorry(0, i18n("The selected encoder was not found.\nThe wav file has been removed. Command was: %1").arg(job->errorString), i18n("Encoding Failed"));
emit(updateProgress(job->id, -1)); emit(updateProgress(job->id, -1));
} }
else if ( TQFile::exists(job->newLocation) ) { else if ( TQFile::exists(job->newLocation) ) {

@ -131,7 +131,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -140,7 +140,7 @@
</spacer> </spacer>
<widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3"> <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -188,7 +188,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>30</height> <height>30</height>
@ -241,7 +241,7 @@
<property name="text"> <property name="text">
<string>Lowest</string> <string>Lowest</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -252,7 +252,7 @@
<property name="text"> <property name="text">
<string>Normal</string> <string>Normal</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>

@ -93,7 +93,7 @@ void EncoderConfigImp::loadEncoderList(){
int lastKnownEncoder = Prefs::lastKnownEncoder(); int lastKnownEncoder = Prefs::lastKnownEncoder();
lastKnownEncoder++; lastKnownEncoder++;
for( int i=0; i<=lastKnownEncoder; i++ ){ for( int i=0; i<=lastKnownEncoder; i++ ){
TQString currentGroup = TQString("Encoder_%1").tqarg(i); TQString currentGroup = TQString("Encoder_%1").arg(i);
if(EncoderPrefs::hasPrefs(currentGroup)){ if(EncoderPrefs::hasPrefs(currentGroup)){
lastEncoder = i; lastEncoder = i;
EncoderPrefs *encPrefs = EncoderPrefs::prefs(currentGroup); EncoderPrefs *encPrefs = EncoderPrefs::prefs(currentGroup);
@ -123,7 +123,7 @@ void EncoderConfigImp::addEncoderSlot(){
uint number = 0; uint number = 0;
TQString groupName; TQString groupName;
while(!foundEmptyGroup){ while(!foundEmptyGroup){
groupName = TQString("Encoder_%1").tqarg(number); groupName = TQString("Encoder_%1").arg(number);
if(!EncoderPrefs::hasPrefs(groupName)) if(!EncoderPrefs::hasPrefs(groupName))
foundEmptyGroup = true; foundEmptyGroup = true;
else else

@ -28,7 +28,7 @@
<property name="name"> <property name="name">
<cstring>kcfg_encoderName</cstring> <cstring>kcfg_encoderName</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>320</width> <width>320</width>
<height>0</height> <height>0</height>
@ -80,7 +80,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>

@ -63,7 +63,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>

@ -65,7 +65,7 @@
<string>Regular expression used on all file names. For example using selection " " and replace with "_" would replace all the spaces with underlines. <string>Regular expression used on all file names. For example using selection " " and replace with "_" would replace all the spaces with underlines.
</string> </string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter</set> <set>WordBreak|AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -194,7 +194,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout1</cstring> <cstring>layout1</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -240,7 +240,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>

@ -46,7 +46,7 @@
<property name="text"> <property name="text">
<string>Comment:</string> <string>Comment:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -62,7 +62,7 @@
<property name="text"> <property name="text">
<string>Title:</string> <string>Title:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -80,7 +80,7 @@
<property name="text"> <property name="text">
<string>Artist:</string> <string>Artist:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -114,7 +114,7 @@
<property name="text"> <property name="text">
<string>Artist:</string> <string>Artist:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -127,7 +127,7 @@
<property name="text"> <property name="text">
<string>Album:</string> <string>Album:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -153,7 +153,7 @@
<property name="text"> <property name="text">
<string>Year:</string> <string>Year:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -166,7 +166,7 @@
<property name="text"> <property name="text">
<string>Genre:</string> <string>Genre:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -184,7 +184,7 @@
<property name="text"> <property name="text">
<string>Comment:</string> <string>Comment:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -205,7 +205,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>100</height> <height>100</height>
@ -214,7 +214,7 @@
</spacer> </spacer>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -45,7 +45,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -106,7 +106,7 @@
<property name="text"> <property name="text">
<string>No jobs are in the queue</string> <string>No jobs are in the queue</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">

@ -64,7 +64,7 @@ JobQueImp::JobQueImp( TQWidget* parent, const char* name) :
*/ */
TQString JobQueImp::getStringFromNumber(int number){ TQString JobQueImp::getStringFromNumber(int number){
if(number > highestNumber){ if(number > highestNumber){
int diff = TQString("%1").tqarg(number).length() - TQString("%1").tqarg(highestNumber).length(); int diff = TQString("%1").arg(number).length() - TQString("%1").arg(highestNumber).length();
highestNumber = number; highestNumber = number;
if(diff > 0){ if(diff > 0){
// We have to update all of the cells. // We have to update all of the cells.
@ -77,7 +77,7 @@ TQString JobQueImp::getStringFromNumber(int number){
} }
TQString buffer = ""; TQString buffer = "";
uint newLength = TQString("%1").tqarg(highestNumber).length() - TQString("%1").tqarg(number).length(); uint newLength = TQString("%1").arg(highestNumber).length() - TQString("%1").arg(number).length();
for(uint i=0; i < newLength; i++) for(uint i=0; i < newLength; i++)
buffer += "0"; buffer += "0";
return buffer; return buffer;
@ -92,9 +92,9 @@ void JobQueImp::addJob(Job*job, const TQString &name ){
if(!job) if(!job)
return; return;
job->id = ++currentId; job->id = ++currentId;
QueListViewItem *currentItem = new QueListViewItem(todoQue, TQString("%1%2").tqarg(getStringFromNumber(currentId)).tqarg(currentId), "0", name); QueListViewItem *currentItem = new QueListViewItem(todoQue, TQString("%1%2").arg(getStringFromNumber(currentId)).arg(currentId), "0", name);
currentItem->setPixmap(ICON_LOC, SmallIcon("player_pause", currentItem->height()-2)); currentItem->setPixmap(ICON_LOC, SmallIcon("player_pause", currentItem->height()-2));
queLabel->setText(i18n("Number of jobs in the queue: %1").tqarg(todoQue->childCount())); queLabel->setText(i18n("Number of jobs in the queue: %1").arg(todoQue->childCount()));
} }
/** /**
@ -106,7 +106,7 @@ void JobQueImp::updateProgress(int id, int progress){
int currentJobCount = numberOfJobsNotFinished(); int currentJobCount = numberOfJobsNotFinished();
QueListViewItem * currentItem = (QueListViewItem*)todoQue->firstChild(); QueListViewItem * currentItem = (QueListViewItem*)todoQue->firstChild();
TQString buffer = getStringFromNumber(id); TQString buffer = getStringFromNumber(id);
buffer += TQString("%1").tqarg(id); buffer += TQString("%1").arg(id);
// Find the current item // Find the current item
while( currentItem != NULL ){ while( currentItem != NULL ){
@ -124,7 +124,7 @@ void JobQueImp::updateProgress(int id, int progress){
return; return;
currentItem->percentDone = progress; currentItem->percentDone = progress;
currentItem->tqrepaint(); currentItem->repaint();
// Update the icon if needed // Update the icon if needed
if(progress > 0 && progress < 100 && !currentItem->progressing ){ if(progress > 0 && progress < 100 && !currentItem->progressing ){
@ -158,7 +158,7 @@ bool JobQueImp::removeJob(QueListViewItem *item, bool kill, bool prompt){
if(!item) if(!item)
return false; return false;
if(item->percentDone < 100 && item->percentDone > -1 && (prompt && KMessageBox::questionYesNo(this, i18n("KAudioCreator has not finished %1. Remove anyway?").tqarg(item->text(HEADER_DESCRIPTION)), i18n("Unfinished Job in Queue"), KStdGuiItem::del(), i18n("Keep")) if(item->percentDone < 100 && item->percentDone > -1 && (prompt && KMessageBox::questionYesNo(this, i18n("KAudioCreator has not finished %1. Remove anyway?").arg(item->text(HEADER_DESCRIPTION)), i18n("Unfinished Job in Queue"), KStdGuiItem::del(), i18n("Keep"))
== KMessageBox::No )) == KMessageBox::No ))
return false; return false;
@ -180,7 +180,7 @@ bool JobQueImp::removeJob(QueListViewItem *item, bool kill, bool prompt){
currentId = 0; currentId = 0;
} }
else else
queLabel->setText(i18n("Number of jobs in the queue: %1").tqarg(todoQue->childCount())); queLabel->setText(i18n("Number of jobs in the queue: %1").arg(todoQue->childCount()));
return true; return true;
} }
@ -248,7 +248,7 @@ void JobQueImp::clearDoneJobs(){
currentId = 0; currentId = 0;
} }
else else
queLabel->setText(i18n("Number of jobs in the queue: %1").tqarg(todoQue->childCount())); queLabel->setText(i18n("Number of jobs in the queue: %1").arg(todoQue->childCount()));
} }
/** /**
@ -270,7 +270,7 @@ int JobQueImp::numberOfJobsNotFinished(){
} }
/** /**
* The tqrepaint function overloaded so that we can have a built in progressbar. * The repaint function overloaded so that we can have a built in progressbar.
*/ */
void QueListViewItem::paintCell (TQPainter * p,const TQColorGroup &cg,int column, void QueListViewItem::paintCell (TQPainter * p,const TQColorGroup &cg,int column,
int width,int align){ int width,int align){

@ -92,7 +92,7 @@ KAudioCreator::KAudioCreator( TQWidget* parent, const char* name) :
TQT_SLOT( startSession() ), actionCollection(), "rip_selected" ); TQT_SLOT( startSession() ), actionCollection(), "rip_selected" );
rip->setEnabled( false ); rip->setEnabled( false );
connect( jobQue, TQT_SIGNAL( removeJob(int) ), TQT_TQOBJECT(this), TQT_SLOT( updatetqStatus() ) ); connect( jobQue, TQT_SIGNAL( removeJob(int) ), TQT_TQOBJECT(this), TQT_SLOT( updateStatus() ) );
connect( jobQue, TQT_SIGNAL( removeJob(int) ), TQT_TQOBJECT(ripper), TQT_SLOT( removeJob(int) ) ); connect( jobQue, TQT_SIGNAL( removeJob(int) ), TQT_TQOBJECT(ripper), TQT_SLOT( removeJob(int) ) );
connect( jobQue, TQT_SIGNAL( removeJob(int) ), TQT_TQOBJECT(encoder), TQT_SLOT( removeJob(int)) ); connect( jobQue, TQT_SIGNAL( removeJob(int) ), TQT_TQOBJECT(encoder), TQT_SLOT( removeJob(int)) );
@ -100,11 +100,11 @@ KAudioCreator::KAudioCreator( TQWidget* parent, const char* name) :
connect( ripper, TQT_SIGNAL( addJob(Job*, const TQString &) ), TQT_TQOBJECT(jobQue), TQT_SLOT( addJob(Job*, const TQString &)) ); connect( ripper, TQT_SIGNAL( addJob(Job*, const TQString &) ), TQT_TQOBJECT(jobQue), TQT_SLOT( addJob(Job*, const TQString &)) );
connect( ripper, TQT_SIGNAL( eject(const TQString &) ) , TQT_TQOBJECT(tracks), TQT_SLOT( ejectDevice(const TQString &)) ); connect( ripper, TQT_SIGNAL( eject(const TQString &) ) , TQT_TQOBJECT(tracks), TQT_SLOT( ejectDevice(const TQString &)) );
connect( ripper, TQT_SIGNAL( encodeWav(Job *) ) , TQT_TQOBJECT(encoder), TQT_SLOT( encodeWav(Job *)) ); connect( ripper, TQT_SIGNAL( encodeWav(Job *) ) , TQT_TQOBJECT(encoder), TQT_SLOT( encodeWav(Job *)) );
connect( ripper, TQT_SIGNAL( jobsChanged() ) , TQT_TQOBJECT(this), TQT_SLOT( updatetqStatus() ) ); connect( ripper, TQT_SIGNAL( jobsChanged() ) , TQT_TQOBJECT(this), TQT_SLOT( updateStatus() ) );
connect( encoder, TQT_SIGNAL( updateProgress(int, int) ) , TQT_TQOBJECT(jobQue), TQT_SLOT( updateProgress(int,int)) ); connect( encoder, TQT_SIGNAL( updateProgress(int, int) ) , TQT_TQOBJECT(jobQue), TQT_SLOT( updateProgress(int,int)) );
connect( encoder, TQT_SIGNAL( addJob(Job*, const TQString&)), TQT_TQOBJECT(jobQue), TQT_SLOT( addJob(Job*, const TQString &)) ); connect( encoder, TQT_SIGNAL( addJob(Job*, const TQString&)), TQT_TQOBJECT(jobQue), TQT_SLOT( addJob(Job*, const TQString &)) );
connect( encoder, TQT_SIGNAL( jobsChanged() ) , TQT_TQOBJECT(this), TQT_SLOT( updatetqStatus() ) ); connect( encoder, TQT_SIGNAL( jobsChanged() ) , TQT_TQOBJECT(this), TQT_SLOT( updateStatus() ) );
connect( tracks, TQT_SIGNAL( hasCD(bool) ) , TQT_TQOBJECT(this), TQT_SLOT( hasCD(bool) ) ); connect( tracks, TQT_SIGNAL( hasCD(bool) ) , TQT_TQOBJECT(this), TQT_SLOT( hasCD(bool) ) );
connect( tracks, TQT_SIGNAL( ripTrack(Job *) ), TQT_TQOBJECT(ripper), TQT_SLOT( ripTrack(Job *)) ); connect( tracks, TQT_SIGNAL( ripTrack(Job *) ), TQT_TQOBJECT(ripper), TQT_SLOT( ripTrack(Job *)) );
@ -153,10 +153,10 @@ void KAudioCreator::getRipMenu(){
ripMenu->clear(); ripMenu->clear();
int i=0; int i=0;
TQString currentGroup = TQString("Encoder_%1").tqarg(i); TQString currentGroup = TQString("Encoder_%1").arg(i);
while(EncoderPrefs::hasPrefs(currentGroup)){ while(EncoderPrefs::hasPrefs(currentGroup)){
ripMenu->insertItem(EncoderPrefs::prefs(currentGroup)->encoderName(), i); ripMenu->insertItem(EncoderPrefs::prefs(currentGroup)->encoderName(), i);
currentGroup = TQString("Encoder_%1").tqarg(++i); currentGroup = TQString("Encoder_%1").arg(++i);
} }
} }
@ -170,28 +170,28 @@ void KAudioCreator::hasCD(bool cd){
statusBar()->changeItem(i18n("No Audio CD detected"), 0 ); statusBar()->changeItem(i18n("No Audio CD detected"), 0 );
} }
void KAudioCreator::updatetqStatus() { void KAudioCreator::updateStatus() {
TQString status = i18n("Idle."); TQString status = i18n("Idle.");
TQString rippingtqStatus; TQString rippingStatus;
TQString encodingtqStatus; TQString encodingStatus;
int activeRippingJobs = ripper->activeJobCount(); int activeRippingJobs = ripper->activeJobCount();
int pendingRippingJobs = ripper->pendingJobCount(); int pendingRippingJobs = ripper->pendingJobCount();
int activeEncodingJobs = encoder->activeJobCount(); int activeEncodingJobs = encoder->activeJobCount();
int pendingEncodingJobs = encoder->pendingJobCount(); int pendingEncodingJobs = encoder->pendingJobCount();
if ( activeRippingJobs ) { if ( activeRippingJobs ) {
rippingtqStatus = i18n("Ripping (%1 active, %2 queued)").tqarg( activeRippingJobs ).tqarg( pendingRippingJobs ); rippingStatus = i18n("Ripping (%1 active, %2 queued)").arg( activeRippingJobs ).arg( pendingRippingJobs );
status = rippingtqStatus; status = rippingStatus;
} }
if ( activeEncodingJobs ) { if ( activeEncodingJobs ) {
encodingtqStatus = i18n("Encoding (%1 active, %2 queued)").tqarg( activeEncodingJobs ).tqarg( pendingEncodingJobs ); encodingStatus = i18n("Encoding (%1 active, %2 queued)").arg( activeEncodingJobs ).arg( pendingEncodingJobs );
if ( activeRippingJobs ) { if ( activeRippingJobs ) {
status.append(" : "); status.append(" : ");
status.append( encodingtqStatus ); status.append( encodingStatus );
} }
else { else {
status = encodingtqStatus; status = encodingStatus;
} }
} }

@ -47,7 +47,7 @@ protected:
private slots: private slots:
void showSettings(); void showSettings();
void updatetqStatus(); void updateStatus();
void hasCD(bool); void hasCD(bool);
void configureNotifications(); void configureNotifications();

@ -151,7 +151,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>280</height> <height>280</height>

@ -120,7 +120,7 @@ void Ripper::removeJob(int id){
pendingJobs.remove(job); pendingJobs.remove(job);
delete job; delete job;
} }
//qDebug(TQString("Done removing Job:%1").tqarg(id).latin1()); //qDebug(TQString("Done removing Job:%1").arg(id).latin1());
tendToNewJobs(); tendToNewJobs();
} }
@ -132,7 +132,7 @@ void Ripper::removeJob(int id){
void Ripper::ripTrack(Job *job){ void Ripper::ripTrack(Job *job){
if(!job) if(!job)
return; return;
emit(addJob(job, i18n("Ripping: %1 - %2").tqarg(job->track_artist).tqarg(job->track_title))); emit(addJob(job, i18n("Ripping: %1 - %2").arg(job->track_artist).arg(job->track_title)));
pendingJobs.append(job); pendingJobs.append(job);
tendToNewJobs(); tendToNewJobs();
} }
@ -172,12 +172,12 @@ void Ripper::tendToNewJobs(){
TQString wavFile; TQString wavFile;
TQString args = job->device; TQString args = job->device;
if(!args.isEmpty()) if(!args.isEmpty())
args = TQString("?device=%1").tqarg(args); args = TQString("?device=%1").arg(args);
args = args+"&fileNameTemplate=Track %{number}"; args = args+"&fileNameTemplate=Track %{number}";
if(job->track < 10) if(job->track < 10)
wavFile = TQString("audiocd:/Wav/Track 0%1.wav%2").tqarg(job->track).tqarg(args); wavFile = TQString("audiocd:/Wav/Track 0%1.wav%2").arg(job->track).arg(args);
else else
wavFile = TQString("audiocd:/Wav/Track %1.wav%2").tqarg(job->track).tqarg(args); wavFile = TQString("audiocd:/Wav/Track %1.wav%2").arg(job->track).arg(args);
KURL source(wavFile); KURL source(wavFile);
KURL dest(tmp.name()); KURL dest(tmp.name());

@ -35,7 +35,7 @@
<property name="text"> <property name="text">
<string>Unknown Artist - Unknown Album</string> <string>Unknown Artist - Unknown Album</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
@ -120,7 +120,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -147,7 +147,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>tqlayout6</cstring> <cstring>layout6</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -200,7 +200,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>246</width> <width>246</width>
<height>20</height> <height>20</height>

@ -198,7 +198,7 @@ void TracksImp::changeDevice(const TQString &file ) {
TQString errstring = TQString errstring =
i18n("CDROM read or access error (or no audio disk in drive).\n"\ i18n("CDROM read or access error (or no audio disk in drive).\n"\
"Please make sure you have access permissions to:\n%1") "Please make sure you have access permissions to:\n%1")
.tqarg(file); .arg(file);
KMessageBox::error(this, errstring, i18n("Error")); KMessageBox::error(this, errstring, i18n("Error"));
} }
} }
@ -247,8 +247,8 @@ void TracksImp::lookupCDDBDone(CDDB::Result result ) {
CDInfoList::iterator it; CDInfoList::iterator it;
TQStringList list; TQStringList list;
for ( it = cddb_info.begin(); it != cddb_info.end(); ++it ) { for ( it = cddb_info.begin(); it != cddb_info.end(); ++it ) {
list.append( TQString("%1, %2, %3").tqarg((*it).artist).tqarg((*it).title) list.append( TQString("%1, %2, %3").arg((*it).artist).arg((*it).title)
.tqarg((*it).genre)); .arg((*it).genre));
} }
bool ok(false); bool ok(false);
@ -378,7 +378,7 @@ void TracksImp::startSession( int encoder )
if( Prefs::promptIfIncompleteInfo() && list.count() > 0 ) if( Prefs::promptIfIncompleteInfo() && list.count() > 0 )
{ {
int r = KMessageBox::questionYesNo( this, int r = KMessageBox::questionYesNo( this,
i18n( "Part of the album is not set: %1.\n (To change album information click the \"Edit Information\" button.)\n Would you like to rip the selected tracks anyway?").tqarg(list.join(", ")), i18n("Album Information Incomplete"), i18n("Rip"), KStdGuiItem::cancel() ); i18n( "Part of the album is not set: %1.\n (To change album information click the \"Edit Information\" button.)\n Would you like to rip the selected tracks anyway?").arg(list.join(", ")), i18n("Album Information Incomplete"), i18n("Rip"), KStdGuiItem::cancel() );
if( r == KMessageBox::No ) if( r == KMessageBox::No )
return; return;
@ -417,7 +417,7 @@ void TracksImp::startSession( int encoder )
KMessageBox::information(this, KMessageBox::information(this,
i18n("%1 Job(s) have been started. You can watch their progress in the " i18n("%1 Job(s) have been started. You can watch their progress in the "
"jobs section.").tqarg( selected.count() ), "jobs section.").arg( selected.count() ),
i18n("Jobs have started"), i18n("Jobs have started")); i18n("Jobs have started"), i18n("Jobs have started"));
} }

@ -51,7 +51,7 @@
<property name="textFormat"> <property name="textFormat">
<enum>RichText</enum> <enum>RichText</enum>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignTop|AlignLeft</set> <set>WordBreak|AlignTop|AlignLeft</set>
</property> </property>
</widget> </widget>
@ -65,7 +65,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>
@ -117,7 +117,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout15</cstring> <cstring>layout15</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -251,7 +251,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>

@ -105,6 +105,6 @@ void fileWizard::fileFormatTextChanged(const TQString& text)
TQMap<TQString,TQString> map; TQMap<TQString,TQString> map;
map.insert("extension", "mp3"); map.insert("extension", "mp3");
string = job.replaceSpecialChars(string, false, map); string = job.replaceSpecialChars(string, false, map);
exampleLabel->setText(i18n("Example: %1").tqarg(string)); exampleLabel->setText(i18n("Example: %1").arg(string));
} }

@ -28,7 +28,7 @@
#include <tqcstring.h> #include <tqcstring.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqtextstream.h> #include <textstream.h>
#include <tqdatetime.h> #include <tqdatetime.h>
#include <tqdict.h> #include <tqdict.h>
#include <tqvalidator.h> #include <tqvalidator.h>
@ -75,7 +75,7 @@ bool KM3uPlugin::readInfo( KFileMetaInfo& info, uint )
if (s.endsWith("\n")) s.truncate(s.length()-1); if (s.endsWith("\n")) s.truncate(s.length()-1);
if (!s.stripWhiteSpace().isEmpty()) { if (!s.stripWhiteSpace().isEmpty()) {
appendItem(group, i18n("Track %1").tqarg(num, 3), s); appendItem(group, i18n("Track %1").arg(num, 3), s);
num++; num++;
} }
} }

@ -59,7 +59,7 @@ extern "C"
using namespace KIO; using namespace KIO;
using namespace KCDDB; using namespace KCDDB;
#define TQFL1(x) TQString::tqfromLatin1(x) #define TQFL1(x) TQString::fromLatin1(x)
#define DEFAULT_CD_DEVICE "/dev/cdrom" #define DEFAULT_CD_DEVICE "/dev/cdrom"
#define CDDB_INFORMATION "CDDB Information" #define CDDB_INFORMATION "CDDB Information"
@ -251,9 +251,9 @@ struct cdrom_drive * AudioCDProtocol::initRequest(const KURL & url)
// circumstances, so build a representation from // circumstances, so build a representation from
// the unit number and SCSI device name. // the unit number and SCSI device name.
// //
TQString devname = TQString::tqfromLatin1( "/dev/%1%2" ) TQString devname = TQString::fromLatin1( "/dev/%1%2" )
.tqarg( drive->dev->given_dev_name ) .arg( drive->dev->given_dev_name )
.tqarg( drive->dev->given_unit_number ) ; .arg( drive->dev->given_unit_number ) ;
kdDebug(7117) << " Using derived name " << devname << endl; kdDebug(7117) << " Using derived name " << devname << endl;
d->cd.setDevice( devname ); d->cd.setDevice( devname );
} }
@ -399,7 +399,7 @@ void AudioCDProtocol::get(const KURL & url)
if( d->fname.contains(i18n(CDDB_INFORMATION))){ if( d->fname.contains(i18n(CDDB_INFORMATION))){
uint choice = 1; uint choice = 1;
if(d->fname != TQString("%1.txt").tqarg(i18n(CDDB_INFORMATION))){ if(d->fname != TQString("%1.txt").arg(i18n(CDDB_INFORMATION))){
choice= d->fname.section('_',1,1).section('.',0,0).toInt(); choice= d->fname.section('_',1,1).section('.',0,0).toInt();
} }
uint count = 1; uint count = 1;
@ -610,15 +610,15 @@ void AudioCDProtocol::listDir(const KURL & url)
for ( it = d->cddbList.begin(); it != d->cddbList.end(); ++it ){ for ( it = d->cddbList.begin(); it != d->cddbList.end(); ++it ){
(*it).toString(); (*it).toString();
if(count == 1) if(count == 1)
app_file(entry, TQString("%1.txt").tqarg(i18n(CDDB_INFORMATION)), ((*it).toString().length())+1); app_file(entry, TQString("%1.txt").arg(i18n(CDDB_INFORMATION)), ((*it).toString().length())+1);
else else
app_file(entry, TQString("%1_%2.txt").tqarg(i18n(CDDB_INFORMATION)).tqarg(count), ((*it).toString().length())+1); app_file(entry, TQString("%1_%2.txt").arg(i18n(CDDB_INFORMATION)).arg(count), ((*it).toString().length())+1);
count++; count++;
listEntry(entry, false); listEntry(entry, false);
} }
// Error // Error
if( count == 1 ) { if( count == 1 ) {
app_file(entry, TQString("%1: %2.txt").tqarg(i18n(CDDB_INFORMATION)).tqarg(CDDB::resultToString(d->cddbResult)), ((*it).toString().length())+1); app_file(entry, TQString("%1: %2.txt").arg(i18n(CDDB_INFORMATION)).arg(CDDB::resultToString(d->cddbResult)), ((*it).toString().length())+1);
count++; count++;
listEntry(entry, false); listEntry(entry, false);
} }
@ -838,7 +838,7 @@ void AudioCDProtocol::paranoiaRead(
if (0 == buf) { if (0 == buf) {
kdDebug(7117) << "Unrecoverable error in paranoia_read" << endl; kdDebug(7117) << "Unrecoverable error in paranoia_read" << endl;
ok = false; ok = false;
error( ERR_SLAVE_DEFINED, i18n( "Error reading audio data for %1 from the CD" ).tqarg( fileName ) ); error( ERR_SLAVE_DEFINED, i18n( "Error reading audio data for %1 from the CD" ).arg( fileName ) );
break; break;
} }
@ -848,7 +848,7 @@ void AudioCDProtocol::paranoiaRead(
if(encoderProcessed == -1){ if(encoderProcessed == -1){
kdDebug(7117) << "Encoder processing error, stopping." << endl; kdDebug(7117) << "Encoder processing error, stopping." << endl;
ok = false; ok = false;
TQString errMsg = i18n( "Couldn't read %1: encoding failed" ).tqarg( fileName ); TQString errMsg = i18n( "Couldn't read %1: encoding failed" ).arg( fileName );
TQString details = encoder->lastErrorMessage(); TQString details = encoder->lastErrorMessage();
if ( !details.isEmpty() ) if ( !details.isEmpty() )
errMsg += "\n" + details; errMsg += "\n" + details;
@ -926,7 +926,7 @@ void AudioCDProtocol::paranoiaRead(
processedSize(processed); processedSize(processed);
} }
else if ( ok ) // i.e. no error message already emitted else if ( ok ) // i.e. no error message already emitted
error( ERR_SLAVE_DEFINED, i18n( "Couldn't read %1: encoding failed" ).tqarg( fileName ) ); error( ERR_SLAVE_DEFINED, i18n( "Couldn't read %1: encoding failed" ).arg( fileName ) );
paranoia_free(paranoia); paranoia_free(paranoia);
paranoia = 0; paranoia = 0;
@ -1058,7 +1058,7 @@ void AudioCDProtocol::generateTemplateTitles()
{ {
for (unsigned int i = 0; i < d->tracks; i++){ for (unsigned int i = 0; i < d->tracks; i++){
TQString n; TQString n;
d->templateTitles.append( i18n("Track %1").tqarg(n.sprintf("%02d", i + 1))); d->templateTitles.append( i18n("Track %1").arg(n.sprintf("%02d", i + 1)));
} }
return; return;
} }
@ -1076,7 +1076,7 @@ void AudioCDProtocol::generateTemplateTitles()
macros["title"] = (info.trackInfoList[i].title); macros["title"] = (info.trackInfoList[i].title);
TQString n; TQString n;
macros["number"] = n.sprintf("%02d", i + 1); macros["number"] = n.sprintf("%02d", i + 1);
//macros["number"] = TQString("%1").tqarg(i+1, 2, 10); //macros["number"] = TQString("%1").arg(i+1, 2, 10);
macros["genre"] = info.genre; macros["genre"] = info.genre;
macros["year"] = TQString::number(info.year); macros["year"] = TQString::number(info.year);

@ -63,7 +63,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>210</height> <height>210</height>
@ -116,7 +116,7 @@
<property name="text"> <property name="text">
<string>Lowest</string> <string>Lowest</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -127,7 +127,7 @@
<property name="text"> <property name="text">
<string>Normal</string> <string>Normal</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>
@ -193,7 +193,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -234,7 +234,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout7</cstring> <cstring>layout7</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -372,7 +372,7 @@
<string>Regular expression used on all file names. For example using selection " " and replace with "_" would replace all the spaces with underlines. <string>Regular expression used on all file names. For example using selection " " and replace with "_" would replace all the spaces with underlines.
</string> </string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>WordBreak|AlignVCenter</set> <set>WordBreak|AlignVCenter</set>
</property> </property>
</widget> </widget>
@ -460,7 +460,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>16</height> <height>16</height>
@ -488,7 +488,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout9</cstring> <cstring>layout9</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -570,7 +570,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>31</height> <height>31</height>

@ -51,7 +51,7 @@ KAudiocdModule::KAudiocdModule(TQWidget *parent, const char *name)
KConfigSkeleton *config = NULL; KConfigSkeleton *config = NULL;
TQWidget *widget = encoder->getConfigureWidget(&config); TQWidget *widget = encoder->getConfigureWidget(&config);
if(widget && config){ if(widget && config){
tabWidget->addTab(widget, i18n("%1 Encoder").tqarg(encoder->type())); tabWidget->addTab(widget, i18n("%1 Encoder").arg(encoder->type()));
KConfigDialogManager *configManager = new KConfigDialogManager(widget, config, TQString(encoder->type()+" EncoderConfigManager").latin1()); KConfigDialogManager *configManager = new KConfigDialogManager(widget, config, TQString(encoder->type()+" EncoderConfigManager").latin1());
encoderSettings.append(configManager); encoderSettings.append(configManager);
} }

@ -80,7 +80,7 @@ static void MetadataCallback (const FLAC__StreamEncoder *encoder, const FLAC__St
} }
/* /*
static FLAC__SeekableStreamEncoderSeektqStatus SeekCallback(const FLAC__SeekableStreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data) static FLAC__SeekableStreamEncoderSeekStatus SeekCallback(const FLAC__SeekableStreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data)
{} ; */ {} ; */

@ -126,31 +126,31 @@ void EncoderLame::loadSettings(){
if (method == 0) { if (method == 0) {
// Constant Bitrate Encoding // Constant Bitrate Encoding
args.append("-b"); args.append("-b");
args.append(TQString("%1").tqarg(bitrates[settings->cbr_bitrate()])); args.append(TQString("%1").arg(bitrates[settings->cbr_bitrate()]));
d->bitrate = bitrates[settings->cbr_bitrate()]; d->bitrate = bitrates[settings->cbr_bitrate()];
args.append("-q"); args.append("-q");
args.append(TQString("%1").tqarg(quality)); args.append(TQString("%1").arg(quality));
} }
else { else {
// Variable Bitrate Encoding // Variable Bitrate Encoding
if (settings->vbr_average_br()) { if (settings->vbr_average_br()) {
args.append("--abr"); args.append("--abr");
args.append(TQString("%1").tqarg(bitrates[settings->vbr_mean_brate()])); args.append(TQString("%1").arg(bitrates[settings->vbr_mean_brate()]));
d->bitrate = bitrates[settings->vbr_mean_brate()]; d->bitrate = bitrates[settings->vbr_mean_brate()];
if (settings->vbr_min_br()){ if (settings->vbr_min_br()){
args.append("-b"); args.append("-b");
args.append(TQString("%1").tqarg(bitrates[settings->vbr_min_brate()])); args.append(TQString("%1").arg(bitrates[settings->vbr_min_brate()]));
} }
if (settings->vbr_min_hard()) if (settings->vbr_min_hard())
args.append("-F"); args.append("-F");
if (settings->vbr_max_br()){ if (settings->vbr_max_br()){
args.append("-B"); args.append("-B");
args.append(TQString("%1").tqarg(bitrates[settings->vbr_max_brate()])); args.append(TQString("%1").arg(bitrates[settings->vbr_max_brate()]));
} }
} else { } else {
d->bitrate = 128; d->bitrate = 128;
args.append("-V"); args.append("-V");
args.append(TQString("%1").tqarg(quality)); args.append(TQString("%1").arg(quality));
} }
if ( !settings->vbr_xing_tag() ) if ( !settings->vbr_xing_tag() )
args.append("-t"); args.append("-t");
@ -186,21 +186,21 @@ void EncoderLame::loadSettings(){
if ( settings->enable_lowpass() ) { if ( settings->enable_lowpass() ) {
args.append("--lowpass"); args.append("--lowpass");
args.append(TQString("%1").tqarg(settings->lowfilterfreq())); args.append(TQString("%1").arg(settings->lowfilterfreq()));
if (settings->set_lpf_width()){ if (settings->set_lpf_width()){
args.append("--lowpass-width"); args.append("--lowpass-width");
args.append(TQString("%1").tqarg(settings->lowfilterwidth())); args.append(TQString("%1").arg(settings->lowfilterwidth()));
} }
} }
if ( settings->enable_highpass()) { if ( settings->enable_highpass()) {
args.append("--hipass"); args.append("--hipass");
args.append(TQString("%1").tqarg(settings->highfilterfreq())); args.append(TQString("%1").arg(settings->highfilterfreq()));
if (settings->set_hpf_width()){ if (settings->set_hpf_width()){
args.append("--hipass-width"); args.append("--hipass-width");
args.append(TQString("%1").tqarg(settings->highfilterwidth())); args.append(TQString("%1").arg(settings->highfilterwidth()));
} }
} }
} }
@ -341,13 +341,13 @@ void EncoderLame::fillSongInfo( KCDDB::CDInfo info, int track, const TQString &c
trackInfo.append(info.get("title").toString()); trackInfo.append(info.get("title").toString());
trackInfo.append("--ty"); trackInfo.append("--ty");
trackInfo.append(TQString("%1").tqarg(info.get("year").toString())); trackInfo.append(TQString("%1").arg(info.get("year").toString()));
trackInfo.append("--tc"); trackInfo.append("--tc");
trackInfo.append(comment); trackInfo.append(comment);
trackInfo.append("--tn"); trackInfo.append("--tn");
trackInfo.append(TQString("%1").tqarg(track+1)); trackInfo.append(TQString("%1").arg(track+1));
const TQString genre = info.get( "genre" ).toString(); const TQString genre = info.get( "genre" ).toString();
if ( d->genreList.find( genre ) != d->genreList.end() ) if ( d->genreList.find( genre ) != d->genreList.end() )

@ -178,7 +178,7 @@
<property name="text"> <property name="text">
<string>&amp;Quality:</string> <string>&amp;Quality:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignLeft</set> <set>AlignLeft</set>
</property> </property>
<property name="buddy" stdset="0"> <property name="buddy" stdset="0">
@ -244,7 +244,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>16</height> <height>16</height>
@ -698,7 +698,7 @@
<property name="title"> <property name="title">
<string>Filter Settings</string> <string>Filter Settings</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignLeft</set> <set>AlignVCenter|AlignLeft</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">

@ -383,7 +383,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>51</height> <height>51</height>

@ -48,7 +48,7 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
keyboard = TQPixmap(locate("appdata","icons/keyboard.xpm")); keyboard = TQPixmap(locate("appdata","icons/keyboard.xpm"));
penB = new TQPen (black); penB = new TQPen (black);
penW = new TQPen (white); penW = new TQPen (white);
penT = new TQPen (tqcolorGroup().background()); penT = new TQPen (colorGroup().background());
KConfig *kcfg=KGlobal::instance()->config(); KConfig *kcfg=KGlobal::instance()->config();
kcfg->setGroup("KMid"); kcfg->setGroup("KMid");
@ -87,7 +87,7 @@ void KMidChannel::paintEvent( TQPaintEvent * )
TQPainter *qpaint=new TQPainter(this); TQPainter *qpaint=new TQPainter(this);
TQString tmp = i18n("Channel %1").tqarg(channel); TQString tmp = i18n("Channel %1").arg(channel);
qpaint->setFont(*qcvfont); qpaint->setFont(*qcvfont);
qpaint->setPen(*penB); qpaint->setPen(*penB);
qpaint->drawText(2,20,tmp); qpaint->drawText(2,20,tmp);
@ -185,7 +185,7 @@ void KMidChannel::reset(int level)
replay=TRUE; replay=TRUE;
}; };
tqrepaint(FALSE); repaint(FALSE);
} }
void KMidChannel::saveState(bool *p,int *pgm) void KMidChannel::saveState(bool *p,int *pgm)
@ -198,7 +198,7 @@ void KMidChannel::loadState(bool *p,int *pgm)
{ {
for (int i=0;i<128;i++) pressed[i]=p[i]; for (int i=0;i<128;i++) pressed[i]=p[i];
instrumentCombo->setCurrentItem(*pgm); instrumentCombo->setCurrentItem(*pgm);
tqrepaint(FALSE); repaint(FALSE);
} }
void KMidChannel::pgmChanged(int i) void KMidChannel::pgmChanged(int i)

@ -9,7 +9,7 @@
#include "channelview.h" #include "channelview.h"
#include "channelcfgdlg.h" #include "channelcfgdlg.h"
#include "version.h" #include "version.h"
#include <tqlayout.h> #include <layout.h>
#include <tqvbuttongroup.h> #include <tqvbuttongroup.h>
ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *name) : KDialogBase(parent,name,TRUE,i18n("Configure Channel View"),Ok|Cancel, Ok) ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *name) : KDialogBase(parent,name,TRUE,i18n("Configure Channel View"),Ok|Cancel, Ok)

@ -164,7 +164,7 @@ void CollectionDialog::newCollection()
int i=slman->createCollection(name.ascii()); int i=slman->createCollection(name.ascii());
if (i==-1) if (i==-1)
{ {
TQString s = i18n("The name '%1' is already used").tqarg(name); TQString s = i18n("The name '%1' is already used").arg(name);
KMessageBox::sorry(this, s); KMessageBox::sorry(this, s);
} }
else else
@ -190,7 +190,7 @@ int i;
i=slman->createCollection(name.ascii()); i=slman->createCollection(name.ascii());
if (i==-1) if (i==-1)
{ {
TQString s = i18n("The name '%1' is already used").tqarg(name); TQString s = i18n("The name '%1' is already used").arg(name);
KMessageBox::sorry(this, s); KMessageBox::sorry(this, s);
} }
else else
@ -232,7 +232,7 @@ if (idx==0) return;
{ {
if (slman->getCollection(name.ascii())!=NULL) if (slman->getCollection(name.ascii())!=NULL)
{ {
TQString s = i18n("The name '%1' is already used").tqarg(name); TQString s = i18n("The name '%1' is already used").arg(name);
KMessageBox::sorry(this, s); KMessageBox::sorry(this, s);
} }
else else

@ -26,7 +26,7 @@
#include <tqfont.h> #include <tqfont.h>
#include <tqfontmetrics.h> #include <tqfontmetrics.h>
#include <tqrect.h> #include <tqrect.h>
#include <tqtextcodec.h> #include <textcodec.h>
#include <kconfig.h> #include <kconfig.h>
#include <kglobal.h> #include <kglobal.h>
@ -125,7 +125,7 @@ void KDisplayText::ClearEv(bool totally)
TQT_TQOBJECT(this)->killTimers(); TQT_TQOBJECT(this)->killTimers();
autoscrollv=0; autoscrollv=0;
resizeContents(0,0); resizeContents(0,0);
viewport()->tqrepaint(TRUE); viewport()->repaint(TRUE);
} }
} }
@ -367,7 +367,7 @@ void KDisplayText::CursorToHome(void)
setContentsPos(0,0); setContentsPos(0,0);
viewport()->tqrepaint(true); viewport()->repaint(true);
} }
void KDisplayText::PaintIn(int type) void KDisplayText::PaintIn(int type)
@ -487,7 +487,7 @@ void KDisplayText::gotomsec(ulong i)
TQT_TQOBJECT(this)->killTimers(); TQT_TQOBJECT(this)->killTimers();
autoscrollv=0; autoscrollv=0;
setContentsPos(0,first_line->ypos); setContentsPos(0,first_line->ypos);
viewport()->tqrepaint(); viewport()->repaint();
} }
} }
@ -508,7 +508,7 @@ void KDisplayText::fontChanged(void)
qfmetr=new TQFontMetrics(*qtextfont); qfmetr=new TQFontMetrics(*qtextfont);
calculatePositions(); calculatePositions();
nvisiblelines=height()/qfmetr->lineSpacing(); nvisiblelines=height()/qfmetr->lineSpacing();
viewport()->tqrepaint(TRUE); viewport()->repaint(TRUE);
} }
void KDisplayText::ChangeTypeOfTextEvents(int type) void KDisplayText::ChangeTypeOfTextEvents(int type)
@ -534,7 +534,7 @@ void KDisplayText::ChangeTypeOfTextEvents(int type)
setContentsPos(0,first_line->ypos); setContentsPos(0,first_line->ypos);
} }
viewport()->tqrepaint(TRUE); viewport()->repaint(TRUE);
} }
int KDisplayText::ChooseTypeOfTextEvents(void) int KDisplayText::ChooseTypeOfTextEvents(void)

@ -113,7 +113,7 @@ public:
void setLyricsEncoding(const TQString &enc); void setLyricsEncoding(const TQString &enc);
// TQSize tqsizeHint(); // TQSize sizeHint();
public slots: public slots:
void ScrollDown(); void ScrollDown();

@ -197,7 +197,7 @@ void KLCDNumber::setValue(double v)
void KLCDNumber::display (double v) void KLCDNumber::display (double v)
{ {
setValue(v); setValue(v);
tqrepaint(FALSE); repaint(FALSE);
} }
void KLCDNumber::display (int v) void KLCDNumber::display (int v)
@ -317,13 +317,13 @@ void KLCDNumber::defaultValueClicked()
void KLCDNumber::setLCDBackgroundColor(int r,int g,int b) void KLCDNumber::setLCDBackgroundColor(int r,int g,int b)
{ {
backgcolor=TQColor(r,g,b); backgcolor=TQColor(r,g,b);
tqrepaint(FALSE); repaint(FALSE);
} }
void KLCDNumber::setLCDColor(int r,int g,int b) void KLCDNumber::setLCDColor(int r,int g,int b)
{ {
LCDcolor=TQColor(r,g,b); LCDcolor=TQColor(r,g,b);
tqrepaint(FALSE); repaint(FALSE);
} }
void KLCDNumber::setRange(double min, double max) void KLCDNumber::setRange(double min, double max)
@ -332,7 +332,7 @@ void KLCDNumber::setRange(double min, double max)
maxValue=max; maxValue=max;
} }
TQSize KLCDNumber::tqsizeHint() TQSize KLCDNumber::sizeHint()
{ {
return TQSize(83,28); return TQSize(83,28);
} }

@ -121,7 +121,7 @@ public:
void display (int v); void display (int v);
void display (double v); void display (double v);
TQSize tqsizeHint (); TQSize sizeHint ();
// TQSizePolicy sizePolicy(); // TQSizePolicy sizePolicy();
protected: protected:

@ -35,7 +35,7 @@
#include <tqlabel.h> #include <tqlabel.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqcombobox.h> #include <tqcombobox.h>
#include <tqlayout.h> #include <layout.h>
#include <kapplication.h> #include <kapplication.h>
#include <kcharsets.h> #include <kcharsets.h>
@ -96,7 +96,7 @@ kmidClient::kmidClient(TQWidget *parent, KActionCollection *ac, const char *name
connect (timebar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotSeek(int))); connect (timebar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotSeek(int)));
timetags = new QSliderTime(timebar,this); timetags = new QSliderTime(timebar,this);
timetags->setMinimumSize(timetags->tqsizeHint()); timetags->setMinimumSize(timetags->sizeHint());
qlabelTempo= new TQLabel(i18n("Tempo:"), this,"tempolabel", qlabelTempo= new TQLabel(i18n("Tempo:"), this,"tempolabel",
TQLabel::NoFrame); TQLabel::NoFrame);
@ -108,7 +108,7 @@ kmidClient::kmidClient(TQWidget *parent, KActionCollection *ac, const char *name
tempoLCD->setRange(3,999); tempoLCD->setRange(3,999);
tempoLCD->setDefaultValue(120); tempoLCD->setDefaultValue(120);
tempoLCD->setUserSetDefaultValue(true); tempoLCD->setUserSetDefaultValue(true);
tempoLCD->setMinimumSize(tempoLCD->tqsizeHint()); tempoLCD->setMinimumSize(tempoLCD->sizeHint());
connect(tempoLCD,TQT_SIGNAL(valueChanged(double)),this,TQT_SLOT(slotSetTempo(double))); connect(tempoLCD,TQT_SIGNAL(valueChanged(double)),this,TQT_SLOT(slotSetTempo(double)));
comboSongs = new TQComboBox(FALSE, this,"Songs"); comboSongs = new TQComboBox(FALSE, this,"Songs");
@ -290,10 +290,10 @@ int kmidClient::openFile(const char *filename)
switch (r) switch (r)
{ {
case (-1) : errormsg = case (-1) : errormsg =
i18n("The file %1 does not exist or cannot be opened.").tqarg(filename); i18n("The file %1 does not exist or cannot be opened.").arg(filename);
break; break;
case (-2) : errormsg = case (-2) : errormsg =
i18n("The file %1 is not a MIDI file.").tqarg(filename);break; i18n("The file %1 is not a MIDI file.").arg(filename);break;
case (-3) : errormsg = case (-3) : errormsg =
i18n("Ticks per quarter note is negative. Please send this file to larrosa@kde.org");break; i18n("Ticks per quarter note is negative. Please send this file to larrosa@kde.org");break;
case (-4) : errormsg = case (-4) : errormsg =
@ -301,7 +301,7 @@ int kmidClient::openFile(const char *filename)
case (-5) : errormsg = case (-5) : errormsg =
i18n("This file is corrupted or not well built.");break; i18n("This file is corrupted or not well built.");break;
case (-6) : errormsg = case (-6) : errormsg =
i18n("%1 is not a regular file.").tqarg(filename);break; i18n("%1 is not a regular file.").arg(filename);break;
default : errormsg = i18n("Unknown error message");break; default : errormsg = i18n("Unknown error message");break;
} }
KMessageBox::error(this, errormsg); KMessageBox::error(this, errormsg);
@ -310,10 +310,10 @@ int kmidClient::openFile(const char *filename)
midifile_opened=0L; midifile_opened=0L;
timebar->setRange(0,240000); timebar->setRange(0,240000);
timebar->setValue(0); timebar->setValue(0);
timetags->tqrepaint(TRUE); timetags->repaint(TRUE);
kdispt->ClearEv(); kdispt->ClearEv();
kdispt->tqrepaint(TRUE); kdispt->repaint(TRUE);
tqtopLevelWidget()->setCaption("KMid"); topLevelWidget()->setCaption("KMid");
return -1; return -1;
} }
@ -327,7 +327,7 @@ int kmidClient::openFile(const char *filename)
// noteArray=player->parseNotes(); // noteArray=player->parseNotes();
noteArray=player->noteArray(); noteArray=player->noteArray();
timebar->setRange(0,(int)(player->information()->millisecsTotal)); timebar->setRange(0,(int)(player->information()->millisecsTotal));
timetags->tqrepaint(TRUE); timetags->repaint(TRUE);
kdispt->ClearEv(); kdispt->ClearEv();
spev=player->specialEvents(); spev=player->specialEvents();
while (spev) while (spev)
@ -343,7 +343,7 @@ int kmidClient::openFile(const char *filename)
kdispt->CursorToHome(); kdispt->CursorToHome();
// kdispt->updateScrollBars(); // kdispt->updateScrollBars();
emit mustRechooseTextEvent(); emit mustRechooseTextEvent();
kdispt->tqrepaint(TRUE); kdispt->repaint(TRUE);
tempoLCD->display(tempoToMetronomeTempo(m_kMid.pctl->tempo)); tempoLCD->display(tempoToMetronomeTempo(m_kMid.pctl->tempo));
currentTempo=tempoLCD->getValue(); currentTempo=tempoLCD->getValue();
tempoLCD->setDefaultValue(tempoToMetronomeTempo(m_kMid.pctl->tempo)*m_kMid.pctl->ratioTempo); tempoLCD->setDefaultValue(tempoToMetronomeTempo(m_kMid.pctl->tempo)*m_kMid.pctl->ratioTempo);
@ -353,7 +353,7 @@ int kmidClient::openFile(const char *filename)
char *capt=new char[strlen(fn)+20]; char *capt=new char[strlen(fn)+20];
sprintf(capt,"KMid - %s",fn); sprintf(capt,"KMid - %s",fn);
delete fn; delete fn;
tqtopLevelWidget()->setCaption(capt); topLevelWidget()->setCaption(capt);
delete capt; delete capt;
timebar->setValue(0); timebar->setValue(0);
@ -1129,7 +1129,7 @@ void kmidClient::repaintText(int type)
{ {
kdispt->ChangeTypeOfTextEvents(type); kdispt->ChangeTypeOfTextEvents(type);
typeoftextevents=type; typeoftextevents=type;
kdispt->tqrepaint(TRUE); kdispt->repaint(TRUE);
} }
int kmidClient::ChooseTypeOfTextEvents(void) int kmidClient::ChooseTypeOfTextEvents(void)
@ -1265,12 +1265,12 @@ void kmidClient::slotSelectSong(int i)
player->removeSong(); player->removeSong();
timebar->setRange(0,240000); timebar->setRange(0,240000);
timebar->setValue(0); timebar->setValue(0);
timetags->tqrepaint(TRUE); timetags->repaint(TRUE);
kdispt->ClearEv(); kdispt->ClearEv();
kdispt->tqrepaint(TRUE); kdispt->repaint(TRUE);
comboSongs->clear(); comboSongs->clear();
comboSongs->tqrepaint(TRUE); comboSongs->repaint(TRUE);
tqtopLevelWidget()->setCaption("KMid"); topLevelWidget()->setCaption("KMid");
return; return;
} }
@ -1487,7 +1487,7 @@ void kmidClient::slotSetTempo(double value)
timebar->setRange(0,(int)(player->information()->millisecsTotal)); timebar->setRange(0,(int)(player->information()->millisecsTotal));
timebar->setValue(pausedatmillisec); timebar->setValue(pausedatmillisec);
timetags->tqrepaint(TRUE); timetags->repaint(TRUE);
kdispt->ClearEv(false); kdispt->ClearEv(false);
@ -1522,9 +1522,9 @@ void kmidClient::downloadFinished(KIO::Job *)
kapp->exit_loop(); kapp->exit_loop();
} }
TQSize kmidClient::tqsizeHint() const TQSize kmidClient::sizeHint() const
{ {
TQSize sh = TQWidget::tqsizeHint(); TQSize sh = TQWidget::sizeHint();
return sh.expandedTo(TQSize(560,420)); return sh.expandedTo(TQSize(560,420));
} }

@ -217,7 +217,7 @@ public:
void setCurrentSong(int i); void setCurrentSong(int i);
void setPlayListMode(int i); void setPlayListMode(int i);
TQSize tqsizeHint() const; TQSize sizeHint() const;
private: private:
TQSlider *timebar; TQSlider *timebar;
QSliderTime *timetags; QSliderTime *timetags;

@ -567,7 +567,7 @@ void kmidFrame::file_SaveLyrics()
if (stat(TQFile::encodeName(filename), &statbuf)!=-1) if (stat(TQFile::encodeName(filename), &statbuf)!=-1)
{ {
TQString s = i18n("File %1 already exists\nDo you want to overwrite it?").tqarg(filename); TQString s = i18n("File %1 already exists\nDo you want to overwrite it?").arg(filename);
if (KMessageBox::warningYesNo(this,s,TQString(),i18n("Overwrite"),KStdGuiItem::cancel())==1) if (KMessageBox::warningYesNo(this,s,TQString(),i18n("Overwrite"),KStdGuiItem::cancel())==1)
return; return;
} }

@ -47,7 +47,7 @@ void KTriangleButton::enterEvent( TQEvent* )
if ( isEnabled() ) if ( isEnabled() )
{ {
raised = TRUE; raised = TRUE;
tqrepaint(FALSE); repaint(FALSE);
} }
} }
@ -56,7 +56,7 @@ void KTriangleButton::leaveEvent( TQEvent * )
if( raised != FALSE ) if( raised != FALSE )
{ {
raised = FALSE; raised = FALSE;
tqrepaint(); repaint();
} }
} }
@ -75,21 +75,21 @@ void KTriangleButton::paint( TQPainter *painter )
{ {
if ( isDown() || isOn() ) if ( isDown() || isOn() )
{ {
if ( tqstyle().tqstyleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) if ( tqstyle().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
qDrawWinButton( painter, 0, 0, width(), qDrawWinButton( painter, 0, 0, width(),
height(), tqcolorGroup(), TRUE ); height(), colorGroup(), TRUE );
else else
qDrawShadePanel( painter, 0, 0, width(), qDrawShadePanel( painter, 0, 0, width(),
height(), tqcolorGroup(), TRUE, 2, 0L ); height(), colorGroup(), TRUE, 2, 0L );
} }
else if ( raised ) else if ( raised )
{ {
if ( tqstyle().tqstyleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) if ( tqstyle().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
qDrawWinButton( painter, 0, 0, width(), height(), qDrawWinButton( painter, 0, 0, width(), height(),
tqcolorGroup(), FALSE ); colorGroup(), FALSE );
else else
qDrawShadePanel( painter, 0, 0, width(), height(), qDrawShadePanel( painter, 0, 0, width(), height(),
tqcolorGroup(), FALSE, 2, 0L ); colorGroup(), FALSE, 2, 0L );
} }
if (dir==Right) if (dir==Right)

@ -26,7 +26,7 @@
#include <signal.h> #include <signal.h>
#include <tqwidget.h> #include <tqwidget.h>
#include <tqtextcodec.h> #include <textcodec.h>
#include <kapplication.h> #include <kapplication.h>
#include <klocale.h> #include <klocale.h>

@ -24,7 +24,7 @@
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqlistbox.h> #include <tqlistbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <kapplication.h> #include <kapplication.h>
#include <kfiledialog.h> #include <kfiledialog.h>
@ -56,7 +56,7 @@ MidiConfigDialog::MidiConfigDialog(DeviceManager *dm,
for (int i=0;i<devman->midiPorts()+devman->synthDevices();i++) for (int i=0;i<devman->midiPorts()+devman->synthDevices();i++)
{ {
if (strcmp(devman->type(i),"")!=0) if (strcmp(devman->type(i),"")!=0)
temp = TQString("%1 - %2").tqarg(devman->name(i)).tqarg(devman->type(i)); temp = TQString("%1 - %2").arg(devman->name(i)).arg(devman->type(i));
else else
temp = devman->name(i); temp = devman->name(i);

@ -108,7 +108,7 @@ if (kslider==NULL) return;
} }
TQSize QSliderTime::tqsizeHint() TQSize QSliderTime::sizeHint()
{ {
return TQSize(10,fontheight+2); return TQSize(10,fontheight+2);
} }

@ -43,7 +43,7 @@ public:
int getFontHeight(void) {return fontheight;}; int getFontHeight(void) {return fontheight;};
TQSize tqsizeHint(); TQSize sizeHint();
TQSizePolicy sizePolicy(); TQSizePolicy sizePolicy();
private: private:

@ -95,7 +95,7 @@ void RhythmView::resizeEvent(TQResizeEvent *)
} }
} }
TQSize RhythmView::tqsizeHint() TQSize RhythmView::sizeHint()
{ {
return TQSize(10,10); return TQSize(10,10);
} }

@ -43,7 +43,7 @@ public:
void Beat(void); // Just increase the beat void Beat(void); // Just increase the beat
TQSize tqsizeHint(); TQSize sizeHint();
TQSizePolicy sizePolicy(); TQSizePolicy sizePolicy();
private: private:

@ -236,7 +236,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>

@ -20,7 +20,7 @@
*/ */
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqptrlist.h> #include <tqptrlist.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
@ -67,15 +67,15 @@ void DialogSelectMaster::createWidgets(Mixer *ptr_mixer)
TQHBoxLayout* mixerNameLayout = new TQHBoxLayout( _layout ); TQHBoxLayout* mixerNameLayout = new TQHBoxLayout( _layout );
//widgetsLayout->setStretchFactor( mixerNameLayout, 0 ); //widgetsLayout->setStretchFactor( mixerNameLayout, 0 );
//TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum); //TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum);
//mixerNameLayout->tqsetSizePolicy(qsp); //mixerNameLayout->setSizePolicy(qsp);
mixerNameLayout->setSpacing(KDialog::spacingHint()); mixerNameLayout->setSpacing(KDialog::spacingHint());
TQLabel *qlbl = new TQLabel( i18n("Current Mixer"), m_mainFrame ); TQLabel *qlbl = new TQLabel( i18n("Current Mixer"), m_mainFrame );
mixerNameLayout->addWidget(qlbl); mixerNameLayout->addWidget(qlbl);
qlbl->setFixedHeight(qlbl->tqsizeHint().height()); qlbl->setFixedHeight(qlbl->sizeHint().height());
m_cMixer = new KComboBox( FALSE, m_mainFrame, "mixerCombo" ); m_cMixer = new KComboBox( FALSE, m_mainFrame, "mixerCombo" );
m_cMixer->setFixedHeight(m_cMixer->tqsizeHint().height()); m_cMixer->setFixedHeight(m_cMixer->sizeHint().height());
connect( m_cMixer, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( createPageByID( int ) ) ); connect( m_cMixer, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( createPageByID( int ) ) );
//int id=1; //int id=1;

@ -20,7 +20,7 @@
*/ */
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqptrlist.h> #include <tqptrlist.h>
@ -58,7 +58,7 @@ DialogViewConfiguration::DialogViewConfiguration( TQWidget*, ViewBase& view)
} }
} }
_layout->activate(); _layout->activate();
resize(_layout->tqsizeHint() ); resize(_layout->sizeHint() );
connect( this, TQT_SIGNAL(okClicked()) , this, TQT_SLOT(apply()) ); connect( this, TQT_SIGNAL(okClicked()) , this, TQT_SLOT(apply()) );
} }
@ -93,9 +93,9 @@ void DialogViewConfiguration::apply()
_view.configurationUpdate(); _view.configurationUpdate();
} }
TQSize DialogViewConfiguration::tqsizeHint() const { TQSize DialogViewConfiguration::sizeHint() const {
// kdDebug(67100) << "DialogViewConfiguration::tqsizeHint() is (100,500)\n"; // kdDebug(67100) << "DialogViewConfiguration::sizeHint() is (100,500)\n";
return _layout->tqsizeHint(); return _layout->sizeHint();
} }
#include "dialogviewconfiguration.moc" #include "dialogviewconfiguration.moc"

@ -18,7 +18,7 @@ class DialogViewConfiguration : public KDialogBase
DialogViewConfiguration(TQWidget* parent, ViewBase& view); DialogViewConfiguration(TQWidget* parent, ViewBase& view);
~DialogViewConfiguration(); ~DialogViewConfiguration();
TQSize tqsizeHint() const; TQSize sizeHint() const;
public slots: public slots:
void apply(); void apply();

@ -33,8 +33,8 @@ KLedButton::KLedButton(const TQColor &col, TQWidget *parent, const char *name)
} }
KLedButton::KLedButton(const TQColor& col, KLed::State st, KLed::Look look, KLedButton::KLedButton(const TQColor& col, KLed::State st, KLed::Look look,
KLed::Shape tqshape, TQWidget *parent, const char *name) KLed::Shape shape, TQWidget *parent, const char *name)
: KLed( col, st, look, tqshape, parent, name ) : KLed( col, st, look, shape, parent, name )
{ {
} }
@ -66,7 +66,7 @@ bool KLedButton::eventFilter( TQObject* /*obj*/ , TQEvent* /*ev*/ ) {
} }
TQSize KLedButton::tqsizeHint() const TQSize KLedButton::sizeHint() const
{ {
return size(); return size();
} }

@ -35,11 +35,11 @@ class KLedButton : public KLed {
TQ_OBJECT TQ_OBJECT
public: public:
KLedButton(const TQColor &col=TQt::green, TQWidget *parent=0, const char *name=0); KLedButton(const TQColor &col=TQt::green, TQWidget *parent=0, const char *name=0);
KLedButton(const TQColor& col, KLed::State st, KLed::Look look, KLed::Shape tqshape, KLedButton(const TQColor& col, KLed::State st, KLed::Look look, KLed::Shape shape,
TQWidget *parent=0, const char *name=0); TQWidget *parent=0, const char *name=0);
~KLedButton(); ~KLedButton();
TQSize tqsizeHint () const; TQSize sizeHint () const;
TQSizePolicy sizePolicy () const; TQSizePolicy sizePolicy () const;
signals: signals:
void stateChanged( bool newState ); void stateChanged( bool newState );

@ -25,7 +25,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqwidgetstack.h> #include <tqwidgetstack.h>
#include <tqlayout.h> #include <layout.h>
#include <tqtooltip.h> #include <tqtooltip.h>
// include files for KDE // include files for KDE
@ -145,10 +145,10 @@ KMixWindow::initPrefDlg()
void void
KMixWindow::initWidgets() KMixWindow::initWidgets()
{ {
// Main widget and tqlayout // Main widget and layout
setCentralWidget( new TQWidget( this, "qt_central_widget" ) ); setCentralWidget( new TQWidget( this, "qt_central_widget" ) );
// Widgets tqlayout // Widgets layout
widgetsLayout = new TQVBoxLayout( centralWidget(), 0, 0, "widgetsLayout" ); widgetsLayout = new TQVBoxLayout( centralWidget(), 0, 0, "widgetsLayout" );
widgetsLayout->setResizeMode(TQLayout::Minimum); // works fine widgetsLayout->setResizeMode(TQLayout::Minimum); // works fine
@ -157,16 +157,16 @@ KMixWindow::initWidgets()
mixerNameLayout = new TQHBox( centralWidget(), "mixerNameLayout" ); mixerNameLayout = new TQHBox( centralWidget(), "mixerNameLayout" );
widgetsLayout->setStretchFactor( mixerNameLayout, 0 ); widgetsLayout->setStretchFactor( mixerNameLayout, 0 );
TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum); TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum);
mixerNameLayout->tqsetSizePolicy(qsp); mixerNameLayout->setSizePolicy(qsp);
mixerNameLayout->setSpacing(KDialog::spacingHint()); mixerNameLayout->setSpacing(KDialog::spacingHint());
TQLabel *qlbl = new TQLabel( i18n("Current mixer:"), mixerNameLayout ); TQLabel *qlbl = new TQLabel( i18n("Current mixer:"), mixerNameLayout );
qlbl->setFixedHeight(qlbl->tqsizeHint().height()); qlbl->setFixedHeight(qlbl->sizeHint().height());
m_cMixer = new KComboBox( FALSE, mixerNameLayout, "mixerCombo" ); m_cMixer = new KComboBox( FALSE, mixerNameLayout, "mixerCombo" );
m_cMixer->setFixedHeight(m_cMixer->tqsizeHint().height()); m_cMixer->setFixedHeight(m_cMixer->sizeHint().height());
connect( m_cMixer, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( showSelectedMixer( int ) ) ); connect( m_cMixer, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( showSelectedMixer( int ) ) );
TQToolTip::add( m_cMixer, i18n("Current mixer" ) ); TQToolTip::add( m_cMixer, i18n("Current mixer" ) );
// Add first tqlayout to widgets // Add first layout to widgets
widgetsLayout->addWidget( mixerNameLayout ); widgetsLayout->addWidget( mixerNameLayout );
m_wsMixers = new TQWidgetStack( centralWidget(), "MixerWidgetStack" ); m_wsMixers = new TQWidgetStack( centralWidget(), "MixerWidgetStack" );
@ -522,11 +522,11 @@ KMixWindow::applyPrefs( KMixPrefDlg *prefDlg )
} }
if ( prefDlg->_rbVertical->isChecked() ) { if ( prefDlg->_rbVertical->isChecked() ) {
//TQString "For a change of language to take place, quit and restart KDiff3."; //TQString "For a change of language to take place, quit and restart KDiff3.";
//kdDebug(67100) << "KMix should change toQt::Vertical tqlayout\n"; //kdDebug(67100) << "KMix should change toQt::Vertical layout\n";
m_toplevelOrientation = Qt::Vertical; m_toplevelOrientation = Qt::Vertical;
} }
else if ( prefDlg->_rbHorizontal->isChecked() ) { else if ( prefDlg->_rbHorizontal->isChecked() ) {
//kdDebug(67100) << "KMix should change toQt::Horizontal tqlayout\n"; //kdDebug(67100) << "KMix should change toQt::Horizontal layout\n";
m_toplevelOrientation = Qt::Horizontal; m_toplevelOrientation = Qt::Horizontal;
} }
m_autoStart = prefDlg->m_autoStartChk->isChecked(); m_autoStart = prefDlg->m_autoStartChk->isChecked();
@ -551,7 +551,7 @@ KMixWindow::applyPrefs( KMixPrefDlg *prefDlg )
show(); show();
} }
this->tqrepaint(); // make KMix look fast (saveConfig() often uses several seconds) this->repaint(); // make KMix look fast (saveConfig() often uses several seconds)
kapp->processEvents(); kapp->processEvents();
saveConfig(); saveConfig();
} }

@ -27,7 +27,7 @@
#include <tqgroupbox.h> #include <tqgroupbox.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqpixmap.h> #include <tqpixmap.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
@ -205,8 +205,8 @@ KMixApplet::KMixApplet( const TQString& configFile, Type t,
// No mixer set by user (kmixappletrc_*) and more than one to choose // No mixer set by user (kmixappletrc_*) and more than one to choose
// We do NOT know which mixer to use => ask the User // We do NOT know which mixer to use => ask the User
m_errorLabel = new TQPushButton( i18n("Select Mixer"), this ); m_errorLabel = new TQPushButton( i18n("Select Mixer"), this );
m_errorLabel->setGeometry(0, 0, m_errorLabel->tqsizeHint().width(), m_errorLabel->tqsizeHint().height() ); m_errorLabel->setGeometry(0, 0, m_errorLabel->sizeHint().width(), m_errorLabel->sizeHint().height() );
resize( m_errorLabel->tqsizeHint() ); resize( m_errorLabel->sizeHint() );
connect( m_errorLabel, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectMixer()) ); connect( m_errorLabel, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectMixer()) );
} }
else { else {
@ -375,7 +375,7 @@ void KMixApplet::positionChange(Position pos) {
loadConfig(); loadConfig();
setColors(); setColors();
const TQSize panelAppletConstrainedSize = tqsizeHint(); const TQSize panelAppletConstrainedSize = sizeHint();
m_mixerWidget->setGeometry( 0, 0, panelAppletConstrainedSize.width(), panelAppletConstrainedSize.height() ); m_mixerWidget->setGeometry( 0, 0, panelAppletConstrainedSize.width(), panelAppletConstrainedSize.height() );
resize( panelAppletConstrainedSize.width(), panelAppletConstrainedSize.height() ); resize( panelAppletConstrainedSize.width(), panelAppletConstrainedSize.height() );
//setFixedSize(panelAppletConstrainedSize.width(), panelAppletConstrainedSize.height() ); //setFixedSize(panelAppletConstrainedSize.width(), panelAppletConstrainedSize.height() );
@ -401,7 +401,7 @@ void KMixApplet::resizeEvent(TQResizeEvent *e)
} }
// resizing changes our own tqsizeHint(), because we must take the new PanelSize in account. // resizing changes our own sizeHint(), because we must take the new PanelSize in account.
// So updateGeometry() is amust for us. // So updateGeometry() is amust for us.
//kdDebug(67100) << "KMixApplet::resizeEvent(). UPDATE GEOMETRY" << endl; //kdDebug(67100) << "KMixApplet::resizeEvent(). UPDATE GEOMETRY" << endl;
updateGeometry(); updateGeometry();
@ -414,21 +414,21 @@ void KMixApplet::updateGeometrySlot() {
} }
TQSize KMixApplet::tqsizeHint() const { TQSize KMixApplet::sizeHint() const {
//kdDebug(67100) << "KMixApplet::tqsizeHint()\n"; //kdDebug(67100) << "KMixApplet::sizeHint()\n";
TQSize qsz; TQSize qsz;
if ( m_errorLabel !=0 ) { if ( m_errorLabel !=0 ) {
qsz = m_errorLabel->tqsizeHint(); qsz = m_errorLabel->sizeHint();
} }
else if ( m_mixerWidget != 0) { else if ( m_mixerWidget != 0) {
qsz = m_mixerWidget->tqsizeHint(); qsz = m_mixerWidget->sizeHint();
} }
else { else {
// During construction of m_mixerWidget or if something goes wrong: // During construction of m_mixerWidget or if something goes wrong:
// Return something that should resemble our former tqsizeHint(). // Return something that should resemble our former sizeHint().
qsz = size(); qsz = size();
} }
//kdDebug(67100) << "KMixApplet::tqsizeHint() leftright =" << qsz << "\n"; //kdDebug(67100) << "KMixApplet::sizeHint() leftright =" << qsz << "\n";
return qsz; return qsz;
} }
@ -437,12 +437,12 @@ TQSize KMixApplet::tqsizeHint() const {
using this method. Actually we ignore the passed paramater and just return our preferred size. using this method. Actually we ignore the passed paramater and just return our preferred size.
*/ */
int KMixApplet::widthForHeight(int) const { int KMixApplet::widthForHeight(int) const {
//kdDebug(67100) << "KMixApplet::widthForHeight() = " << tqsizeHint().width() << endl; //kdDebug(67100) << "KMixApplet::widthForHeight() = " << sizeHint().width() << endl;
return tqsizeHint().width(); return sizeHint().width();
} }
int KMixApplet::heightForWidth(int) const { int KMixApplet::heightForWidth(int) const {
//kdDebug(67100) << "KMixApplet::heightForWidth() = " << tqsizeHint().height() << endl; //kdDebug(67100) << "KMixApplet::heightForWidth() = " << sizeHint().height() << endl;
return tqsizeHint().height(); return sizeHint().height();
} }

@ -23,7 +23,7 @@
#define KMIXAPPLET_H #define KMIXAPPLET_H
// TQt // TQt
#include <tqlayout.h> #include <layout.h>
#include <tqptrlist.h> #include <tqptrlist.h>
#include <tqwidget.h> #include <tqwidget.h>
@ -88,7 +88,7 @@ public:
void reportBug(); void reportBug();
void paletteChange ( const TQPalette & oldPalette ); void paletteChange ( const TQPalette & oldPalette );
TQSize tqsizeHint() const; TQSize sizeHint() const;
TQSizePolicy sizePolicy() const; TQSizePolicy sizePolicy() const;
int widthForHeight(int) const; int widthForHeight(int) const;
int heightForWidth(int) const; int heightForWidth(int) const;

@ -191,7 +191,7 @@ KMixDockWidget::setVolumeTip()
} }
newToolTipValue = val + 10000*md->isMuted(); newToolTipValue = val + 10000*md->isMuted();
if ( _oldToolTipValue != newToolTipValue ) { if ( _oldToolTipValue != newToolTipValue ) {
tip = i18n( "Volume at %1%" ).tqarg( val ); tip = i18n( "Volume at %1%" ).arg( val );
if ( md->isMuted() ) { if ( md->isMuted() ) {
tip += i18n( " (Muted)" ); tip += i18n( " (Muted)" );
} }

@ -21,7 +21,7 @@
// TQt // TQt
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqslider.h> #include <tqslider.h>
#include <tqstring.h> #include <tqstring.h>
#include <tqtooltip.h> #include <tqtooltip.h>
@ -76,13 +76,13 @@ KMixerWidget::KMixerWidget( int _id, Mixer *mixer, const TQString &mixerName,
{ {
// No mixer found // No mixer found
// !! Fix this: This is actually never shown! // !! Fix this: This is actually never shown!
TQBoxLayout *tqlayout = new TQHBoxLayout( this ); TQBoxLayout *layout = new TQHBoxLayout( this );
TQString s = i18n("Invalid mixer"); TQString s = i18n("Invalid mixer");
if ( !mixerName.isEmpty() ) if ( !mixerName.isEmpty() )
s.append(" \"").append(mixerName).append("\""); s.append(" \"").append(mixerName).append("\"");
TQLabel *errorLabel = new TQLabel( s, this ); TQLabel *errorLabel = new TQLabel( s, this );
errorLabel->tqsetAlignment( TQLabel::AlignCenter | TQLabel::WordBreak ); errorLabel->setAlignment( TQLabel::AlignCenter | TQLabel::WordBreak );
tqlayout->addWidget( errorLabel ); layout->addWidget( errorLabel );
} }
} }
@ -103,7 +103,7 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags)
delete m_topLayout; delete m_topLayout;
} }
// create main tqlayout // create main layout
m_topLayout = new TQVBoxLayout( this, 0, 3, "m_topLayout" ); m_topLayout = new TQVBoxLayout( this, 0, 3, "m_topLayout" );
// Create tabs of input + output + [...] // Create tabs of input + output + [...]
@ -136,8 +136,8 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags)
m_balanceSlider = new TQSlider( -100, 100, 25, 0, Qt::Horizontal, this, "RightLeft" ); m_balanceSlider = new TQSlider( -100, 100, 25, 0, Qt::Horizontal, this, "RightLeft" );
m_balanceSlider->setTickmarks( TQSlider::Below ); m_balanceSlider->setTickmarks( TQSlider::Below );
m_balanceSlider->setTickInterval( 25 ); m_balanceSlider->setTickInterval( 25 );
m_balanceSlider->setMinimumSize( m_balanceSlider->tqsizeHint() ); m_balanceSlider->setMinimumSize( m_balanceSlider->sizeHint() );
m_balanceSlider->setFixedHeight( m_balanceSlider->tqsizeHint().height() ); m_balanceSlider->setFixedHeight( m_balanceSlider->sizeHint().height() );
TQLabel *mixerName = new TQLabel(this, "mixerName"); TQLabel *mixerName = new TQLabel(this, "mixerName");
mixerName->setText( _mixer->mixerName() ); mixerName->setText( _mixer->mixerName() );

@ -21,7 +21,7 @@
*/ */
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqlayout.h> #include <layout.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -43,36 +43,36 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent )
// general buttons // general buttons
m_generalTab = plainPage( /* i18n("&General") */ ); m_generalTab = plainPage( /* i18n("&General") */ );
TQBoxLayout *tqlayout = new TQVBoxLayout( m_generalTab ); TQBoxLayout *layout = new TQVBoxLayout( m_generalTab );
tqlayout->setSpacing( KDialog::spacingHint() ); layout->setSpacing( KDialog::spacingHint() );
m_dockingChk = new TQCheckBox( i18n("&Dock into panel"), m_generalTab ); m_dockingChk = new TQCheckBox( i18n("&Dock into panel"), m_generalTab );
tqlayout->addWidget( m_dockingChk ); layout->addWidget( m_dockingChk );
TQWhatsThis::add(m_dockingChk, i18n("Docks the mixer into the KDE panel")); TQWhatsThis::add(m_dockingChk, i18n("Docks the mixer into the KDE panel"));
m_volumeChk = new TQCheckBox(i18n("Enable system tray &volume control"), m_volumeChk = new TQCheckBox(i18n("Enable system tray &volume control"),
m_generalTab); m_generalTab);
tqlayout->addWidget(m_volumeChk); layout->addWidget(m_volumeChk);
m_showTicks = new TQCheckBox( i18n("Show &tickmarks"), m_generalTab ); m_showTicks = new TQCheckBox( i18n("Show &tickmarks"), m_generalTab );
tqlayout->addWidget( m_showTicks ); layout->addWidget( m_showTicks );
TQWhatsThis::add(m_showTicks, TQWhatsThis::add(m_showTicks,
i18n("Enable/disable tickmark scales on the sliders")); i18n("Enable/disable tickmark scales on the sliders"));
m_showLabels = new TQCheckBox( i18n("Show &labels"), m_generalTab ); m_showLabels = new TQCheckBox( i18n("Show &labels"), m_generalTab );
tqlayout->addWidget( m_showLabels ); layout->addWidget( m_showLabels );
TQWhatsThis::add(m_showLabels, TQWhatsThis::add(m_showLabels,
i18n("Enables/disables description labels above the sliders")); i18n("Enables/disables description labels above the sliders"));
m_onLogin = new TQCheckBox( i18n("Restore volumes on login"), m_generalTab ); m_onLogin = new TQCheckBox( i18n("Restore volumes on login"), m_generalTab );
tqlayout->addWidget( m_onLogin ); layout->addWidget( m_onLogin );
m_dockIconMuting = new TQCheckBox( m_dockIconMuting = new TQCheckBox(
i18n("Middle click on system tray icon toggles muting"), m_generalTab ); i18n("Middle click on system tray icon toggles muting"), m_generalTab );
tqlayout->addWidget( m_dockIconMuting ); layout->addWidget( m_dockIconMuting );
TQBoxLayout *numbersLayout = new TQHBoxLayout( tqlayout ); TQBoxLayout *numbersLayout = new TQHBoxLayout( layout );
TQButtonGroup *numbersGroup = new TQButtonGroup( 3, Qt::Horizontal, i18n("Numbers"), m_generalTab ); TQButtonGroup *numbersGroup = new TQButtonGroup( 3, Qt::Horizontal, i18n("Numbers"), m_generalTab );
numbersGroup->setRadioButtonExclusive(true); numbersGroup->setRadioButtonExclusive(true);
TQLabel* qlbl = new TQLabel( i18n("Volume Values: "), m_generalTab ); TQLabel* qlbl = new TQLabel( i18n("Volume Values: "), m_generalTab );
@ -91,10 +91,10 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent )
numbersLayout->addStretch(); numbersLayout->addStretch();
m_autoStartChk = new TQCheckBox( i18n("&Autostart"), m_generalTab ); m_autoStartChk = new TQCheckBox( i18n("&Autostart"), m_generalTab );
tqlayout->addWidget( m_autoStartChk ); layout->addWidget( m_autoStartChk );
TQWhatsThis::add(m_autoStartChk, i18n("Automatically start mixer when you login")); TQWhatsThis::add(m_autoStartChk, i18n("Automatically start mixer when you login"));
TQBoxLayout *orientationLayout = new TQHBoxLayout( tqlayout ); TQBoxLayout *orientationLayout = new TQHBoxLayout( layout );
TQButtonGroup* orientationGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n("Orientation"), m_generalTab ); TQButtonGroup* orientationGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n("Orientation"), m_generalTab );
//orientationLayout->add(orientationGroup); //orientationLayout->add(orientationGroup);
orientationGroup->setRadioButtonExclusive(true); orientationGroup->setRadioButtonExclusive(true);
@ -112,7 +112,7 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent )
orientationLayout->add(_rbVertical); orientationLayout->add(_rbVertical);
orientationLayout->addStretch(); orientationLayout->addStretch();
tqlayout->addStretch(); layout->addStretch();
enableButtonSeparator(true); enableButtonSeparator(true);
connect( this, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(apply()) ); connect( this, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(apply()) );

@ -24,7 +24,7 @@
#include <tqwidget.h> #include <tqwidget.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqcolor.h> #include <tqcolor.h>
#include <tqbrush.h> #include <brush.h>
#include <tqstyle.h> #include <tqstyle.h>
#include "kglobalsettings.h" #include "kglobalsettings.h"
@ -225,7 +225,7 @@ void KSmallSlider::paintEvent( TQPaintEvent * )
int sliderPos = positionFromValue( TQRangeControl::value() ); int sliderPos = positionFromValue( TQRangeControl::value() );
// ------------------------ draw 3d border --------------------------------------------- // ------------------------ draw 3d border ---------------------------------------------
tqstyle().tqdrawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), tqcolorGroup(), TRUE ); tqstyle().tqdrawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TRUE );
// ------------------------ draw lower/left part ---------------------------------------- // ------------------------ draw lower/left part ----------------------------------------
@ -396,7 +396,7 @@ int KSmallSlider::goodPart( const TQPoint &p ) const
} }
/***************** SIZE STUFF START ***************/ /***************** SIZE STUFF START ***************/
TQSize KSmallSlider::tqsizeHint() const TQSize KSmallSlider::sizeHint() const
{ {
//constPolish(); //constPolish();
const int length = 25; const int length = 25;
@ -409,7 +409,7 @@ TQSize KSmallSlider::tqsizeHint() const
} }
TQSize KSmallSlider::tqminimumSizeHint() const TQSize KSmallSlider::minimumSizeHint() const
{ {
TQSize s(10,10); TQSize s(10,10);
return s; return s;
@ -486,7 +486,7 @@ void KSmallSlider::setGray( bool value )
{ {
grayed = value; grayed = value;
update(); update();
//tqrepaint(); //repaint();
} }
} }
@ -501,7 +501,7 @@ void KSmallSlider::setColors( TQColor high, TQColor low, TQColor back )
colLow = low; colLow = low;
colBack = back; colBack = back;
update(); update();
//tqrepaint(); //repaint();
} }
void KSmallSlider::setGrayColors( TQColor high, TQColor low, TQColor back ) void KSmallSlider::setGrayColors( TQColor high, TQColor low, TQColor back )
@ -510,7 +510,7 @@ void KSmallSlider::setGrayColors( TQColor high, TQColor low, TQColor back )
grayLow = low; grayLow = low;
grayBack = back; grayBack = back;
update(); update();
//tqrepaint(); //repaint();
} }
#include "ksmallslider.moc" #include "ksmallslider.moc"

@ -42,9 +42,9 @@ class KSmallSlider : public TQWidget, public TQRangeControl
//virtual void setTracking( bool enable ); //virtual void setTracking( bool enable );
//bool tracking() const; //bool tracking() const;
TQSize tqsizeHint() const; TQSize sizeHint() const;
TQSizePolicy sizePolicy() const; TQSizePolicy sizePolicy() const;
TQSize tqminimumSizeHint() const; TQSize minimumSizeHint() const;
int minValue() const; int minValue() const;
int maxValue() const; int maxValue() const;

@ -21,7 +21,7 @@
#include <tqcursor.h> #include <tqcursor.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqobject.h> #include <tqobject.h>
#include <tqtooltip.h> #include <tqtooltip.h>
@ -75,21 +75,21 @@ void MDWEnum::createWidgets()
{ {
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
_layout = new TQVBoxLayout( this ); _layout = new TQVBoxLayout( this );
_layout->tqsetAlignment(TQt::AlignHCenter); _layout->setAlignment(TQt::AlignHCenter);
} }
else { else {
_layout = new TQHBoxLayout( this ); _layout = new TQHBoxLayout( this );
_layout->tqsetAlignment(TQt::AlignVCenter); _layout->setAlignment(TQt::AlignVCenter);
} }
TQToolTip::add( this, m_mixdevice->name() ); TQToolTip::add( this, m_mixdevice->name() );
//this->setStretchFactor( _layout, 0 ); //this->setStretchFactor( _layout, 0 );
//TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum); //TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum);
//_layout->tqsetSizePolicy(qsp); //_layout->setSizePolicy(qsp);
//_layout->setSpacing(KDialog::spacingHint()); //_layout->setSpacing(KDialog::spacingHint());
_label = new TQLabel( m_mixdevice->name(), this); _label = new TQLabel( m_mixdevice->name(), this);
_layout->addWidget(_label); _layout->addWidget(_label);
_label->setFixedHeight(_label->tqsizeHint().height()); _label->setFixedHeight(_label->sizeHint().height());
_enumCombo = new KComboBox( FALSE, this, "mixerCombo" ); _enumCombo = new KComboBox( FALSE, this, "mixerCombo" );
// ------------ fill ComboBox start ------------ // ------------ fill ComboBox start ------------
int maxEnumId= m_mixdevice->enumValues().count(); int maxEnumId= m_mixdevice->enumValues().count();
@ -98,7 +98,7 @@ void MDWEnum::createWidgets()
} }
// ------------ fill ComboBox end -------------- // ------------ fill ComboBox end --------------
_layout->addWidget(_enumCombo); _layout->addWidget(_enumCombo);
_enumCombo->setFixedHeight(_enumCombo->tqsizeHint().height()); _enumCombo->setFixedHeight(_enumCombo->sizeHint().height());
connect( _enumCombo, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( setEnumId( int ) ) ); connect( _enumCombo, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( setEnumId( int ) ) );
TQToolTip::add( _enumCombo, m_mixdevice->name() ); TQToolTip::add( _enumCombo, m_mixdevice->name() );
@ -127,13 +127,13 @@ void MDWEnum::showContextMenu()
menu->popup( pos ); menu->popup( pos );
} }
TQSize MDWEnum::tqsizeHint() const { TQSize MDWEnum::sizeHint() const {
if ( _layout != 0 ) { if ( _layout != 0 ) {
return _layout->tqsizeHint(); return _layout->sizeHint();
} }
else { else {
// tqlayout not (yet) created // layout not (yet) created
return TQWidget::tqsizeHint(); return TQWidget::sizeHint();
} }
} }

@ -51,7 +51,7 @@ public:
~MDWEnum(); ~MDWEnum();
void addActionToPopup( KAction *action ); void addActionToPopup( KAction *action );
TQSize tqsizeHint() const; TQSize sizeHint() const;
bool eventFilter( TQObject* obj, TQEvent* e ); bool eventFilter( TQObject* obj, TQEvent* e );
public slots: public slots:

@ -33,7 +33,7 @@
#include <tqcursor.h> #include <tqcursor.h>
#include <tqslider.h> #include <tqslider.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqpixmap.h> #include <tqpixmap.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqwmatrix.h> #include <tqwmatrix.h>
@ -81,11 +81,11 @@ MDWSlider::MDWSlider(Mixer *mixer, MixDevice* md,
// create widgets // create widgets
createWidgets( showMuteLED, showRecordLED ); createWidgets( showMuteLED, showRecordLED );
m_keys->insert( "Increase volume", i18n( "Increase Volume of '%1'" ).tqarg(m_mixdevice->name().utf8().data()), TQString(), m_keys->insert( "Increase volume", i18n( "Increase Volume of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString(),
KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( increaseVolume() ) ); KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( increaseVolume() ) );
m_keys->insert( "Decrease volume", i18n( "Decrease Volume of '%1'" ).tqarg(m_mixdevice->name().utf8().data()), TQString(), m_keys->insert( "Decrease volume", i18n( "Decrease Volume of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString(),
KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( decreaseVolume() ) ); KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( decreaseVolume() ) );
m_keys->insert( "Toggle mute", i18n( "Toggle Mute of '%1'" ).tqarg(m_mixdevice->name().utf8().data()), TQString(), m_keys->insert( "Toggle mute", i18n( "Toggle Mute of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString(),
KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( toggleMuted() ) ); KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( toggleMuted() ) );
installEventFilter( this ); // filter for popup installEventFilter( this ); // filter for popup
@ -115,25 +115,25 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
{ {
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
_layout = new TQVBoxLayout( this ); _layout = new TQVBoxLayout( this );
_layout->tqsetAlignment(TQt::AlignCenter); _layout->setAlignment(TQt::AlignCenter);
} }
else { else {
_layout = new TQHBoxLayout( this ); _layout = new TQHBoxLayout( this );
_layout->tqsetAlignment(TQt::AlignCenter); _layout->setAlignment(TQt::AlignCenter);
} }
// -- MAIN SLIDERS LAYOUT --- // -- MAIN SLIDERS LAYOUT ---
TQBoxLayout *slidersLayout; TQBoxLayout *slidersLayout;
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
slidersLayout = new TQHBoxLayout( _layout ); slidersLayout = new TQHBoxLayout( _layout );
slidersLayout->tqsetAlignment(TQt::AlignVCenter); slidersLayout->setAlignment(TQt::AlignVCenter);
} }
else { else {
slidersLayout = new TQVBoxLayout( _layout ); slidersLayout = new TQVBoxLayout( _layout );
slidersLayout->tqsetAlignment(TQt::AlignHCenter); slidersLayout->setAlignment(TQt::AlignHCenter);
} }
/* cesken: This is inconsistent. Why should vertical and horizontal tqlayout differ? /* cesken: This is inconsistent. Why should vertical and horizontal layout differ?
* Also it eats too much space - especially when you don't show sliders at all. * Also it eats too much space - especially when you don't show sliders at all.
* Even more on the vertical panel applet (see Bug #97667) * Even more on the vertical panel applet (see Bug #97667)
if ( _orientation == Qt::Horizontal ) if ( _orientation == Qt::Horizontal )
@ -145,11 +145,11 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
TQBoxLayout *labelLayout; TQBoxLayout *labelLayout;
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
labelLayout = new TQVBoxLayout( slidersLayout ); labelLayout = new TQVBoxLayout( slidersLayout );
labelLayout->tqsetAlignment(TQt::AlignHCenter); labelLayout->setAlignment(TQt::AlignHCenter);
} }
else { else {
labelLayout = new TQHBoxLayout( slidersLayout ); labelLayout = new TQHBoxLayout( slidersLayout );
labelLayout->tqsetAlignment(TQt::AlignVCenter); labelLayout->setAlignment(TQt::AlignVCenter);
} }
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
m_label = new VerticalText( this, m_mixdevice->name().utf8().data() ); m_label = new VerticalText( this, m_mixdevice->name().utf8().data() );
@ -183,22 +183,22 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
TQBoxLayout *sliLayout; TQBoxLayout *sliLayout;
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
sliLayout = new TQVBoxLayout( slidersLayout ); sliLayout = new TQVBoxLayout( slidersLayout );
sliLayout->tqsetAlignment(TQt::AlignHCenter); sliLayout->setAlignment(TQt::AlignHCenter);
} }
else { else {
sliLayout = new TQHBoxLayout( slidersLayout ); sliLayout = new TQHBoxLayout( slidersLayout );
sliLayout->tqsetAlignment(TQt::AlignVCenter); sliLayout->setAlignment(TQt::AlignVCenter);
} }
// --- ICON ---------------------------- // --- ICON ----------------------------
TQBoxLayout *iconLayout; TQBoxLayout *iconLayout;
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
iconLayout = new TQHBoxLayout( sliLayout ); iconLayout = new TQHBoxLayout( sliLayout );
iconLayout->tqsetAlignment(TQt::AlignVCenter); iconLayout->setAlignment(TQt::AlignVCenter);
} }
else { else {
iconLayout = new TQVBoxLayout( sliLayout ); iconLayout = new TQVBoxLayout( sliLayout );
iconLayout->tqsetAlignment(TQt::AlignHCenter); iconLayout->setAlignment(TQt::AlignHCenter);
} }
m_iconLabel = 0L; m_iconLabel = 0L;
@ -213,36 +213,36 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// --- MUTE LED // --- MUTE LED
if ( showMuteLED ) { if ( showMuteLED ) {
TQBoxLayout *ledtqlayout; TQBoxLayout *ledlayout;
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
ledtqlayout = new TQHBoxLayout( sliLayout ); ledlayout = new TQHBoxLayout( sliLayout );
ledtqlayout->tqsetAlignment(TQt::AlignVCenter); ledlayout->setAlignment(TQt::AlignVCenter);
} }
else { else {
ledtqlayout = new TQVBoxLayout( sliLayout ); ledlayout = new TQVBoxLayout( sliLayout );
ledtqlayout->tqsetAlignment(TQt::AlignHCenter); ledlayout->setAlignment(TQt::AlignHCenter);
} }
if( m_mixdevice->hasMute() ) if( m_mixdevice->hasMute() )
{ {
ledtqlayout->addStretch(); ledlayout->addStretch();
// create mute LED // create mute LED
m_muteLED = new KLedButton( TQt::green, KLed::On, KLed::Sunken, m_muteLED = new KLedButton( TQt::green, KLed::On, KLed::Sunken,
KLed::Circular, this, "MuteLED" ); KLed::Circular, this, "MuteLED" );
m_muteLED->setFixedSize( TQSize(16, 16) ); m_muteLED->setFixedSize( TQSize(16, 16) );
m_muteLED->resize( TQSize(16, 16) ); m_muteLED->resize( TQSize(16, 16) );
ledtqlayout->addWidget( m_muteLED ); ledlayout->addWidget( m_muteLED );
TQToolTip::add( m_muteLED, i18n( "Mute" ) ); TQToolTip::add( m_muteLED, i18n( "Mute" ) );
connect( m_muteLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(toggleMuted()) ); connect( m_muteLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(toggleMuted()) );
m_muteLED->installEventFilter( this ); m_muteLED->installEventFilter( this );
ledtqlayout->addStretch(); ledlayout->addStretch();
} // has Mute LED } // has Mute LED
else { else {
// we don't have a MUTE LED. We create a dummy widget // we don't have a MUTE LED. We create a dummy widget
// !! possibly not neccesary any more (we are layouted) // !! possibly not neccesary any more (we are layouted)
TQWidget *qw = new TQWidget(this, "Spacer"); TQWidget *qw = new TQWidget(this, "Spacer");
qw->setFixedSize( TQSize(16, 16) ); qw->setFixedSize( TQSize(16, 16) );
ledtqlayout->addWidget(qw); ledlayout->addWidget(qw);
qw->installEventFilter( this ); qw->installEventFilter( this );
} // has no Mute LED } // has no Mute LED
@ -253,11 +253,11 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
TQBoxLayout *volLayout; TQBoxLayout *volLayout;
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
volLayout = new TQHBoxLayout( sliLayout ); volLayout = new TQHBoxLayout( sliLayout );
volLayout->tqsetAlignment(TQt::AlignVCenter); volLayout->setAlignment(TQt::AlignVCenter);
} }
else { else {
volLayout = new TQVBoxLayout( sliLayout ); volLayout = new TQVBoxLayout( sliLayout );
volLayout->tqsetAlignment(TQt::AlignHCenter); volLayout->setAlignment(TQt::AlignHCenter);
} }
// Sliders and volume number indication // Sliders and volume number indication
@ -273,11 +273,11 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
slinumLayout = new TQVBoxLayout( volLayout ); slinumLayout = new TQVBoxLayout( volLayout );
slinumLayout->tqsetAlignment(TQt::AlignHCenter); slinumLayout->setAlignment(TQt::AlignHCenter);
} }
else { else {
slinumLayout = new TQHBoxLayout( volLayout ); slinumLayout = new TQHBoxLayout( volLayout );
slinumLayout->tqsetAlignment(TQt::AlignVCenter); slinumLayout->setAlignment(TQt::AlignVCenter);
} }
// create labels to hold volume values (taken from qamix/kamix) // create labels to hold volume values (taken from qamix/kamix)
@ -285,7 +285,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
slinumLayout->addWidget( number ); slinumLayout->addWidget( number );
number->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); number->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
number->setLineWidth( 2 ); number->setLineWidth( 2 );
number->setMinimumWidth( number->tqsizeHint().width() ); number->setMinimumWidth( number->sizeHint().width() );
number->setPaletteBackgroundColor( TQColor(190, 250, 190) ); number->setPaletteBackgroundColor( TQColor(190, 250, 190) );
// don't show the value by default // don't show the value by default
number->hide(); number->hide();
@ -302,7 +302,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
slider = new TQSlider( 0, maxvol, maxvol/10, slider = new TQSlider( 0, maxvol, maxvol/10,
maxvol - m_mixdevice->getVolume( chid ), _orientation, maxvol - m_mixdevice->getVolume( chid ), _orientation,
this, m_mixdevice->name().ascii() ); this, m_mixdevice->name().ascii() );
slider->setMinimumSize( slider->tqsizeHint() ); slider->setMinimumSize( slider->sizeHint() );
} }
slider->setBackgroundOrigin(AncestorOrigin); slider->setBackgroundOrigin(AncestorOrigin);
@ -314,7 +314,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
slider->hide(); slider->hide();
number->hide(); number->hide();
} }
slinumLayout->addWidget( slider ); // add to tqlayout slinumLayout->addWidget( slider ); // add to layout
m_sliders.append ( slider ); // add to list m_sliders.append ( slider ); // add to list
_slidersChids.append(chid); // Remember slider-chid association _slidersChids.append(chid); // Remember slider-chid association
connect( slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(volumeChange(int)) ); connect( slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(volumeChange(int)) );
@ -327,27 +327,27 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
sliLayout->addSpacing( 5 ); sliLayout->addSpacing( 5 );
// --- LED LAYOUT TO CENTER --- // --- LED LAYOUT TO CENTER ---
TQBoxLayout *rectqlayout; TQBoxLayout *reclayout;
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
rectqlayout = new TQHBoxLayout( sliLayout ); reclayout = new TQHBoxLayout( sliLayout );
rectqlayout->tqsetAlignment(TQt::AlignVCenter); reclayout->setAlignment(TQt::AlignVCenter);
} }
else { else {
rectqlayout = new TQVBoxLayout( sliLayout ); reclayout = new TQVBoxLayout( sliLayout );
rectqlayout->tqsetAlignment(TQt::AlignHCenter); reclayout->setAlignment(TQt::AlignHCenter);
} }
if( m_mixdevice->isRecordable() ) { if( m_mixdevice->isRecordable() ) {
rectqlayout->addStretch(); reclayout->addStretch();
m_recordLED = new KLedButton( TQt::red, m_recordLED = new KLedButton( TQt::red,
m_mixdevice->isRecSource()?KLed::On:KLed::Off, m_mixdevice->isRecSource()?KLed::On:KLed::Off,
KLed::Sunken, KLed::Circular, this, "RecordLED" ); KLed::Sunken, KLed::Circular, this, "RecordLED" );
m_recordLED->setFixedSize( TQSize(16, 16) ); m_recordLED->setFixedSize( TQSize(16, 16) );
rectqlayout->addWidget( m_recordLED ); reclayout->addWidget( m_recordLED );
connect(m_recordLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(setRecsrc(bool))); connect(m_recordLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(setRecsrc(bool)));
m_recordLED->installEventFilter( this ); m_recordLED->installEventFilter( this );
TQToolTip::add( m_recordLED, i18n( "Record" ) ); TQToolTip::add( m_recordLED, i18n( "Record" ) );
rectqlayout->addStretch(); reclayout->addStretch();
} }
else else
{ {
@ -355,12 +355,12 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// !! possibly not neccesary any more (we are layouted) // !! possibly not neccesary any more (we are layouted)
TQWidget *qw = new TQWidget(this, "Spacer"); TQWidget *qw = new TQWidget(this, "Spacer");
qw->setFixedSize( TQSize(16, 16) ); qw->setFixedSize( TQSize(16, 16) );
rectqlayout->addWidget(qw); reclayout->addWidget(qw);
qw->installEventFilter( this ); qw->installEventFilter( this );
} // has no Record LED } // has no Record LED
} // showRecordLED } // showRecordLED
tqlayout()->activate(); layout()->activate();
} }
@ -432,13 +432,13 @@ MDWSlider::setIcon( int icontype )
m_iconLabel->resize( 10, 10 ); m_iconLabel->resize( 10, 10 );
} else } else
m_iconLabel->setPixmap( miniDevPM ); m_iconLabel->setPixmap( miniDevPM );
m_iconLabel->tqsetAlignment( TQt::AlignCenter ); m_iconLabel->setAlignment( TQt::AlignCenter );
} else } else
{ {
kdError(67100) << "Pixmap missing." << endl; kdError(67100) << "Pixmap missing." << endl;
} }
tqlayout()->activate(); layout()->activate();
} }
bool bool
@ -514,7 +514,7 @@ MDWSlider::setStereoLinked(bool value)
if( slider && static_cast<TQSlider *>(slider)->tickmarks() ) if( slider && static_cast<TQSlider *>(slider)->tickmarks() )
setTicks( true ); setTicks( true );
tqlayout()->activate(); layout()->activate();
} }
@ -529,7 +529,7 @@ MDWSlider::setLabeled(bool value)
else else
m_label->hide(); m_label->hide();
tqlayout()->activate(); layout()->activate();
} }
void void
@ -558,7 +558,7 @@ MDWSlider::setTicks( bool ticks )
} }
} }
tqlayout()->activate(); layout()->activate();
} }
void void
@ -579,7 +579,7 @@ MDWSlider::setValueStyle( ValueStyle valueStyle )
} }
} }
} }
tqlayout()->activate(); layout()->activate();
} }
void void
@ -592,7 +592,7 @@ MDWSlider::setIcons(bool value)
else else
m_iconLabel->hide(); m_iconLabel->hide();
tqlayout()->activate(); layout()->activate();
} }
} // if it has an icon } // if it has an icon
} }
@ -934,13 +934,13 @@ void MDWSlider::showContextMenu()
menu->popup( pos ); menu->popup( pos );
} }
TQSize MDWSlider::tqsizeHint() const { TQSize MDWSlider::sizeHint() const {
if ( _layout != 0 ) { if ( _layout != 0 ) {
return _layout->tqsizeHint(); return _layout->sizeHint();
} }
else { else {
// tqlayout not (yet) created // layout not (yet) created
return TQWidget::tqsizeHint(); return TQWidget::sizeHint();
} }
} }

@ -77,7 +77,7 @@ public:
void setValueStyle( ValueStyle valueStyle ); void setValueStyle( ValueStyle valueStyle );
void setColors( TQColor high, TQColor low, TQColor back ); void setColors( TQColor high, TQColor low, TQColor back );
void setMutedColors( TQColor high, TQColor low, TQColor back ); void setMutedColors( TQColor high, TQColor low, TQColor back );
TQSize tqsizeHint() const; TQSize sizeHint() const;
bool eventFilter( TQObject* obj, TQEvent* e ); bool eventFilter( TQObject* obj, TQEvent* e );
TQSizePolicy sizePolicy() const; TQSizePolicy sizePolicy() const;

@ -21,7 +21,7 @@
#include <tqcursor.h> #include <tqcursor.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqobject.h> #include <tqobject.h>
#include <tqslider.h> #include <tqslider.h>
#include <tqtooltip.h> #include <tqtooltip.h>
@ -79,11 +79,11 @@ void MDWSwitch::createWidgets()
{ {
if ( _orientation == Qt::Vertical ) { if ( _orientation == Qt::Vertical ) {
_layout = new TQVBoxLayout( this ); _layout = new TQVBoxLayout( this );
_layout->tqsetAlignment(TQt::AlignHCenter); _layout->setAlignment(TQt::AlignHCenter);
} }
else { else {
_layout = new TQHBoxLayout( this ); _layout = new TQHBoxLayout( this );
_layout->tqsetAlignment(TQt::AlignVCenter); _layout->setAlignment(TQt::AlignVCenter);
} }
TQToolTip::add( this, m_mixdevice->name() ); TQToolTip::add( this, m_mixdevice->name() );
@ -164,13 +164,13 @@ void MDWSwitch::showContextMenu()
menu->popup( pos ); menu->popup( pos );
} }
TQSize MDWSwitch::tqsizeHint() const { TQSize MDWSwitch::sizeHint() const {
if ( _layout != 0 ) { if ( _layout != 0 ) {
return _layout->tqsizeHint(); return _layout->sizeHint();
} }
else { else {
// tqlayout not (yet) created // layout not (yet) created
return TQWidget::tqsizeHint(); return TQWidget::sizeHint();
} }
} }

@ -61,7 +61,7 @@ public:
~MDWSwitch(); ~MDWSwitch();
void addActionToPopup( KAction *action ); void addActionToPopup( KAction *action );
TQSize tqsizeHint() const; TQSize sizeHint() const;
void setBackgroundMode(BackgroundMode m); void setBackgroundMode(BackgroundMode m);
bool eventFilter( TQObject* obj, TQEvent* e ); bool eventFilter( TQObject* obj, TQEvent* e );

@ -33,7 +33,7 @@
#include <tqcursor.h> #include <tqcursor.h>
#include <tqslider.h> #include <tqslider.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqpixmap.h> #include <tqpixmap.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqwmatrix.h> #include <tqwmatrix.h>

@ -115,7 +115,7 @@ Mixer_ALSA::open()
// Card information // Card information
if ((unsigned)m_devnum > 31) m_devnum = -1; if ((unsigned)m_devnum > 31) m_devnum = -1;
devName = m_devnum == -1 ? "default" : TQString("hw:%1").tqarg(m_devnum); devName = m_devnum == -1 ? "default" : TQString("hw:%1").arg(m_devnum);
TQString probeMessage; TQString probeMessage;

@ -148,9 +148,9 @@ void MixerToolBox::initMixer(TQPtrList<Mixer> &mixers, bool multiDriverMode, TQS
TQString mixerName = mixer->mixerName(); TQString mixerName = mixer->mixerName();
mixerName.replace(":","_"); mixerName.replace(":","_");
TQString primaryKeyOfMixer = TQString("%1::%2:%3") TQString primaryKeyOfMixer = TQString("%1::%2:%3")
.tqarg(driverName) .arg(driverName)
.tqarg(mixerName) .arg(mixerName)
.tqarg(mixerNums[mixer->mixerName()]); .arg(mixerNums[mixer->mixerName()]);
// The following 3 replaces are for not messing up the config file // The following 3 replaces are for not messing up the config file
primaryKeyOfMixer.replace("]","_"); primaryKeyOfMixer.replace("]","_");
primaryKeyOfMixer.replace("[","_"); // not strictly neccesary, but lets play safe primaryKeyOfMixer.replace("[","_"); // not strictly neccesary, but lets play safe

@ -46,7 +46,7 @@ void VerticalText::paintEvent ( TQPaintEvent * /*event*/ ) {
paint.drawText( -height()+2, width(), TQString::fromUtf8(name()) ); paint.drawText( -height()+2, width(), TQString::fromUtf8(name()) );
} }
TQSize VerticalText::tqsizeHint() const { TQSize VerticalText::sizeHint() const {
return TQSize(20,100); // !! UGLY. Should be reworked return TQSize(20,100); // !! UGLY. Should be reworked
} }

@ -9,7 +9,7 @@ public:
VerticalText(TQWidget * parent, const char * name, WFlags f = 0); VerticalText(TQWidget * parent, const char * name, WFlags f = 0);
~VerticalText(); ~VerticalText();
TQSize tqsizeHint() const; TQSize sizeHint() const;
TQSizePolicy sizePolicy () const; TQSizePolicy sizePolicy () const;
protected: protected:

@ -22,7 +22,7 @@
// TQt // TQt
#include <tqwidget.h> #include <tqwidget.h>
#include <tqlayout.h> #include <layout.h>
#include <tqsize.h> #include <tqsize.h>
// KDE // KDE
@ -56,11 +56,11 @@ ViewApplet::ViewApplet(TQWidget* parent, const char* name, Mixer* mixer, ViewBas
if ( _viewOrientation == Qt::Horizontal ) { if ( _viewOrientation == Qt::Horizontal ) {
_layoutMDW = new TQHBoxLayout( this ); _layoutMDW = new TQHBoxLayout( this );
tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred); setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred);
} }
else { else {
_layoutMDW = new TQVBoxLayout( this ); _layoutMDW = new TQVBoxLayout( this );
tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
} }
@ -139,10 +139,10 @@ void ViewApplet::constructionFinished() {
} }
TQSize ViewApplet::tqsizeHint() const { TQSize ViewApplet::sizeHint() const {
// Basically out main tqlayout knows very good what the sizes should be // Basically out main layout knows very good what the sizes should be
TQSize qsz = _layoutMDW->tqsizeHint(); TQSize qsz = _layoutMDW->sizeHint();
//kdDebug(67100) << "ViewApplet::tqsizeHint(): NewSize is " << qsz << "\n"; //kdDebug(67100) << "ViewApplet::sizeHint(): NewSize is " << qsz << "\n";
return qsz; return qsz;
} }
@ -196,7 +196,7 @@ void ViewApplet::resizeEvent(TQResizeEvent *qre)
// kdDebug(67100) << "ViewApplet::resizeEvent(). SHOULD resize _layoutMDW to " << qre->size() << endl; // kdDebug(67100) << "ViewApplet::resizeEvent(). SHOULD resize _layoutMDW to " << qre->size() << endl;
//TQWidget::resizeEvent(qre); //TQWidget::resizeEvent(qre);
// resizing changes our own tqsizeHint(), because we must take the new PanelSize in account. // resizing changes our own sizeHint(), because we must take the new PanelSize in account.
// So updateGeometry() is amust for us. // So updateGeometry() is amust for us.
updateGeometry(); updateGeometry();
} }

@ -25,7 +25,7 @@ public:
virtual void constructionFinished(); virtual void constructionFinished();
virtual void configurationUpdate(); virtual void configurationUpdate();
TQSize tqsizeHint() const; TQSize sizeHint() const;
TQSizePolicy sizePolicy() const; TQSizePolicy sizePolicy() const;
virtual void resizeEvent(TQResizeEvent*); virtual void resizeEvent(TQResizeEvent*);

@ -24,7 +24,7 @@
// TQt // TQt
#include <tqwidget.h> #include <tqwidget.h>
#include <tqevent.h> #include <tqevent.h>
#include <tqlayout.h> #include <layout.h>
#include <tqframe.h> #include <tqframe.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqdatetime.h> #include <tqdatetime.h>
@ -46,9 +46,9 @@
ViewDockAreaPopup::ViewDockAreaPopup(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW ) ViewDockAreaPopup::ViewDockAreaPopup(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW )
: ViewBase(parent, name, TQString(), mixer, WStyle_Customize | WType_Popup | TQt::WStyle_DialogBorder, vflags), _mdw(0), _dock(dockW) : ViewBase(parent, name, TQString(), mixer, WStyle_Customize | WType_Popup | TQt::WStyle_DialogBorder, vflags), _mdw(0), _dock(dockW)
{ {
TQBoxLayout *tqlayout = new TQHBoxLayout( this ); TQBoxLayout *layout = new TQHBoxLayout( this );
_frame = new TQFrame( this ); _frame = new TQFrame( this );
tqlayout->addWidget( _frame ); layout->addWidget( _frame );
_frame->setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised ); _frame->setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised );
_frame->setLineWidth( 1 ); _frame->setLineWidth( 1 );
@ -163,9 +163,9 @@ int ViewDockAreaPopup::advice() {
} }
} }
TQSize ViewDockAreaPopup::tqsizeHint() const { TQSize ViewDockAreaPopup::sizeHint() const {
// kdDebug(67100) << "ViewDockAreaPopup::tqsizeHint(): NewSize is " << _mdw->tqsizeHint() << "\n"; // kdDebug(67100) << "ViewDockAreaPopup::sizeHint(): NewSize is " << _mdw->sizeHint() << "\n";
return( _mdw->tqsizeHint() ); return( _mdw->sizeHint() );
} }
void ViewDockAreaPopup::constructionFinished() { void ViewDockAreaPopup::constructionFinished() {
@ -173,8 +173,8 @@ void ViewDockAreaPopup::constructionFinished() {
_mdw->move(0,0); _mdw->move(0,0);
_mdw->show(); _mdw->show();
_mdw->resize(_mdw->tqsizeHint() ); _mdw->resize(_mdw->sizeHint() );
resize(tqsizeHint()); resize(sizeHint());
} }

@ -32,7 +32,7 @@ public:
virtual void refreshVolumeLevels(); virtual void refreshVolumeLevels();
virtual void showContextMenu(); virtual void showContextMenu();
TQSize tqsizeHint() const; TQSize sizeHint() const;
bool justHidden(); bool justHidden();
protected: protected:

@ -126,23 +126,23 @@ TQWidget* ViewGrid::add(MixDevice *md)
return mdw; return mdw;
} }
TQSize ViewGrid::tqsizeHint() const { TQSize ViewGrid::sizeHint() const {
// kdDebug(67100) << "ViewGrid::tqsizeHint(): NewSize is " << _layoutMDW->tqsizeHint() << "\n"; // kdDebug(67100) << "ViewGrid::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n";
return( m_tqsizeHint); return( m_sizeHint);
} }
void ViewGrid::constructionFinished() { void ViewGrid::constructionFinished() {
//_layoutMDW->activate(); //_layoutMDW->activate();
// do a manual tqlayout // do a manual layout
configurationUpdate(); configurationUpdate();
} }
void ViewGrid::refreshVolumeLevels() { void ViewGrid::refreshVolumeLevels() {
// kdDebug(67100) << "ViewGrid::refreshVolumeLevels()\n"; // kdDebug(67100) << "ViewGrid::refreshVolumeLevels()\n";
m_tqsizeHint.setWidth (0); m_sizeHint.setWidth (0);
m_tqsizeHint.setHeight(0); m_sizeHint.setHeight(0);
m_testingX = 0; m_testingX = 0;
m_testingY = 0; m_testingY = 0;
@ -178,12 +178,12 @@ void ViewGrid::refreshVolumeLevels() {
} }
/** /**
This implementation makes sure the Grid's tqgeometry is updated This implementation makes sure the Grid's geometry is updated
after hiding/showing channels. after hiding/showing channels.
*/ */
void ViewGrid::configurationUpdate() { void ViewGrid::configurationUpdate() {
m_tqsizeHint.setWidth (0); m_sizeHint.setWidth (0);
m_tqsizeHint.setHeight(0); m_sizeHint.setHeight(0);
m_testingX = 0; m_testingX = 0;
m_testingY = 0; m_testingY = 0;
@ -195,9 +195,9 @@ void ViewGrid::configurationUpdate() {
int xPos = m_testingX * m_spacingHorizontal; int xPos = m_testingX * m_spacingHorizontal;
int yPos = m_testingY * m_spacingVertical ; int yPos = m_testingY * m_spacingVertical ;
mdw->move( xPos, yPos ); mdw->move( xPos, yPos );
mdw->resize( mdw->tqsizeHint() ); mdw->resize( mdw->sizeHint() );
int xMax = xPos + mdw->width() ; if ( xMax > m_tqsizeHint.width() ) m_tqsizeHint.setWidth(xMax); int xMax = xPos + mdw->width() ; if ( xMax > m_sizeHint.width() ) m_sizeHint.setWidth(xMax);
int yMax = yPos + mdw->height(); if ( yMax > m_tqsizeHint.height() ) m_tqsizeHint.setHeight(yMax); int yMax = yPos + mdw->height(); if ( yMax > m_sizeHint.height() ) m_sizeHint.setHeight(yMax);
m_testingX += 5; m_testingX += 5;
if ( m_testingX > 50 ) { if ( m_testingX > 50 ) {

@ -23,7 +23,7 @@ public:
virtual void configurationUpdate(); virtual void configurationUpdate();
virtual void constructionFinished(); virtual void constructionFinished();
TQSize tqsizeHint() const; TQSize sizeHint() const;
public slots: public slots:
virtual void refreshVolumeLevels(); virtual void refreshVolumeLevels();
@ -33,7 +33,7 @@ private:
unsigned int m_spacingVertical; unsigned int m_spacingVertical;
// m_maxX and m_maxY are the highest coordiantes encountered // m_maxX and m_maxY are the highest coordiantes encountered
TQSize m_tqsizeHint; TQSize m_sizeHint;
unsigned int m_testingX; unsigned int m_testingX;
unsigned int m_testingY; unsigned int m_testingY;

@ -22,7 +22,7 @@
#include "viewsliders.h" #include "viewsliders.h"
// TQt // TQt
#include <tqlayout.h> #include <layout.h>
#include <tqwidget.h> #include <tqwidget.h>
// KDE // KDE
@ -102,9 +102,9 @@ TQWidget* ViewSliders::add(MixDevice *md)
return mdw; return mdw;
} }
TQSize ViewSliders::tqsizeHint() const { TQSize ViewSliders::sizeHint() const {
// kdDebug(67100) << "ViewSliders::tqsizeHint(): NewSize is " << _layoutMDW->tqsizeHint() << "\n"; // kdDebug(67100) << "ViewSliders::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n";
return( _layoutMDW->tqsizeHint() ); return( _layoutMDW->sizeHint() );
} }
void ViewSliders::constructionFinished() { void ViewSliders::constructionFinished() {

@ -21,7 +21,7 @@ public:
virtual TQWidget* add(MixDevice *mdw); virtual TQWidget* add(MixDevice *mdw);
virtual void constructionFinished(); virtual void constructionFinished();
TQSize tqsizeHint() const; TQSize sizeHint() const;
public slots: public slots:
virtual void refreshVolumeLevels(); virtual void refreshVolumeLevels();

@ -23,7 +23,7 @@
// TQt // TQt
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqwidget.h> #include <tqwidget.h>
// KDE // KDE
@ -154,7 +154,7 @@ TQWidget* ViewSurround::add(MixDevice *md)
case MixDevice::SURROUND: case MixDevice::SURROUND:
case MixDevice::AC97: case MixDevice::AC97:
default: default:
// Add as slider to the tqlayout on the left side // Add as slider to the layout on the left side
_layoutSliders->add(mdw); _layoutSliders->add(mdw);
break; break;
} // switch(type) } // switch(type)
@ -162,9 +162,9 @@ TQWidget* ViewSurround::add(MixDevice *md)
return mdw; return mdw;
} }
TQSize ViewSurround::tqsizeHint() const { TQSize ViewSurround::sizeHint() const {
// kdDebug(67100) << "ViewSurround::tqsizeHint(): NewSize is " << _layoutMDW->tqsizeHint() << "\n"; // kdDebug(67100) << "ViewSurround::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n";
return( _layoutMDW->tqsizeHint() ); return( _layoutMDW->sizeHint() );
} }
void ViewSurround::constructionFinished() { void ViewSurround::constructionFinished() {

@ -24,7 +24,7 @@ public:
virtual TQWidget* add(MixDevice *mdw); virtual TQWidget* add(MixDevice *mdw);
virtual void constructionFinished(); virtual void constructionFinished();
TQSize tqsizeHint() const; TQSize sizeHint() const;
public slots: public slots:
virtual void refreshVolumeLevels(); virtual void refreshVolumeLevels();

@ -21,7 +21,7 @@
#include "viewswitches.h" #include "viewswitches.h"
#include <tqlayout.h> #include <layout.h>
#include <tqwidget.h> #include <tqwidget.h>
#include <kdebug.h> #include <kdebug.h>
@ -46,7 +46,7 @@ ViewSwitches::ViewSwitches(TQWidget* parent, const char* name, const TQString &
// Place enums right from the switches: This is done, so that there will be no // Place enums right from the switches: This is done, so that there will be no
// ugly space on the left side, when no Switch is shown. // ugly space on the left side, when no Switch is shown.
// Actually it is not really clear yet, why there is empty space at all: There are 0 items in // Actually it is not really clear yet, why there is empty space at all: There are 0 items in
// the _layoutEnum, so it might be a tqsizeHint() or some other subtle tqlayout issue. // the _layoutEnum, so it might be a sizeHint() or some other subtle layout issue.
_layoutEnum = new TQVBoxLayout(_layoutMDW); _layoutEnum = new TQVBoxLayout(_layoutMDW);
} }
init(); init();
@ -118,9 +118,9 @@ TQWidget* ViewSwitches::add(MixDevice *md)
return mdw; return mdw;
} }
TQSize ViewSwitches::tqsizeHint() const { TQSize ViewSwitches::sizeHint() const {
//kdDebug(67100) << "ViewSwitches::tqsizeHint(): NewSize is " << _layoutMDW->tqsizeHint() << "\n"; //kdDebug(67100) << "ViewSwitches::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n";
return( _layoutMDW->tqsizeHint() ); return( _layoutMDW->sizeHint() );
} }
void ViewSwitches::constructionFinished() { void ViewSwitches::constructionFinished() {

@ -22,7 +22,7 @@ public:
virtual void constructionFinished(); virtual void constructionFinished();
virtual void configurationUpdate(); virtual void configurationUpdate();
TQSize tqsizeHint() const; TQSize sizeHint() const;
public slots: public slots:
virtual void refreshVolumeLevels(); virtual void refreshVolumeLevels();

@ -18,7 +18,7 @@
#include <kgenericfactory.h> #include <kgenericfactory.h>
#include <kdebug.h> #include <kdebug.h>
#include <tqlayout.h> #include <layout.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqlineedit.h> #include <tqlineedit.h>

@ -18,7 +18,7 @@
#include <kgenericfactory.h> #include <kgenericfactory.h>
#include <kdebug.h> #include <kdebug.h>
#include <tqlayout.h> #include <layout.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
@ -87,13 +87,13 @@ KRecConfigGeneral::KRecConfigGeneral( TQWidget* p, const char*, const TQStringLi
_tipofday = new TQCheckBox( i18n( "Show tip of the day at startup" ), this ); _tipofday = new TQCheckBox( i18n( "Show tip of the day at startup" ), this );
connect( _tipofday, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( tipofdaychanged( bool ) ) ); connect( _tipofday, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( tipofdaychanged( bool ) ) );
_layout->addWidget( _tipofday ); _layout->addWidget( _tipofday );
TQBoxLayout* _tmptqlayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight ); TQBoxLayout* _tmplayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
_enableAllMessages = new KPushButton( i18n( "Enable All Hidden Messages" ), this ); _enableAllMessages = new KPushButton( i18n( "Enable All Hidden Messages" ), this );
connect( _enableAllMessages, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableallmessagesclicked() ) ); connect( _enableAllMessages, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableallmessagesclicked() ) );
_tmptqlayout->addWidget( _enableAllMessages ); _tmplayout->addWidget( _enableAllMessages );
TQLabel* _tmplbl = new TQLabel( i18n( "<qt><i>All messages with the \"Don't show this message again\" option are shown again after selecting this button.</i></qt>" ), this ); TQLabel* _tmplbl = new TQLabel( i18n( "<qt><i>All messages with the \"Don't show this message again\" option are shown again after selecting this button.</i></qt>" ), this );
_tmptqlayout->addWidget( _tmplbl ); _tmplayout->addWidget( _tmplbl );
_layout->addLayout( _tmptqlayout ); _layout->addLayout( _tmplayout );
_layout->addStretch( 100 ); _layout->addStretch( 100 );

@ -94,7 +94,7 @@ KRecFile::KRecFile( const TQString &filename, TQObject* p, const char* n )
_config->setGroup( "File-" + TQString::number( i ) ); _config->setGroup( "File-" + TQString::number( i ) );
newBuffer( KRecBuffer::fromConfig( _config, _dir->qDir(), this ) ); newBuffer( KRecBuffer::fromConfig( _config, _dir->qDir(), this ) );
} }
KRecGlobal::the()->message( i18n( "\'%1\' loaded." ).tqarg( filename ) ); KRecGlobal::the()->message( i18n( "\'%1\' loaded." ).arg( filename ) );
delete tar; delete tar;
@ -168,7 +168,7 @@ void KRecFile::save( const TQString &fname ) {
delete tar; delete tar;
KIO::file_move( tmpname, filetosave, -1, true, false, true ); KIO::file_move( tmpname, filetosave, -1, true, false, true );
KRecGlobal::the()->message( i18n( "Saving \"%1\" was successful." ).tqarg( filename() ) ); KRecGlobal::the()->message( i18n( "Saving \"%1\" was successful." ).arg( filename() ) );
_saved = true; _saved = true;
} }
@ -429,7 +429,7 @@ void KRecBuffer::setActive( bool n ) {
} }
void KRecBuffer::deleteBuffer() { void KRecBuffer::deleteBuffer() {
if ( KMessageBox::warningContinueCancel( KRecGlobal::the()->mainWidget(), i18n( "Do you really want to delete the selected part '%1'?" ).tqarg( filename() ), i18n("Delete Part?"), KStdGuiItem::del() ) == KMessageBox::Continue ) if ( KMessageBox::warningContinueCancel( KRecGlobal::the()->mainWidget(), i18n( "Do you really want to delete the selected part '%1'?" ).arg( filename() ), i18n("Delete Part?"), KStdGuiItem::del() ) == KMessageBox::Continue )
_krecfile->deleteBuffer( this ); _krecfile->deleteBuffer( this );
} }

@ -21,7 +21,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <klocale.h> #include <klocale.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqpointarray.h> #include <tqpointarray.h>

@ -18,7 +18,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <klocale.h> #include <klocale.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqpointarray.h> #include <tqpointarray.h>
@ -64,12 +64,12 @@ void KRecTimeBar::mouseReleaseEvent( TQMouseEvent* qme ) {
void KRecTimeBar::newPos( int n ) { void KRecTimeBar::newPos( int n ) {
_pos = n; _pos = n;
tqrepaint(); repaint();
} }
void KRecTimeBar::newSize( int n ) { void KRecTimeBar::newSize( int n ) {
_size = n; _size = n;
tqrepaint(); repaint();
} }
@ -216,10 +216,10 @@ TQString KRecTimeDisplay::formatTime( const int mode, const int sample ) const {
void KRecTimeDisplay::timeContextMenu( TQPopupMenu* menu ) { void KRecTimeDisplay::timeContextMenu( TQPopupMenu* menu ) {
if ( !_filename.isNull() ) { if ( !_filename.isNull() ) {
menu->insertSeparator( 0 ); menu->insertSeparator( 0 );
menu->insertItem( i18n( "kByte: %1" ).tqarg( formatTime( 3, _posvalue ) ), -1, 0 ); menu->insertItem( i18n( "kByte: %1" ).arg( formatTime( 3, _posvalue ) ), -1, 0 );
menu->insertItem( i18n( "[h:]m:s.f %1" ).tqarg( formatTime( 2, _posvalue ) ), -1, 0 ); menu->insertItem( i18n( "[h:]m:s.f %1" ).arg( formatTime( 2, _posvalue ) ), -1, 0 );
menu->insertItem( i18n( "[h:]m:s.s %1" ).tqarg( formatTime( 1, _posvalue ) ), -1, 0 ); menu->insertItem( i18n( "[h:]m:s.s %1" ).arg( formatTime( 1, _posvalue ) ), -1, 0 );
menu->insertItem( i18n( "%1 Samples" ).tqarg( formatTime( 0, _posvalue ) ), -1, 0 ); menu->insertItem( i18n( "%1 Samples" ).arg( formatTime( 0, _posvalue ) ), -1, 0 );
KPopupTitle *tmp = new KPopupTitle( menu ); KPopupTitle *tmp = new KPopupTitle( menu );
tmp->setTitle( i18n( "Position" ) ); tmp->setTitle( i18n( "Position" ) );
menu->insertItem( tmp, -1, 0 ); menu->insertItem( tmp, -1, 0 );
@ -235,10 +235,10 @@ void KRecTimeDisplay::timeContextMenu( const TQPoint &point ) {
void KRecTimeDisplay::sizeContextMenu( TQPopupMenu* menu ) { void KRecTimeDisplay::sizeContextMenu( TQPopupMenu* menu ) {
if ( !_filename.isNull() ) { if ( !_filename.isNull() ) {
menu->insertSeparator( 0 ); menu->insertSeparator( 0 );
menu->insertItem( i18n( "kByte: %1" ).tqarg( formatTime( 3, _sizevalue ) ), -1, 0 ); menu->insertItem( i18n( "kByte: %1" ).arg( formatTime( 3, _sizevalue ) ), -1, 0 );
menu->insertItem( i18n( "[h:]m:s.f %1" ).tqarg( formatTime( 2, _sizevalue ) ), -1, 0 ); menu->insertItem( i18n( "[h:]m:s.f %1" ).arg( formatTime( 2, _sizevalue ) ), -1, 0 );
menu->insertItem( i18n( "[h:]m:s.s %1" ).tqarg( formatTime( 1, _sizevalue ) ), -1, 0 ); menu->insertItem( i18n( "[h:]m:s.s %1" ).arg( formatTime( 1, _sizevalue ) ), -1, 0 );
menu->insertItem( i18n( "%1 Samples" ).tqarg( formatTime( 0, _sizevalue ) ), -1, 0 ); menu->insertItem( i18n( "%1 Samples" ).arg( formatTime( 0, _sizevalue ) ), -1, 0 );
KPopupTitle *tmp = new KPopupTitle( menu ); KPopupTitle *tmp = new KPopupTitle( menu );
tmp->setTitle( i18n( "Size" ) ); tmp->setTitle( i18n( "Size" ) );
menu->insertItem( tmp, -1, 0 ); menu->insertItem( tmp, -1, 0 );
@ -255,10 +255,10 @@ void KRecTimeDisplay::jumpToTime() {
} }
TQString KRecTimeDisplay::positionText( int m, int n ) { TQString KRecTimeDisplay::positionText( int m, int n ) {
return i18n( "Position: %1" ).tqarg( formatTime( m,n ) ); return i18n( "Position: %1" ).arg( formatTime( m,n ) );
} }
TQString KRecTimeDisplay::sizeText( int m, int n ) { TQString KRecTimeDisplay::sizeText( int m, int n ) {
return i18n( "Size: %1" ).tqarg( formatTime( m,n ) ); return i18n( "Size: %1" ).arg( formatTime( m,n ) );
} }
void AKLabel::mousePressEvent( TQMouseEvent* qme ) { void AKLabel::mousePressEvent( TQMouseEvent* qme ) {

@ -19,7 +19,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <klocale.h> #include <klocale.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqpointarray.h> #include <tqpointarray.h>
@ -189,18 +189,18 @@ void KRecBufferWidget::initLayout() {
void KRecBufferWidget::drawFrame( TQPainter* p ) { void KRecBufferWidget::drawFrame( TQPainter* p ) {
//kdDebug( 60005 ) << k_funcinfo << endl; //kdDebug( 60005 ) << k_funcinfo << endl;
if ( _buffer->active() ) if ( _buffer->active() )
p->setBrush( tqcolorGroup().highlight() ); p->setBrush( colorGroup().highlight() );
else else
p->setBrush( tqcolorGroup().highlight().dark() ); p->setBrush( colorGroup().highlight().dark() );
p->setPen( TQPen( tqcolorGroup().dark(), 1 ) ); p->setPen( TQPen( colorGroup().dark(), 1 ) );
p->drawRect( _title_region->boundingRect() ); p->drawRect( _title_region->boundingRect() );
p->drawRect( _fileend_region->boundingRect() ); p->drawRect( _fileend_region->boundingRect() );
p->setBrush( TQBrush() ); p->setBrush( TQBrush() );
p->setPen( TQPen( tqcolorGroup().dark(), 1 ) ); p->setPen( TQPen( colorGroup().dark(), 1 ) );
p->drawRect( _main_region->boundingRect() ); p->drawRect( _main_region->boundingRect() );
p->setPen( TQPen( tqcolorGroup().highlightedText() ) ); p->setPen( TQPen( colorGroup().highlightedText() ) );
p->drawText( _title_region->boundingRect(), TQt::AlignCenter, _buffer->title() ); p->drawText( _title_region->boundingRect(), TQt::AlignCenter, _buffer->title() );
} }

@ -21,7 +21,7 @@
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqvbuttongroup.h> #include <tqvbuttongroup.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqlayout.h> #include <layout.h>
#include <kseparator.h> #include <kseparator.h>
#include <kpushbutton.h> #include <kpushbutton.h>
#include <kstdguiitem.h> #include <kstdguiitem.h>
@ -53,7 +53,7 @@ kdDebug( 60005 ) << k_funcinfo << endl;
labelfont.setPointSize( labelfont.pointSize()*3/2 ); labelfont.setPointSize( labelfont.pointSize()*3/2 );
captionlabel->setFont( labelfont ); captionlabel->setFont( labelfont );
captionlabel->setText( i18n( "Properties for the new File" ) ); captionlabel->setText( i18n( "Properties for the new File" ) );
captionlabel->tqsetAlignment( AlignCenter ); captionlabel->setAlignment( AlignCenter );
_layout->addWidget( captionlabel ); _layout->addWidget( captionlabel );
_filewidget = new KRecConfigFilesWidget( this ); _filewidget = new KRecConfigFilesWidget( this );
@ -74,7 +74,7 @@ kdDebug( 60005 ) << k_funcinfo << endl;
_layout->addWidget( new KSeparator( KSeparator::HLine, this ) ); _layout->addWidget( new KSeparator( KSeparator::HLine, this ) );
_layout->addWidget( _btnWidget ); _layout->addWidget( _btnWidget );
tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum );
} }
KRecNewProperties::~KRecNewProperties() { KRecNewProperties::~KRecNewProperties() {
kdDebug( 60005 ) << k_funcinfo << endl; kdDebug( 60005 ) << k_funcinfo << endl;

@ -32,7 +32,7 @@
#include <kapplication.h> #include <kapplication.h>
#include <kaction.h> #include <kaction.h>
#include <kconfig.h> #include <kconfig.h>
#include <tqlayout.h> #include <layout.h>
#include <tqtimer.h> #include <tqtimer.h>
#include <ksettings/dialog.h> #include <ksettings/dialog.h>
#include <ktip.h> #include <ktip.h>
@ -138,7 +138,7 @@ bool KRecPrivate::closeFile() {
//kdDebug( 60005 ) << k_funcinfo << endl; //kdDebug( 60005 ) << k_funcinfo << endl;
if ( _currentFile ) { if ( _currentFile ) {
if ( !_currentFile->saved() ) { if ( !_currentFile->saved() ) {
int choice = KMessageBox::questionYesNoCancel( _impl, i18n( "The document \"%1\" has been modified.\nDo you want to save it?" ).tqarg( _currentFile->filename() ), TQString(), KStdGuiItem::save(), KStdGuiItem::discard() ); int choice = KMessageBox::questionYesNoCancel( _impl, i18n( "The document \"%1\" has been modified.\nDo you want to save it?" ).arg( _currentFile->filename() ), TQString(), KStdGuiItem::save(), KStdGuiItem::discard() );
if ( choice == KMessageBox::Yes ) saveFile(); if ( choice == KMessageBox::Yes ) saveFile();
if ( choice == KMessageBox::Cancel ) return false; if ( choice == KMessageBox::Cancel ) return false;
// go on if KMessageBox::No // go on if KMessageBox::No
@ -179,7 +179,7 @@ void KRecPrivate::exportFile() {
"you did everything right, please file a bugreport saying what " \ "you did everything right, please file a bugreport saying what " \
"you where about to do and please quote the following line:<br />" \ "you where about to do and please quote the following line:<br />" \
"%1</li>" \ "%1</li>" \
"</ul></qt>" ).tqarg( KRecGlobal::the()->exportFormatEndings() ), "</ul></qt>" ).arg( KRecGlobal::the()->exportFormatEndings() ),
i18n( "Could not determine encodingmethod" ) ); i18n( "Could not determine encodingmethod" ) );
} }
} else KRecGlobal::the()->message( i18n( "There is nothing to export." ) ); } else KRecGlobal::the()->message( i18n( "There is nothing to export." ) );

@ -23,7 +23,7 @@
#include <artsgui.h> #include <artsgui.h>
#include <kartswidget.h> #include <kartswidget.h>
#include <kurl.h> #include <kurl.h>
#include <tqlayout.h> #include <layout.h>
#include "krecfileview.h" #include "krecfileview.h"

@ -95,7 +95,7 @@ kdDebug( 60005 ) << k_funcinfo << endl;
vorbis_comment_add_tag ( &vc, const_cast<char *>( "kde-encoder" ), vorbis_comment_add_tag ( &vc, const_cast<char *>( "kde-encoder" ),
const_cast<char *>( "KRec" ) ); const_cast<char *>( "KRec" ) );
if ( write_vorbis_comments ) { if ( write_vorbis_comments ) {
TQDateTime dt = TQDateTime::tqcurrentDateTime(); TQDateTime dt = TQDateTime::currentDateTime();
vorbis_comment_add_tag ( &vc, const_cast<char *>( "title" ), vorbis_comment_add_tag ( &vc, const_cast<char *>( "title" ),
const_cast<char *>( "" ) ); const_cast<char *>( "" ) );
vorbis_comment_add_tag ( &vc, const_cast<char *>( "artist" ), vorbis_comment_add_tag ( &vc, const_cast<char *>( "artist" ),

@ -225,7 +225,7 @@ Fri May 15 18:28:40 1998 Bernd Johannes Wuebben <wuebben@math.cornell.edu>
Tue Apr 14 05:17:36 1998 Bernd Johannes Wuebben <wuebben@math.cornell.edu> Tue Apr 14 05:17:36 1998 Bernd Johannes Wuebben <wuebben@math.cornell.edu>
* tqlayout corrections for kscd magic dialog * layout corrections for kscd magic dialog
Sat Jan 17 21:36:27 1998 Bernd Johannes Wuebben <wuebben@math.cornell.edu> Sat Jan 17 21:36:27 1998 Bernd Johannes Wuebben <wuebben@math.cornell.edu>

@ -6,4 +6,4 @@ AJS:
o fix eject button o fix eject button
o don't show "no disc" error on startup o don't show "no disc" error on startup
o direct digital playback o direct digital playback
o better GUI tqlayout for LCD panel o better GUI layout for LCD panel

@ -84,7 +84,7 @@ void BW_LED_Number::setLEDColor( const TQColor& fgColor, const TQColor& bgColor
fgcolor = fgColor; fgcolor = fgColor;
bgcolor = bgColor; bgcolor = bgColor;
TQColorGroup old_cg = this->tqcolorGroup(); TQColorGroup old_cg = this->colorGroup();
TQColorGroup new_cg( fgColor, bgColor, TQColorGroup new_cg( fgColor, bgColor,
@ -168,9 +168,9 @@ void BW_LED_Number::setSmallLED(bool a_boolean){
} }
void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool tqrepaint ){ void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool repaint ){
// printf("drawSymbol tqrepaint = %d\n",tqrepaint); // printf("drawSymbol repaint = %d\n",repaint);
TQPoint pos; TQPoint pos;
@ -194,7 +194,7 @@ void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool tqrepaint ){
pos = TQPoint( Xoffset , Yoffset ); pos = TQPoint( Xoffset , Yoffset );
if(tqrepaint){ if(repaint){
// this draw the non-illumintated segments // this draw the non-illumintated segments
@ -222,7 +222,7 @@ void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool tqrepaint ){
} }
} }
} }
else{ // we are not repainting ourselves due to a tqrepaint event but rather else{ // we are not repainting ourselves due to a repaint event but rather
// genuinely changing the symbol that is to be displayed // genuinely changing the symbol that is to be displayed
for(int l = 0; l <= NUM_OF_SEGMENTS -1; l++){ for(int l = 0; l <= NUM_OF_SEGMENTS -1; l++){
@ -277,7 +277,7 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter
TQPoint pt = pos; TQPoint pt = pos;
TQColorGroup g = tqcolorGroup(); TQColorGroup g = colorGroup();
TQColor lightColor,darkColor; TQColor lightColor,darkColor;
if ( erase ){ if ( erase ){

@ -68,7 +68,7 @@ private:
bool seg_contained_in( char c, char* seg); bool seg_contained_in( char c, char* seg);
void drawSegment( const TQPoint &, char, TQPainter &, int, bool = FALSE ); void drawSegment( const TQPoint &, char, TQPainter &, int, bool = FALSE );
void drawSymbol( TQPainter *p,char s ,bool tqrepaint); void drawSymbol( TQPainter *p,char s ,bool repaint);
char* old_segments; char* old_segments;
char* current_segments; char* current_segments;

@ -4,7 +4,7 @@
#include <tqkeycode.h> #include <tqkeycode.h>
#include <tqdatetime.h> #include <tqdatetime.h>
#include <tqtextstream.h> #include <textstream.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqdir.h> #include <tqdir.h>
#include <tqfileinfo.h> #include <tqfileinfo.h>
@ -90,7 +90,7 @@ void CDDBDlg::submitFinished(KCDDB::CDDB::Result r)
else else
{ {
TQString str = i18n("Error sending record.\n\n%1") TQString str = i18n("Error sending record.\n\n%1")
.tqarg(KCDDB::CDDB::resultToString(r)); .arg(KCDDB::CDDB::resultToString(r));
KMessageBox::error(this, str, i18n("Record Submission")); KMessageBox::error(this, str, i18n("Record Submission"));
} }
} // submitFinished() } // submitFinished()

@ -28,7 +28,7 @@
#include <kurlrequester.h> #include <kurlrequester.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <kcombobox.h> #include <kcombobox.h>
#include <tqlayout.h> #include <layout.h>
#include <config.h> #include <config.h>
extern "C" { extern "C" {

@ -84,7 +84,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>292</width> <width>292</width>
<height>20</height> <height>20</height>
@ -221,7 +221,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>171</width> <width>171</width>
<height>81</height> <height>81</height>
@ -401,7 +401,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>45</height> <height>45</height>

@ -81,7 +81,7 @@ extern "C"
#endif #endif
} }
#include <tqtextcodec.h> #include <textcodec.h>
#include <fixx11h.h> #include <fixx11h.h>
// Our internal definition of when we have no disc. Used to guard some // Our internal definition of when we have no disc. Used to guard some
@ -100,7 +100,7 @@ const unsigned KCompactDisc::missingDisc = (unsigned)-1;
KCompactDisc::KCompactDisc(InformationMode infoMode) : KCompactDisc::KCompactDisc(InformationMode infoMode) :
m_device(TQString()), m_device(TQString()),
m_status(0), m_status(0),
m_previoustqStatus(123456), m_previousStatus(123456),
m_discId(missingDisc), m_discId(missingDisc),
m_previousDiscId(0), m_previousDiscId(0),
m_artist(TQString()), m_artist(TQString()),
@ -143,7 +143,7 @@ unsigned KCompactDisc::discPosition() const
return cur_pos_abs * 1000 - FRAMES_TO_MS(m_trackStartFrames[0]); return cur_pos_abs * 1000 - FRAMES_TO_MS(m_trackStartFrames[0]);
} }
TQString KCompactDisc::disctqStatus(int status) TQString KCompactDisc::discStatus(int status)
{ {
TQString message; TQString message;
@ -282,7 +282,7 @@ bool KCompactDisc::setDevice(
<< m_device << ", " << m_device << ", "
<< (digitalPlayback ? audioSystem : TQString()) << ", " << (digitalPlayback ? audioSystem : TQString()) << ", "
<< (digitalPlayback ? audioDevice : TQString()) << ", status: " << (digitalPlayback ? audioDevice : TQString()) << ", status: "
<< disctqStatus(status) << endl; << discStatus(status) << endl;
if (status < 0) if (status < 0)
{ {
@ -295,7 +295,7 @@ bool KCompactDisc::setDevice(
setVolume(volume); setVolume(volume);
} }
m_previoustqStatus = m_status = wm_cd_status(); m_previousStatus = m_status = wm_cd_status();
if (m_infoMode == Asynchronous) if (m_infoMode == Asynchronous)
timerExpired(); timerExpired();
@ -307,7 +307,7 @@ bool KCompactDisc::setDevice(
void KCompactDisc::setVolume(unsigned volume) void KCompactDisc::setVolume(unsigned volume)
{ {
int status = wm_cd_volume(volume, WM_BALANCE_SYMMETRED); int status = wm_cd_volume(volume, WM_BALANCE_SYMMETRED);
kdDebug() << "Volume change: " << volume << ", status: " << disctqStatus(status) << endl; kdDebug() << "Volume change: " << volume << ", status: " << discStatus(status) << endl;
} }
void KCompactDisc::stop() void KCompactDisc::stop()
@ -380,9 +380,9 @@ void KCompactDisc::timerExpired()
if (WM_CDS_NO_DISC(m_status) || (m_device == TQString())) if (WM_CDS_NO_DISC(m_status) || (m_device == TQString()))
{ {
if (m_previoustqStatus != m_status) if (m_previousStatus != m_status)
{ {
m_previoustqStatus = m_status; m_previousStatus = m_status;
m_discId = missingDisc; m_discId = missingDisc;
m_previousDiscId = 0; m_previousDiscId = 0;
m_trackArtists.clear(); m_trackArtists.clear();
@ -428,7 +428,7 @@ void KCompactDisc::timerExpired()
else else
{ {
m_trackArtists.append(i18n("Unknown Artist")); m_trackArtists.append(i18n("Unknown Artist"));
m_trackTitles.append(i18n("Track %1").tqarg(TQString::number(i).rightJustify(2, '0'))); m_trackTitles.append(i18n("Track %1").arg(TQString::number(i).rightJustify(2, '0')));
} }
// FIXME: KDE4 // FIXME: KDE4
// track.length = cd->trk[i - 1].length; // track.length = cd->trk[i - 1].length;
@ -450,12 +450,12 @@ void KCompactDisc::timerExpired()
} }
if (isPlaying()) if (isPlaying())
{ {
m_previoustqStatus = m_status; m_previousStatus = m_status;
// Update the current playing position. // Update the current playing position.
emit trackPlaying(m_track, trackPosition()); emit trackPlaying(m_track, trackPosition());
} }
else else
if (m_previoustqStatus != m_status) if (m_previousStatus != m_status)
{ {
// If we are not playing, then we are either paused, or stopped. // If we are not playing, then we are either paused, or stopped.
switch (m_status) switch (m_status)
@ -467,7 +467,7 @@ void KCompactDisc::timerExpired()
emit trayOpening(); emit trayOpening();
break; break;
default: default:
if (m_previoustqStatus == WM_CDM_PLAYING || m_previoustqStatus == WM_CDM_PAUSED if (m_previousStatus == WM_CDM_PLAYING || m_previousStatus == WM_CDM_PAUSED
&& m_status == WM_CDM_STOPPED) && m_status == WM_CDM_STOPPED)
{ {
emit discStopped(); emit discStopped();
@ -475,7 +475,7 @@ void KCompactDisc::timerExpired()
break; break;
} }
m_previoustqStatus = m_status; m_previousStatus = m_status;
} }
} }

@ -34,7 +34,7 @@
* @see #discChanged(): A disc was inserted or removed. * @see #discChanged(): A disc was inserted or removed.
* @see #trayOpening(): A disc is being removed. * @see #trayOpening(): A disc is being removed.
* *
* The progress of ptqlayout is modelled by these signals: * The progress of playout is modelled by these signals:
* *
* @see #trackPlaying(): A track started playing, or is still playing. * @see #trackPlaying(): A track started playing, or is still playing.
* @see #trackPaused(): A track was paused. * @see #trackPaused(): A track was paused.
@ -64,12 +64,12 @@ public:
void eject(); void eject();
/** /**
* Start ptqlayout at given position of track. * Start playout at given position of track.
*/ */
void play(unsigned startTrack = 0, unsigned startTrackPosition = 0, unsigned endTrack = 0); void play(unsigned startTrack = 0, unsigned startTrackPosition = 0, unsigned endTrack = 0);
/** /**
* Pause/resume ptqlayout. * Pause/resume playout.
*/ */
void pause(); void pause();
@ -96,7 +96,7 @@ public:
void setVolume(unsigned volume); void setVolume(unsigned volume);
/** /**
* Stop ptqlayout. * Stop playout.
*/ */
void stop(); void stop();
@ -281,7 +281,7 @@ private:
TQTimer timer; TQTimer timer;
TQString m_device; TQString m_device;
int m_status; int m_status;
int m_previoustqStatus; int m_previousStatus;
unsigned m_discId; unsigned m_discId;
unsigned m_previousDiscId; unsigned m_previousDiscId;
TQString m_artist; TQString m_artist;
@ -292,8 +292,8 @@ private:
TQStringList m_trackTitles; TQStringList m_trackTitles;
unsigned m_track; unsigned m_track;
unsigned m_previousTrack; unsigned m_previousTrack;
void checkDevicetqStatus(); void checkDeviceStatus();
TQString disctqStatus(int status); TQString discStatus(int status);
class KCompactDiscPrivate *d; class KCompactDiscPrivate *d;
InformationMode m_infoMode; InformationMode m_infoMode;

@ -24,8 +24,8 @@
#include <tqdir.h> #include <tqdir.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <tqtextstream.h> #include <textstream.h>
#include <tqlayout.h> #include <layout.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <tqapplication.h> #include <tqapplication.h>
@ -76,7 +76,7 @@
#include "cddbdlg.h" #include "cddbdlg.h"
#include "configWidget.h" #include "configWidget.h"
#include <tqtextcodec.h> #include <textcodec.h>
#include <kcompactdisc.h> #include <kcompactdisc.h>
#include <fixx11h.h> #include <fixx11h.h>
@ -212,7 +212,7 @@ KSCD::KSCD( TQWidget *parent, const char *name )
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQ_NoFocus);
songListCB->tqsetSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Fixed); songListCB->setSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Fixed);
adjustSize(); adjustSize();
setFixedHeight(this->height()); setFixedHeight(this->height());
} // KSCD } // KSCD
@ -550,7 +550,7 @@ void KSCD::trackChanged(unsigned track, unsigned trackLength)
justTheName = justTheName.right(justTheName.length() - 4); justTheName = justTheName.right(justTheName.length() - 4);
TQToolTip::remove(songListCB); TQToolTip::remove(songListCB);
TQToolTip::add(songListCB, i18n("Current track: %1").tqarg(justTheName)); TQToolTip::add(songListCB, i18n("Current track: %1").arg(justTheName));
} }
timeSlider->blockSignals(true); timeSlider->blockSignals(true);
timeSlider->setRange(0, trackLength ? trackLength - 1 : 0); timeSlider->setRange(0, trackLength ? trackLength - 1 : 0);
@ -688,7 +688,7 @@ void KSCD::randomSelected()
{ {
setShuffle(Prefs::randomPlay()?0:1); setShuffle(Prefs::randomPlay()?0:1);
/* FIXME this helps us to display "Random" in tqStatus line /* FIXME this helps us to display "Random" in Status line
should it maybe to be replaced with symbol "RAND" or something others */ should it maybe to be replaced with symbol "RAND" or something others */
statuslabel->setText(Prefs::randomPlay()?i18n("Random"):i18n("Play")); statuslabel->setText(Prefs::randomPlay()?i18n("Random"):i18n("Play"));
} // randomSelected } // randomSelected
@ -800,7 +800,7 @@ void KSCD::setDevicePaths()
{ {
// This device did not seem usable. // This device did not seem usable.
TQString str = i18n("CD-ROM read or access error (or no audio disc in drive).\n"\ TQString str = i18n("CD-ROM read or access error (or no audio disc in drive).\n"\
"Please make sure you have access permissions to:\n%1").tqarg( "Please make sure you have access permissions to:\n%1").arg(
KCompactDisc::urlToDevice(Prefs::cdDevice())); KCompactDisc::urlToDevice(Prefs::cdDevice()));
KMessageBox::error(this, str, i18n("Error")); KMessageBox::error(this, str, i18n("Error"));
} }
@ -1211,8 +1211,8 @@ void KSCD::lookupCDDBDone(CDDB::Result result)
CDInfoList::iterator it; CDInfoList::iterator it;
TQStringList list; TQStringList list;
for ( it = cddb_info.begin(); it != cddb_info.end(); ++it ) { for ( it = cddb_info.begin(); it != cddb_info.end(); ++it ) {
list.append( TQString("%1, %2, %3").tqarg((*it).artist).tqarg((*it).title) list.append( TQString("%1, %2, %3").arg((*it).artist).arg((*it).title)
.tqarg((*it).genre)); .arg((*it).genre));
} }
bool ok(false); bool ok(false);
@ -1313,7 +1313,7 @@ int KSCD::currentPosition()
return m_cd->trackPosition(); return m_cd->trackPosition();
} }
int KSCD::gettqStatus() int KSCD::getStatus()
{ {
if (m_cd->isPlaying()) if (m_cd->isPlaying())
return 2; return 2;
@ -1419,62 +1419,62 @@ void KSCD::information(int i)
{ {
case 0: case 0:
str = TQString("http://musicmoz.org/cgi-bin/ext.cgi?artist=%1") str = TQString("http://musicmoz.org/cgi-bin/ext.cgi?artist=%1")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 1: case 1:
str = TQString("http://ubl.artistdirect.com/cgi-bin/gx.cgi/AppLogic+Search?select=MusicArtist&searchstr=%1&searchtype=NormalSearch") str = TQString("http://ubl.artistdirect.com/cgi-bin/gx.cgi/AppLogic+Search?select=MusicArtist&searchstr=%1&searchtype=NormalSearch")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 2: case 2:
str = TQString("http://www.cduniverse.com/cgi-bin/cdubin.exe/rlinka/ean=%1") str = TQString("http://www.cduniverse.com/cgi-bin/cdubin.exe/rlinka/ean=%1")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 3: case 3:
str = TQString("http://www.alltheweb.com/search?cat=web&q=%1") str = TQString("http://www.alltheweb.com/search?cat=web&q=%1")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 4: case 4:
str = TQString("http://altavista.com/web/results?q=%1&kgs=0&kls=1&avkw=xytx") str = TQString("http://altavista.com/web/results?q=%1&kgs=0&kls=1&avkw=xytx")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 5: case 5:
str = TQString("http://msxml.excite.com/_1_2UDOUB70SVHVHR__info.xcite/dog/results?otmpl=dog/webresults.htm&qkw=%1&qcat=web&qk=20&top=1&start=&ver=14060") str = TQString("http://msxml.excite.com/_1_2UDOUB70SVHVHR__info.xcite/dog/results?otmpl=dog/webresults.htm&qkw=%1&qcat=web&qk=20&top=1&start=&ver=14060")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 6: case 6:
str = TQString("http://www.google.com/search?q=%1") str = TQString("http://www.google.com/search?q=%1")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 7: case 7:
str = TQString("http://groups.google.com/groups?oi=djq&as_q=%1&num=20") str = TQString("http://groups.google.com/groups?oi=djq&as_q=%1&num=20")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 8: case 8:
str = TQString("http://www.hotbot.com/default.asp?prov=Inktomi&query=%1&ps=&loc=searchbox&tab=web") str = TQString("http://www.hotbot.com/default.asp?prov=Inktomi&query=%1&ps=&loc=searchbox&tab=web")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 9: case 9:
str = TQString("http://search.lycos.com/default.asp?lpv=1&loc=searchhp&tab=web&query=%1") str = TQString("http://search.lycos.com/default.asp?lpv=1&loc=searchhp&tab=web&query=%1")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 10: case 10:
str = TQString("http://search.dmoz.org/cgi-bin/search?search=%1") str = TQString("http://search.dmoz.org/cgi-bin/search?search=%1")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
case 11: case 11:
str = TQString("http://search.yahoo.com/bin/search?p=%1") str = TQString("http://search.yahoo.com/bin/search?p=%1")
.tqarg(encodedArtist); .arg(encodedArtist);
break; break;
default: default:
@ -1563,13 +1563,13 @@ TQStringList KSCD::trackList()
return tracks; return tracks;
} }
void KSCD::populateSongList(TQString infotqStatus) void KSCD::populateSongList(TQString infoStatus)
{ {
// set the artist and title labels as well as the dock tooltip. // set the artist and title labels as well as the dock tooltip.
if (!infotqStatus.isEmpty()) if (!infoStatus.isEmpty())
artistlabel->setText(infotqStatus); artistlabel->setText(infoStatus);
else else
artistlabel->setText(TQString("%1 - %2").tqarg(cddbInfo.artist, cddbInfo.title)); artistlabel->setText(TQString("%1 - %2").arg(cddbInfo.artist, cddbInfo.title));
songListCB->clear(); songListCB->clear();
for (unsigned i = 0; i < cddbInfo.trackInfoList.count(); i++) for (unsigned i = 0; i < cddbInfo.trackInfoList.count(); i++)

@ -102,7 +102,7 @@ k_dcop:
int currentTrack(); int currentTrack();
int currentTrackLength(); int currentTrackLength();
int currentPosition(); int currentPosition();
int gettqStatus(); int getStatus();
TQString currentTrackTitle(); TQString currentTrackTitle();
TQString currentAlbum(); TQString currentAlbum();
TQString currentArtist(); TQString currentArtist();
@ -175,7 +175,7 @@ protected:
void calculateDisplayedTime(); void calculateDisplayedTime();
void calculateDisplayedTime(int sec); void calculateDisplayedTime(int sec);
void setSongListTo(int whichTrack); void setSongListTo(int whichTrack);
void populateSongList(TQString infotqStatus); void populateSongList(TQString infoStatus);
void updatePlayPB(bool playing); void updatePlayPB(bool playing);
void updateConfigDialog(configWidget* widget); void updateConfigDialog(configWidget* widget);

@ -15,14 +15,14 @@ Introduction
This is a program for representing sounds visually from a CD or line This is a program for representing sounds visually from a CD or line
input or piped from another program. It goes beyond the usual oscilliscope input or piped from another program. It goes beyond the usual oscilliscope
style program by combining an FFT and stereo positioning information to style program by combining an FFT and stereo positioning information to
give a two dimensional display. Some of the tqshapes I have observed are: give a two dimensional display. Some of the shapes I have observed are:
* Drums: clouds of color, fairly high * Drums: clouds of color, fairly high
* Clean guitar: several horizontal lines, low down * Clean guitar: several horizontal lines, low down
* Rough guitar: a cloud, low down * Rough guitar: a cloud, low down
* Trumpet: Lots of horizontal lines everywhere * Trumpet: Lots of horizontal lines everywhere
* Flute: A single horizontal line, low down * Flute: A single horizontal line, low down
* Voice: A vertical line with some internal structure * Voice: A vertical line with some internal structure
* Synthesizer: All kinds of weird tqshapes! * Synthesizer: All kinds of weird shapes!
Synaesthesia can run in a window in X or full screen using SVGAlib. Synaesthesia can run in a window in X or full screen using SVGAlib.
@ -139,7 +139,7 @@ Changes
Support for SDL. Support for SDL.
2.0 - Bug fixes: Fixed problem in xlib.c that caused occasional segfaults, 2.0 - Bug fixes: Fixed problem in xlib.c that caused occasional segfaults,
several endianness problems fixed. several endianness problems fixed.
New effects: Wave, heat, diamond tqshaped points. New effects: Wave, heat, diamond shaped points.
Piping sound now longer requires the twiddle factor. Piping sound now longer requires the twiddle factor.
Yet another interface redesign. Yet another interface redesign.
Partial support for LinuxPPC (pipe mode only) Partial support for LinuxPPC (pipe mode only)

@ -160,7 +160,7 @@ enum SoundSource { SourceLine, SourceCD, SourcePipe };
void cdOpen(char *cdromName); void cdOpen(char *cdromName);
void cdClose(void); void cdClose(void);
void cdGettqStatus(int &track, int &frames, SymbolID &state); void cdGetStatus(int &track, int &frames, SymbolID &state);
void cdPlay(int trackFrame, int endFrame=-1); void cdPlay(int trackFrame, int endFrame=-1);
void cdStop(void); void cdStop(void);
void cdPause(void); void cdPause(void);

@ -20,7 +20,7 @@
#include <stdio.h> #include <stdio.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqbrush.h> #include <brush.h>
#include <tqpen.h> #include <tqpen.h>
#include <tqcolor.h> #include <tqcolor.h>
#include "ledlamp.h" #include "ledlamp.h"

@ -42,10 +42,10 @@ public:
State state() const { return s; } State state() const { return s; }
void setState(State state) { s= state; tqrepaint(false); } void setState(State state) { s= state; repaint(false); }
void toggleState() { if (s == On) s= Off; else if (s == Off) s= On; tqrepaint(false); } void toggleState() { if (s == On) s= Off; else if (s == Off) s= On; repaint(false); }
public slots: public slots:
void toggle() { toggleState(); }; void toggle() { toggleState(); };
void on() { setState(On); }; void on() { setState(On); };

@ -21,8 +21,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef libtqunicode #ifdef libunicode
#include <tqunicode.h> #include <unicode.h>
#endif #endif
#include "include/wm_config.h" #include "include/wm_config.h"
@ -155,12 +155,12 @@ void get_data_from_cdtext_pack(
int arr = pack->header_field_id2_tracknumber; int arr = pack->header_field_id2_tracknumber;
int i; int i;
int language_block; int language_block;
int tqunicode; int unicode;
language_block = (pack->header_field_id4_block_no >> 4) & 0x07; language_block = (pack->header_field_id4_block_no >> 4) & 0x07;
tqunicode = pack->header_field_id4_block_no & 0x80; unicode = pack->header_field_id4_block_no & 0x80;
if(!tqunicode) if(!unicode)
{ {
for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i++) for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i++)
{ {
@ -180,7 +180,7 @@ void get_data_from_cdtext_pack(
} }
} }
} }
#ifdef libtqunicode #ifdef libunicode
else /* doublebytes ;-) */ else /* doublebytes ;-) */
{ {
for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i += 2) for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i += 2)
@ -203,7 +203,7 @@ void get_data_from_cdtext_pack(
} }
#else #else
else { else {
wm_lib_message(WM_MSG_LEVEL_ERROR | WM_MSG_CLASS, "can't handle tqunicode"); wm_lib_message(WM_MSG_LEVEL_ERROR | WM_MSG_CLASS, "can't handle unicode");
} }
#endif #endif
} }
@ -315,9 +315,9 @@ get_glob_cdtext(struct wm_drive *d, int redo)
{ {
wm_cdtext_info.blocks[j] = lp_block; wm_cdtext_info.blocks[j] = lp_block;
wm_cdtext_info.blocks[j]->block_code = code; wm_cdtext_info.blocks[j]->block_code = code;
wm_cdtext_info.blocks[j]->block_tqunicode = pack->header_field_id4_block_no & 0x80; wm_cdtext_info.blocks[j]->block_unicode = pack->header_field_id4_block_no & 0x80;
wm_lib_message(WM_MSG_LEVEL_DEBUG | WM_MSG_CLASS, wm_lib_message(WM_MSG_LEVEL_DEBUG | WM_MSG_CLASS,
"CDTEXT INFO: created a new language block; code %i, %s characters\n", code, lp_block->block_tqunicode?"doublebyte":"singlebyte"); "CDTEXT INFO: created a new language block; code %i, %s characters\n", code, lp_block->block_unicode?"doublebyte":"singlebyte");
/* /*
unsigned char block_encoding; not jet! unsigned char block_encoding; not jet!
cdtext_string* block_encoding_text; cdtext_string* block_encoding_text;

@ -44,7 +44,7 @@ typedef unsigned char cdtext_string[MAX_LENGHT_OF_CDTEXT_STRING];
struct cdtext_info_block { struct cdtext_info_block {
/* management */ /* management */
unsigned char block_code; unsigned char block_code;
unsigned char block_tqunicode; /* 0 - single chars, 1 - doublebytes */ unsigned char block_unicode; /* 0 - single chars, 1 - doublebytes */
unsigned char block_encoding; /* orange book -? */ unsigned char block_encoding; /* orange book -? */
cdtext_string* block_encoding_text; cdtext_string* block_encoding_text;

@ -181,7 +181,7 @@ int
gen_get_drive_status( struct wm_drive *d, int oldmode, gen_get_drive_status( struct wm_drive *d, int oldmode,
int *mode, int *pos, int *track, int *index) int *mode, int *pos, int *track, int *index)
{ {
struct CD_tqStatus sc; struct CD_Status sc;
/* If we can't get status, the CD is ejected, so default to that. */ /* If we can't get status, the CD is ejected, so default to that. */
*mode = WM_CDM_EJECTED; *mode = WM_CDM_EJECTED;
@ -199,7 +199,7 @@ gen_get_drive_status( struct wm_drive *d, int oldmode,
} }
/* Disc is ejected. Close the device. */ /* Disc is ejected. Close the device. */
if (CD_GettqStatus(d->fd, &sc)) if (CD_GetStatus(d->fd, &sc))
{ {
gen_close(d); gen_close(d);
return (0); return (0);

@ -27,7 +27,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout8</cstring> <cstring>layout8</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -40,7 +40,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout6</cstring> <cstring>layout6</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -92,7 +92,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>20</height> <height>20</height>
@ -128,7 +128,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout7</cstring> <cstring>layout7</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -160,7 +160,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>270</width> <width>270</width>
<height>80</height> <height>80</height>
@ -203,7 +203,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout5</cstring> <cstring>layout5</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -221,7 +221,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>100</width> <width>100</width>
<height>35</height> <height>35</height>
@ -239,7 +239,7 @@
<cstring>statuslabel</cstring> <cstring>statuslabel</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>tqStatus</string> <string>Status</string>
</property> </property>
</widget> </widget>
<widget class="TQLabel" row="1" column="2"> <widget class="TQLabel" row="1" column="2">
@ -275,7 +275,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>30</width> <width>30</width>
<height>0</height> <height>0</height>

@ -100,14 +100,14 @@ namespace KCDDB
bool bool
CDDB::parseGreeting( const TQString & line ) CDDB::parseGreeting( const TQString & line )
{ {
uint servertqStatus = statusCode( line ); uint serverStatus = statusCode( line );
if ( 200 == servertqStatus ) if ( 200 == serverStatus )
{ {
kdDebug(60010) << "Server response: read-only" << endl; kdDebug(60010) << "Server response: read-only" << endl;
readOnly_ = true; readOnly_ = true;
} }
else if ( 201 == servertqStatus ) else if ( 201 == serverStatus )
{ {
kdDebug(60010) << "Server response: read-write" << endl; kdDebug(60010) << "Server response: read-write" << endl;
} }
@ -123,9 +123,9 @@ namespace KCDDB
bool bool
CDDB::parseHandshake( const TQString & line ) CDDB::parseHandshake( const TQString & line )
{ {
uint servertqStatus = statusCode( line ); uint serverStatus = statusCode( line );
if ( ( 200 != servertqStatus ) && ( 402 != servertqStatus ) ) if ( ( 200 != serverStatus ) && ( 402 != serverStatus ) )
{ {
kdDebug(60010) << "Handshake was too tight. Letting go." << endl; kdDebug(60010) << "Handshake was too tight. Letting go." << endl;
return false; return false;
@ -141,9 +141,9 @@ namespace KCDDB
{ {
TQStringList tokenList = TQStringList::split( ' ', line ); TQStringList tokenList = TQStringList::split( ' ', line );
uint servertqStatus = tokenList[ 0 ].toUInt(); uint serverStatus = tokenList[ 0 ].toUInt();
return servertqStatus; return serverStatus;
} }
/* CDDB::Transport /* CDDB::Transport

@ -66,8 +66,8 @@ namespace KCDDB
static TQString resultToString(Result); static TQString resultToString(Result);
static TQString trackOffsetListToId( const TrackOffsetList & ); static TQString trackOffsetListToId( const TrackOffsetList & );
static TQString clientName() { return TQString::tqfromLatin1("libkcddb"); } static TQString clientName() { return TQString::fromLatin1("libkcddb"); }
static TQString clientVersion() { return TQString::tqfromLatin1("0.31"); } static TQString clientVersion() { return TQString::fromLatin1("0.31"); }
protected: protected:
bool parseGreeting( const TQString & ); bool parseGreeting( const TQString & );

@ -40,10 +40,10 @@ namespace KCDDB
CDDBPLookup::sendHandshake() CDDBPLookup::sendHandshake()
{ {
TQString handshake = TQString( "cddb hello %1 %2 %3 %4" ) TQString handshake = TQString( "cddb hello %1 %2 %3 %4" )
.tqarg( user_ ) .arg( user_ )
.tqarg( localHostName_ ) .arg( localHostName_ )
.tqarg( clientName() ) .arg( clientName() )
.tqarg( clientVersion() ); .arg( clientVersion() );
writeLine( handshake ); writeLine( handshake );
} }
@ -58,8 +58,8 @@ namespace KCDDB
CDDBPLookup::sendQuery() CDDBPLookup::sendQuery()
{ {
TQString query = TQString( "cddb query %1 %2" ) TQString query = TQString( "cddb query %1 %2" )
.tqarg( trackOffsetListToId() ) .arg( trackOffsetListToId() )
.tqarg( trackOffsetListToString() ); .arg( trackOffsetListToString() );
writeLine( query ); writeLine( query );
} }
@ -71,8 +71,8 @@ namespace KCDDB
TQString discid = match.second; TQString discid = match.second;
TQString readRequest = TQString( "cddb read %1 %2" ) TQString readRequest = TQString( "cddb read %1 %2" )
.tqarg( category_ ) .arg( category_ )
.tqarg( discid ); .arg( discid );
writeLine( readRequest ); writeLine( readRequest );
} }

@ -209,7 +209,7 @@ namespace KCDDB
if (submit) if (submit)
{ {
s += "#\n"; s += "#\n";
s += TQString("# Submitted via: %1 %2\n").tqarg(CDDB::clientName(), s += TQString("# Submitted via: %1 %2\n").arg(CDDB::clientName(),
CDDB::clientVersion()); CDDB::clientVersion());
} }
@ -220,7 +220,7 @@ namespace KCDDB
for (uint i = 0; i < trackInfoList.count(); ++i) for (uint i = 0; i < trackInfoList.count(); ++i)
{ {
s += createLine(TQString("TTITLE%1").tqarg(i), s += createLine(TQString("TTITLE%1").arg(i),
escape( trackInfoList[ i ].title)); escape( trackInfoList[ i ].title));
} }
@ -228,7 +228,7 @@ namespace KCDDB
for (uint i = 0; i < trackInfoList.count(); ++i) for (uint i = 0; i < trackInfoList.count(); ++i)
{ {
s += createLine(TQString("EXTT%1").tqarg(i), escape(trackInfoList[i].extt)); s += createLine(TQString("EXTT%1").arg(i), escape(trackInfoList[i].extt));
} }
s +="PLAYORDER=\n"; s +="PLAYORDER=\n";
@ -251,11 +251,11 @@ namespace KCDDB
while (tmpValue.length() > maxLength) while (tmpValue.length() > maxLength)
{ {
lines += TQString("%1=%2\n").tqarg(name,tmpValue.left(maxLength)); lines += TQString("%1=%2\n").arg(name,tmpValue.left(maxLength));
tmpValue = tmpValue.mid(maxLength); tmpValue = tmpValue.mid(maxLength);
} }
lines += TQString("%1=%2\n").tqarg(name,tmpValue); lines += TQString("%1=%2\n").arg(name,tmpValue);
return lines; return lines;
} }

@ -18,7 +18,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout1</cstring> <cstring>layout1</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -276,7 +276,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -292,7 +292,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>231</width> <width>231</width>
<height>41</height> <height>41</height>

@ -7,7 +7,7 @@
** place of a destructor. ** place of a destructor.
*****************************************************************************/ *****************************************************************************/
#include <tqtextcodec.h> #include <textcodec.h>
#include <kdebug.h> #include <kdebug.h>
#include <kdialogbase.h> #include <kdialogbase.h>
#include <kglobal.h> #include <kglobal.h>

@ -20,7 +20,7 @@
#include <tqcombobox.h> #include <tqcombobox.h>
#include <tqlistbox.h> #include <tqlistbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqtextcodec.h> #include <textcodec.h>
#include <klocale.h> #include <klocale.h>
#include <kglobal.h> #include <kglobal.h>
#include <kcharsets.h> #include <kcharsets.h>
@ -62,7 +62,7 @@ namespace KCDDB
songsBox->clear(); songsBox->clear();
songsBox->insertStringList(newTitles); songsBox->insertStringList(newTitles);
titleLabel->setText(i18n("artist - cdtitle", "%1 - %2").tqarg( titleLabel->setText(i18n("artist - cdtitle", "%1 - %2").arg(
codec->toUnicode(m_artist.latin1()), codec->toUnicode(m_title.latin1()))); codec->toUnicode(m_artist.latin1()), codec->toUnicode(m_title.latin1())));
} }
} }

@ -55,7 +55,7 @@
<property name="name"> <property name="name">
<cstring>songsBox</cstring> <cstring>songsBox</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>300</width> <width>300</width>
<height>250</height> <height>250</height>

@ -40,7 +40,7 @@ namespace KCDDB
HTTPLookup::sendQuery() HTTPLookup::sendQuery()
{ {
TQString cmd = TQString( "cddb query %1 %2" ) TQString cmd = TQString( "cddb query %1 %2" )
.tqarg( trackOffsetListToId(), trackOffsetListToString() ) ; .arg( trackOffsetListToId(), trackOffsetListToString() ) ;
makeURL( cmd ); makeURL( cmd );
Result result = fetchURL(); Result result = fetchURL();
@ -55,7 +55,7 @@ namespace KCDDB
TQString discid = match.second; TQString discid = match.second;
TQString cmd = TQString( "cddb read %1 %2" ) TQString cmd = TQString( "cddb read %1 %2" )
.tqarg( category_, discid ); .arg( category_, discid );
makeURL( cmd ); makeURL( cmd );
Result result = fetchURL(); Result result = fetchURL();
@ -83,7 +83,7 @@ namespace KCDDB
cgiURL_.setQuery( TQString() ); cgiURL_.setQuery( TQString() );
TQString hello = TQString("%1 %2 %3 %4") TQString hello = TQString("%1 %2 %3 %4")
.tqarg(user_, localHostName_, clientName(), clientVersion()); .arg(user_, localHostName_, clientName(), clientVersion());
cgiURL_.addQueryItem( "cmd", cmd ); cgiURL_.addQueryItem( "cmd", cmd );
cgiURL_.addQueryItem( "hello", hello ); cgiURL_.addQueryItem( "hello", hello );

@ -192,7 +192,7 @@
<property name="text"> <property name="text">
<string>&amp;Port:</string> <string>&amp;Port:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
<property name="buddy" stdset="0"> <property name="buddy" stdset="0">
@ -243,7 +243,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>41</width> <width>41</width>
<height>260</height> <height>260</height>
@ -286,7 +286,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>240</height> <height>240</height>
@ -314,7 +314,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>21</height> <height>21</height>
@ -331,7 +331,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>21</height> <height>21</height>
@ -367,7 +367,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>140</height> <height>140</height>
@ -397,7 +397,7 @@
<property name="text"> <property name="text">
<string>Port:</string> <string>Port:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignRight</set> <set>AlignVCenter|AlignRight</set>
</property> </property>
</widget> </widget>
@ -517,7 +517,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>260</width> <width>260</width>
<height>20</height> <height>20</height>

@ -18,7 +18,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <tqlayout.h> #include <layout.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqcombobox.h> #include <tqcombobox.h>
#include <tqspinbox.h> #include <tqspinbox.h>
@ -58,10 +58,10 @@ CDDBModule::CDDBModule(TQWidget *parent, const char *name, const TQStringList &)
addConfig(cfg, widget_); addConfig(cfg, widget_);
TQVBoxLayout * tqlayout = new TQVBoxLayout(this, 0); TQVBoxLayout * layout = new TQVBoxLayout(this, 0);
tqlayout->addWidget(widget_); layout->addWidget(widget_);
tqlayout->addStretch(); layout->addStretch();
setQuickHelp(i18n("CDDB is used to get information like artist, title and song-names in CD's")); setQuickHelp(i18n("CDDB is used to get information like artist, title and song-names in CD's"));

@ -38,19 +38,19 @@ namespace KCDDB
CDDB::Result CDDB::Result
Lookup::parseQuery( const TQString & line ) Lookup::parseQuery( const TQString & line )
{ {
uint servertqStatus = statusCode( line ); uint serverStatus = statusCode( line );
if ( 200 == servertqStatus ) if ( 200 == serverStatus )
{ {
TQStringList tokenList = TQStringList::split( ' ', line ); TQStringList tokenList = TQStringList::split( ' ', line );
matchList_.append( tqMakePair( tokenList[ 1 ], tokenList[ 2 ] ) ); matchList_.append( tqMakePair( tokenList[ 1 ], tokenList[ 2 ] ) );
return Success; return Success;
} }
else if ( ( 211 == servertqStatus ) || ( 210 == servertqStatus ) ) else if ( ( 211 == serverStatus ) || ( 210 == serverStatus ) )
{ {
return MultipleRecordFound; return MultipleRecordFound;
} }
else if ( 202 == servertqStatus ) else if ( 202 == serverStatus )
{ {
return NoRecordFound; return NoRecordFound;
} }
@ -68,9 +68,9 @@ namespace KCDDB
CDDB::Result CDDB::Result
Lookup::parseRead( const TQString & line ) Lookup::parseRead( const TQString & line )
{ {
uint servertqStatus = statusCode( line ); uint serverStatus = statusCode( line );
if ( 210 != servertqStatus ) if ( 210 != serverStatus )
return ServerError; return ServerError;
return Success; return Success;

@ -44,7 +44,7 @@ namespace KCDDB
url.setQuery( TQString() ); url.setQuery( TQString() );
TQString hello = TQString("%1 %2 %3 %4") TQString hello = TQString("%1 %2 %3 %4")
.tqarg(user_, localHostName_, clientName(), clientVersion()); .arg(user_, localHostName_, clientName(), clientVersion());
url.addQueryItem( "cmd", "sites" ); url.addQueryItem( "cmd", "sites" );
url.addQueryItem( "hello", hello ); url.addQueryItem( "hello", hello );

@ -43,7 +43,7 @@ namespace KCDDB
KIO::Job* SMTPSubmit::createJob(const CDInfo& cdInfo) KIO::Job* SMTPSubmit::createJob(const CDInfo& cdInfo)
{ {
url_.setQuery(TQString("to=%1&subject=cddb %2 %3&from=%4") url_.setQuery(TQString("to=%1&subject=cddb %2 %3&from=%4")
.tqarg(to_, cdInfo.category, cdInfo.id, from_)); .arg(to_, cdInfo.category, cdInfo.id, from_));
kdDebug(60010) << "Url is: " << url_.prettyURL() << endl; kdDebug(60010) << "Url is: " << url_.prettyURL() << endl;
return KIO::storedPut(diskData_.utf8(), url_, -1, false, false, false); return KIO::storedPut(diskData_.utf8(), url_, -1, false, false, false);

@ -57,9 +57,9 @@ namespace KCDDB
CDDB::Result CDDB::Result
Submit::parseWrite( const TQString & line ) Submit::parseWrite( const TQString & line )
{ {
uint servertqStatus = statusCode( line ); uint serverStatus = statusCode( line );
if ( 320 != servertqStatus ) if ( 320 != serverStatus )
return ServerError; return ServerError;
return Success; return Success;
@ -74,10 +74,10 @@ namespace KCDDB
diskData_ += "# Track frame offsets:\n"; diskData_ += "# Track frame offsets:\n";
for (uint i=0; i < numTracks; i++) for (uint i=0; i < numTracks; i++)
diskData_ += TQString("#\t%1\n").tqarg(offsetList[i]); diskData_ += TQString("#\t%1\n").arg(offsetList[i]);
int l = offsetList[numTracks+1]/75; int l = offsetList[numTracks+1]/75;
diskData_ += TQString("# Disc length: %1 seconds\n").tqarg(l); diskData_ += TQString("# Disc length: %1 seconds\n").arg(l);
diskData_ += cdInfo.toString(true); diskData_ += cdInfo.toString(true);

@ -173,13 +173,13 @@ void InputDecoder::doSomething(){
int InputDecoder::getDecodertqStatus() { int InputDecoder::getDecoderStatus() {
return status; return status;
} }
void InputDecoder::setDecodertqStatus(int newState) { void InputDecoder::setDecoderStatus(int newState) {
// First start a new thread with start()! // First start a new thread with start()!
// Their is no recovery if the thread status is set to exit! // Their is no recovery if the thread status is set to exit!

@ -49,8 +49,8 @@ class KDE_EXPORT InputDecoder {
virtual const char* processCommand(int command,const char* args); virtual const char* processCommand(int command,const char* args);
virtual void doSomething(); virtual void doSomething();
virtual void setDecodertqStatus(int status); virtual void setDecoderStatus(int status);
int getDecodertqStatus(); int getDecoderStatus();
const char* getReturnCode(); const char* getReturnCode();

@ -37,7 +37,7 @@ void yaf_control(InputInterface* input,
while(1) { while(1) {
status=decoder->getDecodertqStatus(); status=decoder->getDecoderStatus();
if (status == _DECODER_STATUS_EXIT) { if (status == _DECODER_STATUS_EXIT) {
break; break;

@ -29,7 +29,7 @@ InputDecoderXPlayer::InputDecoderXPlayer(YafOutputStream* yafOutput) :
this->yafOutput=yafOutput; this->yafOutput=yafOutput;
ct=new CommandTableXPlayer(); ct=new CommandTableXPlayer();
setDecodertqStatus(_DECODER_STATUS_IDLE); setDecoderStatus(_DECODER_STATUS_IDLE);
appendCommandTable(ct); appendCommandTable(ct);
majorMode=_PLAYER_MAJOR_MODE_OFF; majorMode=_PLAYER_MAJOR_MODE_OFF;
setRuntimeInfo(false); setRuntimeInfo(false);
@ -161,7 +161,7 @@ const char* InputDecoderXPlayer::processCommand(int command,const char* args){
} }
if (command == _PLAYER_PLAY) { if (command == _PLAYER_PLAY) {
setDecodertqStatus(_DECODER_STATUS_WORKING); setDecoderStatus(_DECODER_STATUS_WORKING);
setMajorMode(_PLAYER_MAJOR_MODE_PLAYING); setMajorMode(_PLAYER_MAJOR_MODE_PLAYING);
return""; return"";
} }

@ -223,7 +223,7 @@ int Framer::read_frame(RawDataBuffer* ,RawDataBuffer* ) {
void Framer::unsync(RawDataBuffer* ,int ) { void Framer::unsync(RawDataBuffer* ,int ) {
if (lConstruct == false) { if (lConstruct == false) {
// tqinvalidate header in buffer // invalidate header in buffer
cout << "direct virtual call Framer::unsync"<<endl; cout << "direct virtual call Framer::unsync"<<endl;
} }
} }

@ -1067,7 +1067,7 @@ void MacroBlock::ReconSkippedBlock(unsigned char* source,
if (width == 16) { if (width == 16) {
if ((!right_half) && (!down_half)) { if ((!right_half) && (!down_half)) {
if (right & 0x1) { if (right & 0x1) {
/* No tqalignment, use bye copy */ /* No alignment, use bye copy */
for (rr = 0; rr < 16; rr++) { for (rr = 0; rr < 16; rr++) {
memcpy(dest,source,sizeof(char)*16); memcpy(dest,source,sizeof(char)*16);

@ -63,7 +63,7 @@ int Picture::processPicture(MpegVideoStream* mpegVideoStream) {
stamp=mpegVideoStream->getCurrentTimeStamp(); stamp=mpegVideoStream->getCurrentTimeStamp();
stamp->copyTo(startOfPicStamp); stamp->copyTo(startOfPicStamp);
// now tqinvalidate the PTSFlag // now invalidate the PTSFlag
stamp->setPTSFlag(false); stamp->setPTSFlag(false);

@ -298,7 +298,7 @@ int Recon::ReconPMBlock(int bnum,
} else { } else {
if (right_for & 0x1) { if (right_for & 0x1) {
/* No tqalignment, used byte copy */ /* No alignment, used byte copy */
copyFunctions->copy8_byte(rindex1,index,row_size); copyFunctions->copy8_byte(rindex1,index,row_size);
@ -498,7 +498,7 @@ int Recon::ReconBMBlock(int bnum,
copyFunctions->copy8_src2linear_crop(rindex1,dct_start,index,row_size); copyFunctions->copy8_src2linear_crop(rindex1,dct_start,index,row_size);
} else { } else {
if (right_back & 0x1) { if (right_back & 0x1) {
/* No tqalignment, use byte copy */ /* No alignment, use byte copy */
copyFunctions->copy8_byte(rindex1,index,row_size); copyFunctions->copy8_byte(rindex1,index,row_size);

@ -34,7 +34,7 @@ MpegAudioFrame::~MpegAudioFrame() {
void MpegAudioFrame::unsync(RawDataBuffer* store,int ) { void MpegAudioFrame::unsync(RawDataBuffer* store,int ) {
// tqinvalidate header in buffer // invalidate header in buffer
unsigned char* start=store->ptr(); unsigned char* start=store->ptr();
start[0]=0x0; start[0]=0x0;
start[1]=0x0; start[1]=0x0;

@ -21,7 +21,7 @@
* Erik Corry's multi-byte dither routines. * Erik Corry's multi-byte dither routines.
* *
* The basic idea is that the Init generates all the necessary tables. * The basic idea is that the Init generates all the necessary tables.
* The tables incorporate the information about the tqlayout of pixels * The tables incorporate the information about the layout of pixels
* in the XImage, so that it should be able to cope with 15-bit, 16-bit * in the XImage, so that it should be able to cope with 15-bit, 16-bit
* 24-bit (non-packed) and 32-bit (10-11 bits per color!) screens. * 24-bit (non-packed) and 32-bit (10-11 bits per color!) screens.
* At present it cannot cope with 24-bit packed mode, since this involves * At present it cannot cope with 24-bit packed mode, since this involves

@ -34,7 +34,7 @@
#include <tqimage.h> #include <tqimage.h>
#include <qiomanager.h> #include <qiomanager.h>
#include <tqsessionmanager.h> #include <tqsessionmanager.h>
#include <tqtextstream.h> #include <textstream.h>
#include <signal.h> #include <signal.h>
#include <kmimetype.h> #include <kmimetype.h>

@ -7,7 +7,7 @@
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlayout.h> #include <layout.h>
#include <klocale.h> #include <klocale.h>
#include <kdebug.h> #include <kdebug.h>
#include <klistview.h> #include <klistview.h>
@ -19,7 +19,7 @@
#include <kdialog.h> #include <kdialog.h>
#include <klineedit.h> #include <klineedit.h>
#include <tqtextview.h> #include <textview.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>
#include "mimetypetree.h" #include "mimetypetree.h"
@ -88,24 +88,24 @@ General::General(TQObject *parent)
b->toggle(); b->toggle();
} }
TQGridLayout *tqlayout = new TQGridLayout(this, 0, KDialog::spacingHint()); TQGridLayout *layout = new TQGridLayout(this, 0, KDialog::spacingHint());
tqlayout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
tqlayout->addMultiCellWidget(mLoopList, 0, 0, 0, 1); layout->addMultiCellWidget(mLoopList, 0, 0, 0, 1);
tqlayout->addMultiCellWidget(mOneInstance, 2, 2, 0, 1); layout->addMultiCellWidget(mOneInstance, 2, 2, 0, 1);
tqlayout->addMultiCellWidget(mClearOnOpen, 4, 4, 0, 1); layout->addMultiCellWidget(mClearOnOpen, 4, 4, 0, 1);
tqlayout->addMultiCellWidget(mFastVolume, 5, 5, 0, 1); layout->addMultiCellWidget(mFastVolume, 5, 5, 0, 1);
tqlayout->addMultiCellWidget(mRemaining, 6, 6, 0, 1); layout->addMultiCellWidget(mRemaining, 6, 6, 0, 1);
tqlayout->addWidget(titleLabel, 7, 0); layout->addWidget(titleLabel, 7, 0);
tqlayout->addWidget(mTitleFormat, 7, 1); layout->addWidget(mTitleFormat, 7, 1);
tqlayout->addWidget(dlsaver, 8, 0); layout->addWidget(dlsaver, 8, 0);
tqlayout->addWidget(mDlSaver, 8, 1); layout->addWidget(mDlSaver, 8, 1);
tqlayout->addMultiCellWidget(mPlayOnStartup, 9, 9, 0, 1); layout->addMultiCellWidget(mPlayOnStartup, 9, 9, 0, 1);
tqlayout->setRowStretch(10, 1); layout->setRowStretch(10, 1);
} }

@ -7,7 +7,7 @@
#include <player.h> #include <player.h>
#include <soundserver.h> #include <soundserver.h>
#include <noatunarts.h> #include <noatunarts.h>
#include <tqlayout.h> #include <layout.h>
#include <config.h> #include <config.h>

@ -34,9 +34,9 @@
#include <tqheader.h> #include <tqheader.h>
#include <tqhgroupbox.h> #include <tqhgroupbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqtextedit.h> #include <textedit.h>
#include <tqtoolbutton.h> #include <tqtoolbutton.h>
#include <tqvgroupbox.h> #include <tqvgroupbox.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>

@ -482,15 +482,15 @@ bool Engine::initArts()
X11CommConfig.sync(); X11CommConfig.sync();
} }
cmdline = TQFile::encodeName(KStandardDirs::findExe(TQString::tqfromLatin1("tdeinit_wrapper"))); cmdline = TQFile::encodeName(KStandardDirs::findExe(TQString::fromLatin1("tdeinit_wrapper")));
cmdline += " "; cmdline += " ";
if (rt) if (rt)
cmdline += TQFile::encodeName(KStandardDirs::findExe( cmdline += TQFile::encodeName(KStandardDirs::findExe(
TQString::tqfromLatin1("artswrapper"))); TQString::fromLatin1("artswrapper")));
else else
cmdline += TQFile::encodeName(KStandardDirs::findExe( cmdline += TQFile::encodeName(KStandardDirs::findExe(
TQString::tqfromLatin1("artsd"))); TQString::fromLatin1("artsd")));
cmdline += " "; cmdline += " ";
cmdline += config.readEntry("Arguments","-F 10 -S 4096 -s 60 -m artsmessage -l 3 -f").utf8(); cmdline += config.readEntry("Arguments","-F 10 -S 4096 -s 60 -m artsmessage -l 3 -f").utf8();

@ -11,7 +11,7 @@
#include <tqdom.h> #include <tqdom.h>
#include <kio/netaccess.h> #include <kio/netaccess.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <tqtextstream.h> #include <textstream.h>
#include <math.h> #include <math.h>
#include <kconfig.h> #include <kconfig.h>
#include <klocale.h> #include <klocale.h>

@ -11,7 +11,7 @@
#include <kiconloader.h> #include <kiconloader.h>
#include <klocale.h> #include <klocale.h>
#include <tqlayout.h> #include <layout.h>
#include <tqslider.h> #include <tqslider.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqlabel.h> #include <tqlabel.h>
@ -64,17 +64,17 @@ void PresetList::rename(TQListViewItem *item, int c)
EqualizerLevel::EqualizerLevel(TQWidget *parent, VBand band) EqualizerLevel::EqualizerLevel(TQWidget *parent, VBand band)
: TQWidget(parent), mBand(band) : TQWidget(parent), mBand(band)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, TQVBoxLayout *layout = new TQVBoxLayout(this,
0, 0, "EqualizerLevel::tqlayout"); 0, 0, "EqualizerLevel::layout");
mSlider = new TQSlider(-200, 200, 25, 0, Qt::Vertical, this, "EqualizerLevel::mSlider"); mSlider = new TQSlider(-200, 200, 25, 0, Qt::Vertical, this, "EqualizerLevel::mSlider");
mSlider->setTickmarks(TQSlider::Left); mSlider->setTickmarks(TQSlider::Left);
mSlider->setTickInterval(25); mSlider->setTickInterval(25);
tqlayout->addWidget(mSlider); layout->addWidget(mSlider);
connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed(int))); connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed(int)));
mLabel = new TQLabel("", this, "EqualizerLevel::mLabel"); mLabel = new TQLabel("", this, "EqualizerLevel::mLabel");
mLabel->tqsetAlignment(AlignHCenter | AlignVCenter); mLabel->setAlignment(AlignHCenter | AlignVCenter);
tqlayout->addWidget(mLabel); layout->addWidget(mLabel);
setMinimumHeight(200); setMinimumHeight(200);
// setMinimumWidth(kapp->fontMetrics().width("158kHz")); // setMinimumWidth(kapp->fontMetrics().width("158kHz"));

@ -24,7 +24,7 @@
</property> </property>
<widget class="TQLayoutWidget" row="1" column="0"> <widget class="TQLayoutWidget" row="1" column="0">
<property name="name"> <property name="name">
<cstring>tqlayout5</cstring> <cstring>layout5</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -37,7 +37,7 @@
<property name="text"> <property name="text">
<string>Pre&amp;amp:</string> <string>Pre&amp;amp:</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="buddy" stdset="0"> <property name="buddy" stdset="0">
@ -54,7 +54,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>8</height> <height>8</height>
@ -71,7 +71,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>1</width> <width>1</width>
<height>8</height> <height>8</height>
@ -80,7 +80,7 @@
</spacer> </spacer>
<widget class="TQLayoutWidget" row="1" column="1"> <widget class="TQLayoutWidget" row="1" column="1">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -122,7 +122,7 @@
<property name="text"> <property name="text">
<string>+/-</string> <string>+/-</string>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
</widget> </widget>
@ -227,7 +227,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>8</width> <width>8</width>
<height>16</height> <height>16</height>
@ -238,7 +238,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="3"> <widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="3">
<property name="name"> <property name="name">
<cstring>tqlayout4</cstring> <cstring>layout4</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -262,7 +262,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Minimum</enum> <enum>Minimum</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>8</width> <width>8</width>
<height>16</height> <height>16</height>
@ -301,7 +301,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>8</width> <width>8</width>
<height>16</height> <height>16</height>

@ -78,7 +78,7 @@ bool Noatun::KSaver::open(void)
} }
else else
{ {
d->error = i18n("Could not write to %1.").tqarg(d->url.prettyURL()); d->error = i18n("Could not write to %1.").arg(d->url.prettyURL());
return false; return false;
} }
} }

@ -27,7 +27,7 @@
#include <kurl.h> #include <kurl.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqstring.h> #include <tqstring.h>
#include <tqtextstream.h> #include <textstream.h>
#include <tqdatastream.h> #include <tqdatastream.h>
namespace Noatun namespace Noatun

@ -44,8 +44,8 @@ class ScrollingLabel : public TQWidget
**/ **/
virtual void setText(const TQString &text, int time = -1); virtual void setText(const TQString &text, int time = -1);
virtual TQSize tqsizeHint() const; virtual TQSize sizeHint() const;
virtual TQSize tqminimumSizeHint() const; virtual TQSize minimumSizeHint() const;
/** /**
* @return the label's text. * @return the label's text.

@ -4,7 +4,7 @@
#include <tqslider.h> #include <tqslider.h>
#include <tqspinbox.h> #include <tqspinbox.h>
#include <kconfig.h> #include <kconfig.h>
#include <tqlayout.h> #include <layout.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqtimer.h> #include <tqtimer.h>

@ -2,7 +2,7 @@
#include <tqdom.h> #include <tqdom.h>
#include <kio/netaccess.h> #include <kio/netaccess.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqtextstream.h> #include <textstream.h>
#include <noatun/app.h> #include <noatun/app.h>
#include "ksaver.h" #include "ksaver.h"
#include <ksimpleconfig.h> #include <ksimpleconfig.h>
@ -107,7 +107,7 @@ bool PlaylistSaver::metalist(const KURL &url)
TQMap<TQString,TQString> map; TQMap<TQString,TQString> map;
map["playObject"]="Arts::StreamPlayObject"; map["playObject"]="Arts::StreamPlayObject";
map["title"] = i18n("Stream from %1").tqarg(url.host()); map["title"] = i18n("Stream from %1").arg(url.host());
KURL u(url); KURL u(url);
if (!u.hasPath()) if (!u.hasPath())
@ -303,7 +303,7 @@ public:
else else
{ {
propMap["playObject"]="SplayPlayObject"; propMap["playObject"]="SplayPlayObject";
propMap["title"] = i18n("Stream from %1").tqarg(url.host()); propMap["title"] = i18n("Stream from %1").arg(url.host());
if (!url.hasPath()) if (!url.hasPath())
url.setPath("/"); url.setPath("/");
propMap["url"] = url.url(); propMap["url"] = url.url();
@ -556,7 +556,7 @@ bool PlaylistSaver::loadM3U(const KURL &file, int /*opt*/)
{ {
prop["playObject"]="SplayPlayObject"; prop["playObject"]="SplayPlayObject";
// Default title, might be overwritten by #EXTINF later // Default title, might be overwritten by #EXTINF later
prop["title"] = i18n("Stream from %1").tqarg(protourl.host()); prop["title"] = i18n("Stream from %1").arg(protourl.host());
if (!protourl.hasPath()) if (!protourl.hasPath())
protourl.setPath("/"); protourl.setPath("/");
@ -748,9 +748,9 @@ bool PlaylistSaver::loadPLS(const KURL &file, int /*opt*/)
map["playObject"]="SplayPlayObject"; map["playObject"]="SplayPlayObject";
if (title.isEmpty()) if (title.isEmpty())
map["title"] = i18n("Stream from %1 (port: %2)").tqarg( url.host() ).tqarg( url.port() ); map["title"] = i18n("Stream from %1 (port: %2)").arg( url.host() ).arg( url.port() );
else else
map["title"] = i18n("Stream from %1, (ip: %2, port: %3)").tqarg( title ).tqarg( url.host() ).tqarg(url.port() ); map["title"] = i18n("Stream from %1, (ip: %2, port: %3)").arg( title ).arg( url.host() ).arg(url.port() );
map["url"] = map["stream_"]= url.url(); map["url"] = map["stream_"]= url.url();

@ -88,13 +88,13 @@ Visualization::Visualization(int timeout, int pid)
int parent=pid ? pid : getppid(); int parent=pid ? pid : getppid();
if (getenv("NOATUN_PID")) if (getenv("NOATUN_PID"))
parent = TQString::tqfromLatin1(getenv("NOATUN_PID")).toInt(); parent = TQString::fromLatin1(getenv("NOATUN_PID")).toInt();
DCOPClient c; DCOPClient c;
c.attach(); c.attach();
TQCString appids[2]; TQCString appids[2];
appids[0]=TQString("noatun-%1").tqarg(parent).local8Bit(); appids[0]=TQString("noatun-%1").arg(parent).local8Bit();
appids[1]="noatun"; appids[1]="noatun";
TQCString &appid=appids[0]; TQCString &appid=appids[0];
@ -504,7 +504,7 @@ ExitNotifier::ExitNotifier(int pid, TQObject *parent) : NoatunListener(parent)
TQCString appids[2]; TQCString appids[2];
appids[0]=TQString("noatun-%1").tqarg(pid).local8Bit(); appids[0]=TQString("noatun-%1").arg(pid).local8Bit();
appids[1]="noatun"; appids[1]="noatun";
appid=appids[0]; appid=appids[0];

@ -28,7 +28,7 @@
#include <tqtabwidget.h> #include <tqtabwidget.h>
#include <tqheader.h> #include <tqheader.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include "noatunlistview.h" #include "noatunlistview.h"
#include "pluginmodule.h" #include "pluginmodule.h"

@ -4,7 +4,7 @@
#include <kglobal.h> #include <kglobal.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <kdebug.h> #include <kdebug.h>
#include <tqlayout.h> #include <layout.h>
//#include <tqlabel.h> //#include <tqlabel.h>
#include "cmodule.h" #include "cmodule.h"

@ -119,7 +119,7 @@ ScrollingLabel::_update()
d->scrollSize = TQMAX(0, w - width()); d->scrollSize = TQMAX(0, w - width());
d->buf.resize(w, h); d->buf.resize(w, h);
d->buf.fill(tqcolorGroup().background()); d->buf.fill(colorGroup().background());
TQPainter p(&d->buf); TQPainter p(&d->buf);
p.setFont(font()); p.setFont(font());
@ -128,7 +128,7 @@ ScrollingLabel::_update()
if (d->scroll && (d->scrollSize > 0)) if (d->scroll && (d->scrollSize > 0))
d->scrollTimer.start(100, true); d->scrollTimer.start(100, true);
tqrepaint(false); repaint(false);
} }
void void
@ -149,7 +149,7 @@ ScrollingLabel::scroll()
{ {
d->scrollTimer.stop(); d->scrollTimer.stop();
tqrepaint(false); repaint(false);
int scrollTime = 100; int scrollTime = 100;
@ -166,13 +166,13 @@ ScrollingLabel::scroll()
} }
TQSize TQSize
ScrollingLabel::tqsizeHint() const ScrollingLabel::sizeHint() const
{ {
return fontMetrics().boundingRect(d->text).size(); return fontMetrics().boundingRect(d->text).size();
} }
TQSize TQSize
ScrollingLabel::tqminimumSizeHint() const ScrollingLabel::minimumSizeHint() const
{ {
return TQSize(0, fontMetrics().height()); return TQSize(0, fontMetrics().height());
} }

@ -157,11 +157,11 @@ void Proxy::sendRequest() //SLOT
"%3" "%3"
"%4" "%4"
"\r\n" ) "\r\n" )
.tqarg( m_url.path( -1 ).isEmpty() ? "/" : m_url.path( -1 ) ) .arg( m_url.path( -1 ).isEmpty() ? "/" : m_url.path( -1 ) )
.tqarg( m_url.host() ) .arg( m_url.host() )
.tqarg( m_icyMode ? TQString( "Icy-MetaData:1\r\n" ) : TQString() ) .arg( m_icyMode ? TQString( "Icy-MetaData:1\r\n" ) : TQString() )
.tqarg( auth ? TQString( "Authorization: Basic " ).append( authString ) : TQString() ) .arg( auth ? TQString( "Authorization: Basic " ).append( authString ) : TQString() )
.tqarg( NOATUN_VERSION ); .arg( NOATUN_VERSION );
m_sockRemote.writeBlock( request.latin1(), request.length() ); m_sockRemote.writeBlock( request.latin1(), request.length() );
@ -304,7 +304,7 @@ bool Proxy::processHeader( TQ_LONG &index, TQ_LONG bytesRead )
} }
} }
if ( m_streamUrl.tqstartsWith( "www.", true ) ) if ( m_streamUrl.startsWith( "www.", true ) )
m_streamUrl.prepend( "http://" ); m_streamUrl.prepend( "http://" );
m_sockProxy.writeBlock( m_headerStr.latin1(), m_headerStr.length() ); m_sockProxy.writeBlock( m_headerStr.latin1(), m_headerStr.length() );
@ -339,8 +339,8 @@ void Proxy::transmitData( const TQString &data )
emit metaData( emit metaData(
m_streamName, m_streamGenre, m_streamUrl, m_bitRate, m_streamName, m_streamGenre, m_streamUrl, m_bitRate,
extractStr(data, TQString::tqfromLatin1("StreamTitle")), extractStr(data, TQString::fromLatin1("StreamTitle")),
extractStr(data, TQString::tqfromLatin1("StreamUrl"))); extractStr(data, TQString::fromLatin1("StreamUrl")));
} }

@ -57,7 +57,7 @@
#include <klocale.h> #include <klocale.h>
#include <tqdom.h> #include <tqdom.h>
#include <tqtextstream.h> #include <textstream.h>
#include <tqfile.h> #include <tqfile.h>
#include <math.h> #include <math.h>

@ -110,7 +110,7 @@ void VideoFrame::stopped()
} }
} }
#include <tqlayout.h> #include <layout.h>
GlobalVideo::GlobalVideo() GlobalVideo::GlobalVideo()
@ -122,7 +122,7 @@ GlobalVideo::GlobalVideo()
menu = video->popupMenu(this); menu = video->popupMenu(this);
// FIXME: How to obtain minimum size for top-level widgets? // FIXME: How to obtain minimum size for top-level widgets?
// video->setMinimumSize(tqminimumSizeHint()); // video->setMinimumSize(minimumSizeHint());
// video->setMinimumSize(101,35); // video->setMinimumSize(101,35);
video->setMinimumSize(128,96); video->setMinimumSize(128,96);

@ -1,4 +1,4 @@
#include <tqlayout.h> #include <layout.h>
#include <tqslider.h> #include <tqslider.h>
#include "extrastereogui_impl.h" #include "extrastereogui_impl.h"

@ -54,7 +54,7 @@
#include <tqbitmap.h> #include <tqbitmap.h>
#include <tqdragobject.h> #include <tqdragobject.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqobjectlist.h> #include <tqobjectlist.h>
#include <tqobjectdict.h> #include <tqobjectdict.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
@ -107,10 +107,10 @@ Excellent::Excellent()
labelFont.setBold(true); labelFont.setBold(true);
TQFontMetrics labelFontMetrics = labelFont; TQFontMetrics labelFontMetrics = labelFont;
elapsed->setFont(labelFont); elapsed->setFont(labelFont);
elapsed->tqsetAlignment(AlignCenter | AlignVCenter | ExpandTabs); elapsed->setAlignment(AlignCenter | AlignVCenter | ExpandTabs);
elapsed->setText("--:--"); elapsed->setText("--:--");
elapsed->setFixedHeight(labelFontMetrics.height()); elapsed->setFixedHeight(labelFontMetrics.height());
elapsed->setMinimumWidth(elapsed->tqsizeHint().width()); elapsed->setMinimumWidth(elapsed->sizeHint().width());
// Doing this makes the slider the same heigh as the font. This is just plain wrong... // Doing this makes the slider the same heigh as the font. This is just plain wrong...
//slider->setFixedHeight(labelFontMetrics.height()); //slider->setFixedHeight(labelFontMetrics.height());
@ -121,9 +121,9 @@ Excellent::Excellent()
labelFont = total->font(); labelFont = total->font();
labelFont.setBold(true); labelFont.setBold(true);
total->setFont(labelFont); total->setFont(labelFont);
total->tqsetAlignment(AlignCenter | AlignVCenter | ExpandTabs); total->setAlignment(AlignCenter | AlignVCenter | ExpandTabs);
total->setText("--:--"); total->setText("--:--");
total->setMinimumWidth(total->tqsizeHint().width()); total->setMinimumWidth(total->sizeHint().width());
total->setText(""); total->setText("");
statusBar()->addWidget(total, 0, true); statusBar()->addWidget(total, 0, true);
@ -335,7 +335,7 @@ void Excellent::showMenubar(void)
} }
else else
{ {
KMessageBox::information(this, i18n("<qt>Press %1 to show the menubar.</qt>").tqarg(menubarAction->shortcut().toString()), TQString(), "Hide Menu warning"); KMessageBox::information(this, i18n("<qt>Press %1 to show the menubar.</qt>").arg(menubarAction->shortcut().toString()), TQString(), "Hide Menu warning");
menuBar()->hide(); menuBar()->hide();
} }
} }

@ -1,6 +1,6 @@
#include <klocale.h> #include <klocale.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <tqtextcodec.h> #include <textcodec.h>
#include <kaction.h> #include <kaction.h>
#include <noatun/stdaction.h> #include <noatun/stdaction.h>
#include "htmlexport.h" #include "htmlexport.h"
@ -213,19 +213,19 @@ Prefs::Prefs(TQObject *parent)
txtColorLabel = new TQLabel( colorBox, "txtColorLabel" ); txtColorLabel = new TQLabel( colorBox, "txtColorLabel" );
txtColorLabel->setText( i18n( "Text:" ) ); txtColorLabel->setText( i18n( "Text:" ) );
txtColorLabel->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); txtColorLabel->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
bgColorLabel = new TQLabel( colorBox, "bgColorLabel" ); bgColorLabel = new TQLabel( colorBox, "bgColorLabel" );
bgColorLabel->setText( i18n( "Background:" ) ); bgColorLabel->setText( i18n( "Background:" ) );
bgColorLabel->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); bgColorLabel->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
headColorLabel = new TQLabel( colorBox, "headColorLabel" ); headColorLabel = new TQLabel( colorBox, "headColorLabel" );
headColorLabel->setText( i18n( "Heading:" ) ); headColorLabel->setText( i18n( "Heading:" ) );
headColorLabel->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); headColorLabel->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
hoverColorLabel = new TQLabel( colorBox, "hoverColorLabel" ); hoverColorLabel = new TQLabel( colorBox, "hoverColorLabel" );
hoverColorLabel->setText( i18n( "Link hover:" ) ); hoverColorLabel->setText( i18n( "Link hover:" ) );
hoverColorLabel->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); hoverColorLabel->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
bgcolorLabel->setRowStretch(0, 1); bgcolorLabel->setRowStretch(0, 1);

@ -3,13 +3,13 @@
#define _HTMLEXPORT_H_ #define _HTMLEXPORT_H_
#include <tqfile.h> #include <tqfile.h>
#include <tqtextstream.h> #include <textstream.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqhgroupbox.h> #include <tqhgroupbox.h>
#include <tqlineedit.h> #include <tqlineedit.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqlayout.h> #include <layout.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqwhatsthis.h> #include <tqwhatsthis.h>

@ -1,5 +1,5 @@
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <noatun/app.h> #include <noatun/app.h>
@ -54,35 +54,35 @@ TQMap<TQString, IRPrefs::Command> IRPrefs::s_commands;
IRPrefs::IRPrefs(TQObject *parent) IRPrefs::IRPrefs(TQObject *parent)
: CModule(i18n("Infrared Control"), i18n("Configure Infrared Commands"), "remote", parent) : CModule(i18n("Infrared Control"), i18n("Configure Infrared Commands"), "remote", parent)
{ {
TQGridLayout *tqlayout = new TQGridLayout(this, 3, 5, KDialog::marginHint(), KDialog::spacingHint()); TQGridLayout *layout = new TQGridLayout(this, 3, 5, KDialog::marginHint(), KDialog::spacingHint());
tqlayout->setColStretch(1, 1); layout->setColStretch(1, 1);
TQLabel *label = new TQLabel(i18n("Remote control &commands:"), this); TQLabel *label = new TQLabel(i18n("Remote control &commands:"), this);
tqlayout->addMultiCellWidget(label, 0, 0, 0, 4); layout->addMultiCellWidget(label, 0, 0, 0, 4);
label->setBuddy(m_commands = new KListView(this)); label->setBuddy(m_commands = new KListView(this));
tqlayout->addMultiCellWidget(m_commands, 1, 1, 0, 4); layout->addMultiCellWidget(m_commands, 1, 1, 0, 4);
label = new TQLabel(i18n("&Action:"), this); label = new TQLabel(i18n("&Action:"), this);
tqlayout->addWidget(label, 2, 0); layout->addWidget(label, 2, 0);
label->setBuddy(m_action = new KComboBox(this)); label->setBuddy(m_action = new KComboBox(this));
m_action->setEnabled(false); m_action->setEnabled(false);
tqlayout->addWidget(m_action, 2, 1); layout->addWidget(m_action, 2, 1);
m_repeat = new TQCheckBox(i18n("&Repeat"), this); m_repeat = new TQCheckBox(i18n("&Repeat"), this);
m_repeat->setEnabled(false); m_repeat->setEnabled(false);
tqlayout->addWidget(m_repeat, 2, 2); layout->addWidget(m_repeat, 2, 2);
label = new TQLabel(i18n("&Interval:"), this); label = new TQLabel(i18n("&Interval:"), this);
tqlayout->addWidget(label, 2, 3); layout->addWidget(label, 2, 3);
label->setBuddy(m_interval = new KIntSpinBox(this)); label->setBuddy(m_interval = new KIntSpinBox(this));
m_interval->setMinValue(1); m_interval->setMinValue(1);
m_interval->setMaxValue(0xff); m_interval->setMaxValue(0xff);
m_interval->setValue(10); m_interval->setValue(10);
m_interval->setEnabled(false); m_interval->setEnabled(false);
tqlayout->addWidget(m_interval, 2, 4); layout->addWidget(m_interval, 2, 4);
connect(s_lirc, TQT_SIGNAL(remotesRead()), TQT_SLOT(reopen())); connect(s_lirc, TQT_SIGNAL(remotesRead()), TQT_SLOT(reopen()));
connect(m_commands, connect(m_commands,
@ -109,9 +109,9 @@ void IRPrefs::save()
int i = 1; int i = 1;
for (TQMap<TQString, Command>::ConstIterator it = s_commands.begin(); it != s_commands.end(); ++it) for (TQMap<TQString, Command>::ConstIterator it = s_commands.begin(); it != s_commands.end(); ++it)
{ {
c->writePathEntry(TQString("Command_%1").tqarg(i), it.key()); c->writePathEntry(TQString("Command_%1").arg(i), it.key());
c->writeEntry(TQString("Action_%1").tqarg(i), (int)((*it).action)); c->writeEntry(TQString("Action_%1").arg(i), (int)((*it).action));
c->writeEntry(TQString("Interval_%1").tqarg(i), (*it).interval); c->writeEntry(TQString("Interval_%1").arg(i), (*it).interval);
++i; ++i;
} }
} }
@ -288,9 +288,9 @@ void IRPrefs::readConfig()
for (int i = 1; i <= count; ++i) for (int i = 1; i <= count; ++i)
{ {
Command cmd; Command cmd;
cmd.action = (Action)(c->readNumEntry(TQString("Action_%1").tqarg(i))); cmd.action = (Action)(c->readNumEntry(TQString("Action_%1").arg(i)));
cmd.interval = c->readNumEntry(TQString("Interval_%1").tqarg(i)); cmd.interval = c->readNumEntry(TQString("Interval_%1").arg(i));
s_commands.insert(c->readPathEntry(TQString("Command_%1").tqarg(i)), cmd); s_commands.insert(c->readPathEntry(TQString("Command_%1").arg(i)), cmd);
} }
s_configRead = true; s_configRead = true;
} }

@ -56,7 +56,7 @@ options in the event that options are added to the skin spec in the future.
PROPER TRANSPARENCY: PROPER TRANSPARENCY:
The main background image uses a threshold of 1 (out of 256 levels) for the The main background image uses a threshold of 1 (out of 256 levels) for the
window tqshape, the rest is used for partially overwiting the background when window shape, the rest is used for partially overwiting the background when
the Transparency option is true. the Transparency option is true.
Portions of items, buttons, sliders, numbers, and text that never change and Portions of items, buttons, sliders, numbers, and text that never change and
@ -80,7 +80,7 @@ Background: filename
filename filename
The background image file, the window will be the same size as this image. The background image file, the window will be the same size as this image.
Add transparency to this image for tqshaped skins, the cutoff threshold for Add transparency to this image for shaped skins, the cutoff threshold for
transparency is 1 on images with muli-level alpha (like in png). transparency is 1 on images with muli-level alpha (like in png).
Transparency: flag Transparency: flag
@ -95,7 +95,7 @@ Mask: filename
(this is DEPRECATED!, for transparent skins just add transparency to the (this is DEPRECATED!, for transparent skins just add transparency to the
Background image, Mask remains merely for backwards compatibility) Background image, Mask remains merely for backwards compatibility)
filename filename
The mask image file, only needed for skins which are tqshaped windows (not The mask image file, only needed for skins which are shaped windows (not
rectangular). Contains a transparency mask for the main window. rectangular). Contains a transparency mask for the main window.
========================== ==========================
@ -185,7 +185,7 @@ Preset_1_/.../Preset_10_Button: filename prelight x y [clip_filename]
Items (with fixed number sections) Items (with fixed number sections)
========================== ==========================
Stereo/Shuffle/Repeat/Mpegversion/Mpeglayer/Mpegmode/tqStatus/ Stereo/Shuffle/Repeat/Mpegversion/Mpeglayer/Mpegmode/Status/
Minus/Total_Item: filename x y Minus/Total_Item: filename x y
filename filename
@ -401,7 +401,7 @@ Option line: | # images | Normal | Pressed | Prelit |
Items (all item images contained vertically) Items (all item images contained vertically)
-------------------------- --------------------------
Stereo/Shuffle/Repeat/Mpegversion/Mpeglayer/Mpegmode/tqStatus/Minus/Total_Item: filename x y Stereo/Shuffle/Repeat/Mpegversion/Mpeglayer/Mpegmode/Status/Minus/Total_Item: filename x y
Item: | # images | Image 1 | Image 2 | Image 3 | Image 4 | Image 5 | Item: | # images | Image 1 | Image 2 | Image 3 | Image 4 | Image 5 |
| total | | | | | | | total | | | | | |

@ -17,7 +17,7 @@
*/ */
#include <klocale.h> #include <klocale.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <klistbox.h> #include <klistbox.h>
#include <tqdir.h> #include <tqdir.h>

@ -3,8 +3,8 @@ Author: Johne Ellis <gqview@geocities.ocm>
Released: November 25, 1998 Released: November 25, 1998
Version: 1.0 Version: 1.0
URL: http://www.geocities.com/SiliconValley/Haven/5235 URL: http://www.geocities.com/SiliconValley/Haven/5235
Comments: Skin with a doughnut tqshape to test tqshaped windows. Comments: Skin with a doughnut shape to test shaped windows.
(skins with a tqshape mask) (skins with a shape mask)
Note: For transparency to work, GQmpeg 0.4.2 is required. Note: For transparency to work, GQmpeg 0.4.2 is required.
Previous versions will work, but will be _ugly_. Previous versions will work, but will be _ugly_.

@ -6,15 +6,15 @@
#Released: November 25, 1998 #Released: November 25, 1998
#Author: John Ellis <gqview@geocities.com> #Author: John Ellis <gqview@geocities.com>
#URL: http://www.geocities.com/SiliconValley/Haven/5235/ #URL: http://www.geocities.com/SiliconValley/Haven/5235/
#Comments: Skin with a doughnut tqshape to test tqshaped windows. #Comments: Skin with a doughnut shape to test shaped windows.
# (skins with a tqshape mask) # (skins with a shape mask)
#run 'gqmpeg -skinhelp' for help with coordinates. #run 'gqmpeg -skinhelp' for help with coordinates.
#simply comment out items you do not want to display #simply comment out items you do not want to display
#only Background is required. #only Background is required.
Background: back.png Background: back.png
#Mask is an image with transparency used to define a tqshaped window #Mask is an image with transparency used to define a shaped window
Mask: back_mask.png Mask: back_mask.png
#Title: filename length x y #Title: filename length x y

@ -6,15 +6,15 @@
#Released: November 25, 1998 #Released: November 25, 1998
#Author: John Ellis <gqview@geocities.com> #Author: John Ellis <gqview@geocities.com>
#URL: http://www.geocities.com/SiliconValley/Haven/5235/ #URL: http://www.geocities.com/SiliconValley/Haven/5235/
#Comments: Skin with a doughnut tqshape to test tqshaped windows. #Comments: Skin with a doughnut shape to test shaped windows.
# (skins with a tqshape mask) # (skins with a shape mask)
#run 'gqmpeg -skinhelp' for help with coordinates. #run 'gqmpeg -skinhelp' for help with coordinates.
#simply comment out items you do not want to display #simply comment out items you do not want to display
#only Background is required. #only Background is required.
Background: back_sm.png Background: back_sm.png
#Mask is an image with transparency used to define a tqshaped window #Mask is an image with transparency used to define a shaped window
Mask: back_sm_mask.png Mask: back_sm_mask.png
#Title: filename length x y #Title: filename length x y

@ -22,7 +22,7 @@
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kmessagebox.h> #include <kmessagebox.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqtextstream.h> #include <textstream.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqdropsite.h> #include <tqdropsite.h>
#include <kdebug.h> #include <kdebug.h>
@ -160,7 +160,7 @@ void KaimanStyleElement::setPixmap( int num )
if ( num<0 ) num = 0; if ( num<0 ) num = 0;
_currentPixmap = num; _currentPixmap = num;
tqrepaint( FALSE ); repaint( FALSE );
} }
} }
@ -321,7 +321,7 @@ void KaimanStyleButton::updateButtonState() {
} }
setPixmap( *I_pmIndex[i_i_currentState] ); setPixmap( *I_pmIndex[i_i_currentState] );
tqrepaint(); repaint();
} }
@ -349,7 +349,7 @@ void KaimanStyleSlider::setValue( int value )
if (value>_max) value=_max; if (value>_max) value=_max;
if (value<_min) value=_min; if (value<_min) value=_min;
_value = value; _value = value;
tqrepaint(); repaint();
} }
@ -359,7 +359,7 @@ void KaimanStyleSlider::setValue( int value, int min, int max )
_min = min; _min = min;
_max = max; _max = max;
setValue( value ); setValue( value );
tqrepaint(); repaint();
} }
} }
@ -413,7 +413,7 @@ void KaimanStyleSlider::mouseReleaseEvent(TQMouseEvent *qme)
{ {
_down = false; _down = false;
releaseMouse(); releaseMouse();
tqrepaint(); repaint();
setValue( pos2value(qme->x(), qme->y()) ); setValue( pos2value(qme->x(), qme->y()) );
emit newValue( value() ); emit newValue( value() );
@ -465,7 +465,7 @@ void KaimanStyleSlider::enterEvent ( TQEvent * e )
if ( !_lit && optionPrelight ) if ( !_lit && optionPrelight )
{ {
_lit = true; _lit = true;
tqrepaint(); repaint();
} }
KaimanStyleMasked::enterEvent( e ); KaimanStyleMasked::enterEvent( e );
@ -476,7 +476,7 @@ void KaimanStyleSlider::leaveEvent ( TQEvent * e )
if ( _lit ) if ( _lit )
{ {
_lit = false; _lit = false;
tqrepaint(); repaint();
} }
KaimanStyleMasked::leaveEvent( e ); KaimanStyleMasked::leaveEvent( e );
@ -522,7 +522,7 @@ void KaimanStyleBackground::mouseMoveEvent(TQMouseEvent *qme)
void KaimanStyleBackground::mousePressEvent(TQMouseEvent *qme) void KaimanStyleBackground::mousePressEvent(TQMouseEvent *qme)
{ {
// On the background we move the tqshaped toplevel around // On the background we move the shaped toplevel around
if (!i_b_move) { if (!i_b_move) {
i_point_dragStart = qme->pos(); i_point_dragStart = qme->pos();
i_point_lastPos = qme->globalPos(); i_point_lastPos = qme->globalPos();
@ -599,7 +599,7 @@ void KaimanStyleNumber::setValue( int value )
if ( _value!=value ) if ( _value!=value )
{ {
_value = value; _value = value;
tqrepaint(); repaint();
} }
} }
@ -667,7 +667,7 @@ void KaimanStyleText::setValue( TQString value )
_pos = 0; _pos = 0;
_direction = 1; _direction = 1;
_value = value; _value = value;
tqrepaint(); repaint();
} }
} }
@ -698,7 +698,7 @@ void KaimanStyleText::timeout()
// check new position // check new position
if ( _pos+_direction>=0 && (int)_value.length()-(_pos+_direction)>=digits ) { if ( _pos+_direction>=0 && (int)_value.length()-(_pos+_direction)>=digits ) {
_pos += _direction; _pos += _direction;
tqrepaint(); repaint();
} }
_timer->start( _delay, TRUE ); _timer->start( _delay, TRUE );
@ -1456,7 +1456,7 @@ bool KaimanStyle::loadPixmaps()
if ( (l_pixmap_Background != 0) && (l_pixmap_Mask != 0) ) { if ( (l_pixmap_Background != 0) && (l_pixmap_Mask != 0) ) {
// OK, background and mask are defined. So now I can calculate the tqshape // OK, background and mask are defined. So now I can calculate the shape
int l_i_width_Mask = l_pixmap_Mask->width(); int l_i_width_Mask = l_pixmap_Mask->width();
int l_i_height_Mask = l_pixmap_Mask->height(); int l_i_height_Mask = l_pixmap_Mask->height();

@ -346,7 +346,7 @@ private:
TQString i_s_styleBase; TQString i_s_styleBase;
// The mask of the complete style. Used for doing tqshaped windows // The mask of the complete style. Used for doing shaped windows
TQBitmap i_bitmap_Mask; TQBitmap i_bitmap_Mask;
/// All style elements are stored here. /// All style elements are stored here.

@ -88,10 +88,10 @@ Kaiman::Kaiman()
if ( !changeStyle(skinName, "skindata") ) if ( !changeStyle(skinName, "skindata") )
{ {
KMessageBox::sorry( this, i18n("Cannot load skin %1. Switching to default skin.").tqarg(skinName) ); KMessageBox::sorry( this, i18n("Cannot load skin %1. Switching to default skin.").arg(skinName) );
if ( !changeStyle( DEFAULT_SKIN, "skindata" ) ) if ( !changeStyle( DEFAULT_SKIN, "skindata" ) )
{ {
KMessageBox::error( this, i18n("Cannot load default skin %1.").tqarg(DEFAULT_SKIN) ); KMessageBox::error( this, i18n("Cannot load default skin %1.").arg(DEFAULT_SKIN) );
TQTimer::singleShot( 0, this, TQT_SLOT(close()) ); TQTimer::singleShot( 0, this, TQT_SLOT(close()) );
return; return;
} }
@ -159,7 +159,7 @@ bool Kaiman::loadStyle( const TQString &style, const TQString &desc )
if ( _style->Mask() != 0 ) if ( _style->Mask() != 0 )
{ {
// Set the tqshaped window form // Set the shaped window form
XShapeCombineMask( qt_xdisplay(), winId(), ShapeBounding, 0,0, XShapeCombineMask( qt_xdisplay(), winId(), ShapeBounding, 0,0,
_style->Mask()->handle(), ShapeSet ); _style->Mask()->handle(), ShapeSet );
} }
@ -335,13 +335,13 @@ void Kaiman::toggleSkin()
TQString oldDesc, newDesc; TQString oldDesc, newDesc;
if ( _altSkin ) if ( _altSkin )
{ {
oldDesc = TQString::tqfromLatin1("skindata"); oldDesc = TQString::fromLatin1("skindata");
newDesc = TQString::tqfromLatin1("alt_skindata"); newDesc = TQString::fromLatin1("alt_skindata");
} }
else else
{ {
newDesc = TQString::tqfromLatin1("skindata"); newDesc = TQString::fromLatin1("skindata");
oldDesc = TQString::tqfromLatin1("alt_skindata"); oldDesc = TQString::fromLatin1("alt_skindata");
} }
if ( !changeStyle(skinName, newDesc) ) if ( !changeStyle(skinName, newDesc) )
@ -372,7 +372,7 @@ void Kaiman::volumeDown()
void Kaiman::execMixer() void Kaiman::execMixer()
{ {
kapp->startServiceByDesktopName ( TQString::tqfromLatin1("kmix"), TQString() ); kapp->startServiceByDesktopName ( TQString::fromLatin1("kmix"), TQString() );
} }
@ -520,7 +520,7 @@ void Kaiman::newSong()
if ( title.isEmpty() ) if ( title.isEmpty() )
title = napp->player()->current().file(); title = napp->player()->current().file();
title = i18n("TITLE (LENGTH)", "%1 (%2)").tqarg(title, title = i18n("TITLE (LENGTH)", "%1 (%2)").arg(title,
napp->player()->current().lengthString()); napp->player()->current().lengthString());
} }
titleItem->setValue( title ); titleItem->setValue( title );

@ -3,12 +3,12 @@
#include <noatun/app.h> #include <noatun/app.h>
#include <noatun/playlist.h> #include <noatun/playlist.h>
#include <tqlayout.h> #include <layout.h>
#include <kglobalaccel.h> #include <kglobalaccel.h>
#include <kkeydialog.h> #include <kkeydialog.h>
#include <klocale.h> #include <klocale.h>
#include <tqclipboard.h> #include <clipboard.h>
#include "keyz.h" #include "keyz.h"
@ -174,9 +174,9 @@ KeyzPrefs::KeyzPrefs( TQObject *parent ) :
CModule( i18n("Keyz"), i18n("Shortcut Configuration"), "key_bindings", CModule( i18n("Keyz"), i18n("Shortcut Configuration"), "key_bindings",
parent ) parent )
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); TQVBoxLayout *layout = new TQVBoxLayout( this );
m_chooser = new KKeyChooser( Keyz::accel(), this ); m_chooser = new KKeyChooser( Keyz::accel(), this );
tqlayout->addWidget( m_chooser ); layout->addWidget( m_chooser );
} }
void KeyzPrefs::save() void KeyzPrefs::save()

@ -165,9 +165,9 @@ void KJButton::showPressed(bool b)
{ {
mShowPressed = b; mShowPressed = b;
if ( mShowPressed ) if ( mShowPressed )
tqrepaint(true); // tqrepaint with selected image repaint(true); // repaint with selected image
else else
tqrepaint(false); // tqrepaint with default image (player-background) repaint(false); // repaint with default image (player-background)
} }
void KJButton::slotPlaylistShown(void) void KJButton::slotPlaylistShown(void)
@ -193,8 +193,8 @@ void KJButton::slotEqEnabled(bool on)
void KJButton::mouseRelease(const TQPoint &, bool in) void KJButton::mouseRelease(const TQPoint &, bool in)
{ {
// tqrepaint with default image (player-background) // repaint with default image (player-background)
tqrepaint(false); repaint(false);
if (!in) // only do something if users is still inside the button if (!in) // only do something if users is still inside the button
return; return;

@ -110,7 +110,7 @@ void KJEqualizer::slotUpdateBuffer()
} // for() } // for()
// whole thingy has been drawn, now set the mask // whole thingy has been drawn, now set the mask
mView->setMask( regionMask ); mView->setMask( regionMask );
tqrepaint(); repaint();
} }
void KJEqualizer::mouseMove(const TQPoint &p, bool in) void KJEqualizer::mouseMove(const TQPoint &p, bool in)

@ -32,7 +32,7 @@ private:
int mBandWidth; int mBandWidth;
int mBandHalfHeight; int mBandHalfHeight;
TQPixmap mBars; // holds all slider images TQPixmap mBars; // holds all slider images
TQPixmap *mBack; // holds background of EQ for easy tqrepaint TQPixmap *mBack; // holds background of EQ for easy repaint
TQPixmap *mView; // holds prepared img of all sliders TQPixmap *mView; // holds prepared img of all sliders
VInterpolation *mInterpEq; VInterpolation *mInterpEq;
}; };

@ -276,7 +276,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>60</height> <height>60</height>
@ -320,7 +320,7 @@
<property name="name"> <property name="name">
<cstring>titleScrollSpeed</cstring> <cstring>titleScrollSpeed</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>80</width> <width>80</width>
<height>0</height> <height>0</height>
@ -428,7 +428,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>140</width> <width>140</width>
<height>21</height> <height>21</height>

@ -142,7 +142,7 @@ KJLoader::KJLoader()
else else
{ {
KNotifyClient::event(winId(), "warning", KNotifyClient::event(winId(), "warning",
i18n("There was trouble loading skin %1. Please select another skin file.").tqarg(skin)); i18n("There was trouble loading skin %1. Please select another skin file.").arg(skin));
napp->preferences(); napp->preferences();
} }
@ -392,7 +392,7 @@ void KJLoader::loadSkin(const TQString &file)
show(); show();
conserveMemory(); conserveMemory();
tqrepaint(); repaint();
// update displays if we are already playing // update displays if we are already playing
// This happens while changing skins // This happens while changing skins
@ -812,7 +812,7 @@ void KJLoader::showSplash()
splashScreen->setBackgroundMode ( NoBackground ); splashScreen->setBackgroundMode ( NoBackground );
splashScreen->setMask( KJWidget::getMask(image(item("splashscreen")[1])) ); splashScreen->setMask( KJWidget::getMask(image(item("splashscreen")[1])) );
TQSize sh = splashScreen->tqsizeHint(); TQSize sh = splashScreen->sizeHint();
TQRect desk = KGlobalSettings::splashScreenDesktopGeometry(); TQRect desk = KGlobalSettings::splashScreenDesktopGeometry();
splashScreen->move (desk.x() + (desk.width() - sh.width())/2, splashScreen->move (desk.x() + (desk.width() - sh.width())/2,

@ -17,13 +17,13 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqcombobox.h> #include <tqcombobox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqslider.h> #include <tqslider.h>
#include <tqpixmap.h> #include <tqpixmap.h>
#include <tqtabwidget.h> #include <tqtabwidget.h>
#include <tqtextbrowser.h> #include <textbrowser.h>
#include <tqfileinfo.h> #include <tqfileinfo.h>
#include <tqstringlist.h> #include <tqstringlist.h>
#include <tqregexp.h> #include <tqregexp.h>

@ -156,7 +156,7 @@ void KJSeeker::mouseRelease(const TQPoint &pos, bool in)
return; return;
g = grayRgb(color); g = grayRgb(color);
tqrepaint(); repaint();
// kdDebug(66666) << "length : " << napp->player()->getLength() << endl; // kdDebug(66666) << "length : " << napp->player()->getLength() << endl;
// kdDebug(66666) << "skip to: " << ((long long)g*(long long)napp->player()->getLength())/255 << endl; // kdDebug(66666) << "skip to: " << ((long long)g*(long long)napp->player()->getLength())/255 << endl;

@ -70,7 +70,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>31</height> <height>31</height>
@ -87,7 +87,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>51</width> <width>51</width>
<height>21</height> <height>21</height>
@ -104,7 +104,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>41</height> <height>41</height>
@ -121,7 +121,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>31</width> <width>31</width>
<height>21</height> <height>21</height>
@ -135,7 +135,7 @@
<property name="scaledContents"> <property name="scaledContents">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignCenter</set> <set>AlignCenter</set>
</property> </property>
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">

@ -86,14 +86,14 @@ void KJVolumeBar::paint(TQPainter *p, const TQRect &)
TQt::CopyROP); TQt::CopyROP);
if (mText) if (mText)
mText->tqrepaint(); mText->repaint();
} }
bool KJVolumeBar::mousePress(const TQPoint &pos) bool KJVolumeBar::mousePress(const TQPoint &pos)
{ {
mVolume = (pos.x()*100) / rect().width(); mVolume = (pos.x()*100) / rect().width();
// kdDebug(66666) << "volume: " << mVolume << endl; // kdDebug(66666) << "volume: " << mVolume << endl;
tqrepaint(); repaint();
napp->player()->setVolume(mVolume); napp->player()->setVolume(mVolume);
return true; return true;
} }
@ -112,7 +112,7 @@ void KJVolumeBar::mouseMove(const TQPoint &pos, bool in)
void KJVolumeBar::timeUpdate(int) void KJVolumeBar::timeUpdate(int)
{ {
mVolume = napp->player()->volume(); mVolume = napp->player()->volume();
tqrepaint(); repaint();
} }
@ -148,7 +148,7 @@ void KJVolumeBMP::paint(TQPainter *p, const TQRect &)
TQRect from(mVolume*mCount/100*mWidth, 0, mWidth, mImages.height()); TQRect from(mVolume*mCount/100*mWidth, 0, mWidth, mImages.height());
bitBlt(p->device(), rect().topLeft(), &mImages, from, TQt::CopyROP); bitBlt(p->device(), rect().topLeft(), &mImages, from, TQt::CopyROP);
if (mText) if (mText)
mText->tqrepaint(); mText->repaint();
} }
bool KJVolumeBMP::mousePress(const TQPoint &pos) bool KJVolumeBMP::mousePress(const TQPoint &pos)
@ -162,7 +162,7 @@ bool KJVolumeBMP::mousePress(const TQPoint &pos)
// kdDebug(66666) << "gray : " << grayRgb(color) << endl; // kdDebug(66666) << "gray : " << grayRgb(color) << endl;
// kdDebug(66666) << "volume: " << mVolume << endl; // kdDebug(66666) << "volume: " << mVolume << endl;
tqrepaint(); repaint();
napp->player()->setVolume(mVolume); napp->player()->setVolume(mVolume);
@ -187,7 +187,7 @@ void KJVolumeBMP::timeUpdate(int)
mOldVolume = mVolume; mOldVolume = mVolume;
tqrepaint(); repaint();
} }
@ -236,7 +236,7 @@ KJPitchBMP::KJPitchBMP(const TQStringList &i, KJLoader *p)
readConfig(); readConfig();
if (mText) if (mText)
mText->tqrepaint(); mText->repaint();
} }
TQString KJPitchBMP::tip() TQString KJPitchBMP::tip()
@ -253,7 +253,7 @@ void KJPitchBMP::paint(TQPainter *p, const TQRect &)
bitBlt(p->device(), rect().topLeft(), &mImages, from, TQt::CopyROP); bitBlt(p->device(), rect().topLeft(), &mImages, from, TQt::CopyROP);
if (mText) if (mText)
mText->tqrepaint(); mText->repaint();
} }
bool KJPitchBMP::mousePress(const TQPoint &pos) bool KJPitchBMP::mousePress(const TQPoint &pos)
@ -266,7 +266,7 @@ bool KJPitchBMP::mousePress(const TQPoint &pos)
mCurrentPitch = mMinPitch + ( (grayRgb(color)*(mMaxPitch-mMinPitch)) / 255 ); mCurrentPitch = mMinPitch + ( (grayRgb(color)*(mMaxPitch-mMinPitch)) / 255 );
// kdDebug(66666) << "[KJPitchBMP] mousePress() mCurrentPitch: " << mCurrentPitch << endl; // kdDebug(66666) << "[KJPitchBMP] mousePress() mCurrentPitch: " << mCurrentPitch << endl;
tqrepaint(); repaint();
newFile(); // wrong naming, in fact it just sets pitch newFile(); // wrong naming, in fact it just sets pitch
@ -300,7 +300,7 @@ void KJPitchBMP::timeUpdate(int)
mOldPitch = mCurrentPitch; mOldPitch = mCurrentPitch;
tqrepaint(); repaint();
} }
void KJPitchBMP::newFile() void KJPitchBMP::newFile()

@ -108,7 +108,7 @@ void KJFilename::timerEvent(TQTimerEvent *)
// apply the newly created mask // apply the newly created mask
mView.setMask(newMask); mView.setMask(newMask);
tqrepaint(); repaint();
} }
bool KJFilename::mousePress(const TQPoint &) bool KJFilename::mousePress(const TQPoint &)
@ -142,7 +142,7 @@ void KJFilename::readConfig()
mDistance = 1; mDistance = 1;
mTimerUpdates = KJLoader::kjofol->prefs()->titleMovingUpdates(); mTimerUpdates = KJLoader::kjofol->prefs()->titleMovingUpdates();
textFont().recalcSysFont(); textFont().recalcSysFont();
mLastTitle=""; // tqinvalidate title so it gets repainted on next timeUpdate() mLastTitle=""; // invalidate title so it gets repainted on next timeUpdate()
} }
void KJFilename::prepareString(const TQCString &str) void KJFilename::prepareString(const TQCString &str)
@ -255,7 +255,7 @@ void KJTime::readConfig()
// kdDebug(66666) << "KJTime::readConfig()" << endl; // kdDebug(66666) << "KJTime::readConfig()" << endl;
countDown = napp->displayRemaining(); countDown = napp->displayRemaining();
timeFont().recalcSysFont(); timeFont().recalcSysFont();
mLastTime=""; // tqinvalidate time so it gets repainted on next timeUpdate() mLastTime=""; // invalidate time so it gets repainted on next timeUpdate()
} }
TQString KJTime::lengthString ( void ) TQString KJTime::lengthString ( void )
@ -325,7 +325,7 @@ void KJTime::prepareString(const TQCString &str)
mLastTime = str; mLastTime = str;
mTime = timeFont().draw(str, rect().width()); mTime = timeFont().draw(str, rect().width());
tqrepaint(); repaint();
// kdDebug(66666) << "END KJTime::prepareString(const TQCString &str)" << endl; // kdDebug(66666) << "END KJTime::prepareString(const TQCString &str)" << endl;
} }
@ -398,7 +398,7 @@ bool KJVolumeText::mousePress(const TQPoint &)
void KJVolumeText::readConfig() void KJVolumeText::readConfig()
{ {
volumeFont().recalcSysFont(); volumeFont().recalcSysFont();
mLastVolume=""; // tqinvalidate value so it gets repainted on next timeUpdate() mLastVolume=""; // invalidate value so it gets repainted on next timeUpdate()
} }
void KJVolumeText::timeUpdate(int) void KJVolumeText::timeUpdate(int)
@ -421,7 +421,7 @@ void KJVolumeText::prepareString(const TQCString &str)
mLastVolume = str; mLastVolume = str;
mVolume = volumeFont().draw(str, rect().width()); mVolume = volumeFont().draw(str, rect().width());
tqrepaint(); repaint();
} }
TQString KJVolumeText::tip() TQString KJVolumeText::tip()
@ -501,7 +501,7 @@ void KJPitchText::mouseRelease(const TQPoint &, bool in)
void KJPitchText::readConfig() void KJPitchText::readConfig()
{ {
pitchFont().recalcSysFont(); pitchFont().recalcSysFont();
mLastPitch=""; // tqinvalidate value so it gets repainted on next timeUpdate() mLastPitch=""; // invalidate value so it gets repainted on next timeUpdate()
} }
void KJPitchText::timeUpdate(int) void KJPitchText::timeUpdate(int)
@ -529,7 +529,7 @@ void KJPitchText::prepareString(const TQCString &str)
mLastPitch = str; mLastPitch = str;
mSpeed = pitchFont().draw(str, rect().width()); mSpeed = pitchFont().draw(str, rect().width());
tqrepaint(); repaint();
} }
TQString KJPitchText::tip() TQString KJPitchText::tip()
@ -600,7 +600,7 @@ bool KJFileInfo::mousePress(const TQPoint &)
void KJFileInfo::readConfig() void KJFileInfo::readConfig()
{ {
textFont().recalcSysFont(); textFont().recalcSysFont();
mLastTime=""; // tqinvalidate value so it gets repainted on next timeUpdate() mLastTime=""; // invalidate value so it gets repainted on next timeUpdate()
} }
void KJFileInfo::timeUpdate(int) void KJFileInfo::timeUpdate(int)
@ -634,7 +634,7 @@ void KJFileInfo::prepareString(const TQCString &str)
return; return;
mLastTime = str; mLastTime = str;
mTime = textFont().draw(str, rect().width()); mTime = textFont().draw(str, rect().width());
tqrepaint(); repaint();
} }
TQString KJFileInfo::tip() TQString KJFileInfo::tip()

@ -79,7 +79,7 @@ KJNullScope::KJNullScope(const TQStringList &l, KJLoader *parent)
mBack = new KPixmap ( TQSize(xs,ys) ); mBack = new KPixmap ( TQSize(xs,ys) );
bitBlt( mBack, 0, 0, &tmp, x, y, xs, ys, TQt::CopyROP ); bitBlt( mBack, 0, 0, &tmp, x, y, xs, ys, TQt::CopyROP );
setRect ( x, y, xs, ys ); setRect ( x, y, xs, ys );
tqrepaint(); repaint();
} }
void KJNullScope::paint(TQPainter *p, const TQRect &) void KJNullScope::paint(TQPainter *p, const TQRect &)
@ -98,7 +98,7 @@ void KJNullScope::mouseRelease(const TQPoint &, bool in)
if (!in) // only do something if users is still inside the button if (!in) // only do something if users is still inside the button
return; return;
parent()->tqrepaint(rect(), false); parent()->repaint(rect(), false);
swapScope(FFT); swapScope(FFT);
} }
@ -108,7 +108,7 @@ void KJNullScope::readConfig()
Visuals v = (Visuals) KJLoader::kjofol->prefs()->visType(); Visuals v = (Visuals) KJLoader::kjofol->prefs()->visType();
if ( v != Null ) if ( v != Null )
{ {
parent()->tqrepaint(rect(), false); parent()->repaint(rect(), false);
swapScope ( v ); swapScope ( v );
} }
} }
@ -163,7 +163,7 @@ void KJFFT::scopeEvent(float *d, int size)
if ( !napp->player()->isPlaying() ) // don't draw if we aren't playing (either paused or stopped) if ( !napp->player()->isPlaying() ) // don't draw if we aren't playing (either paused or stopped)
{ {
if ( napp->player()->isStopped() ) // clear vis-window if playing has been stopped if ( napp->player()->isStopped() ) // clear vis-window if playing has been stopped
parent()->tqrepaint(rect(), false); parent()->repaint(rect(), false);
return; return;
} }
@ -203,7 +203,7 @@ void KJFFT::scopeEvent(float *d, int size)
mGradient->setMask(mGradientMask); mGradient->setMask(mGradientMask);
bitBlt ( mAnalyzer, 0, 0, mGradient, 0, 0, -1, -1, TQt::CopyROP ); bitBlt ( mAnalyzer, 0, 0, mGradient, 0, 0, -1, -1, TQt::CopyROP );
tqrepaint(); repaint();
} }
void KJFFT::paint(TQPainter *p, const TQRect &) void KJFFT::paint(TQPainter *p, const TQRect &)
@ -225,7 +225,7 @@ void KJFFT::mouseRelease(const TQPoint &, bool in)
return; return;
stop(); stop();
parent()->tqrepaint(rect(), false); parent()->repaint(rect(), false);
swapScope(Mono); swapScope(Mono);
} }
@ -236,7 +236,7 @@ void KJFFT::readConfig()
if ( v != FFT ) if ( v != FFT )
{ {
stop(); stop();
parent()->tqrepaint(rect(), false); parent()->repaint(rect(), false);
swapScope ( v ); swapScope ( v );
return; return;
} }
@ -297,7 +297,7 @@ void KJStereoFFT::scopeEvent(float *left, float *right, int len)
if ( !napp->player()->isPlaying() ) // don't draw if we aren't playing (either paused or stopped) if ( !napp->player()->isPlaying() ) // don't draw if we aren't playing (either paused or stopped)
{ {
if ( napp->player()->isStopped() ) // clear vis-window if playing has been stopped if ( napp->player()->isStopped() ) // clear vis-window if playing has been stopped
parent()->tqrepaint(rect(), false); parent()->repaint(rect(), false);
return; return;
} }
@ -356,7 +356,7 @@ void KJStereoFFT::scopeEvent(float *left, float *right, int len)
mGradient->setMask(mGradientMask); mGradient->setMask(mGradientMask);
bitBlt ( mAnalyzer, 0, 0, mGradient, 0, 0, -1, -1, TQt::CopyROP ); bitBlt ( mAnalyzer, 0, 0, mGradient, 0, 0, -1, -1, TQt::CopyROP );
tqrepaint(); repaint();
} }
void KJStereoFFT::paint(TQPainter *p, const TQRect &) void KJStereoFFT::paint(TQPainter *p, const TQRect &)
@ -376,7 +376,7 @@ void KJStereoFFT::mouseRelease(const TQPoint &, bool in)
if (!in) // only do something if users is still inside the button if (!in) // only do something if users is still inside the button
return; return;
stop(); stop();
parent()->tqrepaint(rect(), false); parent()->repaint(rect(), false);
swapScope(Null); swapScope(Null);
} }
@ -387,7 +387,7 @@ void KJStereoFFT::readConfig()
if ( v != StereoFFT ) if ( v != StereoFFT )
{ {
stop(); stop();
parent()->tqrepaint(rect(), false); parent()->repaint(rect(), false);
swapScope ( v ); swapScope ( v );
return; return;
} }
@ -448,7 +448,7 @@ void KJScope::scopeEvent(float *d, int size)
if ( napp->player()->isStopped() ) if ( napp->player()->isStopped() )
{ {
bitBlt ( mOsci, 0, 0, mBack, 0, 0, -1, -1, TQt::CopyROP ); bitBlt ( mOsci, 0, 0, mBack, 0, 0, -1, -1, TQt::CopyROP );
tqrepaint(); repaint();
} }
return; return;
} }
@ -497,7 +497,7 @@ void KJScope::scopeEvent(float *d, int size)
x++; x++;
} }
tqrepaint(); repaint();
} }
void KJScope::paint(TQPainter *p, const TQRect &) void KJScope::paint(TQPainter *p, const TQRect &)
@ -517,7 +517,7 @@ void KJScope::mouseRelease(const TQPoint &, bool in)
return; return;
stop(); stop();
parent()->tqrepaint(rect(), false); parent()->repaint(rect(), false);
swapScope(/*Null*/ StereoFFT); swapScope(/*Null*/ StereoFFT);
} }
@ -528,7 +528,7 @@ void KJScope::readConfig()
if ( v != Mono ) if ( v != Mono )
{ {
stop(); stop();
parent()->tqrepaint(rect(), false); parent()->repaint(rect(), false);
swapScope ( v ); swapScope ( v );
return; return;
} }

@ -34,13 +34,13 @@ TQBitmap KJWidget::getMask(const TQImage &_rect, register TQRgb transparent)
return bm; return bm;
} }
void KJWidget::tqrepaint(bool me, const TQRect &r, bool clear) void KJWidget::repaint(bool me, const TQRect &r, bool clear)
{ {
TQPainter p(parent()); TQPainter p(parent());
if (me) if (me)
paint(&p, r.isValid() ? r : rect()); paint(&p, r.isValid() ? r : rect());
else else
parent()->tqrepaint(r.isValid() ? r : rect(), clear); parent()->repaint(r.isValid() ? r : rect(), clear);
} }
const TQString &KJWidget::backgroundPressed(const TQString &bmp) const const TQString &KJWidget::backgroundPressed(const TQString &bmp) const

@ -25,8 +25,8 @@ public:
virtual void readConfig() {} virtual void readConfig() {}
// called when the mouse is moved while clicked in this widget // called when the mouse is moved while clicked in this widget
// tqrepaint myself // repaint myself
virtual void tqrepaint(bool me=true, const TQRect &rect=TQRect(), bool clear=false); virtual void repaint(bool me=true, const TQRect &rect=TQRect(), bool clear=false);
virtual TQString tip() { return 0; } virtual TQString tip() { return 0; }

@ -10,7 +10,7 @@
#include "kjprefs.h" #include "kjprefs.h"
// system includes // system includes
#include <tqtextstream.h> #include <textstream.h>
#include <tqimage.h> #include <tqimage.h>
#include <tqfile.h> #include <tqfile.h>
#include <kdebug.h> #include <kdebug.h>

@ -37,7 +37,7 @@
#include <noatun/engine.h> #include <noatun/engine.h>
#include <kaction.h> #include <kaction.h>
static int getPlaytqStatus( Player *player ) static int getPlayStatus( Player *player )
{ {
if ( player->isPlaying() ) if ( player->isPlaying() )
return 1; return 1;
@ -46,7 +46,7 @@ static int getPlaytqStatus( Player *player )
return 0; return 0;
} }
static void setPlaytqStatus( Player *player, int status ) static void setPlayStatus( Player *player, int status )
{ {
switch( status ) switch( status )
{ {
@ -114,7 +114,7 @@ void Marquis::saveSessionConfig(KConfig *c)
c->writePathEntry("Current Song", TQString()); c->writePathEntry("Current Song", TQString());
c->writeEntry("Current Position", player->getTime()); c->writeEntry("Current Position", player->getTime());
c->writeEntry("PlayStatus", getPlaytqStatus( player )); c->writeEntry("PlayStatus", getPlayStatus( player ));
// borrowed from Plugin config dialog // borrowed from Plugin config dialog
TQStringList specList; TQStringList specList;

@ -1,5 +1,5 @@
#include <klocale.h> #include <klocale.h>
#include <tqlayout.h> #include <layout.h>
#include <klineedit.h> #include <klineedit.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqptrlist.h> #include <tqptrlist.h>
@ -37,9 +37,9 @@ Editor::Editor()
TQHBox *heading = new TQHBox(mMainWidget, "Editor::heading"); TQHBox *heading = new TQHBox(mMainWidget, "Editor::heading");
heading->setSpacing(4); heading->setSpacing(4);
mFileIcon = new TQLabel(heading); mFileIcon = new TQLabel(heading);
mFileIcon->tqsetAlignment(AlignVCenter | AlignLeft); mFileIcon->setAlignment(AlignVCenter | AlignLeft);
mFile = new TQLabel(heading); mFile = new TQLabel(heading);
mFile->tqsetAlignment(AlignVCenter | AlignLeft); mFile->setAlignment(AlignVCenter | AlignLeft);
heading->setStretchFactor(mFile, 2); heading->setStretchFactor(mFile, 2);
mGrid->addMultiCellWidget(heading, 0, 0, 0, 2); mGrid->addMultiCellWidget(heading, 0, 0, 0, 2);
@ -53,7 +53,7 @@ Editor::Editor()
connect(this, TQT_SIGNAL(okClicked()), TQT_SLOT(save())); connect(this, TQT_SIGNAL(okClicked()), TQT_SLOT(save()));
enableButtonSeparator(true); enableButtonSeparator(true);
setFixedHeight(tqsizeHint().height()); setFixedHeight(sizeHint().height());
} }
void Editor::open(const PlaylistItem & file) void Editor::open(const PlaylistItem & file)

@ -9,7 +9,7 @@
#include <tqfile.h> #include <tqfile.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <klocale.h> #include <klocale.h>

@ -27,7 +27,7 @@ Monoscope::Monoscope() : TQWidget(0,0,WRepaintNoErase), MonoScope(30), Plugin()
setCaption(i18n("Monoscope")); setCaption(i18n("Monoscope"));
show(); show();
resizeEvent(0); resizeEvent(0);
tqrepaint(0,0, TQWidget::width(), height(), false); repaint(0,0, TQWidget::width(), height(), false);
resizeEvent(0); resizeEvent(0);
setBackgroundColor(mLowColor); setBackgroundColor(mLowColor);
} }
@ -83,7 +83,7 @@ void Monoscope::scopeEvent(float *d, int size)
buffer.fill(mLowColor); buffer.fill(mLowColor);
TQPainter p(&buffer); TQPainter p(&buffer);
p.setPen(mHighColor); p.setPen(mHighColor);
tqrepaint(rect()); repaint(rect());
if (line) if (line)
p.moveTo(0, y); p.moveTo(0, y);

@ -14,7 +14,7 @@
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqdragobject.h> #include <tqdragobject.h>
#include <tqlayout.h> #include <layout.h>
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqobjectlist.h> #include <tqobjectlist.h>
#include <tqobjectdict.h> #include <tqobjectdict.h>
@ -140,7 +140,7 @@ MilkChocolate::MilkChocolate() : TQWidget(0,"NoatunUI"), UserInterface()
show(); show();
// What it is now, stay, stay.. roll over, good boy! // What it is now, stay, stay.. roll over, good boy!
setFixedSize(tqminimumSize()); setFixedSize(minimumSize());
} }
MilkChocolate::~MilkChocolate() MilkChocolate::~MilkChocolate()
@ -199,7 +199,7 @@ void MilkChocolate::changeCaption(const TQString& text)
void MilkChocolate::popup() void MilkChocolate::popup()
{ {
NoatunStdAction::ContextMenu::showContextMenu( NoatunStdAction::ContextMenu::showContextMenu(
mapToGlobal(mPopup->tqgeometry().bottomLeft()) mapToGlobal(mPopup->geometry().bottomLeft())
); );
} }

@ -51,7 +51,7 @@
<property name="name"> <property name="name">
<cstring>nameField</cstring> <cstring>nameField</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>180</width> <width>180</width>
<height>0</height> <height>0</height>
@ -82,7 +82,7 @@
<property name="name"> <property name="name">
<cstring>iconLabel</cstring> <cstring>iconLabel</cstring>
</property> </property>
<property name="tqalignment"> <property name="alignment">
<set>AlignVCenter|AlignLeft</set> <set>AlignVCenter|AlignLeft</set>
</property> </property>
</widget> </widget>
@ -109,7 +109,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -142,13 +142,13 @@
<property name="name"> <property name="name">
<cstring>TextLabel2_2</cstring> <cstring>TextLabel2_2</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>25</width> <width>25</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>25</width> <width>25</width>
<height>32767</height> <height>32767</height>
@ -241,13 +241,13 @@
<property name="name"> <property name="name">
<cstring>TextLabel2</cstring> <cstring>TextLabel2</cstring>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>80</width> <width>80</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>80</width> <width>80</width>
<height>32767</height> <height>32767</height>
@ -305,7 +305,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>

@ -46,7 +46,7 @@ void PropertiesDialog::setPlayObject( PlaylistItem pi, Arts::PlayObject po )
// PlaylistItem properties (name and mimetype) // PlaylistItem properties (name and mimetype)
if (!pi.isNull()) if (!pi.isNull())
{ {
setCaption( i18n("Properties for %1").tqarg(pi.url().fileName()) ); setCaption( i18n("Properties for %1").arg(pi.url().fileName()) );
KSharedPtr<KMimeType> mime = KMimeType::mimeType( pi.mimetype() ); KSharedPtr<KMimeType> mime = KMimeType::mimeType( pi.mimetype() );
iconLabel->setPixmap( mime->pixmap( KIcon::Desktop, KIcon::SizeMedium ) ); iconLabel->setPixmap( mime->pixmap( KIcon::Desktop, KIcon::SizeMedium ) );

@ -74,7 +74,7 @@ SimpleUI::SimpleUI()
napp->player()->handleButtons(); napp->player()->handleButtons();
resize( tqminimumSize() ); resize( minimumSize() );
// Show UI and calculate video widget frame // Show UI and calculate video widget frame
show(); show();
@ -173,7 +173,7 @@ void SimpleUI::setupCentralWidget()
npWidget->setSpacing( 0 ); npWidget->setSpacing( 0 );
positionLabel = new TQLabel( statusBar() ); positionLabel = new TQLabel( statusBar() );
positionLabel->tqsetAlignment( AlignVCenter | AlignCenter ); positionLabel->setAlignment( AlignVCenter | AlignCenter );
positionLabel->setFixedSize( fontMetrics().size( 0, " 00:00/00:00 " ) ); positionLabel->setFixedSize( fontMetrics().size( 0, " 00:00/00:00 " ) );
statusBar()->addWidget( positionLabel, 0, true ); statusBar()->addWidget( positionLabel, 0, true );
@ -238,15 +238,15 @@ void SimpleUI::setupCentralWidget()
volumeLabel = new TQLabel( volumeFrame ); volumeLabel = new TQLabel( volumeFrame );
volumeLabel->setText( "100%" ); volumeLabel->setText( "100%" );
volumeLabel->tqsetAlignment( AlignCenter ); volumeLabel->setAlignment( AlignCenter );
volumeLabel->setFixedSize( volumeLabel->tqsizeHint() ); volumeLabel->setFixedSize( volumeLabel->sizeHint() );
TQHBox *volumeSubFrame = new TQHBox( volumeFrame ); TQHBox *volumeSubFrame = new TQHBox( volumeFrame );
volumeSlider = new L33tSlider( 0, 100, 10, 0,Qt::Vertical, volumeSubFrame ); volumeSlider = new L33tSlider( 0, 100, 10, 0,Qt::Vertical, volumeSubFrame );
volumeSlider->setValue( 100 - napp->player()->volume() ); volumeSlider->setValue( 100 - napp->player()->volume() );
volumeSlider->setFixedSize( volumeSlider->tqsizeHint() ); volumeSlider->setFixedSize( volumeSlider->sizeHint() );
volumeFrame->resize( volumeFrame->tqsizeHint() ); volumeFrame->resize( volumeFrame->sizeHint() );
connect( volumeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(slotVolumeSliderMoved(int)) ); connect( volumeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(slotVolumeSliderMoved(int)) );
connect( volumeSlider, TQT_SIGNAL(userChanged(int)), TQT_SLOT(slotVolumeSliderMoved(int)) ); connect( volumeSlider, TQT_SIGNAL(userChanged(int)), TQT_SLOT(slotVolumeSliderMoved(int)) );
@ -254,7 +254,7 @@ void SimpleUI::setupCentralWidget()
setCentralWidget( npWidget ); setCentralWidget( npWidget );
video->setMinimumSize( tqminimumSizeHint().width(), 1 ); video->setMinimumSize( minimumSizeHint().width(), 1 );
// Create properties dialog // Create properties dialog
propertiesDialog = new PropertiesDialog( this ); propertiesDialog = new PropertiesDialog( this );

@ -1,5 +1,5 @@
#include "find.h" #include "find.h"
#include <tqlayout.h> #include <layout.h>
#include <kcombobox.h> #include <kcombobox.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
@ -11,8 +11,8 @@ Finder::Finder(TQWidget *parent) : KDialogBase(parent, 0, false, i18n("Find"), C
mainWidget->setMinimumWidth(320); mainWidget->setMinimumWidth(320);
setMainWidget(mainWidget); setMainWidget(mainWidget);
TQGridLayout *tqlayout=new TQGridLayout(mainWidget); TQGridLayout *layout=new TQGridLayout(mainWidget);
tqlayout->setSpacing(KDialog::spacingHint()); layout->setSpacing(KDialog::spacingHint());
mText=new KHistoryCombo(mainWidget); mText=new KHistoryCombo(mainWidget);
mText->setMaxCount(10); mText->setMaxCount(10);
@ -22,9 +22,9 @@ Finder::Finder(TQWidget *parent) : KDialogBase(parent, 0, false, i18n("Find"), C
mRegexp=new TQCheckBox(i18n("&Regular expression"), mainWidget); mRegexp=new TQCheckBox(i18n("&Regular expression"), mainWidget);
mBackwards=new TQCheckBox(i18n("Find &backwards"), mainWidget); mBackwards=new TQCheckBox(i18n("Find &backwards"), mainWidget);
tqlayout->addMultiCellWidget(mText, 0, 0, 0, 1); layout->addMultiCellWidget(mText, 0, 0, 0, 1);
tqlayout->addWidget(mRegexp, 1, 0); layout->addWidget(mRegexp, 1, 0);
tqlayout->addWidget(mBackwards, 1, 1); layout->addWidget(mBackwards, 1, 1);
connect(this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(clicked())); connect(this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(clicked()));

@ -217,14 +217,14 @@ void SplitPlaylist::setCurrent(const PlaylistItem &i, bool emitC)
if (now) if (now)
now->setPixmap(0, TQPixmap()); now->setPixmap(0, TQPixmap());
TQRect rect(view->listView()->tqitemRect(static_cast<SafeListViewItem*>(current().data()))); TQRect rect(view->listView()->itemRect(static_cast<SafeListViewItem*>(current().data())));
rect.setWidth(view->listView()->viewport()->width()); rect.setWidth(view->listView()->viewport()->width());
currentItem=i; currentItem=i;
view->listView()->viewport()->tqrepaint(rect,true); view->listView()->viewport()->repaint(rect,true);
view->listView()->ensureItemVisible(static_cast<SafeListViewItem*>(current().data())); view->listView()->ensureItemVisible(static_cast<SafeListViewItem*>(current().data()));
TQRect currentRect= view->listView()->tqitemRect(static_cast<SafeListViewItem*>(current().data())); TQRect currentRect= view->listView()->itemRect(static_cast<SafeListViewItem*>(current().data()));
view->listView()->viewport()->tqrepaint(currentRect); view->listView()->viewport()->repaint(currentRect);
now=static_cast<SafeListViewItem*>(current().data()); now=static_cast<SafeListViewItem*>(current().data());
if(now) if(now)

@ -12,10 +12,10 @@
#include <tqdragobject.h> #include <tqdragobject.h>
#include <tqheader.h> #include <tqheader.h>
#include <tqlayout.h> #include <layout.h>
#include <tqmap.h> #include <tqmap.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <tqtextstream.h> #include <textstream.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <kaction.h> #include <kaction.h>
@ -467,7 +467,7 @@ bool View::saveToURL(const KURL &url)
} }
else else
{ {
KMessageBox::error( this, i18n("Could not write to %1.").tqarg(url.prettyURL()) ); KMessageBox::error( this, i18n("Could not write to %1.").arg(url.prettyURL()) );
return false; return false;
} }
} }

@ -35,7 +35,7 @@
#include <tqcombobox.h> #include <tqcombobox.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <tqspinbox.h> #include <tqspinbox.h>

@ -47,7 +47,7 @@
KitSystemTray::KitSystemTray(const TQString &contextMenu, KMainWindow *parent, const char *name) KitSystemTray::KitSystemTray(const TQString &contextMenu, KMainWindow *parent, const char *name)
: KSystemTray(parent, name) : KSystemTray(parent, name)
{ {
tqsetAlignment(AlignHCenter | AlignVCenter); setAlignment(AlignHCenter | AlignVCenter);
menu = (KPopupMenu *)parent->guiFactory()->container(contextMenu, parent); menu = (KPopupMenu *)parent->guiFactory()->container(contextMenu, parent);
menu->insertTitle(SmallIcon("noatun"), TQString(), 0, 0); menu->insertTitle(SmallIcon("noatun"), TQString(), 0, 0);
setAcceptDrops(true); setAcceptDrops(true);

@ -91,7 +91,7 @@ protected:
NoatunSystray::NoatunSystray() : KMainWindow(0, "NoatunSystray"), Plugin(), NoatunSystray::NoatunSystray() : KMainWindow(0, "NoatunSystray"), Plugin(),
mTray(0), traytqStatus(0), trayBase(0), mPassivePopup(0L) mTray(0), trayStatus(0), trayBase(0), mPassivePopup(0L)
{ {
//self = this; //self = this;
hide(); hide();
@ -118,10 +118,10 @@ NoatunSystray::NoatunSystray() : KMainWindow(0, "NoatunSystray"), Plugin(),
mTray->show(); mTray->show();
trayBase = renderIcon(BASEICON, TQString()); trayBase = renderIcon(BASEICON, TQString());
traytqStatus = renderIcon(BASEICON, "player_stop"); trayStatus = renderIcon(BASEICON, "player_stop");
mTray->changeTitle(*trayBase, i18n("Noatun")); mTray->changeTitle(*trayBase, i18n("Noatun"));
showingTraytqStatus = false; showingTrayStatus = false;
mBlinkTimer = new TQTimer(this); mBlinkTimer = new TQTimer(this);
connect(mBlinkTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotBlinkTimer())); connect(mBlinkTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotBlinkTimer()));
@ -138,7 +138,7 @@ NoatunSystray::~NoatunSystray()
//kdDebug(66666) << k_funcinfo << "Called." << endl; //kdDebug(66666) << k_funcinfo << "Called." << endl;
removeCover(); removeCover();
delete trayBase; delete trayBase;
delete traytqStatus; delete trayStatus;
napp->showInterfaces(); napp->showInterfaces();
} }
@ -213,21 +213,21 @@ void NoatunSystray::slotPlayPause()
if(!item.isProperty("title")) if(!item.isProperty("title"))
{ {
// No metadata // No metadata
s = TQString("<nobr>%1</nobr>").tqarg(item.title()); s = TQString("<nobr>%1</nobr>").arg(item.title());
} }
else else
{ {
s = TQString("<h2><nobr>%1</nobr></h2>").tqarg(item.property("title")); s = TQString("<h2><nobr>%1</nobr></h2>").arg(item.property("title"));
if(item.isProperty("author")) if(item.isProperty("author"))
s += TQString("<nobr>%1</nobr><br>").tqarg(item.property("author")); s += TQString("<nobr>%1</nobr><br>").arg(item.property("author"));
if(item.isProperty("album")) if(item.isProperty("album"))
{ {
if(item.isProperty("date")) if(item.isProperty("date"))
s += TQString("<nobr>%1 (%2)</nobr><br>").tqarg(item.property("album")).tqarg(item.property("date")); s += TQString("<nobr>%1 (%2)</nobr><br>").arg(item.property("album")).arg(item.property("date"));
else else
s += TQString("<nobr>%1</nobr><br>").tqarg(item.property("album")); s += TQString("<nobr>%1</nobr><br>").arg(item.property("album"));
} }
} }
@ -242,11 +242,11 @@ void NoatunSystray::slotPlayPause()
setTipText(TQString("<qt><br><table cellspacing=0 cellpadding=0><tr>" \ setTipText(TQString("<qt><br><table cellspacing=0 cellpadding=0><tr>" \
"<td align=center valign=center><h4><nobr>%1</nobr></h4>%2</td>" \ "<td align=center valign=center><h4><nobr>%1</nobr></h4>%2</td>" \
"<td valign=center><img src='%3'></td>" \ "<td valign=center><img src='%3'></td>" \
"</qt></tr></table>").tqarg(status).tqarg(s).tqarg(tmpCoverPath)); "</qt></tr></table>").arg(status).arg(s).arg(tmpCoverPath));
} }
else else
{ {
setTipText(TQString("<qt><center><h4><nobr>%1</nobr></h4>%2</center></qt>").tqarg(status).tqarg(s)); setTipText(TQString("<qt><center><h4><nobr>%1</nobr></h4>%2</center></qt>").arg(status).arg(s));
} }
} }
@ -256,16 +256,16 @@ void NoatunSystray::slotStopped()
if(!napp->player()->current()) if(!napp->player()->current())
return; return;
changeTray("player_stop"); changeTray("player_stop");
setTipText(TQString("<qt><nobr><h4>%1</h4></nobr></qt>").tqarg(i18n("Noatun - Stopped"))); setTipText(TQString("<qt><nobr><h4>%1</h4></nobr></qt>").arg(i18n("Noatun - Stopped")));
} }
void NoatunSystray::changeTray(const TQString &pm) void NoatunSystray::changeTray(const TQString &pm)
{ {
delete traytqStatus; delete trayStatus;
traytqStatus = renderIcon(BASEICON, pm); trayStatus = renderIcon(BASEICON, pm);
if(showingTraytqStatus) if(showingTrayStatus)
slotBlinkTimer(); slotBlinkTimer();
} }
@ -275,18 +275,18 @@ void NoatunSystray::slotBlinkTimer()
switch(YHConfig::self()->stateIconDisplay()) switch(YHConfig::self()->stateIconDisplay())
{ {
case (YHConfig::FlashingIcon): case (YHConfig::FlashingIcon):
showingTraytqStatus ^= true; showingTrayStatus ^= true;
break; break;
case (YHConfig::StaticIcon): case (YHConfig::StaticIcon):
showingTraytqStatus = true; showingTrayStatus = true;
break; break;
case (YHConfig::NoIcon): case (YHConfig::NoIcon):
showingTraytqStatus = false; showingTrayStatus = false;
break; break;
} }
if(showingTraytqStatus) if(showingTrayStatus)
mTray->setPixmap(*traytqStatus); mTray->setPixmap(*trayStatus);
else else
mTray->setPixmap(*trayBase); mTray->setPixmap(*trayBase);
} }

@ -69,11 +69,11 @@ private:
private: private:
KitSystemTray *mTray; KitSystemTray *mTray;
TQTimer *mBlinkTimer; TQTimer *mBlinkTimer;
TQPixmap *traytqStatus; TQPixmap *trayStatus;
TQPixmap *trayBase; TQPixmap *trayBase;
PassivePopup *mPassivePopup; PassivePopup *mPassivePopup;
bool showingTraytqStatus; bool showingTrayStatus;
TQString tipText; TQString tipText;
TQString tmpCoverPath; TQString tmpCoverPath;
}; };

@ -169,7 +169,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>81</height> <height>81</height>
@ -231,7 +231,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout1</cstring> <cstring>layout1</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -299,7 +299,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>21</height> <height>21</height>

@ -4,7 +4,7 @@
#include <klocale.h> #include <klocale.h>
#include <kglobal.h> #include <kglobal.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <kcolorbutton.h> #include <kcolorbutton.h>
#include <kconfig.h> #include <kconfig.h>

@ -113,12 +113,12 @@ void VoicePrint::scopeEvent(float *data, int bands)
// redraw changes with the minimum amount of work // redraw changes with the minimum amount of work
if(newOffset != 0) if(newOffset != 0)
{ {
tqrepaint(mOffset,0,mSegmentWidth*2,height(),false); repaint(mOffset,0,mSegmentWidth*2,height(),false);
} }
else else
{ {
tqrepaint(mOffset,0,mSegmentWidth,height(),false); repaint(mOffset,0,mSegmentWidth,height(),false);
tqrepaint(newOffset,0,mSegmentWidth,height(),false); repaint(newOffset,0,mSegmentWidth,height(),false);
} }
mOffset = newOffset; mOffset = newOffset;
} }

@ -30,7 +30,7 @@ WaInfo::WaInfo() : WaWidget(_WA_MAPPING_INFO)
completePixmap = new TQPixmap(); completePixmap = new TQPixmap();
TQSize size = tqsizeHint(); TQSize size = sizeHint();
completePixmap->resize(size.width(), size.height()); completePixmap->resize(size.width(), size.height());
xGrabbedPos = -1; xGrabbedPos = -1;
@ -55,7 +55,7 @@ void WaInfo::timeEvent()
} }
if (isVisible()) if (isVisible())
tqrepaint(false); repaint(false);
} }
} }
@ -65,7 +65,7 @@ void WaInfo::scrollerSetup()
xScrollPos = 0; xScrollPos = 0;
xScrollDirection = 0; xScrollDirection = 0;
timer->stop(); timer->stop();
TQSize size = tqsizeHint(); TQSize size = sizeHint();
if (completePixmap->width() > size.width()) { if (completePixmap->width() > size.width()) {
xScrollDirection = 1; xScrollDirection = 1;
@ -79,7 +79,7 @@ void WaInfo::scrollerSetup()
void WaInfo::paintEvent(TQPaintEvent *) void WaInfo::paintEvent(TQPaintEvent *)
{ {
TQSize size = tqsizeHint(); TQSize size = sizeHint();
if (completePixmap->width() <= size.width()) { if (completePixmap->width() <= size.width()) {
bitBlt(this, 0, 0, completePixmap); bitBlt(this, 0, 0, completePixmap);
@ -127,7 +127,7 @@ void WaInfo::pixmapChange()
int x = 0; int x = 0;
int n=infoString ? strlen(infoString) : 0; int n=infoString ? strlen(infoString) : 0;
TQSize size = tqsizeHint(); TQSize size = sizeHint();
completePixmap->resize(TQMAX(n * _WA_TEXT_WIDTH, size.width()), _WA_TEXT_HEIGHT); completePixmap->resize(TQMAX(n * _WA_TEXT_WIDTH, size.width()), _WA_TEXT_HEIGHT);

@ -24,7 +24,7 @@ WaLabel::WaLabel(int mapping) : WaWidget(mapping)
completePixmap = new TQPixmap(); completePixmap = new TQPixmap();
TQSize size = tqsizeHint(); TQSize size = sizeHint();
completePixmap->resize(size.width(), size.height()); completePixmap->resize(size.width(), size.height());
} }

@ -72,8 +72,8 @@ WaSkin::WaSkin() : TQWidget(0, "NoatunWinampSkin"), UserInterface()
createHighLevelElements(); createHighLevelElements();
createButtons(); createButtons();
setMinimumSize(tqsizeHint()); setMinimumSize(sizeHint());
setMaximumSize(tqsizeHint()); setMaximumSize(sizeHint());
KWin::setType(this->winId(), NET::Override); KWin::setType(this->winId(), NET::Override);
setBackgroundMode(NoBackground); setBackgroundMode(NoBackground);
@ -142,7 +142,7 @@ void WaSkin::loadSkin(TQString newSkinDir)
{ {
waSkinManager->loadSkin(newSkinDir); waSkinManager->loadSkin(newSkinDir);
setMinimumSize(tqsizeHint()); setMinimumSize(sizeHint());
if (title_shaded) { if (title_shaded) {
// waSkinModel::load() resets our skin model :( // waSkinModel::load() resets our skin model :(
@ -154,7 +154,7 @@ void WaSkin::loadSkin(TQString newSkinDir)
} }
} }
TQSize WaSkin::tqsizeHint() const TQSize WaSkin::sizeHint() const
{ {
TQRect temp_rect; TQRect temp_rect;
@ -305,7 +305,7 @@ void WaSkin::createHighLevelElements()
waInfo = new WaInfo(); waInfo = new WaInfo();
watqStatus = new WatqStatus(); waStatus = new WaStatus();
waStereo = new WaIndicator(_WA_MAPPING_MONOSTER_STEREO, _WA_SKIN_MONOSTER_STEREO_TRUE, _WA_SKIN_MONOSTER_STEREO_FALSE); waStereo = new WaIndicator(_WA_MAPPING_MONOSTER_STEREO, _WA_SKIN_MONOSTER_STEREO_TRUE, _WA_SKIN_MONOSTER_STEREO_FALSE);
waMono = new WaIndicator(_WA_MAPPING_MONOSTER_MONO, _WA_SKIN_MONOSTER_MONO_TRUE, _WA_SKIN_MONOSTER_MONO_FALSE); waMono = new WaIndicator(_WA_MAPPING_MONOSTER_MONO, _WA_SKIN_MONOSTER_MONO_TRUE, _WA_SKIN_MONOSTER_MONO_FALSE);
@ -337,7 +337,7 @@ void WaSkin::setChannels(int val)
void WaSkin::shade() { void WaSkin::shade() {
waSkinModel->setSkinModel(WA_MODEL_WINDOWSHADE); waSkinModel->setSkinModel(WA_MODEL_WINDOWSHADE);
setMinimumSize(tqsizeHint()); setMinimumSize(sizeHint());
setMask(*windowRegion->mainWindowShadeMask()); setMask(*windowRegion->mainWindowShadeMask());
title_shaded = true; title_shaded = true;
@ -346,7 +346,7 @@ void WaSkin::shade() {
void WaSkin::unshade() { void WaSkin::unshade() {
waSkinModel->setSkinModel(WA_MODEL_NORMAL); waSkinModel->setSkinModel(WA_MODEL_NORMAL);
setMinimumSize(tqsizeHint()); setMinimumSize(sizeHint());
setMask(*windowRegion->mainWindowMask()); setMask(*windowRegion->mainWindowMask());
title_shaded = false; title_shaded = false;
@ -558,9 +558,9 @@ void WaSkin::balanceSetValue(int val)
waInfo->setText(i18n("Balance: Center")); waInfo->setText(i18n("Balance: Center"));
} }
else if (val < 0) { else if (val < 0) {
waInfo->setText(i18n("Balance: %1% Left").tqarg(-val)); waInfo->setText(i18n("Balance: %1% Left").arg(-val));
} else { } else {
waInfo->setText(i18n("Balance: %1% Right").tqarg(val)); waInfo->setText(i18n("Balance: %1% Right").arg(val));
} }
} }
@ -672,14 +672,14 @@ void WaSkin::volumeSliderReleased()
void WaSkin::volumeSetValue(int val) void WaSkin::volumeSetValue(int val)
{ {
if (mVolumePressed) if (mVolumePressed)
waInfo->setText(i18n("Volume: %1%").tqarg(val)); waInfo->setText(i18n("Volume: %1%").arg(val));
napp->player()->setVolume(val); napp->player()->setVolume(val);
} }
void WaSkin::slotPlaying() void WaSkin::slotPlaying()
{ {
watqStatus->settqStatus(STATUS_PLAYING); waStatus->setStatus(STATUS_PLAYING);
if (!napp->playlist()->current()) { if (!napp->playlist()->current()) {
return; return;
@ -710,7 +710,7 @@ void WaSkin::slotPlaying()
void WaSkin::slotStopped() void WaSkin::slotStopped()
{ {
watqStatus->settqStatus(STATUS_STOPPED); waStatus->setStatus(STATUS_STOPPED);
waDigit->setTime(""); waDigit->setTime("");
@ -733,7 +733,7 @@ void WaSkin::slotStopped()
void WaSkin::slotPaused() void WaSkin::slotPaused()
{ {
watqStatus->settqStatus(STATUS_PAUSED); waStatus->setStatus(STATUS_PAUSED);
} }
void WaSkin::keyPressEvent(TQKeyEvent *e) { void WaSkin::keyPressEvent(TQKeyEvent *e) {

@ -33,7 +33,7 @@ class WaMain;
class WaIndicator; class WaIndicator;
class WaTitleBar; class WaTitleBar;
class WaClutterbar; class WaClutterbar;
class WatqStatus; class WaStatus;
class WaJumpSlider; class WaJumpSlider;
class WaVolumeSlider; class WaVolumeSlider;
@ -60,7 +60,7 @@ class WaSkin : public TQWidget, public UserInterface {
void loadSkin(TQString skinDir); void loadSkin(TQString skinDir);
void setChannels(int val); void setChannels(int val);
TQSize tqsizeHint() const; TQSize sizeHint() const;
static TQString defaultSkin(); static TQString defaultSkin();
static WaSkin *instance() { return _waskin_instance; } static WaSkin *instance() { return _waskin_instance; }
@ -159,7 +159,7 @@ class WaSkin : public TQWidget, public UserInterface {
WaLabel *waFreq; WaLabel *waFreq;
WaInfo *waInfo; WaInfo *waInfo;
WatqStatus *watqStatus; WaStatus *waStatus;
WaIndicator *waStereo; WaIndicator *waStereo;
WaIndicator *waMono; WaIndicator *waMono;

@ -70,7 +70,7 @@ void WaSlider::mouseMoveEvent(TQMouseEvent * e)
if (newX < 0) if (newX < 0)
newX = 0; newX = 0;
TQSize size = tqsizeHint(); TQSize size = sizeHint();
int maxX = size.width() - slider_width; int maxX = size.width() - slider_width;
@ -143,7 +143,7 @@ void WaSlider::mouseReleaseEvent(TQMouseEvent *e)
int WaSlider::pixel2Value(int xpos) int WaSlider::pixel2Value(int xpos)
{ {
TQSize size = tqsizeHint(); TQSize size = sizeHint();
int min = abs(minValue); int min = abs(minValue);
int max = abs(maxValue); int max = abs(maxValue);
@ -158,7 +158,7 @@ int WaSlider::pixel2Value(int xpos)
int WaSlider::value2Pixel(int value) int WaSlider::value2Pixel(int value)
{ {
TQSize size = tqsizeHint(); TQSize size = sizeHint();
float min = (float) minValue; float min = (float) minValue;
float max = (float) maxValue; float max = (float) maxValue;
float fmin = min; float fmin = min;

@ -14,16 +14,16 @@
#include "waStatus.h" #include "waStatus.h"
#include "waSkinModel.h" #include "waSkinModel.h"
WatqStatus::WatqStatus() : WaWidget(_WA_MAPPING_PLAYPAUS) WaStatus::WaStatus() : WaWidget(_WA_MAPPING_PLAYPAUS)
{ {
_status = STATUS_STOPPED; _status = STATUS_STOPPED;
} }
WatqStatus::~WatqStatus() WaStatus::~WaStatus()
{ {
} }
void WatqStatus::paintEvent(TQPaintEvent *) void WaStatus::paintEvent(TQPaintEvent *)
{ {
if (_status == STATUS_PLAYING) { if (_status == STATUS_PLAYING) {
paintPixmap(_WA_SKIN_PLAYPAUS_WORK_INDICATOR); paintPixmap(_WA_SKIN_PLAYPAUS_WORK_INDICATOR);

@ -22,15 +22,15 @@
enum status_enum {STATUS_PLAYING, STATUS_STOPPED, STATUS_PAUSED}; enum status_enum {STATUS_PLAYING, STATUS_STOPPED, STATUS_PAUSED};
class WatqStatus : public WaWidget { class WaStatus : public WaWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
WatqStatus(); WaStatus();
~WatqStatus(); ~WaStatus();
void settqStatus(status_enum status) { _status = status; update(); } void setStatus(status_enum status) { _status = status; update(); }
status_enum status() const { return _status; } status_enum status() const { return _status; }
private: private:

@ -41,7 +41,7 @@ void WaWidget::paintPixmap(int pixmap_mapping, int argument, int x, int y) {
WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), x, y); WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), x, y);
} }
TQSize WaWidget::tqsizeHint() { TQSize WaWidget::sizeHint() {
return WaSkinModel::instance()->getMapGeometry(mapping).size(); return WaSkinModel::instance()->getMapGeometry(mapping).size();
} }

@ -11,7 +11,7 @@ public:
WaWidget(int mapping); WaWidget(int mapping);
virtual ~WaWidget(); virtual ~WaWidget();
TQSize tqsizeHint(); TQSize sizeHint();
void paintPixmap(int wa_mapping); void paintPixmap(int wa_mapping);
void paintPixmap(int wa_mapping, int number); void paintPixmap(int wa_mapping, int number);

@ -2,7 +2,7 @@
#include <klocale.h> #include <klocale.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqpixmap.h> #include <tqpixmap.h>
#include <kglobal.h> #include <kglobal.h>
@ -29,7 +29,7 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
"style", "style",
TQT_TQOBJECT(parent)) TQT_TQOBJECT(parent))
{ {
// Make a token horizontal tqlayout box // Make a token horizontal layout box
vbox = new TQVBoxLayout(this); vbox = new TQVBoxLayout(this);
vbox->setSpacing( 6 ); vbox->setSpacing( 6 );
vbox->setMargin( 0 ); vbox->setMargin( 0 );
@ -163,7 +163,7 @@ void WinSkinConfig::remove()
// Ask the user first // Ask the user first
if( KMessageBox::warningContinueCancel( this, if( KMessageBox::warningContinueCancel( this,
i18n("<qt>Are you sure you want to remove the <b>%1</b> skin?</qt>").tqarg( skin_list->currentText() ), TQString(), KStdGuiItem::del() ) i18n("<qt>Are you sure you want to remove the <b>%1</b> skin?</qt>").arg( skin_list->currentText() ), TQString(), KStdGuiItem::del() )
== KMessageBox::Continue ) { == KMessageBox::Continue ) {
mWaSkinManager->removeSkin( skin_list->currentText() ); mWaSkinManager->removeSkin( skin_list->currentText() );

Loading…
Cancel
Save