Rename obsolete tq methods to standard names

pull/1/head
Timothy Pearson 13 years ago
parent dc07846059
commit d4ad381455

@ -53,11 +53,11 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
setCaption(i18n("aRts Module Execution"));
maintqlayout = new TQVBoxLayout(this);
mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..."
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -65,7 +65,7 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
captionlabel->setText(TQString(" ")+i18n("Synthesis running...")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
min_size(captionlabel);
maintqlayout->addWidget(captionlabel);
mainlayout->addWidget(captionlabel);
cpuusagelabel = new TQLabel(this);
cpuusagelabel->setText(i18n("CPU usage: unknown"));
@ -78,41 +78,41 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
cpuusagetimer->start( 2000, false );
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);
maintqlayout->addWidget(sep);
maintqlayout->addSpacing(5);
mainlayout->addWidget(sep);
mainlayout->addSpacing(5);
// sliders, controlpanels
slidertqlayout = new TQVBoxLayout;
maintqlayout->addLayout(slidertqlayout);
sliderlayout = new TQVBoxLayout;
mainlayout->addLayout(sliderlayout);
#if 0 /* PORT */
this->GUIServer = GUIServer;
GUIServer->setGlobalParent(this);
GUIServer->setGlobalLayout(slidertqlayout);
GUIServer->setGlobalLayout(sliderlayout);
#endif
// hruler below the slidertqlayout
// hruler below the sliderlayout
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
sep = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(sep);
maintqlayout->addSpacing(5);
mainlayout->addWidget(sep);
mainlayout->addSpacing(5);
// buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout);
maintqlayout->addSpacing(5);
TQHBoxLayout *buttonlayout = new TQHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5);
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
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());
connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->tqlayout();
bbox->layout();
//min_size(bbox);
buttontqlayout->addWidget(bbox);
buttontqlayout->addSpacing(5);
buttonlayout->addWidget(bbox);
buttonlayout->addSpacing(5);
// maintqlayout->freeze();
// mainlayout->freeze();
}
void ExecDlg::start()
{
maintqlayout->freeze();
mainlayout->freeze();
}
void ExecDlg::guiServerTick()

@ -35,7 +35,7 @@ class ExecDlg :public TQDialog {
public:
TQTimer *cpuusagetimer;
TQLabel *cpuusagelabel;
TQVBoxLayout *maintqlayout,*slidertqlayout;
TQVBoxLayout *mainlayout,*sliderlayout;
ExecutableStructure *structure;
void start();

@ -45,12 +45,12 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
{
setCaption(i18n("aRts: Structureport View"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this);
//TQHBoxLayout *contentstqlayout = new TQHBoxLayout;
TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
//TQHBoxLayout *contentslayout = new TQHBoxLayout;
// object type
/*
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
TQLabel *objectlabel = new TQLabel(this);
TQFont labelfont(objectlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -58,20 +58,20 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" "));
objectlabel->setAlignment(AlignCenter);
min_size(objectlabel);
maintqlayout->addWidget(objectlabel);
mainlayout->addWidget(objectlabel);
*/
// port description
/*
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
TQLabel *portlabel = new TQLabel(this);
labelfont.setPointSize(labelfont.pointSize()*4/5);
portlabel->setFont(labelfont);
portlabel->setText(i18n("Port description: ")+ port->description);
min_size(portlabel);
portlabel->setAlignment(AlignCenter);
maintqlayout->addWidget(portlabel);
mainlayout->addWidget(portlabel);
int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width());
@ -80,11 +80,11 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler);
maintqlayout->addSpacing(5);
maintqlayout->addLayout(contentstqlayout);
mainlayout->addWidget(ruler);
mainlayout->addSpacing(5);
mainlayout->addLayout(contentslayout);
*/
// list
@ -93,23 +93,23 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
update();
listbox->setMinimumSize(340,400);
maintqlayout->addWidget(listbox);
mainlayout->addWidget(listbox);
connect( listbox, TQT_SIGNAL( doubleClicked ( TQListBoxItem *)), this,
TQT_SLOT(accept()));
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2);
mainlayout->addWidget(ruler2);
// buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout);
maintqlayout->addSpacing(5);
TQHBoxLayout *buttonlayout = new TQHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5);
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
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());
connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
bbox->tqlayout();
bbox->layout();
//min_size(bbox);
buttontqlayout->addWidget(bbox);
buttontqlayout->addSpacing(5);
buttonlayout->addWidget(bbox);
buttonlayout->addSpacing(5);
//maintqlayout->activate();
maintqlayout->freeze();
//mainlayout->activate();
mainlayout->freeze();
}
string InterfaceDlg::interfaceName()

@ -46,12 +46,12 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
setCaption(i18n("aRts: Structureport View"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this);
//TQHBoxLayout *contentstqlayout = new TQHBoxLayout;
TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
//TQHBoxLayout *contentslayout = new TQHBoxLayout;
// object type
/*
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
TQLabel *objectlabel = new TQLabel(this);
TQFont labelfont(objectlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -59,20 +59,20 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" "));
objectlabel->setAlignment(AlignCenter);
min_size(objectlabel);
maintqlayout->addWidget(objectlabel);
mainlayout->addWidget(objectlabel);
*/
// port description
/*
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
TQLabel *portlabel = new TQLabel(this);
labelfont.setPointSize(labelfont.pointSize()*4/5);
portlabel->setFont(labelfont);
portlabel->setText(i18n("Port description: ")+ port->description);
min_size(portlabel);
portlabel->setAlignment(AlignCenter);
maintqlayout->addWidget(portlabel);
mainlayout->addWidget(portlabel);
int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width());
@ -81,11 +81,11 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler);
maintqlayout->addSpacing(5);
maintqlayout->addLayout(contentstqlayout);
mainlayout->addWidget(ruler);
mainlayout->addSpacing(5);
mainlayout->addLayout(contentslayout);
*/
// list
@ -94,21 +94,21 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
update();
listbox->setMinimumSize(100,200);
maintqlayout->addWidget(listbox);
mainlayout->addWidget(listbox);
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2);
mainlayout->addWidget(ruler2);
// buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout);
maintqlayout->addSpacing(5);
TQHBoxLayout *buttonlayout = new TQHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5);
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
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"));
connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
*/
bbox->tqlayout();
bbox->layout();
//min_size(bbox);
buttontqlayout->addWidget(bbox);
buttontqlayout->addSpacing(5);
buttonlayout->addWidget(bbox);
buttonlayout->addSpacing(5);
//maintqlayout->activate();
maintqlayout->freeze();
//mainlayout->activate();
mainlayout->freeze();
}
void PortPosDlg::raise()

