summaryrefslogtreecommitdiffstats
path: root/src/gui/pieditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/pieditor.cpp')
-rw-r--r--src/gui/pieditor.cpp118
1 files changed, 59 insertions, 59 deletions
diff --git a/src/gui/pieditor.cpp b/src/gui/pieditor.cpp
index b7ca0e5..7ca2663 100644
--- a/src/gui/pieditor.cpp
+++ b/src/gui/pieditor.cpp
@@ -18,15 +18,15 @@
#include <klocale.h>
#include <knuminput.h>
#include <kurlrequester.h>
-#include <qlayout.h>
+#include <tqlayout.h>
//BEGIN class PIEditor
-PIEditor::PIEditor(QString id, Variant *data, QWidget *parent, const char *name)
- : QWidget(parent, name)
+PIEditor::PIEditor(TQString id, Variant *data, TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name)
{
m_id = id;
m_data = data;
- connect(m_data,SIGNAL(valueChanged(QVariant, QVariant )),this,SLOT(valueChanged(QVariant)));
+ connect(m_data,TQT_SIGNAL(valueChanged(TQVariant, TQVariant )),this,TQT_SLOT(valueChanged(TQVariant)));
setFocus();
update();
//show();
@@ -36,25 +36,25 @@ PIEditor::~PIEditor()
{
}
-void PIEditor::valueChanged( QVariant /*variant*/ )
+void PIEditor::valueChanged( TQVariant /*variant*/ )
{
}
//END class PIEditor
//BEGIN class PIBool
-PIBool::PIBool(QString id, Variant *data, QWidget *parent, const char *name )
- : PIEditor( id, data, parent, name )
+PIBool::PIBool(TQString id, Variant *data, TQWidget *tqparent, const char *name )
+ : PIEditor( id, data, tqparent, name )
{
- QHBoxLayout *layout = new QHBoxLayout(this);
- layout->setAutoAdd(true);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ tqlayout->setAutoAdd(true);
m_comboBox = new KComboBox(this);
m_comboBox->insertItem( i18n("True"), 0 );
m_comboBox->insertItem( i18n("False"), 1 );
m_comboBox->setCurrentItem( m_data->value().toBool() ? 0 : 1 );
- connect( m_comboBox, SIGNAL(activated(int )), this, SLOT(selectChanged(int )) );
+ connect( m_comboBox, TQT_SIGNAL(activated(int )), this, TQT_SLOT(selectChanged(int )) );
}
PIBool::~PIBool()
@@ -68,10 +68,10 @@ void PIBool::popup()
void PIBool::selectChanged( int index )
{
- emit editorDataChanged( m_id, QVariant( index == 0 ) );
+ emit editorDataChanged( m_id, TQVariant( index == 0 ) );
}
-void PIBool::valueChanged( QVariant /*variant*/ )
+void PIBool::valueChanged( TQVariant /*variant*/ )
{
m_comboBox->setCurrentItem( m_data->value().toBool() ? 0 : 1 );
}
@@ -79,17 +79,17 @@ void PIBool::valueChanged( QVariant /*variant*/ )
//BEGIN class PIColor
-PIColor::PIColor(QString id, Variant *data, QWidget *parent, const char *name )
- : PIEditor(id,data,parent, name)
+PIColor::PIColor(TQString id, Variant *data, TQWidget *tqparent, const char *name )
+ : PIEditor(id,data,tqparent, name)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
- layout->setAutoAdd(true);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ tqlayout->setAutoAdd(true);
m_combo = new ColorCombo( (ColorCombo::ColorScheme)m_data->colorScheme(), this );
m_combo->setColor(m_data->value().toColor());
- connect(m_combo,SIGNAL(activated(const QColor&)),this,SLOT(colorChanged(const QColor&)));
-// connect(m_combo,SIGNAL(highlighted(const QColor&)),this,SLOT(colorChanged(const QColor&)));
+ connect(m_combo,TQT_SIGNAL(activated(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&)));
+// connect(m_combo,TQT_SIGNAL(highlighted(const TQColor&)),this,TQT_SLOT(colorChanged(const TQColor&)));
}
PIColor::~PIColor()
@@ -101,12 +101,12 @@ void PIColor::popup()
m_combo->popup();
}
-void PIColor::colorChanged(const QColor &col)
+void PIColor::colorChanged(const TQColor &col)
{
- emit editorDataChanged(m_id,QVariant(col));
+ emit editorDataChanged(m_id,TQVariant(col));
}
-void PIColor::valueChanged( QVariant /*variant*/ )
+void PIColor::valueChanged( TQVariant /*variant*/ )
{
m_combo->setColor(m_data->value().toColor());
}
@@ -114,15 +114,15 @@ void PIColor::valueChanged( QVariant /*variant*/ )
//BEGIN class PIDouble
-PIDouble::PIDouble(QString id, Variant *data, QWidget *parent, const char *name )
- : PIEditor(id,data,parent, name)
+PIDouble::PIDouble(TQString id, Variant *data, TQWidget *tqparent, const char *name )
+ : PIEditor(id,data,tqparent, name)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
- layout->setAutoAdd(true);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ tqlayout->setAutoAdd(true);
spin = new DoubleSpinBox(m_data->minValue(),m_data->maxValue(),m_data->minAbsValue(),m_data->value().toDouble(),m_data->unit(),this);
- connect(spin,SIGNAL(valueChanged(double)),this,SLOT(spinValueChanged(double)));
+ connect(spin,TQT_SIGNAL(valueChanged(double)),this,TQT_SLOT(spinValueChanged(double)));
}
PIDouble::~PIDouble()
@@ -131,10 +131,10 @@ PIDouble::~PIDouble()
void PIDouble::spinValueChanged(double value)
{
- emit editorDataChanged(m_id,QVariant(value));
+ emit editorDataChanged(m_id,TQVariant(value));
}
-void PIDouble::valueChanged( QVariant /*variant*/ )
+void PIDouble::valueChanged( TQVariant /*variant*/ )
{
spin->setValue(m_data->value().toDouble());
}
@@ -142,11 +142,11 @@ void PIDouble::valueChanged( QVariant /*variant*/ )
//BEGIN class PIFileName
-PIFilename::PIFilename(QString id, Variant *data, QWidget *parent, const char *name )
- : PIEditor(id,data,parent, name)
+PIFilename::PIFilename(TQString id, Variant *data, TQWidget *tqparent, const char *name )
+ : PIEditor(id,data,tqparent, name)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
- layout->setAutoAdd(true);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ tqlayout->setAutoAdd(true);
m_combo = 0L;
if( m_data->allowed().count() == 0 )
@@ -160,20 +160,20 @@ PIFilename::PIFilename(QString id, Variant *data, QWidget *parent, const char *n
m_urlreq->setURL( m_data->value().toString() );
m_urlreq->setFilter( m_data->filter() );
- connect(m_urlreq,SIGNAL(urlSelected(const QString&)),this,SLOT(slotURLChanged(const QString&)));
- //connect(m_urlreq,SIGNAL(openFileDialog(KURLRequester*)),this,SLOT(slotOpenFileDialog(KURLRequester* )));
+ connect(m_urlreq,TQT_SIGNAL(urlSelected(const TQString&)),this,TQT_SLOT(slotURLChanged(const TQString&)));
+ //connect(m_urlreq,TQT_SIGNAL(openFileDialog(KURLRequester*)),this,TQT_SLOT(slotOpenFileDialog(KURLRequester* )));
}
PIFilename::~PIFilename()
{
}
-void PIFilename::slotURLChanged(const QString &url)
+void PIFilename::slotURLChanged(const TQString &url)
{
- emit editorDataChanged(m_id,QVariant(url));
+ emit editorDataChanged(m_id,TQVariant(url));
}
-void PIFilename::valueChanged( QVariant /*variant*/ )
+void PIFilename::valueChanged( TQVariant /*variant*/ )
{
if(m_combo) m_combo->setCurrentItem( m_data->value().toString() );
m_urlreq->setURL( m_data->value().toString() );
@@ -193,15 +193,15 @@ void PIFilename::valueChanged( QVariant /*variant*/ )
//BEGIN class PIInt
-PIInt::PIInt( const QString &id, Variant *data, QWidget *parent, const char *name )
- : PIEditor( id, data, parent, name )
+PIInt::PIInt( const TQString &id, Variant *data, TQWidget *tqparent, const char *name )
+ : PIEditor( id, data, tqparent, name )
{
- QHBoxLayout *layout = new QHBoxLayout(this);
- layout->setAutoAdd(true);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ tqlayout->setAutoAdd(true);
spin = new KIntSpinBox( (int)m_data->minValue(), (int)m_data->maxValue(), 1, m_data->value().toInt(), 10, this );
- connect( spin, SIGNAL(valueChanged(int)), this, SLOT(spinValueChanged(int)));
+ connect( spin, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(spinValueChanged(int)));
}
PIInt::~PIInt()
@@ -210,10 +210,10 @@ PIInt::~PIInt()
void PIInt::spinValueChanged( int value )
{
- emit editorDataChanged( m_id, QVariant(value) );
+ emit editorDataChanged( m_id, TQVariant(value) );
}
-void PIInt::valueChanged( QVariant /*variant*/ )
+void PIInt::valueChanged( TQVariant /*variant*/ )
{
spin->setValue( m_data->value().toInt() );
}
@@ -221,13 +221,13 @@ void PIInt::valueChanged( QVariant /*variant*/ )
//BEGIN class PILineEdit
-PILineEdit::PILineEdit(QString id, Variant *data, QWidget *parent, const char *name)
- : PIEditor( id, data, parent, name)
+PILineEdit::PILineEdit(TQString id, Variant *data, TQWidget *tqparent, const char *name)
+ : PIEditor( id, data, tqparent, name)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
- layout->setAutoAdd(true);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ tqlayout->setAutoAdd(true);
m_edit = new KLineEdit( m_data->value().toString() , this );
- connect(m_edit,SIGNAL(textChanged(const QString&)),this,SLOT(slotEditTextChanged()));
+ connect(m_edit,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(slotEditTextChanged()));
}
@@ -237,10 +237,10 @@ PILineEdit::~PILineEdit()
void PILineEdit::slotEditTextChanged()
{
- emit editorDataChanged(m_id,QVariant(m_edit->text()));
+ emit editorDataChanged(m_id,TQVariant(m_edit->text()));
}
-void PILineEdit::valueChanged( QVariant /*variant*/ )
+void PILineEdit::valueChanged( TQVariant /*variant*/ )
{
m_edit->setText(m_data->value().toString());
}
@@ -248,11 +248,11 @@ void PILineEdit::valueChanged( QVariant /*variant*/ )
//BEGIN class PIStringCombo
-PIStringCombo::PIStringCombo(QString id, Variant *data, QWidget *parent, const char *name)
- : PIEditor( id, data, parent, name)
+PIStringCombo::PIStringCombo(TQString id, Variant *data, TQWidget *tqparent, const char *name)
+ : PIEditor( id, data, tqparent, name)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
- layout->setAutoAdd(true);
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ tqlayout->setAutoAdd(true);
m_combo = new KComboBox( this );
m_combo->insertStringList(m_data->allowed());
@@ -262,8 +262,8 @@ PIStringCombo::PIStringCombo(QString id, Variant *data, QWidget *parent, const c
type == Variant::Type::FileName ||
type == Variant::Type::VarName );
- connect(m_combo,SIGNAL(highlighted(const QString&)),this,SLOT(slotComboChanged()));
- connect(m_combo,SIGNAL(activated(const QString&)),this,SLOT(slotComboChanged()));
+ connect(m_combo,TQT_SIGNAL(highlighted(const TQString&)),this,TQT_SLOT(slotComboChanged()));
+ connect(m_combo,TQT_SIGNAL(activated(const TQString&)),this,TQT_SLOT(slotComboChanged()));
}
@@ -278,10 +278,10 @@ void PIStringCombo::popup()
void PIStringCombo::slotComboChanged()
{
- emit editorDataChanged(m_id,QVariant(m_combo->currentText()));
+ emit editorDataChanged(m_id,TQVariant(m_combo->currentText()));
}
-void PIStringCombo::valueChanged( QVariant /*variant*/ )
+void PIStringCombo::valueChanged( TQVariant /*variant*/ )
{
m_combo->setCurrentItem(m_data->value().toString());
}