summaryrefslogtreecommitdiffstats
path: root/arts/builder/propertypanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arts/builder/propertypanel.cpp')
-rw-r--r--arts/builder/propertypanel.cpp92
1 files changed, 46 insertions, 46 deletions
diff --git a/arts/builder/propertypanel.cpp b/arts/builder/propertypanel.cpp
index 3b281c2a..cca2ee5d 100644
--- a/arts/builder/propertypanel.cpp
+++ b/arts/builder/propertypanel.cpp
@@ -25,38 +25,38 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qcombobox.h>
-#include <qlistbox.h>
-#include <qlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqcombobox.h>
+#include <tqlistbox.h>
+#include <tqlineedit.h>
#include <arts/debug.h>
-PropertyPanel::PropertyPanel( QWidget* parent, const char* name, WFlags fl )
+PropertyPanel::PropertyPanel( TQWidget* parent, const char* name, WFlags fl )
: PropertyPanelBase( parent, name, fl ),
component(0L),
port(0L)
{
setTitleFont();
setTitleColors();
- connect( kapp, SIGNAL( kdisplayFontChanged() ),
- this, SLOT( setTitleFont() ));
- connect( kapp, SIGNAL( kdisplayPaletteChanged() ),
- this, SLOT( setTitleColors() ));
- connect( portValueGroup, SIGNAL( clicked(int) ),
- this, SLOT( pvModeChanged(int) ));
- connect( constantValueEdit, SIGNAL( returnPressed() ),
- this, SLOT( writePortProperties() ));
- connect( constantValueComboBox, SIGNAL( activated(int) ),
- this, SLOT( writePortProperties() ));
- connect( portCombo, SIGNAL( activated(int) ),
- this, SLOT( comboPortSelected(int) ));
- connect( connectButton, SIGNAL( clicked() ),
- this, SLOT( connectButtonClicked() ));
+ connect( kapp, TQT_SIGNAL( kdisplayFontChanged() ),
+ this, TQT_SLOT( setTitleFont() ));
+ connect( kapp, TQT_SIGNAL( kdisplayPaletteChanged() ),
+ this, TQT_SLOT( setTitleColors() ));
+ connect( portValueGroup, TQT_SIGNAL( clicked(int) ),
+ this, TQT_SLOT( pvModeChanged(int) ));
+ connect( constantValueEdit, TQT_SIGNAL( returnPressed() ),
+ this, TQT_SLOT( writePortProperties() ));
+ connect( constantValueComboBox, TQT_SIGNAL( activated(int) ),
+ this, TQT_SLOT( writePortProperties() ));
+ connect( portCombo, TQT_SIGNAL( activated(int) ),
+ this, TQT_SLOT( comboPortSelected(int) ));
+ connect( connectButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( connectButtonClicked() ));
constantValueComboBox->hide();
setEnabled( false );
@@ -65,7 +65,7 @@ PropertyPanel::PropertyPanel( QWidget* parent, const char* name, WFlags fl )
void PropertyPanel::setTitleFont()
{
- QFont titleFont = font();
+ TQFont titleFont = font();
titleFont.setPointSizeFloat( titleFont.pointSizeFloat()*1.5f );
moduleNameLabel->setFont( titleFont );
titleFont = font();
@@ -73,35 +73,35 @@ void PropertyPanel::setTitleFont()
selectedLabel->setFont( titleFont );
}
-QColorGroup PropertyPanel::highlightColorGroup( QColorGroup cg )
+TQColorGroup PropertyPanel::highlightColorGroup( TQColorGroup cg )
{
- cg.setColor( QColorGroup::Foreground, cg.highlightedText() );
- cg.setColor( QColorGroup::Background, cg.highlight() );
+ cg.setColor( TQColorGroup::Foreground, cg.highlightedText() );
+ cg.setColor( TQColorGroup::Background, cg.highlight() );
return cg;
}
void PropertyPanel::setTitleColors()
{
- QPalette palette = titleFrame->palette();
+ TQPalette palette = titleFrame->palette();
palette.setActive( highlightColorGroup( palette.active() ) );
palette.setInactive( highlightColorGroup( palette.inactive() ) );
palette.setDisabled( highlightColorGroup( palette.disabled() ) );
titleFrame->setPalette( palette );
}
-void PropertyPanel::resizeEvent ( QResizeEvent * )
+void PropertyPanel::resizeEvent ( TQResizeEvent * )
{
if(width()*3 < height()*4)
- mainBoxLayout->setDirection( QBoxLayout::TopToBottom );
+ mainBoxLayout->setDirection( TQBoxLayout::TopToBottom );
else
- mainBoxLayout->setDirection( QBoxLayout::LeftToRight );
+ mainBoxLayout->setDirection( TQBoxLayout::LeftToRight );
}
/*************************************************************/
void PropertyPanel::setSelectedComponent( StructureComponent *component )
{
- //kdDebug() << QString("PropertyPanel::setSelectedComponent ") << component << endl;
+ //kdDebug() << TQString("PropertyPanel::setSelectedComponent ") << component << endl;
if( this->component == component ) return;
this->component = component;
@@ -127,8 +127,8 @@ void PropertyPanel::setSelectedComponent( StructureComponent *component )
for(std::list<ModulePort *>::iterator it = modulePorts.begin();
it != modulePorts.end(); it++)
{
- QString portTitle = (*it)->description
- + QString(" (%1)").arg( (*it)->PortDesc.type().direction == Arts::output ?
+ TQString portTitle = (*it)->description
+ + TQString(" (%1)").arg( (*it)->PortDesc.type().direction == Arts::output ?
i18n("OUTPUT") : i18n("INPUT") );
portCombo->insertItem( portTitle );
}
@@ -149,7 +149,7 @@ void PropertyPanel::setSelectedPort( ModulePort *port )
setSelectedComponent( port->owner );
rereadPortProperties();
portValueGroup->setEnabled( true );
- QString tipText = i18n("Tip: Just typing numbers or alphabetic characters starts entering constant values.");
+ TQString tipText = i18n("Tip: Just typing numbers or alphabetic characters starts entering constant values.");
tipLabel->setText( tipText );
tipLabel->show();
@@ -208,7 +208,7 @@ void PropertyPanel::writePortProperties()
void PropertyPanel::writePortProperties( bool reread )
{
- //kdDebug() << QString("PropertyPanel::writePortProperties") << endl;
+ //kdDebug() << TQString("PropertyPanel::writePortProperties") << endl;
if(!port) return; // sanity check
bool dirty = false;
@@ -232,7 +232,7 @@ void PropertyPanel::writePortProperties( bool reread )
if(pvConstantButton->isChecked())
{
std::string type = port->PortDesc.type().dataType;
- QString newvalue = constantValueEdit->text();
+ TQString newvalue = constantValueEdit->text();
Arts::Any a;
a.type = type;
@@ -270,7 +270,7 @@ void PropertyPanel::writePortProperties( bool reread )
void PropertyPanel::rereadPortProperties()
{
- //kdDebug() << QString("PropertyPanel::rereadPortProperties") << endl;
+ //kdDebug() << TQString("PropertyPanel::rereadPortProperties") << endl;
if(!port) return; // sanity check
std::string dataType = port->PortDesc.type().dataType;
@@ -291,7 +291,7 @@ void PropertyPanel::rereadPortProperties()
{
pvConstantButton->setChecked( true );
- QString constValue;
+ TQString constValue;
Arts::Any value = port->PortDesc.value();
Arts::Buffer b;
@@ -337,14 +337,14 @@ void PropertyPanel::rereadPortProperties()
pvConnectionButton->setEnabled( port->PortDesc.isConnected() );
}
-bool PropertyPanel::eventFilter( QObject *o, QEvent *e )
+bool PropertyPanel::eventFilter( TQObject *o, TQEvent *e )
{
- if( port && !constantValueEdit->hasFocus() && (e->type() == QEvent::KeyPress) ) {
-// kdDebug() << QString(" ..is KeyPress") << endl;
- QString entered = static_cast<QKeyEvent *>(e)->text();
+ if( port && !constantValueEdit->hasFocus() && (e->type() == TQEvent::KeyPress) ) {
+// kdDebug() << TQString(" ..is KeyPress") << endl;
+ TQString entered = static_cast<TQKeyEvent *>(e)->text();
bool goodString = entered.length() > 0;
-// kdDebug() << QString("pressed '%1'").arg(entered) << endl;
+// kdDebug() << TQString("pressed '%1'").arg(entered) << endl;
for( unsigned int i = 0; i < entered.length(); i++)
goodString = goodString && entered[i].isLetterOrNumber();
@@ -359,7 +359,7 @@ bool PropertyPanel::eventFilter( QObject *o, QEvent *e )
}
}
// else
-// kdDebug() << "event type = " << e->type() << " != " << QEvent::KeyPress << endl;
+// kdDebug() << "event type = " << e->type() << " != " << TQEvent::KeyPress << endl;
return FALSE; // PropertyPanelBase::eventFilter( o, e );
}
@@ -378,7 +378,7 @@ void PropertyPanel::fillEnumChoices(const std::string& type)
std::vector<Arts::EnumComponent>::const_iterator eci;
for(eci = edef.contents.begin(); eci != edef.contents.end(); ++eci)
- constantValueComboBox->insertItem(QString::fromUtf8(eci->name.c_str()));
+ constantValueComboBox->insertItem(TQString::fromUtf8(eci->name.c_str()));
}
long PropertyPanel::selectedEnumValue(const std::string& type)