@ -44,11 +44,11 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
{
setCaption(i18n("Retrieve Structure From Server"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this);
TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..."
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -56,14 +56,14 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
captionlabel->setText(TQString(" ")+i18n("Published structures")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
min_size(captionlabel);
maintqlayout->addWidget(captionlabel);
mainlayout->addWidget(captionlabel);
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2);
maintqlayout->addSpacing(5);
mainlayout->addWidget(ruler2);
mainlayout->addSpacing(5);
// listwidget
@ -85,23 +85,23 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
listbox->insertItem((*ni).c_str());
#endif
maintqlayout->addWidget(listbox);
mainlayout->addWidget(listbox);
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler);
maintqlayout->addSpacing(5);
mainlayout->addWidget(ruler);
mainlayout->addSpacing(5);
// buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout);
maintqlayout->addSpacing(5);
TQHBoxLayout *buttonlayout = new TQHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5);
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
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());
connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->tqlayout();
bbox->layout();
buttontqlayout->addWidget(bbox);
buttontqlayout->addSpacing(5);
buttonlayout->addWidget(bbox);
buttonlayout->addSpacing(5);
maintqlayout->freeze();
mainlayout->freeze();
}
TQString RetrieveDlg::result()

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

@ -32,12 +32,12 @@ class KArtsWidgetPrivate;
/**
* 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
* type into a tqlayout, you can do so using this code
* type into a layout, you can do so using this code
*
* <pre>
* Arts::Widget widget = ...get widget from somewhere...;
* KArtsWidget *w = new KArtsWidget(widget, this);
* tqlayout->addWidget(w);
* layout->addWidget(w);
* </pre>
*
* In line 2 of the code, the "this" is the parent widget (which is usually

@ -85,11 +85,11 @@ void KLayoutBox_Separator::paintEvent( TQPaintEvent* ) {
TQPainter p( this );
TQStyle::SFlags flags = TQStyle::Style_Default;
if ( width() < height() ) flags |= TQStyle::Style_Horizontal;
tqstyle().tqdrawPrimitive( TQStyle::PE_Splitter, &p, rect(), colorGroup(), flags );
style().tqdrawPrimitive( TQStyle::PE_Splitter, &p, rect(), colorGroup(), flags );
}
TQSize KLayoutBox_Separator::minimumSizeHint() const {
int wh = tqstyle().pixelMetric( TQStyle::PM_SplitterWidth, this );
int wh = style().pixelMetric( TQStyle::PM_SplitterWidth, this );
return TQSize( wh, wh );
}

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

@ -54,7 +54,7 @@ private:
TQBoxLayout *_layout;
TQFrame *_titlebar;
TQBoxLayout *_titlebartqlayout;
TQBoxLayout *_titlebarlayout;
HandleDrag *_drag;
ShowButton *_showbutton;
OwnButton *_ownbutton;
@ -88,7 +88,7 @@ public:
TQPainter p( this );
TQStyle::SFlags flags = TQStyle::Style_Default;
if( width() < height() ) flags |= TQStyle::Style_Horizontal;
tqstyle().tqdrawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags );
style().tqdrawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags );
}
signals:
void clicked();
@ -152,7 +152,7 @@ public slots:
}
public:
TQSize minimumSizeHint() const {
int wh = tqstyle().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
int wh = style().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
return TQSize( wh, wh );
}
TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); }
@ -188,7 +188,7 @@ public slots:
}
public:
TQSize minimumSizeHint() const {
int wh = tqstyle().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
int wh = style().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
return TQSize( wh, wh );
}
TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); }

@ -458,7 +458,7 @@ void KPoti::drawContents( TQPainter * p )
dbp.drawPixmap( d->buttonRect, d->bgPixmap( colorGroup() ) );
if( hasFocus() )
tqstyle().tqdrawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, colorGroup() );
style().tqdrawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, colorGroup() );
paintPoti( &dbp );
dbp.end();

@ -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."));
setCustomMenu(p->menu);
p->tqlayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
p->tqlayout->setSpacing( 2 );
p->layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
p->layout->setSpacing( 2 );
if( p->barts ) {
p->vu = Arts::StereoVolumeControlGui( p->volume );
p->vu.label().fontsize( 8 );
p->vuw = new KArtsWidget( p->vu, this );
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;
}
@ -93,7 +93,7 @@ kdDebug()<<k_funcinfo<<endl;
int ArtsControlApplet::widthForHeight( int h ) const {
kdDebug()<<"ArtsControlApplet::widthForHeight( int "<<h<<" )"<<endl;
return p->tqlayout->sizeHint().width();
return p->layout->sizeHint().width();
}
int ArtsControlApplet::heightForWidth( int w ) const {
@ -122,12 +122,12 @@ kdDebug()<<k_funcinfo<<" position()="<<position()<<endl;
{
case pTop:
case pBottom:
p->tqlayout->setDirection( TQBoxLayout::LeftToRight );
p->layout->setDirection( TQBoxLayout::LeftToRight );
if ( p->barts ) p->vu.direction( Arts::LeftToRight );
break;
case pRight:
case pLeft:
p->tqlayout->setDirection( TQBoxLayout::TopToBottom );
p->layout->setDirection( TQBoxLayout::TopToBottom );
if ( p->barts ) p->vu.direction( Arts::TopToBottom );
break;
default: break;
@ -140,23 +140,23 @@ kdDebug() << k_funcinfo << endl;
svinline = new FFTScopeView( arts->server(), _parent );
svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( TQFrame::Panel|TQFrame::Sunken );
connect( svinline, TQT_SIGNAL( closed() ), this, TQT_SLOT( SVinline() ) );
tqlayout->addWidget( svinline );
layout->addWidget( svinline );
} else {
delete svinline;
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::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::styleFireBars() { vu.left().style( Arts::lmFireBars ); vu.right().style( Arts::lmFireBars ); _parent->supdatetqlayout(); }
void ArtsControlAppletPrivate::styleLineBars() { vu.left().style( Arts::lmLineBars ); vu.right().style( Arts::lmLineBars ); _parent->supdatetqlayout(); }
void ArtsControlAppletPrivate::styleLEDs() { vu.left().style( Arts::lmLEDs ); vu.right().style( Arts::lmLEDs ); _parent->supdatetqlayout(); }
void ArtsControlAppletPrivate::styleAnalog() { vu.left().style( Arts::lmAnalog ); vu.right().style( Arts::lmAnalog ); _parent->supdatetqlayout(); }
void ArtsControlAppletPrivate::styleSmall() { vu.left().style( Arts::lmSmall ); vu.right().style( Arts::lmSmall ); _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->supdatelayout(); }
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->supdatelayout(); }
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->supdatelayout(); }
// vim: sw=4 ts=4
#include "artscontrolapplet.moc"

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

@ -52,7 +52,7 @@ private:
ArtsControlApplet *_parent;
ArtsActions* _artsactions;
public:
TQBoxLayout *tqlayout;
TQBoxLayout *layout;
KArtsServer *arts;
KArtsDispatcher *dispatcher;
Arts::StereoVolumeControl volume;

@ -72,13 +72,13 @@ void Gui_AUDIO_MANAGER::widgetDestroyed(TQWidget *widget)
}
#endif
void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*tqlayout*/)
void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*layout*/)
{
/************************************************************************
* From Gui_INSTRUMENT_MAPPER:
*
* 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).
*
* 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
************************************************************************/
TQVBoxLayout *maintqlayout = new TQVBoxLayout(parent);
/*TQHBoxLayout *contentstqlayout = new TQHBoxLayout;*/
TQVBoxLayout *mainlayout = new TQVBoxLayout(parent);
/*TQHBoxLayout *contentslayout = new TQHBoxLayout;*/
// list
@ -106,10 +106,10 @@ void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*tqlayout*/)
TQObject::connect(listview,TQT_SIGNAL(executed(TQListViewItem *)),proxy,
TQT_SLOT(edit(TQListViewItem *)));
maintqlayout->addWidget(listview);
mainlayout->addWidget(listview);
maintqlayout->activate();
//maintqlayout->freeze();
mainlayout->activate();
//mainlayout->freeze();
ParentWidget = parent;
}

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

