diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/about.ui | 42 | ||||
-rw-r--r-- | config/colordialog.cpp | 132 | ||||
-rw-r--r-- | config/colordialog.h | 68 | ||||
-rw-r--r-- | config/colorpicker.cpp | 24 | ||||
-rw-r--r-- | config/colorpicker.h | 18 | ||||
-rw-r--r-- | config/configdialog.ui | 352 | ||||
-rw-r--r-- | config/help.ui | 24 | ||||
-rw-r--r-- | config/kstyle_baghira_config.cpp | 396 | ||||
-rw-r--r-- | config/kstyle_baghira_config.h | 88 |
9 files changed, 572 insertions, 572 deletions
diff --git a/config/about.ui b/config/about.ui index bbe3ed7..1bf48f1 100644 --- a/config/about.ui +++ b/config/about.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>About</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>About</cstring> </property> @@ -48,7 +48,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>layout4</cstring> </property> @@ -75,7 +75,7 @@ </spacer> </hbox> </widget> - <widget class="QLayoutWidget" row="12" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="12" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>layout11</cstring> </property> @@ -83,7 +83,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>crLabel</cstring> </property> @@ -120,7 +120,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget" row="10" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="10" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>layout6</cstring> </property> @@ -145,7 +145,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonInfo</cstring> </property> @@ -178,7 +178,7 @@ </spacer> </hbox> </widget> - <widget class="QLabel" row="1" column="1"> + <widget class="TQLabel" row="1" column="1"> <property name="name"> <cstring>textLabel2_2</cstring> </property> @@ -240,7 +240,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget" row="8" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="8" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>layout11</cstring> </property> @@ -248,7 +248,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="4" column="3"> + <widget class="TQLabel" row="4" column="3"> <property name="name"> <cstring>cpuLabel</cstring> </property> @@ -259,7 +259,7 @@ <set>AlignVCenter|AlignLeft</set> </property> </widget> - <widget class="QLabel" row="0" column="3"> + <widget class="TQLabel" row="0" column="3"> <property name="name"> <cstring>kdeLabel</cstring> </property> @@ -338,7 +338,7 @@ </size> </property> </spacer> - <widget class="QLabel" row="2" column="1"> + <widget class="TQLabel" row="2" column="1"> <property name="name"> <cstring>textLabel5</cstring> </property> @@ -354,7 +354,7 @@ <set>AlignVCenter|AlignRight</set> </property> </widget> - <widget class="QLabel" row="2" column="3"> + <widget class="TQLabel" row="2" column="3"> <property name="name"> <cstring>systemLabel</cstring> </property> @@ -416,7 +416,7 @@ </size> </property> </spacer> - <widget class="QLabel" row="4" column="1"> + <widget class="TQLabel" row="4" column="1"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -500,7 +500,7 @@ </size> </property> </spacer> - <widget class="QLabel" row="0" column="1"> + <widget class="TQLabel" row="0" column="1"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -535,7 +535,7 @@ </size> </property> </spacer> - <widget class="QLayoutWidget" row="6" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="6" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>layout5</cstring> </property> @@ -560,7 +560,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonDownload</cstring> </property> @@ -601,7 +601,7 @@ </spacer> </hbox> </widget> - <widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="4" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>layout8</cstring> </property> @@ -609,7 +609,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -620,7 +620,7 @@ <set>AlignVCenter|AlignRight</set> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>versionLabel</cstring> </property> @@ -633,7 +633,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>layout10</cstring> </property> @@ -641,7 +641,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> diff --git a/config/colordialog.cpp b/config/colordialog.cpp index 3466082..38279c8 100644 --- a/config/colordialog.cpp +++ b/config/colordialog.cpp @@ -1,12 +1,12 @@ #include "colordialog.h" -#include <qlabel.h> -#include <qdir.h> -#include <qcombobox.h> -#include <qlayout.h> -#include <qpainter.h> -#include <qpixmap.h> -#include <qpushbutton.h> -#include <qstyle.h> +#include <tqlabel.h> +#include <tqdir.h> +#include <tqcombobox.h> +#include <tqlayout.h> +#include <tqpainter.h> +#include <tqpixmap.h> +#include <tqpushbutton.h> +#include <tqstyle.h> #include <kglobal.h> #include <kglobalsettings.h> #include <kcolordialog.h> @@ -36,33 +36,33 @@ if ( R < 0 ) R = 0; else if ( R > 255 ) R = 255; \ if ( G < 0 ) G = 0; else if ( G > 255 ) G = 255; \ if ( B < 0 ) B = 0; else if ( B > 255 ) B = 255; -ColorDialog::ColorDialog(QWidget* parent, const char* name) : QDialog( parent, name) +ColorDialog::ColorDialog(TQWidget* parent, const char* name) : TQDialog( parent, name) { - QVBoxLayout *vertical = new QVBoxLayout(this); - QHBoxLayout *top = new QHBoxLayout(vertical); + TQVBoxLayout *vertical = new TQVBoxLayout(this); + TQHBoxLayout *top = new TQHBoxLayout(vertical); demo = new DemoWindow(this); top->addWidget(demo); - QVBoxLayout *topRight = new QVBoxLayout(top); - QLabel *info = new QLabel("<qt>Select custom colors or grab directly from screen.<br>Click image left to switch between items.</qt>",this); + TQVBoxLayout *topRight = new TQVBoxLayout(top); + TQLabel *info = new TQLabel("<qt>Select custom colors or grab directly from screen.<br>Click image left to switch between items.</qt>",this); topRight->addWidget(info); - QIconSet icon = KGlobal::iconLoader()->loadIconSet("colorpicker", KIcon::Small); - buttonCP = new QPushButton(icon, QString::null, this); + TQIconSet icon = KGlobal::iconLoader()->loadIconSet("colorpicker", KIcon::Small); + buttonCP = new TQPushButton(icon, TQString::null, this); topRight->addWidget(buttonCP); - QLabel *lb = new QLabel("From other app:",this); + TQLabel *lb = new TQLabel("From other app:",this); topRight->addWidget(lb); - other = new QComboBox(this); + other = new TQComboBox(this); topRight->addWidget(other); topRight->addStretch(); - buttonOk = new QPushButton("&Ok", this); + buttonOk = new TQPushButton("&Ok", this); topRight->addWidget(buttonOk); - buttonCancel = new QPushButton("&Cancel", this); + buttonCancel = new TQPushButton("&Cancel", this); topRight->addWidget(buttonCancel); const char *title[NUMCOLORS] = {"Background", "Button", "Base", "Text", "Highlight", "Highlighted Text", "Button Text", "Alternate Background"}; for (int i = 0; i < NUMCOLORS; i++) { picker[i] = new ColorPicker(this, title[i]); vertical->addWidget(picker[i]); - connect (picker[i], SIGNAL(colorChanged(QColor)), demo, SLOT(smartRepaint())); + connect (picker[i], SIGNAL(colorChanged(TQColor)), demo, SLOT(smartRepaint())); picker[i]->hide(); } for (int i = 0; i < NUMCOLORS; i++) @@ -83,7 +83,7 @@ ColorDialog::ColorDialog(QWidget* parent, const char* name) : QDialog( parent, n connect (buttonOk, SIGNAL(clicked()), this, SLOT(close())); connect (buttonCP, SIGNAL(clicked()), this, SLOT(grabColor())); connect (buttonCancel, SIGNAL(clicked()), this, SLOT(close())); - connect (other, SIGNAL(activated (const QString &)), this, SLOT(getFromOther(const QString &))); + connect (other, SIGNAL(activated (const TQString &)), this, SLOT(getFromOther(const TQString &))); } ColorDialog::~ColorDialog() @@ -93,21 +93,21 @@ ColorDialog::~ColorDialog() void ColorDialog::show() { other->clear(); - QDir d( QDir::homeDirPath() + "/.baghira", 0L, QDir::Name | QDir::IgnoreCase, QDir::Files | QDir::Readable | QDir::Writable ); + TQDir d( TQDir::homeDirPath() + "/.baghira", 0L, TQDir::Name | TQDir::IgnoreCase, TQDir::Files | TQDir::Readable | TQDir::Writable ); if (d.exists()) { for ( uint i = 0; i < d.count(); i++ ) other->insertItem(d[i]); } - QDialog::show(); + TQDialog::show(); demo->show(); // demo->repaint(false); } -void ColorDialog::getFromOther( const QString & string ) +void ColorDialog::getFromOther( const TQString & string ) { FILE *file = NULL; - QString tmpString = QDir::homeDirPath() + "/.baghira/" + string; + TQString tmpString = TQDir::homeDirPath() + "/.baghira/" + string; if( (file = fopen(tmpString.latin1(), "r")) != NULL ) { uint k; @@ -119,7 +119,7 @@ void ColorDialog::getFromOther( const QString & string ) for (int i = 0; i < NUMCOLORS; i++) { picker[i]->blockSignals(true); - if (colors[i] != -1) picker[i]->setColor(QColor(colors[i])); + if (colors[i] != -1) picker[i]->setColor(TQColor(colors[i])); picker[i]->blockSignals(false); } demo->repaint(false); @@ -133,7 +133,7 @@ void ColorDialog::grabColor() grabKeyboard(); } -void ColorDialog::mouseReleaseEvent(QMouseEvent* me) +void ColorDialog::mouseReleaseEvent(TQMouseEvent* me) { if (gettingColorFromScreen) { @@ -150,38 +150,38 @@ void ColorDialog::mouseReleaseEvent(QMouseEvent* me) } } else - QDialog::mouseReleaseEvent(me); + TQDialog::mouseReleaseEvent(me); } -//extern QImage uic_findiImage(const QString& name); +//extern TQImage uic_findiImage(const TQString& name); //extern void qInitImages_baghira(); //extern void qCleanupImages_baghira(); -DemoWindow::DemoWindow( ColorDialog* parent, const char* name) : QWidget(parent, name) +DemoWindow::DemoWindow( ColorDialog* parent, const char* name) : TQWidget(parent, name) { - setBackgroundMode ( Qt::NoBackground ); + setBackgroundMode ( TQt::NoBackground ); colorDialog_ = parent; setFixedSize(320,120); - pm = new QPixmap(320,120); - pp = new QPainter(); - p = new QPainter(); - (const_cast<QFont*>(&p->font()))->setPixelSize(16); - baseRect = QRect(20, 10, 200, 100); - buttonRect = QRect(230, 90, 37, 21); - buttonTextRect = QRect(236, 91, 20, 18); - highlightRect = QRect(21, 42, 198, 22); - textRect = QRect(25, 21, 100, 18); - highTextRect = QRect(25, 42, 120, 22); - alternateRect = QRect(21, 86, 198, 22); + pm = new TQPixmap(320,120); + pp = new TQPainter(); + p = new TQPainter(); + (const_cast<TQFont*>(&p->font()))->setPixelSize(16); + baseRect = TQRect(20, 10, 200, 100); + buttonRect = TQRect(230, 90, 37, 21); + buttonTextRect = TQRect(236, 91, 20, 18); + highlightRect = TQRect(21, 42, 198, 22); + textRect = TQRect(25, 21, 100, 18); + highTextRect = TQRect(25, 42, 120, 22); + alternateRect = TQRect(21, 86, 198, 22); baseImage = uic_findImage("button-base"); - dest = QImage( baseImage.width(), baseImage.height(), 32 ); + dest = TQImage( baseImage.width(), baseImage.height(), 32 ); dest.setAlphaBuffer( true ); } DemoWindow::~DemoWindow(){} -void DemoWindow::mousePressEvent ( QMouseEvent * me ) +void DemoWindow::mousePressEvent ( TQMouseEvent * me ) { for (int i = 0; i < NUMCOLORS; i++) colorDialog_->picker[i]->hide(); @@ -204,23 +204,23 @@ void DemoWindow::mousePressEvent ( QMouseEvent * me ) colorDialog_->picker[Back]->show(); } -void DemoWindow::paintEvent ( QPaintEvent * ) +void DemoWindow::paintEvent ( TQPaintEvent * ) { pp->begin(pm); pp->fillRect(0,0,pm->width(),pm->height(), colorDialog_->picker[Back]->color()); - style().drawPrimitive( QStyle::PE_PanelLineEdit, pp, rect(), colorGroup() ); + style().drawPrimitive( TQStyle::PE_PanelLineEdit, pp, rect(), colorGroup() ); pp->fillRect(baseRect, colorDialog_->picker[Base]->color()); pp->fillRect(highlightRect, colorDialog_->picker[High]->color()); pp->fillRect(alternateRect, colorDialog_->picker[Alternate]->color()); pp->setPen ( colorDialog_->picker[Text]->color() ); - pp->drawText ( textRect, Qt::AlignAuto | Qt::AlignVCenter, "Common Text"); - pp->drawText ( alternateRect, Qt::AlignAuto | Qt::AlignVCenter, "Alt. Background"); + pp->drawText ( textRect, TQt::AlignAuto | TQt::AlignVCenter, "Common Text"); + pp->drawText ( alternateRect, TQt::AlignAuto | TQt::AlignVCenter, "Alt. Background"); pp->setPen ( colorDialog_->picker[HighText]->color() ); - pp->drawText ( highTextRect, Qt::AlignAuto | Qt::AlignVCenter, "Highlighted Text"); + pp->drawText ( highTextRect, TQt::AlignAuto | TQt::AlignVCenter, "Highlighted Text"); pp->drawPixmap(buttonRect, tintButton(baseImage, colorDialog_->picker[Button]->color())); pp->setPen ( colorDialog_->picker[ButText]->color() ); - pp->drawText ( buttonTextRect, Qt::AlignCenter, "B"); - style().drawPrimitive( QStyle::PE_PanelLineEdit, pp, baseRect, colorGroup()); + pp->drawText ( buttonTextRect, TQt::AlignCenter, "B"); + style().drawPrimitive( TQStyle::PE_PanelLineEdit, pp, baseRect, colorGroup()); pp->end(); p->begin(this); p->drawPixmap(0,0, *pm); @@ -231,49 +231,49 @@ void DemoWindow::smartRepaint() { if (colorDialog_->picker[Back]->isShown()) { - QWidget::repaint(false); + TQWidget::repaint(false); return; } if (colorDialog_->picker[Button]->isShown()) { - QWidget::repaint(buttonRect, false); + TQWidget::repaint(buttonRect, false); return; } if (colorDialog_->picker[Base]->isShown()) { - QWidget::repaint(false); + TQWidget::repaint(false); return; } if (colorDialog_->picker[Text]->isShown()) { - QWidget::repaint(textRect, false); + TQWidget::repaint(textRect, false); return; } if (colorDialog_->picker[High]->isShown()) { - QWidget::repaint(highlightRect, false); + TQWidget::repaint(highlightRect, false); return; } if (colorDialog_->picker[HighText]->isShown()) { - QWidget::repaint(highTextRect, false); + TQWidget::repaint(highTextRect, false); return; } if (colorDialog_->picker[Alternate]->isShown()) { - QWidget::repaint(alternateRect, false); + TQWidget::repaint(alternateRect, false); return; } if (colorDialog_->picker[ButText]->isShown()) { - QWidget::repaint(buttonTextRect, false); + TQWidget::repaint(buttonTextRect, false); return; } } -QImage & DemoWindow::tintButton(QImage &src, QColor & c) +TQImage & DemoWindow::tintButton(TQImage &src, TQColor & c) { -// dest = QImage( src.width(), src.height(), 32, 0, _ENDIAN_ ); +// dest = TQImage( src.width(), src.height(), 32, 0, _ENDIAN_ ); unsigned int *data = ( unsigned int * ) src.bits(); unsigned int *destData = ( unsigned int* ) dest.bits(); int total = src.width() * src.height(); @@ -287,14 +287,14 @@ QImage & DemoWindow::tintButton(QImage &src, QColor & c) int sq = CLAMP((int)((45.0/128.0)*s+55),0,100); // float srcPercent, destPercent; for ( int current = 0 ; current < total ; ++current ) { - alpha = qAlpha( data[ current ] ); - blue = qBlue( data[ current ] ); - red = qRed( data[ current ] ); - green = qGreen( data[ current ] ); + alpha = tqAlpha( data[ current ] ); + blue = tqBlue( data[ current ] ); + red = tqRed( data[ current ] ); + green = tqGreen( data[ current ] ); SATURATION_COLOR2(sq, red, green, blue); // force back to valid colorspace ! COLOR_SPACE(destR, destG, destB); - destData[ current ] = qRgba( destR, destG, destB, alpha ); + destData[ current ] = tqRgba( destR, destG, destB, alpha ); } return ( dest ); } diff --git a/config/colordialog.h b/config/colordialog.h index 23c4808..42b6225 100644 --- a/config/colordialog.h +++ b/config/colordialog.h @@ -1,21 +1,21 @@ #ifndef COLORDIALOG_H #define COLORDIALOG_H -#include <qdialog.h> -#include <qrect.h> -#include <qimage.h> +#include <tqdialog.h> +#include <tqrect.h> +#include <tqimage.h> -class QPushButton; -class QComboBox; -class QGroupBox; -class QPainter; +class TQPushButton; +class TQComboBox; +class TQGroupBox; +class TQPainter; class ColorDialog; -class QImage; -class QPixmap; +class TQImage; +class TQPixmap; enum Colors { Back = 0, Button, Base, Text, High, HighText, ButText, Alternate, NUMCOLORS }; -class DemoWindow : public QWidget +class DemoWindow : public TQWidget { Q_OBJECT @@ -27,26 +27,26 @@ private slots: void smartRepaint(); protected: - void mousePressEvent ( QMouseEvent * e ); - void paintEvent ( QPaintEvent * ); + void mousePressEvent ( TQMouseEvent * e ); + void paintEvent ( TQPaintEvent * ); private: - QPainter *p; - QPainter *pp; - QPixmap *pm; + TQPainter *p; + TQPainter *pp; + TQPixmap *pm; ColorDialog* colorDialog_; - QRect baseRect; - QRect buttonRect; - QRect buttonTextRect; - QRect highlightRect; - QRect textRect; - QRect highTextRect; - QRect alternateRect; - QImage baseImage; - QImage dest; + TQRect baseRect; + TQRect buttonRect; + TQRect buttonTextRect; + TQRect highlightRect; + TQRect textRect; + TQRect highTextRect; + TQRect alternateRect; + TQImage baseImage; + TQImage dest; private: - QImage & tintButton(QImage &src, QColor & c); + TQImage & tintButton(TQImage &src, TQColor & c); signals: void selected(Colors c); @@ -55,35 +55,35 @@ signals: class ColorPicker; -class ColorDialog : public QDialog +class ColorDialog : public TQDialog { friend class DemoWindow; friend class AppSetter; Q_OBJECT public: - ColorDialog( QWidget* parent = 0, const char* name = 0); + ColorDialog( TQWidget* parent = 0, const char* name = 0); ~ColorDialog(); - QPushButton *buttonOk; - QPushButton *buttonCancel; + TQPushButton *buttonOk; + TQPushButton *buttonCancel; void show(); protected: ColorPicker *picker[NUMCOLORS]; - void mouseReleaseEvent(QMouseEvent* me); + void mouseReleaseEvent(TQMouseEvent* me); DemoWindow *demo; private: - QPushButton *buttonCP; + TQPushButton *buttonCP; bool gettingColorFromScreen; - QComboBox *other; + TQComboBox *other; private slots: void grabColor(); - void getFromOther( const QString & string ); + void getFromOther( const TQString & string ); signals: - void colorChanged(QColor color); + void colorChanged(TQColor color); }; diff --git a/config/colorpicker.cpp b/config/colorpicker.cpp index 263ef0d..e4f2cf9 100644 --- a/config/colorpicker.cpp +++ b/config/colorpicker.cpp @@ -1,16 +1,16 @@ #include "colorpicker.h" -#include <qcolor.h> -#include <qlayout.h> +#include <tqcolor.h> +#include <tqlayout.h> #include <knuminput.h> -ColorPicker::ColorPicker(QWidget* parent, const char* name) : QGroupBox( parent, name) +ColorPicker::ColorPicker(TQWidget* parent, const char* name) : TQGroupBox( parent, name) { setTitle(name); - setColumnLayout(0, Qt::Vertical ); + setColumnLayout(0, TQt::Vertical ); layout()->setSpacing( 6 ); layout()->setMargin( 11 ); - QVBoxLayout *vLayout = new QVBoxLayout(layout()); + TQVBoxLayout *vLayout = new TQVBoxLayout(layout()); red = new KIntNumInput(this, "red"); red->setRange(0, 255, 1, true); @@ -35,10 +35,10 @@ ColorPicker::~ColorPicker() void ColorPicker::emitChange() { - emit colorChanged(QColor(red->value(), green->value(), blue->value())); + emit colorChanged(TQColor(red->value(), green->value(), blue->value())); } -void ColorPicker::setColor(const QColor & color) +void ColorPicker::setColor(const TQColor & color) { red->setValue( color.red() ); green->setValue( color.green() ); @@ -49,24 +49,24 @@ void ColorPicker::setColor(const QColor & color) void ColorPicker::setRed(int r) { red->setValue( r ); - emit colorChanged(QColor(r, green->value(), blue->value())); + emit colorChanged(TQColor(r, green->value(), blue->value())); } void ColorPicker::setGreen(int g) { green->setValue( g ); - emit colorChanged(QColor(red->value(), g, blue->value())); + emit colorChanged(TQColor(red->value(), g, blue->value())); } void ColorPicker::setBlue(int b) { blue->setValue( b ); - emit colorChanged(QColor(red->value(), green->value(), b)); + emit colorChanged(TQColor(red->value(), green->value(), b)); } -QColor & ColorPicker::color() +TQColor & ColorPicker::color() { - color__ = QColor(red->value(), green->value(), blue->value()); + color__ = TQColor(red->value(), green->value(), blue->value()); return color__; } diff --git a/config/colorpicker.h b/config/colorpicker.h index 6f813b2..59f27cf 100644 --- a/config/colorpicker.h +++ b/config/colorpicker.h @@ -1,22 +1,22 @@ #ifndef COLORPICKER_H #define COLORPICKER_H -#include <qgroupbox.h> +#include <tqgroupbox.h> class KIntNumInput; -class QColor; +class TQColor; -class ColorPicker : public QGroupBox +class ColorPicker : public TQGroupBox { Q_OBJECT public: - ColorPicker( QWidget* parent = 0, const char* name = 0); + ColorPicker( TQWidget* parent = 0, const char* name = 0); ~ColorPicker(); - QColor & color(); + TQColor & color(); public slots: - void setColor(const QColor & color); + void setColor(const TQColor & color); void setRed(int red); void emitChange(); void setGreen(int green); @@ -28,11 +28,11 @@ protected: KIntNumInput *red; KIntNumInput *green; KIntNumInput *blue; - QColor color_; - QColor color__; + TQColor color_; + TQColor color__; signals: - void colorChanged(QColor color); + void colorChanged(TQColor color); }; diff --git a/config/configdialog.ui b/config/configdialog.ui index 870e4cf..d9a2fbf 100644 --- a/config/configdialog.ui +++ b/config/configdialog.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>Config</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>Config</cstring> </property> @@ -27,7 +27,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class="TQLayoutWidget" row="1" column="0"> <property name="name"> <cstring>layout55</cstring> </property> @@ -35,7 +35,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonHelp</cstring> </property> @@ -49,7 +49,7 @@ <bool>true</bool> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonAbout</cstring> </property> @@ -74,7 +74,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>statusWarning</cstring> </property> @@ -104,7 +104,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonLoad</cstring> </property> @@ -112,7 +112,7 @@ <string>Load...</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonSaveAs</cstring> </property> @@ -122,7 +122,7 @@ </widget> </hbox> </widget> - <widget class="QTabWidget" row="0" column="0"> + <widget class="TQTabWidget" row="0" column="0"> <property name="name"> <cstring>tabWidget</cstring> </property> @@ -134,7 +134,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>Widget8</cstring> </property> @@ -162,7 +162,7 @@ </size> </property> </spacer> - <widget class="QGroupBox" row="1" column="0" rowspan="1" colspan="3"> + <widget class="TQGroupBox" row="1" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>groupBox13</cstring> </property> @@ -173,7 +173,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class="TQLayoutWidget" row="0" column="0"> <property name="name"> <cstring>layout22</cstring> </property> @@ -181,7 +181,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shadowGroups</cstring> </property> @@ -189,7 +189,7 @@ <string>Sink Groupboxes</string> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout7</cstring> </property> @@ -197,7 +197,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel5</cstring> </property> @@ -205,7 +205,7 @@ <string>Depth</string> </property> </widget> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>shadowIntensity</cstring> </property> @@ -228,7 +228,7 @@ <number>10</number> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout6</cstring> </property> @@ -236,7 +236,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel6</cstring> </property> @@ -261,7 +261,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel7</cstring> </property> @@ -277,7 +277,7 @@ </widget> </grid> </widget> - <widget class="QGroupBox" row="0" column="3"> + <widget class="TQGroupBox" row="0" column="3"> <property name="name"> <cstring>groupBox12</cstring> </property> @@ -288,7 +288,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel12</cstring> </property> @@ -296,7 +296,7 @@ <string>Color function</string> </property> </widget> - <widget class="QComboBox" row="1" column="0"> + <widget class="TQComboBox" row="1" column="0"> <item> <property name="text"> <string>Aquarius</string> @@ -314,7 +314,7 @@ <string>"Aquarius" is very Aqua like<br>"Liquid" bases upon mosfet's original Code</string> </property> </widget> - <widget class="QLayoutWidget" row="4" column="0"> + <widget class="TQLayoutWidget" row="4" column="0"> <property name="name"> <cstring>layout123</cstring> </property> @@ -322,7 +322,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Fixed</string> @@ -360,7 +360,7 @@ </widget> </hbox> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>textLabel13</cstring> </property> @@ -384,7 +384,7 @@ </widget> </grid> </widget> - <widget class="QGroupBox" row="1" column="3"> + <widget class="TQGroupBox" row="1" column="3"> <property name="name"> <cstring>groupBox11</cstring> </property> @@ -395,7 +395,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>stippleBackground</cstring> </property> @@ -403,7 +403,7 @@ <string>Use Scanlines in Aqua Design</string> </property> </widget> - <widget class="QLayoutWidget" row="2" column="0"> + <widget class="TQLayoutWidget" row="2" column="0"> <property name="name"> <cstring>layout4</cstring> </property> @@ -411,7 +411,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -419,7 +419,7 @@ <string>Scanline contrast</string> </property> </widget> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>stippleContrast</cstring> </property> @@ -445,7 +445,7 @@ <number>10</number> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout3</cstring> </property> @@ -453,7 +453,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -478,7 +478,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel4</cstring> </property> @@ -506,7 +506,7 @@ </widget> </grid> </widget> - <widget class="QGroupBox" row="3" column="0" rowspan="1" colspan="4"> + <widget class="TQGroupBox" row="3" column="0" rowspan="1" colspan="4"> <property name="name"> <cstring>groupButtonPreview</cstring> </property> @@ -520,7 +520,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class="TQLayoutWidget" row="0" column="0"> <property name="name"> <cstring>layout59</cstring> </property> @@ -528,7 +528,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout58</cstring> </property> @@ -553,7 +553,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>pixmapButtonPreview</cstring> </property> @@ -580,7 +580,7 @@ </spacer> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout55</cstring> </property> @@ -588,7 +588,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_5</cstring> </property> @@ -596,7 +596,7 @@ <string>R</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_5</cstring> </property> @@ -604,7 +604,7 @@ <string>G</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3_4</cstring> </property> @@ -614,7 +614,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout53</cstring> </property> @@ -622,7 +622,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>sliderButtonRed</cstring> </property> @@ -633,7 +633,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>sliderButtonGreen</cstring> </property> @@ -644,7 +644,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>sliderButtonBlue</cstring> </property> @@ -657,7 +657,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout56</cstring> </property> @@ -665,7 +665,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>valueButtonRed</cstring> </property> @@ -673,7 +673,7 @@ <string>0</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>valueButtonGreen</cstring> </property> @@ -681,7 +681,7 @@ <string>0</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>valueButtonBlue</cstring> </property> @@ -695,7 +695,7 @@ </widget> </grid> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel1_10</cstring> </property> @@ -703,7 +703,7 @@ <string>Color presets</string> </property> </widget> - <widget class="QComboBox" row="2" column="1"> + <widget class="TQComboBox" row="2" column="1"> <property name="name"> <cstring>colorPresets</cstring> </property> @@ -742,7 +742,7 @@ </size> </property> </spacer> - <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>animateButtons</cstring> </property> @@ -750,7 +750,7 @@ <string>Animate Buttons</string> </property> </widget> - <widget class="QGroupBox" row="0" column="0" rowspan="1" colspan="3"> + <widget class="TQGroupBox" row="0" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>groupBox10</cstring> </property> @@ -775,7 +775,7 @@ <enum>Vertical</enum> </property> </widget> - <widget class="QLayoutWidget" row="0" column="0" rowspan="4" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="0" rowspan="4" colspan="1"> <property name="name"> <cstring>layout48</cstring> </property> @@ -783,7 +783,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -791,7 +791,7 @@ <string>Default Design is</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Jaguar</string> @@ -857,7 +857,7 @@ </spacer> </vbox> </widget> - <widget class="QLabel" row="0" column="2"> + <widget class="TQLabel" row="0" column="2"> <property name="name"> <cstring>textLabel1_9</cstring> </property> @@ -865,7 +865,7 @@ <string>Buttons look like</string> </property> </widget> - <widget class="QLabel" row="2" column="2"> + <widget class="TQLabel" row="2" column="2"> <property name="name"> <cstring>textLabel2_8</cstring> </property> @@ -873,7 +873,7 @@ <string>Toolbuttons look like</string> </property> </widget> - <widget class="QComboBox" row="1" column="2"> + <widget class="TQComboBox" row="1" column="2"> <item> <property name="text"> <string>Jaguar</string> @@ -903,7 +903,7 @@ <cstring>buttonStyle</cstring> </property> </widget> - <widget class="QComboBox" row="3" column="2"> + <widget class="TQComboBox" row="3" column="2"> <item> <property name="text"> <string>Jaguar</string> @@ -937,7 +937,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>Widget9</cstring> </property> @@ -948,7 +948,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox" row="2" column="1"> + <widget class="TQGroupBox" row="2" column="1"> <property name="name"> <cstring>groupBox9</cstring> </property> @@ -956,13 +956,13 @@ <string>Tabs</string> </property> <property name="toolTip" stdset="0"> - <string><qt>Panther introduced so called choosers<br>Qt has only Tabs, but you can influence their appereance here a bit</qt></string> + <string><qt>Panther introduced so called choosers<br>TQt has only Tabs, but you can influence their appereance here a bit</qt></string> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox" row="5" column="0"> + <widget class="TQComboBox" row="5" column="0"> <item> <property name="text"> <string>Tabs</string> @@ -982,7 +982,7 @@ <cstring>brushedTabs</cstring> </property> </widget> - <widget class="QLabel" row="4" column="0"> + <widget class="TQLabel" row="4" column="0"> <property name="name"> <cstring>textLabel3_7</cstring> </property> @@ -990,7 +990,7 @@ <string>Brushed Tabs are</string> </property> </widget> - <widget class="QComboBox" row="3" column="0"> + <widget class="TQComboBox" row="3" column="0"> <item> <property name="text"> <string>Tabs</string> @@ -1010,7 +1010,7 @@ <cstring>aquaTabs</cstring> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel2_7</cstring> </property> @@ -1032,7 +1032,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>centerTabs</cstring> </property> @@ -1042,7 +1042,7 @@ </widget> </grid> </widget> - <widget class="QGroupBox" row="0" column="1" rowspan="2" colspan="1"> + <widget class="TQGroupBox" row="0" column="1" rowspan="2" colspan="1"> <property name="name"> <cstring>groupBox2</cstring> </property> @@ -1053,7 +1053,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>animateSlider</cstring> </property> @@ -1061,7 +1061,7 @@ <string>Animate Hovered Slider</string> </property> </widget> - <widget class="QCheckBox" row="2" column="0"> + <widget class="TQCheckBox" row="2" column="0"> <property name="name"> <cstring>squeezeSlider</cstring> </property> @@ -1069,7 +1069,7 @@ <string>Squeeze pressed Slider</string> </property> </widget> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>shadowSlider</cstring> </property> @@ -1096,7 +1096,7 @@ </size> </property> </spacer> - <widget class="QGroupBox" row="0" column="0"> + <widget class="TQGroupBox" row="0" column="0"> <property name="name"> <cstring>groupBox1</cstring> </property> @@ -1107,7 +1107,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="2" column="0"> + <widget class="TQLayoutWidget" row="2" column="0"> <property name="name"> <cstring>layout68</cstring> </property> @@ -1115,7 +1115,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout67</cstring> </property> @@ -1123,7 +1123,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>drawTreeLines</cstring> </property> @@ -1158,7 +1158,7 @@ </spacer> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout66</cstring> </property> @@ -1166,7 +1166,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel8</cstring> </property> @@ -1201,7 +1201,7 @@ </spacer> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout65</cstring> </property> @@ -1209,7 +1209,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>useCustomExpanderColor</cstring> </property> @@ -1238,7 +1238,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="2" column="1"> + <widget class="TQLayoutWidget" row="2" column="1"> <property name="name"> <cstring>layout71</cstring> </property> @@ -1246,7 +1246,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout70</cstring> </property> @@ -1254,7 +1254,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Lines</string> @@ -1287,7 +1287,7 @@ </widget> </hbox> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Apple</string> @@ -1313,7 +1313,7 @@ <string>Expanders are the little icons you can click to open a new Layer in the tree</string> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout69</cstring> </property> @@ -1364,7 +1364,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QCheckBox" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>useRectLVH</cstring> </property> @@ -1375,7 +1375,7 @@ <string>Makes Listview Headers look like the rectangular Buttons</string> </property> </widget> - <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>bevelHighlights</cstring> </property> @@ -1385,7 +1385,7 @@ </widget> </grid> </widget> - <widget class="QGroupBox" row="1" column="0" rowspan="2" colspan="1"> + <widget class="TQGroupBox" row="1" column="0" rowspan="2" colspan="1"> <property name="name"> <cstring>groupBox4</cstring> </property> @@ -1396,7 +1396,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="3" column="0"> + <widget class="TQCheckBox" row="3" column="0"> <property name="name"> <cstring>roundTasks</cstring> </property> @@ -1418,7 +1418,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QCheckBox" row="5" column="0"> + <widget class="TQCheckBox" row="5" column="0"> <property name="name"> <cstring>replaceMenubar</cstring> </property> @@ -1426,7 +1426,7 @@ <string>Replace menubar extension (display app name)</string> </property> </widget> - <widget class="QLayoutWidget" row="6" column="0"> + <widget class="TQLayoutWidget" row="6" column="0"> <property name="name"> <cstring>layout49</cstring> </property> @@ -1434,7 +1434,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_11</cstring> </property> @@ -1442,7 +1442,7 @@ <string>Maximum width</string> </property> </widget> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>menuMaxWidth</cstring> </property> @@ -1453,7 +1453,7 @@ <number>10000</number> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>startKRuler</cstring> </property> @@ -1480,7 +1480,7 @@ </spacer> </hbox> </widget> - <widget class="QCheckBox" row="2" column="0"> + <widget class="TQCheckBox" row="2" column="0"> <property name="name"> <cstring>removeKickerBevel</cstring> </property> @@ -1490,7 +1490,7 @@ </widget> </grid> </widget> - <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout53</cstring> </property> @@ -1498,7 +1498,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox" row="0" column="0"> + <widget class="TQGroupBox" row="0" column="0"> <property name="name"> <cstring>groupBox3</cstring> </property> @@ -1509,7 +1509,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class="TQLayoutWidget" row="0" column="0"> <property name="name"> <cstring>layout39</cstring> </property> @@ -1517,7 +1517,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel11</cstring> </property> @@ -1525,7 +1525,7 @@ <string>Style</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Apple</string> @@ -1547,7 +1547,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class="TQLayoutWidget" row="1" column="0"> <property name="name"> <cstring>layout52</cstring> </property> @@ -1555,7 +1555,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>showProgressValue</cstring> </property> @@ -1584,7 +1584,7 @@ </widget> </grid> </widget> - <widget class="QGroupBox" row="0" column="1"> + <widget class="TQGroupBox" row="0" column="1"> <property name="name"> <cstring>groupBox5</cstring> </property> @@ -1595,7 +1595,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox" row="2" column="0"> + <widget class="TQComboBox" row="2" column="0"> <item> <property name="text"> <string>Aqua</string> @@ -1620,7 +1620,7 @@ <cstring>unhoveredToolButtons</cstring> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel1_8</cstring> </property> @@ -1628,7 +1628,7 @@ <string>Show unhovered buttons for</string> </property> </widget> - <widget class="QLayoutWidget" row="3" column="0"> + <widget class="TQLayoutWidget" row="3" column="0"> <property name="name"> <cstring>layout50</cstring> </property> @@ -1636,7 +1636,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_12</cstring> </property> @@ -1677,7 +1677,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -1722,7 +1722,7 @@ </size> </property> </spacer> - <widget class="QGroupBox" row="1" column="0"> + <widget class="TQGroupBox" row="1" column="0"> <property name="name"> <cstring>transGroup</cstring> </property> @@ -1736,7 +1736,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout64</cstring> </property> @@ -1744,7 +1744,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_4</cstring> </property> @@ -1760,7 +1760,7 @@ <string>Background</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Default</string> @@ -1801,7 +1801,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="10" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="10" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout55</cstring> </property> @@ -1809,7 +1809,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>drawMenuStripe</cstring> </property> @@ -1872,7 +1872,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QLayoutWidget" row="7" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="7" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout61</cstring> </property> @@ -1880,7 +1880,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_2</cstring> </property> @@ -1888,7 +1888,7 @@ <string>Opacity</string> </property> </widget> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>menuOpacity</cstring> </property> @@ -1914,7 +1914,7 @@ <string></string> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout28</cstring> </property> @@ -1922,7 +1922,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3_2</cstring> </property> @@ -1947,7 +1947,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel4_2</cstring> </property> @@ -1973,7 +1973,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QLayoutWidget" row="5" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="5" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout54</cstring> </property> @@ -1981,7 +1981,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_4</cstring> </property> @@ -2014,7 +2014,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3_6</cstring> </property> @@ -2032,7 +2032,7 @@ </widget> </hbox> </widget> - <widget class="QLabel" row="4" column="0"> + <widget class="TQLabel" row="4" column="0"> <property name="name"> <cstring>textLabel1_7</cstring> </property> @@ -2054,7 +2054,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout62</cstring> </property> @@ -2062,7 +2062,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -2103,7 +2103,7 @@ </size> </property> </spacer> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_3</cstring> </property> @@ -2119,7 +2119,7 @@ <string></string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_3_2</cstring> </property> @@ -2137,7 +2137,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout46</cstring> </property> @@ -2145,7 +2145,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel5_2</cstring> </property> @@ -2161,7 +2161,7 @@ <string>Color</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Background</string> @@ -2189,12 +2189,12 @@ </sizepolicy> </property> <property name="toolTip" stdset="0"> - <string>Qt usually uses the button color for the menus... well, Apple does not.</string> + <string>TQt usually uses the button color for the menus... well, Apple does not.</string> </property> </widget> </hbox> </widget> - <widget class="QCheckBox" row="11" column="0"> + <widget class="TQCheckBox" row="11" column="0"> <property name="name"> <cstring>glossyMenus</cstring> </property> @@ -2202,7 +2202,7 @@ <string>Use glossy highlights</string> </property> </widget> - <widget class="QCheckBox" row="9" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="9" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>shadowMenuText</cstring> </property> @@ -2229,7 +2229,7 @@ </size> </property> </spacer> - <widget class="QGroupBox" row="2" column="0"> + <widget class="TQGroupBox" row="2" column="0"> <property name="name"> <cstring>groupBox14</cstring> </property> @@ -2240,7 +2240,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox" row="0" column="4"> + <widget class="TQComboBox" row="0" column="4"> <item> <property name="text"> <string>16x16</string> @@ -2275,7 +2275,7 @@ <cstring>linkIconSize</cstring> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1_13</cstring> </property> @@ -2283,7 +2283,7 @@ <string>Hardware Iconsize</string> </property> </widget> - <widget class="QLabel" row="0" column="3"> + <widget class="TQLabel" row="0" column="3"> <property name="name"> <cstring>textLabel2_9</cstring> </property> @@ -2291,7 +2291,7 @@ <string>Link Iconsize</string> </property> </widget> - <widget class="QComboBox" row="0" column="1"> + <widget class="TQComboBox" row="0" column="1"> <item> <property name="text"> <string>16x16</string> @@ -2347,7 +2347,7 @@ </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -2358,7 +2358,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>useCustomColors</cstring> </property> @@ -2369,7 +2369,7 @@ <string>These Widgets default to the Button Color, however you can customize them here</string> </property> </widget> - <widget class="QFrame" row="1" column="0"> + <widget class="TQFrame" row="1" column="0"> <property name="name"> <cstring>colorFrame</cstring> </property> @@ -2383,7 +2383,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class="TQLayoutWidget" row="0" column="0"> <property name="name"> <cstring>layout62</cstring> </property> @@ -2391,7 +2391,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout58</cstring> </property> @@ -2399,7 +2399,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel4_3</cstring> </property> @@ -2434,7 +2434,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout60</cstring> </property> @@ -2442,7 +2442,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel5_3</cstring> </property> @@ -2477,7 +2477,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout62</cstring> </property> @@ -2485,7 +2485,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel7_3</cstring> </property> @@ -2520,7 +2520,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout64</cstring> </property> @@ -2528,7 +2528,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel9_2</cstring> </property> @@ -2563,7 +2563,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout65</cstring> </property> @@ -2571,7 +2571,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel11_3</cstring> </property> @@ -2608,7 +2608,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="0" column="2"> + <widget class="TQLayoutWidget" row="0" column="2"> <property name="name"> <cstring>layout61</cstring> </property> @@ -2616,7 +2616,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout59</cstring> </property> @@ -2624,7 +2624,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3_3</cstring> </property> @@ -2659,7 +2659,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout61</cstring> </property> @@ -2667,7 +2667,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel6_3</cstring> </property> @@ -2702,7 +2702,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout63</cstring> </property> @@ -2710,7 +2710,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel8_3</cstring> </property> @@ -2745,7 +2745,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout52</cstring> </property> @@ -2753,7 +2753,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -2788,7 +2788,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout66</cstring> </property> @@ -2796,7 +2796,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel10</cstring> </property> @@ -2864,7 +2864,7 @@ </size> </property> </spacer> - <widget class="QGroupBox" row="3" column="0" rowspan="1" colspan="3"> + <widget class="TQGroupBox" row="3" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>brushBox</cstring> </property> @@ -2875,7 +2875,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="1"> + <widget class="TQLayoutWidget" row="0" column="1"> <property name="name"> <cstring>layout62</cstring> </property> @@ -2883,7 +2883,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout59</cstring> </property> @@ -2891,7 +2891,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_6</cstring> </property> @@ -2899,7 +2899,7 @@ <string>R</string> </property> </widget> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>sliderBrushRed</cstring> </property> @@ -2912,7 +2912,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout60</cstring> </property> @@ -2920,7 +2920,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_6</cstring> </property> @@ -2928,7 +2928,7 @@ <string>G</string> </property> </widget> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>sliderBrushGreen</cstring> </property> @@ -2941,7 +2941,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout61</cstring> </property> @@ -2949,7 +2949,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel3_5</cstring> </property> @@ -2957,7 +2957,7 @@ <string>B</string> </property> </widget> - <widget class="QSlider"> + <widget class="TQSlider"> <property name="name"> <cstring>sliderBrushBlue</cstring> </property> @@ -2972,7 +2972,7 @@ </widget> </vbox> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>pixmapBrushPreview</cstring> </property> @@ -2982,7 +2982,7 @@ </widget> </grid> </widget> - <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="3"> + <widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>tintBrush</cstring> </property> diff --git a/config/help.ui b/config/help.ui index 5fdae0a..ac6909d 100644 --- a/config/help.ui +++ b/config/help.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>Help</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>Help</cstring> </property> @@ -36,7 +36,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class="TQLayoutWidget" row="1" column="0"> <property name="name"> <cstring>layout2</cstring> </property> @@ -61,7 +61,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>closeButton</cstring> </property> @@ -71,11 +71,11 @@ </widget> </hbox> </widget> - <widget class="QTabWidget" row="0" column="0"> + <widget class="TQTabWidget" row="0" column="0"> <property name="name"> <cstring>tabWidget2</cstring> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -86,7 +86,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class="TQLayoutWidget" row="1" column="0"> <property name="name"> <cstring>layout3</cstring> </property> @@ -111,7 +111,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>startBAB</cstring> </property> @@ -171,7 +171,7 @@ c) BAB is also a DCOP interface to the Baghira Style and Windeco</string> </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -194,7 +194,7 @@ To see, which functions are provided by bab (the list will probably grow), open <i><b>dcop bab default</b></i><br> <br> The most interesting function is<br><br> -<i><b>start(QString name,QString settings)</b></i><br> +<i><b>start(TQString name,TQString settings)</b></i><br> <br> use it like:<br><br> <i><b>start &lt;appName&gt; &lt;design&gt;</b></i><br><br> @@ -203,7 +203,7 @@ where <i><b>&lt;appName&gt;</b></i> is the (KDE) </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -233,7 +233,7 @@ where <i><b>&lt;appName&gt;</b></i> is the (KDE) </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -267,7 +267,7 @@ and<br> for hosting the Project</string> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> diff --git a/config/kstyle_baghira_config.cpp b/config/kstyle_baghira_config.cpp index 1e838e8..337e810 100644 --- a/config/kstyle_baghira_config.cpp +++ b/config/kstyle_baghira_config.cpp @@ -18,28 +18,28 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include <qdesktopwidget.h> -#include <qlayout.h> -#include <qpushbutton.h> -#include <qcombobox.h> -#include <qcheckbox.h> -#include <qdir.h> -#include <qfile.h> -#include <qfileinfo.h> -#include <qgroupbox.h> +#include <tqdesktopwidget.h> +#include <tqlayout.h> +#include <tqpushbutton.h> +#include <tqcombobox.h> +#include <tqcheckbox.h> +#include <tqdir.h> +#include <tqfile.h> +#include <tqfileinfo.h> +#include <tqgroupbox.h> #include <kfiledialog.h> -#include <qpainter.h> -//#include <qpalette.h> -// #include <qsettings.h> -#include <qslider.h> -#include <qspinbox.h> -#include <qstringlist.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qpixmap.h> +#include <tqpainter.h> +//#include <tqpalette.h> +// #include <tqsettings.h> +#include <tqslider.h> +#include <tqspinbox.h> +#include <tqstringlist.h> +#include <tqlabel.h> +#include <tqlineedit.h> +#include <tqpixmap.h> #include <klistview.h> -#include <qtabwidget.h> -#include <qtimer.h> +#include <tqtabwidget.h> +#include <tqtimer.h> #include <dcopclient.h> #include <kapplication.h> #include <kcolorbutton.h> @@ -69,8 +69,8 @@ #ifndef KDE_VERSION_STRING #define KDE_VERSION_STRING "error" #endif -#ifndef QT_BUILD_KEY -#define QT_BUILD_KEY "error error error error" +#ifndef TQT_BUILD_KEY +#define TQT_BUILD_KEY "error error error error" #endif #define CLAMP(x,l,u) x < l ? l :\ @@ -103,14 +103,14 @@ void kstyle_baghira_config::openHtml1() { - QStringList args; + TQStringList args; args << "exec" << "http://baghira.sf.net/"; kapp->kdeinitExec("kfmclient", args); } void kstyle_baghira_config::openHtml2() { - QStringList args; + TQStringList args; args << "exec" << "http://www.sf.net/projects/baghira/files/"; kapp->kdeinitExec("kfmclient", args); } @@ -125,9 +125,9 @@ void kstyle_baghira_config::startKRuler() kapp->kdeinitExec("kruler"); } -QImage* kstyle_baghira_config::tintButton(QImage &src, QColor c) +TQImage* kstyle_baghira_config::tintButton(TQImage &src, TQColor c) { - QImage *dest = new QImage( src.width(), src.height(), 32, 0 ); + TQImage *dest = new TQImage( src.width(), src.height(), 32, 0 ); dest->setAlphaBuffer( true ); unsigned int *data = ( unsigned int * ) src.bits(); unsigned int *destData = ( unsigned int* ) dest->bits(); @@ -142,21 +142,21 @@ QImage* kstyle_baghira_config::tintButton(QImage &src, QColor c) int sq = CLAMP((int)((45.0/128.0)*s+55),0,100); // float srcPercent, destPercent; for ( int current = 0 ; current < total ; ++current ) { - alpha = qAlpha( data[ current ] ); - blue = qBlue( data[ current ] ); - red = qRed( data[ current ] ); - green = qGreen( data[ current ] ); + alpha = tqAlpha( data[ current ] ); + blue = tqBlue( data[ current ] ); + red = tqRed( data[ current ] ); + green = tqGreen( data[ current ] ); SATURATION_COLOR2(sq, red, green, blue); // force back to valid colorspace ! COLOR_SPACE(destR, destG, destB); - destData[ current ] = qRgba( destR, destG, destB, alpha ); + destData[ current ] = tqRgba( destR, destG, destB, alpha ); } return ( dest ); } -QImage* kstyle_baghira_config::tintBrush( QImage &img, QColor c) +TQImage* kstyle_baghira_config::tintBrush( TQImage &img, TQColor c) { - QImage *dest = new QImage( img.width(), img.height(), 32, 0 ); + TQImage *dest = new TQImage( img.width(), img.height(), 32, 0 ); unsigned int *data = ( unsigned int * ) img.bits(); unsigned int *destData = ( unsigned int* ) dest->bits(); int total = img.width() * img.height(); @@ -172,14 +172,14 @@ QImage* kstyle_baghira_config::tintBrush( QImage &img, QColor c) // float srcPercent, destPercent; for ( current = 0 ; current < total ; ++current ) { - alpha = qAlpha( data[ current ] ); - blue = qBlue( data[ current ] ); - red = qRed( data[ current ] ); - green = qGreen( data[ current ] ); + alpha = tqAlpha( data[ current ] ); + blue = tqBlue( data[ current ] ); + red = tqRed( data[ current ] ); + green = tqGreen( data[ current ] ); SATURATION_COLOR(red, green, blue); // force back to valid colorspace ! COLOR_SPACE(destR, destG, destB); - destData[ current ] = qRgba( destR, destG, destB, alpha ); + destData[ current ] = tqRgba( destR, destG, destB, alpha ); } return ( dest ); } @@ -188,7 +188,7 @@ void kstyle_baghira_config::sliderButtonRedChanged(int value) { sliderButtonRedValue = value; dialog_->valueButtonRed->setNum(value); - dialog_->pixmapButtonPreview->setPixmap(*tintButton(baseImage, QColor(sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue))); + dialog_->pixmapButtonPreview->setPixmap(*tintButton(baseImage, TQColor(sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue))); dialog_->pixmapButtonPreview->repaint(false); configChanged(); } @@ -197,7 +197,7 @@ void kstyle_baghira_config::sliderButtonGreenChanged(int value) { sliderButtonGreenValue = value; dialog_->valueButtonGreen->setNum(value); - dialog_->pixmapButtonPreview->setPixmap(*tintButton(baseImage, QColor(sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue))); + dialog_->pixmapButtonPreview->setPixmap(*tintButton(baseImage, TQColor(sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue))); dialog_->pixmapButtonPreview->repaint(false); configChanged(); } @@ -206,7 +206,7 @@ void kstyle_baghira_config::sliderButtonBlueChanged(int value) { sliderButtonBlueValue = value; dialog_->valueButtonBlue->setNum(value); - dialog_->pixmapButtonPreview->setPixmap(*tintButton(baseImage, QColor(sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue))); + dialog_->pixmapButtonPreview->setPixmap(*tintButton(baseImage, TQColor(sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue))); dialog_->pixmapButtonPreview->repaint(false); configChanged(); } @@ -214,7 +214,7 @@ void kstyle_baghira_config::sliderButtonBlueChanged(int value) void kstyle_baghira_config::sliderBrushRedChanged(int value) { sliderBrushRedValue = value; - dialog_->pixmapBrushPreview->setPixmap(*tintBrush(baseImage2, QColor(sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue))); + dialog_->pixmapBrushPreview->setPixmap(*tintBrush(baseImage2, TQColor(sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue))); dialog_->pixmapBrushPreview->repaint(false); configChanged(); } @@ -222,7 +222,7 @@ void kstyle_baghira_config::sliderBrushRedChanged(int value) void kstyle_baghira_config::sliderBrushGreenChanged(int value) { sliderBrushGreenValue = value; - dialog_->pixmapBrushPreview->setPixmap(*tintBrush(baseImage2, QColor(sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue))); + dialog_->pixmapBrushPreview->setPixmap(*tintBrush(baseImage2, TQColor(sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue))); dialog_->pixmapBrushPreview->repaint(false); configChanged(); } @@ -230,7 +230,7 @@ void kstyle_baghira_config::sliderBrushGreenChanged(int value) void kstyle_baghira_config::sliderBrushBlueChanged(int value) { sliderBrushBlueValue = value; - dialog_->pixmapBrushPreview->setPixmap(*tintBrush(baseImage2, QColor(sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue))); + dialog_->pixmapBrushPreview->setPixmap(*tintBrush(baseImage2, TQColor(sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue))); dialog_->pixmapBrushPreview->repaint(false); configChanged(); } @@ -238,7 +238,7 @@ void kstyle_baghira_config::sliderBrushBlueChanged(int value) // void kstyle_baghira_config::sliderBrushSaturationChanged(int value) // { // sliderBrushSaturationValue = value; -// dialog_->pixmapBrushPreview->setPixmap(*tintBrush(baseImage2, QColor(sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue), sliderBrushSaturationValue)); +// dialog_->pixmapBrushPreview->setPixmap(*tintBrush(baseImage2, TQColor(sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue), sliderBrushSaturationValue)); // dialog_->pixmapBrushPreview->repaint(false); // emit changed(true); // } @@ -255,10 +255,10 @@ int presetColor[NUMBEROFCOLORS][3] = {{84,144,218},{130,170,190},{103,118,134},{ // -------------------------------- -typedef KGenericFactory<kstyle_baghira_config, QWidget> kstyle_baghira_configFactory; +typedef KGenericFactory<kstyle_baghira_config, TQWidget> kstyle_baghira_configFactory; K_EXPORT_COMPONENT_FACTORY( kcm_kstyle_baghira_config, kstyle_baghira_configFactory("kcmkstyle_baghira_config")) -//extern QImage uic_findImage(const QString& name); +//extern TQImage uic_findImage(const TQString& name); //extern void qInitImages_baghira(); //extern void qCleanupImages_baghira(); @@ -284,35 +284,35 @@ void kstyle_baghira_config::showAbout() about_->exec(); } -kstyle_baghira_config::kstyle_baghira_config(QWidget *parent, const char *name, const QStringList&) : QWidget(parent, name )//, myAboutData(0) +kstyle_baghira_config::kstyle_baghira_config(TQWidget *parent, const char *name, const TQStringList&) : TQWidget(parent, name )//, myAboutData(0) { loadDone = false; if (parent) parent->setCaption("Configure Your Cat"); - QVBoxLayout *layout = new QVBoxLayout(this); + TQVBoxLayout *layout = new TQVBoxLayout(this); dialog_ = new Config(this); for (int i = 0; i < NUMBEROFCOLORS; i++) dialog_->colorPresets->insertItem ( presetColorName[i], i ); - QWidget *rulesWidget = new QWidget(dialog_->tabWidget); - QHBoxLayout *rwlh = new QHBoxLayout(rulesWidget); + TQWidget *rulesWidget = new TQWidget(dialog_->tabWidget); + TQHBoxLayout *rwlh = new TQHBoxLayout(rulesWidget); applist = new KListView(rulesWidget); applist->setFullWidth(true); #if KDE_IS_VERSION(3,3,91) applist->setShadeSortColumn(false); #endif applist->setAllColumnsShowFocus( true ); - applist->setSelectionMode(QListView::Single); + applist->setSelectionMode(TQListView::Single); applist->addColumn ( i18n("Name") ); applist->addColumn ( i18n("Links to") ); - QDir d( QDir::homeDirPath() + "/.baghira", 0L, QDir::Name | QDir::IgnoreCase, QDir::Files | QDir::Readable | QDir::Writable ); + TQDir d( TQDir::homeDirPath() + "/.baghira", 0L, TQDir::Name | TQDir::IgnoreCase, TQDir::Files | TQDir::Readable | TQDir::Writable ); if (!d.exists()) - d.mkdir(QDir::homeDirPath() + "/.baghira"); + d.mkdir(TQDir::homeDirPath() + "/.baghira"); else { for ( uint i = 0; i < d.count(); i++ ) { - QFileInfo FI = QFileInfo(d, d[i]); + TQFileInfo FI = TQFileInfo(d, d[i]); if (FI.isSymLink()) applist->insertItem(new KListViewItem(applist, d[i], FI.readLink().section('/',-1,-1))); else @@ -321,27 +321,27 @@ kstyle_baghira_config::kstyle_baghira_config(QWidget *parent, const char *name, } rwlh->addWidget(applist); // rwlh->addLayout(rwlv); - QVBoxLayout *rwlv = new QVBoxLayout(rwlh); + TQVBoxLayout *rwlv = new TQVBoxLayout(rwlh); rwlv->addStretch(); - QPushButton *btnNew = new QPushButton("New...", rulesWidget); - QPushButton *btnEdit = new QPushButton("Edit...", rulesWidget); - QPushButton *btnDel = new QPushButton("Remove", rulesWidget); - QPushButton *btnDet = new QPushButton("Detect", rulesWidget); + TQPushButton *btnNew = new TQPushButton("New...", rulesWidget); + TQPushButton *btnEdit = new TQPushButton("Edit...", rulesWidget); + TQPushButton *btnDel = new TQPushButton("Remove", rulesWidget); + TQPushButton *btnDet = new TQPushButton("Detect", rulesWidget); rwlv->addWidget(btnNew); rwlv->addWidget(btnEdit); rwlv->addWidget(btnDel); rwlv->addSpacing( 5 ); rwlv->addWidget(btnDet); rwlv->addStretch(); - dialog_->tabWidget->addTab( rulesWidget, QString("Rules") ); + dialog_->tabWidget->addTab( rulesWidget, TQString("Rules") ); appsetter = new AppSetter(this); connect(btnNew, SIGNAL(clicked()), appsetter, SLOT(show())); connect(btnEdit, SIGNAL(clicked()), this, SLOT(editApp())); - connect(this, SIGNAL(editApp(QString, QString)), appsetter, SLOT(show(QString, QString))); + connect(this, SIGNAL(editApp(TQString, TQString)), appsetter, SLOT(show(TQString, TQString))); connect(btnDel, SIGNAL(clicked()), this, SLOT(removeApp())); connect(btnDet, SIGNAL(clicked()), this, SLOT(selectWindow())); - connect(appsetter, SIGNAL(addApp(QString, QString)), this, SLOT(addApp(QString, QString))); - connect(appsetter, SIGNAL(removeApp(QString)), this, SLOT(removeApp(QString))); + connect(appsetter, SIGNAL(addApp(TQString, TQString)), this, SLOT(addApp(TQString, TQString))); + connect(appsetter, SIGNAL(removeApp(TQString)), this, SLOT(removeApp(TQString))); // preview stuff baseImage = uic_findImage("button-base"); @@ -356,9 +356,9 @@ kstyle_baghira_config::kstyle_baghira_config(QWidget *parent, const char *name, crNotes[0] = "<qt>© 2003-2005 by Thomas Lübking<br>http://baghira.SourceForge.net</qt>"; crNotes[1] = "<qt>© \"Design\" 2001-2005 by Apple inc.<br>http://www.apple.com"; crNotes[2] = "<qt>© \"Milk\" 2002-2005 by Max Rudberg<br>http://www.maxthemes.com</qt>"; - timer = new QTimer(); + timer = new TQTimer(); connect( timer, SIGNAL(timeout()), this, SLOT(updateCR()) ); - QString tmpString(QT_BUILD_KEY); + TQString tmpString(TQT_BUILD_KEY); about_->systemLabel->setText(tmpString.section(' ',1,1)); about_->cpuLabel->setText(tmpString.section(' ',0,0)); about_->setFixedSize (380, 430); @@ -413,25 +413,25 @@ kstyle_baghira_config::kstyle_baghira_config(QWidget *parent, const char *name, connect(dialog_->drawMenuStripe, SIGNAL(stateChanged(int)), this, SLOT(configChanged())); connect(dialog_->glossyMenus, SIGNAL(stateChanged(int)), this, SLOT(configChanged())); - connect(dialog_->customInactiveColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); -connect(dialog_->toolbuttonHighColor, SIGNAL(changed(const QColor &)), this, SLOT(changeTooluttonHighlightColor(const QColor &))); - connect(dialog_->treeLineColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->customExpanderColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->menuTextColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->menuTextColorHigh, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->menuColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->menuColorHigh, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->menuColor2, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->radioOffColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->radioOnColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->checkOffColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->checkOnColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->sliderColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->hoverSliderColorColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->pressedSliderColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->inactiveTabColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->activeTabColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); - connect(dialog_->menuStripeColor, SIGNAL(changed(const QColor &)), this, SLOT(configChanged())); + connect(dialog_->customInactiveColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); +connect(dialog_->toolbuttonHighColor, SIGNAL(changed(const TQColor &)), this, SLOT(changeTooluttonHighlightColor(const TQColor &))); + connect(dialog_->treeLineColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->customExpanderColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->menuTextColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->menuTextColorHigh, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->menuColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->menuColorHigh, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->menuColor2, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->radioOffColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->radioOnColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->checkOffColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->checkOnColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->sliderColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->hoverSliderColorColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->pressedSliderColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->inactiveTabColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->activeTabColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); + connect(dialog_->menuStripeColor, SIGNAL(changed(const TQColor &)), this, SLOT(configChanged())); connect(dialog_->sliderButtonRed, SIGNAL(valueChanged (int)), this, SLOT(sliderButtonRedChanged(int))); connect(dialog_->sliderButtonGreen, SIGNAL(valueChanged (int)), this, SLOT(sliderButtonGreenChanged(int))); @@ -457,7 +457,7 @@ connect(dialog_->toolbuttonHighColor, SIGNAL(changed(const QColor &)), this, SLO load(); loadDone = true; - dialog_->pixmapButtonPreview->setPixmap(*tintButton(baseImage, QColor(sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue))); + dialog_->pixmapButtonPreview->setPixmap(*tintButton(baseImage, TQColor(sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue))); }; @@ -475,14 +475,14 @@ void kstyle_baghira_config::setPresetColor(int i) void kstyle_baghira_config::load() { - QString tmpString = QDir::homeDirPath() + "/.qt/baghirarc"; + TQString tmpString = TQDir::homeDirPath() + "/.qt/baghirarc"; load (tmpString); } -void kstyle_baghira_config::load(QString &fileName) +void kstyle_baghira_config::load(TQString &fileName) { KConfig *config = new KConfig(fileName); -// QSettings config; +// TQSettings config; config->setGroup("BAB"); // general Design dialog_->defaultStyle->setCurrentItem(config->readNumEntry("defaultState", 0 )); @@ -498,10 +498,10 @@ void kstyle_baghira_config::load(QString &fileName) dialog_->bevelHighlights->setChecked( config->readBoolEntry( "Design_BevelAsHighlight", true)); dialog_->colorMode->setCurrentItem(config->readNumEntry("Design_ButtonStyle", 0)); dialog_->inactiveColorType->setCurrentItem(config->readNumEntry( "Design_InactiveButtonStyle", 1)); - dialog_->customInactiveColor->setColor(QColor(config->readNumEntry("Design_InactiveButtonColor",(int)colorGroup().background().rgb()))); + dialog_->customInactiveColor->setColor(TQColor(config->readNumEntry("Design_InactiveButtonColor",(int)colorGroup().background().rgb()))); dialog_->centerTabs->setChecked( config->readBoolEntry( "Design_CenterTabs", true)); // button color stuff - QColor tmpColor = QColor(config->readNumEntry("Design_ButtonColor",(int)colorGroup().button().rgb())); + TQColor tmpColor = TQColor(config->readNumEntry("Design_ButtonColor",(int)colorGroup().button().rgb())); dialog_->sliderButtonRed->setValue(sliderButtonRedValue = tmpColor.red()); dialog_->sliderButtonGreen->setValue(sliderButtonGreenValue = tmpColor.green()); dialog_->sliderButtonBlue->setValue(sliderButtonBlueValue = tmpColor.blue()); @@ -514,14 +514,14 @@ void kstyle_baghira_config::load(QString &fileName) dialog_->useRectLVH->setChecked( config->readBoolEntry( "Special_UseFlatLVH", false)); dialog_->drawTreeLines->setChecked( config->readBoolEntry( "Special_DrawTreeLines", false)); dialog_->treeLineMode->setCurrentItem(config->readNumEntry( "Special_TreelineStyle", 0)); - dialog_->treeLineColor->setColor( QColor( config->readNumEntry( "Special_TreelineColor", (int) colorGroup().mid().rgb()))); + dialog_->treeLineColor->setColor( TQColor( config->readNumEntry( "Special_TreelineColor", (int) colorGroup().mid().rgb()))); dialog_->expanderMode->setCurrentItem(config->readNumEntry( "Special_ExpanderStyle", 0)); dialog_->useCustomExpanderColor->setChecked( config->readBoolEntry( "Special_CustomExpanderColor", false)); - dialog_->customExpanderColor->setColor( QColor( config->readNumEntry( "Special_ExpanderColor", (int) colorGroup().text().rgb()))); + dialog_->customExpanderColor->setColor( TQColor( config->readNumEntry( "Special_ExpanderColor", (int) colorGroup().text().rgb()))); //Kicker dialog_->removeKickerBevel->setChecked( config->readBoolEntry( "Special_RemoveKickerBevel", true)); dialog_->roundTasks->setChecked( config->readBoolEntry( "Special_RoundTaskbuttons", false)); - QFile file(QDir::homeDirPath() + "/.kde/share/apps/kicker/applets/menuapplet.desktop"); + TQFile file(TQDir::homeDirPath() + "/.kde/share/apps/kicker/applets/menuapplet.desktop"); dialog_->replaceMenubar->setChecked( menuReplaced = file.exists() ); //Scrollbars dialog_->animateSlider->setChecked( config->readBoolEntry( "Special_AnimateSlider", true)); @@ -542,29 +542,29 @@ void kstyle_baghira_config::load(QString &fileName) //Look dialog_->shadowMenuText->setChecked( config->readBoolEntry( "Menu_ShadowText", true)); dialog_->menuColorMode->setCurrentItem(config->readNumEntry("Menu_ColorStyle")); - dialog_->menuTextColor->setColor( QColor( config->readNumEntry( "Menu_TextColor", (int) colorGroup().text().rgb()))); - dialog_->menuTextColorHigh->setColor( QColor( config->readNumEntry( "Menu_TextColorHighlight", (int) colorGroup().highlightedText().rgb()))); - dialog_->menuColor->setColor( QColor( config->readNumEntry( "Menu_Color1", (int) colorGroup().background().rgb()))); - dialog_->menuColor2->setColor( QColor( config->readNumEntry( "Menu_Color2", (int) colorGroup().background().dark(130).rgb()))); - dialog_->menuColorHigh->setColor( QColor( config->readNumEntry( "Menu_ColorHighlight", (int) colorGroup().highlight().rgb()))); + dialog_->menuTextColor->setColor( TQColor( config->readNumEntry( "Menu_TextColor", (int) colorGroup().text().rgb()))); + dialog_->menuTextColorHigh->setColor( TQColor( config->readNumEntry( "Menu_TextColorHighlight", (int) colorGroup().highlightedText().rgb()))); + dialog_->menuColor->setColor( TQColor( config->readNumEntry( "Menu_Color1", (int) colorGroup().background().rgb()))); + dialog_->menuColor2->setColor( TQColor( config->readNumEntry( "Menu_Color2", (int) colorGroup().background().dark(130).rgb()))); + dialog_->menuColorHigh->setColor( TQColor( config->readNumEntry( "Menu_ColorHighlight", (int) colorGroup().highlight().rgb()))); dialog_->drawMenuStripe->setChecked(config->readBoolEntry( "Menu_DrawMenuStripe", false)); dialog_->glossyMenus->setChecked(config->readBoolEntry( "Menu_Glossy", true)); - dialog_->menuStripeColor->setColor( QColor( config->readNumEntry( "Menu_StripeColor", (int) Qt::white.rgb()))); + dialog_->menuStripeColor->setColor( TQColor( config->readNumEntry( "Menu_StripeColor", (int) TQt::white.rgb()))); // custom colors dialog_->useCustomColors->setChecked( config->readBoolEntry( "Colors_UseCustomColors", false)); - dialog_->radioOffColor->setColor( QColor( config->readNumEntry( "Colors_RadioOff", ( int ) colorGroup().background().rgb()))); - dialog_->radioOnColor->setColor( QColor( config->readNumEntry( "Colors_RadioOn", ( int ) colorGroup().button().rgb()))); - dialog_->checkOffColor->setColor( QColor( config->readNumEntry( "Colors_CheckOff", ( int ) colorGroup().background().rgb()))); - dialog_->checkOnColor->setColor( QColor( config->readNumEntry( "Colors_CheckOn", ( int ) colorGroup().button().rgb()))); - dialog_->sliderColor->setColor( QColor( config->readNumEntry( "Colors_Slider", ( int ) colorGroup().button().rgb()))); - dialog_->hoverSliderColorColor->setColor(QColor(config->readNumEntry("Colors_SliderHovered",(int)colorGroup().button().rgb()))); - dialog_->pressedSliderColor->setColor(QColor(config->readNumEntry("Colors_SliderPressed",(int) colorGroup().button().dark(110).rgb()))); - dialog_->sliderGrooveColor->setColor(QColor(config->readNumEntry("Colors_SliderGroove",(int)colorGroup().background().rgb()))); - dialog_->inactiveTabColor->setColor(QColor(config->readNumEntry("Colors_TabInactive",(int) colorGroup().background().rgb()))); - dialog_->activeTabColor->setColor(QColor(config->readNumEntry("Colors_TabActive",(int)colorGroup().button().rgb()))); + dialog_->radioOffColor->setColor( TQColor( config->readNumEntry( "Colors_RadioOff", ( int ) colorGroup().background().rgb()))); + dialog_->radioOnColor->setColor( TQColor( config->readNumEntry( "Colors_RadioOn", ( int ) colorGroup().button().rgb()))); + dialog_->checkOffColor->setColor( TQColor( config->readNumEntry( "Colors_CheckOff", ( int ) colorGroup().background().rgb()))); + dialog_->checkOnColor->setColor( TQColor( config->readNumEntry( "Colors_CheckOn", ( int ) colorGroup().button().rgb()))); + dialog_->sliderColor->setColor( TQColor( config->readNumEntry( "Colors_Slider", ( int ) colorGroup().button().rgb()))); + dialog_->hoverSliderColorColor->setColor(TQColor(config->readNumEntry("Colors_SliderHovered",(int)colorGroup().button().rgb()))); + dialog_->pressedSliderColor->setColor(TQColor(config->readNumEntry("Colors_SliderPressed",(int) colorGroup().button().dark(110).rgb()))); + dialog_->sliderGrooveColor->setColor(TQColor(config->readNumEntry("Colors_SliderGroove",(int)colorGroup().background().rgb()))); + dialog_->inactiveTabColor->setColor(TQColor(config->readNumEntry("Colors_TabInactive",(int) colorGroup().background().rgb()))); + dialog_->activeTabColor->setColor(TQColor(config->readNumEntry("Colors_TabActive",(int)colorGroup().button().rgb()))); dialog_->tintBrush->setChecked( config->readBoolEntry( "Colors_TintBrushedMetal", false)); - brushTint = QColor(config->readNumEntry("Colors_BrushTint",(int)colorGroup().background().rgb())); + brushTint = TQColor(config->readNumEntry("Colors_BrushTint",(int)colorGroup().background().rgb())); // dialog_->brushTintSaturaion->setValue(settings.readNumEntry( "/qt/Baghira/brushTintSaturation", 3)); baseImage2 = uic_findImage("brush-me"); dialog_->pixmapBrushPreview->setPixmap(*tintBrush(baseImage2, brushTint)); @@ -572,13 +572,13 @@ void kstyle_baghira_config::load(QString &fileName) dialog_->sliderBrushGreen->setValue(sliderBrushGreenValue = brushTint.green()); dialog_->sliderBrushBlue->setValue(sliderBrushBlueValue = brushTint.blue()); config->setGroup("Menubar"); - dialog_->menuMaxWidth->setValue(config->readNumEntry("Width", QDesktopWidget().availableGeometry().width())); + dialog_->menuMaxWidth->setValue(config->readNumEntry("Width", TQDesktopWidget().availableGeometry().width())); config->setGroup("Sidebar"); delete config; config = new KConfig("kdeglobals"); config->setGroup( "Toolbar style" ); - dialog_->toolbuttonHighColor->setColor(config->readColorEntry("HighlightColor", new QColor(103,141,178)) ); + dialog_->toolbuttonHighColor->setColor(config->readColorEntry("HighlightColor", new TQColor(103,141,178)) ); delete config; } @@ -611,7 +611,7 @@ void kstyle_baghira_config::defaults() dialog_->shadowSlider->setChecked( false); dialog_->squeezeSlider->setChecked( false); dialog_->unhoveredToolButtons->setCurrentItem(2); - dialog_->toolbuttonHighColor->setColor( QColor(103,141,178) ); + dialog_->toolbuttonHighColor->setColor( TQColor(103,141,178) ); dialog_->drawTreeLines->setChecked( false); dialog_->useCustomExpanderColor->setChecked( false); dialog_->treeLineMode->setCurrentItem(0); @@ -639,7 +639,7 @@ void kstyle_baghira_config::defaults() dialog_->menuColorHigh->setColor( colorGroup().highlight().rgb()); dialog_->drawMenuStripe->setChecked(false); dialog_->glossyMenus->setChecked(true); - dialog_->menuStripeColor->setColor( Qt::white.rgb()); + dialog_->menuStripeColor->setColor( TQt::white.rgb()); // custom colors dialog_->useCustomColors->setChecked( false); @@ -659,12 +659,12 @@ void kstyle_baghira_config::defaults() void kstyle_baghira_config::save() { - QString tmpString = QDir::homeDirPath() + "/.qt/baghirarc"; + TQString tmpString = TQDir::homeDirPath() + "/.qt/baghirarc"; save(tmpString); // emit changed(true); } -void kstyle_baghira_config::changeTooluttonHighlightColor(const QColor & color) +void kstyle_baghira_config::changeTooluttonHighlightColor(const TQColor & color) { KConfig *config = new KConfig("kdeglobals"); config->setGroup( "Toolbar style" ); @@ -681,9 +681,9 @@ void kstyle_baghira_config::handleButtonStyles(int i) configChanged(); } -void kstyle_baghira_config::save(QString &fileName) +void kstyle_baghira_config::save(TQString &fileName) { -// QSettings *config = new QSettings; +// TQSettings *config = new TQSettings; KConfig *config = new KConfig(fileName); config->setGroup("BAB"); //General Design @@ -704,7 +704,7 @@ void kstyle_baghira_config::save(QString &fileName) config->writeEntry("Design_InactiveButtonColor", (int)dialog_->customInactiveColor->color().rgb()); config->writeEntry("Design_CenterTabs", dialog_->centerTabs->isOn()); //button color stuff - config->writeEntry("Design_ButtonColor", (int)(QColor(sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue).rgb())); + config->writeEntry("Design_ButtonColor", (int)(TQColor(sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue).rgb())); // special Widgets //listviews @@ -719,17 +719,17 @@ void kstyle_baghira_config::save(QString &fileName) //Kicker config->writeEntry("Special_RemoveKickerBevel", dialog_->removeKickerBevel->isOn()); config->writeEntry("Special_RoundTaskbuttons", dialog_->roundTasks->isOn()); - QDir tmpDir(QDir::homeDirPath() + "/.kde"); - if (!tmpDir.exists()) tmpDir.mkdir(QDir::homeDirPath() + "/.kde"); - tmpDir.setPath(QDir::homeDirPath() + "/.kde/share"); - if (!tmpDir.exists()) tmpDir.mkdir(QDir::homeDirPath() + "/.kde/share"); - tmpDir.setPath(QDir::homeDirPath() + "/.kde/share/apps"); - if (!tmpDir.exists()) tmpDir.mkdir(QDir::homeDirPath() + "/.kde/share/apps"); - tmpDir.setPath(QDir::homeDirPath() + "/.kde/share/apps/kicker"); - if (!tmpDir.exists()) tmpDir.mkdir(QDir::homeDirPath() + "/.kde/share/apps/kicker"); - tmpDir.setPath(QDir::homeDirPath() + "/.kde/share/apps/kicker/applets"); - if (!tmpDir.exists()) tmpDir.mkdir(QDir::homeDirPath() + "/.kde/share/apps/kicker/applets"); - QFile file(QDir::homeDirPath() + "/.kde/share/apps/kicker/applets/menuapplet.desktop"); + TQDir tmpDir(TQDir::homeDirPath() + "/.kde"); + if (!tmpDir.exists()) tmpDir.mkdir(TQDir::homeDirPath() + "/.kde"); + tmpDir.setPath(TQDir::homeDirPath() + "/.kde/share"); + if (!tmpDir.exists()) tmpDir.mkdir(TQDir::homeDirPath() + "/.kde/share"); + tmpDir.setPath(TQDir::homeDirPath() + "/.kde/share/apps"); + if (!tmpDir.exists()) tmpDir.mkdir(TQDir::homeDirPath() + "/.kde/share/apps"); + tmpDir.setPath(TQDir::homeDirPath() + "/.kde/share/apps/kicker"); + if (!tmpDir.exists()) tmpDir.mkdir(TQDir::homeDirPath() + "/.kde/share/apps/kicker"); + tmpDir.setPath(TQDir::homeDirPath() + "/.kde/share/apps/kicker/applets"); + if (!tmpDir.exists()) tmpDir.mkdir(TQDir::homeDirPath() + "/.kde/share/apps/kicker/applets"); + TQFile file(TQDir::homeDirPath() + "/.kde/share/apps/kicker/applets/menuapplet.desktop"); if (dialog_->replaceMenubar->isOn()) { file.open(IO_WriteOnly); @@ -741,7 +741,7 @@ Encoding=UTF-8\n\ Name=BaghiraMenu\n\ X-KDE-Library=b_menu_panelapplet\n\ X-KDE-UniqueApplet=true\n"; - file.writeBlock( msg, qstrlen(msg) ); + file.writeBlock( msg, tqstrlen(msg) ); file.close(); } else @@ -788,7 +788,7 @@ X-KDE-UniqueApplet=true\n"; config->writeEntry("Colors_TabInactive",(int) dialog_->inactiveTabColor->color().rgb()); config->writeEntry("Colors_TabActive", (int)dialog_->activeTabColor->color().rgb()); config->writeEntry("Colors_TintBrushedMetal", dialog_->tintBrush->isOn()); - config->writeEntry("Colors_BrushTint",(int)qRgb(sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue)); + config->writeEntry("Colors_BrushTint",(int)tqRgb(sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue)); config->setGroup("Menubar"); config->writeEntry("Width", dialog_->menuMaxWidth->value()); config->sync(); @@ -807,7 +807,7 @@ void kstyle_baghira_config::configChanged() } -QString kstyle_baghira_config::quickHelp() const +TQString kstyle_baghira_config::quickHelp() const { return i18n("Configure Your Cat"); } @@ -836,14 +836,14 @@ void kstyle_baghira_config::enableMenuColorStuff(int d) void kstyle_baghira_config::buttonLoadAction() { - QString tmpString = KFileDialog::getOpenFileName(QDir::homeDirPath(), "*", this, "Select a Baghira config file"); + TQString tmpString = KFileDialog::getOpenFileName(TQDir::homeDirPath(), "*", this, "Select a Baghira config file"); if (!tmpString.isEmpty()) load(tmpString); } void kstyle_baghira_config::buttonSaveAsAction() { - QString tmpString = KFileDialog::getSaveFileName(QDir::homeDirPath(), "*", this, "Save current Baghira configuration as"); + TQString tmpString = KFileDialog::getSaveFileName(TQDir::homeDirPath(), "*", this, "Save current Baghira configuration as"); save(tmpString); } @@ -854,19 +854,19 @@ void kstyle_baghira_config::editApp() void kstyle_baghira_config::removeApp() { - QString string = QDir::homeDirPath() + "/.baghira/" + applist->currentItem()->text(0); - QFile::remove(string); + TQString string = TQDir::homeDirPath() + "/.baghira/" + applist->currentItem()->text(0); + TQFile::remove(string); applist->takeItem(applist->currentItem()); } -void kstyle_baghira_config::removeApp(QString name) +void kstyle_baghira_config::removeApp(TQString name) { - QString string = QDir::homeDirPath() + "/.baghira/" + name; - QFile::remove(string); - applist->takeItem(applist->findItem(name, 0, Qt::ExactMatch)); + TQString string = TQDir::homeDirPath() + "/.baghira/" + name; + TQFile::remove(string); + applist->takeItem(applist->findItem(name, 0, TQt::ExactMatch)); } -void kstyle_baghira_config::addApp(QString string, QString linkString) +void kstyle_baghira_config::addApp(TQString string, TQString linkString) { applist->insertItem(new KListViewItem(applist, string, linkString)); applist->sort(); @@ -878,34 +878,34 @@ void kstyle_baghira_config::selectWindow() // use a dialog, so that all user input is blocked // use WX11BypassWM and moving away so that it's not actually visible // grab only mouse, so that keyboard can be used e.g. for switching windows - grabber = new QDialog( NULL, NULL, true, WX11BypassWM ); + grabber = new TQDialog( NULL, NULL, true, WX11BypassWM ); grabber->move( -1000, -1000 ); grabber->show(); grabber->grabMouse( crossCursor ); grabber->installEventFilter( this ); } -Atom wm_state = XInternAtom( qt_xdisplay(), "WM_STATE", False ); -// Atom wm_state = XInternAtom( qt_xdisplay(), "WM_COMMAND", False ); +Atom wm_state = XInternAtom( tqt_xdisplay(), "WM_STATE", False ); +// Atom wm_state = XInternAtom( tqt_xdisplay(), "WM_COMMAND", False ); -bool kstyle_baghira_config::eventFilter( QObject* o, QEvent* e ) +bool kstyle_baghira_config::eventFilter( TQObject* o, TQEvent* e ) // adapted from kcmkwin... again ;) { if( o != grabber ) return false; - if( e->type() != QEvent::MouseButtonRelease ) + if( e->type() != TQEvent::MouseButtonRelease ) return false; delete grabber; grabber = NULL; - if( static_cast< QMouseEvent* >( e )->button() != LeftButton ) + if( static_cast< TQMouseEvent* >( e )->button() != LeftButton ) return true; WId winId = findWindow(); XClassHint classHint; - if (XGetClassHint(qt_xdisplay(), winId, &classHint)) + if (XGetClassHint(tqt_xdisplay(), winId, &classHint)) { - QString tmpString = QString( classHint.res_class ).lower() + " (uncertain)"; - appsetter->show(tmpString, QString()); -// qWarning("class: %s",QString( classHint.res_class ).lower().ascii()); + TQString tmpString = TQString( classHint.res_class ).lower() + " (uncertain)"; + appsetter->show(tmpString, TQString()); +// tqWarning("class: %s",TQString( classHint.res_class ).lower().ascii()); XFree( classHint.res_name ); XFree( classHint.res_class ); } @@ -919,13 +919,13 @@ WId kstyle_baghira_config::findWindow() Window child; uint mask; int rootX, rootY, x, y; - Window parent = qt_xrootwin(); -// Atom wm_state = XInternAtom( qt_xdisplay(), "WM_STATE", False ); + Window parent = tqt_xrootwin(); +// Atom wm_state = XInternAtom( tqt_xdisplay(), "WM_STATE", False ); for( int i = 0; i < 10; ++i ) { - XQueryPointer( qt_xdisplay(), parent, &root, &child, + XQueryPointer( tqt_xdisplay(), parent, &root, &child, &rootX, &rootY, &x, &y, &mask ); if( child == None ) return 0; @@ -933,7 +933,7 @@ WId kstyle_baghira_config::findWindow() int format; unsigned long nitems, after; unsigned char* prop; - if( XGetWindowProperty( qt_xdisplay(), child, wm_state, 0, 0, False, AnyPropertyType, &type, &format, &nitems, &after, &prop ) == Success ) + if( XGetWindowProperty( tqt_xdisplay(), child, wm_state, 0, 0, False, AnyPropertyType, &type, &format, &nitems, &after, &prop ) == Success ) { if( prop != NULL ) XFree( prop ); @@ -968,28 +968,28 @@ void kstyle_baghira_config::menuToggled(bool active) extern "C" { - QWidget* allocate_kstyle_config(QWidget* parent){ + TQWidget* allocate_kstyle_config(TQWidget* parent){ return(new kstyle_baghira_config(parent, "BaghiraConfig")); } } -AppSetter::AppSetter(QWidget *parent, const char *name) : QWidget(parent, name, Qt::WType_Dialog | Qt::WShowModal ) +AppSetter::AppSetter(TQWidget *parent, const char *name) : TQWidget(parent, name, TQt::WType_Dialog | TQt::WShowModal ) { isEdit = FALSE; - QLabel *label1 = new QLabel(i18n("<qt><b>Application Name</b></qt>"), this); - command = new QLineEdit(this); + TQLabel *label1 = new TQLabel(i18n("<qt><b>Application Name</b></qt>"), this); + command = new TQLineEdit(this); - QLabel *linkTo = new QLabel(i18n("<qt><b>Just like</b></qt>"),this); - link = new QComboBox(this); + TQLabel *linkTo = new TQLabel(i18n("<qt><b>Just like</b></qt>"),this); + link = new TQComboBox(this); - box = new QGroupBox(2,Qt::Horizontal,i18n("Custom Settings"),this); + box = new TQGroupBox(2,TQt::Horizontal,i18n("Custom Settings"),this); box->setCheckable( true ); - new QLabel(i18n("<qt><b>Style</b></qt>"), box); - new QLabel("<qt><b>Deco</b></qt>", box); + new TQLabel(i18n("<qt><b>Style</b></qt>"), box); + new TQLabel("<qt><b>Deco</b></qt>", box); - style = new QComboBox(box); + style = new TQComboBox(box); style->insertItem(i18n("Don't set")); style->insertItem("Jaguar"); style->insertItem("Panther"); @@ -997,7 +997,7 @@ AppSetter::AppSetter(QWidget *parent, const char *name) : QWidget(parent, name, style->insertItem("Tiger"); style->insertItem("Milk"); - deco = new QComboBox(box); + deco = new TQComboBox(box); deco->insertItem(i18n("Don't set")); deco->insertItem("Jaguar"); deco->insertItem("Panther"); @@ -1005,10 +1005,10 @@ AppSetter::AppSetter(QWidget *parent, const char *name) : QWidget(parent, name, deco->insertItem("Tiger"); deco->insertItem("Milk"); - new QLabel(i18n("<qt><b>Buttons</b></qt>"), box); - new QLabel(i18n("<qt><b>Toolbuttons</b></qt>"), box); + new TQLabel(i18n("<qt><b>Buttons</b></qt>"), box); + new TQLabel(i18n("<qt><b>Toolbuttons</b></qt>"), box); - buttons = new QComboBox(box); + buttons = new TQComboBox(box); buttons->insertItem("Jaguar"); buttons->insertItem("Panther"); buttons->insertItem("iTunes"); @@ -1016,48 +1016,48 @@ AppSetter::AppSetter(QWidget *parent, const char *name) : QWidget(parent, name, buttons->insertItem("Milk"); - toolButtons = new QComboBox(box); + toolButtons = new TQComboBox(box); toolButtons->insertItem("Jaguar"); toolButtons->insertItem("Panther"); toolButtons->insertItem("iTunes"); toolButtons->insertItem("Tiger"); toolButtons->insertItem("Milk"); - new QLabel(i18n("<qt><b>Tab vs. Chooser</b></qt>"), box); - new QLabel(i18n("<qt>Inactive Button</qt>"), box); + new TQLabel(i18n("<qt><b>Tab vs. Chooser</b></qt>"), box); + new TQLabel(i18n("<qt>Inactive Button</qt>"), box); - tabs = new QComboBox(box); + tabs = new TQComboBox(box); tabs->insertItem(i18n("Don't set")); tabs->insertItem("Tabs"); tabs->insertItem("Adaptive"); tabs->insertItem("Choosers"); - inbutton = new QComboBox(box); + inbutton = new TQComboBox(box); inbutton->insertItem("Fixed"); inbutton->insertItem("Background"); inbutton->insertItem("Active Button"); - scanlines = new QCheckBox("Show scanlines", box); + scanlines = new TQCheckBox("Show scanlines", box); - QWidget *dumb = new QWidget(box); - customColors = new QCheckBox(dumb); - buttonColors = new QPushButton("Custom Colors", dumb); - QHBoxLayout *clh = new QHBoxLayout(dumb); + TQWidget *dumb = new TQWidget(box); + customColors = new TQCheckBox(dumb); + buttonColors = new TQPushButton("Custom Colors", dumb); + TQHBoxLayout *clh = new TQHBoxLayout(dumb); clh->addWidget(customColors); clh->addWidget(buttonColors); - QVBoxLayout *lv = new QVBoxLayout(this,11,6); + TQVBoxLayout *lv = new TQVBoxLayout(this,11,6); lv->addWidget(label1); lv->addWidget(command); - QHBoxLayout *lh0 = new QHBoxLayout(lv); + TQHBoxLayout *lh0 = new TQHBoxLayout(lv); lh0->addWidget(linkTo); lh0->addWidget(link); lv->addWidget(box); - QHBoxLayout *lh = new QHBoxLayout(lv); - QPushButton *cancel = new QPushButton("Cancel",this); + TQHBoxLayout *lh = new TQHBoxLayout(lv); + TQPushButton *cancel = new TQPushButton("Cancel",this); lh->addWidget(cancel); - QPushButton *ok = new QPushButton("Ok",this); + TQPushButton *ok = new TQPushButton("Ok",this); lh->addWidget(ok); colorDialog = new ColorDialog(this); @@ -1102,20 +1102,20 @@ void AppSetter::updateColors() void AppSetter::show() { link->clear(); - QDir d( QDir::homeDirPath() + "/.baghira", 0L, QDir::Name | QDir::IgnoreCase, QDir::Files | QDir::NoSymLinks | QDir::Readable | QDir::Writable ); + TQDir d( TQDir::homeDirPath() + "/.baghira", 0L, TQDir::Name | TQDir::IgnoreCase, TQDir::Files | TQDir::NoSymLinks | TQDir::Readable | TQDir::Writable ); for ( uint i = 0; i < d.count(); i++ ) link->insertItem(d[i]); - QWidget::show(); + TQWidget::show(); } -void AppSetter::show(QString appName, QString linkString) +void AppSetter::show(TQString appName, TQString linkString) { isEdit = true; oldName = appName; oldLink = linkString; command->setText(appName); FILE *file = NULL; - QString tmpString = QDir::homeDirPath() + "/.baghira/" + appName; + TQString tmpString = TQDir::homeDirPath() + "/.baghira/" + appName; if( (file = fopen(tmpString.latin1(), "r")) != NULL ) { uint s, d, b, t, tc, sc, ib; @@ -1163,10 +1163,10 @@ void AppSetter::resetColorPicker() for (int i = 0; i < 8; i++) { colorDialog->picker[i]->blockSignals(true); - colorDialog->picker[i]->setColor(QColor(colors[i])); + colorDialog->picker[i]->setColor(TQColor(colors[i])); colorDialog->picker[i]->blockSignals(false); } - ((QWidget*)colorDialog->demo)->repaint(false); + ((TQWidget*)colorDialog->demo)->repaint(false); } else { @@ -1182,7 +1182,7 @@ void AppSetter::resetColorPicker() colorDialog->picker[Alternate]->setColor(KGlobalSettings::alternateBackgroundColor()); for (int i = 0; i < 8; i++) colorDialog->picker[i]->blockSignals(false); - ((QWidget*)colorDialog->demo)->repaint(false); + ((TQWidget*)colorDialog->demo)->repaint(false); } } @@ -1191,11 +1191,11 @@ void AppSetter::save() if (command->text() != "" && (!box->isChecked() || (style->currentItem() != 0 && deco->currentItem() != 0))) { if (!isEdit) - emit addApp(command->text(), box->isChecked() ? QString() : link->currentText()); + emit addApp(command->text(), box->isChecked() ? TQString() : link->currentText()); else if (command->text() != oldName || link->currentText() != oldLink) { emit removeApp(oldName); - emit addApp(command->text(), box->isChecked() ? QString() : link->currentText()); + emit addApp(command->text(), box->isChecked() ? TQString() : link->currentText()); } if (!customColors->isChecked()) { @@ -1203,7 +1203,7 @@ void AppSetter::save() colors[i] = -1; } FILE *file = NULL; - QString tmpString = QDir::homeDirPath() + "/.baghira/" + command->text(); + TQString tmpString = TQDir::homeDirPath() + "/.baghira/" + command->text(); if (box->isChecked()) // custom settings { if( (file = fopen(tmpString.latin1(), "w")) != NULL ) @@ -1214,8 +1214,8 @@ void AppSetter::save() } else // just link { - QString tmpString2 = QDir::homeDirPath() + "/.baghira/" + link->currentText(); - QFile::remove(tmpString); // just to be sure ;) + TQString tmpString2 = TQDir::homeDirPath() + "/.baghira/" + link->currentText(); + TQFile::remove(tmpString); // just to be sure ;) symlink (tmpString2.latin1(), tmpString.latin1()); } } diff --git a/config/kstyle_baghira_config.h b/config/kstyle_baghira_config.h index 35830dd..df97cc3 100644 --- a/config/kstyle_baghira_config.h +++ b/config/kstyle_baghira_config.h @@ -22,34 +22,34 @@ #define _KSTYLE_BAGHIRA_CONFIG_H_ //#include <kcmodule.h> -#include <qcolor.h> -#include <qimage.h> +#include <tqcolor.h> +#include <tqimage.h> #include <kaboutdata.h> #include "configdialog.h" #include "help.h" #include "about.h" class KListView; -class QPushButton; +class TQPushButton; class AppSetter; -class QTimer; -class QCheckBox; -class QComboBox; -class QGroupBox; +class TQTimer; +class TQCheckBox; +class TQComboBox; +class TQGroupBox; -class kstyle_baghira_config: public QWidget +class kstyle_baghira_config: public TQWidget { Q_OBJECT public: - kstyle_baghira_config( QWidget *parent=0, const char *name=0, const QStringList& = QStringList() ); + kstyle_baghira_config( TQWidget *parent=0, const char *name=0, const TQStringList& = TQStringList() ); ~kstyle_baghira_config(); virtual void load(); - void load(QString &fileName); - void save(QString &fileName); + void load(TQString &fileName); + void save(TQString &fileName); // virtual int buttons(); - virtual QString quickHelp() const; + virtual TQString quickHelp() const; virtual const KAboutData *aboutData()const { return myAboutData; }; @@ -70,39 +70,39 @@ public slots: signals: void changed(bool); - void editApp(QString, QString); + void editApp(TQString, TQString); protected: - bool eventFilter( QObject* o, QEvent* e ); + bool eventFilter( TQObject* o, TQEvent* e ); private: - QString crNotes[3]; + TQString crNotes[3]; AppSetter *appsetter; KListView *applist; - QImage* tintButton(QImage &src, QColor c); - QImage* tintBrush( QImage &img, QColor c/*, int saturation*/ ); + TQImage* tintButton(TQImage &src, TQColor c); + TQImage* tintBrush( TQImage &img, TQColor c/*, int saturation*/ ); WId findWindow(); KAboutData *myAboutData; Config *dialog_; Help* help_; About* about_; - QImage baseImage, baseImage2; - QDialog *grabber; - QColor buttonColor; - QColor brushTint; + TQImage baseImage, baseImage2; + TQDialog *grabber; + TQColor buttonColor; + TQColor brushTint; int sliderButtonRedValue, sliderButtonGreenValue, sliderButtonBlueValue; int sliderBrushRedValue, sliderBrushGreenValue, sliderBrushBlueValue/*, sliderBrushSaturationValue*/; bool loadDone; bool menuReplaced; - QTimer *timer; + TQTimer *timer; int crCurrent; private slots: void updateCR(); void showAbout(); void editApp(); - void addApp(QString, QString); + void addApp(TQString, TQString); void removeApp(); - void removeApp(QString); + void removeApp(TQString); void setDesign(int); void menuToggled(bool); void enableInButtonColor(int d); @@ -111,45 +111,45 @@ private slots: void buttonSaveAsAction(); void setPresetColor(int i); void selectWindow(); - void changeTooluttonHighlightColor(const QColor &); + void changeTooluttonHighlightColor(const TQColor &); void handleButtonStyles(int i); }; class ColorDialog; -class AppSetter : public QWidget +class AppSetter : public TQWidget { Q_OBJECT public: - AppSetter(QWidget *parent=0, const char *name=0); + AppSetter(TQWidget *parent=0, const char *name=0); ~AppSetter(); public slots: void show(); - void show(QString appName, QString link); + void show(TQString appName, TQString link); private: bool isEdit; int index_; int colors[8]; - QString oldName; - QString oldLink; - QLineEdit *command; - QComboBox *link; - QGroupBox *box; - QComboBox *style; - QComboBox *deco; - QComboBox *buttons; - QComboBox *toolButtons; - QComboBox *tabs; - QComboBox *inbutton; - QCheckBox *scanlines; - QCheckBox *customColors; - QPushButton *buttonColors; + TQString oldName; + TQString oldLink; + TQLineEdit *command; + TQComboBox *link; + TQGroupBox *box; + TQComboBox *style; + TQComboBox *deco; + TQComboBox *buttons; + TQComboBox *toolButtons; + TQComboBox *tabs; + TQComboBox *inbutton; + TQCheckBox *scanlines; + TQCheckBox *customColors; + TQPushButton *buttonColors; ColorDialog *colorDialog; signals: - void addApp(QString, QString); - void removeApp(QString); + void addApp(TQString, TQString); + void removeApp(TQString); private slots: void save(); |