summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/texteffect
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/plugins/texteffect')
-rw-r--r--kopete/plugins/texteffect/texteffectconfig.cpp10
-rw-r--r--kopete/plugins/texteffect/texteffectconfig.h8
-rw-r--r--kopete/plugins/texteffect/texteffectplugin.cpp18
-rw-r--r--kopete/plugins/texteffect/texteffectplugin.h8
-rw-r--r--kopete/plugins/texteffect/texteffectpreferences.cpp66
-rw-r--r--kopete/plugins/texteffect/texteffectpreferences.h4
6 files changed, 57 insertions, 57 deletions
diff --git a/kopete/plugins/texteffect/texteffectconfig.cpp b/kopete/plugins/texteffect/texteffectconfig.cpp
index 9ecca3f0..2f6da206 100644
--- a/kopete/plugins/texteffect/texteffectconfig.cpp
+++ b/kopete/plugins/texteffect/texteffectconfig.cpp
@@ -16,7 +16,7 @@
*************************************************************************
*/
-#include <qstring.h>
+#include <tqstring.h>
#include <kglobal.h>
#include <kconfig.h>
@@ -47,9 +47,9 @@ void TextEffectConfig::load()
mWaves = config->readBoolEntry("WaVeS", false);
}
-QStringList TextEffectConfig::defaultColorList()
+TQStringList TextEffectConfig::defaultColorList()
{
- return QStringList::split( ",", "#00BBDD,#0088DD,#0000DD,#8800DD,#DD00DD,#DD0088,#DD0000,#DD8800,#DDBB00,#88BB00,#00BB00" );
+ return TQStringList::split( ",", "#00BBDD,#0088DD,#0000DD,#8800DD,#DD00DD,#DD0088,#DD0000,#DD8800,#DDBB00,#88BB00,#00BB00" );
}
void TextEffectConfig::save()
@@ -69,7 +69,7 @@ void TextEffectConfig::save()
config->sync();
}
-QStringList TextEffectConfig::colors() const
+TQStringList TextEffectConfig::colors() const
{
return mColors;
}
@@ -104,7 +104,7 @@ bool TextEffectConfig::waves() const
return mWaves;
}
-void TextEffectConfig::setColors(const QStringList &newColors)
+void TextEffectConfig::setColors(const TQStringList &newColors)
{
mColors = newColors;
}
diff --git a/kopete/plugins/texteffect/texteffectconfig.h b/kopete/plugins/texteffect/texteffectconfig.h
index 80b19151..103ba772 100644
--- a/kopete/plugins/texteffect/texteffectconfig.h
+++ b/kopete/plugins/texteffect/texteffectconfig.h
@@ -30,7 +30,7 @@ public:
void save();
//accessor functions
- QStringList colors() const;
+ TQStringList colors() const;
bool colorLines() const;
bool colorWords() const;
bool colorChar() const;
@@ -38,18 +38,18 @@ public:
bool lamer() const;
bool waves() const;
- void setColors(const QStringList &newColors = QStringList());
+ void setColors(const TQStringList &newColors = TQStringList());
void setColorLines(bool newLines);
void setColorChar(bool newChar);
void setColorWords(bool newWords);
void setColorRandom(bool newRandom);
void setLamer(bool newLamer);
void setWaves(bool newWaves);
- QStringList defaultColorList();
+ TQStringList defaultColorList();
private:
- QStringList mColors;
+ TQStringList mColors;
bool mColorLines;
bool mColorWords;
bool mColorChar;
diff --git a/kopete/plugins/texteffect/texteffectplugin.cpp b/kopete/plugins/texteffect/texteffectplugin.cpp
index 5374b2ca..47bdbc14 100644
--- a/kopete/plugins/texteffect/texteffectplugin.cpp
+++ b/kopete/plugins/texteffect/texteffectplugin.cpp
@@ -28,7 +28,7 @@
typedef KGenericFactory<TextEffectPlugin> TextEffectPluginFactory;
K_EXPORT_COMPONENT_FACTORY( kopete_texteffect, TextEffectPluginFactory( "kopete_texteffect" ) )
-TextEffectPlugin::TextEffectPlugin( QObject *parent, const char *name, const QStringList &/*args*/ )
+TextEffectPlugin::TextEffectPlugin( TQObject *parent, const char *name, const TQStringList &/*args*/ )
: Kopete::Plugin( TextEffectPluginFactory::instance(), parent, name )
{
if( !pluginStatic_ )
@@ -36,11 +36,11 @@ TextEffectPlugin::TextEffectPlugin( QObject *parent, const char *name, const QSt
m_config = new TextEffectConfig;
- connect ( this , SIGNAL( settingsChanged() ) , this , SLOT( slotSettingsChanged() ) );
+ connect ( this , TQT_SIGNAL( settingsChanged() ) , this , TQT_SLOT( slotSettingsChanged() ) );
connect( Kopete::ChatSessionManager::self(),
- SIGNAL( aboutToSend( Kopete::Message & ) ),
- SLOT( slotOutgoingMessage( Kopete::Message & ) ) );
+ TQT_SIGNAL( aboutToSend( Kopete::Message & ) ),
+ TQT_SLOT( slotOutgoingMessage( Kopete::Message & ) ) );
last_color=0;
}
@@ -64,19 +64,19 @@ void TextEffectPlugin::slotOutgoingMessage( Kopete::Message& msg )
if(msg.direction() != Kopete::Message::Outbound)
return;
- QStringList colors=m_config->colors();
+ TQStringList colors=m_config->colors();
if(m_config->colorChar() || m_config->colorWords() || m_config->lamer() || m_config->waves() )
{
- QString original=msg.plainBody();
- QString resultat;
+ TQString original=msg.plainBody();
+ TQString resultat;
unsigned int c=0;
bool wavein=false;
for(unsigned int f=0;f<original.length();f++)
{
- QChar x=original[f];
+ TQChar x=original[f];
if(f==0 || m_config->colorChar() || (m_config->colorWords() && x==' ' ))
{
if(f!=0)
@@ -184,7 +184,7 @@ void TextEffectPlugin::slotOutgoingMessage( Kopete::Message& msg )
last_color=0;
}
- msg.setFg(QColor (colors[last_color]));
+ msg.setFg(TQColor (colors[last_color]));
}
}
diff --git a/kopete/plugins/texteffect/texteffectplugin.h b/kopete/plugins/texteffect/texteffectplugin.h
index db34fdcb..63441435 100644
--- a/kopete/plugins/texteffect/texteffectplugin.h
+++ b/kopete/plugins/texteffect/texteffectplugin.h
@@ -18,9 +18,9 @@
#ifndef TextEffectPLUGIN_H
#define TextEffectPLUGIN_H
-#include <qobject.h>
-#include <qmap.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqmap.h>
+#include <tqstring.h>
#include "kopetemessage.h"
#include "kopeteplugin.h"
@@ -45,7 +45,7 @@ class TextEffectPlugin : public Kopete::Plugin
public:
static TextEffectPlugin *plugin();
- TextEffectPlugin( QObject *parent, const char *name, const QStringList &args );
+ TextEffectPlugin( TQObject *parent, const char *name, const TQStringList &args );
~TextEffectPlugin();
public slots:
diff --git a/kopete/plugins/texteffect/texteffectpreferences.cpp b/kopete/plugins/texteffect/texteffectpreferences.cpp
index c9f0c03b..9fb2994c 100644
--- a/kopete/plugins/texteffect/texteffectpreferences.cpp
+++ b/kopete/plugins/texteffect/texteffectpreferences.cpp
@@ -15,10 +15,10 @@
* *
***************************************************************************/
-#include <qstring.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
+#include <tqstring.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
#include <klocale.h>
#include <kcolordialog.h>
@@ -35,12 +35,12 @@
typedef KGenericFactory<TextEffectPreferences> TextEffectPreferencesFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kopete_texteffect, TextEffectPreferencesFactory( "kcm_kopete_texteffect" ) )
-TextEffectPreferences::TextEffectPreferences(QWidget *parent,
+TextEffectPreferences::TextEffectPreferences(TQWidget *parent,
const char* /*name*/,
- const QStringList &args)
+ const TQStringList &args)
: KCModule(TextEffectPreferencesFactory::instance(), parent, args)
{
- ( new QVBoxLayout( this ) )->setAutoAdd( true );
+ ( new TQVBoxLayout( this ) )->setAutoAdd( true );
kdDebug( 14310 ) << "Creating preferences dialog" << endl;
@@ -52,32 +52,32 @@ TextEffectPreferences::TextEffectPreferences(QWidget *parent,
kdDebug( 14310 ) << "Setting up connections" << endl;
- connect(preferencesDialog->mColorsAdd , SIGNAL(pressed()) ,
- this , SLOT(slotAddPressed()));
+ connect(preferencesDialog->mColorsAdd , TQT_SIGNAL(pressed()) ,
+ this , TQT_SLOT(slotAddPressed()));
- connect(preferencesDialog->mColorsRemove , SIGNAL(pressed()) ,
- this , SLOT(slotRemovePressed()));
+ connect(preferencesDialog->mColorsRemove , TQT_SIGNAL(pressed()) ,
+ this , TQT_SLOT(slotRemovePressed()));
- connect(preferencesDialog->mColorsUp , SIGNAL(pressed()) ,
- this , SLOT(slotUpPressed()));
+ connect(preferencesDialog->mColorsUp , TQT_SIGNAL(pressed()) ,
+ this , TQT_SLOT(slotUpPressed()));
- connect(preferencesDialog->mColorsDown , SIGNAL(pressed()) ,
- this , SLOT(slotDownPressed()));
+ connect(preferencesDialog->mColorsDown , TQT_SIGNAL(pressed()) ,
+ this , TQT_SLOT(slotDownPressed()));
// Connect up all the check boxes
- connect( preferencesDialog->m_lamer, SIGNAL( clicked() ),
- this, SLOT( slotSettingChanged() ) );
- connect( preferencesDialog->m_casewaves, SIGNAL( clicked() ),
- this, SLOT( slotSettingChanged() ) );
-
- connect( preferencesDialog->m_colorRandom, SIGNAL( clicked() ),
- this, SLOT( slotSettingChanged() ) );
- connect( preferencesDialog->m_fg, SIGNAL( clicked() ),
- this, SLOT( slotSettingChanged() ) );
- connect( preferencesDialog->m_char, SIGNAL( clicked() ),
- this, SLOT( slotSettingChanged() ) );
- connect( preferencesDialog->m_words, SIGNAL( clicked() ),
- this, SLOT( slotSettingChanged() ) );
+ connect( preferencesDialog->m_lamer, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotSettingChanged() ) );
+ connect( preferencesDialog->m_casewaves, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotSettingChanged() ) );
+
+ connect( preferencesDialog->m_colorRandom, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotSettingChanged() ) );
+ connect( preferencesDialog->m_fg, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotSettingChanged() ) );
+ connect( preferencesDialog->m_char, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotSettingChanged() ) );
+ connect( preferencesDialog->m_words, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotSettingChanged() ) );
//setMainWidget( preferencesDialog, "Text Effect Plugin" );
@@ -142,9 +142,9 @@ void TextEffectPreferences::save()
kdDebug() << k_funcinfo << "EXIT" << endl;
}
-QStringList TextEffectPreferences::colors()
+TQStringList TextEffectPreferences::colors()
{
- QStringList ret;
+ TQStringList ret;
for(unsigned int f=0; f<preferencesDialog->mColorsListBox->count() ; f++)
{
ret.append(preferencesDialog->mColorsListBox->text(f));
@@ -154,7 +154,7 @@ QStringList TextEffectPreferences::colors()
void TextEffectPreferences::slotAddPressed()
{
- QColor myColor;
+ TQColor myColor;
if( KColorDialog::getColor( myColor ) == KColorDialog::Accepted )
{
preferencesDialog->mColorsListBox->insertItem(myColor.name());
@@ -177,7 +177,7 @@ void TextEffectPreferences::slotUpPressed()
int p=preferencesDialog->mColorsListBox->currentItem();
if(p <= 0 )
return;
- QListBoxItem *i=preferencesDialog->mColorsListBox->selectedItem();
+ TQListBoxItem *i=preferencesDialog->mColorsListBox->selectedItem();
if(!i)
return;
preferencesDialog->mColorsListBox->setSelected(i,false);
@@ -194,7 +194,7 @@ void TextEffectPreferences::slotDownPressed()
int p=preferencesDialog->mColorsListBox->currentItem();
if(p < 0 )
return;
- QListBoxItem *i=preferencesDialog->mColorsListBox->selectedItem();
+ TQListBoxItem *i=preferencesDialog->mColorsListBox->selectedItem();
if(!i)
return;
preferencesDialog->mColorsListBox->setSelected(i,false);
diff --git a/kopete/plugins/texteffect/texteffectpreferences.h b/kopete/plugins/texteffect/texteffectpreferences.h
index 21dc7bff..e455e737 100644
--- a/kopete/plugins/texteffect/texteffectpreferences.h
+++ b/kopete/plugins/texteffect/texteffectpreferences.h
@@ -32,7 +32,7 @@ class TextEffectPreferences : public KCModule {
Q_OBJECT
public:
- TextEffectPreferences(QWidget *parent = 0, const char* name = 0, const QStringList &args = QStringList());
+ TextEffectPreferences(TQWidget *parent = 0, const char* name = 0, const TQStringList &args = TQStringList());
~TextEffectPreferences();
// Overloaded from parent
@@ -41,7 +41,7 @@ public:
virtual void defaults();
private:
- QStringList colors();
+ TQStringList colors();
TextEffectPrefs *preferencesDialog;
TextEffectConfig *config;