@ -48,11 +48,11 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
{
setCaption(i18n("Choose Bus"));
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this);
TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..."
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -60,15 +60,15 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
captionlabel->setText(TQString(" ")+i18n("Available busses:")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
min_size(captionlabel);
maintqlayout->addWidget(captionlabel);
mainlayout->addWidget(captionlabel);
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2);
mainlayout->addWidget(ruler2);
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
// listwidget
@ -89,41 +89,41 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
if( listbox->count() > 0 )
listbox->setCurrentItem( 0 );
maintqlayout->addWidget(listbox);
mainlayout->addWidget(listbox);
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler);
maintqlayout->addSpacing(5);
mainlayout->addWidget(ruler);
mainlayout->addSpacing(5);
// new bus lineedit
TQBoxLayout * tqlayout2 = new TQHBoxLayout( maintqlayout );
//maintqlayout->addLayout( tqlayout2 );
TQBoxLayout * layout2 = new TQHBoxLayout( mainlayout );
//mainlayout->addLayout( layout2 );
TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this );
tqlayout2->addWidget( newbuslabel );
layout2->addWidget( newbuslabel );
lineedit = new KLineEdit( this );
connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) );
tqlayout2->addWidget( lineedit );
layout2->addWidget( lineedit );
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler3 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler3);
mainlayout->addWidget(ruler3);
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
// buttons
maintqlayout->addSpacing(5);
TQHBoxLayout *buttontqlayout = new TQHBoxLayout( maintqlayout );
//maintqlayout->addLayout(buttontqlayout);
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
TQHBoxLayout *buttonlayout = new TQHBoxLayout( mainlayout );
//mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5);
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -136,12 +136,12 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
bbox->tqlayout();
bbox->layout();
buttontqlayout->addWidget(bbox);
buttontqlayout->addSpacing(5);
buttonlayout->addWidget(bbox);
buttonlayout->addSpacing(5);
maintqlayout->freeze();
mainlayout->freeze();
}
TQString ChooseBusDlg::result()

@ -112,13 +112,13 @@ void PeakBar::setValue(float f) {
PeakLevelMeters::PeakLevelMeters(TQWidget *parent):
StereoLevelMeter(parent), left(this), right(this), scaleView(this)
{
TQBoxLayout *tqlayout= new TQHBoxLayout(this);
tqlayout->addWidget(&left);
// tqlayout->setStretchFactor(&left, 0);
tqlayout->addWidget(&right);
// tqlayout->setStretchFactor(&right, 0);
tqlayout->addWidget(&scaleView);
// tqlayout->setStretchFactor(&scaleView, 0);
TQBoxLayout *layout= new TQHBoxLayout(this);
layout->addWidget(&left);
// layout->setStretchFactor(&left, 0);
layout->addWidget(&right);
// layout->setStretchFactor(&right, 0);
layout->addWidget(&scaleView);
// layout->setStretchFactor(&scaleView, 0);
left.setLineWidth(2);
right.setLineWidth(2);
scaleView.setScaleMargins(right.frameWidth());
@ -226,9 +226,9 @@ void LedMeter::setValue(float f)
StereoLedMeters::StereoLedMeters(TQWidget *parent)
: StereoLevelMeter(parent), left(this), right(this)
{
TQBoxLayout *tqlayout= new TQHBoxLayout(this);
tqlayout->addWidget(&left);
tqlayout->addWidget(&right);
TQBoxLayout *layout= new TQHBoxLayout(this);
layout->addWidget(&left);
layout->addWidget(&right);
}
void StereoLedMeters::setValues(float leftVal, float rightVal) {

@ -66,11 +66,11 @@ static TQStringList listFiles(TQString directory, TQString extension)
MidiInstDlg::MidiInstDlg(TQWidget *parent)
:TQDialog(parent,"instrument",TRUE)
{
TQVBoxLayout *maintqlayout = new TQVBoxLayout(this);
TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: title
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -78,14 +78,14 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
captionlabel->setText(TQString(" ")+i18n("Instrument")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
//min_size(captionlabel);
maintqlayout->addWidget(captionlabel);
mainlayout->addWidget(captionlabel);
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2);
maintqlayout->addSpacing(5);
mainlayout->addWidget(ruler2);
mainlayout->addSpacing(5);
// combobox
@ -116,23 +116,23 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
//kdDebug() << "inserted map: " << modname.mid(prefix.length()) << endl;
}
maintqlayout->addWidget(box);
mainlayout->addWidget(box);
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler);
maintqlayout->addSpacing(5);
mainlayout->addWidget(ruler);
mainlayout->addSpacing(5);
// buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout);
maintqlayout->addSpacing(5);
TQHBoxLayout *buttonlayout = new TQHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5);
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
@ -141,12 +141,12 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->tqlayout();
bbox->layout();
buttontqlayout->addWidget(bbox);
buttontqlayout->addSpacing(5);
buttonlayout->addWidget(bbox);
buttonlayout->addSpacing(5);
maintqlayout->freeze();
mainlayout->freeze();
}
TQCString MidiInstDlg::filename()

