diff options
Diffstat (limited to 'deco')
-rw-r--r-- | deco/baghiraclient.cc | 570 | ||||
-rw-r--r-- | deco/baghiraclient.h | 136 | ||||
-rw-r--r-- | deco/config/aquariusbutton.cc | 42 | ||||
-rw-r--r-- | deco/config/aquariusbutton.h | 30 | ||||
-rw-r--r-- | deco/config/baghiraconfig.cc | 210 | ||||
-rw-r--r-- | deco/config/baghiraconfig.cc.new | 210 | ||||
-rw-r--r-- | deco/config/baghiraconfig.h | 44 | ||||
-rw-r--r-- | deco/config/baghiraconfig.h.new | 48 | ||||
-rw-r--r-- | deco/config/colorpicker.cc | 54 | ||||
-rw-r--r-- | deco/config/colorpicker.h | 38 | ||||
-rw-r--r-- | deco/config/configdialog.ui | 338 | ||||
-rw-r--r-- | deco/config/configdialog.ui.new | 52 | ||||
-rw-r--r-- | deco/config/customdecosettings.ui | 60 |
13 files changed, 916 insertions, 916 deletions
diff --git a/deco/baghiraclient.cc b/deco/baghiraclient.cc index 30d6c8d..ca5eb37 100644 --- a/deco/baghiraclient.cc +++ b/deco/baghiraclient.cc @@ -15,16 +15,16 @@ #include <kpixmapeffect.h> #include <kwin.h> #include <kwinmodule.h> -#include <qapplication.h> -#include <qbitmap.h> -#include <qcursor.h> -#include <qdir.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qpainter.h> -#include <qtimer.h> -#include <qtooltip.h> -#include <qsettings.h> +#include <tqapplication.h> +#include <tqbitmap.h> +#include <tqcursor.h> +#include <tqdir.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqpainter.h> +#include <tqtimer.h> +#include <tqtooltip.h> +#include <tqsettings.h> #include <stdio.h> #include <X11/Xatom.h> @@ -78,14 +78,14 @@ static const int MARGIN = 6; bool BaghiraFactory::initialized_ = false; Baghira::TitlebarType BaghiraFactory::effect_[5][2]; -Qt::AlignmentFlags BaghiraFactory::titlealign_; -QColor BaghiraFactory::colors_[5][ ColorTypeCount ][ 2 ]; +TQt::AlignmentFlags BaghiraFactory::titlealign_; +TQColor BaghiraFactory::colors_[5][ ColorTypeCount ][ 2 ]; KPixmap BaghiraFactory::pix_[5][ PixmapTypeCount ][ 2 ][ 2 ]; int BaghiraFactory::bordersize_[5] = {0,0,6,0,0};//{BorderTiny, BorderTiny, BorderVeryHuge}; -QPixmap BaghiraFactory::ButtonPixmap_[5][WindowStateAmount][ButtonTypeAmount][ButtonStateAmount][2]; -QColor BaghiraFactory::brushedMetalColor; -QColor BaghiraFactory::ButtonColor_[ButtonTypeAmount+1]; -QPixmap BaghiraFactory::nostalgia_[5][3][2]; +TQPixmap BaghiraFactory::ButtonPixmap_[5][WindowStateAmount][ButtonTypeAmount][ButtonStateAmount][2]; +TQColor BaghiraFactory::brushedMetalColor; +TQColor BaghiraFactory::ButtonColor_[ButtonTypeAmount+1]; +TQPixmap BaghiraFactory::nostalgia_[5][3][2]; int BaghiraFactory::contrast_; int BaghiraFactory::_3DImpact_[5]; int BaghiraFactory::LineImpact_[5]; @@ -103,63 +103,63 @@ uint BaghiraFactory::defaultMode_; bool BaghiraFactory::drawIcon_[5]; bool BaghiraFactory::tintBrush_; bool BaghiraFactory::showTitle_; -QColor BaghiraFactory::brushTint; +TQColor BaghiraFactory::brushTint; int BaghiraFactory::minimumTitleHeight_; ButtonStyle BaghiraFactory::buttonStyle_[5]; -QBitmap BaghiraFactory::helpMask; -QBitmap BaghiraFactory::jaguarDownMask; -QBitmap BaghiraFactory::jaguarMenuDownMask; -QBitmap BaghiraFactory::jaguarMenuMask; -QBitmap BaghiraFactory::jaguarMask; -QBitmap BaghiraFactory::milkMenuDownMask; -QBitmap BaghiraFactory::milkMenuMask; -QBitmap BaghiraFactory::milkMask; -QBitmap BaghiraFactory::pantherMenuMask; -QBitmap BaghiraFactory::pantherMask; -QBitmap BaghiraFactory::milkDownMask; -QBitmap BaghiraFactory::arrowUp; -QBitmap BaghiraFactory::arrowDown; +TQBitmap BaghiraFactory::helpMask; +TQBitmap BaghiraFactory::jaguarDownMask; +TQBitmap BaghiraFactory::jaguarMenuDownMask; +TQBitmap BaghiraFactory::jaguarMenuMask; +TQBitmap BaghiraFactory::jaguarMask; +TQBitmap BaghiraFactory::milkMenuDownMask; +TQBitmap BaghiraFactory::milkMenuMask; +TQBitmap BaghiraFactory::milkMask; +TQBitmap BaghiraFactory::pantherMenuMask; +TQBitmap BaghiraFactory::pantherMask; +TQBitmap BaghiraFactory::milkDownMask; +TQBitmap BaghiraFactory::arrowUp; +TQBitmap BaghiraFactory::arrowDown; DeMaximizer BaghiraFactory::deMaximizer_; bool BaghiraFactory::fullSpec_; bool BaghiraFactory::noModalDeco_; bool BaghiraFactory::delAppname_; -Atom baghira_deco_design = XInternAtom(qt_xdisplay(), "BAGHIRA_DECO_DESIGN", False); +Atom baghira_deco_design = XInternAtom(tqt_xdisplay(), "BAGHIRA_DECO_DESIGN", False); extern "C" KDecorationFactory* create_factory() { return new Baghira::BaghiraFactory(); } -DeMaximizer::DeMaximizer() : QWidget(0, "deMaximizer", Qt::WType_TopLevel | Qt::WStyle_NoBorder | Qt::WX11BypassWM ) +DeMaximizer::DeMaximizer() : TQWidget(0, "deMaximizer", TQt::WType_TopLevel | TQt::WStyle_NoBorder | TQt::WX11BypassWM ) { client_ = 0L; setFixedSize(16,16); setMouseTracking(TRUE); setAutoMask(TRUE); - move(QApplication::desktop()->availableGeometry().right()-17,QApplication::desktop()->availableGeometry().top()+2); + move(TQApplication::desktop()->availableGeometry().right()-17,TQApplication::desktop()->availableGeometry().top()+2); setBackgroundMode( NoBackground ); -// setBackgroundMode (Qt::X11ParentRelative); -// setPaletteBackgroundColor(Qt::green); +// setBackgroundMode (TQt::X11ParentRelative); +// setPaletteBackgroundColor(TQt::green); } -void DeMaximizer::mouseReleaseEvent( QMouseEvent *) +void DeMaximizer::mouseReleaseEvent( TQMouseEvent *) { hasMouse()?setState(1):setState(0); if (client_) client_->demaxButtonPressed(); } -void DeMaximizer::mousePressEvent ( QMouseEvent *) +void DeMaximizer::mousePressEvent ( TQMouseEvent *) { setState(2); } -void DeMaximizer::enterEvent ( QEvent *) +void DeMaximizer::enterEvent ( TQEvent *) { setState(1); } -void DeMaximizer::leaveEvent ( QEvent *) +void DeMaximizer::leaveEvent ( TQEvent *) { setState(0); } @@ -167,14 +167,14 @@ void DeMaximizer::leaveEvent ( QEvent *) void DeMaximizer::setState(int i) { erase(); - QPainter p(this); + TQPainter p(this); p.drawPixmap(0,0,pixmap[i]); p.end(); } -void DeMaximizer::setPixmap(int i, QImage &image ) +void DeMaximizer::setPixmap(int i, TQImage &image ) { - pixmap[i] = QPixmap(image); + pixmap[i] = TQPixmap(image); } @@ -182,7 +182,7 @@ void DeMaximizer::setClient(BaghiraClient *client) { if (client_) { - QObject::disconnect ( client_, SIGNAL(hide()), this, SLOT(hide()) ); + TQObject::disconnect ( client_, SIGNAL(hide()), this, SLOT(hide()) ); client_ = 0L; } if (client) @@ -199,20 +199,20 @@ void DeMaximizer::setClient(BaghiraClient *client) // ResizeHandle() // --------------- // Constructor -ResizeHandle::ResizeHandle(BaghiraClient * parent) : QWidget(parent->widget(), 0, 0) +ResizeHandle::ResizeHandle(BaghiraClient * parent) : TQWidget(parent->widget(), 0, 0) { if (!parent->widget()) return; client = parent; - setCursor(QCursor(Qt::SizeFDiagCursor)); + setCursor(TQCursor(TQt::SizeFDiagCursor)); setFixedSize(16,16); updateLook(FALSE); WId root, daddy = 0; WId *kids = 0L; uint numKids = 0; - XQueryTree(qt_xdisplay(), parent->windowId(), &root, &daddy, &kids, &numKids); + XQueryTree(tqt_xdisplay(), parent->windowId(), &root, &daddy, &kids, &numKids); if (daddy) - XReparentWindow( qt_xdisplay(), winId(), daddy, 0, 0 ); + XReparentWindow( tqt_xdisplay(), winId(), daddy, 0, 0 ); else return; move(client->width()-2*BaghiraFactory::borderSize(parent->currentStyle)-16,client->height()-client->titleheight_-16); shape(); @@ -223,10 +223,10 @@ ResizeHandle::ResizeHandle(BaghiraClient * parent) : QWidget(parent->widget(), 0 void ResizeHandle::updateLook(bool rp) { - pix = QPixmap(16,16); - QPainter p(&pix); + pix = TQPixmap(16,16); + TQPainter p(&pix); p.fillRect(pix.rect(), BaghiraFactory::effect(client->currentStyle, client->isActive()) == Baghira::Brushed ? BaghiraFactory::BrushedMetalColor().light(110):paletteBackgroundColor()); - p.setPen( BaghiraFactory::effect(client->currentStyle, client->isActive()) == Baghira::Brushed ? Qt::black:paletteForegroundColor() ); + p.setPen( BaghiraFactory::effect(client->currentStyle, client->isActive()) == Baghira::Brushed ? TQt::black:paletteForegroundColor() ); p.drawLine(0,16,16,0); p.drawLine(4,16,16,4); p.drawLine(8,16,16,8); @@ -246,16 +246,16 @@ void ResizeHandle::shape() xrects[ i ].width = i+1; xrects[ i ].height = 1; } - XShapeCombineRectangles( qt_xdisplay(), winId(), ShapeBounding, 0, 0, + XShapeCombineRectangles( tqt_xdisplay(), winId(), ShapeBounding, 0, 0, xrects, 16, ShapeSet, 0 ); delete[] xrects; } -bool ResizeHandle::eventFilter(QObject *obj, QEvent *e) +bool ResizeHandle::eventFilter(TQObject *obj, TQEvent *e) { if ( obj != parent() ) return false; - if ( e->type() == QEvent::Resize) + if ( e->type() == TQEvent::Resize) { if (client->maximizeMode() == BaghiraClient::MaximizeFull) move(client->width() - 16, client->height() - client->titleheight_ - 16); @@ -267,18 +267,18 @@ bool ResizeHandle::eventFilter(QObject *obj, QEvent *e) return FALSE; } -void ResizeHandle::mousePressEvent ( QMouseEvent * ) +void ResizeHandle::mousePressEvent ( TQMouseEvent * ) { client->performWindowOperation(/*Unrestricted*/KDecoration::ResizeOp); } -void ResizeHandle::mouseReleaseEvent ( QMouseEvent * ) +void ResizeHandle::mouseReleaseEvent ( TQMouseEvent * ) { client->performWindowOperation(KDecoration::NoOp); repaint(TRUE); } -void ResizeHandle::paintEvent ( QPaintEvent * ) +void ResizeHandle::paintEvent ( TQPaintEvent * ) { - QPainter p(this); + TQPainter p(this); p.drawPixmap(0,0,pix); } @@ -290,20 +290,20 @@ void ResizeHandle::paintEvent ( QPaintEvent * ) // Constructor BaghiraFactory::BaghiraFactory() { - helpMask = QBitmap( 14, 15, help_bits, true ); - jaguarDownMask = QBitmap( 14, 15, jaguar2_bits, true ); - jaguarMenuDownMask = QBitmap( 20, 15, jaguar_menu_down_bits, true ); - jaguarMenuMask = QBitmap( 20, 15, jaguar_menu_bits, true ); - jaguarMask = QBitmap( 14, 15, jaguar_bits, true ); - milkMenuDownMask = QBitmap( 20, 15, milk_menu_down_bits, true ); - milkMenuMask = QBitmap( 20, 15, milk_menu_bits, true ); - milkMask = QBitmap( 14, 15, milk_bits, true ); - pantherMenuMask = QBitmap( 20, 15, panther_menu_bits, true ); - pantherMask = QBitmap( 14, 15, panther_bits, true ); - milkDownMask = QBitmap( 14, 15, milk_pressed_bits, true ); - arrowUp = QBitmap( 8, 4, arrowUp_bits, true ); + helpMask = TQBitmap( 14, 15, help_bits, true ); + jaguarDownMask = TQBitmap( 14, 15, jaguar2_bits, true ); + jaguarMenuDownMask = TQBitmap( 20, 15, jaguar_menu_down_bits, true ); + jaguarMenuMask = TQBitmap( 20, 15, jaguar_menu_bits, true ); + jaguarMask = TQBitmap( 14, 15, jaguar_bits, true ); + milkMenuDownMask = TQBitmap( 20, 15, milk_menu_down_bits, true ); + milkMenuMask = TQBitmap( 20, 15, milk_menu_bits, true ); + milkMask = TQBitmap( 14, 15, milk_bits, true ); + pantherMenuMask = TQBitmap( 20, 15, panther_menu_bits, true ); + pantherMask = TQBitmap( 14, 15, panther_bits, true ); + milkDownMask = TQBitmap( 14, 15, milk_pressed_bits, true ); + arrowUp = TQBitmap( 8, 4, arrowUp_bits, true ); arrowUp.setMask( arrowUp ); - arrowDown = QBitmap( 8, 4, arrowDown_bits, true ); + arrowDown = TQBitmap( 8, 4, arrowDown_bits, true ); arrowDown.setMask( arrowDown ); readConfig(); createPixmaps(); @@ -335,12 +335,12 @@ KDecoration* BaghiraFactory::createDecoration( KDecorationBridge* b ) { // ------- // Reset the handler. Returns true if decorations need to be remade -QString BaghiraFactory::indexedString(QString s, int i){ - QString result; +TQString BaghiraFactory::indexedString(TQString s, int i){ + TQString result; result.setNum(i+1); result.prepend("_"); result.prepend(s); -// qWarning("%s",result.ascii()); +// tqWarning("%s",result.ascii()); return result; } @@ -368,7 +368,7 @@ bool BaghiraFactory::reset( unsigned long changed ) { unsigned long BaghiraFactory::readConfig() { - QSettings config; + TQSettings config; config.beginGroup("/baghira/Style"); // KConfig config( "baghirarc" ); // config.setGroup( "Style" ); @@ -378,10 +378,10 @@ unsigned long BaghiraFactory::readConfig() { if (tintBrush_) brushTint.setRgb( config.readNumEntry( "Colors_BrushTint")); - QColor oldcolor; + TQColor oldcolor; unsigned long changed = 0; oldcolor = colors_[3][ Baghira::ColorTitleBar ][ false ]; - colors_[3][ Baghira::ColorTitleBar ][ false ] = qApp->palette().active().background(); + colors_[3][ Baghira::ColorTitleBar ][ false ] = tqApp->palette().active().background(); if ( oldcolor != colors_[3][ Baghira::ColorTitleBar ][ false ] ) changed |= SettingColors; @@ -410,8 +410,8 @@ unsigned long BaghiraFactory::readConfig() { minimumTitleHeight_ = (ButtonStyle) config.readNumEntry( "minimumTitleHeight", 18 ); if ( oldMinTH != minimumTitleHeight_ ) { - QFontMetrics fm(options()->font(true, false)); - TITLESIZE = QMAX(minimumTitleHeight_, fm.height()); + TQFontMetrics fm(options()->font(true, false)); + TITLESIZE = TQMAX(minimumTitleHeight_, fm.height()); changed |= SettingFont; changed |= SettingDecoration; } @@ -431,19 +431,19 @@ unsigned long BaghiraFactory::readConfig() { if ( defaultMode__ != defaultMode_ ) changed |= SettingDecoration; - Qt::AlignmentFlags oldalign = titlealign_; - QString value = config.readEntry( "TitleAlignment", "AlignHCenter" ); + TQt::AlignmentFlags oldalign = titlealign_; + TQString value = config.readEntry( "TitleAlignment", "AlignHCenter" ); showTitle_ = TRUE; if ( value == "AlignLeft" ) - titlealign_ = Qt::AlignLeft; + titlealign_ = TQt::AlignLeft; else if ( value == "AlignHCenter" ) - titlealign_ = Qt::AlignHCenter; + titlealign_ = TQt::AlignHCenter; else if ( value == "AlignRight" ) - titlealign_ = Qt::AlignRight; + titlealign_ = TQt::AlignRight; else if ( value == "noTitle" ) { showTitle_ = FALSE; - titlealign_ = Qt::AlignAuto; + titlealign_ = TQt::AlignAuto; } if ( oldalign != titlealign_ ) changed |= SettingFont; @@ -518,13 +518,13 @@ unsigned long BaghiraFactory::readConfig() { { Baghira::TitlebarType oldeffect = effect_[i][1]; effect_[i][1] = ( Baghira::TitlebarType ) config.readNumEntry( indexedString("TitleEffect",i), i == 0 ? Baghira::Stipples : (i == 1 || i == 4) ? Baghira::Gradient : Baghira::Brushed); - // qWarning("%d",effect_[i]); + // tqWarning("%d",effect_[i]); if ( oldeffect != effect_[i][1] ) changed |= SettingDecoration; oldeffect = effect_[i][0]; effect_[i][0] = ( Baghira::TitlebarType ) config.readNumEntry( indexedString("inactiveTitleEffect",i), i == 0 ? Baghira::Stipples : (i == 1 || i == 4) ? Baghira::Gradient : Baghira::Brushed); - // qWarning("%d",effect_[i]); + // tqWarning("%d",effect_[i]); if ( oldeffect != effect_[i][0] ) changed |= SettingDecoration; @@ -534,12 +534,12 @@ unsigned long BaghiraFactory::readConfig() { changed |= SettingDecoration; oldcolor = colors_[i][ Baghira::ColorTitleBar ][ false ]; - colors_[i][ Baghira::ColorTitleBar ][ false ].setRgb((unsigned int)config.readNumEntry( indexedString("inactiveColor1",i), i == 0 ? QColor(204,214,230).rgb() : i == 1 ? QColor(246,242,246).rgb() : i == 3 ? QColor(200,200,200).rgb() : QColor(230,230,230).rgb())); + colors_[i][ Baghira::ColorTitleBar ][ false ].setRgb((unsigned int)config.readNumEntry( indexedString("inactiveColor1",i), i == 0 ? TQColor(204,214,230).rgb() : i == 1 ? TQColor(246,242,246).rgb() : i == 3 ? TQColor(200,200,200).rgb() : TQColor(230,230,230).rgb())); if ( oldcolor != colors_[i][ Baghira::ColorTitleBar ][ false ] ) changed |= SettingColors; oldcolor = colors_[i][ Baghira::ColorTitleBlend ][ false ]; - colors_[i][ Baghira::ColorTitleBlend ][ false ].setRgb((unsigned int)config.readNumEntry( indexedString("inactiveColor2",i), i == 0 ? QColor(194,196,211).rgb() : i == 1 ? QColor(238,238,238).rgb() : i == 3 ? QColor(150,150,150).rgb() : QColor(250,250,250).rgb())); + colors_[i][ Baghira::ColorTitleBlend ][ false ].setRgb((unsigned int)config.readNumEntry( indexedString("inactiveColor2",i), i == 0 ? TQColor(194,196,211).rgb() : i == 1 ? TQColor(238,238,238).rgb() : i == 3 ? TQColor(150,150,150).rgb() : TQColor(250,250,250).rgb())); if ( oldcolor != colors_[i][ Baghira::ColorTitleBlend ][ false ] ) changed |= SettingColors; } @@ -556,58 +556,58 @@ unsigned long BaghiraFactory::readConfig() { changed |= SettingDecoration; oldcolor = colors_[i][ Baghira::ColorTitleBar ][ true ]; - colors_[i][ Baghira::ColorTitleBar ][ true ].setRgb((unsigned int)config.readNumEntry( indexedString("activeColor1",i), i == 0 ? QColor(255,255,255).rgb() : i == 1 ? QColor(238,238,238).rgb() : i == 2 ? QColor(202,202,202).rgb() : i == 3 ? QColor(238,238,238).rgb() : QColor(250,250,250).rgb())); + colors_[i][ Baghira::ColorTitleBar ][ true ].setRgb((unsigned int)config.readNumEntry( indexedString("activeColor1",i), i == 0 ? TQColor(255,255,255).rgb() : i == 1 ? TQColor(238,238,238).rgb() : i == 2 ? TQColor(202,202,202).rgb() : i == 3 ? TQColor(238,238,238).rgb() : TQColor(250,250,250).rgb())); if ( oldcolor != colors_[i][ Baghira::ColorTitleBar ][ true ] ) changed |= SettingColors; oldcolor = colors_[i][ Baghira::ColorTitleBlend ][ true ]; - colors_[i][ Baghira::ColorTitleBlend ][ true ].setRgb((unsigned int)config.readNumEntry( indexedString("activeColor2",i), i == 0 ? QColor(238,234,238).rgb() : i == 1 ? QColor(205,202,205).rgb() : i == 2 ? QColor(150,150,150).rgb() : i == 3 ? QColor(211,208,211).rgb() : QColor(230,230,230).rgb())); + colors_[i][ Baghira::ColorTitleBlend ][ true ].setRgb((unsigned int)config.readNumEntry( indexedString("activeColor2",i), i == 0 ? TQColor(238,234,238).rgb() : i == 1 ? TQColor(205,202,205).rgb() : i == 2 ? TQColor(150,150,150).rgb() : i == 3 ? TQColor(211,208,211).rgb() : TQColor(230,230,230).rgb())); if ( oldcolor != colors_[i][ Baghira::ColorTitleBlend ][ true ] ) changed |= SettingColors; } oldcolor = ButtonColor_[MinButton]; - ButtonColor_[MinButton].setRgb((unsigned int)config.readNumEntry( "MinButtonColor", QColor(230,155,40).rgb() )); + ButtonColor_[MinButton].setRgb((unsigned int)config.readNumEntry( "MinButtonColor", TQColor(230,155,40).rgb() )); if ( oldcolor != ButtonColor_[MinButton] ) changed |= SettingColors; oldcolor = ButtonColor_[MaxButton]; - ButtonColor_[MaxButton].setRgb((unsigned int)config.readNumEntry( "MaxButtonColor", QColor(121,180,54).rgb() )); + ButtonColor_[MaxButton].setRgb((unsigned int)config.readNumEntry( "MaxButtonColor", TQColor(121,180,54).rgb() )); if ( oldcolor != ButtonColor_[MaxButton] ) changed |= SettingColors; oldcolor = ButtonColor_[CloseButton]; - ButtonColor_[CloseButton].setRgb((unsigned int)config.readNumEntry( "CloseButtonColor", QColor(200,85,70).rgb() )); + ButtonColor_[CloseButton].setRgb((unsigned int)config.readNumEntry( "CloseButtonColor", TQColor(200,85,70).rgb() )); if ( oldcolor != ButtonColor_[CloseButton] ) changed |= SettingColors; oldcolor = ButtonColor_[StickyButton]; - ButtonColor_[StickyButton].setRgb((unsigned int)config.readNumEntry( "StickyButtonColor", QColor(74,140,242).rgb() )); + ButtonColor_[StickyButton].setRgb((unsigned int)config.readNumEntry( "StickyButtonColor", TQColor(74,140,242).rgb() )); if ( oldcolor != ButtonColor_[StickyButton] ) changed |= SettingColors; oldcolor = ButtonColor_[AboveBelowButton]; - ButtonColor_[AboveBelowButton].setRgb((unsigned int)config.readNumEntry( "AboveButtonColor", QColor(74,140,242).rgb() )); + ButtonColor_[AboveBelowButton].setRgb((unsigned int)config.readNumEntry( "AboveButtonColor", TQColor(74,140,242).rgb() )); if ( oldcolor != ButtonColor_[AboveBelowButton] ) changed |= SettingColors; oldcolor = ButtonColor_[ShadeButton]; - ButtonColor_[ShadeButton].setRgb((unsigned int)config.readNumEntry( "ShadeButtonColor", QColor(74,140,242).rgb() )); + ButtonColor_[ShadeButton].setRgb((unsigned int)config.readNumEntry( "ShadeButtonColor", TQColor(74,140,242).rgb() )); if ( oldcolor != ButtonColor_[ShadeButton] ) changed |= SettingColors; oldcolor = ButtonColor_[MenuButton]; - ButtonColor_[MenuButton].setRgb((unsigned int)config.readNumEntry( "MenuButtonColor", QColor(74,140,242).rgb() )); + ButtonColor_[MenuButton].setRgb((unsigned int)config.readNumEntry( "MenuButtonColor", TQColor(74,140,242).rgb() )); if ( oldcolor != ButtonColor_[MenuButton] ) changed |= SettingColors; oldcolor = ButtonColor_[HelpButton]; - ButtonColor_[HelpButton].setRgb((unsigned int)config.readNumEntry( "HelpButtonColor", QColor(0,0,0).rgb() )); + ButtonColor_[HelpButton].setRgb((unsigned int)config.readNumEntry( "HelpButtonColor", TQColor(0,0,0).rgb() )); if ( oldcolor != ButtonColor_[HelpButton] ) changed |= SettingColors; oldcolor = ButtonColor_[InactiveButton]; - ButtonColor_[InactiveButton].setRgb((unsigned int)config.readNumEntry( "InactiveButtonColor", QColor(255,255,255).rgb() )); + ButtonColor_[InactiveButton].setRgb((unsigned int)config.readNumEntry( "InactiveButtonColor", TQColor(255,255,255).rgb() )); if ( oldcolor != ButtonColor_[InactiveButton] ) changed |= SettingColors; @@ -616,9 +616,9 @@ unsigned long BaghiraFactory::readConfig() { return changed; } -QImage* BaghiraFactory::tintGlossy( const QImage &src, const QColor &c ) const +TQImage* BaghiraFactory::tintGlossy( const TQImage &src, const TQColor &c ) const { - QImage *dest = new QImage( src.width(), src.height(), 32); + TQImage *dest = new TQImage( src.width(), src.height(), 32); dest->setAlphaBuffer( true ); unsigned int *data = ( unsigned int * ) src.bits(); unsigned int *destData = ( unsigned int* ) dest->bits(); @@ -634,14 +634,14 @@ QImage* BaghiraFactory::tintGlossy( const QImage &src, const QColor &c ) const 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 ] ); + alpha = tqAlpha( data[ current ] ); if (alpha < 230){ destData[ current ] = data[ current ]; continue; //do not handle translucent parts to not affect blending } - red = qRed( data[ current ] ); - green = qGreen( data[ current ] ); - blue = qBlue( data[ current ] ); + red = tqRed( data[ current ] ); + green = tqGreen( data[ current ] ); + blue = tqBlue( data[ current ] ); if ( current > u3rd || red < 223 ){ SATURATION_COLOR2(sq, red, green, blue, srcR, srcG, srcB) } else { @@ -649,17 +649,17 @@ QImage* BaghiraFactory::tintGlossy( const QImage &src, const QColor &c ) const } // 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* BaghiraFactory::tintBrush( const QImage &img, const QColor &c ) const +TQImage* BaghiraFactory::tintBrush( const TQImage &img, const TQColor &c ) const { // if ( img.depth() != 32 ) // img = img.convertDepth( 32 ); - QImage *dest = new QImage( img.width(), img.height(), 32); + TQImage *dest = new TQImage( img.width(), img.height(), 32); unsigned int *data = ( unsigned int * ) img.bits(); unsigned int *destData = ( unsigned int* ) dest->bits(); int total = img.width() * img.height(); @@ -674,29 +674,29 @@ QImage* BaghiraFactory::tintBrush( const QImage &img, const QColor &c ) const SATURATION_COLOR(180, 180, 180); COLOR_SPACE(destR, destG, destB); - brushedMetalColor = QColor(destR, destG, destB); + brushedMetalColor = TQColor(destR, destG, destB); // 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 ); } void BaghiraFactory::createOS8Buttons(int style){ - QPainter p; - QColor initColor; + TQPainter p; + TQColor initColor; for ( int active = 0; active <= 1; ++active ){ for (int t = 0; t < 3; t++){ - initColor = QColor(color(style, Baghira::ColorTitleBar, active ).dark(100 + t*15)); - nostalgia_[style][t][active] = QPixmap(BUTTONSIZE, BUTTONSIZE); + initColor = TQColor(color(style, Baghira::ColorTitleBar, active ).dark(100 + t*15)); + nostalgia_[style][t][active] = TQPixmap(BUTTONSIZE, BUTTONSIZE); p.begin(&nostalgia_[style][t][active]); p.setPen(color(style, Baghira::ColorTitleBar, active )); p.drawPoint(0,BUTTONSIZE-1); @@ -744,22 +744,22 @@ void BaghiraFactory::createOS8Buttons(int style){ p.drawLine(BUTTONSIZE-1,1,BUTTONSIZE-1,BUTTONSIZE-1); //================================== // black frame - p.setPen(Qt::black); + p.setPen(TQt::black); p.drawRect(1,1,BUTTONSIZE-2,BUTTONSIZE-2); p.end(); } } } -QPixmap &BaghiraFactory::ButtonPixmap( Baghira::WindowState wState, +TQPixmap &BaghiraFactory::ButtonPixmap( Baghira::WindowState wState, Baghira::ButtonType type, Baghira::ButtonState state, int style, bool small ) { return ButtonPixmap_[style][ wState ][ type ][ state ][small]; } -QImage* BaghiraFactory::DecoImage( QPixmap *pix, int x, int y, int width, int height ) { - QPixmap tmpPix( width, height ); +TQImage* BaghiraFactory::DecoImage( TQPixmap *pix, int x, int y, int width, int height ) { + TQPixmap tmpPix( width, height ); bitBlt ( &tmpPix, 0, 0, pix, x, y, width, height ); - QImage *returnImage = new QImage( tmpPix.convertToImage() ); + TQImage *returnImage = new TQImage( tmpPix.convertToImage() ); return returnImage; } @@ -768,11 +768,11 @@ QImage* BaghiraFactory::DecoImage( QPixmap *pix, int x, int y, int width, int he // ---------------- // Create a gradient -void BaghiraFactory::createGradient(KPixmap &pix, const QColor &light, const QColor &dark, Baghira::TitlebarType effect) +void BaghiraFactory::createGradient(KPixmap &pix, const TQColor &light, const TQColor &dark, Baghira::TitlebarType effect) { if (pix.width() == 0) return; - QPainter p; + TQPainter p; switch( effect ){ case Baghira::Stipples: KPixmapEffect::unbalancedGradient(pix, light, light.dark(110), KPixmapEffect::VerticalGradient, 0); @@ -788,7 +788,7 @@ void BaghiraFactory::createGradient(KPixmap &pix, const QColor &light, const QCo { p.begin(&pix); p.fillRect(pix.rect(),light); - QColor mid; + TQColor mid; mid.setRgb((light.red()+2*dark.red())/3,(light.green()+2*dark.green())/3,(light.blue()+2*dark.blue())/3); p.setPen(mid); for( int i = pix.height() - 1; i > 0; i-=4 ) @@ -822,7 +822,7 @@ void BaghiraFactory::createGradient(KPixmap &pix, const QColor &light, const QCo } } -static bool blend( const QImage & upper, const QImage & lower, QImage & output) +static bool blend( const TQImage & upper, const TQImage & lower, TQImage & output) // adopted from kimageeffect::blend - what is not endian safe... { if @@ -886,15 +886,15 @@ static bool blend( const QImage & upper, const QImage & lower, QImage & output) // --------------- // Create all our pixmaps void BaghiraFactory::createPixmaps() { -// QPainter painter; - QColorGroup group; - QPainter icyAPainter; - QImage tmpResult; - QImage tmpResult2; - QImage tmpDeco; - QImage buttonImage; - QImage btnIcons[MenuButton]; - btnIcons[AboveBelowButton] = QImage(); +// TQPainter painter; + TQColorGroup group; + TQPainter icyAPainter; + TQImage tmpResult; + TQImage tmpResult2; + TQImage tmpDeco; + TQImage buttonImage; + TQImage btnIcons[MenuButton]; + btnIcons[AboveBelowButton] = TQImage(); // load icon images - useless for nostalgia style, but i assume they'll be used at least once ;) btnIcons[MinButton] = uic_findImage( "icon_minimize" ); btnIcons[MaxButton] = uic_findImage( "icon_maximize" ); @@ -925,21 +925,21 @@ void BaghiraFactory::createPixmaps() { createGradient( tbar, color(style, Baghira::ColorTitleBar, active ), color(style, Baghira::ColorTitleBlend, active ), effect_[style][active] ); } else if (brushedMode){ - QPixmap brushTile; - QPixmap brushGradient; + TQPixmap brushTile; + TQPixmap brushGradient; if (tintBrush_){ - brushTile = QPixmap(*tintBrush(uic_findImage( "brushed-tile" ), brushTint)); - brushGradient = QPixmap(*tintBrush(uic_findImage( "brushed-gradient" ), brushTint)); + brushTile = TQPixmap(*tintBrush(uic_findImage( "brushed-tile" ), brushTint)); + brushGradient = TQPixmap(*tintBrush(uic_findImage( "brushed-gradient" ), brushTint)); } else{ brushTile = uic_findImage( "brushed-tile" ); brushGradient = uic_findImage( "brushed-gradient" ); - brushedMetalColor = QColor(180,180,180); + brushedMetalColor = TQColor(180,180,180); } // resize pixmap tbar.resize( 256, small ? TITLESIZESMALL : TITLESIZE ); tcenter.resize( 1024, small ? TITLESIZESMALL : TITLESIZE ); - QPainter painter(&tbar); + TQPainter painter(&tbar); painter.drawTiledPixmap( 0,0, tbar.width(), tbar.height(), brushTile ); painter.end(); painter.begin(&tcenter); @@ -947,7 +947,7 @@ void BaghiraFactory::createPixmaps() { } else{ tbar.resize( 32, small ? TITLESIZESMALL : TITLESIZE); - KPixmap tmp = QPixmap(*tintGlossy(uic_findImage( "deco_glossy" ), color(style, Baghira::ColorTitleBar, active ))); + KPixmap tmp = TQPixmap(*tintGlossy(uic_findImage( "deco_glossy" ), color(style, Baghira::ColorTitleBar, active ))); if (tbar.height() > 18){ for (int i = 8; i < tbar.height() - 10; i++){ bitBlt(&tbar, 0, i, &tmp, 0, 8, 32, 1); @@ -975,7 +975,7 @@ void BaghiraFactory::createPixmaps() { ButtonColor_[bt] ); /*brushedMode ? blend( tmpResult2, tmpDeco, tmpResult ) : */blend( tmpResult2, tmpDeco, tmpResult ); if (bs > ButtonActive) blend( btnIcons[bt], tmpResult, tmpResult ); - ButtonPixmap_[style][ active ][ bt ][ bs ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ bt ][ bs ][small] = TQPixmap( tmpResult ); } } @@ -986,7 +986,7 @@ void BaghiraFactory::createPixmaps() { tmpResult2 = *tintGlossy( buttonImage, ButtonColor_[bt].dark(120)); /*brushedMode ? blend( tmpResult2, tmpDeco, tmpResult ) : */blend( tmpResult2, tmpDeco, tmpResult ); KImageEffect::blendOnLower( xoff, yoff, btnIcons[bt], tmpResult); // must shift as well - ButtonPixmap_[style][ active ][ bt ][ Pressed ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ bt ][ Pressed ][small] = TQPixmap( tmpResult ); } @@ -1001,7 +1001,7 @@ void BaghiraFactory::createPixmaps() { ButtonColor_[HelpButton].dark(120) : ButtonColor_[HelpButton] ); /*brushedMode ? blend( tmpResult2, tmpDeco, tmpResult ) : */blend( tmpResult2, tmpDeco, tmpResult ); - ButtonPixmap_[style][ active ][ HelpButton ][ bs ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ HelpButton ][ bs ][small] = TQPixmap( tmpResult ); } tmpDeco = *DecoImage( &tbar, 0, ( tbar.height() - BUTTONSIZE ) / 2, MENUBUTTONWIDTH, BUTTONSIZE ); @@ -1013,7 +1013,7 @@ void BaghiraFactory::createPixmaps() { ButtonColor_[InactiveButton] : ButtonColor_[MenuButton] ); /*brushedMode ? blend( tmpResult2, tmpDeco, tmpResult ) : */blend( tmpResult2, tmpDeco, tmpResult ); - ButtonPixmap_[style][ active ][ MenuButton ][ bs ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ MenuButton ][ bs ][small] = TQPixmap( tmpResult ); } @@ -1022,7 +1022,7 @@ void BaghiraFactory::createPixmaps() { buttonImage = uic_findImage( "button_jaguar_menu_down"); tmpResult2 = *tintGlossy( buttonImage, ButtonColor_[MenuButton].dark(120)); /*brushedMode ? blend( tmpResult2, tmpDeco, tmpResult ) : */blend( tmpResult2, tmpDeco, tmpResult ); - ButtonPixmap_[style][ active ][ MenuButton ][ Pressed ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ MenuButton ][ Pressed ][small] = TQPixmap( tmpResult ); break; @@ -1041,7 +1041,7 @@ void BaghiraFactory::createPixmaps() { for (int bs = ButtonInactive; bs < Pressed; bs++){ /*brushedMode ? blend( buttonImage, tmpDeco, tmpResult ) : */blend( buttonImage, tmpDeco, tmpResult ); if (bs > ButtonActive) blend( btnIcons[bt], tmpResult, tmpResult ); - ButtonPixmap_[style][ active ][ bt ][ bs ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ bt ][ bs ][small] = TQPixmap( tmpResult ); } } @@ -1050,14 +1050,14 @@ void BaghiraFactory::createPixmaps() { for (int bt = MinButton; bt < MenuButton; bt++){ /*brushedMode ? blend( buttonImage, tmpDeco, tmpResult ) : */blend( buttonImage, tmpDeco, tmpResult ); blend( btnIcons[bt], tmpResult, tmpResult ); - ButtonPixmap_[style][ active ][ bt ][ Pressed ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ bt ][ Pressed ][small] = TQPixmap( tmpResult ); } // HelpButton buttonImage = uic_findImage( "icon_help"); for (int bs = ButtonInactive; bs < ButtonStateAmount; bs++){ /*brushedMode ? blend( buttonImage, tmpDeco, tmpResult ) : */blend( buttonImage, tmpDeco, tmpResult ); - ButtonPixmap_[style][ active ][ HelpButton ][ bs ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ HelpButton ][ bs ][small] = TQPixmap( tmpResult ); } tmpDeco = *DecoImage( &tbar, 0, ( tbar.height() - BUTTONSIZE ) / 2, MENUBUTTONWIDTH, BUTTONSIZE ); @@ -1066,13 +1066,13 @@ void BaghiraFactory::createPixmaps() { buttonImage = uic_findImage( "button_milk_menu"); for (int bs = ButtonInactive; bs < Pressed; bs++){ /*brushedMode ? blend( buttonImage, tmpDeco, tmpResult ) : */blend( buttonImage, tmpDeco, tmpResult ); - ButtonPixmap_[style][ active ][ MenuButton ][ bs ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ MenuButton ][ bs ][small] = TQPixmap( tmpResult ); } // pressed MenuButton // as pressed milk buttons differ buttonImage = uic_findImage( "button_milk_menu_down"); /*brushedMode ? blend( buttonImage, tmpDeco, tmpResult ) : */blend( buttonImage, tmpDeco, tmpResult ); - ButtonPixmap_[style][ active ][ MenuButton ][ Pressed ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ MenuButton ][ Pressed ][small] = TQPixmap( tmpResult ); break; @@ -1088,14 +1088,14 @@ void BaghiraFactory::createPixmaps() { for (int bt = MinButton; bt < ButtonTypeAmount; bt++){ for (int bs = ButtonInactive; bs < ButtonStateAmount; bs++){ if (bs < Hovered) - ButtonPixmap_[style][ active ][ bt ][ bs ][small] = QPixmap( nostalgia_[style][1][active] ); + ButtonPixmap_[style][ active ][ bt ][ bs ][small] = TQPixmap( nostalgia_[style][1][active] ); else if (bs == Hovered) - ButtonPixmap_[style][ active ][ bt ][ bs ][small] = QPixmap( nostalgia_[style][0][active] ); + ButtonPixmap_[style][ active ][ bt ][ bs ][small] = TQPixmap( nostalgia_[style][0][active] ); else - ButtonPixmap_[style][ active ][ bt ][ bs ][small] = QPixmap( nostalgia_[style][2][active] ); + ButtonPixmap_[style][ active ][ bt ][ bs ][small] = TQPixmap( nostalgia_[style][2][active] ); if (bs > ButtonInactive){ icyAPainter.begin(&ButtonPixmap_[style][ active ][ bt ][ bs ][small]); - icyAPainter.setPen(Qt::black); + icyAPainter.setPen(TQt::black); if (bt == MinButton){ icyAPainter.drawLine(2,B_3,BUTTONSIZE - 3,B_3); icyAPainter.drawLine(2,B_6,BUTTONSIZE - 3,B_6); @@ -1109,7 +1109,7 @@ void BaghiraFactory::createPixmaps() { continue; } if (bt == StickyButton){ - icyAPainter.fillRect(BUTTONSIZE/2-1,BUTTONSIZE/2-1,2,2,Qt::black); + icyAPainter.fillRect(BUTTONSIZE/2-1,BUTTONSIZE/2-1,2,2,TQt::black); icyAPainter.end(); continue; } @@ -1121,10 +1121,10 @@ void BaghiraFactory::createPixmaps() { continue; } if (bt == HelpButton){ - QFont tmpFont = QFont(options() ->font( true, false )); + TQFont tmpFont = TQFont(options() ->font( true, false )); tmpFont.setPixelSize(BUTTONSIZE - 4); icyAPainter.setFont(tmpFont); - icyAPainter.drawText( 0, 0, BUTTONSIZE, BUTTONSIZE, Qt::AlignHCenter | Qt::AlignVCenter, "?" ); + icyAPainter.drawText( 0, 0, BUTTONSIZE, BUTTONSIZE, TQt::AlignHCenter | TQt::AlignVCenter, "?" ); icyAPainter.end(); continue; } @@ -1138,7 +1138,7 @@ void BaghiraFactory::createPixmaps() { if (bt == MenuButton){ buttonImage = ButtonPixmap_[style][ active ][ bt ][ bs ][small].convertToImage(); blend( buttonImage , tmpDeco, tmpDeco ); - ButtonPixmap_[style][ active ][ bt ][ bs ][small] = QPixmap(tmpDeco); + ButtonPixmap_[style][ active ][ bt ][ bs ][small] = TQPixmap(tmpDeco); } } } @@ -1164,7 +1164,7 @@ void BaghiraFactory::createPixmaps() { if (bs > ButtonActive) blend( btnIcons[bt], tmpResult2, tmpResult2 ); if (bt == MaxButton && bs > ButtonInactive) deMaximizer_.setPixmap(bs - 1, tmpResult2); blend( tmpResult2, tmpDeco, tmpResult ); - ButtonPixmap_[style][ active ][ bt ][ bs ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ bt ][ bs ][small] = TQPixmap( tmpResult ); } } @@ -1180,7 +1180,7 @@ void BaghiraFactory::createPixmaps() { ButtonColor_[HelpButton].dark(120) : ButtonColor_[HelpButton] ); /*brushedMode ? blend( tmpResult2, tmpDeco, tmpResult ) : */blend( tmpResult2, tmpDeco, tmpResult ); - ButtonPixmap_[style][ active ][ HelpButton ][ bs ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ HelpButton ][ bs ][small] = TQPixmap( tmpResult ); } tmpDeco = *DecoImage( &tbar, 0, ( tbar.height() - BUTTONSIZE ) / 2, MENUBUTTONWIDTH, BUTTONSIZE ); @@ -1194,7 +1194,7 @@ void BaghiraFactory::createPixmaps() { ButtonColor_[MenuButton].dark(120) : ButtonColor_[MenuButton] ); /*brushedMode ? blend( tmpResult2, tmpDeco, tmpResult ) : */blend( tmpResult2, tmpDeco, tmpResult ); - ButtonPixmap_[style][ active ][ MenuButton ][ bs ][small] = QPixmap( tmpResult ); + ButtonPixmap_[style][ active ][ MenuButton ][ bs ][small] = TQPixmap( tmpResult ); } } } @@ -1207,8 +1207,8 @@ void BaghiraFactory::createPixmaps() { // ------------- // Return list of valid border sizes -QValueList<BaghiraFactory::BorderSize> BaghiraFactory::borderSizes() const { - return QValueList<BorderSize>() << BorderTiny << BorderNormal +TQValueList<BaghiraFactory::BorderSize> BaghiraFactory::borderSizes() const { + return TQValueList<BorderSize>() << BorderTiny << BorderNormal << BorderLarge << BorderVeryLarge << BorderHuge << BorderVeryHuge; } @@ -1222,11 +1222,11 @@ QValueList<BaghiraFactory::BorderSize> BaghiraFactory::borderSizes() const { // -------------- // Constructor -BaghiraButton::BaghiraButton( BaghiraClient *parent, const char *name, const QString& tip, bool small, ButtonType type, int style ) -: QButton( parent->widget(), name ), client_( parent ), type_( type ), deco_( 0 ), icon_(), small_( small ), lastmouse_( 0 ), mouseover_( false ), _blocked(false) { +BaghiraButton::BaghiraButton( BaghiraClient *parent, const char *name, const TQString& tip, bool small, ButtonType type, int style ) +: TQButton( parent->widget(), name ), client_( parent ), type_( type ), deco_( 0 ), icon_(), small_( small ), lastmouse_( 0 ), mouseover_( false ), _blocked(false) { setBackgroundMode( NoBackground ); setCursor( arrowCursor ); - QToolTip::add( this, tip ); + TQToolTip::add( this, tip ); down_ = false; mouseover_ = false; mask = NULL; @@ -1255,8 +1255,8 @@ BaghiraButton::~BaghiraButton() // ---------- // Return size hint -QSize BaghiraButton::sizeHint() const { - return QSize( BUTTONSIZE, BUTTONSIZE ); +TQSize BaghiraButton::sizeHint() const { + return TQSize( BUTTONSIZE, BUTTONSIZE ); } ////////////////////////////////////////////////////////////////////////////// @@ -1264,19 +1264,19 @@ QSize BaghiraButton::sizeHint() const { // ------------ // Mouse has entered the button -void BaghiraButton::enterEvent( QEvent *e ) { +void BaghiraButton::enterEvent( TQEvent *e ) { #if 0 if (type_ == CloseButton) { _blocked = true; - QTimer::singleShot(250,this,SLOT(delayedEnterEvent())); - QButton::enterEvent( e ); + TQTimer::singleShot(250,this,SLOT(delayedEnterEvent())); + TQButton::enterEvent( e ); return; } #endif mouseover_ = true; repaint( false ); - QButton::enterEvent( e ); + TQButton::enterEvent( e ); } void BaghiraButton::delayedEnterEvent() @@ -1294,13 +1294,13 @@ void BaghiraButton::delayedEnterEvent() // ------------ // Mouse has left the button -void BaghiraButton::leaveEvent( QEvent *e ) +void BaghiraButton::leaveEvent( TQEvent *e ) { mouseover_ = false; if ( type_ == Baghira::MenuButton ) down_ = false; repaint( false ); - QButton::leaveEvent( e ); + TQButton::leaveEvent( e ); } ////////////////////////////////////////////////////////////////////////////// @@ -1308,9 +1308,9 @@ void BaghiraButton::leaveEvent( QEvent *e ) // ----------------- // Button has been pressed -void BaghiraButton::mousePressEvent( QMouseEvent* e ) +void BaghiraButton::mousePressEvent( TQMouseEvent* e ) { - if (_blocked && !(e->state() & Qt::ControlButton)) + if (_blocked && !(e->state() & TQt::ControlButton)) return; lastmouse_ = e->button(); @@ -1327,14 +1327,14 @@ void BaghiraButton::mousePressEvent( QMouseEvent* e ) button = NoButton; // middle & right buttons inappropriate } down_ = true; - QMouseEvent me( e->type(), e->pos(), e->globalPos(), button, e->state() ); + TQMouseEvent me( e->type(), e->pos(), e->globalPos(), button, e->state() ); repaint( false ); - QButton::mousePressEvent( &me ); + TQButton::mousePressEvent( &me ); } // void BaghiraButton::setOn(bool on) // { -// QButton::setOn(on); +// TQButton::setOn(on); // } ////////////////////////////////////////////////////////////////////////////// @@ -1342,7 +1342,7 @@ void BaghiraButton::mousePressEvent( QMouseEvent* e ) // ----------------- // Button has been released -void BaghiraButton::mouseReleaseEvent( QMouseEvent* e ) { +void BaghiraButton::mouseReleaseEvent( TQMouseEvent* e ) { lastmouse_ = e->button(); if (mask){ @@ -1355,9 +1355,9 @@ void BaghiraButton::mouseReleaseEvent( QMouseEvent* e ) { button = NoButton; // middle & right buttons inappropriate } down_ = false; - QMouseEvent me( e->type(), e->pos(), e->globalPos(), button, e->state() ); + TQMouseEvent me( e->type(), e->pos(), e->globalPos(), button, e->state() ); repaint( false ); - QButton::mouseReleaseEvent( &me ); + TQButton::mouseReleaseEvent( &me ); } inline ButtonState BaghiraButton::state() { @@ -1376,7 +1376,7 @@ inline ButtonState BaghiraButton::state() { // ------------ // Draw the button -void BaghiraButton::drawButton( QPainter *painter ) { +void BaghiraButton::drawButton( TQPainter *painter ) { if ( !BaghiraFactory::initialized() ) return ; @@ -1400,7 +1400,7 @@ void BaghiraButton::drawButton( QPainter *painter ) { } } -void BaghiraButton::setMasks(QBitmap *bitmask, QBitmap *bitmaskDown){ +void BaghiraButton::setMasks(TQBitmap *bitmask, TQBitmap *bitmaskDown){ clearMask(); mask = bitmask; maskDown = bitmaskDown; @@ -1455,7 +1455,7 @@ void BaghiraClient::init() int format, result; unsigned long n, left; currentStyle = BaghiraFactory::defaultMode(); - result = XGetWindowProperty(qt_xdisplay(), windowId(), baghira_deco_design, 0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left, &data); + result = XGetWindowProperty(tqt_xdisplay(), windowId(), baghira_deco_design, 0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left, &data); if (result == Success && data != None) // found set design { memcpy (¤tStyle, data, sizeof (unsigned int)); @@ -1465,11 +1465,11 @@ void BaghiraClient::init() { XClassHint classHint; FILE *file = NULL; - if ( XGetClassHint( qt_xdisplay(), windowId(), &classHint ) ) + if ( XGetClassHint( tqt_xdisplay(), windowId(), &classHint ) ) { - QString tmpString; + TQString tmpString; // overwrite file from bab starter? - don't worry, if there's been one and deleted by the style we've got the X setting (much better as it will take care of all subwindows) - tmpString = QDir::homeDirPath() + "/.baghira/.bab/" + QString( classHint.res_class ).lower(); + tmpString = TQDir::homeDirPath() + "/.baghira/.bab/" + TQString( classHint.res_class ).lower(); if( (file = fopen(tmpString.latin1(), "r")) != NULL ) { fscanf(file,"%d\n%d\n", &format, ¤tStyle); @@ -1478,7 +1478,7 @@ void BaghiraClient::init() } else { - tmpString = QDir::homeDirPath() + "/.baghira/" + QString( classHint.res_class ).lower(); + tmpString = TQDir::homeDirPath() + "/.baghira/" + TQString( classHint.res_class ).lower(); if( (file = fopen(tmpString.latin1(), "r")) != NULL ) { fscanf(file,"%d\n%d\n", &format, ¤tStyle); @@ -1490,7 +1490,7 @@ void BaghiraClient::init() } if (file == NULL) { - QString tmpString = QDir::homeDirPath() + "/.baghira/.bab/.deco"; + TQString tmpString = TQDir::homeDirPath() + "/.baghira/.bab/.deco"; if( (file = fopen(tmpString.latin1(), "r")) != NULL ) { fscanf(file,"%d\n%d\n", &format, ¤tStyle); @@ -1501,7 +1501,7 @@ void BaghiraClient::init() if (currentStyle > 4) currentStyle = BaghiraFactory::defaultMode(); #else - QSettings config; + TQSettings config; config.beginGroup("/baghira/Style"); if (config.readBoolEntry( "Design_Default", 1 ) == 2) { @@ -1527,20 +1527,20 @@ void BaghiraClient::init() titleheight_ = TITLESIZE; // setup layout - QVBoxLayout *mainlayout = new QVBoxLayout( widget() ); - QHBoxLayout *titlelayout = new QHBoxLayout(); - windowlayout = new QHBoxLayout(); + TQVBoxLayout *mainlayout = new TQVBoxLayout( widget() ); + TQHBoxLayout *titlelayout = new TQHBoxLayout(); + windowlayout = new TQHBoxLayout(); - titlebar_ = new QSpacerItem( 1, titleheight_, QSizePolicy::Expanding, QSizePolicy::Fixed ); - mainlayout->setResizeMode( QLayout::FreeResize ); + titlebar_ = new TQSpacerItem( 1, titleheight_, TQSizePolicy::Expanding, TQSizePolicy::Fixed ); + mainlayout->setResizeMode( TQLayout::FreeResize ); mainlayout->addLayout( titlelayout ); mainlayout->addLayout( windowlayout ); windowlayout->addSpacing( BaghiraFactory::borderSize(currentStyle) ); if ( isPreview() ) - windowlayout->addWidget( new QLabel( i18n( "<b><center>Baghira preview</center></b>" ), widget() ) ); + windowlayout->addWidget( new TQLabel( i18n( "<b><center>Baghira preview</center></b>" ), widget() ) ); else - windowlayout->addItem( new QSpacerItem( 0, 18 ) ); + windowlayout->addItem( new TQSpacerItem( 0, 18 ) ); windowlayout->addSpacing( BaghiraFactory::borderSize(currentStyle) ); @@ -1562,12 +1562,12 @@ void BaghiraClient::init() #endif if (BaghiraFactory::effect(currentStyle, true) >= Baghira::Brushed || BaghiraFactory::effect(currentStyle, false) >= Baghira::Brushed) - HandlePix = QPixmap(BaghiraFactory::pix(currentStyle, TitleBar, isActive(), false )); + HandlePix = TQPixmap(BaghiraFactory::pix(currentStyle, TitleBar, isActive(), false )); else if ( BaghiraFactory::bgStipple() ) { - HandlePix = QPixmap( 32, 32); - QPainter painter; - QColor c = widget()->colorGroup().background(); + HandlePix = TQPixmap( 32, 32); + TQPainter painter; + TQColor c = widget()->colorGroup().background(); HandlePix.fill(c); painter.begin( &HandlePix ); painter.setPen( c.dark( 100 + (BaghiraFactory::contrast()/2) ) ); @@ -1587,7 +1587,7 @@ void BaghiraClient::init() } } -QString BaghiraClient::caption() const +TQString BaghiraClient::caption() const { if (!BaghiraFactory::delAppname()) return KDecoration::caption(); @@ -1617,17 +1617,17 @@ QString BaghiraClient::caption() const // ------------ // Add buttons to title layout -void BaghiraClient::addButtons( QBoxLayout *layout, const QString& s ) +void BaghiraClient::addButtons( TQBoxLayout *layout, const TQString& s ) { if (noDeco_) return; // const unsigned char *bitmap; - QString tip; - QBitmap *m = NULL; - QBitmap *mn = NULL; - QBitmap *mD = NULL; - QBitmap *mnD = NULL; - QBitmap *mH = NULL; + TQString tip; + TQBitmap *m = NULL; + TQBitmap *mn = NULL; + TQBitmap *mD = NULL; + TQBitmap *mnD = NULL; + TQBitmap *mH = NULL; if (BaghiraFactory::effect(currentStyle, true) == Baghira::Brushed){ m = BaghiraFactory::buttonStyle(currentStyle) == Baghira::Panther ? &BaghiraFactory::pantherMask : @@ -1660,7 +1660,7 @@ void BaghiraClient::addButtons( QBoxLayout *layout, const QString& s ) mH = &BaghiraFactory::helpMask; } if ( s.length() > 0 ) { -// qWarning("%s",s.ascii()); +// tqWarning("%s",s.ascii()); layout->addSpacing( MARGIN ); excursion = excursion + plusminus * MARGIN; bool buttonAdded; @@ -1812,29 +1812,29 @@ void BaghiraClient::addButtons( QBoxLayout *layout, const QString& s ) // ------------- // Event filter -bool BaghiraClient::eventFilter( QObject *obj, QEvent *e ) +bool BaghiraClient::eventFilter( TQObject *obj, TQEvent *e ) { if ( obj != widget() ) return false; switch ( e->type() ) { - case QEvent::MouseButtonDblClick: { - mouseDoubleClickEvent( static_cast<QMouseEvent *>( e ) ); + case TQEvent::MouseButtonDblClick: { + mouseDoubleClickEvent( static_cast<TQMouseEvent *>( e ) ); return true; } - case QEvent::MouseButtonPress: { - if (titlebar_->geometry().contains( static_cast<QMouseEvent *>(e)->pos() ) && static_cast<QMouseEvent *>(e)->state() == Qt::ControlButton){ + case TQEvent::MouseButtonPress: { + if (titlebar_->geometry().contains( static_cast<TQMouseEvent *>(e)->pos() ) && static_cast<TQMouseEvent *>(e)->state() == TQt::ControlButton){ currentStyle < 4 ? currentStyle++ : currentStyle = 0; #if KDE_IS_VERSION(3,3,91) unsigned long wmDesign = currentStyle; - XChangeProperty(qt_xdisplay(), windowId(), baghira_deco_design, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &wmDesign, 1L); + XChangeProperty(tqt_xdisplay(), windowId(), baghira_deco_design, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &wmDesign, 1L); #endif widget()->repaint(); - QBitmap *m = NULL; - QBitmap *mn = NULL; - QBitmap *mD = NULL; - QBitmap *mnD = NULL; - QBitmap *mH = NULL; + TQBitmap *m = NULL; + TQBitmap *mn = NULL; + TQBitmap *mD = NULL; + TQBitmap *mnD = NULL; + TQBitmap *mH = NULL; if (BaghiraFactory::effect(currentStyle, true) == Baghira::Brushed){ m = BaghiraFactory::buttonStyle(currentStyle) == Baghira::Panther ? &BaghiraFactory::pantherMask : @@ -1884,41 +1884,41 @@ bool BaghiraClient::eventFilter( QObject *obj, QEvent *e ) return true; } if (BaghiraFactory::allowEasyClosing()){ - if (maximizeMode() == MaximizeFull && isActive() && (leftClose && static_cast<QMouseEvent *>( e )->x() == 0 && static_cast<QMouseEvent *>( e )->y() == 0) || (rightClose && static_cast<QMouseEvent *>( e )->x() == ((QWidget *)obj)->width() -1 && static_cast<QMouseEvent *>( e )->y() == 0)) + if (maximizeMode() == MaximizeFull && isActive() && (leftClose && static_cast<TQMouseEvent *>( e )->x() == 0 && static_cast<TQMouseEvent *>( e )->y() == 0) || (rightClose && static_cast<TQMouseEvent *>( e )->x() == ((TQWidget *)obj)->width() -1 && static_cast<TQMouseEvent *>( e )->y() == 0)) performEasyClose = true; - else processMousePressEvent( static_cast<QMouseEvent *>( e ) ); + else processMousePressEvent( static_cast<TQMouseEvent *>( e ) ); } - else processMousePressEvent( static_cast<QMouseEvent *>( e ) ); + else processMousePressEvent( static_cast<TQMouseEvent *>( e ) ); return true; } - case QEvent::MouseButtonRelease:{ - if (performEasyClose && maximizeMode() == MaximizeFull && (leftClose && static_cast<QMouseEvent *>( e )->x() == 0 && static_cast<QMouseEvent *>( e )->y() == 0) || (rightClose && static_cast<QMouseEvent *>( e )->x() == ((QWidget *)obj)->width() -1 && static_cast<QMouseEvent *>( e )->y() == 0)){ + case TQEvent::MouseButtonRelease:{ + if (performEasyClose && maximizeMode() == MaximizeFull && (leftClose && static_cast<TQMouseEvent *>( e )->x() == 0 && static_cast<TQMouseEvent *>( e )->y() == 0) || (rightClose && static_cast<TQMouseEvent *>( e )->x() == ((TQWidget *)obj)->width() -1 && static_cast<TQMouseEvent *>( e )->y() == 0)){ closeWindow(); performEasyClose = false; return true; } return FALSE; } - case QEvent::Paint: { - paintEvent( static_cast<QPaintEvent *>( e ) ); + case TQEvent::Paint: { + paintEvent( static_cast<TQPaintEvent *>( e ) ); return true; } - case QEvent::Resize: { - resizeEvent( static_cast<QResizeEvent *>( e ) ); + case TQEvent::Resize: { + resizeEvent( static_cast<TQResizeEvent *>( e ) ); return true; } - case QEvent::Show: { + case TQEvent::Show: { #if KDE_IS_VERSION(3,3,91) if (!grip && BaghiraFactory::resizeGrip() && isResizable()) grip = new ResizeHandle(this); #endif - showEvent( static_cast<QShowEvent *>( e ) ); + showEvent( static_cast<TQShowEvent *>( e ) ); return true; } - case QEvent::Hide: { + case TQEvent::Hide: { emit hide(); } - case QEvent::Wheel: { - wheelEvent(static_cast<QWheelEvent *>( e )); + case TQEvent::Wheel: { + wheelEvent(static_cast<TQWheelEvent *>( e )); return true; } default: { @@ -1934,15 +1934,15 @@ bool BaghiraClient::eventFilter( QObject *obj, QEvent *e ) // ----------------------- // Doubleclick on title -void BaghiraClient::mouseDoubleClickEvent( QMouseEvent *e ) +void BaghiraClient::mouseDoubleClickEvent( TQMouseEvent *e ) { if ( titlebar_->geometry().contains( e->pos() ) ) titlebarDblClickOperation(); } -void BaghiraClient::wheelEvent( QWheelEvent *e ) +void BaghiraClient::wheelEvent( TQWheelEvent *e ) { - if (titlebar_->geometry().contains( e->pos() ) && e->state() == Qt::ControlButton){ + if (titlebar_->geometry().contains( e->pos() ) && e->state() == TQt::ControlButton){ // surf through the desktops :) int target, cD; if (e->delta() > 0){ @@ -1961,20 +1961,20 @@ void BaghiraClient::wheelEvent( QWheelEvent *e ) // ------------ // Repaint the window -void BaghiraClient::paintEvent( QPaintEvent* ) +void BaghiraClient::paintEvent( TQPaintEvent* ) { if ( !BaghiraFactory::initialized() || noDeco_) return ; - QPainter painter( widget() ); - QColorGroup group; + TQPainter painter( widget() ); + TQColorGroup group; - QRect title( 0, 0, width(), titlebar_->geometry().height() ); - QRect left( 0, title.height(), BaghiraFactory::borderSize(currentStyle), height() - + TQRect title( 0, 0, width(), titlebar_->geometry().height() ); + TQRect left( 0, title.height(), BaghiraFactory::borderSize(currentStyle), height() - title.height() ); - QRect right( width() - BaghiraFactory::borderSize(currentStyle), title.height(), + TQRect right( width() - BaghiraFactory::borderSize(currentStyle), title.height(), BaghiraFactory::borderSize(currentStyle), height() - title.height() ); - QRect handle( 0, height() - BaghiraFactory::borderSize(currentStyle), + TQRect handle( 0, height() - BaghiraFactory::borderSize(currentStyle), width(), BaghiraFactory::borderSize(currentStyle) ); int x, y, x2, y2, h, w; @@ -2002,7 +2002,7 @@ void BaghiraClient::paintEvent( QPaintEvent* ) y2 = title.bottom(); int shapeW = w; - const QColor *ttbar = &(BaghiraFactory::color(currentStyle, Baghira::ColorTitleBar, isActive())); + const TQColor *ttbar = &(BaghiraFactory::color(currentStyle, Baghira::ColorTitleBar, isActive())); int tmp3Dimpact_ = 100 + BaghiraFactory::_3DImpact(currentStyle); @@ -2062,7 +2062,7 @@ void BaghiraClient::paintEvent( QPaintEvent* ) } } - const QColor *ttblend = &(BaghiraFactory::color(currentStyle, Baghira::ColorTitleBlend, isActive())); + const TQColor *ttblend = &(BaghiraFactory::color(currentStyle, Baghira::ColorTitleBlend, isActive())); if (BaghiraFactory::LineImpact(currentStyle) > 0) { @@ -2081,7 +2081,7 @@ void BaghiraClient::paintEvent( QPaintEvent* ) BaghiraFactory::drawIcon(currentStyle) ? iconWidth = 16 : iconWidth = 0; if (BaghiraFactory::drawIcon(currentStyle) || BaghiraFactory::effect(currentStyle, isActive()) == Baghira::Nostalgia) { - QRect textBound = painter.boundingRect ( x + 2 * MARGIN + iconWidth, y, w - MARGIN * 2 - iconWidth, h, BaghiraFactory::titleAlign() | AlignVCenter, caption() ); + TQRect textBound = painter.boundingRect ( x + 2 * MARGIN + iconWidth, y, w - MARGIN * 2 - iconWidth, h, BaghiraFactory::titleAlign() | AlignVCenter, caption() ); iconLeft = textBound.x() - MARGIN - iconWidth; if ( iconLeft < x + MARGIN ) iconLeft = x + MARGIN; @@ -2089,7 +2089,7 @@ void BaghiraClient::paintEvent( QPaintEvent* ) { ICONX = iconLeft; ICONY = y + ( titleheight_ - 16 ) / 2; - painter.drawPixmap( ICONX, ICONY, icon().pixmap( QIconSet::Small, QIconSet::Normal ) ); + painter.drawPixmap( ICONX, ICONY, icon().pixmap( TQIconSet::Small, TQIconSet::Normal ) ); } if (BaghiraFactory::effect(currentStyle, isActive()) == Baghira::Nostalgia) @@ -2108,13 +2108,13 @@ void BaghiraClient::paintEvent( QPaintEvent* ) iconLeft = x + MARGIN; ICONX = iconLeft; ICONY = y + ( titleheight_ - 16 ) / 2; - painter.drawPixmap( ICONX, ICONY, icon().pixmap( QIconSet::Small, QIconSet::Normal ) ); + painter.drawPixmap( ICONX, ICONY, icon().pixmap( TQIconSet::Small, TQIconSet::Normal ) ); } // draw outer frame if ( !isShade() ) { - QColor background = widget() ->colorGroup().background(); + TQColor background = widget() ->colorGroup().background(); // left side left.rect( &x, &y, &w, &h ); @@ -2258,12 +2258,12 @@ void BaghiraClient::paintEvent( QPaintEvent* ) // ------------- // Window is being resized -void BaghiraClient::resizeEvent( QResizeEvent* ) +void BaghiraClient::resizeEvent( TQResizeEvent* ) { if (noDeco_) return; /*if ( widget() ->isShown() ) { - QRegion region = widget() ->rect(); + TQRegion region = widget() ->rect(); region = region.subtract( titlebar_->geometry() ); widget() ->erase( region ); }*/ @@ -2278,41 +2278,41 @@ void BaghiraClient::resizeEvent( QResizeEvent* ) void BaghiraClient::doShape() { // return; - QRegion mask; + TQRegion mask; if (!(BaghiraFactory::allowEasyClosing() && maximizeMode() == MaximizeFull)){ int r = width(); int b = height() - 1; - mask = QRegion( 0, 0, r, b+1 ); + mask = TQRegion( 0, 0, r, b+1 ); if (BaghiraFactory::shapeUL(currentStyle)){ // Remove top-left corner. - mask -= QRegion( 0, 0, 5, 1 ); - mask -= QRegion( 0, 1, 3, 1 ); - mask -= QRegion( 0, 2, 2, 1 ); - mask -= QRegion( 0, 3, 1, 2 ); + mask -= TQRegion( 0, 0, 5, 1 ); + mask -= TQRegion( 0, 1, 3, 1 ); + mask -= TQRegion( 0, 2, 2, 1 ); + mask -= TQRegion( 0, 3, 1, 2 ); } if (BaghiraFactory::shapeUR(currentStyle)){ // Remove top-right corner. - mask -= QRegion( r - 5, 0, 5, 1 ); - mask -= QRegion( r - 3, 1, 3, 1 ); - mask -= QRegion( r - 2, 2, 2, 1 ); - mask -= QRegion( r - 1, 3, 1, 2 ); + mask -= TQRegion( r - 5, 0, 5, 1 ); + mask -= TQRegion( r - 3, 1, 3, 1 ); + mask -= TQRegion( r - 2, 2, 2, 1 ); + mask -= TQRegion( r - 1, 3, 1, 2 ); } if (BaghiraFactory::shapeLL(currentStyle)){ // Remove bottom-left corner. - mask -= QRegion(0, b-0, 5, 1); - mask -= QRegion(0, b-1, 3, 1); - mask -= QRegion(0, b-2, 2, 1); - mask -= QRegion(0, b-4, 1, 2); + mask -= TQRegion(0, b-0, 5, 1); + mask -= TQRegion(0, b-1, 3, 1); + mask -= TQRegion(0, b-2, 2, 1); + mask -= TQRegion(0, b-4, 1, 2); } if (BaghiraFactory::shapeLR(currentStyle)){ // Remove bottom-right corner. - mask -= QRegion(r - 5, b-0, 5, 1); - mask -= QRegion(r - 3, b-1, 3, 1); - mask -= QRegion(r - 2, b-2, 2, 1); - mask -= QRegion(r - 1, b-4, 1, 2); + mask -= TQRegion(r - 5, b-0, 5, 1); + mask -= TQRegion(r - 3, b-1, 3, 1); + mask -= TQRegion(r - 2, b-2, 2, 1); + mask -= TQRegion(r - 1, b-4, 1, 2); } } setMask( mask, 1 ); @@ -2324,7 +2324,7 @@ void BaghiraClient::doShape() // ----------- // Window is being shown -void BaghiraClient::showEvent( QShowEvent* ) +void BaghiraClient::showEvent( TQShowEvent* ) { if (noDeco_) return; @@ -2408,9 +2408,9 @@ void BaghiraClient::desktopChange() bool d = isOnAllDesktops(); if ( button[ StickyButton ] ) { - QToolTip::remove + TQToolTip::remove ( button[ StickyButton ] ); - QToolTip::add + TQToolTip::add ( button[ StickyButton ], d ? i18n( "Un-Sticky" ) : i18n( "Sticky" ) ); } } @@ -2448,9 +2448,9 @@ void BaghiraClient::maximizeChange() BaghiraFactory::deMaximizer().hide(); } if ( button[ MaxButton ] ) { - QToolTip::remove + TQToolTip::remove ( button[ MaxButton ] ); - QToolTip::add + TQToolTip::add ( button[ MaxButton ], m ? i18n( "Restore" ) : i18n( "Maximize" ) ); } } @@ -2493,7 +2493,7 @@ void BaghiraClient::borders( int &l, int &r, int &t, int &b ) const // -------- // Called to resize the window -void BaghiraClient::resize( const QSize &size ) +void BaghiraClient::resize( const TQSize &size ) { if (noDeco_) return; @@ -2505,9 +2505,9 @@ void BaghiraClient::resize( const QSize &size ) // ------------- // Return the minimum allowable size for this decoration -QSize BaghiraClient::minimumSize() const +TQSize BaghiraClient::minimumSize() const { - return QSize( 100, 60 ); + return TQSize( 100, 60 ); } ////////////////////////////////////////////////////////////////////////////// @@ -2515,7 +2515,7 @@ QSize BaghiraClient::minimumSize() const // --------------- // Return mouse position (for resizing) -KDecoration::Position BaghiraClient::mousePosition( const QPoint &point ) const +KDecoration::Position BaghiraClient::mousePosition( const TQPoint &point ) const { if (noDeco_) return PositionCenter; @@ -2574,7 +2574,7 @@ void BaghiraClient::maxButtonPressed() { void BaghiraClient::menuButtonPressed() { if ( button[ MenuButton ] ) { - QPoint pt( button[ MenuButton ] ->rect().bottomLeft().x(), + TQPoint pt( button[ MenuButton ] ->rect().bottomLeft().x(), button[ MenuButton ] ->rect().bottomLeft().y() + 4 ); KDecorationFactory* f = factory(); showWindowMenu( button[ MenuButton ] ->mapToGlobal( pt ) ); diff --git a/deco/baghiraclient.h b/deco/baghiraclient.h index c77ea0d..28c4963 100644 --- a/deco/baghiraclient.h +++ b/deco/baghiraclient.h @@ -27,8 +27,8 @@ #ifndef BAGHIRACLIENT_H #define BAGHIRACLIENT_H -#include <qcolor.h> -#include <qbutton.h> +#include <tqcolor.h> +#include <tqbutton.h> #include <kdecoration.h> #include <kdecorationfactory.h> #include <kpixmap.h> @@ -40,9 +40,9 @@ #define TITLESIZESMALL 18; #define MARGIN 4;*/ -class QSpacerItem; -class QPoint; -class QBitmap; +class TQSpacerItem; +class TQPoint; +class TQBitmap; class KWinModule; namespace Baghira { @@ -106,7 +106,7 @@ enum TitlebarType{ class BaghiraClient; // #if KDE_IS_VERSION(3,3,91) -class ResizeHandle : public QWidget +class ResizeHandle : public TQWidget { //#if KDE_IS_VERSION(3,3,91) friend class BaghiraClient; @@ -115,20 +115,20 @@ friend class BaghiraClient; public: ResizeHandle(BaghiraClient *parent); protected: - virtual void mousePressEvent ( QMouseEvent * ); - virtual void mouseReleaseEvent ( QMouseEvent * ); - virtual void paintEvent ( QPaintEvent * ); + virtual void mousePressEvent ( TQMouseEvent * ); + virtual void mouseReleaseEvent ( TQMouseEvent * ); + virtual void paintEvent ( TQPaintEvent * ); void updateLook(bool rp = FALSE); private: - bool eventFilter(QObject *obj, QEvent *e); + bool eventFilter(TQObject *obj, TQEvent *e); void shape(); BaghiraClient *client; - QPixmap pix; + TQPixmap pix; #endif }; // #endif -class DeMaximizer : public QWidget +class DeMaximizer : public TQWidget { friend class BaghiraClient; friend class BaghiraFactory; @@ -137,14 +137,14 @@ public: DeMaximizer(); void setClient(BaghiraClient *); protected: - void mouseReleaseEvent( QMouseEvent * e ); - void mousePressEvent ( QMouseEvent * e ); - void enterEvent ( QEvent * e ); - void leaveEvent ( QEvent * e ); - void setPixmap(int i, QImage &image); + void mouseReleaseEvent( TQMouseEvent * e ); + void mousePressEvent ( TQMouseEvent * e ); + void enterEvent ( TQEvent * e ); + void leaveEvent ( TQEvent * e ); + void setPixmap(int i, TQImage &image); private: BaghiraClient *client_; - QPixmap pixmap[5]; + TQPixmap pixmap[5]; void setState(int i); }; @@ -157,22 +157,22 @@ public: virtual ~BaghiraFactory(); virtual KDecoration *createDecoration(KDecorationBridge *b); virtual bool reset(unsigned long changed); - virtual QValueList<BorderSize> borderSizes() const; - static QPixmap &ButtonPixmap(Baghira::WindowState wState, Baghira::ButtonType type, Baghira::ButtonState state, int current, bool small); - QImage* DecoImage(QPixmap *pix, int x, int y, int width, int height); + virtual TQValueList<BorderSize> borderSizes() const; + static TQPixmap &ButtonPixmap(Baghira::WindowState wState, Baghira::ButtonType type, Baghira::ButtonState state, int current, bool small); + TQImage* DecoImage(TQPixmap *pix, int x, int y, int width, int height); - static QBitmap helpMask, jaguarDownMask, jaguarMenuDownMask, + static TQBitmap helpMask, jaguarDownMask, jaguarMenuDownMask, jaguarMenuMask, jaguarMask, milkMenuDownMask, milkMenuMask, milkMask, pantherMenuMask, pantherMask, milkDownMask, arrowUp, arrowDown; static bool initialized(); static bool noModalDeco(); static bool delAppname(); - static QColor &color(int current, Baghira::ColorType c, bool active=true); + static TQColor &color(int current, Baghira::ColorType c, bool active=true); static KPixmap &pix(int current, PixmapType p, bool active=true, bool small=false); static TitlebarType &effect(int current, bool active); static ButtonStyle buttonStyle(int current); - static Qt::AlignmentFlags titleAlign(); + static TQt::AlignmentFlags titleAlign(); static int borderSize(int current); static int contrast(); static int _3DImpact(int current); @@ -193,17 +193,17 @@ public: TitlebarType titleEffect(); static DeMaximizer &deMaximizer(); static bool fullSpec(); - static QColor &BrushedMetalColor(); + static TQColor &BrushedMetalColor(); private: -// bool blend( const QImage & upper, const QImage & lower, QImage & output); +// bool blend( const TQImage & upper, const TQImage & lower, TQImage & output); unsigned long readConfig(); void createPixmaps(); - void createGradient(KPixmap &pix, const QColor &light, const QColor &dark, Baghira::TitlebarType effect); + void createGradient(KPixmap &pix, const TQColor &light, const TQColor &dark, Baghira::TitlebarType effect); void createOS8Buttons(int style); - QString indexedString(QString s, int index); - QImage* tintBrush( const QImage &img, const QColor &c ) const; - QImage* tintGlossy(const QImage &src, const QColor &c ) const; + TQString indexedString(TQString s, int index); + TQImage* tintBrush( const TQImage &img, const TQColor &c ) const; + TQImage* tintGlossy(const TQImage &src, const TQColor &c ) const; private: @@ -220,13 +220,13 @@ private: static bool drawIcon_[5]; static ButtonStyle buttonStyle_[5]; static TitlebarType effect_[5][2]; - static Qt::AlignmentFlags titlealign_; - static QColor colors_[5][ColorTypeCount][2]; + static TQt::AlignmentFlags titlealign_; + static TQColor colors_[5][ColorTypeCount][2]; static KPixmap pix_[5][PixmapTypeCount][2][2]; - static QPixmap ButtonPixmap_[5][WindowStateAmount][ButtonTypeAmount][ButtonStateAmount][2]; - static QColor ButtonColor_[ButtonTypeAmount+1]; - static QColor brushedMetalColor; - static QPixmap nostalgia_[5][3][2]; + static TQPixmap ButtonPixmap_[5][WindowStateAmount][ButtonTypeAmount][ButtonStateAmount][2]; + static TQColor ButtonColor_[ButtonTypeAmount+1]; + static TQColor brushedMetalColor; + static TQPixmap nostalgia_[5][3][2]; static int contrast_; static int bordersize_[5]; @@ -237,7 +237,7 @@ private: static bool tintBrush_; static bool showTitle_; - static QColor brushTint; + static TQColor brushTint; static DeMaximizer deMaximizer_; static bool fullSpec_; @@ -304,10 +304,10 @@ inline ButtonStyle BaghiraFactory::buttonStyle(int current) inline bool BaghiraFactory::initialized() { return initialized_; } -inline QColor &BaghiraFactory::BrushedMetalColor() +inline TQColor &BaghiraFactory::BrushedMetalColor() { return brushedMetalColor; } -inline QColor &BaghiraFactory::color(int current, Baghira::ColorType c, bool active) +inline TQColor &BaghiraFactory::color(int current, Baghira::ColorType c, bool active) { return colors_[current][c][active]; } inline KPixmap &BaghiraFactory::pix(int current, PixmapType p, bool active, bool small) @@ -316,7 +316,7 @@ inline KPixmap &BaghiraFactory::pix(int current, PixmapType p, bool active, bool inline Baghira::TitlebarType &BaghiraFactory::effect(int current, bool active) { return effect_[current][active]; } -inline Qt::AlignmentFlags BaghiraFactory::titleAlign() +inline TQt::AlignmentFlags BaghiraFactory::titleAlign() { return titlealign_; } inline int BaghiraFactory::borderSize(int current) @@ -324,29 +324,29 @@ inline int BaghiraFactory::borderSize(int current) // BaghiraButton /////////////////////////////////////////////////////////////// -class BaghiraButton : public QButton +class BaghiraButton : public TQButton { Q_OBJECT public: - BaghiraButton(BaghiraClient *parent=0, const char *name=0, const QString &tip=NULL, bool small=false, ButtonType type=MinButton, int style=0); + BaghiraButton(BaghiraClient *parent=0, const char *name=0, const TQString &tip=NULL, bool small=false, ButtonType type=MinButton, int style=0); ~BaghiraButton(); - QSize sizeHint() const; + TQSize sizeHint() const; int lastMousePress() const; void reset(); - inline void setMasks(QBitmap *bitmask, QBitmap *bitmaskDown); + inline void setMasks(TQBitmap *bitmask, TQBitmap *bitmaskDown); Baghira::ButtonState state(); inline void setType(Baghira::ButtonType type) {type_ = type; } - QBitmap *mask; - QBitmap *maskDown; + TQBitmap *mask; + TQBitmap *maskDown; private: - void enterEvent(QEvent *e); - void leaveEvent(QEvent *e); - void mousePressEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *e); - void drawButton(QPainter *painter); + void enterEvent(TQEvent *e); + void leaveEvent(TQEvent *e); + void mousePressEvent(TQMouseEvent *e); + void mouseReleaseEvent(TQMouseEvent *e); + void drawButton(TQPainter *painter); private slots: void delayedEnterEvent(); @@ -355,8 +355,8 @@ private: bool _blocked; BaghiraClient *client_; ButtonType type_; - QBitmap *deco_; - QPixmap *pixmap[2][5]; + TQBitmap *deco_; + TQPixmap *pixmap[2][5]; KPixmap icon_; bool small_; int lastmouse_; @@ -382,7 +382,7 @@ public: virtual ~BaghiraClient(); virtual void init(); - QString caption() const; + TQString caption() const; virtual void activeChange(); virtual void desktopChange(); @@ -393,9 +393,9 @@ public: void demaxButtonPressed(); virtual void borders(int &l, int &r, int &t, int &b) const; - virtual void resize(const QSize &size); - virtual QSize minimumSize() const; - virtual Position mousePosition(const QPoint &point) const; + virtual void resize(const TQSize &size); + virtual TQSize minimumSize() const; + virtual Position mousePosition(const TQPoint &point) const; uint currentStyle; signals: @@ -406,14 +406,14 @@ protected: int titleheight_; private: - void addButtons(QBoxLayout* layout, const QString& buttons); + void addButtons(TQBoxLayout* layout, const TQString& buttons); - bool eventFilter(QObject *obj, QEvent *e); - void mouseDoubleClickEvent(QMouseEvent *e); - void wheelEvent(QWheelEvent *e); - void paintEvent(QPaintEvent *); - void resizeEvent(QResizeEvent *); - void showEvent(QShowEvent *); + bool eventFilter(TQObject *obj, TQEvent *e); + void mouseDoubleClickEvent(TQMouseEvent *e); + void wheelEvent(TQWheelEvent *e); + void paintEvent(TQPaintEvent *); + void resizeEvent(TQResizeEvent *); + void showEvent(TQShowEvent *); private slots: void doShape(); @@ -425,8 +425,8 @@ private slots: private: BaghiraButton *button[ButtonTypeAmount]; - QSpacerItem *titlebar_; - QPixmap HandlePix; + TQSpacerItem *titlebar_; + TQPixmap HandlePix; int excursion; // skewness because of unequality of left/right buttons - bad for center aligned titles... int plusminus; bool isFaded; @@ -434,10 +434,10 @@ private: bool rightClose; bool performEasyClose; bool noDeco_; - QHBoxLayout *windowlayout; + TQHBoxLayout *windowlayout; int ICONX, ICONY; ResizeHandle *grip; - QString caption_; + TQString caption_; }; } // namespace Baghira diff --git a/deco/config/aquariusbutton.cc b/deco/config/aquariusbutton.cc index 6201abc..dcc1638 100644 --- a/deco/config/aquariusbutton.cc +++ b/deco/config/aquariusbutton.cc @@ -1,7 +1,7 @@ #include "aquariusbutton.h" -#include <qcolor.h> -#include <qpixmap.h> -#include <qpainter.h> +#include <tqcolor.h> +#include <tqpixmap.h> +#include <tqpainter.h> #include <kimageeffect.h> #include "config.h" @@ -33,7 +33,7 @@ destG = (S*destG + (100-S)*G)/100; \ destB = (S*destB + (100-S)*B)/100; -static bool blend( const QImage & upper, const QImage & lower, QImage & output) +static bool blend( const TQImage & upper, const TQImage & lower, TQImage & output) // adopted from kimageeffect::blend - what is not endian safe... { if @@ -92,7 +92,7 @@ static bool blend( const QImage & upper, const QImage & lower, QImage & output) return true; } -AquariusButton::AquariusButton( QPixmap &pixmap, QWidget* parent, const char* name) : QWidget( parent, name){ +AquariusButton::AquariusButton( TQPixmap &pixmap, TQWidget* parent, const char* name) : TQWidget( parent, name){ pixmap = pixmap; image = pixmap.convertToImage(); setFixedSize( pixmap.size() ); @@ -101,18 +101,18 @@ AquariusButton::AquariusButton( QPixmap &pixmap, QWidget* parent, const char* na AquariusButton::~AquariusButton(){ } -QColor AquariusButton::Color(){ +TQColor AquariusButton::Color(){ return color; } -void AquariusButton::setColor(QColor c){ +void AquariusButton::setColor(TQColor c){ color = c; tint(color); repaint(false); } -void AquariusButton::tint(QColor &c){ - QImage dest( image.width(), image.height(), 32, 0 ); +void AquariusButton::tint(TQColor &c){ + TQImage dest( image.width(), image.height(), 32, 0 ); dest.setAlphaBuffer( true ); unsigned int *data = ( unsigned int * ) image.bits(); unsigned int *destData = ( unsigned int* ) dest.bits(); @@ -127,34 +127,34 @@ void AquariusButton::tint(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 ] ); + alpha = tqAlpha( data[ current ] ); if (alpha < 230){ destData[ current ] = data[ current ]; continue; //do not handle translucent parts to not affect blending } - red = qRed( data[ current ] ); - green = qGreen( data[ current ] ); - blue = qBlue( data[ current ] ); + red = tqRed( data[ current ] ); + green = tqGreen( data[ current ] ); + blue = tqBlue( 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 ); } - QPixmap backPix = QPixmap(dest.size()); - QPainter tmpPainter(&backPix); + TQPixmap backPix = TQPixmap(dest.size()); + TQPainter tmpPainter(&backPix); tmpPainter.fillRect(0, 0, dest.width(),dest.height(), backgroundBrush()); tmpPainter.end(); - QImage back = backPix.convertToImage(); + TQImage back = backPix.convertToImage(); blend(dest,back,back); - pixmap = QPixmap(back); + pixmap = TQPixmap(back); } -void AquariusButton::mousePressEvent( QMouseEvent *e ){ +void AquariusButton::mousePressEvent( TQMouseEvent *e ){ emit clicked(); } -void AquariusButton::paintEvent( QPaintEvent *e){ - QPainter tmpPainter(this); +void AquariusButton::paintEvent( TQPaintEvent *e){ + TQPainter tmpPainter(this); tmpPainter.drawPixmap(0,0, pixmap); } diff --git a/deco/config/aquariusbutton.h b/deco/config/aquariusbutton.h index 04fec0d..3632408 100644 --- a/deco/config/aquariusbutton.h +++ b/deco/config/aquariusbutton.h @@ -1,32 +1,32 @@ #ifndef AQUARIUSBUTTON_H #define AQUARIUSBUTTON_H -//#include <qvariant.h> -#include <qwidget.h> -#include <qimage.h> +//#include <tqvariant.h> +#include <tqwidget.h> +#include <tqimage.h> -class QPixmap; -class QColor; +class TQPixmap; +class TQColor; -class AquariusButton : public QWidget +class AquariusButton : public TQWidget { Q_OBJECT public: - AquariusButton( QPixmap &pixmap, QWidget* parent = 0, const char* name = 0); + AquariusButton( TQPixmap &pixmap, TQWidget* parent = 0, const char* name = 0); ~AquariusButton(); - QColor Color(); + TQColor Color(); public slots: - void setColor(QColor c); + void setColor(TQColor c); protected: - QPixmap pixmap; - QImage image; - QColor color; - void tint(QColor &c); - void mousePressEvent( QMouseEvent *e ); - void paintEvent( QPaintEvent *e); + TQPixmap pixmap; + TQImage image; + TQColor color; + void tint(TQColor &c); + void mousePressEvent( TQMouseEvent *e ); + void paintEvent( TQPaintEvent *e); signals: diff --git a/deco/config/baghiraconfig.cc b/deco/config/baghiraconfig.cc index 2054976..711105c 100644 --- a/deco/config/baghiraconfig.cc +++ b/deco/config/baghiraconfig.cc @@ -11,19 +11,19 @@ #include <klocale.h> #include <kglobal.h> #include <kcolorbutton.h> -#include <qbutton.h> -#include <qbuttongroup.h> -#include <qcombobox.h> -#include <qcheckbox.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qfont.h> -#include <qgroupbox.h> -#include <qpushbutton.h> -#include <qradiobutton.h> -#include <qsettings.h> -#include <qspinbox.h> -#include <qwhatsthis.h> +#include <tqbutton.h> +#include <tqbuttongroup.h> +#include <tqcombobox.h> +#include <tqcheckbox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqfont.h> +#include <tqgroupbox.h> +#include <tqpushbutton.h> +#include <tqradiobutton.h> +#include <tqsettings.h> +#include <tqspinbox.h> +#include <tqwhatsthis.h> #include "baghiraconfig.h" #include "configdialog.h" @@ -38,11 +38,11 @@ // ------------- // Constructor -BaghiraConfig::BaghiraConfig(KConfig*, QWidget* parent) - : QObject(parent), /*config_(0),*/ dialog_(0) +BaghiraConfig::BaghiraConfig(KConfig*, TQWidget* parent) + : TQObject(parent), /*config_(0),*/ dialog_(0) { // config_ = new KConfig("baghirarc"); -// config_ = new QSettings; +// config_ = new TQSettings; // config_->beginGroup("/baghira/Deco"); KGlobal::locale()->insertCatalogue("kwin_baghira_config"); @@ -164,11 +164,11 @@ BaghiraConfig::~BaghiraConfig() void BaghiraConfig::load(KConfig*) { - QSettings *config_ = new QSettings; + TQSettings *config_ = new TQSettings; config_->beginGroup("/baghira/Deco"); - QString value = config_->readEntry("TitleAlignment", "AlignHCenter"); - QRadioButton *button = (QRadioButton*)dialog_->titlealign-> + TQString value = config_->readEntry("TitleAlignment", "AlignHCenter"); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign-> child((const char *)value.latin1()); if (button) button->setChecked(true); @@ -183,10 +183,10 @@ void BaghiraConfig::load(KConfig*) dialog_->noModalDeco->setChecked(config_->readBoolEntry("NoModalDeco",false)); dialog_->delAppname->setChecked(config_->readBoolEntry("RemoveAppname",false)); - dialog_->activeColor1_J->setColor(QColor((unsigned int)config_->readNumEntry("activeColor1_1",QColor(255,255,255).rgb()))); - dialog_->inactiveColor1_J->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor1_1",QColor(204,214,230).rgb()))); - dialog_->activeColor2_J->setColor(QColor((unsigned int)config_->readNumEntry("activeColor2_1",QColor(238,234,238).rgb()))); - dialog_->inactiveColor2_J->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor2_1",QColor(194,196,211).rgb()))); + dialog_->activeColor1_J->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor1_1",TQColor(255,255,255).rgb()))); + dialog_->inactiveColor1_J->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor1_1",TQColor(204,214,230).rgb()))); + dialog_->activeColor2_J->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor2_1",TQColor(238,234,238).rgb()))); + dialog_->inactiveColor2_J->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor2_1",TQColor(194,196,211).rgb()))); dialog_->buttonStyle_J->setCurrentItem(config_->readNumEntry("ButtonStyle_1",1)); dialog_->titleeffect_J->setCurrentItem(config_->readNumEntry("TitleEffect_1", 1)); dialog_->i_titleeffect_J->setCurrentItem(config_->readNumEntry("inactiveTitleEffect_1", 1)); @@ -199,10 +199,10 @@ void BaghiraConfig::load(KConfig*) dialog_->LineImpact_J->setValue(config_->readNumEntry("LineImpact_1",40)); dialog_->borderSize_J->setValue(config_->readNumEntry("BorderSize_1",0)); - dialog_->activeColor1_P->setColor(QColor((unsigned int)config_->readNumEntry("activeColor1_2",QColor(238,238,238).rgb()))); - dialog_->inactiveColor1_P->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor1_2",QColor(246,242,246).rgb()))); - dialog_->activeColor2_P->setColor(QColor((unsigned int)config_->readNumEntry("activeColor2_2",QColor(205,202,205).rgb()))); - dialog_->inactiveColor2_P->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor2_2",QColor(238,238,238).rgb()))); + dialog_->activeColor1_P->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor1_2",TQColor(238,238,238).rgb()))); + dialog_->inactiveColor1_P->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor1_2",TQColor(246,242,246).rgb()))); + dialog_->activeColor2_P->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor2_2",TQColor(205,202,205).rgb()))); + dialog_->inactiveColor2_P->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor2_2",TQColor(238,238,238).rgb()))); dialog_->buttonStyle_P->setCurrentItem(config_->readNumEntry("ButtonStyle_2",0)); dialog_->titleeffect_P->setCurrentItem(config_->readNumEntry("TitleEffect_2", 0)); dialog_->i_titleeffect_P->setCurrentItem(config_->readNumEntry("inactiveTitleEffect_2", 0)); @@ -215,10 +215,10 @@ void BaghiraConfig::load(KConfig*) dialog_->LineImpact_P->setValue(config_->readNumEntry("LineImpact_2",40)); dialog_->borderSize_P->setValue(config_->readNumEntry("BorderSize_2",0)); - dialog_->activeColor1_B->setColor(QColor((unsigned int)config_->readNumEntry("activeColor1_3",QColor(202,202,202).rgb()))); - dialog_->inactiveColor1_B->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor1_3",QColor(200,200,200).rgb()))); - dialog_->activeColor2_B->setColor(QColor((unsigned int)config_->readNumEntry("activeColor2_3",QColor(150,150,150).rgb()))); - dialog_->inactiveColor2_B->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor2_3",QColor(150,150,150).rgb()))); + dialog_->activeColor1_B->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor1_3",TQColor(202,202,202).rgb()))); + dialog_->inactiveColor1_B->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor1_3",TQColor(200,200,200).rgb()))); + dialog_->activeColor2_B->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor2_3",TQColor(150,150,150).rgb()))); + dialog_->inactiveColor2_B->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor2_3",TQColor(150,150,150).rgb()))); dialog_->buttonStyle_B->setCurrentItem(config_->readNumEntry("ButtonStyle_3",0)); dialog_->titleeffect_B->setCurrentItem(config_->readNumEntry("TitleEffect_3", 4)); dialog_->i_titleeffect_B->setCurrentItem(config_->readNumEntry("inactiveTitleEffect_3", 4)); @@ -231,8 +231,8 @@ void BaghiraConfig::load(KConfig*) dialog_->LineImpact_B->setValue(config_->readNumEntry("LineImpact_3",0)); dialog_->borderSize_B->setValue(config_->readNumEntry("BorderSize_3",6)); - dialog_->activeColor1_T->setColor(QColor((unsigned int)config_->readNumEntry("activeColor1_4",QColor(238,238,238).rgb()))); - dialog_->activeColor2_T->setColor(QColor((unsigned int)config_->readNumEntry("activeColor2_4",QColor(205,202,205).rgb()))); + dialog_->activeColor1_T->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor1_4",TQColor(238,238,238).rgb()))); + dialog_->activeColor2_T->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor2_4",TQColor(205,202,205).rgb()))); dialog_->buttonStyle_T->setCurrentItem(config_->readNumEntry("ButtonStyle_4",0)); dialog_->shapeUL_T->setChecked(config_->readBoolEntry("ShapeUL_4",true)); dialog_->shapeUR_T->setChecked(config_->readBoolEntry("ShapeUR_4",true)); @@ -242,10 +242,10 @@ void BaghiraConfig::load(KConfig*) dialog_->_3DImpact_T->setValue(config_->readNumEntry("3DImpact_4",20)); dialog_->borderSize_T->setValue(config_->readNumEntry("BorderSize_4",0)); - dialog_->activeColor1_S->setColor(QColor((unsigned int)config_->readNumEntry("activeColor1_5",QColor(250,250,250).rgb()))); - dialog_->inactiveColor1_S->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor1_5",QColor(230,230,230).rgb()))); - dialog_->activeColor2_S->setColor(QColor((unsigned int)config_->readNumEntry("activeColor2_5",QColor(230,230,230).rgb()))); - dialog_->inactiveColor2_S->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor2_5",QColor(250,250,250).rgb()))); + dialog_->activeColor1_S->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor1_5",TQColor(250,250,250).rgb()))); + dialog_->inactiveColor1_S->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor1_5",TQColor(230,230,230).rgb()))); + dialog_->activeColor2_S->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor2_5",TQColor(230,230,230).rgb()))); + dialog_->inactiveColor2_S->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor2_5",TQColor(250,250,250).rgb()))); dialog_->buttonStyle_S->setCurrentItem(config_->readNumEntry("ButtonStyle_5",0)); dialog_->titleeffect_S->setCurrentItem(config_->readNumEntry("TitleEffect_5", 0)); dialog_->i_titleeffect_S->setCurrentItem(config_->readNumEntry("inactiveTitleEffect_5", 0)); @@ -258,16 +258,16 @@ void BaghiraConfig::load(KConfig*) dialog_->LineImpact_S->setValue(config_->readNumEntry("LineImpact_5",30)); dialog_->borderSize_S->setValue(config_->readNumEntry("BorderSize_5",0)); - buttonDialog_->inactiveColor->setColor(QColor((unsigned int)config_->readNumEntry("InactiveButtonColor", QColor(255,255,255).rgb()))); - buttonDialog_->closeColor->setColor(QColor((unsigned int)config_->readNumEntry("CloseButtonColor", QColor(200,85,70).rgb()))); - buttonDialog_->minColor->setColor(QColor((unsigned int)config_->readNumEntry("MinButtonColor", QColor(230,155,40).rgb()))); - buttonDialog_-> maxColor->setColor(QColor((unsigned int)config_->readNumEntry("MaxButtonColor", QColor(121,180,54).rgb()))); - buttonDialog_->menuColor->setColor(QColor((unsigned int)config_->readNumEntry("MenuButtonColor", QColor(74,140,242).rgb()))); - buttonDialog_->helpColor->setColor(QColor((unsigned int)config_->readNumEntry("HelpButtonColor", QColor(0,0,0).rgb()))); - buttonDialog_->stickyColor->setColor(QColor((unsigned int)config_->readNumEntry("StickyButtonColor", QColor(74,140,242).rgb()))); - buttonDialog_->aboveColor->setColor(QColor((unsigned int)config_->readNumEntry("AboveButtonColor", QColor(74,140,242).rgb()))); - buttonDialog_->behindColor->setColor(QColor((unsigned int)config_->readNumEntry("BehindButtonColor", QColor(74,140,242).rgb()))); - buttonDialog_->shadeColor->setColor(QColor((unsigned int)config_->readNumEntry("ShadeButtonColor", QColor(74,140,242).rgb()))); + buttonDialog_->inactiveColor->setColor(TQColor((unsigned int)config_->readNumEntry("InactiveButtonColor", TQColor(255,255,255).rgb()))); + buttonDialog_->closeColor->setColor(TQColor((unsigned int)config_->readNumEntry("CloseButtonColor", TQColor(200,85,70).rgb()))); + buttonDialog_->minColor->setColor(TQColor((unsigned int)config_->readNumEntry("MinButtonColor", TQColor(230,155,40).rgb()))); + buttonDialog_-> maxColor->setColor(TQColor((unsigned int)config_->readNumEntry("MaxButtonColor", TQColor(121,180,54).rgb()))); + buttonDialog_->menuColor->setColor(TQColor((unsigned int)config_->readNumEntry("MenuButtonColor", TQColor(74,140,242).rgb()))); + buttonDialog_->helpColor->setColor(TQColor((unsigned int)config_->readNumEntry("HelpButtonColor", TQColor(0,0,0).rgb()))); + buttonDialog_->stickyColor->setColor(TQColor((unsigned int)config_->readNumEntry("StickyButtonColor", TQColor(74,140,242).rgb()))); + buttonDialog_->aboveColor->setColor(TQColor((unsigned int)config_->readNumEntry("AboveButtonColor", TQColor(74,140,242).rgb()))); + buttonDialog_->behindColor->setColor(TQColor((unsigned int)config_->readNumEntry("BehindButtonColor", TQColor(74,140,242).rgb()))); + buttonDialog_->shadeColor->setColor(TQColor((unsigned int)config_->readNumEntry("ShadeButtonColor", TQColor(74,140,242).rgb()))); buttonDialog_->init(); config_->endGroup(); delete config_; @@ -281,11 +281,11 @@ void BaghiraConfig::load(KConfig*) void BaghiraConfig::save(KConfig*) { - QSettings *config_ = new QSettings; + TQSettings *config_ = new TQSettings; config_->beginGroup("/baghira/Deco"); - QRadioButton *button = (QRadioButton*)dialog_->titlealign->selected(); - if (button) config_->writeEntry("TitleAlignment", QString(button->name())); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->selected(); + if (button) config_->writeEntry("TitleAlignment", TQString(button->name())); config_->writeEntry("DrawComicFrame", dialog_->drawComicFrame->isChecked()); config_->writeEntry("AddAutoSpacing", dialog_->addAutoSpacing->isChecked()); config_->writeEntry("ResizeGrip", dialog_->ResizeGrip->isChecked()); @@ -397,7 +397,7 @@ void BaghiraConfig::save(KConfig*) void BaghiraConfig::defaults() { - QRadioButton *button = (QRadioButton*)dialog_->titlealign->child("AlignHCenter"); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->child("AlignHCenter"); if (button) button->setChecked(true); dialog_->allowEasyClosing->setChecked(false); dialog_->minTH->setValue(22); @@ -410,10 +410,10 @@ void BaghiraConfig::defaults() dialog_->noModalDeco->setChecked(false); dialog_->delAppname->setChecked(false); - dialog_->activeColor1_J->setColor(QColor(255,255,255)); - dialog_->inactiveColor1_J->setColor(QColor(204,214,230)); - dialog_->activeColor2_J->setColor(QColor(238,234,238)); - dialog_->inactiveColor2_J->setColor(QColor(194,196,211)); + dialog_->activeColor1_J->setColor(TQColor(255,255,255)); + dialog_->inactiveColor1_J->setColor(TQColor(204,214,230)); + dialog_->activeColor2_J->setColor(TQColor(238,234,238)); + dialog_->inactiveColor2_J->setColor(TQColor(194,196,211)); dialog_->buttonStyle_J->setCurrentItem(1); dialog_->titleeffect_J->setCurrentItem(1); dialog_->i_titleeffect_J->setCurrentItem(1); @@ -426,10 +426,10 @@ void BaghiraConfig::defaults() dialog_->LineImpact_J->setValue(40); dialog_->borderSize_J->setValue(0); - dialog_->activeColor1_P->setColor(QColor(238,238,238)); - dialog_->inactiveColor1_P->setColor(QColor(246,242,246)); - dialog_->activeColor2_P->setColor(QColor(205,202,205)); - dialog_->inactiveColor2_P->setColor(QColor(238,238,238)); + dialog_->activeColor1_P->setColor(TQColor(238,238,238)); + dialog_->inactiveColor1_P->setColor(TQColor(246,242,246)); + dialog_->activeColor2_P->setColor(TQColor(205,202,205)); + dialog_->inactiveColor2_P->setColor(TQColor(238,238,238)); dialog_->buttonStyle_P->setCurrentItem(0); dialog_->titleeffect_P->setCurrentItem(0); dialog_->i_titleeffect_P->setCurrentItem(0); @@ -442,10 +442,10 @@ void BaghiraConfig::defaults() dialog_->LineImpact_P->setValue(30); dialog_->borderSize_P->setValue(0); - dialog_->activeColor1_B->setColor(QColor(210,210,210)); - dialog_->inactiveColor1_B->setColor(QColor(200,200,200)); - dialog_->activeColor2_B->setColor(QColor(150,150,150)); - dialog_->inactiveColor2_B->setColor(QColor(140,140,140)); + dialog_->activeColor1_B->setColor(TQColor(210,210,210)); + dialog_->inactiveColor1_B->setColor(TQColor(200,200,200)); + dialog_->activeColor2_B->setColor(TQColor(150,150,150)); + dialog_->inactiveColor2_B->setColor(TQColor(140,140,140)); dialog_->buttonStyle_B->setCurrentItem(0); dialog_->titleeffect_B->setCurrentItem(4); dialog_->i_titleeffect_B->setCurrentItem(4); @@ -458,8 +458,8 @@ void BaghiraConfig::defaults() dialog_->LineImpact_B->setValue(0); dialog_->borderSize_B->setValue(6); - dialog_->activeColor1_T->setColor(QColor(238,238,238)); - dialog_->activeColor2_T->setColor(QColor(211,208,211)); + dialog_->activeColor1_T->setColor(TQColor(238,238,238)); + dialog_->activeColor2_T->setColor(TQColor(211,208,211)); dialog_->buttonStyle_T->setCurrentItem(0); dialog_->shapeUL_T->setChecked(true); dialog_->shapeUR_T->setChecked(true); @@ -469,10 +469,10 @@ void BaghiraConfig::defaults() dialog_->_3DImpact_T->setValue(20); dialog_->borderSize_T->setValue(0); - dialog_->activeColor1_S->setColor(QColor(250,250,250)); - dialog_->inactiveColor1_S->setColor(QColor(230,230,230)); - dialog_->activeColor2_S->setColor(QColor(230,230,230)); - dialog_->inactiveColor2_S->setColor(QColor(250,250,250)); + dialog_->activeColor1_S->setColor(TQColor(250,250,250)); + dialog_->inactiveColor1_S->setColor(TQColor(230,230,230)); + dialog_->activeColor2_S->setColor(TQColor(230,230,230)); + dialog_->inactiveColor2_S->setColor(TQColor(250,250,250)); dialog_->buttonStyle_S->setCurrentItem(0); dialog_->titleeffect_S->setCurrentItem(0); dialog_->i_titleeffect_S->setCurrentItem(0); @@ -502,12 +502,12 @@ const int graphiteDarkPreset[10][3] = {{255,255,255},{103,118,134},{103,118,134} const ColorTable* presetColors[NUMBEROFCOLORS] = {&aquaPreset, &graphitePreset, &graphiteDarkPreset}; -ButtonColors::ButtonColors(QWidget *parent, const char * name) : QDialog(parent, name){ +ButtonColors::ButtonColors(TQWidget *parent, const char * name) : TQDialog(parent, name){ save = false; - layout = new QGridLayout(this,2,2,11,6, "Grid"); - buttonLayout = new QVBoxLayout(0,0,6); + layout = new TQGridLayout(this,2,2,11,6, "Grid"); + buttonLayout = new TQVBoxLayout(0,0,6); - QPixmap tmpPix = QPixmap(uic_findImage("preview")); + TQPixmap tmpPix = TQPixmap(uic_findImage("preview")); inactiveButton = new AquariusButton(tmpPix,this, "Inactive Button"); buttonLayout->addWidget(inactiveButton); closeButton = new AquariusButton(tmpPix,this, "Close Button"); @@ -524,34 +524,34 @@ ButtonColors::ButtonColors(QWidget *parent, const char * name) : QDialog(parent, buttonLayout->addWidget(behindButton); shadeButton = new AquariusButton(tmpPix,this, "Shade Button"); buttonLayout->addWidget(shadeButton); - tmpPix = QPixmap(uic_findImage("preview-menu")); + tmpPix = TQPixmap(uic_findImage("preview-menu")); menuButton = new AquariusButton(tmpPix,this, "Menu Button"); buttonLayout->addWidget(menuButton); - tmpPix = QPixmap(uic_findImage("icon_help")); + tmpPix = TQPixmap(uic_findImage("icon_help")); helpButton = new AquariusButton(tmpPix,this, "Help Button"); buttonLayout->addWidget(helpButton); - twoButts = new QHBoxLayout(0,0,6); - presets_ = new QComboBox(this); + twoButts = new TQHBoxLayout(0,0,6); + presets_ = new TQComboBox(this); for (int i = 0; i < NUMBEROFCOLORS; i++) presets_->insertItem ( presetColorName[i], i ); twoButts->addWidget(presets_); - cancel = new QPushButton("Cancel", this); + cancel = new TQPushButton("Cancel", this); cancel->setDefault( true ); twoButts->addWidget(cancel); twoButts->addStretch(); layout->addLayout(twoButts,1,0); - ok = new QPushButton("OK", this); + ok = new TQPushButton("OK", this); layout->addWidget(ok,1,1); layout->addLayout(buttonLayout,0,1); - pickerLayout = new QVBoxLayout(0,0,6,0); + pickerLayout = new TQVBoxLayout(0,0,6,0); - indicator = new QLabel(inactiveButton->name(), this); - indicator->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter | Qt::ExpandTabs); - QFont tmpFont = font(); + indicator = new TQLabel(inactiveButton->name(), this); + indicator->setAlignment(TQt::AlignHCenter | TQt::AlignVCenter | TQt::ExpandTabs); + TQFont tmpFont = font(); tmpFont.setBold( true ); tmpFont.setPointSize( 24 ); indicator->setFont(tmpFont); @@ -592,7 +592,7 @@ ButtonColors::ButtonColors(QWidget *parent, const char * name) : QDialog(parent, layout->addLayout(pickerLayout,0,0); - resize( QSize(485, 177).expandedTo(minimumSizeHint()) ); + resize( TQSize(485, 177).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); connect(presets_,SIGNAL(activated(int)), this, SLOT(setColorGroup(int))); @@ -613,16 +613,16 @@ ButtonColors::ButtonColors(QWidget *parent, const char * name) : QDialog(parent, connect(behindButton, SIGNAL(clicked()), this, SLOT(activateBehind()) ); connect(shadeButton, SIGNAL(clicked()), this, SLOT(activateShade()) ); - connect(inactiveColor, SIGNAL(colorChanged(QColor)), inactiveButton, SLOT(setColor(QColor)) ); - connect(closeColor, SIGNAL(colorChanged(QColor)), closeButton, SLOT(setColor(QColor)) ); - connect(minColor, SIGNAL(colorChanged(QColor)), minButton, SLOT(setColor(QColor)) ); - connect(maxColor, SIGNAL(colorChanged(QColor)), maxButton, SLOT(setColor(QColor)) ); - connect(menuColor, SIGNAL(colorChanged(QColor)), menuButton, SLOT(setColor(QColor)) ); - connect(helpColor, SIGNAL(colorChanged(QColor)), helpButton, SLOT(setColor(QColor)) ); - connect(stickyColor, SIGNAL(colorChanged(QColor)), stickyButton, SLOT(setColor(QColor)) ); - connect(aboveColor, SIGNAL(colorChanged(QColor)), aboveButton, SLOT(setColor(QColor)) ); - connect(behindColor, SIGNAL(colorChanged(QColor)), behindButton, SLOT(setColor(QColor)) ); - connect(shadeColor, SIGNAL(colorChanged(QColor)), shadeButton, SLOT(setColor(QColor)) ); + connect(inactiveColor, SIGNAL(colorChanged(TQColor)), inactiveButton, SLOT(setColor(TQColor)) ); + connect(closeColor, SIGNAL(colorChanged(TQColor)), closeButton, SLOT(setColor(TQColor)) ); + connect(minColor, SIGNAL(colorChanged(TQColor)), minButton, SLOT(setColor(TQColor)) ); + connect(maxColor, SIGNAL(colorChanged(TQColor)), maxButton, SLOT(setColor(TQColor)) ); + connect(menuColor, SIGNAL(colorChanged(TQColor)), menuButton, SLOT(setColor(TQColor)) ); + connect(helpColor, SIGNAL(colorChanged(TQColor)), helpButton, SLOT(setColor(TQColor)) ); + connect(stickyColor, SIGNAL(colorChanged(TQColor)), stickyButton, SLOT(setColor(TQColor)) ); + connect(aboveColor, SIGNAL(colorChanged(TQColor)), aboveButton, SLOT(setColor(TQColor)) ); + connect(behindColor, SIGNAL(colorChanged(TQColor)), behindButton, SLOT(setColor(TQColor)) ); + connect(shadeColor, SIGNAL(colorChanged(TQColor)), shadeButton, SLOT(setColor(TQColor)) ); } @@ -630,16 +630,16 @@ ButtonColors::~ButtonColors(){ } void ButtonColors::setColorGroup(int i){ - inactiveColor->setColor(QColor((*presetColors[i])[0][0],(*presetColors[i])[0][1],(*presetColors[i])[0][2]).rgb()); - closeColor->setColor(QColor((*presetColors[i])[1][0],(*presetColors[i])[1][1],(*presetColors[i])[1][2]).rgb()); - minColor->setColor(QColor((*presetColors[i])[2][0],(*presetColors[i])[2][1],(*presetColors[i])[2][2]).rgb()); - maxColor->setColor(QColor((*presetColors[i])[3][0],(*presetColors[i])[3][1],(*presetColors[i])[3][2]).rgb()); - menuColor->setColor(QColor((*presetColors[i])[4][0],(*presetColors[i])[4][1],(*presetColors[i])[4][2]).rgb()); - helpColor->setColor(QColor((*presetColors[i])[5][0],(*presetColors[i])[5][1],(*presetColors[i])[5][2]).rgb()); - stickyColor->setColor(QColor((*presetColors[i])[6][0],(*presetColors[i])[6][1],(*presetColors[i])[6][2]).rgb()); - aboveColor->setColor(QColor((*presetColors[i])[7][0],(*presetColors[i])[7][1],(*presetColors[i])[7][2]).rgb()); - behindColor->setColor(QColor((*presetColors[i])[8][0],(*presetColors[i])[8][1],(*presetColors[i])[8][2]).rgb()); - shadeColor->setColor(QColor((*presetColors[i])[9][0],(*presetColors[i])[9][1],(*presetColors[i])[9][2]).rgb()); + inactiveColor->setColor(TQColor((*presetColors[i])[0][0],(*presetColors[i])[0][1],(*presetColors[i])[0][2]).rgb()); + closeColor->setColor(TQColor((*presetColors[i])[1][0],(*presetColors[i])[1][1],(*presetColors[i])[1][2]).rgb()); + minColor->setColor(TQColor((*presetColors[i])[2][0],(*presetColors[i])[2][1],(*presetColors[i])[2][2]).rgb()); + maxColor->setColor(TQColor((*presetColors[i])[3][0],(*presetColors[i])[3][1],(*presetColors[i])[3][2]).rgb()); + menuColor->setColor(TQColor((*presetColors[i])[4][0],(*presetColors[i])[4][1],(*presetColors[i])[4][2]).rgb()); + helpColor->setColor(TQColor((*presetColors[i])[5][0],(*presetColors[i])[5][1],(*presetColors[i])[5][2]).rgb()); + stickyColor->setColor(TQColor((*presetColors[i])[6][0],(*presetColors[i])[6][1],(*presetColors[i])[6][2]).rgb()); + aboveColor->setColor(TQColor((*presetColors[i])[7][0],(*presetColors[i])[7][1],(*presetColors[i])[7][2]).rgb()); + behindColor->setColor(TQColor((*presetColors[i])[8][0],(*presetColors[i])[8][1],(*presetColors[i])[8][2]).rgb()); + shadeColor->setColor(TQColor((*presetColors[i])[9][0],(*presetColors[i])[9][1],(*presetColors[i])[9][2]).rgb()); } void ButtonColors::setPicker(ColorPicker *picker){ @@ -721,7 +721,7 @@ void ButtonColors::init(){ extern "C" { - QObject* allocate_config(KConfig* config, QWidget* parent) { + TQObject* allocate_config(KConfig* config, TQWidget* parent) { return(new BaghiraConfig(config, parent)); } } diff --git a/deco/config/baghiraconfig.cc.new b/deco/config/baghiraconfig.cc.new index 8d83666..2f35515 100644 --- a/deco/config/baghiraconfig.cc.new +++ b/deco/config/baghiraconfig.cc.new @@ -11,19 +11,19 @@ #include <klocale.h> #include <kglobal.h> #include <kcolorbutton.h> -#include <qbutton.h> -#include <qbuttongroup.h> -#include <qcombobox.h> -#include <qcheckbox.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qfont.h> -#include <qgroupbox.h> -#include <qpushbutton.h> -#include <qradiobutton.h> -#include <qsettings.h> -#include <qspinbox.h> -#include <qwhatsthis.h> +#include <tqbutton.h> +#include <tqbuttongroup.h> +#include <tqcombobox.h> +#include <tqcheckbox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqfont.h> +#include <tqgroupbox.h> +#include <tqpushbutton.h> +#include <tqradiobutton.h> +#include <tqsettings.h> +#include <tqspinbox.h> +#include <tqwhatsthis.h> #include "baghiraconfig.h" #include "configdialog.h" @@ -39,11 +39,11 @@ // ------------- // Constructor -BaghiraConfig::BaghiraConfig(KConfig*, QWidget* parent) - : QObject(parent), /*config_(0),*/ dialog_(0) +BaghiraConfig::BaghiraConfig(KConfig*, TQWidget* parent) + : TQObject(parent), /*config_(0),*/ dialog_(0) { // config_ = new KConfig("baghirarc"); -// config_ = new QSettings; +// config_ = new TQSettings; // config_->beginGroup("/baghira/Deco"); KGlobal::locale()->insertCatalogue("kwin_baghira_config"); @@ -165,11 +165,11 @@ BaghiraConfig::~BaghiraConfig() void BaghiraConfig::load(KConfig*) { - QSettings *config_ = new QSettings; + TQSettings *config_ = new TQSettings; config_->beginGroup("/baghira/Deco"); - QString value = config_->readEntry("TitleAlignment", "AlignHCenter"); - QRadioButton *button = (QRadioButton*)dialog_->titlealign-> + TQString value = config_->readEntry("TitleAlignment", "AlignHCenter"); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign-> child((const char *)value.latin1()); if (button) button->setChecked(true); @@ -184,10 +184,10 @@ void BaghiraConfig::load(KConfig*) dialog_->noModalDeco->setChecked(config_->readBoolEntry("NoModalDeco",false)); dialog_->delAppname->setChecked(config_->readBoolEntry("RemoveAppname",false)); - dialog_->activeColor1_J->setColor(QColor((unsigned int)config_->readNumEntry("activeColor1_1",QColor(255,255,255).rgb()))); - dialog_->inactiveColor1_J->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor1_1",QColor(204,214,230).rgb()))); - dialog_->activeColor2_J->setColor(QColor((unsigned int)config_->readNumEntry("activeColor2_1",QColor(238,234,238).rgb()))); - dialog_->inactiveColor2_J->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor2_1",QColor(194,196,211).rgb()))); + dialog_->activeColor1_J->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor1_1",TQColor(255,255,255).rgb()))); + dialog_->inactiveColor1_J->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor1_1",TQColor(204,214,230).rgb()))); + dialog_->activeColor2_J->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor2_1",TQColor(238,234,238).rgb()))); + dialog_->inactiveColor2_J->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor2_1",TQColor(194,196,211).rgb()))); dialog_->buttonStyle_J->setCurrentItem(config_->readNumEntry("ButtonStyle_1",1)); dialog_->titleeffect_J->setCurrentItem(config_->readNumEntry("TitleEffect_1", 1)); dialog_->i_titleeffect_J->setCurrentItem(config_->readNumEntry("inactiveTitleEffect_1", 1)); @@ -200,10 +200,10 @@ void BaghiraConfig::load(KConfig*) dialog_->LineImpact_J->setValue(config_->readNumEntry("LineImpact_1",40)); dialog_->borderSize_J->setValue(config_->readNumEntry("BorderSize_1",0)); - dialog_->activeColor1_P->setColor(QColor((unsigned int)config_->readNumEntry("activeColor1_2",QColor(238,238,238).rgb()))); - dialog_->inactiveColor1_P->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor1_2",QColor(246,242,246).rgb()))); - dialog_->activeColor2_P->setColor(QColor((unsigned int)config_->readNumEntry("activeColor2_2",QColor(205,202,205).rgb()))); - dialog_->inactiveColor2_P->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor2_2",QColor(238,238,238).rgb()))); + dialog_->activeColor1_P->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor1_2",TQColor(238,238,238).rgb()))); + dialog_->inactiveColor1_P->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor1_2",TQColor(246,242,246).rgb()))); + dialog_->activeColor2_P->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor2_2",TQColor(205,202,205).rgb()))); + dialog_->inactiveColor2_P->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor2_2",TQColor(238,238,238).rgb()))); dialog_->buttonStyle_P->setCurrentItem(config_->readNumEntry("ButtonStyle_2",0)); dialog_->titleeffect_P->setCurrentItem(config_->readNumEntry("TitleEffect_2", 0)); dialog_->i_titleeffect_P->setCurrentItem(config_->readNumEntry("inactiveTitleEffect_2", 0)); @@ -216,10 +216,10 @@ void BaghiraConfig::load(KConfig*) dialog_->LineImpact_P->setValue(config_->readNumEntry("LineImpact_2",40)); dialog_->borderSize_P->setValue(config_->readNumEntry("BorderSize_2",0)); - dialog_->activeColor1_B->setColor(QColor((unsigned int)config_->readNumEntry("activeColor1_3",QColor(202,202,202).rgb()))); - dialog_->inactiveColor1_B->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor1_3",QColor(200,200,200).rgb()))); - dialog_->activeColor2_B->setColor(QColor((unsigned int)config_->readNumEntry("activeColor2_3",QColor(150,150,150).rgb()))); - dialog_->inactiveColor2_B->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor2_3",QColor(150,150,150).rgb()))); + dialog_->activeColor1_B->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor1_3",TQColor(202,202,202).rgb()))); + dialog_->inactiveColor1_B->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor1_3",TQColor(200,200,200).rgb()))); + dialog_->activeColor2_B->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor2_3",TQColor(150,150,150).rgb()))); + dialog_->inactiveColor2_B->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor2_3",TQColor(150,150,150).rgb()))); dialog_->buttonStyle_B->setCurrentItem(config_->readNumEntry("ButtonStyle_3",0)); dialog_->titleeffect_B->setCurrentItem(config_->readNumEntry("TitleEffect_3", 4)); dialog_->i_titleeffect_B->setCurrentItem(config_->readNumEntry("inactiveTitleEffect_3", 4)); @@ -232,8 +232,8 @@ void BaghiraConfig::load(KConfig*) dialog_->LineImpact_B->setValue(config_->readNumEntry("LineImpact_3",0)); dialog_->borderSize_B->setValue(config_->readNumEntry("BorderSize_3",6)); - dialog_->activeColor1_T->setColor(QColor((unsigned int)config_->readNumEntry("activeColor1_4",QColor(238,238,238).rgb()))); - dialog_->activeColor2_T->setColor(QColor((unsigned int)config_->readNumEntry("activeColor2_4",QColor(205,202,205).rgb()))); + dialog_->activeColor1_T->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor1_4",TQColor(238,238,238).rgb()))); + dialog_->activeColor2_T->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor2_4",TQColor(205,202,205).rgb()))); dialog_->buttonStyle_T->setCurrentItem(config_->readNumEntry("ButtonStyle_4",0)); dialog_->shapeUL_T->setChecked(config_->readBoolEntry("ShapeUL_4",true)); dialog_->shapeUR_T->setChecked(config_->readBoolEntry("ShapeUR_4",true)); @@ -243,10 +243,10 @@ void BaghiraConfig::load(KConfig*) dialog_->_3DImpact_T->setValue(config_->readNumEntry("3DImpact_4",20)); dialog_->borderSize_T->setValue(config_->readNumEntry("BorderSize_4",0)); - dialog_->activeColor1_S->setColor(QColor((unsigned int)config_->readNumEntry("activeColor1_5",QColor(250,250,250).rgb()))); - dialog_->inactiveColor1_S->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor1_5",QColor(230,230,230).rgb()))); - dialog_->activeColor2_S->setColor(QColor((unsigned int)config_->readNumEntry("activeColor2_5",QColor(230,230,230).rgb()))); - dialog_->inactiveColor2_S->setColor(QColor((unsigned int)config_->readNumEntry("inactiveColor2_5",QColor(250,250,250).rgb()))); + dialog_->activeColor1_S->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor1_5",TQColor(250,250,250).rgb()))); + dialog_->inactiveColor1_S->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor1_5",TQColor(230,230,230).rgb()))); + dialog_->activeColor2_S->setColor(TQColor((unsigned int)config_->readNumEntry("activeColor2_5",TQColor(230,230,230).rgb()))); + dialog_->inactiveColor2_S->setColor(TQColor((unsigned int)config_->readNumEntry("inactiveColor2_5",TQColor(250,250,250).rgb()))); dialog_->buttonStyle_S->setCurrentItem(config_->readNumEntry("ButtonStyle_5",0)); dialog_->titleeffect_S->setCurrentItem(config_->readNumEntry("TitleEffect_5", 0)); dialog_->i_titleeffect_S->setCurrentItem(config_->readNumEntry("inactiveTitleEffect_5", 0)); @@ -259,16 +259,16 @@ void BaghiraConfig::load(KConfig*) dialog_->LineImpact_S->setValue(config_->readNumEntry("LineImpact_5",30)); dialog_->borderSize_S->setValue(config_->readNumEntry("BorderSize_5",0)); - buttonDialog_->inactiveColor->setColor(QColor((unsigned int)config_->readNumEntry("InactiveButtonColor", QColor(255,255,255).rgb()))); - buttonDialog_->closeColor->setColor(QColor((unsigned int)config_->readNumEntry("CloseButtonColor", QColor(200,85,70).rgb()))); - buttonDialog_->minColor->setColor(QColor((unsigned int)config_->readNumEntry("MinButtonColor", QColor(230,155,40).rgb()))); - buttonDialog_-> maxColor->setColor(QColor((unsigned int)config_->readNumEntry("MaxButtonColor", QColor(121,180,54).rgb()))); - buttonDialog_->menuColor->setColor(QColor((unsigned int)config_->readNumEntry("MenuButtonColor", QColor(74,140,242).rgb()))); - buttonDialog_->helpColor->setColor(QColor((unsigned int)config_->readNumEntry("HelpButtonColor", QColor(0,0,0).rgb()))); - buttonDialog_->stickyColor->setColor(QColor((unsigned int)config_->readNumEntry("StickyButtonColor", QColor(74,140,242).rgb()))); - buttonDialog_->aboveColor->setColor(QColor((unsigned int)config_->readNumEntry("AboveButtonColor", QColor(74,140,242).rgb()))); - buttonDialog_->behindColor->setColor(QColor((unsigned int)config_->readNumEntry("BehindButtonColor", QColor(74,140,242).rgb()))); - buttonDialog_->shadeColor->setColor(QColor((unsigned int)config_->readNumEntry("ShadeButtonColor", QColor(74,140,242).rgb()))); + buttonDialog_->inactiveColor->setColor(TQColor((unsigned int)config_->readNumEntry("InactiveButtonColor", TQColor(255,255,255).rgb()))); + buttonDialog_->closeColor->setColor(TQColor((unsigned int)config_->readNumEntry("CloseButtonColor", TQColor(200,85,70).rgb()))); + buttonDialog_->minColor->setColor(TQColor((unsigned int)config_->readNumEntry("MinButtonColor", TQColor(230,155,40).rgb()))); + buttonDialog_-> maxColor->setColor(TQColor((unsigned int)config_->readNumEntry("MaxButtonColor", TQColor(121,180,54).rgb()))); + buttonDialog_->menuColor->setColor(TQColor((unsigned int)config_->readNumEntry("MenuButtonColor", TQColor(74,140,242).rgb()))); + buttonDialog_->helpColor->setColor(TQColor((unsigned int)config_->readNumEntry("HelpButtonColor", TQColor(0,0,0).rgb()))); + buttonDialog_->stickyColor->setColor(TQColor((unsigned int)config_->readNumEntry("StickyButtonColor", TQColor(74,140,242).rgb()))); + buttonDialog_->aboveColor->setColor(TQColor((unsigned int)config_->readNumEntry("AboveButtonColor", TQColor(74,140,242).rgb()))); + buttonDialog_->behindColor->setColor(TQColor((unsigned int)config_->readNumEntry("BehindButtonColor", TQColor(74,140,242).rgb()))); + buttonDialog_->shadeColor->setColor(TQColor((unsigned int)config_->readNumEntry("ShadeButtonColor", TQColor(74,140,242).rgb()))); buttonDialog_->init(); config_->endGroup(); delete config_; @@ -282,11 +282,11 @@ void BaghiraConfig::load(KConfig*) void BaghiraConfig::save(KConfig*) { - QSettings *config_ = new QSettings; + TQSettings *config_ = new TQSettings; config_->beginGroup("/baghira/Deco"); - QRadioButton *button = (QRadioButton*)dialog_->titlealign->selected(); - if (button) config_->writeEntry("TitleAlignment", QString(button->name())); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->selected(); + if (button) config_->writeEntry("TitleAlignment", TQString(button->name())); config_->writeEntry("DrawComicFrame", dialog_->drawComicFrame->isChecked()); config_->writeEntry("AddAutoSpacing", dialog_->addAutoSpacing->isChecked()); config_->writeEntry("ResizeGrip", dialog_->ResizeGrip->isChecked()); @@ -398,7 +398,7 @@ void BaghiraConfig::save(KConfig*) void BaghiraConfig::defaults() { - QRadioButton *button = (QRadioButton*)dialog_->titlealign->child("AlignHCenter"); + TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->child("AlignHCenter"); if (button) button->setChecked(true); dialog_->allowEasyClosing->setChecked(false); dialog_->minTH->setValue(22); @@ -411,10 +411,10 @@ void BaghiraConfig::defaults() dialog_->noModalDeco->setChecked(false); dialog_->delAppname->setChecked(false); - dialog_->activeColor1_J->setColor(QColor(255,255,255)); - dialog_->inactiveColor1_J->setColor(QColor(204,214,230)); - dialog_->activeColor2_J->setColor(QColor(238,234,238)); - dialog_->inactiveColor2_J->setColor(QColor(194,196,211)); + dialog_->activeColor1_J->setColor(TQColor(255,255,255)); + dialog_->inactiveColor1_J->setColor(TQColor(204,214,230)); + dialog_->activeColor2_J->setColor(TQColor(238,234,238)); + dialog_->inactiveColor2_J->setColor(TQColor(194,196,211)); dialog_->buttonStyle_J->setCurrentItem(1); dialog_->titleeffect_J->setCurrentItem(1); dialog_->i_titleeffect_J->setCurrentItem(1); @@ -427,10 +427,10 @@ void BaghiraConfig::defaults() dialog_->LineImpact_J->setValue(40); dialog_->borderSize_J->setValue(0); - dialog_->activeColor1_P->setColor(QColor(238,238,238)); - dialog_->inactiveColor1_P->setColor(QColor(246,242,246)); - dialog_->activeColor2_P->setColor(QColor(205,202,205)); - dialog_->inactiveColor2_P->setColor(QColor(238,238,238)); + dialog_->activeColor1_P->setColor(TQColor(238,238,238)); + dialog_->inactiveColor1_P->setColor(TQColor(246,242,246)); + dialog_->activeColor2_P->setColor(TQColor(205,202,205)); + dialog_->inactiveColor2_P->setColor(TQColor(238,238,238)); dialog_->buttonStyle_P->setCurrentItem(0); dialog_->titleeffect_P->setCurrentItem(0); dialog_->i_titleeffect_P->setCurrentItem(0); @@ -443,10 +443,10 @@ void BaghiraConfig::defaults() dialog_->LineImpact_P->setValue(30); dialog_->borderSize_P->setValue(0); - dialog_->activeColor1_B->setColor(QColor(210,210,210)); - dialog_->inactiveColor1_B->setColor(QColor(200,200,200)); - dialog_->activeColor2_B->setColor(QColor(150,150,150)); - dialog_->inactiveColor2_B->setColor(QColor(140,140,140)); + dialog_->activeColor1_B->setColor(TQColor(210,210,210)); + dialog_->inactiveColor1_B->setColor(TQColor(200,200,200)); + dialog_->activeColor2_B->setColor(TQColor(150,150,150)); + dialog_->inactiveColor2_B->setColor(TQColor(140,140,140)); dialog_->buttonStyle_B->setCurrentItem(0); dialog_->titleeffect_B->setCurrentItem(4); dialog_->i_titleeffect_B->setCurrentItem(4); @@ -459,8 +459,8 @@ void BaghiraConfig::defaults() dialog_->LineImpact_B->setValue(0); dialog_->borderSize_B->setValue(6); - dialog_->activeColor1_T->setColor(QColor(238,238,238)); - dialog_->activeColor2_T->setColor(QColor(211,208,211)); + dialog_->activeColor1_T->setColor(TQColor(238,238,238)); + dialog_->activeColor2_T->setColor(TQColor(211,208,211)); dialog_->buttonStyle_T->setCurrentItem(0); dialog_->shapeUL_T->setChecked(true); dialog_->shapeUR_T->setChecked(true); @@ -470,10 +470,10 @@ void BaghiraConfig::defaults() dialog_->_3DImpact_T->setValue(20); dialog_->borderSize_T->setValue(0); - dialog_->activeColor1_S->setColor(QColor(250,250,250)); - dialog_->inactiveColor1_S->setColor(QColor(230,230,230)); - dialog_->activeColor2_S->setColor(QColor(230,230,230)); - dialog_->inactiveColor2_S->setColor(QColor(250,250,250)); + dialog_->activeColor1_S->setColor(TQColor(250,250,250)); + dialog_->inactiveColor1_S->setColor(TQColor(230,230,230)); + dialog_->activeColor2_S->setColor(TQColor(230,230,230)); + dialog_->inactiveColor2_S->setColor(TQColor(250,250,250)); dialog_->buttonStyle_S->setCurrentItem(0); dialog_->titleeffect_S->setCurrentItem(0); dialog_->i_titleeffect_S->setCurrentItem(0); @@ -503,12 +503,12 @@ const int graphiteDarkPreset[10][3] = {{255,255,255},{103,118,134},{103,118,134} const ColorTable* presetColors[NUMBEROFCOLORS] = {&aquaPreset, &graphitePreset, &graphiteDarkPreset}; -ButtonColors::ButtonColors(QWidget *parent, const char * name) : QDialog(parent, name){ +ButtonColors::ButtonColors(TQWidget *parent, const char * name) : TQDialog(parent, name){ save = false; - layout = new QGridLayout(this,2,2,11,6, "Grid"); - buttonLayout = new QVBoxLayout(0,0,6); + layout = new TQGridLayout(this,2,2,11,6, "Grid"); + buttonLayout = new TQVBoxLayout(0,0,6); - QPixmap tmpPix = QPixmap(uic_findImage("preview")); + TQPixmap tmpPix = TQPixmap(uic_findImage("preview")); inactiveButton = new AquariusButton(tmpPix,this, "Inactive Button"); buttonLayout->addWidget(inactiveButton); closeButton = new AquariusButton(tmpPix,this, "Close Button"); @@ -525,34 +525,34 @@ ButtonColors::ButtonColors(QWidget *parent, const char * name) : QDialog(parent, buttonLayout->addWidget(behindButton); shadeButton = new AquariusButton(tmpPix,this, "Shade Button"); buttonLayout->addWidget(shadeButton); - tmpPix = QPixmap(uic_findImage("preview-menu")); + tmpPix = TQPixmap(uic_findImage("preview-menu")); menuButton = new AquariusButton(tmpPix,this, "Menu Button"); buttonLayout->addWidget(menuButton); - tmpPix = QPixmap(uic_findImage("icon_help")); + tmpPix = TQPixmap(uic_findImage("icon_help")); helpButton = new AquariusButton(tmpPix,this, "Help Button"); buttonLayout->addWidget(helpButton); - twoButts = new QHBoxLayout(0,0,6); - presets_ = new QComboBox(this); + twoButts = new TQHBoxLayout(0,0,6); + presets_ = new TQComboBox(this); for (int i = 0; i < NUMBEROFCOLORS; i++) presets_->insertItem ( presetColorName[i], i ); twoButts->addWidget(presets_); - cancel = new QPushButton("Cancel", this); + cancel = new TQPushButton("Cancel", this); cancel->setDefault( true ); twoButts->addWidget(cancel); twoButts->addStretch(); layout->addLayout(twoButts,1,0); - ok = new QPushButton("OK", this); + ok = new TQPushButton("OK", this); layout->addWidget(ok,1,1); layout->addLayout(buttonLayout,0,1); - pickerLayout = new QVBoxLayout(0,0,6,0); + pickerLayout = new TQVBoxLayout(0,0,6,0); - indicator = new QLabel(inactiveButton->name(), this); - indicator->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter | Qt::ExpandTabs); - QFont tmpFont = font(); + indicator = new TQLabel(inactiveButton->name(), this); + indicator->setAlignment(TQt::AlignHCenter | TQt::AlignVCenter | TQt::ExpandTabs); + TQFont tmpFont = font(); tmpFont.setBold( true ); tmpFont.setPointSize( 24 ); indicator->setFont(tmpFont); @@ -593,7 +593,7 @@ ButtonColors::ButtonColors(QWidget *parent, const char * name) : QDialog(parent, layout->addLayout(pickerLayout,0,0); - resize( QSize(485, 177).expandedTo(minimumSizeHint()) ); + resize( TQSize(485, 177).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); connect(presets_,SIGNAL(activated(int)), this, SLOT(setColorGroup(int))); @@ -614,16 +614,16 @@ ButtonColors::ButtonColors(QWidget *parent, const char * name) : QDialog(parent, connect(behindButton, SIGNAL(clicked()), this, SLOT(activateBehind()) ); connect(shadeButton, SIGNAL(clicked()), this, SLOT(activateShade()) ); - connect(inactiveColor, SIGNAL(colorChanged(QColor)), inactiveButton, SLOT(setColor(QColor)) ); - connect(closeColor, SIGNAL(colorChanged(QColor)), closeButton, SLOT(setColor(QColor)) ); - connect(minColor, SIGNAL(colorChanged(QColor)), minButton, SLOT(setColor(QColor)) ); - connect(maxColor, SIGNAL(colorChanged(QColor)), maxButton, SLOT(setColor(QColor)) ); - connect(menuColor, SIGNAL(colorChanged(QColor)), menuButton, SLOT(setColor(QColor)) ); - connect(helpColor, SIGNAL(colorChanged(QColor)), helpButton, SLOT(setColor(QColor)) ); - connect(stickyColor, SIGNAL(colorChanged(QColor)), stickyButton, SLOT(setColor(QColor)) ); - connect(aboveColor, SIGNAL(colorChanged(QColor)), aboveButton, SLOT(setColor(QColor)) ); - connect(behindColor, SIGNAL(colorChanged(QColor)), behindButton, SLOT(setColor(QColor)) ); - connect(shadeColor, SIGNAL(colorChanged(QColor)), shadeButton, SLOT(setColor(QColor)) ); + connect(inactiveColor, SIGNAL(colorChanged(TQColor)), inactiveButton, SLOT(setColor(TQColor)) ); + connect(closeColor, SIGNAL(colorChanged(TQColor)), closeButton, SLOT(setColor(TQColor)) ); + connect(minColor, SIGNAL(colorChanged(TQColor)), minButton, SLOT(setColor(TQColor)) ); + connect(maxColor, SIGNAL(colorChanged(TQColor)), maxButton, SLOT(setColor(TQColor)) ); + connect(menuColor, SIGNAL(colorChanged(TQColor)), menuButton, SLOT(setColor(TQColor)) ); + connect(helpColor, SIGNAL(colorChanged(TQColor)), helpButton, SLOT(setColor(TQColor)) ); + connect(stickyColor, SIGNAL(colorChanged(TQColor)), stickyButton, SLOT(setColor(TQColor)) ); + connect(aboveColor, SIGNAL(colorChanged(TQColor)), aboveButton, SLOT(setColor(TQColor)) ); + connect(behindColor, SIGNAL(colorChanged(TQColor)), behindButton, SLOT(setColor(TQColor)) ); + connect(shadeColor, SIGNAL(colorChanged(TQColor)), shadeButton, SLOT(setColor(TQColor)) ); } @@ -631,16 +631,16 @@ ButtonColors::~ButtonColors(){ } void ButtonColors::setColorGroup(int i){ - inactiveColor->setColor(QColor((*presetColors[i])[0][0],(*presetColors[i])[0][1],(*presetColors[i])[0][2]).rgb()); - closeColor->setColor(QColor((*presetColors[i])[1][0],(*presetColors[i])[1][1],(*presetColors[i])[1][2]).rgb()); - minColor->setColor(QColor((*presetColors[i])[2][0],(*presetColors[i])[2][1],(*presetColors[i])[2][2]).rgb()); - maxColor->setColor(QColor((*presetColors[i])[3][0],(*presetColors[i])[3][1],(*presetColors[i])[3][2]).rgb()); - menuColor->setColor(QColor((*presetColors[i])[4][0],(*presetColors[i])[4][1],(*presetColors[i])[4][2]).rgb()); - helpColor->setColor(QColor((*presetColors[i])[5][0],(*presetColors[i])[5][1],(*presetColors[i])[5][2]).rgb()); - stickyColor->setColor(QColor((*presetColors[i])[6][0],(*presetColors[i])[6][1],(*presetColors[i])[6][2]).rgb()); - aboveColor->setColor(QColor((*presetColors[i])[7][0],(*presetColors[i])[7][1],(*presetColors[i])[7][2]).rgb()); - behindColor->setColor(QColor((*presetColors[i])[8][0],(*presetColors[i])[8][1],(*presetColors[i])[8][2]).rgb()); - shadeColor->setColor(QColor((*presetColors[i])[9][0],(*presetColors[i])[9][1],(*presetColors[i])[9][2]).rgb()); + inactiveColor->setColor(TQColor((*presetColors[i])[0][0],(*presetColors[i])[0][1],(*presetColors[i])[0][2]).rgb()); + closeColor->setColor(TQColor((*presetColors[i])[1][0],(*presetColors[i])[1][1],(*presetColors[i])[1][2]).rgb()); + minColor->setColor(TQColor((*presetColors[i])[2][0],(*presetColors[i])[2][1],(*presetColors[i])[2][2]).rgb()); + maxColor->setColor(TQColor((*presetColors[i])[3][0],(*presetColors[i])[3][1],(*presetColors[i])[3][2]).rgb()); + menuColor->setColor(TQColor((*presetColors[i])[4][0],(*presetColors[i])[4][1],(*presetColors[i])[4][2]).rgb()); + helpColor->setColor(TQColor((*presetColors[i])[5][0],(*presetColors[i])[5][1],(*presetColors[i])[5][2]).rgb()); + stickyColor->setColor(TQColor((*presetColors[i])[6][0],(*presetColors[i])[6][1],(*presetColors[i])[6][2]).rgb()); + aboveColor->setColor(TQColor((*presetColors[i])[7][0],(*presetColors[i])[7][1],(*presetColors[i])[7][2]).rgb()); + behindColor->setColor(TQColor((*presetColors[i])[8][0],(*presetColors[i])[8][1],(*presetColors[i])[8][2]).rgb()); + shadeColor->setColor(TQColor((*presetColors[i])[9][0],(*presetColors[i])[9][1],(*presetColors[i])[9][2]).rgb()); } void ButtonColors::setPicker(ColorPicker *picker){ @@ -722,7 +722,7 @@ void ButtonColors::init(){ extern "C" { - QObject* allocate_config(KConfig* config, QWidget* parent) { + TQObject* allocate_config(KConfig* config, TQWidget* parent) { return(new BaghiraConfig(config, parent)); } } diff --git a/deco/config/baghiraconfig.h b/deco/config/baghiraconfig.h index 07b04a5..af16605 100644 --- a/deco/config/baghiraconfig.h +++ b/deco/config/baghiraconfig.h @@ -27,26 +27,26 @@ #ifndef BAGHIRACONFIG_H #define BAGHIRACONFIG_H -#include <qobject.h> -#include <qdialog.h> +#include <tqobject.h> +#include <tqdialog.h> #include "colorpicker.h" #include "aquariusbutton.h" class KConfig; -class QSettings; +class TQSettings; class ConfigDialog; -class QLabel; -class QVBoxLayout; -class QHBoxLayout; -class QGridLayout; -class QPushButton; -class QComboBox; +class TQLabel; +class TQVBoxLayout; +class TQHBoxLayout; +class TQGridLayout; +class TQPushButton; +class TQComboBox; -class ButtonColors : public QDialog +class ButtonColors : public TQDialog { Q_OBJECT public: - ButtonColors(QWidget* parent, const char * name = 0); + ButtonColors(TQWidget* parent, const char * name = 0); ~ButtonColors(); ColorPicker *inactiveColor; ColorPicker *closeColor; @@ -71,10 +71,10 @@ public: AquariusButton *behindButton; AquariusButton *shadeButton; - QHBoxLayout *twoButts; - QPushButton *cancel; - QPushButton *ok; - QComboBox *presets_; + TQHBoxLayout *twoButts; + TQPushButton *cancel; + TQPushButton *ok; + TQComboBox *presets_; bool save; public slots: @@ -95,10 +95,10 @@ private: |------------|---| */ - QVBoxLayout *buttonLayout; - QVBoxLayout *pickerLayout; - QGridLayout *layout; - QLabel *indicator; + TQVBoxLayout *buttonLayout; + TQVBoxLayout *pickerLayout; + TQGridLayout *layout; + TQLabel *indicator; void setPicker(ColorPicker *picker); @@ -120,11 +120,11 @@ private slots: }; -class BaghiraConfig : public QObject +class BaghiraConfig : public TQObject { Q_OBJECT public: - BaghiraConfig(KConfig* config, QWidget* parent); + BaghiraConfig(KConfig* config, TQWidget* parent); ~BaghiraConfig(); signals: @@ -136,7 +136,7 @@ public slots: void defaults(); private: -// QSettings *config_; +// TQSettings *config_; ConfigDialog *dialog_; ButtonColors *buttonDialog_; }; diff --git a/deco/config/baghiraconfig.h.new b/deco/config/baghiraconfig.h.new index 0f75139..edffcc9 100644 --- a/deco/config/baghiraconfig.h.new +++ b/deco/config/baghiraconfig.h.new @@ -27,27 +27,27 @@ #ifndef BAGHIRACONFIG_H #define BAGHIRACONFIG_H -#include <qobject.h> -#include <qdialog.h> -#include <qvaluelist.h> +#include <tqobject.h> +#include <tqdialog.h> +#include <tqvaluelist.h> #include "colorpicker.h" #include "aquariusbutton.h" class KConfig; -class QSettings; +class TQSettings; class ConfigDialog; -class QLabel; -class QVBoxLayout; -class QHBoxLayout; -class QGridLayout; -class QPushButton; -class QComboBox; +class TQLabel; +class TQVBoxLayout; +class TQHBoxLayout; +class TQGridLayout; +class TQPushButton; +class TQComboBox; -class ButtonColors : public QDialog +class ButtonColors : public TQDialog { Q_OBJECT public: - ButtonColors(QWidget* parent, const char * name = 0); + ButtonColors(TQWidget* parent, const char * name = 0); ~ButtonColors(); ColorPicker *inactiveColor; ColorPicker *closeColor; @@ -72,10 +72,10 @@ public: AquariusButton *behindButton; AquariusButton *shadeButton; - QHBoxLayout *twoButts; - QPushButton *cancel; - QPushButton *ok; - QComboBox *presets_; + TQHBoxLayout *twoButts; + TQPushButton *cancel; + TQPushButton *ok; + TQComboBox *presets_; bool save; public slots: @@ -96,10 +96,10 @@ private: |------------|---| */ - QVBoxLayout *buttonLayout; - QVBoxLayout *pickerLayout; - QGridLayout *layout; - QLabel *indicator; + TQVBoxLayout *buttonLayout; + TQVBoxLayout *pickerLayout; + TQGridLayout *layout; + TQLabel *indicator; void setPicker(ColorPicker *picker); @@ -122,11 +122,11 @@ private slots: class CustomDecoSettings; -class BaghiraConfig : public QObject +class BaghiraConfig : public TQObject { Q_OBJECT public: - BaghiraConfig(KConfig* config, QWidget* parent); + BaghiraConfig(KConfig* config, TQWidget* parent); ~BaghiraConfig(); signals: @@ -138,10 +138,10 @@ public slots: void defaults(); private: -// QSettings *config_; +// TQSettings *config_; ConfigDialog *dialog_; ButtonColors *buttonDialog_; - typedef QValueList<CustomDecoSettings> DecoList; + typedef TQValueList<CustomDecoSettings> DecoList; DecoList decoList; }; diff --git a/deco/config/colorpicker.cc b/deco/config/colorpicker.cc index 5e11312..6934920 100644 --- a/deco/config/colorpicker.cc +++ b/deco/config/colorpicker.cc @@ -1,51 +1,51 @@ #include "colorpicker.h" -#include <qcolor.h> -#include <qlayout.h> -#include <qslider.h> -#include <qspinbox.h> +#include <tqcolor.h> +#include <tqlayout.h> +#include <tqslider.h> +#include <tqspinbox.h> -ColorPicker::ColorPicker(QWidget* parent, const char* name) : QGroupBox( parent, name){ -// box = new QGroupBox(parent); -// setFrameShape(QFrame::GroupBoxPanel); -// setFrameShadow(QFrame::Sunken); - setColumnLayout(0, Qt::Vertical ); +ColorPicker::ColorPicker(TQWidget* parent, const char* name) : TQGroupBox( parent, name){ +// box = new TQGroupBox(parent); +// setFrameShape(TQFrame::GroupBoxPanel); +// setFrameShadow(TQFrame::Sunken); + setColumnLayout(0, TQt::Vertical ); layout()->setSpacing( 6 ); layout()->setMargin( 11 ); - QVBoxLayout *vLayout = new QVBoxLayout(layout()); -// gridLayout->setAlignment( Qt::AlignTop ); + TQVBoxLayout *vLayout = new TQVBoxLayout(layout()); +// gridLayout->setAlignment( TQt::AlignTop ); - QHBoxLayout *redLayout = new QHBoxLayout(); - redSlider = new QSlider(0, 255, 1, 0, Qt::Horizontal, this, "redSlider"); + TQHBoxLayout *redLayout = new TQHBoxLayout(); + redSlider = new TQSlider(0, 255, 1, 0, TQt::Horizontal, this, "redSlider"); redLayout->addWidget(redSlider); - redValue = new QSpinBox(0,255,1,this); + redValue = new TQSpinBox(0,255,1,this); redValue->setValue(0); redLayout->addWidget(redValue); vLayout->addLayout(redLayout); - QHBoxLayout *greenLayout = new QHBoxLayout(); - greenSlider = new QSlider(0, 255, 1, 0, Qt::Horizontal, this, "greenSlider"); + TQHBoxLayout *greenLayout = new TQHBoxLayout(); + greenSlider = new TQSlider(0, 255, 1, 0, TQt::Horizontal, this, "greenSlider"); greenLayout->addWidget(greenSlider); - greenValue = new QSpinBox(0,255,1,this); + greenValue = new TQSpinBox(0,255,1,this); greenValue->setValue(0); greenLayout->addWidget(greenValue); vLayout->addLayout(greenLayout); - QHBoxLayout *blueLayout = new QHBoxLayout(); - blueSlider = new QSlider(0, 255, 1, 0, Qt::Horizontal, this, "blueSlider"); + TQHBoxLayout *blueLayout = new TQHBoxLayout(); + blueSlider = new TQSlider(0, 255, 1, 0, TQt::Horizontal, this, "blueSlider"); blueLayout->addWidget(blueSlider); - blueValue = new QSpinBox(0,255,1,this); + blueValue = new TQSpinBox(0,255,1,this); blueValue->setValue(0); blueLayout->addWidget(blueValue); vLayout->addLayout(blueLayout); -// resize( QSize(350, 100).expandedTo(minimumSizeHint()) ); +// resize( TQSize(350, 100).expandedTo(minimumSizeHint()) ); //connections connect(redSlider, SIGNAL(valueChanged (int)), this, SLOT(setRed(int))); @@ -59,7 +59,7 @@ ColorPicker::ColorPicker(QWidget* parent, const char* name) : QGroupBox( parent, ColorPicker::~ColorPicker(){ } -void ColorPicker::setColor(QColor color){ +void ColorPicker::setColor(TQColor color){ redSlider->blockSignals(true); redSlider->setValue( color.red() ); redSlider->blockSignals(false); @@ -88,7 +88,7 @@ void ColorPicker::setRed(int red){ redValue->blockSignals(true); redValue->setValue(red); redValue->blockSignals(false); - emit colorChanged(QColor(red, greenSlider->value(), blueSlider->value())); + emit colorChanged(TQColor(red, greenSlider->value(), blueSlider->value())); } void ColorPicker::setGreen(int green){ @@ -98,7 +98,7 @@ void ColorPicker::setGreen(int green){ greenValue->blockSignals(true); greenValue->setValue(green); greenValue->blockSignals(false); - emit colorChanged(QColor(redSlider->value(), green, blueSlider->value())); + emit colorChanged(TQColor(redSlider->value(), green, blueSlider->value())); } void ColorPicker::setBlue(int blue){ @@ -108,11 +108,11 @@ void ColorPicker::setBlue(int blue){ blueValue->blockSignals(true); blueValue->setValue(blue); blueValue->blockSignals(false); - emit colorChanged(QColor(redSlider->value(), greenSlider->value(), blue)); + emit colorChanged(TQColor(redSlider->value(), greenSlider->value(), blue)); } -QColor ColorPicker::Color(){ - return QColor(redSlider->value(), greenSlider->value(), blueSlider->value()); +TQColor ColorPicker::Color(){ + return TQColor(redSlider->value(), greenSlider->value(), blueSlider->value()); } void ColorPicker::reset(){ diff --git a/deco/config/colorpicker.h b/deco/config/colorpicker.h index 3b4ec48..7e4f776 100644 --- a/deco/config/colorpicker.h +++ b/deco/config/colorpicker.h @@ -1,25 +1,25 @@ #ifndef COLORPICKER_H #define COLORPICKER_H -//#include <qvariant.h> -#include <qgroupbox.h> +//#include <tqvariant.h> +#include <tqgroupbox.h> -class QSlider; -class QSpinBox; -class QColor; -//class QGroupBox; +class TQSlider; +class TQSpinBox; +class TQColor; +//class TQGroupBox; -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(QColor color); + void setColor(TQColor color); void setRed(int red); void setGreen(int green); void setBlue(int blue); @@ -27,17 +27,17 @@ public slots: void init(); protected: - QSlider *redSlider; - QSlider *greenSlider; - QSlider *blueSlider; - QSpinBox *redValue; - QSpinBox *greenValue; - QSpinBox *blueValue; - QColor color_; -// QGroupBox *box; + TQSlider *redSlider; + TQSlider *greenSlider; + TQSlider *blueSlider; + TQSpinBox *redValue; + TQSpinBox *greenValue; + TQSpinBox *blueValue; + TQColor color_; +// TQGroupBox *box; signals: - void colorChanged(QColor color); + void colorChanged(TQColor color); }; diff --git a/deco/config/configdialog.ui b/deco/config/configdialog.ui index a52dadf..9ecbf2e 100644 --- a/deco/config/configdialog.ui +++ b/deco/config/configdialog.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>ConfigDialog</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>ConfigDialog</cstring> </property> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox" row="2" column="0" rowspan="1" colspan="2"> + <widget class="TQGroupBox" row="2" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>generalbox</cstring> </property> @@ -36,7 +36,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>layout133</cstring> </property> @@ -44,7 +44,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -69,7 +69,7 @@ </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>minTH</cstring> </property> @@ -85,7 +85,7 @@ </widget> </hbox> </widget> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>ResizeGrip</cstring> </property> @@ -96,7 +96,7 @@ <string>Starts in Brushed Metal mode instead of default, if the Style is set to Brushed Metal</string> </property> </widget> - <widget class="QCheckBox" row="4" column="0"> + <widget class="TQCheckBox" row="4" column="0"> <property name="name"> <cstring>addAutoSpacing</cstring> </property> @@ -104,7 +104,7 @@ <string>Add auto spacing</string> </property> </widget> - <widget class="QCheckBox" row="6" column="0"> + <widget class="TQCheckBox" row="6" column="0"> <property name="name"> <cstring>fullSpec</cstring> </property> @@ -115,7 +115,7 @@ <string>Check this to have any window in fullscreen Mode - demaximize the window by clicking into the top right corner of your screen</string> </property> </widget> - <widget class="QCheckBox" row="2" column="0"> + <widget class="TQCheckBox" row="2" column="0"> <property name="name"> <cstring>drawComicFrame</cstring> </property> @@ -126,7 +126,7 @@ <string>Draws a black frame around the window (not the Titlebar).<br>Anyway i suggest to get the kwin dropshadow patch.</string> </property> </widget> - <widget class="QCheckBox" row="7" column="0"> + <widget class="TQCheckBox" row="7" column="0"> <property name="name"> <cstring>noModalDeco</cstring> </property> @@ -134,7 +134,7 @@ <string>Hide deco for fixed size modal windows</string> </property> </widget> - <widget class="QCheckBox" row="5" column="0"> + <widget class="TQCheckBox" row="5" column="0"> <property name="name"> <cstring>maxResizable</cstring> </property> @@ -142,7 +142,7 @@ <string>Keep maximized resizable</string> </property> </widget> - <widget class="QCheckBox" row="3" column="0"> + <widget class="TQCheckBox" row="3" column="0"> <property name="name"> <cstring>allowEasyClosing</cstring> </property> @@ -153,7 +153,7 @@ <string>Allows Closing by clicking into the top left or right corner <br> Close Button must be most left or right element (also no spacers) <br> Closes on Mouse Button release (so you have the chance to move the mouse away and keep the Window) <br> The Window must be active and maximized <br> Unfortunately you will not be able tho resize the Window from that corner</string> </property> </widget> - <widget class="QComboBox" row="11" column="0"> + <widget class="TQComboBox" row="11" column="0"> <item> <property name="text"> <string>Jaguar</string> @@ -183,7 +183,7 @@ <cstring>defaultMode</cstring> </property> </widget> - <widget class="QLabel" row="10" column="0"> + <widget class="TQLabel" row="10" column="0"> <property name="name"> <cstring>textLabel1_7</cstring> </property> @@ -205,7 +205,7 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QCheckBox" row="8" column="0"> + <widget class="TQCheckBox" row="8" column="0"> <property name="name"> <cstring>delAppname</cstring> </property> @@ -216,7 +216,7 @@ from multipart titles</string> </widget> </grid> </widget> - <widget class="QButtonGroup" row="1" column="0"> + <widget class="TQButtonGroup" row="1" column="0"> <property name="name"> <cstring>titlealign</cstring> </property> @@ -233,7 +233,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QRadioButton" row="0" column="0"> + <widget class="TQRadioButton" row="0" column="0"> <property name="name"> <cstring>AlignLeft</cstring> </property> @@ -261,7 +261,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QRadioButton" row="0" column="2"> + <widget class="TQRadioButton" row="0" column="2"> <property name="name"> <cstring>AlignHCenter</cstring> </property> @@ -292,7 +292,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QRadioButton" row="0" column="4"> + <widget class="TQRadioButton" row="0" column="4"> <property name="name"> <cstring>AlignRight</cstring> </property> @@ -303,7 +303,7 @@ from multipart titles</string> <string></string> </property> </widget> - <widget class="QRadioButton" row="0" column="6"> + <widget class="TQRadioButton" row="0" column="6"> <property name="name"> <cstring>noTitle</cstring> </property> @@ -347,7 +347,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QPushButton" row="0" column="0"> + <widget class="TQPushButton" row="0" column="0"> <property name="name"> <cstring>ButtonColorConfig</cstring> </property> @@ -372,11 +372,11 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QTabWidget" row="0" column="2" rowspan="3" colspan="1"> + <widget class="TQTabWidget" row="0" column="2" rowspan="3" colspan="1"> <property name="name"> <cstring>tab</cstring> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>jaguarTab</cstring> </property> @@ -387,7 +387,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <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>layout7_3</cstring> </property> @@ -395,7 +395,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_4_3</cstring> </property> @@ -420,7 +420,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>_3DImpact_J</cstring> </property> @@ -433,7 +433,7 @@ from multipart titles</string> </widget> </hbox> </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>layout10</cstring> </property> @@ -441,7 +441,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -466,7 +466,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>LineImpact_J</cstring> </property> @@ -482,7 +482,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout40</cstring> </property> @@ -490,7 +490,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout35</cstring> </property> @@ -498,7 +498,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2_4_3</cstring> </property> @@ -506,7 +506,7 @@ from multipart titles</string> <string>ButtonStyle</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_8_3</cstring> </property> @@ -517,7 +517,7 @@ from multipart titles</string> <cstring>titleeffect</cstring> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_8_3_2</cstring> </property> @@ -547,7 +547,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout39</cstring> </property> @@ -555,7 +555,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Panther</string> @@ -580,7 +580,7 @@ from multipart titles</string> <cstring>buttonStyle_J</cstring> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Gradient</string> @@ -624,7 +624,7 @@ from multipart titles</string> <string>Select an effect for the titlebar to change its appearance</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Gradient</string> @@ -670,7 +670,7 @@ from multipart titles</string> </widget> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout38</cstring> </property> @@ -678,7 +678,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -689,7 +689,7 @@ from multipart titles</string> <set>AlignCenter</set> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout33</cstring> </property> @@ -715,7 +715,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout34</cstring> </property> @@ -745,7 +745,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QGroupBox" row="4" column="0" rowspan="1" colspan="2"> + <widget class="TQGroupBox" row="4" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>groupBox2_4</cstring> </property> @@ -756,7 +756,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> <property name="name"> <cstring>layout45</cstring> </property> @@ -764,7 +764,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUL_J</cstring> </property> @@ -789,7 +789,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLL_J</cstring> </property> @@ -799,7 +799,7 @@ from multipart titles</string> </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> <property name="name"> <cstring>layout44</cstring> </property> @@ -807,7 +807,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUR_J</cstring> </property> @@ -832,7 +832,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLR_J</cstring> </property> @@ -859,7 +859,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox" row="1" column="3"> + <widget class="TQSpinBox" row="1" column="3"> <property name="name"> <cstring>borderSize_J</cstring> </property> @@ -867,7 +867,7 @@ from multipart titles</string> <number>16</number> </property> </widget> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>textLabel1_6_3</cstring> </property> @@ -928,7 +928,7 @@ from multipart titles</string> </spacer> </grid> </widget> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>drawIcon_J</cstring> </property> @@ -938,7 +938,7 @@ from multipart titles</string> </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>pantherTab</cstring> </property> @@ -949,7 +949,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <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>layout10_2</cstring> </property> @@ -957,7 +957,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_2</cstring> </property> @@ -982,7 +982,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>LineImpact_P</cstring> </property> @@ -998,7 +998,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QGroupBox" row="4" column="0" rowspan="1" colspan="2"> + <widget class="TQGroupBox" row="4" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>groupBox2_3</cstring> </property> @@ -1009,7 +1009,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> <property name="name"> <cstring>layout51</cstring> </property> @@ -1017,7 +1017,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUL_P</cstring> </property> @@ -1042,7 +1042,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLL_P</cstring> </property> @@ -1052,7 +1052,7 @@ from multipart titles</string> </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> <property name="name"> <cstring>layout52</cstring> </property> @@ -1060,7 +1060,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUR_P</cstring> </property> @@ -1085,7 +1085,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLR_P</cstring> </property> @@ -1129,7 +1129,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox" row="1" column="3"> + <widget class="TQSpinBox" row="1" column="3"> <property name="name"> <cstring>borderSize_P</cstring> </property> @@ -1137,7 +1137,7 @@ from multipart titles</string> <number>16</number> </property> </widget> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>textLabel1_6_2</cstring> </property> @@ -1181,7 +1181,7 @@ from multipart titles</string> </spacer> </grid> </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>layout7_2</cstring> </property> @@ -1189,7 +1189,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_4_4</cstring> </property> @@ -1214,7 +1214,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>_3DImpact_P</cstring> </property> @@ -1227,7 +1227,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout50</cstring> </property> @@ -1235,7 +1235,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout31</cstring> </property> @@ -1243,7 +1243,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2_4</cstring> </property> @@ -1251,7 +1251,7 @@ from multipart titles</string> <string>ButtonStyle</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_8</cstring> </property> @@ -1262,7 +1262,7 @@ from multipart titles</string> <cstring>titleeffect</cstring> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_8_4</cstring> </property> @@ -1292,7 +1292,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout30</cstring> </property> @@ -1300,7 +1300,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Panther</string> @@ -1325,7 +1325,7 @@ from multipart titles</string> <cstring>buttonStyle_P</cstring> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Gradient</string> @@ -1369,7 +1369,7 @@ from multipart titles</string> <string>Select an effect for the titlebar to change its appearance</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Gradient</string> @@ -1415,7 +1415,7 @@ from multipart titles</string> </widget> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout49</cstring> </property> @@ -1423,7 +1423,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -1434,7 +1434,7 @@ from multipart titles</string> <set>AlignCenter</set> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout47</cstring> </property> @@ -1460,7 +1460,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout48</cstring> </property> @@ -1490,7 +1490,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>drawIcon_P</cstring> </property> @@ -1500,7 +1500,7 @@ from multipart titles</string> </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>brushedTab</cstring> </property> @@ -1511,7 +1511,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <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>layout10_3</cstring> </property> @@ -1519,7 +1519,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_3</cstring> </property> @@ -1544,7 +1544,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>LineImpact_B</cstring> </property> @@ -1560,7 +1560,7 @@ from multipart titles</string> </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>layout7</cstring> </property> @@ -1568,7 +1568,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_4</cstring> </property> @@ -1593,7 +1593,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>_3DImpact_B</cstring> </property> @@ -1606,7 +1606,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>layout57</cstring> </property> @@ -1614,7 +1614,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout27</cstring> </property> @@ -1622,7 +1622,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2_4_2</cstring> </property> @@ -1630,7 +1630,7 @@ from multipart titles</string> <string>ButtonStyle</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_8_2</cstring> </property> @@ -1641,7 +1641,7 @@ from multipart titles</string> <cstring>titleeffect</cstring> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_8_2_2</cstring> </property> @@ -1671,7 +1671,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout26</cstring> </property> @@ -1679,7 +1679,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Panther</string> @@ -1704,7 +1704,7 @@ from multipart titles</string> <cstring>buttonStyle_B</cstring> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Gradient</string> @@ -1748,7 +1748,7 @@ from multipart titles</string> <string>Select an effect for the titlebar to change its appearance</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Gradient</string> @@ -1794,7 +1794,7 @@ from multipart titles</string> </widget> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout56</cstring> </property> @@ -1802,7 +1802,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_5</cstring> </property> @@ -1813,7 +1813,7 @@ from multipart titles</string> <set>AlignCenter</set> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout54</cstring> </property> @@ -1839,7 +1839,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout55</cstring> </property> @@ -1869,7 +1869,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QGroupBox" row="4" column="0" rowspan="1" colspan="2"> + <widget class="TQGroupBox" row="4" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>groupBox2_2</cstring> </property> @@ -1880,7 +1880,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> <property name="name"> <cstring>layout58</cstring> </property> @@ -1888,7 +1888,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUL_B</cstring> </property> @@ -1913,7 +1913,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLL_B</cstring> </property> @@ -1923,7 +1923,7 @@ from multipart titles</string> </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> <property name="name"> <cstring>layout59</cstring> </property> @@ -1931,7 +1931,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUR_B</cstring> </property> @@ -1956,7 +1956,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLR_B</cstring> </property> @@ -1983,7 +1983,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>textLabel1_6</cstring> </property> @@ -1991,7 +1991,7 @@ from multipart titles</string> <string>Border Size</string> </property> </widget> - <widget class="QSpinBox" row="1" column="3"> + <widget class="TQSpinBox" row="1" column="3"> <property name="name"> <cstring>borderSize_B</cstring> </property> @@ -2055,7 +2055,7 @@ from multipart titles</string> </spacer> </grid> </widget> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>drawIcon_B</cstring> </property> @@ -2065,7 +2065,7 @@ from multipart titles</string> </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>TabPage</cstring> </property> @@ -2076,7 +2076,7 @@ from multipart titles</string> <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>layout7_4</cstring> </property> @@ -2084,7 +2084,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_4_2</cstring> </property> @@ -2109,7 +2109,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>_3DImpact_T</cstring> </property> @@ -2122,7 +2122,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QGroupBox" row="3" column="0"> + <widget class="TQGroupBox" row="3" column="0"> <property name="name"> <cstring>groupBox2_2_2</cstring> </property> @@ -2133,7 +2133,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> <property name="name"> <cstring>layout58_2</cstring> </property> @@ -2141,7 +2141,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUL_T</cstring> </property> @@ -2166,7 +2166,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLL_T</cstring> </property> @@ -2176,7 +2176,7 @@ from multipart titles</string> </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> <property name="name"> <cstring>layout59_2</cstring> </property> @@ -2184,7 +2184,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUR_T</cstring> </property> @@ -2209,7 +2209,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLR_T</cstring> </property> @@ -2236,7 +2236,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>textLabel1_6_4</cstring> </property> @@ -2244,7 +2244,7 @@ from multipart titles</string> <string>Border Size</string> </property> </widget> - <widget class="QSpinBox" row="1" column="3"> + <widget class="TQSpinBox" row="1" column="3"> <property name="name"> <cstring>borderSize_T</cstring> </property> @@ -2308,7 +2308,7 @@ from multipart titles</string> </spacer> </grid> </widget> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class="TQLayoutWidget" row="1" column="0"> <property name="name"> <cstring>layout42</cstring> </property> @@ -2316,7 +2316,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout27_2</cstring> </property> @@ -2324,7 +2324,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2_4_2_2</cstring> </property> @@ -2332,7 +2332,7 @@ from multipart titles</string> <string>ButtonStyle</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_8_2_3</cstring> </property> @@ -2343,7 +2343,7 @@ from multipart titles</string> <cstring>titleeffect</cstring> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_8_2_2_2</cstring> </property> @@ -2373,7 +2373,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout82</cstring> </property> @@ -2381,7 +2381,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Panther</string> @@ -2406,7 +2406,7 @@ from multipart titles</string> <cstring>buttonStyle_T</cstring> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_9</cstring> </property> @@ -2414,7 +2414,7 @@ from multipart titles</string> <string>(Gradient)</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_9_2</cstring> </property> @@ -2424,7 +2424,7 @@ from multipart titles</string> </widget> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout41</cstring> </property> @@ -2432,7 +2432,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_5_2</cstring> </property> @@ -2443,7 +2443,7 @@ from multipart titles</string> <set>AlignCenter</set> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout54_2</cstring> </property> @@ -2469,7 +2469,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_10</cstring> </property> @@ -2484,7 +2484,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>drawIcon_T</cstring> </property> @@ -2494,7 +2494,7 @@ from multipart titles</string> </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>TabPage</cstring> </property> @@ -2505,7 +2505,7 @@ from multipart titles</string> <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>drawIcon_S</cstring> </property> @@ -2513,7 +2513,7 @@ from multipart titles</string> <string>Draw Icon</string> </property> </widget> - <widget class="QLayoutWidget" row="2" column="0"> + <widget class="TQLayoutWidget" row="2" column="0"> <property name="name"> <cstring>layout7_5</cstring> </property> @@ -2521,7 +2521,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_4_5</cstring> </property> @@ -2546,7 +2546,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>_3DImpact_S</cstring> </property> @@ -2559,7 +2559,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class="TQLayoutWidget" row="1" column="0"> <property name="name"> <cstring>layout57_2</cstring> </property> @@ -2567,7 +2567,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout27_3</cstring> </property> @@ -2575,7 +2575,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_2_4_2_3</cstring> </property> @@ -2583,7 +2583,7 @@ from multipart titles</string> <string>ButtonStyle</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_8_2_4</cstring> </property> @@ -2594,7 +2594,7 @@ from multipart titles</string> <cstring>titleeffect</cstring> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_8_2_2_3</cstring> </property> @@ -2624,7 +2624,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout26_2</cstring> </property> @@ -2632,7 +2632,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Panther</string> @@ -2657,7 +2657,7 @@ from multipart titles</string> <cstring>buttonStyle_S</cstring> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Gradient</string> @@ -2701,7 +2701,7 @@ from multipart titles</string> <string>Select an effect for the titlebar to change its appearance</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Gradient</string> @@ -2747,7 +2747,7 @@ from multipart titles</string> </widget> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout56_2</cstring> </property> @@ -2755,7 +2755,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_5_3</cstring> </property> @@ -2766,7 +2766,7 @@ from multipart titles</string> <set>AlignCenter</set> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout54_3</cstring> </property> @@ -2792,7 +2792,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout55_2</cstring> </property> @@ -2822,7 +2822,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QGroupBox" row="4" column="0"> + <widget class="TQGroupBox" row="4" column="0"> <property name="name"> <cstring>groupBox2_2_3</cstring> </property> @@ -2833,7 +2833,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> <property name="name"> <cstring>layout58_3</cstring> </property> @@ -2841,7 +2841,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUL_S</cstring> </property> @@ -2866,7 +2866,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLL_S</cstring> </property> @@ -2876,7 +2876,7 @@ from multipart titles</string> </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> <property name="name"> <cstring>layout59_3</cstring> </property> @@ -2884,7 +2884,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUR_S</cstring> </property> @@ -2909,7 +2909,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLR_S</cstring> </property> @@ -2936,7 +2936,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>textLabel1_6_5</cstring> </property> @@ -2944,7 +2944,7 @@ from multipart titles</string> <string>Border Size</string> </property> </widget> - <widget class="QSpinBox" row="1" column="3"> + <widget class="TQSpinBox" row="1" column="3"> <property name="name"> <cstring>borderSize_S</cstring> </property> @@ -3008,7 +3008,7 @@ from multipart titles</string> </spacer> </grid> </widget> - <widget class="QLayoutWidget" row="3" column="0"> + <widget class="TQLayoutWidget" row="3" column="0"> <property name="name"> <cstring>layout10_3_2</cstring> </property> @@ -3016,7 +3016,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2_3_2</cstring> </property> @@ -3041,7 +3041,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>LineImpact_S</cstring> </property> diff --git a/deco/config/configdialog.ui.new b/deco/config/configdialog.ui.new index b17dbd1..bd812d8 100644 --- a/deco/config/configdialog.ui.new +++ b/deco/config/configdialog.ui.new @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>ConfigDialog</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>ConfigDialog</cstring> </property> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QButtonGroup" row="0" column="1" rowspan="1" colspan="2"> + <widget class="TQButtonGroup" row="0" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>titlealign</cstring> </property> @@ -36,7 +36,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QRadioButton" row="0" column="0"> + <widget class="TQRadioButton" row="0" column="0"> <property name="name"> <cstring>AlignLeft</cstring> </property> @@ -64,7 +64,7 @@ </size> </property> </spacer> - <widget class="QRadioButton" row="0" column="2"> + <widget class="TQRadioButton" row="0" column="2"> <property name="name"> <cstring>AlignHCenter</cstring> </property> @@ -95,7 +95,7 @@ </size> </property> </spacer> - <widget class="QRadioButton" row="0" column="4"> + <widget class="TQRadioButton" row="0" column="4"> <property name="name"> <cstring>AlignRight</cstring> </property> @@ -106,7 +106,7 @@ <string></string> </property> </widget> - <widget class="QRadioButton" row="0" column="6"> + <widget class="TQRadioButton" row="0" column="6"> <property name="name"> <cstring>noTitle</cstring> </property> @@ -133,7 +133,7 @@ </spacer> </grid> </widget> - <widget class="QGroupBox" row="0" column="0" rowspan="3" colspan="1"> + <widget class="TQGroupBox" row="0" column="0" rowspan="3" colspan="1"> <property name="name"> <cstring>generalbox</cstring> </property> @@ -150,7 +150,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox" row="12" column="0"> + <widget class="TQComboBox" row="12" column="0"> <item> <property name="text"> <string>Jaguar</string> @@ -180,7 +180,7 @@ <cstring>defaultMode</cstring> </property> </widget> - <widget class="QCheckBox" row="9" column="0"> + <widget class="TQCheckBox" row="9" column="0"> <property name="name"> <cstring>delAppname</cstring> </property> @@ -203,7 +203,7 @@ from multipart titles</string> <enum>Horizontal</enum> </property> </widget> - <widget class="QCheckBox" row="3" column="0"> + <widget class="TQCheckBox" row="3" column="0"> <property name="name"> <cstring>drawComicFrame</cstring> </property> @@ -214,7 +214,7 @@ from multipart titles</string> <string>Draws a black frame around the window (not the Titlebar).<br>Anyway i suggest to get the kwin dropshadow patch.</string> </property> </widget> - <widget class="QCheckBox" row="8" column="0"> + <widget class="TQCheckBox" row="8" column="0"> <property name="name"> <cstring>noModalDeco</cstring> </property> @@ -222,7 +222,7 @@ from multipart titles</string> <string>Hide deco for fixed size modal windows</string> </property> </widget> - <widget class="QCheckBox" row="6" column="0"> + <widget class="TQCheckBox" row="6" column="0"> <property name="name"> <cstring>maxResizable</cstring> </property> @@ -230,7 +230,7 @@ from multipart titles</string> <string>Keep maximized resizable</string> </property> </widget> - <widget class="QCheckBox" row="2" column="0"> + <widget class="TQCheckBox" row="2" column="0"> <property name="name"> <cstring>ResizeGrip</cstring> </property> @@ -241,7 +241,7 @@ from multipart titles</string> <string>Starts in Brushed Metal mode instead of default, if the Style is set to Brushed Metal</string> </property> </widget> - <widget class="QLabel" row="11" column="0"> + <widget class="TQLabel" row="11" column="0"> <property name="name"> <cstring>textLabel1_7</cstring> </property> @@ -249,7 +249,7 @@ from multipart titles</string> <string>Default Mode is</string> </property> </widget> - <widget class="QCheckBox" row="7" column="0"> + <widget class="TQCheckBox" row="7" column="0"> <property name="name"> <cstring>fullSpec</cstring> </property> @@ -260,7 +260,7 @@ from multipart titles</string> <string>Check this to have any window in fullscreen Mode - demaximize the window by clicking into the top right corner of your screen</string> </property> </widget> - <widget class="QCheckBox" row="4" column="0"> + <widget class="TQCheckBox" row="4" column="0"> <property name="name"> <cstring>allowEasyClosing</cstring> </property> @@ -271,7 +271,7 @@ from multipart titles</string> <string>Allows Closing by clicking into the top left or right corner <br> Close Button must be most left or right element (also no spacers) <br> Closes on Mouse Button release (so you have the chance to move the mouse away and keep the Window) <br> The Window must be active and maximized <br> Unfortunately you will not be able tho resize the Window from that corner</string> </property> </widget> - <widget class="QCheckBox" row="5" column="0"> + <widget class="TQCheckBox" row="5" column="0"> <property name="name"> <cstring>addAutoSpacing</cstring> </property> @@ -279,7 +279,7 @@ from multipart titles</string> <string>Add auto spacing</string> </property> </widget> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class="TQLayoutWidget" row="1" column="0"> <property name="name"> <cstring>layout133</cstring> </property> @@ -287,7 +287,7 @@ from multipart titles</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -312,7 +312,7 @@ from multipart titles</string> </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>minTH</cstring> </property> @@ -328,7 +328,7 @@ from multipart titles</string> </widget> </hbox> </widget> - <widget class="QPushButton" row="0" column="0"> + <widget class="TQPushButton" row="0" column="0"> <property name="name"> <cstring>ButtonColorConfig</cstring> </property> @@ -338,7 +338,7 @@ from multipart titles</string> </widget> </grid> </widget> - <widget class="QWidgetStack" row="2" column="1" rowspan="1" colspan="2"> + <widget class="TQWidgetStack" row="2" column="1" rowspan="1" colspan="2"> <property name="name"> <cstring>decoStack</cstring> </property> @@ -351,14 +351,14 @@ from multipart titles</string> <property name="lineWidth"> <number>2</number> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>WStackPage</cstring> </property> <attribute name="id"> <number>0</number> </attribute> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -376,7 +376,7 @@ from multipart titles</string> </widget> </widget> </widget> - <widget class="QPushButton" row="1" column="1"> + <widget class="TQPushButton" row="1" column="1"> <property name="name"> <cstring>pushButton2</cstring> </property> @@ -384,7 +384,7 @@ from multipart titles</string> <string>Add style</string> </property> </widget> - <widget class="QPushButton" row="1" column="2"> + <widget class="TQPushButton" row="1" column="2"> <property name="name"> <cstring>pushButton3</cstring> </property> diff --git a/deco/config/customdecosettings.ui b/deco/config/customdecosettings.ui index 2533091..2a98265 100644 --- a/deco/config/customdecosettings.ui +++ b/deco/config/customdecosettings.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>CustomDecoSettings</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>CustomDecoSettings</cstring> </property> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox" row="5" column="0" rowspan="1" colspan="5"> + <widget class="TQGroupBox" row="5" column="0" rowspan="1" colspan="5"> <property name="name"> <cstring>boxCorner</cstring> </property> @@ -30,7 +30,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="0" rowspan="3" colspan="1"> <property name="name"> <cstring>layout45</cstring> </property> @@ -38,7 +38,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUL</cstring> </property> @@ -63,7 +63,7 @@ </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLL</cstring> </property> @@ -73,7 +73,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> + <widget class="TQLayoutWidget" row="0" column="5" rowspan="3" colspan="1"> <property name="name"> <cstring>layout44</cstring> </property> @@ -81,7 +81,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeUR</cstring> </property> @@ -106,7 +106,7 @@ </size> </property> </spacer> - <widget class="QCheckBox"> + <widget class="TQCheckBox"> <property name="name"> <cstring>shapeLR</cstring> </property> @@ -133,7 +133,7 @@ </size> </property> </spacer> - <widget class="QSpinBox" row="1" column="3"> + <widget class="TQSpinBox" row="1" column="3"> <property name="name"> <cstring>borderSize</cstring> </property> @@ -141,7 +141,7 @@ <number>16</number> </property> </widget> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>labelBorderSize</cstring> </property> @@ -202,7 +202,7 @@ </spacer> </grid> </widget> - <widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="5"> + <widget class="TQLayoutWidget" row="4" column="0" rowspan="1" colspan="5"> <property name="name"> <cstring>layout10</cstring> </property> @@ -210,7 +210,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>labelTitleshadow</cstring> </property> @@ -235,7 +235,7 @@ </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>LineImpact</cstring> </property> @@ -251,7 +251,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="5"> + <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="5"> <property name="name"> <cstring>layout7_3</cstring> </property> @@ -259,7 +259,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>label3D</cstring> </property> @@ -284,7 +284,7 @@ </size> </property> </spacer> - <widget class="QSpinBox"> + <widget class="TQSpinBox"> <property name="name"> <cstring>_3DImpact</cstring> </property> @@ -297,7 +297,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="2" column="0"> + <widget class="TQLayoutWidget" row="2" column="0"> <property name="name"> <cstring>layout35</cstring> </property> @@ -305,7 +305,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>labelButtonstyle</cstring> </property> @@ -313,7 +313,7 @@ <string>ButtonStyle</string> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>labelTitle</cstring> </property> @@ -324,7 +324,7 @@ <cstring>titleeffect</cstring> </property> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>labelInTitle</cstring> </property> @@ -337,7 +337,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="2" column="4"> + <widget class="TQLayoutWidget" row="2" column="4"> <property name="name"> <cstring>layout38</cstring> </property> @@ -345,7 +345,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>labelColors</cstring> </property> @@ -356,7 +356,7 @@ <set>AlignCenter</set> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout33</cstring> </property> @@ -382,7 +382,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout34</cstring> </property> @@ -410,7 +410,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="2" column="2" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="2" column="2" rowspan="1" colspan="2"> <property name="name"> <cstring>layout39</cstring> </property> @@ -418,7 +418,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Panther</string> @@ -443,7 +443,7 @@ <cstring>buttonStyle</cstring> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Gradient</string> @@ -487,7 +487,7 @@ <string>Select an effect for the titlebar to change its appearance</string> </property> </widget> - <widget class="QComboBox"> + <widget class="TQComboBox"> <item> <property name="text"> <string>Gradient</string> @@ -550,7 +550,7 @@ </size> </property> </spacer> - <widget class="QCheckBox" row="1" column="0" rowspan="1" colspan="3"> + <widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>drawIcon</cstring> </property> @@ -558,7 +558,7 @@ <string>Draw Icon</string> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>DecoName</cstring> </property> |