@ -34,11 +34,11 @@
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
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
TQLabel *captionlabel = new TQLabel(this);
TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
@ -46,14 +46,14 @@ MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *titl
captionlabel->setText(i18n("OSS MIDI Port"));
captionlabel->setAlignment(AlignCenter);
//min_size(captionlabel);
maintqlayout->addWidget(captionlabel);
mainlayout->addWidget(captionlabel);
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler2);
maintqlayout->addSpacing(5);
mainlayout->addWidget(ruler2);
mainlayout->addSpacing(5);
// editwidget
@ -61,23 +61,23 @@ MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *titl
edit->setText(oldname);
//min_size(edit);
maintqlayout->addWidget(edit);
mainlayout->addWidget(edit);
// hruler
maintqlayout->addSpacing(5);
mainlayout->addSpacing(5);
KSeparator *ruler = new KSeparator( KSeparator::HLine, this);
maintqlayout->addWidget(ruler);
maintqlayout->addSpacing(5);
mainlayout->addWidget(ruler);
mainlayout->addSpacing(5);
// buttons
TQHBoxLayout *buttontqlayout = new TQHBoxLayout;
maintqlayout->addSpacing(5);
maintqlayout->addLayout(buttontqlayout);
maintqlayout->addSpacing(5);
TQHBoxLayout *buttonlayout = new TQHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
buttontqlayout->addSpacing(5);
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
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->setDefault( true );
bbox->tqlayout();
bbox->layout();
buttontqlayout->addWidget(bbox);
buttontqlayout->addSpacing(5);
buttonlayout->addWidget(bbox);
buttonlayout->addSpacing(5);
maintqlayout->freeze();
mainlayout->freeze();
}
const char *MidiPortDlg::device()

@ -96,7 +96,7 @@ public:
virtual bool canReload() const { return true; }
public slots:
virtual void paste() { decode(kapp->tqclipboard()->data()); }
virtual void paste() { decode(kapp->clipboard()->data()); }
virtual void clear();
void slotCheckCache();

@ -65,7 +65,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout3</cstring>
<cstring>layout3</cstring>
</property>
<vbox>
<property name="name">
@ -73,7 +73,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout3</cstring>
<cstring>layout3</cstring>
</property>
<hbox>
<property name="name">

@ -34,10 +34,10 @@ struct CoverPopup : public TQWidget
CoverPopup(const TQPixmap &image, const TQPoint &p) :
TQWidget(0, 0, WDestructiveClose | WX11BypassWM)
{
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
TQHBoxLayout *layout = new TQHBoxLayout(this);
TQLabel *label = new TQLabel(this);
tqlayout->addWidget(label);
layout->addWidget(label);
label->setFrameStyle(TQFrame::Box | TQFrame::Raised);
label->setLineWidth(1);
label->setPixmap(image);

@ -24,7 +24,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout4</cstring>
<cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@ -48,7 +48,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout3</cstring>
<cstring>layout3</cstring>
</property>
<vbox>
<property name="name">

@ -232,7 +232,7 @@ FileRenamerWidget::FileRenamerWidget(TQWidget *parent) :
m_exampleText->setPaletteBackgroundColor(temp->paletteBackgroundColor());
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.
@ -410,7 +410,7 @@ bool FileRenamerWidget::removeRow(unsigned id)
if(m_rows[id].position > 0)
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.
delete m_folderSwitches[checkboxPosition]->parent();
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
// 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);
tqlayout->insertWidget(2 * newPos, l);
layout->remove(l);
layout->insertWidget(2 * newPos, l);
// Move the top item two spaces in the opposite direction, for a similar
// reason.
tqlayout->remove(w);
tqlayout->insertWidget(2 * pos, w);
tqlayout->invalidate();
layout->remove(w);
layout->insertWidget(2 * pos, w);
layout->invalidate();
TQTimer::singleShot(0, this, TQT_SLOT(exampleTextChanged()));
}
@ -778,7 +778,7 @@ void FileRenamerWidget::insertCategory()
// Set its down button to be disabled.
m_rows[id].downButton->setEnabled(false);
m_mainFrame->tqlayout()->invalidate();
m_mainFrame->layout()->invalidate();
m_mainView->update();
// Now update according to the code in loadConfig().

@ -61,7 +61,7 @@ struct Row
/**
* 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
* 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
* not necessarily constant).
*/
@ -186,7 +186,7 @@ private:
/**
* 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();
@ -336,7 +336,7 @@ private:
/**
* 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
* 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.
*
* @param id the identifier of the row to move
@ -427,14 +427,14 @@ private slots:
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.
*/
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.
*/

@ -29,7 +29,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout4</cstring>
<cstring>layout4</cstring>
</property>
<grid>
<property name="name">
@ -68,7 +68,7 @@
</widget>
<widget class="TQLayoutWidget" row="2" column="1">
<property name="name">
<cstring>tqlayout3</cstring>
<cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@ -216,7 +216,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout2</cstring>
<cstring>layout2</cstring>
</property>
<hbox>
<property name="name">

@ -29,17 +29,17 @@ FileRenamerTagOptions::FileRenamerTagOptions(TQWidget *parent,
const TagRenamerOptions &options) :
FileRenamerTagOptionsBase(parent), m_options(options)
{
tqlayout()->setSpacing(KDialog::spacingHint());
tqlayout()->setMargin(0);
layout()->setSpacing(KDialog::spacingHint());
layout()->setMargin(0);
m_emptyTagGroup->tqlayout()->setSpacing(KDialog::spacingHint());
m_trackGroup->tqlayout()->setSpacing(KDialog::spacingHint());
m_emptyTagGroup->layout()->setSpacing(KDialog::spacingHint());
m_trackGroup->layout()->setSpacing(KDialog::spacingHint());
m_emptyValueLayout->setSpacing(KDialog::spacingHint());
m_exampleLayout->setSpacing(KDialog::spacingHint());
m_spinLayout->setSpacing(KDialog::spacingHint());
m_widthLayout->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)
m_trackGroup->hide();

@ -58,9 +58,9 @@ NowPlaying::NowPlaying(TQWidget *parent, PlaylistCollection *collection, const c
CollectionList::instance()->addObserver(&m_observer);
tqlayout()->setMargin(5);
tqlayout()->setSpacing(3);
setFixedHeight(imageSize + 2 + tqlayout()->margin() * 2);
layout()->setMargin(5);
layout()->setSpacing(3);
setFixedHeight(imageSize + 2 + layout()->margin() * 2);
setStretchFactor(new CoverItem(this), 0);
setStretchFactor(new TrackItem(this), 2);
@ -109,7 +109,7 @@ CoverItem::CoverItem(NowPlaying *parent) :
TQLabel(parent, "CoverItem"),
NowPlayingItem(parent)
{
setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2);
setFixedHeight(parent->height() - parent->layout()->margin() * 2);
setFrameStyle(Box | Plain);
setLineWidth(1);
setMargin(1);
@ -218,17 +218,17 @@ TrackItem::TrackItem(NowPlaying *parent) :
TQWidget(parent, "TrackItem"),
NowPlayingItem(parent)
{
setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2);
setFixedHeight(parent->height() - parent->layout()->margin() * 2);
setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
TQVBoxLayout *tqlayout = new TQVBoxLayout(this);
TQVBoxLayout *layout = new TQVBoxLayout(this);
m_label = new LinkLabel(this);
m_label->setLinkUnderline(false);
tqlayout->addStretch();
tqlayout->addWidget(m_label);
tqlayout->addStretch();
layout->addStretch();
layout->addWidget(m_label);
layout->addStretch();
connect(m_label, TQT_SIGNAL(linkClicked(const TQString &)), this,
TQT_SLOT(slotOpenLink(const TQString &)));
@ -291,7 +291,7 @@ HistoryItem::HistoryItem(NowPlaying *parent) :
LinkLabel(parent, "HistoryItem"),
NowPlayingItem(parent)
{
setFixedHeight(parent->height() - parent->tqlayout()->margin() * 2);
setFixedHeight(parent->height() - parent->layout()->margin() * 2);
setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
setLinkUnderline(false);
setText(TQString("<b>%1</b>").arg(i18n("History")));

@ -727,12 +727,12 @@ void Playlist::synchronizePlayingItems(const PlaylistList &sources, bool setMast
void Playlist::copy()
{
kapp->tqclipboard()->setData(dragObject(0), TQClipboard::Clipboard);
kapp->clipboard()->setData(dragObject(0), TQClipboard::Clipboard);
}
void Playlist::paste()
{
decode(kapp->tqclipboard()->data(), static_cast<PlaylistItem *>(currentItem()));
decode(kapp->clipboard()->data(), static_cast<PlaylistItem *>(currentItem()));
}
void Playlist::clear()

@ -208,7 +208,7 @@ void PlaylistBox::duplicate()
void PlaylistBox::paste()
{
Item *i = static_cast<Item *>(currentItem());
decode(kapp->tqclipboard()->data(), i);
decode(kapp->clipboard()->data(), i);
}
////////////////////////////////////////////////////////////////////////////////

@ -30,7 +30,7 @@ class PlaylistInterface;
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.
*
* This class serves as a "mediator" (see "Design Patterns") between the JuK

@ -118,7 +118,7 @@ protected:
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)

@ -90,7 +90,7 @@ private:
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
// order to create them in. @p file is used to grab the cover.
TQVBox *createPopupLayout(TQWidget *parent, const FileHandle &file);

@ -481,16 +481,16 @@ void TagEditor::setupLayout()
static const int horizontalSpacing = 12;
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 *rightColumnLayout = new TQVBoxLayout(tqlayout, verticalSpacing);
TQVBoxLayout *leftColumnLayout = new TQVBoxLayout(layout, verticalSpacing);
TQVBoxLayout *rightColumnLayout = new TQVBoxLayout(layout, verticalSpacing);
tqlayout->setStretchFactor(leftColumnLayout, 2);
tqlayout->setStretchFactor(rightColumnLayout, 3);
layout->setStretchFactor(leftColumnLayout, 2);
layout->setStretchFactor(rightColumnLayout, 3);
//////////////////////////////////////////////////////////////////////////////
// put stuff in the left column -- all of the field names are class wide
@ -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;
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());
if(tqlayout->direction() == TQBoxLayout::LeftToRight) {
tqlayout->addWidget(iconLabel);
tqlayout->addWidget(label);
tqlayout->addWidget(item);
tqlayout->addWidget(enableBox);
if(layout->direction() == TQBoxLayout::LeftToRight) {
layout->addWidget(iconLabel);
layout->addWidget(label);
layout->addWidget(item);
layout->addWidget(enableBox);
}
else {
TQHBoxLayout *l = new TQHBoxLayout(tqlayout);
TQHBoxLayout *l = new TQHBoxLayout(layout);
l->addWidget(iconLabel);
l->addWidget(label);
@ -745,7 +745,7 @@ void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlay
l->addWidget(enableBox);
l->setStretchFactor(enableBox, 0);
tqlayout->addWidget(item);
layout->addWidget(item);
}
enableBox->hide();

@ -67,10 +67,10 @@ private:
void save(const PlaylistItemList &list);
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.
*/
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.

@ -80,10 +80,10 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
sliderBox->setFocusPolicy(TQ_ClickFocus);
sliderBox->setAcceptDrops(true);
TQHBoxLayout *tqlayout = new TQHBoxLayout(sliderBox);
tqlayout->setSpacing(KDialog::spacingHint());
tqlayout->setMargin(0);
tqlayout->setAutoAdd(true);
TQHBoxLayout *layout = new TQHBoxLayout(sliderBox);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(0);
layout->setAutoAdd(true);
playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQT_SLOT(play()), sliderBox);
pauseButton = createButton(BarIconSet("player_pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox);

@ -21,7 +21,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout5</cstring>
<cstring>layout5</cstring>
</property>
<hbox>
<property name="name">
@ -267,7 +267,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout4</cstring>
<cstring>layout4</cstring>
</property>
<hbox>
<property name="name">

@ -140,7 +140,7 @@
</spacer>
<widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>tqlayout2</cstring>
<cstring>layout2</cstring>
</property>
<hbox>
<property name="name">

@ -194,7 +194,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout1</cstring>
<cstring>layout1</cstring>
</property>
<grid>
<property name="name">

@ -214,7 +214,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout2</cstring>
<cstring>layout2</cstring>
</property>
<hbox>
<property name="name">

@ -147,7 +147,7 @@
</widget>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>tqlayout6</cstring>
<cstring>layout6</cstring>
</property>
<hbox>
<property name="name">

@ -117,7 +117,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout15</cstring>
<cstring>layout15</cstring>
</property>
<grid>
<property name="name">

@ -234,7 +234,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout7</cstring>
<cstring>layout7</cstring>
</property>
<grid>
<property name="name">
@ -488,7 +488,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout9</cstring>
<cstring>layout9</cstring>
</property>
<grid>
<property name="name">

@ -75,7 +75,7 @@ void KTriangleButton::paint( TQPainter *painter )
{
if ( isDown() || isOn() )
{
if ( tqstyle().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
qDrawWinButton( painter, 0, 0, width(),
height(), colorGroup(), TRUE );
else
@ -84,7 +84,7 @@ void KTriangleButton::paint( TQPainter *painter )
}
else if ( raised )
{
if ( tqstyle().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle )
qDrawWinButton( painter, 0, 0, width(), height(),
colorGroup(), FALSE );
else

@ -145,10 +145,10 @@ KMixWindow::initPrefDlg()
void
KMixWindow::initWidgets()
{
// Main widget and tqlayout
// Main widget and layout
setCentralWidget( new TQWidget( this, "qt_central_widget" ) );
// Widgets tqlayout
// Widgets layout
widgetsLayout = new TQVBoxLayout( centralWidget(), 0, 0, "widgetsLayout" );
widgetsLayout->setResizeMode(TQLayout::Minimum); // works fine
@ -166,7 +166,7 @@ KMixWindow::initWidgets()
connect( m_cMixer, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( showSelectedMixer( int ) ) );
TQToolTip::add( m_cMixer, i18n("Current mixer" ) );
// Add first tqlayout to widgets
// Add first layout to widgets
widgetsLayout->addWidget( mixerNameLayout );
m_wsMixers = new TQWidgetStack( centralWidget(), "MixerWidgetStack" );
@ -522,11 +522,11 @@ KMixWindow::applyPrefs( KMixPrefDlg *prefDlg )
}
if ( prefDlg->_rbVertical->isChecked() ) {
//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;
}
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_autoStart = prefDlg->m_autoStartChk->isChecked();

@ -76,13 +76,13 @@ KMixerWidget::KMixerWidget( int _id, Mixer *mixer, const TQString &mixerName,
{
// No mixer found
// !! Fix this: This is actually never shown!
TQBoxLayout *tqlayout = new TQHBoxLayout( this );
TQBoxLayout *layout = new TQHBoxLayout( this );
TQString s = i18n("Invalid mixer");
if ( !mixerName.isEmpty() )
s.append(" \"").append(mixerName).append("\"");
TQLabel *errorLabel = new TQLabel( s, this );
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;
}
// create main tqlayout
// create main layout
m_topLayout = new TQVBoxLayout( this, 0, 3, "m_topLayout" );
// Create tabs of input + output + [...]

@ -43,36 +43,36 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent )
// general buttons
m_generalTab = plainPage( /* i18n("&General") */ );
TQBoxLayout *tqlayout = new TQVBoxLayout( m_generalTab );
tqlayout->setSpacing( KDialog::spacingHint() );
TQBoxLayout *layout = new TQVBoxLayout( m_generalTab );
layout->setSpacing( KDialog::spacingHint() );
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"));
m_volumeChk = new TQCheckBox(i18n("Enable system tray &volume control"),
m_generalTab);
tqlayout->addWidget(m_volumeChk);
layout->addWidget(m_volumeChk);
m_showTicks = new TQCheckBox( i18n("Show &tickmarks"), m_generalTab );
tqlayout->addWidget( m_showTicks );
layout->addWidget( m_showTicks );
TQWhatsThis::add(m_showTicks,
i18n("Enable/disable tickmark scales on the sliders"));
m_showLabels = new TQCheckBox( i18n("Show &labels"), m_generalTab );
tqlayout->addWidget( m_showLabels );
layout->addWidget( m_showLabels );
TQWhatsThis::add(m_showLabels,
i18n("Enables/disables description labels above the sliders"));
m_onLogin = new TQCheckBox( i18n("Restore volumes on login"), m_generalTab );
tqlayout->addWidget( m_onLogin );
layout->addWidget( m_onLogin );
m_dockIconMuting = new TQCheckBox(
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 );
numbersGroup->setRadioButtonExclusive(true);
TQLabel* qlbl = new TQLabel( i18n("Volume Values: "), m_generalTab );
@ -91,10 +91,10 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent )
numbersLayout->addStretch();
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"));
TQBoxLayout *orientationLayout = new TQHBoxLayout( tqlayout );
TQBoxLayout *orientationLayout = new TQHBoxLayout( layout );
TQButtonGroup* orientationGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n("Orientation"), m_generalTab );
//orientationLayout->add(orientationGroup);
orientationGroup->setRadioButtonExclusive(true);
@ -112,7 +112,7 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent )
orientationLayout->add(_rbVertical);
orientationLayout->addStretch();
tqlayout->addStretch();
layout->addStretch();
enableButtonSeparator(true);
connect( this, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(apply()) );

@ -225,7 +225,7 @@ void KSmallSlider::paintEvent( TQPaintEvent * )
int sliderPos = positionFromValue( TQRangeControl::value() );
// ------------------------ draw 3d border ---------------------------------------------
tqstyle().tqdrawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TRUE );
style().tqdrawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TRUE );
// ------------------------ draw lower/left part ----------------------------------------

@ -132,7 +132,7 @@ TQSize MDWEnum::sizeHint() const {
return _layout->sizeHint();
}
else {
// tqlayout not (yet) created
// layout not (yet) created
return TQWidget::sizeHint();
}
}

@ -133,7 +133,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
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.
* Even more on the vertical panel applet (see Bug #97667)
if ( _orientation == Qt::Horizontal )
@ -213,36 +213,36 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// --- MUTE LED
if ( showMuteLED ) {
TQBoxLayout *ledtqlayout;
TQBoxLayout *ledlayout;
if ( _orientation == Qt::Vertical ) {
ledtqlayout = new TQHBoxLayout( sliLayout );
ledtqlayout->setAlignment(TQt::AlignVCenter);
ledlayout = new TQHBoxLayout( sliLayout );
ledlayout->setAlignment(TQt::AlignVCenter);
}
else {
ledtqlayout = new TQVBoxLayout( sliLayout );
ledtqlayout->setAlignment(TQt::AlignHCenter);
ledlayout = new TQVBoxLayout( sliLayout );
ledlayout->setAlignment(TQt::AlignHCenter);
}
if( m_mixdevice->hasMute() )
{
ledtqlayout->addStretch();
ledlayout->addStretch();
// create mute LED
m_muteLED = new KLedButton( TQt::green, KLed::On, KLed::Sunken,
KLed::Circular, this, "MuteLED" );
m_muteLED->setFixedSize( TQSize(16, 16) );
m_muteLED->resize( TQSize(16, 16) );
ledtqlayout->addWidget( m_muteLED );
ledlayout->addWidget( m_muteLED );
TQToolTip::add( m_muteLED, i18n( "Mute" ) );
connect( m_muteLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(toggleMuted()) );
m_muteLED->installEventFilter( this );
ledtqlayout->addStretch();
ledlayout->addStretch();
} // has Mute LED
else {
// we don't have a MUTE LED. We create a dummy widget
// !! possibly not neccesary any more (we are layouted)
TQWidget *qw = new TQWidget(this, "Spacer");
qw->setFixedSize( TQSize(16, 16) );
ledtqlayout->addWidget(qw);
ledlayout->addWidget(qw);
qw->installEventFilter( this );
} // has no Mute LED
@ -314,7 +314,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
slider->hide();
number->hide();
}
slinumLayout->addWidget( slider ); // add to tqlayout
slinumLayout->addWidget( slider ); // add to layout
m_sliders.append ( slider ); // add to list
_slidersChids.append(chid); // Remember slider-chid association
connect( slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(volumeChange(int)) );
@ -327,27 +327,27 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
sliLayout->addSpacing( 5 );
// --- LED LAYOUT TO CENTER ---
TQBoxLayout *rectqlayout;
TQBoxLayout *reclayout;
if ( _orientation == Qt::Vertical ) {
rectqlayout = new TQHBoxLayout( sliLayout );
rectqlayout->setAlignment(TQt::AlignVCenter);
reclayout = new TQHBoxLayout( sliLayout );
reclayout->setAlignment(TQt::AlignVCenter);
}
else {
rectqlayout = new TQVBoxLayout( sliLayout );
rectqlayout->setAlignment(TQt::AlignHCenter);
reclayout = new TQVBoxLayout( sliLayout );
reclayout->setAlignment(TQt::AlignHCenter);
}
if( m_mixdevice->isRecordable() ) {
rectqlayout->addStretch();
reclayout->addStretch();
m_recordLED = new KLedButton( TQt::red,
m_mixdevice->isRecSource()?KLed::On:KLed::Off,
KLed::Sunken, KLed::Circular, this, "RecordLED" );
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)));
m_recordLED->installEventFilter( this );
TQToolTip::add( m_recordLED, i18n( "Record" ) );
rectqlayout->addStretch();
reclayout->addStretch();
}
else
{
@ -355,12 +355,12 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// !! possibly not neccesary any more (we are layouted)
TQWidget *qw = new TQWidget(this, "Spacer");
qw->setFixedSize( TQSize(16, 16) );
rectqlayout->addWidget(qw);
reclayout->addWidget(qw);
qw->installEventFilter( this );
} // has no Record LED
} // showRecordLED
tqlayout()->activate();
layout()->activate();
}
@ -438,7 +438,7 @@ MDWSlider::setIcon( int icontype )
kdError(67100) << "Pixmap missing." << endl;
}
tqlayout()->activate();
layout()->activate();
}
bool
@ -514,7 +514,7 @@ MDWSlider::setStereoLinked(bool value)
if( slider && static_cast<TQSlider *>(slider)->tickmarks() )
setTicks( true );
tqlayout()->activate();
layout()->activate();
}
@ -529,7 +529,7 @@ MDWSlider::setLabeled(bool value)
else
m_label->hide();
tqlayout()->activate();
layout()->activate();
}
void
@ -558,7 +558,7 @@ MDWSlider::setTicks( bool ticks )
}
}
tqlayout()->activate();
layout()->activate();
}
void
@ -579,7 +579,7 @@ MDWSlider::setValueStyle( ValueStyle valueStyle )
}
}
}
tqlayout()->activate();
layout()->activate();
}
void
@ -592,7 +592,7 @@ MDWSlider::setIcons(bool value)
else
m_iconLabel->hide();
tqlayout()->activate();
layout()->activate();
}
} // if it has an icon
}
@ -939,7 +939,7 @@ TQSize MDWSlider::sizeHint() const {
return _layout->sizeHint();
}
else {
// tqlayout not (yet) created
// layout not (yet) created
return TQWidget::sizeHint();
}
}

@ -169,7 +169,7 @@ TQSize MDWSwitch::sizeHint() const {
return _layout->sizeHint();
}
else {
// tqlayout not (yet) created
// layout not (yet) created
return TQWidget::sizeHint();
}
}

@ -140,7 +140,7 @@ void ViewApplet::constructionFinished() {
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->sizeHint();
//kdDebug(67100) << "ViewApplet::sizeHint(): NewSize is " << qsz << "\n";
return qsz;

@ -46,9 +46,9 @@
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)
{
TQBoxLayout *tqlayout = new TQHBoxLayout( this );
TQBoxLayout *layout = new TQHBoxLayout( this );
_frame = new TQFrame( this );
tqlayout->addWidget( _frame );
layout->addWidget( _frame );
_frame->setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised );
_frame->setLineWidth( 1 );

@ -134,7 +134,7 @@ TQSize ViewGrid::sizeHint() const {
void ViewGrid::constructionFinished() {
//_layoutMDW->activate();
// do a manual tqlayout
// do a manual layout
configurationUpdate();
}

@ -154,7 +154,7 @@ TQWidget* ViewSurround::add(MixDevice *md)
case MixDevice::SURROUND:
case MixDevice::AC97:
default:
// Add as slider to the tqlayout on the left side
// Add as slider to the layout on the left side
_layoutSliders->add(mdw);
break;
} // switch(type)

@ -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
// 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
// the _layoutEnum, so it might be a sizeHint() or some other subtle tqlayout issue.
// the _layoutEnum, so it might be a sizeHint() or some other subtle layout issue.
_layoutEnum = new TQVBoxLayout(_layoutMDW);
}
init();

@ -87,13 +87,13 @@ KRecConfigGeneral::KRecConfigGeneral( TQWidget* p, const char*, const TQStringLi
_tipofday = new TQCheckBox( i18n( "Show tip of the day at startup" ), this );
connect( _tipofday, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( tipofdaychanged( bool ) ) );
_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 );
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 );
_tmptqlayout->addWidget( _tmplbl );
_layout->addLayout( _tmptqlayout );
_tmplayout->addWidget( _tmplbl );
_layout->addLayout( _tmplayout );
_layout->addStretch( 100 );

@ -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>
* 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>

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

@ -34,7 +34,7 @@
* @see #discChanged(): A disc was inserted or 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 #trackPaused(): A track was paused.
@ -64,12 +64,12 @@ public:
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);
/**
* Pause/resume ptqlayout.
* Pause/resume playout.
*/
void pause();
@ -96,7 +96,7 @@ public:
void setVolume(unsigned volume);
/**
* Stop ptqlayout.
* Stop playout.
*/
void stop();

@ -21,7 +21,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#ifdef libtqunicode
#ifdef libunicode
#include <tqunicode.h>
#endif
@ -155,12 +155,12 @@ void get_data_from_cdtext_pack(
int arr = pack->header_field_id2_tracknumber;
int i;
int language_block;
int tqunicode;
int unicode;
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++)
{
@ -180,7 +180,7 @@ void get_data_from_cdtext_pack(
}
}
}
#ifdef libtqunicode
#ifdef libunicode
else /* doublebytes ;-) */
{
for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i += 2)
@ -203,7 +203,7 @@ void get_data_from_cdtext_pack(
}
#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
}
@ -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]->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,
"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!
cdtext_string* block_encoding_text;

@ -44,7 +44,7 @@ typedef unsigned char cdtext_string[MAX_LENGHT_OF_CDTEXT_STRING];
struct cdtext_info_block {
/* management */
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 -? */
cdtext_string* block_encoding_text;

@ -27,7 +27,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout8</cstring>
<cstring>layout8</cstring>
</property>
<vbox>
<property name="name">
@ -40,7 +40,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout6</cstring>
<cstring>layout6</cstring>
</property>
<hbox>
<property name="name">
@ -128,7 +128,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout7</cstring>
<cstring>layout7</cstring>
</property>
<grid>
<property name="name">
@ -203,7 +203,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout5</cstring>
<cstring>layout5</cstring>
</property>
<grid>
<property name="name">

@ -18,7 +18,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout1</cstring>
<cstring>layout1</cstring>
</property>
<grid>
<property name="name">
@ -276,7 +276,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout2</cstring>
<cstring>layout2</cstring>
</property>
<hbox>
<property name="name">

@ -58,10 +58,10 @@ CDDBModule::CDDBModule(TQWidget *parent, const char *name, const TQStringList &)
addConfig(cfg, widget_);
TQVBoxLayout * tqlayout = new TQVBoxLayout(this, 0);
TQVBoxLayout * layout = new TQVBoxLayout(this, 0);
tqlayout->addWidget(widget_);
tqlayout->addStretch();
layout->addWidget(widget_);
layout->addStretch();
setQuickHelp(i18n("CDDB is used to get information like artist, title and song-names in CD's"));

@ -21,7 +21,7 @@
* Erik Corry's multi-byte dither routines.
*
* 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
* 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

@ -88,24 +88,24 @@ General::General(TQObject *parent)
b->toggle();
}
TQGridLayout *tqlayout = new TQGridLayout(this, 0, KDialog::spacingHint());
tqlayout->setSpacing(KDialog::spacingHint());
TQGridLayout *layout = new TQGridLayout(this, 0, KDialog::spacingHint());
layout->setSpacing(KDialog::spacingHint());
tqlayout->addMultiCellWidget(mLoopList, 0, 0, 0, 1);
tqlayout->addMultiCellWidget(mOneInstance, 2, 2, 0, 1);
tqlayout->addMultiCellWidget(mClearOnOpen, 4, 4, 0, 1);
tqlayout->addMultiCellWidget(mFastVolume, 5, 5, 0, 1);
tqlayout->addMultiCellWidget(mRemaining, 6, 6, 0, 1);
layout->addMultiCellWidget(mLoopList, 0, 0, 0, 1);
layout->addMultiCellWidget(mOneInstance, 2, 2, 0, 1);
layout->addMultiCellWidget(mClearOnOpen, 4, 4, 0, 1);
layout->addMultiCellWidget(mFastVolume, 5, 5, 0, 1);
layout->addMultiCellWidget(mRemaining, 6, 6, 0, 1);
tqlayout->addWidget(titleLabel, 7, 0);
tqlayout->addWidget(mTitleFormat, 7, 1);
layout->addWidget(titleLabel, 7, 0);
layout->addWidget(mTitleFormat, 7, 1);
tqlayout->addWidget(dlsaver, 8, 0);
tqlayout->addWidget(mDlSaver, 8, 1);
layout->addWidget(dlsaver, 8, 0);
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);
}

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

@ -24,7 +24,7 @@
</property>
<widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
<cstring>tqlayout5</cstring>
<cstring>layout5</cstring>
</property>
<grid>
<property name="name">
@ -80,7 +80,7 @@
</spacer>
<widget class="TQLayoutWidget" row="1" column="1">
<property name="name">
<cstring>tqlayout3</cstring>
<cstring>layout3</cstring>
</property>
<vbox>
<property name="name">
@ -238,7 +238,7 @@
</widget>
<widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>tqlayout4</cstring>
<cstring>layout4</cstring>
</property>
<hbox>
<property name="name">

@ -54,35 +54,35 @@ TQMap<TQString, IRPrefs::Command> IRPrefs::s_commands;
IRPrefs::IRPrefs(TQObject *parent)
: CModule(i18n("Infrared Control"), i18n("Configure Infrared Commands"), "remote", parent)
{
TQGridLayout *tqlayout = new TQGridLayout(this, 3, 5, KDialog::marginHint(), KDialog::spacingHint());
tqlayout->setColStretch(1, 1);
TQGridLayout *layout = new TQGridLayout(this, 3, 5, KDialog::marginHint(), KDialog::spacingHint());
layout->setColStretch(1, 1);
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));
tqlayout->addMultiCellWidget(m_commands, 1, 1, 0, 4);
layout->addMultiCellWidget(m_commands, 1, 1, 0, 4);
label = new TQLabel(i18n("&Action:"), this);
tqlayout->addWidget(label, 2, 0);
layout->addWidget(label, 2, 0);
label->setBuddy(m_action = new KComboBox(this));
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->setEnabled(false);
tqlayout->addWidget(m_repeat, 2, 2);
layout->addWidget(m_repeat, 2, 2);
label = new TQLabel(i18n("&Interval:"), this);
tqlayout->addWidget(label, 2, 3);
layout->addWidget(label, 2, 3);
label->setBuddy(m_interval = new KIntSpinBox(this));
m_interval->setMinValue(1);
m_interval->setMaxValue(0xff);
m_interval->setValue(10);
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(m_commands,

@ -174,9 +174,9 @@ KeyzPrefs::KeyzPrefs( TQObject *parent ) :
CModule( i18n("Keyz"), i18n("Shortcut Configuration"), "key_bindings",
parent )
{
TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
TQVBoxLayout *layout = new TQVBoxLayout( this );
m_chooser = new KKeyChooser( Keyz::accel(), this );
tqlayout->addWidget( m_chooser );
layout->addWidget( m_chooser );
}
void KeyzPrefs::save()

@ -11,8 +11,8 @@ Finder::Finder(TQWidget *parent) : KDialogBase(parent, 0, false, i18n("Find"), C
mainWidget->setMinimumWidth(320);
setMainWidget(mainWidget);
TQGridLayout *tqlayout=new TQGridLayout(mainWidget);
tqlayout->setSpacing(KDialog::spacingHint());
TQGridLayout *layout=new TQGridLayout(mainWidget);
layout->setSpacing(KDialog::spacingHint());
mText=new KHistoryCombo(mainWidget);
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);
mBackwards=new TQCheckBox(i18n("Find &backwards"), mainWidget);
tqlayout->addMultiCellWidget(mText, 0, 0, 0, 1);
tqlayout->addWidget(mRegexp, 1, 0);
tqlayout->addWidget(mBackwards, 1, 1);
layout->addMultiCellWidget(mText, 0, 0, 0, 1);
layout->addWidget(mRegexp, 1, 0);
layout->addWidget(mBackwards, 1, 1);
connect(this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(clicked()));

@ -231,7 +231,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout1</cstring>
<cstring>layout1</cstring>
</property>
<hbox>
<property name="name">

@ -29,7 +29,7 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
"style",
TQT_TQOBJECT(parent))
{
// Make a token horizontal tqlayout box
// Make a token horizontal layout box
vbox = new TQVBoxLayout(this);
vbox->setSpacing( 6 );
vbox->setMargin( 0 );

Loading…
Cancel
Save