Initial TQt conversion

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 8 years ago
parent 5d3112684b
commit 96603e8acb

@ -18,20 +18,20 @@
#ifndef _QEMBED_CLIENTDATA
#define _QEMBED_CLIENTDATA
#include <qimage.h>
#include <qdict.h>
static const QRgb client_bottom_lines_dark_data[] = {
#include <tqimage.h>
#include <tqdict.h>
static const TQRgb client_bottom_lines_dark_data[] = {
0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x18000000,0x44000000,0x44000000,0x44000000,0x44000000,
0x44000000,0x44000000,0x44000000,0x44000000,0x44000000,0x44000000
};
/* Generated by qembed */
static const QRgb client_bottomLines_data[] = {
static const TQRgb client_bottomLines_data[] = {
0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x6000000,0x13000000,0x13000000,0x13000000,0x13000000,
0x13000000,0x13000000,0x13000000,0x13000000,0x13000000,0x13000000
};
static const QRgb clientButtonContour_data[] = {
static const TQRgb clientButtonContour_data[] = {
0x0,0x0,0x0,0x0,0x2000000,0x9000000,0xe000000,0xf000000,0xf000000,0xe000000,0x9000000,0x2000000,0x0,0x0,
0x0,0x0,0x0,0x0,0x1000000,0x7000000,0x27000000,0x8c000000,0xc4000000,0xc9000000,0xc9000000,0xc4000000,0x8c000000,0x27000000,
0x7000000,0x1000000,0x0,0x0,0x0,0x0,0xa000000,0x64000000,0xca000000,0x6a000000,0x1b000000,0xf000000,0xf000000,0x1b000000,
@ -53,7 +53,7 @@ static const QRgb clientButtonContour_data[] = {
0x0,0x0,0x0,0x0
};
static const QRgb clientButtonPressed_data[] = {
static const TQRgb clientButtonPressed_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xb151515,0x400b0b0b,0x420d0d0d,0x420d0d0d,0x41090909,0xb151515,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1000000,0x39131313,0x6d010101,0x68000000,0x62000000,0x62000000,0x67000000,
@ -75,7 +75,7 @@ static const QRgb clientButtonPressed_data[] = {
0x0,0x0,0x0,0x0
};
static const QRgb clientButtonShadow_data[] = {
static const TQRgb clientButtonShadow_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x16fdfdfd,0x52fdfdfd,0x6ffdfdfd,0x6ffdfdfd,0x50fdfdfd,0x16fdfdfd,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xafdfdfd,0x7bfcfcfc,0x78fdfdfd,0x65ffffff,0x6ffdfdfd,0x6ffdfdfd,0x65ffffff,
@ -97,18 +97,18 @@ static const QRgb clientButtonShadow_data[] = {
0x3ffffff,0x0,0x0,0x0
};
static const QRgb client_close_6x6_data[] = {
static const TQRgb client_close_6x6_data[] = {
0x6c2a2a2a,0x6b2a2a2a,0x0,0x0,0x6b2a2a2a,0x702a2a2a,0x7b2a2a2a,0xd62a2a2a,0x5c2a2a2a,0x792a2a2a,0xd62a2a2a,0x782a2a2a,0x0,0x7b2a2a2a,
0xd62a2a2a,0xd62a2a2a,0x782a2a2a,0x0,0x0,0x7b2a2a2a,0xd62a2a2a,0xd62a2a2a,0x782a2a2a,0x0,0x7b2a2a2a,0xd62a2a2a,0x782a2a2a,0x5e2a2a2a,
0xd62a2a2a,0x782a2a2a,0x6c2a2a2a,0x782a2a2a,0x0,0x0,0x5e2a2a2a,0x6c2a2a2a
};
static const QRgb client_dot_4x4_data[] = {
static const TQRgb client_dot_4x4_data[] = {
0x422a2a2a,0x9b2a2a2a,0x9b2a2a2a,0x422a2a2a,0x9b2a2a2a,0xb02a2a2a,0xb02a2a2a,0x9b2a2a2a,0x9b2a2a2a,0xb02a2a2a,0xb02a2a2a,0x9b2a2a2a,0x422a2a2a,0x9b2a2a2a,
0x9b2a2a2a,0x422a2a2a
};
static const QRgb client_edges_dark_data[] = {
static const TQRgb client_edges_dark_data[] = {
0x0,0x0,0x0,0x34000000,0x35000000,0x35000000,0x34000000,0x0,0x0,0x0,0x0,0x0,0x34000000,0x2b000000,
0xe000000,0xe000000,0x2b000000,0x34000000,0x0,0x0,0x0,0x39000000,0x23000000,0x10000000,0x3000000,0x3000000,0x10000000,0x23000000,
0x39000000,0x0,0x3000000,0x38000000,0x11000000,0x3000000,0x0,0x0,0x3000000,0x11000000,0x38000000,0x3000000,0x34000000,0x2a000000,
@ -120,7 +120,7 @@ static const QRgb client_edges_dark_data[] = {
0x0,0x41000000,0x44000000,0x44000000,0x41000000,0x0,0x0,0x0
};
static const QRgb client_edges_data[] = {
static const TQRgb client_edges_data[] = {
0x0,0x0,0x0,0x2fffffff,0x31ffffff,0x31ffffff,0x2fffffff,0x0,0x0,0x0,0x0,0x0,0x2effffff,0x25ffffff,
0x11ffffff,0x11ffffff,0x25ffffff,0x2effffff,0x0,0x0,0x0,0x34ffffff,0x1fffffff,0xeffffff,0x3ffffff,0x3ffffff,0xeffffff,0x1fffffff,
0x34ffffff,0x0,0x2ffffff,0x33ffffff,0xeffffff,0x3ffffff,0x0,0x0,0x3ffffff,0xeffffff,0x33ffffff,0x2ffffff,0x2fffffff,0x1fffffff,
@ -132,17 +132,17 @@ static const QRgb client_edges_data[] = {
0x0,0x12000000,0x13000000,0x13000000,0x12000000,0x0,0x0,0x0
};
static const QRgb client_help_5x8_data[] = {
static const TQRgb client_help_5x8_data[] = {
0x22a2a2a,0x772a2a2a,0xc22a2a2a,0xbd2a2a2a,0x302a2a2a,0x3b2a2a2a,0xd22a2a2a,0x612a2a2a,0x862a2a2a,0xbd2a2a2a,0x22a2a2a,0x22a2a2a,0x0,0x5b2a2a2a,
0xba2a2a2a,0x0,0x0,0x462a2a2a,0xbd2a2a2a,0x3e2a2a2a,0x0,0x0,0xd12a2a2a,0x682a2a2a,0x0,0x0,0x0,0x542a2a2a,
0x2a2a2a2a,0x0,0x0,0x0,0xb82a2a2a,0x5b2a2a2a,0x0,0x0,0x0,0x262a2a2a,0x82a2a2a,0x0
};
static const QRgb client_line_6x2_data[] = {
static const TQRgb client_line_6x2_data[] = {
0x852a2a2a,0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,0x852a2a2a,0x432a2a2a,0x5f2a2a2a,0x5f2a2a2a,0x5f2a2a2a,0x5f2a2a2a,0x432a2a2a
};
static const QRgb client_max_8x8_data[] = {
static const TQRgb client_max_8x8_data[] = {
0x0,0x0,0x0,0x852a2a2a,0x442a2a2a,0x0,0x0,0x0,0x0,0x0,0x0,0xbe2a2a2a,0x602a2a2a,0x0,
0x0,0x0,0x12a2a2a,0x12a2a2a,0x0,0xbe2a2a2a,0x602a2a2a,0x0,0x0,0x0,0x852a2a2a,0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,
0xbe2a2a2a,0xbe2a2a2a,0xbe2a2a2a,0x852a2a2a,0x442a2a2a,0x602a2a2a,0x602a2a2a,0xbe2a2a2a,0x902a2a2a,0x622a2a2a,0x632a2a2a,0x452a2a2a,0x0,0x0,
@ -150,27 +150,27 @@ static const QRgb client_max_8x8_data[] = {
0x0,0x0,0x0,0x852a2a2a,0x442a2a2a,0x0,0x0,0x0
};
static const QRgb client_right_lines2_data[] = {
static const TQRgb client_right_lines2_data[] = {
0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,
0xfffffff,0x24ffffff,0xfffffff,0x24ffffff,0xfffffff,0x24ffffff
};
static const QRgb client_right_lines_dark_data[] = {
static const TQRgb client_right_lines_dark_data[] = {
0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000,
0x19000000,0x36000000,0x19000000,0x36000000,0x19000000,0x36000000
};
static const QRgb client_topLines2_data[] = {
static const TQRgb client_topLines2_data[] = {
0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x39ffffff,0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff,
0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff,0x11ffffff
};
static const QRgb client_top_lines_dark_data[] = {
static const TQRgb client_top_lines_dark_data[] = {
0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x36000000,0x13000000,0x13000000,0x13000000,0x13000000,
0x13000000,0x13000000,0x13000000,0x13000000,0x13000000,0x13000000
};
static const QRgb client_upArrow_6x8_data[] = {
static const TQRgb client_upArrow_6x8_data[] = {
0x0,0x0,0x492a2a2a,0x142a2a2a,0x0,0x0,0x0,0x4a2a2a2a,0xb92a2a2a,0xa82a2a2a,0x1e2a2a2a,0x0,0x572a2a2a,0xb92a2a2a,
0xb92a2a2a,0xb82a2a2a,0xac2a2a2a,0x1d2a2a2a,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,0x0,0x0,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,
0x0,0x0,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,0x0,0x0,0x0,0x0,0xb92a2a2a,0x5c2a2a2a,0x0,0x0,
@ -182,7 +182,7 @@ static struct EmbedImage {
int width, height, depth;
const unsigned char *data;
int numColors;
const QRgb *colorTable;
const TQRgb *colorTable;
bool alpha;
const char *name;
} embed_image_vec[] = {
@ -206,20 +206,20 @@ static struct EmbedImage {
{ 0, 0, 0, 0, 0, 0, 0, 0 }
};
static const QImage& qembed_findImage( const QString& name )
static const TQImage& qembed_findImage( const TQString& name )
{
static QDict<QImage> dict;
QImage* img = dict.find( name );
static TQDict<TQImage> dict;
TQImage* img = dict.find( name );
if ( !img ) {
for ( int i = 0; embed_image_vec[i].data; i++ ) {
if ( strcmp(embed_image_vec[i].name, name.latin1()) == 0 ) {
img = new QImage((uchar*)embed_image_vec[i].data,
img = new TQImage((uchar*)embed_image_vec[i].data,
embed_image_vec[i].width,
embed_image_vec[i].height,
embed_image_vec[i].depth,
(QRgb*)embed_image_vec[i].colorTable,
(TQRgb*)embed_image_vec[i].colorTable,
embed_image_vec[i].numColors,
QImage::BigEndian );
TQImage::BigEndian );
if ( embed_image_vec[i].alpha )
img->setAlphaBuffer( TRUE );
dict.insert( name, img );
@ -227,7 +227,7 @@ static const QImage& qembed_findImage( const QString& name )
}
}
if ( !img ) {
static QImage dummy;
static TQImage dummy;
return dummy;
}
}

@ -23,15 +23,15 @@
#include "config.h"
#include <kglobal.h>
#include <klocale.h>
#include <qvbox.h>
#include <qlayout.h>
#include <qlabel.h>
#include <qgroupbox.h>
#include <qsettings.h>
#include <tqvbox.h>
#include <tqlayout.h>
#include <tqlabel.h>
#include <tqgroupbox.h>
#include <tqsettings.h>
extern "C"
{
KDE_EXPORT QObject* allocate_config( KConfig* config, QWidget* parent )
KDE_EXPORT TQObject* allocate_config( KConfig* config, TQWidget* parent )
{
return(new DominoConfig(config, parent));
}
@ -40,81 +40,81 @@ extern "C"
// NOTE:
// 'config' is a pointer to the kwindecoration modules open kwin config,
// and is by default set to the "Style" group.
// 'parent' is the parent of the QObject, which is a VBox inside the
// 'parent' is the parent of the TQObject, which is a VBox inside the
// Configure tab in kwindecoration
DominoConfig::DominoConfig( KConfig* config, QWidget* parent )
: QObject( parent )
DominoConfig::DominoConfig( KConfig* config, TQWidget* parent )
: TQObject( parent )
{
conf = new KConfig("kwindominorc");
KGlobal::locale()->insertCatalogue("kwin_clients");
vBox = new QVBox( parent );
vBox = new TQVBox( parent );
customBorderColor = new QCheckBox( i18n("Custom border color"), vBox );
QHBox *hbox1 = new QHBox(vBox);
hbox1->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
customBorderColor = new TQCheckBox( i18n("Custom border color"), vBox );
TQHBox *hbox1 = new TQHBox(vBox);
hbox1->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
borderColor = new KColorButton(hbox1);
customButtonColor = new QCheckBox( i18n("Custom button color"), vBox );
QHBox *hbox2 = new QHBox(vBox);
hbox2->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
customButtonColor = new TQCheckBox( i18n("Custom button color"), vBox );
TQHBox *hbox2 = new TQHBox(vBox);
hbox2->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
buttonColor = new KColorButton(hbox2);
customButtonIconColor = new QCheckBox( i18n("Custom button icon color"), vBox );
QHBox *hbox3 = new QHBox(vBox);
hbox3->layout()->addItem(new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
customButtonIconColor = new TQCheckBox( i18n("Custom button icon color"), vBox );
TQHBox *hbox3 = new TQHBox(vBox);
hbox3->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
buttonIconColor = new KColorButton(hbox3);
customGradientColors = new QCheckBox( i18n("Custom gradient colors"), vBox);
QHBox *hbox4 = new QHBox(vBox);
hbox4->layout()->addItem(new QSpacerItem(22, 0, QSizePolicy::Fixed, QSizePolicy::Minimum) );
customGradientColors = new TQCheckBox( i18n("Custom gradient colors"), vBox);
TQHBox *hbox4 = new TQHBox(vBox);
hbox4->layout()->addItem(new TQSpacerItem(22, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
QVBox *vbox1 = new QVBox(hbox4);
new QLabel( i18n("Top gradient color"), vbox1);
TQVBox *vbox1 = new TQVBox(hbox4);
new TQLabel( i18n("Top gradient color"), vbox1);
topGradientColor = new KColorButton(vbox1);
new QLabel(i18n("Bottom gradient color"), vbox1);
new TQLabel(i18n("Bottom gradient color"), vbox1);
bottomGradientColor = new KColorButton(vbox1);
showInactiveButtons = new QCheckBox( i18n("Show inactive buttons"), vBox );
showButtonIcons = new QCheckBox( i18n("Show button icons"), vBox );
darkFrame = new QCheckBox( i18n("Dark window frame"), vBox );
showInactiveButtons = new TQCheckBox( i18n("Show inactive buttons"), vBox );
showButtonIcons = new TQCheckBox( i18n("Show button icons"), vBox );
darkFrame = new TQCheckBox( i18n("Dark window frame"), vBox );
///////////////////////////////////////
QGroupBox* colorGb = new QGroupBox(vBox);
TQGroupBox* colorGb = new TQGroupBox(vBox);
colorGb->setTitle(i18n("Button contour colors:"));
colorGb->setColumnLayout(0, Qt::Vertical );
colorGb->setColumnLayout(0, TQt::Vertical );
colorGb->layout()->setSpacing( 6 );
colorGb->layout()->setMargin( 11 );
QGridLayout* gbLayout = new QGridLayout( colorGb->layout(), 4, 2 );
gbLayout->setAlignment( Qt::AlignTop );
TQGridLayout* gbLayout = new TQGridLayout( colorGb->layout(), 4, 2 );
gbLayout->setAlignment( TQt::AlignTop );
QLabel* labelSC = new QLabel(i18n("Standard color:"), colorGb);
TQLabel* labelSC = new TQLabel(i18n("Standard color:"), colorGb);
buttonContourColor = new KColorButton(colorGb);
buttonContourColor->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
QLabel* labelMC = new QLabel(i18n("Mouseover color:"), colorGb);
buttonContourColor->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Minimum);
TQLabel* labelMC = new TQLabel(i18n("Mouseover color:"), colorGb);
buttonMouseOverContourColor = new KColorButton(colorGb);
QLabel* labelPC = new QLabel(i18n("Pressed color:"), colorGb);
TQLabel* labelPC = new TQLabel(i18n("Pressed color:"), colorGb);
buttonPressedContourColor = new KColorButton(colorGb);
useDominoStyleContourColors = new QCheckBox( i18n("Use domino style contour colors"), colorGb );
useDominoStyleContourColors = new TQCheckBox( i18n("Use domino style contour colors"), colorGb );
gbLayout->addMultiCellWidget(useDominoStyleContourColors, 0, 0, 0, 1);
gbLayout->addWidget(labelSC, 1, 0);
gbLayout->addItem(new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Minimum) );
gbLayout->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
gbLayout->addWidget(buttonContourColor, 1, 1);
gbLayout->addWidget(labelMC, 2, 0);
gbLayout->addItem(new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Minimum) );
gbLayout->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
gbLayout->addWidget(buttonMouseOverContourColor, 2, 1);
gbLayout->addWidget(labelPC, 3, 0);
gbLayout->addItem(new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Minimum) );
gbLayout->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
gbLayout->addWidget(buttonPressedContourColor, 3, 1);
@ -139,17 +139,17 @@ DominoConfig::DominoConfig( KConfig* config, QWidget* parent )
connect(customButtonIconColor, SIGNAL(toggled(bool)), buttonIconColor, SLOT(setEnabled(bool)));
connect(customGradientColors, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
connect(topGradientColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
connect(bottomGradientColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
connect(topGradientColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
connect(bottomGradientColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
connect(customBorderColor, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
connect(borderColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
connect(borderColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
connect(customButtonColor, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
connect(buttonColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
connect(buttonColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
connect(customButtonIconColor, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
connect(buttonIconColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
connect(buttonIconColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
connect(showInactiveButtons, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
connect(showButtonIcons, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
@ -157,9 +157,9 @@ DominoConfig::DominoConfig( KConfig* config, QWidget* parent )
connect(useDominoStyleContourColors, SIGNAL(clicked()), this, SLOT(loadButtonContourColors()));
connect(useDominoStyleContourColors, SIGNAL(clicked()), this, SLOT(slotSelectionChanged()));
connect(buttonContourColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
connect(buttonMouseOverContourColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
connect(buttonPressedContourColor, SIGNAL(changed(const QColor&)), this, SLOT(slotSelectionChanged()));
connect(buttonContourColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
connect(buttonMouseOverContourColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
connect(buttonPressedContourColor, SIGNAL(changed(const TQColor&)), this, SLOT(slotSelectionChanged()));
// Make the widgets visible in kwindecoration valueChanged
@ -245,7 +245,7 @@ void DominoConfig::save(KConfig*)
void DominoConfig::defaults()
{
QColor background = vBox->paletteBackgroundColor();
TQColor background = vBox->paletteBackgroundColor();
customBorderColor->setChecked(true);
borderColor->setColor("#777B7F");
@ -269,9 +269,9 @@ void DominoConfig::defaults()
void DominoConfig::loadButtonContourColors() {
QColor background = vBox->paletteBackgroundColor();
TQColor background = vBox->paletteBackgroundColor();
if(useDominoStyleContourColors->isChecked()) {
QSettings s;
TQSettings s;
buttonContourColor->setColor(s.readEntry("/domino/Settings/buttonContourColor", background.dark(250).name()));
buttonMouseOverContourColor->setColor(s.readEntry("/domino/Settings/buttonMouseOverContourColor", background.dark(250).name()));
buttonPressedContourColor->setColor(s.readEntry("/domino/Settings/buttonPressedContourColor", background.dark(250).name()));

@ -23,17 +23,17 @@
#ifndef DOMINOCONFIG_H
#define DOMINOCONFIG_H
#include <qcheckbox.h>
#include <tqcheckbox.h>
#include <kconfig.h>
#include <qvbox.h>
#include <tqvbox.h>
#include <kcolorbutton.h>
class DominoConfig: public QObject
class DominoConfig: public TQObject
{
Q_OBJECT
public:
DominoConfig( KConfig* config, QWidget* parent );
DominoConfig( KConfig* config, TQWidget* parent );
~DominoConfig();
// These public signals/slots work similar to KCM modules
@ -50,22 +50,22 @@ class DominoConfig: public QObject
void loadButtonContourColors();
private:
KConfig* conf;
QVBox* vBox;
QCheckBox* customBorderColor;
TQVBox* vBox;
TQCheckBox* customBorderColor;
KColorButton* borderColor;
QCheckBox* customButtonColor;
TQCheckBox* customButtonColor;
KColorButton* buttonColor;
QCheckBox* customButtonIconColor;
TQCheckBox* customButtonIconColor;
KColorButton* buttonIconColor;
QCheckBox* showInactiveButtons;
QCheckBox* showButtonIcons;
QCheckBox* customGradientColors;
TQCheckBox* showInactiveButtons;
TQCheckBox* showButtonIcons;
TQCheckBox* customGradientColors;
KColorButton* topGradientColor;
KColorButton* bottomGradientColor;
QCheckBox* darkFrame;
TQCheckBox* darkFrame;
QCheckBox* useDominoStyleContourColors;
TQCheckBox* useDominoStyleContourColors;
KColorButton* buttonContourColor;
KColorButton* buttonMouseOverContourColor;
KColorButton* buttonPressedContourColor;

@ -25,16 +25,16 @@
#include <kconfig.h>
#include <kglobal.h>
#include <qlayout.h>
#include <qbitmap.h>
#include <qimage.h>
#include <qapplication.h>
#include <qlabel.h>
#include <qpixmap.h>
#include <tqlayout.h>
#include <tqbitmap.h>
#include <tqimage.h>
#include <tqapplication.h>
#include <tqlabel.h>
#include <tqpixmap.h>
#include <X11/extensions/shape.h>
#include <qwmatrix.h>
#include <qpainter.h>
#include <qsettings.h>
#include <tqwmatrix.h>
#include <tqpainter.h>
#include <tqsettings.h>
namespace Domino
@ -46,53 +46,53 @@ const int titleEdgeTop = 3;
const int titleEdgeBottom = 1;
static int titleHeight;
static QPixmap* buttonPix;
static QPixmap* buttonHidePix;
static QPixmap* titleBarPix;
static QPixmap* borderTopLeftPix;
static QPixmap* borderTopRightPix;
static QPixmap* borderBottomPix;
static QPixmap* borderBottomLeftPix;
static QPixmap* borderBottomRightPix;
static QPixmap* borderLeftPix;
static QPixmap* borderRightPix;
static QPixmap* closeButtonIcon;
static QPixmap* minButtonIcon;
static QPixmap* maxButtonIcon;
static QPixmap* helpButtonIcon;
static QPixmap* onAllDesktopsButtonIcon;
static QPixmap* shadeButtonIcon;
static QPixmap* aboveButtonIcon;
static QPixmap* belowButtonIcon;
static QPixmap* pressedCloseButtonIcon;
static QPixmap* pressedMinButtonIcon;
static QPixmap* pressedMaxButtonIcon;
static QPixmap* pressedHelpButtonIcon;
static QPixmap* pressedOnAllDesktopsButtonIcon;
static QPixmap* pressedShadeButtonIcon;
static QPixmap* pressedAboveButtonIcon;
static QPixmap* pressedBelowButtonIcon;
static QPixmap* mouseOverCloseButtonIcon;
static QPixmap* mouseOverMinButtonIcon;
static QPixmap* mouseOverMaxButtonIcon;
static QPixmap* mouseOverHelpButtonIcon;
static QPixmap* mouseOverOnAllDesktopsButtonIcon;
static QPixmap* mouseOverShadeButtonIcon;
static QPixmap* mouseOverAboveButtonIcon;
static QPixmap* mouseOverBelowButtonIcon;
static TQPixmap* buttonPix;
static TQPixmap* buttonHidePix;
static TQPixmap* titleBarPix;
static TQPixmap* borderTopLeftPix;
static TQPixmap* borderTopRightPix;
static TQPixmap* borderBottomPix;
static TQPixmap* borderBottomLeftPix;
static TQPixmap* borderBottomRightPix;
static TQPixmap* borderLeftPix;
static TQPixmap* borderRightPix;
static TQPixmap* closeButtonIcon;
static TQPixmap* minButtonIcon;
static TQPixmap* maxButtonIcon;
static TQPixmap* helpButtonIcon;
static TQPixmap* onAllDesktopsButtonIcon;
static TQPixmap* shadeButtonIcon;
static TQPixmap* aboveButtonIcon;
static TQPixmap* belowButtonIcon;
static TQPixmap* pressedCloseButtonIcon;
static TQPixmap* pressedMinButtonIcon;
static TQPixmap* pressedMaxButtonIcon;
static TQPixmap* pressedHelpButtonIcon;
static TQPixmap* pressedOnAllDesktopsButtonIcon;
static TQPixmap* pressedShadeButtonIcon;
static TQPixmap* pressedAboveButtonIcon;
static TQPixmap* pressedBelowButtonIcon;
static TQPixmap* mouseOverCloseButtonIcon;
static TQPixmap* mouseOverMinButtonIcon;
static TQPixmap* mouseOverMaxButtonIcon;
static TQPixmap* mouseOverHelpButtonIcon;
static TQPixmap* mouseOverOnAllDesktopsButtonIcon;
static TQPixmap* mouseOverShadeButtonIcon;
static TQPixmap* mouseOverAboveButtonIcon;
static TQPixmap* mouseOverBelowButtonIcon;
static bool buttonInputShape;
static QBitmap* buttonShapeBitmap;
static TQBitmap* buttonShapeBitmap;
static QColor background;
static QColor topGradientColor;
static QColor bottomGradientColor;
static QColor topBorderGradientColor;
static QColor bottomBorderGradientColor;
static TQColor background;
static TQColor topGradientColor;
static TQColor bottomGradientColor;
static TQColor topBorderGradientColor;
static TQColor bottomBorderGradientColor;
static bool showButtonIcons;
static bool showInactiveButtons;
@ -106,8 +106,8 @@ DominoHandler::DominoHandler()
{
int ignore, maj, min;
if(XShapeQueryExtension(qt_xdisplay(), &ignore, &ignore) &&
XShapeQueryVersion(qt_xdisplay(), &maj, &min) &&
if(XShapeQueryExtension(tqt_xdisplay(), &ignore, &ignore) &&
XShapeQueryVersion(tqt_xdisplay(), &maj, &min) &&
maj >= 1 && min >= 1) {
buttonInputShape = true;
@ -159,8 +159,8 @@ unsigned long DominoHandler::readConfig( bool update )
KConfig conf("kwindominorc");
conf.setGroup("General");
titleHeight = QMAX(QFontMetrics(options()->font(true)).height(), 16);
background = qApp->palette().active().background();
titleHeight = TQMAX(TQFontMetrics(options()->font(true)).height(), 16);
background = tqApp->palette().active().background();
customBorderColor = conf.readBoolEntry("customBorderColor", true);
borderColor = customBorderColor ? conf.readEntry("borderColor", "#777B7F") : background;
@ -174,10 +174,10 @@ unsigned long DominoHandler::readConfig( bool update )
darkLines = conf.readBoolEntry("darkFrame", false);
if(!conf.readBoolEntry( "customGradientColors", false)) {
topGradientColor = alphaBlendColors(background, Qt::white, 180);
bottomGradientColor = alphaBlendColors(background, Qt::black, 230);
topBorderGradientColor = alphaBlendColors(borderColor, Qt::white, 180);
bottomBorderGradientColor = alphaBlendColors(borderColor, Qt::black, 230);
topGradientColor = alphaBlendColors(background, TQt::white, 180);
bottomGradientColor = alphaBlendColors(background, TQt::black, 230);
topBorderGradientColor = alphaBlendColors(borderColor, TQt::white, 180);
bottomBorderGradientColor = alphaBlendColors(borderColor, TQt::black, 230);
}
else {
topGradientColor = conf.readEntry("topGradientColor", "#ffffff");
@ -191,7 +191,7 @@ unsigned long DominoHandler::readConfig( bool update )
}
if(conf.readBoolEntry("useDominoStyleContourColors", true)) {
QSettings s;
TQSettings s;
buttonContourColor = s.readEntry("/domino/Settings/buttonContourColor", background.dark(250).name());
buttonMouseOverContourColor = s.readEntry("/domino/Settings/buttonMouseOverContourColor", background.dark(250).name());
buttonPressedContourColor = s.readEntry("/domino/Settings/buttonPressedContourColor", background.dark(250).name());
@ -210,10 +210,10 @@ unsigned long DominoHandler::readConfig( bool update )
void DominoHandler::createPixmaps()
{
QImage edges;
QImage topLines;
QImage rightLines;
QImage bottomLines;
TQImage edges;
TQImage topLines;
TQImage rightLines;
TQImage bottomLines;
if(darkLines) {
edges = qembed_findImage("client_edges_dark");
@ -232,14 +232,14 @@ void DominoHandler::createPixmaps()
int titleBarHeight = titleHeight+titleEdgeTop+titleEdgeBottom;
QWMatrix m;
TQWMatrix m;
m.rotate(180);
titleBarPix = new QPixmap(QSize(10, titleBarHeight));
titleBarPix = new TQPixmap(TQSize(10, titleBarHeight));
titleBarPix->fill(background);
QRect r(titleBarPix->rect());
QPainter p(titleBarPix);
QRect rect(r.x(), r.y(), r.width(), titleGradientHeight);
TQRect r(titleBarPix->rect());
TQPainter p(titleBarPix);
TQRect rect(r.x(), r.y(), r.width(), titleGradientHeight);
renderGradient(&p, rect, topGradientColor, background, "titleBar");
p.drawPixmap(0, 0, topLines);
p.end();
@ -248,23 +248,23 @@ void DominoHandler::createPixmaps()
///////// borders
// sides
QPixmap sideLinesRight = rightLines;
TQPixmap sideLinesRight = rightLines;
borderRightPix = new QPixmap(5, 10);
borderRightPix = new TQPixmap(5, 10);
borderRightPix->fill(borderColor);
p.begin(borderRightPix);
p.drawPixmap(3, 0, sideLinesRight);
p.end();
borderLeftPix = new QPixmap(borderRightPix->xForm(m));
borderLeftPix = new TQPixmap(borderRightPix->xForm(m));
// edges
borderTopLeftPix = new QPixmap(QSize(5, titleBarHeight));
borderTopLeftPix = new TQPixmap(TQSize(5, titleBarHeight));
borderTopLeftPix->fill(borderColor);
p.begin(borderTopLeftPix);
r = QRect(0, 0, 5, titleGradientHeight);
r = TQRect(0, 0, 5, titleGradientHeight);
// if the gradient color is equal to the background color, we make the border also flat.
renderGradient(&p, r, topGradientColor == background ? borderColor : topBorderGradientColor, borderColor, "borderTopLeftPix");
borderTopRightPix = new QPixmap(*borderTopLeftPix);
borderTopRightPix = new TQPixmap(*borderTopLeftPix);
p.drawPixmap(0, 1, edges, 0, 0, 5, 6);
p.drawTiledPixmap(0, 7, 2, titleBarHeight, sideLinesRight.xForm(m));
p.end();
@ -274,12 +274,12 @@ void DominoHandler::createPixmaps()
p.end();
borderBottomRightPix = new QPixmap(QSize(5, bottomBorderHeight));
borderBottomRightPix = new TQPixmap(TQSize(5, bottomBorderHeight));
borderBottomRightPix->fill(borderColor);
p.begin(borderBottomRightPix);
r = QRect(0, bottomBorderHeight-6, 5, 6);
r = TQRect(0, bottomBorderHeight-6, 5, 6);
renderGradient(&p, r, borderColor, bottomGradientColor == background ? borderColor : bottomBorderGradientColor, "borderBottomRightPix");
borderBottomLeftPix = new QPixmap(*borderBottomRightPix);
borderBottomLeftPix = new TQPixmap(*borderBottomRightPix);
p.drawPixmap(0, bottomBorderHeight-7, edges, 5, 6, 5, 6);
p.drawPixmap(3, 0, sideLinesRight, 0, 0, 2, borderBottomLeftPix->height()-7);
p.end();
@ -290,10 +290,10 @@ void DominoHandler::createPixmaps()
p.drawPixmap(0, 0, sideLinesRight.xForm(m), 0, 0, 2, borderBottomLeftPix->height()-7);
p.end();
borderBottomPix = new QPixmap(QSize(10, bottomBorderHeight));
borderBottomPix = new TQPixmap(TQSize(10, bottomBorderHeight));
borderBottomPix->fill(background);
p.begin(borderBottomPix);
r = QRect(0, bottomBorderHeight-6, 10, 6);
r = TQRect(0, bottomBorderHeight-6, 10, 6);
renderGradient(&p, r, background, bottomGradientColor, "borderBottom");
p.drawPixmap(0, bottomBorderHeight-2, bottomLines);
p.end();
@ -304,42 +304,42 @@ void DominoHandler::createPixmaps()
////////////////////////////////////////////////////////////////////////
if(buttonInputShape) {
QRegion buttonClip(6,2,6,1);
buttonClip += QRegion(5,3,8,1);
buttonClip += QRegion(4,4,10,1);
buttonClip += QRegion(3,5,12,1);
buttonClip += QRegion(2,6,14,6);
buttonClip += QRegion(3,12,12,1);
buttonClip += QRegion(4,13,10,1);
buttonClip += QRegion(5,14,8,1);
buttonClip += QRegion(6,15,6,1);
buttonShapeBitmap = new QBitmap(16, titleBarHeight, true);
QPainter p(buttonShapeBitmap);
TQRegion buttonClip(6,2,6,1);
buttonClip += TQRegion(5,3,8,1);
buttonClip += TQRegion(4,4,10,1);
buttonClip += TQRegion(3,5,12,1);
buttonClip += TQRegion(2,6,14,6);
buttonClip += TQRegion(3,12,12,1);
buttonClip += TQRegion(4,13,10,1);
buttonClip += TQRegion(5,14,8,1);
buttonClip += TQRegion(6,15,6,1);
buttonShapeBitmap = new TQBitmap(16, titleBarHeight, true);
TQPainter p(buttonShapeBitmap);
p.setClipRegion(buttonClip);
p.fillRect(QRect(0, 0, 16, titleBarHeight), Qt::color1);
p.fillRect(TQRect(0, 0, 16, titleBarHeight), TQt::color1);
}
QPixmap* buttonShadow = new QPixmap(qembed_findImage("clientButtonShadow"));
QPixmap* buttonPressed = new QPixmap(qembed_findImage("clientButtonPressed"));
TQPixmap* buttonShadow = new TQPixmap(qembed_findImage("clientButtonShadow"));
TQPixmap* buttonPressed = new TQPixmap(qembed_findImage("clientButtonPressed"));
buttonPix = new QPixmap(QSize(16, titleBarHeight));
buttonPix = new TQPixmap(TQSize(16, titleBarHeight));
p.begin(buttonPix);
p.drawTiledPixmap(0, 0, titleBarHeight, titleBarHeight, *titleBarPix, 0, titleEdgeTop);
//////////// custom color
r = QRect(buttonPix->rect());
QRegion buttonClip(5,2,6,1);
buttonClip += QRegion(4,3,8,1);
buttonClip += QRegion(3,4,10,1);
buttonClip += QRegion(2,5,12,6);
buttonClip += QRegion(3,11,10,1);
buttonClip += QRegion(4,12,8,1);
buttonClip += QRegion(5,13,6,1);
r = TQRect(buttonPix->rect());
TQRegion buttonClip(5,2,6,1);
buttonClip += TQRegion(4,3,8,1);
buttonClip += TQRegion(3,4,10,1);
buttonClip += TQRegion(2,5,12,6);
buttonClip += TQRegion(3,11,10,1);
buttonClip += TQRegion(4,12,8,1);
buttonClip += TQRegion(5,13,6,1);
p.setClipRegion(buttonClip);
p.fillRect(QRect(0, 0, r.width(), r.height()), buttonColor);
QRect gr(0, -3, r.width(), titleGradientHeight);
p.fillRect(TQRect(0, 0, r.width(), r.height()), buttonColor);
TQRect gr(0, -3, r.width(), titleGradientHeight);
renderGradient(&p, gr, topGradientColor, buttonColor, "titleBar");
p.setClipping(false);
///////////
@ -347,14 +347,14 @@ void DominoHandler::createPixmaps()
p.end();
QPixmap* pressedButtonPix = new QPixmap(*buttonPix);
TQPixmap* pressedButtonPix = new TQPixmap(*buttonPix);
p.begin(pressedButtonPix);
p.drawPixmap(0, 0, tintImage(qembed_findImage("clientButtonContour"), buttonPressedContourColor));
p.drawPixmap(0, 0, *buttonPressed);
p.end();
QPixmap* mouseOverButtonPix = new QPixmap(*buttonPix);
TQPixmap* mouseOverButtonPix = new TQPixmap(*buttonPix);
p.begin(mouseOverButtonPix);
p.drawPixmap(0, 0, tintImage(qembed_findImage("clientButtonContour"), buttonMouseOverContourColor));
p.end();
@ -365,7 +365,7 @@ void DominoHandler::createPixmaps()
p.end();
buttonHidePix = new QPixmap(QSize(buttonPix->width(), titleBarHeight));
buttonHidePix = new TQPixmap(TQSize(buttonPix->width(), titleBarHeight));
p.begin(buttonHidePix);
p.drawTiledPixmap(0, 0, buttonHidePix->width(), buttonHidePix->height(), *titleBarPix, 0, titleEdgeTop);
p.end();
@ -376,75 +376,75 @@ void DominoHandler::createPixmaps()
///////// icons
///////////////////////////////////////////////////////////////////////
QPixmap* icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("closeButtonIcon"), buttonIconColor) : qembed_findImage("closeButtonIcon"));
closeButtonIcon = new QPixmap(*buttonPix);
TQPixmap* icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("closeButtonIcon"), buttonIconColor) : qembed_findImage("closeButtonIcon"));
closeButtonIcon = new TQPixmap(*buttonPix);
bitBlt(closeButtonIcon, 5, 5, icon);
pressedCloseButtonIcon = new QPixmap(*pressedButtonPix);
pressedCloseButtonIcon = new TQPixmap(*pressedButtonPix);
bitBlt(pressedCloseButtonIcon, 5, 5, icon);
mouseOverCloseButtonIcon = new QPixmap(*mouseOverButtonPix);
mouseOverCloseButtonIcon = new TQPixmap(*mouseOverButtonPix);
bitBlt(mouseOverCloseButtonIcon, 5, 5, icon);
delete icon;
icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("maxButtonIcon"), buttonIconColor) : qembed_findImage("maxButtonIcon"));
maxButtonIcon = new QPixmap(*buttonPix);
icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("maxButtonIcon"), buttonIconColor) : qembed_findImage("maxButtonIcon"));
maxButtonIcon = new TQPixmap(*buttonPix);
bitBlt(maxButtonIcon, 4, 4, icon);
pressedMaxButtonIcon = new QPixmap(*pressedButtonPix);
pressedMaxButtonIcon = new TQPixmap(*pressedButtonPix);
bitBlt(pressedMaxButtonIcon, 4, 4, icon);
mouseOverMaxButtonIcon = new QPixmap(*mouseOverButtonPix);
mouseOverMaxButtonIcon = new TQPixmap(*mouseOverButtonPix);
bitBlt(mouseOverMaxButtonIcon, 4, 4, icon);
delete icon;
icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("minButtonIcon"), buttonIconColor) : qembed_findImage("minButtonIcon"));
minButtonIcon = new QPixmap(*buttonPix);
icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("minButtonIcon"), buttonIconColor) : qembed_findImage("minButtonIcon"));
minButtonIcon = new TQPixmap(*buttonPix);
bitBlt(minButtonIcon, 5, 9, icon);
pressedMinButtonIcon = new QPixmap(*pressedButtonPix);
pressedMinButtonIcon = new TQPixmap(*pressedButtonPix);
bitBlt(pressedMinButtonIcon, 5, 9, icon);
mouseOverMinButtonIcon = new QPixmap(*mouseOverButtonPix);
mouseOverMinButtonIcon = new TQPixmap(*mouseOverButtonPix);
bitBlt(mouseOverMinButtonIcon, 5, 9, icon);
delete icon;
icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("helpButtonIcon"), buttonIconColor) : qembed_findImage("helpButtonIcon"));
helpButtonIcon = new QPixmap(*buttonPix);
icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("helpButtonIcon"), buttonIconColor) : qembed_findImage("helpButtonIcon"));
helpButtonIcon = new TQPixmap(*buttonPix);
bitBlt(helpButtonIcon, 5, 4, icon);
pressedHelpButtonIcon = new QPixmap(*pressedButtonPix);
pressedHelpButtonIcon = new TQPixmap(*pressedButtonPix);
bitBlt(pressedHelpButtonIcon, 5, 4, icon);
mouseOverHelpButtonIcon = new QPixmap(*mouseOverButtonPix);
mouseOverHelpButtonIcon = new TQPixmap(*mouseOverButtonPix);
bitBlt(mouseOverHelpButtonIcon, 5, 4, icon);
delete icon;
icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("onAllDesktopsButtonIcon"), buttonIconColor) : qembed_findImage("onAllDesktopsButtonIcon"));
onAllDesktopsButtonIcon = new QPixmap(*buttonPix);
icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("onAllDesktopsButtonIcon"), buttonIconColor) : qembed_findImage("onAllDesktopsButtonIcon"));
onAllDesktopsButtonIcon = new TQPixmap(*buttonPix);
bitBlt(onAllDesktopsButtonIcon, 6, 6, icon);
pressedOnAllDesktopsButtonIcon = new QPixmap(*pressedButtonPix);
pressedOnAllDesktopsButtonIcon = new TQPixmap(*pressedButtonPix);
bitBlt(pressedOnAllDesktopsButtonIcon, 6, 6, icon);
mouseOverOnAllDesktopsButtonIcon = new QPixmap(*mouseOverButtonPix);
mouseOverOnAllDesktopsButtonIcon = new TQPixmap(*mouseOverButtonPix);
bitBlt(mouseOverOnAllDesktopsButtonIcon, 6, 6, icon);
delete icon;
icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("aboveButtonIcon"), buttonIconColor) : qembed_findImage("aboveButtonIcon"));
aboveButtonIcon = new QPixmap(*buttonPix);
icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("aboveButtonIcon"), buttonIconColor) : qembed_findImage("aboveButtonIcon"));
aboveButtonIcon = new TQPixmap(*buttonPix);
bitBlt(aboveButtonIcon, 5, 4, icon);
pressedAboveButtonIcon = new QPixmap(*pressedButtonPix);
pressedAboveButtonIcon = new TQPixmap(*pressedButtonPix);
bitBlt(pressedAboveButtonIcon, 5, 4, icon);
mouseOverAboveButtonIcon = new QPixmap(*mouseOverButtonPix);
mouseOverAboveButtonIcon = new TQPixmap(*mouseOverButtonPix);
bitBlt(mouseOverAboveButtonIcon, 5, 4, icon);
delete icon;
icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("aboveButtonIcon").xForm(m), buttonIconColor) : qembed_findImage("aboveButtonIcon").xForm(m));
belowButtonIcon = new QPixmap(*buttonPix);
icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("aboveButtonIcon").xForm(m), buttonIconColor) : qembed_findImage("aboveButtonIcon").xForm(m));
belowButtonIcon = new TQPixmap(*buttonPix);
bitBlt(belowButtonIcon, 5, 4, icon);
pressedBelowButtonIcon = new QPixmap(*pressedButtonPix);
pressedBelowButtonIcon = new TQPixmap(*pressedButtonPix);
bitBlt(pressedBelowButtonIcon, 5, 4, icon);
mouseOverBelowButtonIcon = new QPixmap(*mouseOverButtonPix);
mouseOverBelowButtonIcon = new TQPixmap(*mouseOverButtonPix);
bitBlt(mouseOverBelowButtonIcon, 5, 4, icon);
delete icon;
icon = new QPixmap(customButtonIconColor ? tintImage(qembed_findImage("minButtonIcon"), buttonIconColor) : qembed_findImage("minButtonIcon"));
shadeButtonIcon = new QPixmap(*buttonPix);
icon = new TQPixmap(customButtonIconColor ? tintImage(qembed_findImage("minButtonIcon"), buttonIconColor) : qembed_findImage("minButtonIcon"));
shadeButtonIcon = new TQPixmap(*buttonPix);
bitBlt(shadeButtonIcon, 5, 5, icon);
pressedShadeButtonIcon = new QPixmap(*pressedButtonPix);
pressedShadeButtonIcon = new TQPixmap(*pressedButtonPix);
bitBlt(pressedShadeButtonIcon, 5, 5, icon);
mouseOverShadeButtonIcon = new QPixmap(*mouseOverButtonPix);
mouseOverShadeButtonIcon = new TQPixmap(*mouseOverButtonPix);
bitBlt(mouseOverShadeButtonIcon, 5, 5, icon);
delete icon;
@ -531,7 +531,7 @@ DominoButton::DominoButton(ButtonType type, DominoClient *parent, const char *na
client = parent;
#ifdef ShapeInput
if(buttonInputShape && buttonShapeBitmap ) {
XShapeCombineMask (qt_xdisplay(),
XShapeCombineMask (tqt_xdisplay(),
winId(),
ShapeInput,
0,
@ -551,7 +551,7 @@ DominoButton::~DominoButton()
void DominoButton::reset(unsigned long changed)
{
if (changed&SizeChange || changed&ManualReset) {
setBackgroundOrigin(QWidget::WidgetOrigin);
setBackgroundOrigin(TQWidget::WidgetOrigin);
setErasePixmap(showInactiveButtons ? *buttonPix : *buttonHidePix);
}
@ -564,7 +564,7 @@ void DominoButton::reset(unsigned long changed)
}
void DominoButton::drawButton(QPainter *p)
void DominoButton::drawButton(TQPainter *p)
{
if (!Domino_initialized)
return;
@ -610,7 +610,7 @@ void DominoButton::drawButton(QPainter *p)
void DominoButton::enterEvent(QEvent */*e*/)
void DominoButton::enterEvent(TQEvent */*e*/)
{
if(!client->isActive() && !showInactiveButtons)
@ -621,7 +621,7 @@ void DominoButton::enterEvent(QEvent */*e*/)
}
void DominoButton::leaveEvent(QEvent */*e*/)
void DominoButton::leaveEvent(TQEvent */*e*/)
{
isMouseOver=false;
repaint(false);
@ -649,17 +649,17 @@ DominoClient::~DominoClient()
delete borderBottom;
}
QString DominoClient::visibleName() const
TQString DominoClient::visibleName() const
{
return "Domino";
}
QString DominoClient::defaultButtonsLeft() const
TQString DominoClient::defaultButtonsLeft() const
{
return "MF";
}
QString DominoClient::defaultButtonsRight() const
TQString DominoClient::defaultButtonsRight() const
{
return "HIAX";
}
@ -776,7 +776,7 @@ void DominoClient::init()
menuButton = 0;
globalMouseTracking = false;
titleBarMouseOver = false;
QWidget* w = new QWidget(KDecoration::initialParentWidget(), "clientMainWidget", WNoAutoErase|WStaticContents);
TQWidget* w = new TQWidget(KDecoration::initialParentWidget(), "clientMainWidget", WNoAutoErase|WStaticContents);
setMainWidget(w);
widget()->setBackgroundMode(NoBackground);
@ -794,48 +794,48 @@ void DominoClient::createLayout()
int titleBarHeight = titleHeight+titleEdgeTop+titleEdgeBottom;
mainlayout = new QGridLayout(widget(), 3, 3, 0);
mainlayout = new TQGridLayout(widget(), 3, 3, 0);
titleBar = new TitleBar(widget(), "titlebar");
titleBar->client = this;
titleBar->setMouseTracking(true);
borderTopLeft = new QWidget(widget(), "borderTopLeft", Qt::WNoAutoErase);
borderTopLeft = new TQWidget(widget(), "borderTopLeft", TQt::WNoAutoErase);
borderTopLeft->setMouseTracking(true);
borderTopRight = new QWidget(widget(), "borderTopRight", Qt::WNoAutoErase);
borderTopRight = new TQWidget(widget(), "borderTopRight", TQt::WNoAutoErase);
borderTopRight->setMouseTracking(true);
borderBottomLeft = new QWidget(widget(), "borderBottomLeft", Qt::WNoAutoErase);
borderBottomLeft = new TQWidget(widget(), "borderBottomLeft", TQt::WNoAutoErase);
borderBottomLeft->setMouseTracking(true);
borderBottomRight = new QWidget(widget(), "borderBottomRight", Qt::WNoAutoErase);
borderBottomRight = new TQWidget(widget(), "borderBottomRight", TQt::WNoAutoErase);
borderBottomRight->setMouseTracking(true);
borderLeft = new QWidget(widget(), "borderLeft", Qt::WNoAutoErase);
borderLeft = new TQWidget(widget(), "borderLeft", TQt::WNoAutoErase);
borderLeft->setMouseTracking(true);
borderRight = new QWidget(widget(), "borderRight", Qt::WNoAutoErase);
borderRight = new TQWidget(widget(), "borderRight", TQt::WNoAutoErase);
borderRight->setMouseTracking(true);
borderBottom = new QWidget(widget(), "borderBottom", Qt::WNoAutoErase);
borderBottom = new TQWidget(widget(), "borderBottom", TQt::WNoAutoErase);
borderBottom->setMouseTracking(true);
titleBar->setFixedHeight(titleBarHeight);
titleBar->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
titleBar->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed);
borderTopLeft->setFixedSize(borderWidth, titleBarHeight);
borderTopRight->setFixedSize(borderWidth, titleBarHeight);
borderLeft->setFixedWidth(borderWidth);
borderLeft->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
borderLeft->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding);
borderRight->setFixedWidth(borderWidth);
borderRight->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
borderRight->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding);
borderBottomLeft->setFixedSize(borderWidth, bottomBorderHeight);
borderBottomRight->setFixedSize(borderWidth, bottomBorderHeight);
borderBottom->setFixedHeight(bottomBorderHeight);
borderBottom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
borderBottom->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed);
mainlayout->addWidget(titleBar, 0,1);
mainlayout->addWidget(borderTopLeft, 0,0);
mainlayout->addWidget(borderTopRight, 0,2);
mainlayout->addWidget(borderLeft, 1,0);
mainlayout->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Expanding));
mainlayout->addItem(new TQSpacerItem(1, 1, TQSizePolicy::Expanding, TQSizePolicy::Expanding));
mainlayout->addWidget(borderRight, 1,2);
mainlayout->addWidget(borderBottomLeft, 2,0);
@ -883,38 +883,38 @@ void DominoClient::updateMask()
clearMask();
return;
}
QRect r(widget()->rect());
TQRect r(widget()->rect());
QRegion mask(r.x()+5, r.y(), r.width()-10, r.height());
mask += QRect(r.x()+3, r.y()+1, r.width()-6, r.height()-2);
mask += QRect(r.x()+2, r.y()+2, r.width()-4, r.height()-4);
mask += QRect(r.x()+1, r.y()+3, r.width()-2, r.height()-6);
mask += QRect(r.x(), r.y()+5, r.width(), r.height()-10);
TQRegion mask(r.x()+5, r.y(), r.width()-10, r.height());
mask += TQRect(r.x()+3, r.y()+1, r.width()-6, r.height()-2);
mask += TQRect(r.x()+2, r.y()+2, r.width()-4, r.height()-4);
mask += TQRect(r.x()+1, r.y()+3, r.width()-2, r.height()-6);
mask += TQRect(r.x(), r.y()+5, r.width(), r.height()-10);
setMask(mask);
}
void DominoClient::updateCaption()
{
QRect r(titleBar->rect());
TQRect r(titleBar->rect());
QPixmap* titleBar_pix = new QPixmap(r.size());
QPainter painter(titleBar_pix);
TQPixmap* titleBar_pix = new TQPixmap(r.size());
TQPainter painter(titleBar_pix);
painter.drawTiledPixmap(0, 0, r.width(), r.height(), *titleBarPix);
int lw = buttonsLeftWidth()+3;
int rw = buttonsRightWidth();
painter.setFont(options()->font(true,false));
QFontMetrics fm = painter.fontMetrics();
TQFontMetrics fm = painter.fontMetrics();
int captionWidth = fm.width(caption());
int titleWidth = titleBar->width()-(lw+rw);
QRect re(titleWidth > captionWidth ? (titleWidth-captionWidth)/2+lw : lw, 0, titleWidth, r.height());
TQRect re(titleWidth > captionWidth ? (titleWidth-captionWidth)/2+lw : lw, 0, titleWidth, r.height());
painter.setClipRect(re);
painter.setPen(options()->color(KDecorationDefines::ColorFont, isActive()));
painter.drawText(QRect(lw, r.y(), r.width()-(rw+lw), r.height()), titleWidth > captionWidth ? Qt::AlignCenter : Qt::AlignLeft|Qt::AlignVCenter, caption());
painter.drawText(TQRect(lw, r.y(), r.width()-(rw+lw), r.height()), titleWidth > captionWidth ? TQt::AlignCenter : TQt::AlignLeft|TQt::AlignVCenter, caption());
painter.end();
titleBar->setErasePixmap(*titleBar_pix);
@ -931,10 +931,10 @@ void DominoClient::activeChange()
void DominoClient::iconChange()
{
if(menuButton) {
QPixmap pix(*buttonHidePix);
QPixmap icon = KDecoration::icon().pixmap(QIconSet::Small, QIconSet::Normal);
TQPixmap pix(*buttonHidePix);
TQPixmap icon = KDecoration::icon().pixmap(TQIconSet::Small, TQIconSet::Normal);
if(!icon.isNull())
bitBlt(&pix, 0, 0, &icon, 0, 0, -1, -1, Qt::CopyROP);
bitBlt(&pix, 0, 0, &icon, 0, 0, -1, -1, TQt::CopyROP);
menuButton->setErasePixmap(pix);
}
@ -982,7 +982,7 @@ void DominoClient::shadeChange()
}
void DominoClient::resize( const QSize& s )
void DominoClient::resize( const TQSize& s )
{
widget()->resize( s );
if(maximizeMode() == MaximizeFull && !options()->moveResizeMaximizedWindows()) {
@ -1004,7 +1004,7 @@ void DominoClient::resize( const QSize& s )
}
void DominoClient::resizeEvent( QResizeEvent* ev )
void DominoClient::resizeEvent( TQResizeEvent* ev )
{
if (!Domino_initialized || ev->size() == ev->oldSize())
@ -1018,45 +1018,45 @@ void DominoClient::updateWindowShape()
{
}
void DominoClient::showEvent(QShowEvent *)
void DominoClient::showEvent(TQShowEvent *)
{
}
void DominoClient::paintEvent( QPaintEvent* )
void DominoClient::paintEvent( TQPaintEvent* )
{
}
bool DominoClient::eventFilter(QObject*, QEvent* e)
bool DominoClient::eventFilter(TQObject*, TQEvent* e)
{
switch(e->type()) {
case QEvent::Resize:
resizeEvent(static_cast<QResizeEvent*>(e));
case TQEvent::Resize:
resizeEvent(static_cast<TQResizeEvent*>(e));
return true;
case QEvent::ApplicationPaletteChange:
case TQEvent::ApplicationPaletteChange:
return false;
case QEvent::Paint:
paintEvent(static_cast<QPaintEvent*>(e));
case TQEvent::Paint:
paintEvent(static_cast<TQPaintEvent*>(e));
return true;
case QEvent::MouseButtonDblClick:
mouseDoubleClickEvent(static_cast<QMouseEvent*>(e));
case TQEvent::MouseButtonDblClick:
mouseDoubleClickEvent(static_cast<TQMouseEvent*>(e));
return true;
case QEvent::Wheel:
case TQEvent::Wheel:
if(titleBar->hasMouse() || isSetShade())
wheelEvent(static_cast<QWheelEvent*>(e));
wheelEvent(static_cast<TQWheelEvent*>(e));
return true;
case QEvent::MouseButtonPress:
processMousePressEvent(static_cast<QMouseEvent*>(e));
case TQEvent::MouseButtonPress:
processMousePressEvent(static_cast<TQMouseEvent*>(e));
return true;
case QEvent::Show:
case TQEvent::Show:
return true;
case QEvent::Enter:
case TQEvent::Enter:
updateButtons();
return true;
case QEvent::Leave:
case TQEvent::Leave:
if(globalMouseTracking && !showInactiveButtons) {
globalMouseTracking = false;
qApp->setGlobalMouseTracking( false );
qApp->removeEventFilter(titleBar);
tqApp->setGlobalMouseTracking( false );
tqApp->removeEventFilter(titleBar);
titleBarMouseOver = false;
}
updateButtons();
@ -1068,13 +1068,13 @@ bool DominoClient::eventFilter(QObject*, QEvent* e)
}
void TitleBar::enterEvent(QEvent*)
void TitleBar::enterEvent(TQEvent*)
{
if(!client->isActive() && !showInactiveButtons) {
if(!client->globalMouseTracking) {
client->globalMouseTracking = true;
qApp->setGlobalMouseTracking( true );
qApp->installEventFilter(this);
tqApp->setGlobalMouseTracking( true );
tqApp->installEventFilter(this);
client->titleBarMouseOver = true;
client->updateButtons();
}
@ -1082,11 +1082,11 @@ void TitleBar::enterEvent(QEvent*)
}
bool TitleBar::eventFilter(QObject*o, QEvent* e) {
bool TitleBar::eventFilter(TQObject*o, TQEvent* e) {
if(e->type() == QEvent::MouseMove && !showInactiveButtons && !client->isActive()) {
QPoint pos = ((QMouseEvent*)e)->pos();
if((dynamic_cast<QWidget*>(o) && geometry().contains(pos)) || dynamic_cast<QButton*>(o)) {
if(e->type() == TQEvent::MouseMove && !showInactiveButtons && !client->isActive()) {
TQPoint pos = ((TQMouseEvent*)e)->pos();
if((dynamic_cast<TQWidget*>(o) && geometry().contains(pos)) || dynamic_cast<TQButton*>(o)) {
client->titleBarMouseOver = true;
}
else {
@ -1101,16 +1101,16 @@ bool TitleBar::eventFilter(QObject*o, QEvent* e) {
/////////////
void renderGradient(QPainter *painter, QRect &rect,
QColor &c1, QColor &c2, const char* /*name*/)
void renderGradient(TQPainter *painter, TQRect &rect,
TQColor &c1, TQColor &c2, const char* /*name*/)
{
if((rect.width() <= 0)||(rect.height() <= 0))
return;
QPixmap *result;
TQPixmap *result;
result = new QPixmap(10, rect.height());
QPainter p(result);
result = new TQPixmap(10, rect.height());
TQPainter p(result);
int r_h = result->rect().height();
int r_x, r_y, r_x2, r_y2;
@ -1138,7 +1138,7 @@ void renderGradient(QPainter *painter, QRect &rect,
rl += rdelta;
gl += gdelta;
bl += bdelta;
p.setPen(QColor(rl>>16, gl>>16, bl>>16));
p.setPen(TQColor(rl>>16, gl>>16, bl>>16));
p.drawLine(r_x, r_y+y, r_x2, r_y+y);
}
p.end();
@ -1149,34 +1149,34 @@ void renderGradient(QPainter *painter, QRect &rect,
}
QColor alphaBlendColors(const QColor &bgColor, const QColor &fgColor, const int a)
TQColor alphaBlendColors(const TQColor &bgColor, const TQColor &fgColor, const int a)
{
QRgb rgb = bgColor.rgb();
QRgb rgb_b = fgColor.rgb();
TQRgb rgb = bgColor.rgb();
TQRgb rgb_b = fgColor.rgb();
int alpha = a;
if(alpha>255) alpha = 255;
if(alpha<0) alpha = 0;
int inv_alpha = 255 - alpha;
QColor result = QColor( qRgb(qRed(rgb_b)*inv_alpha/255 + qRed(rgb)*alpha/255,
qGreen(rgb_b)*inv_alpha/255 + qGreen(rgb)*alpha/255,
qBlue(rgb_b)*inv_alpha/255 + qBlue(rgb)*alpha/255) );
TQColor result = TQColor( tqRgb(tqRed(rgb_b)*inv_alpha/255 + tqRed(rgb)*alpha/255,
tqGreen(rgb_b)*inv_alpha/255 + tqGreen(rgb)*alpha/255,
tqBlue(rgb_b)*inv_alpha/255 + tqBlue(rgb)*alpha/255) );
return result;
}
QImage tintImage(const QImage &img, const QColor &tintColor) {
TQImage tintImage(const TQImage &img, const TQColor &tintColor) {
QImage *result = new QImage(img.width(), img.height(), 32, 0, QImage::IgnoreEndian);
TQImage *result = new TQImage(img.width(), img.height(), 32, 0, TQImage::IgnoreEndian);
unsigned int *data = (unsigned int*) img.bits();
unsigned int *resultData = (unsigned int*) result->bits();
result->setAlphaBuffer( true );
int alpha;
int total = img.width()*img.height();
for ( int current = 0 ; current < total ; ++current ) {
alpha = qAlpha( data[ current ] );
resultData[ current ] = qRgba( tintColor.red(), tintColor.green(), tintColor.blue(), alpha );
alpha = tqAlpha( data[ current ] );
resultData[ current ] = tqRgba( tintColor.red(), tintColor.green(), tintColor.blue(), alpha );
}
return *result;
}

@ -25,14 +25,14 @@
#include <kcommondecoration.h>
#include <kdecorationfactory.h>
#include <qlayout.h>
#include <tqlayout.h>
namespace Domino {
class DominoClient;
class TitleBar;
class DominoHandler: public QObject, public KDecorationFactory
class DominoHandler: public TQObject, public KDecorationFactory
{
public:
DominoHandler();
@ -41,16 +41,16 @@ class DominoHandler: public QObject, public KDecorationFactory
bool reset( unsigned long changed );
virtual bool supports( Ability ability );
QColor buttonContourColor;
QColor buttonMouseOverContourColor;
QColor buttonPressedContourColor;
TQColor buttonContourColor;
TQColor buttonMouseOverContourColor;
TQColor buttonPressedContourColor;
bool customButtonColor;
QColor buttonColor;
TQColor buttonColor;
bool customButtonIconColor;
QColor buttonIconColor;
TQColor buttonIconColor;
bool customBorderColor;
QColor borderColor;
TQColor borderColor;
bool darkLines;
private:
@ -70,10 +70,10 @@ class DominoButton : public KCommonDecorationButton
void reset(unsigned long changed);
protected:
void enterEvent(QEvent *);
void leaveEvent(QEvent *);
void drawButton(QPainter *p);
void drawButtonLabel(QPainter*) {;}
void enterEvent(TQEvent *);
void leaveEvent(TQEvent *);
void drawButton(TQPainter *p);
void drawButtonLabel(TQPainter*) {;}
bool isMouseOver;
DominoClient* client;
@ -87,9 +87,9 @@ class DominoClient : public KCommonDecoration
DominoClient( KDecorationBridge* b, KDecorationFactory* f );
~DominoClient();
virtual QString visibleName() const;
virtual QString defaultButtonsLeft() const;
virtual QString defaultButtonsRight() const;
virtual TQString visibleName() const;
virtual TQString defaultButtonsLeft() const;
virtual TQString defaultButtonsRight() const;
virtual bool decorationBehaviour(DecorationBehaviour behaviour) const;
virtual int layoutMetric(LayoutMetric lm, bool respectWindowState = true, const KCommonDecorationButton * = 0) const;
virtual KCommonDecorationButton *createButton(ButtonType type);
@ -97,7 +97,7 @@ class DominoClient : public KCommonDecoration
void init();
void reset( unsigned long changed );
void resize( const QSize& s );
void resize( const TQSize& s );
void updateMask();
void updateWindowShape();
@ -107,15 +107,15 @@ class DominoClient : public KCommonDecoration
void iconChange();
TitleBar* titleBar;
QWidget* borderTopLeft;
QWidget* borderTopRight;
QWidget* borderBottomLeft;
QWidget* borderBottomRight;
QWidget* borderLeft;
QWidget* borderRight;
QWidget* borderBottom;
QGridLayout* mainlayout;
QButton* menuButton;
TQWidget* borderTopLeft;
TQWidget* borderTopRight;
TQWidget* borderBottomLeft;
TQWidget* borderBottomRight;
TQWidget* borderLeft;
TQWidget* borderRight;
TQWidget* borderBottom;
TQGridLayout* mainlayout;
TQButton* menuButton;
void setPixmaps();
bool titleBarMouseOver;
@ -126,31 +126,31 @@ class DominoClient : public KCommonDecoration
void menuButtonDestroyed();
protected:
bool eventFilter(QObject*, QEvent*);
void paintEvent(QPaintEvent*);
void resizeEvent(QResizeEvent*);
void showEvent(QShowEvent*);
bool eventFilter(TQObject*, TQEvent*);
void paintEvent(TQPaintEvent*);
void resizeEvent(TQResizeEvent*);
void showEvent(TQShowEvent*);
private:
void createLayout();
};
class TitleBar : public QWidget
class TitleBar : public TQWidget
{
public:
TitleBar(QWidget* parent=0, const char* name=0) : QWidget(parent, name) {}
void enterEvent(QEvent * e);
bool eventFilter(QObject*, QEvent*);
TitleBar(TQWidget* parent=0, const char* name=0) : TQWidget(parent, name) {}
void enterEvent(TQEvent * e);
bool eventFilter(TQObject*, TQEvent*);
DominoClient* client;
};
void renderGradient(QPainter *painter, QRect &rect,
QColor &c1, QColor &c2, const char* name = 0);
QColor alphaBlendColors(const QColor &backgroundColor, const QColor &foregroundColor, const int alpha);
QImage tintImage(const QImage &img, const QColor &tintColor);
void renderGradient(TQPainter *painter, TQRect &rect,
TQColor &c1, TQColor &c2, const char* name = 0);
TQColor alphaBlendColors(const TQColor &backgroundColor, const TQColor &foregroundColor, const int alpha);
TQImage tintImage(const TQImage &img, const TQColor &tintColor);
}
#endif

@ -18,35 +18,35 @@
#ifndef _QEMBED_1804289383
#define _QEMBED_1804289383
#include <qimage.h>
#include <qdict.h>
static const QRgb arrow_down_small_data[] = {
#include <tqimage.h>
#include <tqdict.h>
static const TQRgb arrow_down_small_data[] = {
0x2d000000,0x96000000,0x96000000,0x96000000,0x2e000000,0x1000000,0x79000000,0x99000000,0x7a000000,0x1000000,0x0,0x29000000,0x99000000,0x2b000000,
0x0,0x0,0x0,0x4f000000,0x0,0x0
};
/* Generated by qembed */
static const QRgb btn17H_data[] = {
static const TQRgb btn17H_data[] = {
0x0,0x0,0x0,0x0,0xc6000000,0xc6000000,0xc6000000,0xc6000000,0x23000000,0x23000000,0x23000000,0x23000000,0x23000000,0x23000000,
0x23000000,0x23000000,0xc6000000,0xc6000000,0xc6000000,0xc6000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
};
static const QRgb btn17HRaisedShadow_data[] = {
static const TQRgb btn17HRaisedShadow_data[] = {
0x1e000000,0x1e000000,0x1e000000,0x1e000000,0x15000000,0x15000000,0x15000000,0x15000000,0x1effffff,0x1effffff,0x1effffff,0x1effffff,0x18ffffff,0x18ffffff,
0x18ffffff,0x18ffffff,0x2000000,0x2000000,0x2000000,0x2000000,0x2d000000,0x2d000000,0x2d000000,0x2d000000,0x11000000,0x11000000,0x11000000,0x11000000
};
static const QRgb btn17HRaisedShadowPressed_data[] = {
static const TQRgb btn17HRaisedShadowPressed_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x18ffffff,0x18ffffff,0x18ffffff,0x18ffffff,0x18ffffff,0x18ffffff,
0x18ffffff,0x18ffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
};
static const QRgb btn17HSunkenShadow_data[] = {
static const TQRgb btn17HSunkenShadow_data[] = {
0x1c000000,0x1c000000,0x1c000000,0x1c000000,0x15000000,0x15000000,0x15000000,0x15000000,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x4effffff,0x4effffff,0x4effffff,0x4effffff,0x1effffff,0x1effffff,0x1effffff,0x1effffff
};
static const QRgb btn17_data[] = {
static const TQRgb btn17_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x2000000,0x2b000000,0x79000000,0xb3000000,0xb3000000,0x79000000,0x29000000,0x2000000,0x0,0x0,0x0,0x2000000,0x46000000,0xb9000000,
0x76000000,0x33000000,0x33000000,0x77000000,0xb9000000,0x46000000,0x2000000,0x0,0x0,0x20000000,0xb5000000,0x49000000,0x4000000,0x1000000,
@ -61,7 +61,7 @@ static const QRgb btn17_data[] = {
0x0,0x0
};
static const QRgb btn17RaisedShadow3_data[] = {
static const TQRgb btn17RaisedShadow3_data[] = {
0x0,0x0,0x0,0x2000000,0x5000000,0xb000000,0xb000000,0x5000000,0x2000000,0x0,0x0,0x0,0x0,0x0,
0x3000000,0xd000000,0x15000000,0x10000000,0x10000000,0x15000000,0xd000000,0x3000000,0x0,0x0,0x0,0x3000000,0xe000000,0xf000000,
0x26f8f8f8,0x1dffffff,0x1effffff,0x26f8f8f8,0xf000000,0xe000000,0x3000000,0x0,0x0,0x8000000,0xe000000,0x1dffffff,0x17ffffff,0x8ffffff,
@ -76,7 +76,7 @@ static const QRgb btn17RaisedShadow3_data[] = {
0x0,0x0
};
static const QRgb btn17RaisedShadowPressed_data[] = {
static const TQRgb btn17RaisedShadowPressed_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x25ffffff,0x1dffffff,0x1effffff,0x25ffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1dffffff,0x17ffffff,0x8ffffff,
@ -91,7 +91,7 @@ static const QRgb btn17RaisedShadowPressed_data[] = {
0x0,0x0
};
static const QRgb btn17SunkenShadow_data[] = {
static const TQRgb btn17SunkenShadow_data[] = {
0x0,0x0,0x0,0x4000000,0xb000000,0x15000000,0x15000000,0xb000000,0x4000000,0x0,0x0,0x0,0x0,0x0,
0x6000000,0x16000000,0x25000000,0x1c000000,0x1c000000,0x25000000,0x16000000,0x6000000,0x0,0x0,0x1ffffff,0x4000000,0x16000000,0x1b000000,
0x3000000,0x0,0x0,0x3000000,0x1b000000,0x16000000,0x4000000,0x1ffffff,0x6d4d4d4,0xb000000,0x18000000,0x0,0x0,0x0,
@ -106,32 +106,32 @@ static const QRgb btn17SunkenShadow_data[] = {
0x1ffffff,0x0
};
static const QRgb btn17V_data[] = {
static const TQRgb btn17V_data[] = {
0x0,0xc6000000,0x23000000,0x23000000,0xc6000000,0x0,0x0,0xc6000000,0x23000000,0x23000000,0xc6000000,0x0,0x0,0xc6000000,
0x23000000,0x23000000,0xc6000000,0x0,0x0,0xc6000000,0x23000000,0x23000000,0xc6000000,0x0
};
static const QRgb btn17VRaisedShadow_data[] = {
static const TQRgb btn17VRaisedShadow_data[] = {
0x16000000,0x0,0x18ffffff,0x18ffffff,0x0,0x16000000,0x16000000,0x0,0x18ffffff,0x18ffffff,0x0,0x16000000,0x16000000,0x0,
0x18ffffff,0x18ffffff,0x0,0x16000000,0x16000000,0x0,0x18ffffff,0x18ffffff,0x0,0x16000000
};
static const QRgb btn17VRaisedShadowPressed_data[] = {
static const TQRgb btn17VRaisedShadowPressed_data[] = {
0x0,0x0,0x18ffffff,0x18ffffff,0x0,0x0,0x0,0x0,0x18ffffff,0x18ffffff,0x0,0x0,0x0,0x0,
0x18ffffff,0x18ffffff,0x0,0x0,0x0,0x0,0x18ffffff,0x18ffffff,0x0,0x0
};
static const QRgb btn17VSunkenShadow_data[] = {
static const TQRgb btn17VSunkenShadow_data[] = {
0x22d9d9d9,0x0,0x0,0x0,0x0,0x22d9d9d9,0x22d9d9d9,0x0,0x0,0x0,0x0,0x22d9d9d9,0x22d9d9d9,0x0,
0x0,0x0,0x0,0x22d9d9d9,0x22d9d9d9,0x0,0x0,0x0,0x0,0x22d9d9d9
};
static const QRgb btnPressedShadowHLines_data[] = {
static const TQRgb btnPressedShadowHLines_data[] = {
0x81000000,0x81000000,0x81000000,0x81000000,0x4a000000,0x4a000000,0x4a000000,0x4a000000,0x1f000000,0x1f000000,0x1f000000,0x1f000000,0x8000000,0x8000000,
0x8000000,0x8000000,0x1e000000,0x1e000000,0x1e000000,0x1e000000
};
static const QRgb btnPressedShadowRectangular_data[] = {
static const TQRgb btnPressedShadowRectangular_data[] = {
0x9c000000,0x8c000000,0x84000000,0x81000000,0x81000000,0x81000000,0x81000000,0x84000000,0x8c000000,0x9c000000,0x7a000000,0x5e000000,0x50000000,0x4b000000,
0x4a000000,0x4a000000,0x4b000000,0x4f000000,0x5e000000,0x7a000000,0x5e000000,0x3a000000,0x26000000,0x20000000,0x1f000000,0x1f000000,0x20000000,0x26000000,
0x39000000,0x5e000000,0x50000000,0x26000000,0x11000000,0x0,0x0,0x0,0x0,0x11000000,0x26000000,0x50000000,0x4b000000,0x20000000,
@ -141,7 +141,7 @@ static const QRgb btnPressedShadowRectangular_data[] = {
0x1f000000,0x26000000,0x39000000,0x5e000000,0x0,0x0
};
static const QRgb btnPressedShadowRound_data[] = {
static const TQRgb btnPressedShadowRound_data[] = {
0x0,0x0,0x53000000,0x72000000,0x82000000,0x82000000,0x72000000,0x53000000,0x0,0x0,0x0,0x68000000,0x79000000,0x62000000,
0x54000000,0x54000000,0x62000000,0x78000000,0x68000000,0x0,0x33000000,0x6e000000,0x4d000000,0x35000000,0x28000000,0x27000000,0x35000000,0x4d000000,
0x6e000000,0x33000000,0x5a000000,0x4d000000,0x2b000000,0x17000000,0x7000000,0x7000000,0x17000000,0x2b000000,0x4d000000,0x5a000000,0x55000000,0x2e000000,
@ -151,12 +151,12 @@ static const QRgb btnPressedShadowRound_data[] = {
0x27000000,0x1b000000,0x0,0x0,0x0,0x0
};
static const QRgb btnPressedShadowVLines_data[] = {
static const TQRgb btnPressedShadowVLines_data[] = {
0x4a000000,0x1f000000,0x9000000,0x8000000,0x1e000000,0x4a000000,0x4a000000,0x1f000000,0x9000000,0x8000000,0x1e000000,0x4a000000,0x4a000000,0x1f000000,
0x9000000,0x8000000,0x1e000000,0x4a000000,0x4a000000,0x1f000000,0x9000000,0x8000000,0x1e000000,0x4a000000
};
static const QRgb checkbox2inside_data[] = {
static const TQRgb checkbox2inside_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
@ -184,7 +184,7 @@ static const QRgb checkbox2inside_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0
};
static const QRgb checkbox2pressed_data[] = {
static const TQRgb checkbox2pressed_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
@ -212,7 +212,7 @@ static const QRgb checkbox2pressed_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0
};
static const QRgb checkbox2rect_data[] = {
static const TQRgb checkbox2rect_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1a000000,0x6a000000,0xba000000,0xc8000000,
@ -240,7 +240,7 @@ static const QRgb checkbox2rect_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0
};
static const QRgb checkbox2shadow_data[] = {
static const TQRgb checkbox2shadow_data[] = {
0x0,0x0,0x0,0x2000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,0x4000000,
0x2000000,0x0,0x0,0x0,0x0,0x0,0x4000000,0xf222222,0x17212121,0x191e1e1e,0x191e1e1e,0x1a272727,0x1a272727,0x1a272727,
0x1a272727,0x1a272727,0x191e1e1e,0x17212121,0xf222222,0x4000000,0x0,0x0,0x0,0x3555555,0x13505050,0x106f6f6f,0xfefefe,0xffffff,
@ -268,7 +268,7 @@ static const QRgb checkbox2shadow_data[] = {
0x3ffffff,0x3ffffff,0x2ffffff,0xffffff,0x0,0x0
};
static const QRgb checkListExclusiveIndicator_data[] = {
static const TQRgb checkListExclusiveIndicator_data[] = {
0x0,0x0,0x3000000,0x28000000,0x76000000,0x9c000000,0xa3000000,0x9c000000,0x76000000,0x28000000,0x3000000,0x0,0x0,0x0,
0x4000000,0x61000000,0xad000000,0x71000000,0x42000000,0x31000000,0x42000000,0x71000000,0xad000000,0x61000000,0x4000000,0x0,0x3000000,0x65000000,
0xaf000000,0x20000000,0x4000000,0x1000000,0x1000000,0x1000000,0x4000000,0x20000000,0xaf000000,0x65000000,0x3000000,0x29000000,0xb1000000,0x21000000,
@ -284,7 +284,7 @@ static const QRgb checkListExclusiveIndicator_data[] = {
0x0
};
static const QRgb checkmark_data[] = {
static const TQRgb checkmark_data[] = {
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,
@ -307,7 +307,7 @@ static const QRgb checkmark_data[] = {
0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff
};
static const QRgb dockBack_data[] = {
static const TQRgb dockBack_data[] = {
0x0,0x0,0x1ffffff,0x360c0c0c,0x65030303,0x79010101,0x79010101,0x65030303,0x360c0c0c,0x1ffffff,0x0,0x0,0x0,0x1ffffff,
0x4d070707,0x6f000000,0x60000000,0x59000000,0x59000000,0x60000000,0x6f000000,0x4d070707,0x1bfbfbf,0x0,0x1ffffff,0x36141414,0x68000000,0x55000000,
0x4f000000,0x3d5a5a5a,0x3c5c5c5c,0x4f000000,0x55000000,0x68000000,0x36141414,0x1ffffff,0x4ffffff,0x5a0b0b0b,0x55000000,0x4d000000,0x4c000000,0x3c606060,
@ -331,7 +331,7 @@ static const QRgb dockBack_data[] = {
0x9ffffff,0xbffffff,0xbffffff,0x9ffffff,0x4ffffff,0x1ffffff,0x0,0x0
};
static const QRgb dockClose_data[] = {
static const TQRgb dockClose_data[] = {
0x0,0x0,0x1ffffff,0x360c0c0c,0x65030303,0x79010101,0x79010101,0x65030303,0x360c0c0c,0x1ffffff,0x0,0x0,0x0,0x1ffffff,
0x4d070707,0x6f000000,0x60000000,0x59000000,0x59000000,0x60000000,0x6f000000,0x4d070707,0x1bfbfbf,0x0,0x1ffffff,0x36141414,0x68000000,0x3c7a7a7a,
0x3f131313,0x4d000000,0x4d000000,0x3f131313,0x3e8a8a8a,0x68000000,0x36141414,0x1ffffff,0x4ffffff,0x5a0b0b0b,0x55000000,0x434a4a4a,0x23f4f4f4,0x32141414,
@ -355,7 +355,7 @@ static const QRgb dockClose_data[] = {
0x9ffffff,0xbffffff,0xbffffff,0x9ffffff,0x4ffffff,0x1ffffff,0x0,0x0
};
static const QRgb dockStay_data[] = {
static const TQRgb dockStay_data[] = {
0x0,0x0,0x1ffffff,0x360c0c0c,0x65030303,0x79010101,0x79010101,0x65030303,0x360c0c0c,0x1ffffff,0x0,0x0,0x0,0x1ffffff,
0x4d070707,0x6f000000,0x60000000,0x59000000,0x59000000,0x60000000,0x6f000000,0x4d070707,0x1bfbfbf,0x0,0x1ffffff,0x36141414,0x68000000,0x403b3b3b,
0x3fa2a2a2,0x44b3b3b3,0x44b2b2b2,0x3fa2a2a2,0x403b3b3b,0x68000000,0x36141414,0x1ffffff,0x4ffffff,0x5a0b0b0b,0x55000000,0x277b7b7b,0x3d000000,0x4c000000,
@ -379,7 +379,7 @@ static const QRgb dockStay_data[] = {
0x9ffffff,0xbffffff,0xbffffff,0x9ffffff,0x4ffffff,0x1ffffff,0x0,0x0
};
static const QRgb dockToDesktop2_data[] = {
static const TQRgb dockToDesktop2_data[] = {
0x0,0x0,0x1ffffff,0x360c0c0c,0x64030303,0x79010101,0x79010101,0x64030303,0x360c0c0c,0x1ffffff,0x0,0x0,0x0,0x1ffffff,
0x4d070707,0x6f000000,0x60000000,0x59000000,0x59000000,0x60000000,0x6f000000,0x4d070707,0x1bfbfbf,0x0,0x1ffffff,0x36151515,0x68000000,0x55000000,
0x4f000000,0x32707070,0x2d8d8d8d,0x30868686,0x3b5c5c5c,0x68000000,0x36151515,0x1ffffff,0x4ffffff,0x5a0c0c0c,0x55000000,0x4d000000,0x4c000000,0x2a8b8b8b,
@ -403,13 +403,13 @@ static const QRgb dockToDesktop2_data[] = {
0x9ffffff,0xbffffff,0xbffffff,0x9ffffff,0x4ffffff,0x1ffffff,0x0,0x0
};
static const QRgb focusRectEdges_data[] = {
static const TQRgb focusRectEdges_data[] = {
0x0,0x3b000000,0xbb000000,0xbb000000,0x3b000000,0x0,0x33000000,0xc1000000,0x20000000,0x20000000,0xc1000000,0x33000000,0xbb000000,0x17000000,
0x0,0x0,0x17000000,0xbb000000,0xbb000000,0x17000000,0x0,0x0,0x17000000,0xbb000000,0x33000000,0xc1000000,0x20000000,0x20000000,
0xc1000000,0x33000000,0x0,0x3b000000,0xbb000000,0xbb000000,0x3b000000,0x0
};
static const QRgb groupBoxMask_small_data[] = {
static const TQRgb groupBoxMask_small_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x1bff0000,0x88ff0000,0xd1ff0000,0xffff0000,0xffff0000,0xd1ff0000,0x88ff0000,0x1bff0000,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x64ff0000,0xf6ff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,
@ -431,7 +431,7 @@ static const QRgb groupBoxMask_small_data[] = {
0x0,0x0,0x0,0x0
};
static const QRgb groupBox_small_data[] = {
static const TQRgb groupBox_small_data[] = {
0xffffff,0xffffff,0xffffff,0xffffff,0x3ffffff,0xbffffff,0x13ffffff,0x17ffffff,0x17ffffff,0x13ffffff,0xbffffff,0x3ffffff,0xffffff,0xffffff,
0xffffff,0xffffff,0xffffff,0xffffff,0x1ffffff,0xbffffff,0x27b8b8b8,0x464d4d4d,0x4e212121,0x48000000,0x48000000,0x4e212121,0x464d4d4d,0x27b8b8b8,
0xbffffff,0x1ffffff,0xffffff,0xffffff,0xffffff,0x1ffffff,0xfffffff,0x40707070,0x44080808,0x37000000,0x29000000,0x21000000,0x20000000,0x28000000,
@ -453,7 +453,7 @@ static const QRgb groupBox_small_data[] = {
0x3ffffff,0xffffff,0xffffff,0xffffff
};
static const QRgb lineedit4edges_data[] = {
static const TQRgb lineedit4edges_data[] = {
0x0,0x1e121212,0x56141414,0x7a181818,0x7a181818,0x56141414,0x1e121212,0x0,0x1e000000,0x6c171717,0x51151515,0x3a131313,0x3a131313,0x51151515,
0x6c171717,0x1e000000,0x4a000000,0x3f000000,0x1b111111,0xb111111,0xb111111,0x1b111111,0x3f000000,0x4a000000,0x4e000000,0x1d000000,0x5101010,0x20a0a0a,
0x20a0a0a,0x5101010,0x1c000000,0x4e000000,0x4f000000,0xc000000,0x0,0x0,0x0,0x0,0xa000000,0x4f000000,0x36000000,0x14000000,
@ -461,7 +461,7 @@ static const QRgb lineedit4edges_data[] = {
0x0,0x11000000,0x1d000000,0x1f000000,0x1f000000,0x1d000000,0x11000000,0x0
};
static const QRgb lineedit4inside_data[] = {
static const TQRgb lineedit4inside_data[] = {
0x0,0x0,0x59ffffff,0xbfffffff,0xbfffffff,0x59ffffff,0x0,0x0,0x0,0x8cffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,
0x8cffffff,0x0,0x59ffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0x59ffffff,0xbfffffff,0xffffffff,0xffffffff,0xffffffff,
0xffffffff,0xffffffff,0xffffffff,0xbfffffff,0xbfffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xbfffffff,0x59ffffff,0xffffffff,
@ -469,25 +469,25 @@ static const QRgb lineedit4inside_data[] = {
0x0,0x0,0x59ffffff,0xbfffffff,0xbfffffff,0x59ffffff,0x0,0x0
};
static const QRgb lineEditBtnEdges_d_data[] = {
static const TQRgb lineEditBtnEdges_d_data[] = {
0x0,0x66ededed,0xbeededed,0xbeededed,0x66ededed,0x0,0x66ededed,0xf1ededed,0xffededed,0xffededed,0xf1ededed,0x66ededed,0xbeededed,0xffededed,
0xffededed,0xffededed,0xffededed,0xbeededed,0xbeededed,0xffededed,0xffededed,0xffededed,0xffededed,0xbeededed,0x66ededed,0xf1ededed,0xffededed,0xffededed,
0xf1ededed,0x66ededed,0x0,0x66ededed,0xbeededed,0xbeededed,0x66ededed,0x0
};
static const QRgb lineEditBtnEdges_data[] = {
static const TQRgb lineEditBtnEdges_data[] = {
0x0,0x2fededed,0xafededed,0xafededed,0x2fededed,0x0,0x2fededed,0xefededed,0xffededed,0xffededed,0xefededed,0x2fededed,0xafededed,0xffededed,
0xffededed,0xffededed,0xffededed,0xafededed,0xafededed,0xffededed,0xffededed,0xffededed,0xffededed,0xafededed,0x2fededed,0xefededed,0xffededed,0xffededed,
0xefededed,0x2fededed,0x0,0x2fededed,0xafededed,0xafededed,0x2fededed,0x0
};
static const QRgb lineEditBtnShadow_data[] = {
static const TQRgb lineEditBtnShadow_data[] = {
0x0,0x1d000000,0x25000000,0x25000000,0x1d000000,0x0,0x1d000000,0x2b000000,0x1e000000,0x1e000000,0x2b000000,0x1d000000,0x18000000,0x16000000,
0xc000000,0xc000000,0x16000000,0x18000000,0x13000000,0xa000000,0x2000000,0x2000000,0xa000000,0x13000000,0x1a000000,0xf000000,0x6000000,0x6000000,
0xf000000,0x1a000000,0x0,0x19000000,0xb000000,0xb000000,0x19000000,0x0
};
static const QRgb lveTriangular_data[] = {
static const TQRgb lveTriangular_data[] = {
0x4c000000,0xb000000,0x0,0x0,0x0,0x0,0x0,0x7c000000,0x77000000,0x31000000,0x0,0x0,0x0,0x0,
0x7c000000,0x7f000000,0x7f000000,0x60000000,0xd000000,0x0,0x0,0x7c000000,0x7f000000,0x7f000000,0x7f000000,0x7d000000,0x41000000,0x1000000,
0x7c000000,0x7f000000,0x7f000000,0x7f000000,0x7f000000,0x7f000000,0x49000000,0x7c000000,0x7f000000,0x7f000000,0x7f000000,0x7d000000,0x41000000,0x1000000,
@ -495,13 +495,13 @@ static const QRgb lveTriangular_data[] = {
0x4c000000,0xb000000,0x0,0x0,0x0,0x0,0x0
};
static const QRgb menuItem_data[] = {
static const TQRgb menuItem_data[] = {
0x0,0x42000000,0xb3000000,0xc5000000,0x5c000000,0x3000000,0x36000000,0xff000000,0xff000000,0xff000000,0xff000000,0x62000000,0xa0000000,0xff000000,
0xff000000,0xff000000,0xff000000,0xcc000000,0x92000000,0xff000000,0xff000000,0xff000000,0xff000000,0xbe000000,0x28000000,0xff000000,0xff000000,0xff000000,
0xff000000,0x52000000,0x0,0x24000000,0x92000000,0xa4000000,0x3b000000,0x0
};
static const QRgb popup5_data[] = {
static const TQRgb popup5_data[] = {
0x0,0x0,0x3a575757,0xaf575757,0xfa575757,0xfa575757,0xaf575757,0x3a575757,0x0,0x0,0x0,0x5a575757,0xec575757,0x53575757,
0x4575757,0x4575757,0x53575757,0xec575757,0x5a575757,0x0,0x22575757,0xeb575757,0x1c575757,0x0,0x0,0x0,0x0,0x1c575757,
0xeb575757,0x22575757,0x9c575757,0x74575757,0x0,0x0,0x0,0x0,0x0,0x0,0x74575757,0x9c575757,0xd1575757,0x2c575757,
@ -512,12 +512,12 @@ static const QRgb popup5_data[] = {
0x0,0x0
};
static const QRgb progressShadow2_data[] = {
static const TQRgb progressShadow2_data[] = {
0xc6000000,0xb2000000,0xb2000000,0xc6000000,0x8d000000,0x65000000,0x65000000,0x8d000000,0x65000000,0x2f000000,0x2f000000,0x65000000,0x65000000,0x2e000000,
0x2e000000,0x64000000
};
static const QRgb progressTile_data[] = {
static const TQRgb progressTile_data[] = {
0x6000000,0xa000000,0x10000000,0x16000000,0x1b000000,0x20000000,0x23000000,0x25000000,0x27000000,0x27000000,0x27000000,0x23000000,0x1f000000,0x19000000,
0x12000000,0xc000000,0x7000000,0x3000000,0x2000000,0x3000000,0x3000000,0x6000000,0xa000000,0x10000000,0x16000000,0x1b000000,0x20000000,0x23000000,
0x25000000,0x27000000,0x27000000,0x27000000,0x23000000,0x1f000000,0x19000000,0x12000000,0xc000000,0x7000000,0x3000000,0x2000000,0x2000000,0x3000000,
@ -549,7 +549,7 @@ static const QRgb progressTile_data[] = {
0x19000000,0x12000000,0xc000000,0x7000000,0x3000000,0x2000000,0x3000000,0x6000000
};
static const QRgb radio3circle_data[] = {
static const TQRgb radio3circle_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2000000,0x8000000,0xd000000,0xd000000,0xd000000,0x8000000,
0x2000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9000000,0x38000000,0xa4000000,0xb9000000,
@ -573,7 +573,7 @@ static const QRgb radio3circle_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
};
static const QRgb radio3inside_data[] = {
static const TQRgb radio3inside_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffffff,0xffffff,0xffffff,0xffffff,0x8ffffff,0x26ffffff,
@ -597,7 +597,7 @@ static const QRgb radio3inside_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
};
static const QRgb radio3pressed_data[] = {
static const TQRgb radio3pressed_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
@ -621,7 +621,7 @@ static const QRgb radio3pressed_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
};
static const QRgb radio3shadow_data[] = {
static const TQRgb radio3shadow_data[] = {
0x0,0x0,0x0,0x0,0x1000000,0x3000000,0x7000000,0xa000000,0xc000000,0xa000000,0x7000000,0x3000000,0x1000000,0x0,
0x0,0x0,0x0,0xffffff,0xffffff,0xffffff,0x2000000,0x8000000,0x10000000,0x1b090909,0x24151515,0x26141414,0x24151515,0x1b090909,
0x11000000,0x8000000,0x2000000,0xffffff,0xffffff,0xffffff,0xffffff,0xffffff,0x2000000,0xa000000,0x1b1c1c1c,0x2e2c2c2c,0xdffffff,0xbffffff,
@ -645,17 +645,17 @@ static const QRgb radio3shadow_data[] = {
0x21ffffff,0x1dffffff,0x14ffffff,0xaffffff,0x3ffffff,0xffffff,0xffffff,0xffffff,0xffffff
};
static const QRgb rb_dot2_data[] = {
static const TQRgb rb_dot2_data[] = {
0x221d1d1d,0x9f060606,0xcc010101,0x9f060606,0x221d1d1d,0xa2121212,0xd2010101,0xd2000000,0xd2010101,0xa2121212,0xd11f1f1f,0xd3060606,0xd2000000,0xd3060606,
0xd11f1f1f,0xac393939,0xd71e1e1e,0xd5121212,0xd71e1e1e,0xac393939,0x27404040,0xaf424242,0xd8434343,0xaf424242,0x27404040
};
static const QRgb rb_dot2_shadow_data[] = {
static const TQRgb rb_dot2_shadow_data[] = {
0x4fefefe,0x4ffffff,0x1ffffff,0x4ffffff,0x4fcfcfc,0xcfafafa,0x1ffffff,0x0,0x1ffffff,0xcfafafa,0x1afcfcfc,0x5ffffff,0x1bfbfbf,0x5ffffff,
0x1afcfcfc,0x27fdfdfd,0x1afcfcfc,0x10fafafa,0x1afcfcfc,0x27fdfdfd,0xafdfdfd,0x2efdfdfd,0x3afdfdfd,0x2efdfdfd,0xafdfdfd
};
static const QRgb scroll2BtnHContour2_data[] = {
static const TQRgb scroll2BtnHContour2_data[] = {
0xff000000,0xff000000,0xff000000,0xff000000,0xd5000000,0x78000000,0x40000000,0x11000000,0x0,0x0,0x11000000,0x40000000,0x78000000,0xd5000000,
0xff000000,0xff000000,0xff000000,0xff000000,0x23000000,0x23000000,0x331b1b1b,0x30000000,0x95000000,0x2c000000,0x1000000,0x0,0x0,0x0,
0x0,0x1000000,0x2c000000,0x95000000,0x30000000,0x331b1b1b,0x23000000,0x23000000,0x0,0xe000000,0x36000000,0xaa000000,0x2f000000,0x0,
@ -678,7 +678,7 @@ static const QRgb scroll2BtnHContour2_data[] = {
0xff000000,0xff000000,0xff000000,0xff000000
};
static const QRgb scroll2BtnHMask_data[] = {
static const TQRgb scroll2BtnHMask_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xb4ff0000,0x25ff0000,0x0,0x0,0x0,0x0,
0x0,0x0,0x25ff0000,0xb4ff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0x8dff0000,0x1ff0000,0x0,
@ -701,7 +701,7 @@ static const QRgb scroll2BtnHMask_data[] = {
0x0,0x0,0x0,0x0
};
static const QRgb scroll2BtnHShadow2_data[] = {
static const TQRgb scroll2BtnHShadow2_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x13000000,0x12000000,0x7000000,0x7000000,0x12000000,0x13000000,0x0,0x0,
0x0,0x0,0x0,0x0,0x17ffffff,0x17ffffff,0x12ffffff,0x19ffffff,0x16171717,0x24000000,0x17000000,0x7000000,0x2000000,0x2000000,
0x7000000,0x17000000,0x24000000,0x16171717,0x19ffffff,0x12ffffff,0x17ffffff,0x17ffffff,0x0,0xcffffff,0x19ffffff,0x170b0b0b,0x21000000,0x11000000,
@ -724,7 +724,7 @@ static const QRgb scroll2BtnHShadow2_data[] = {
0x0,0x0,0x0,0x0
};
static const QRgb scroll2BtnVContour2_data[] = {
static const TQRgb scroll2BtnVContour2_data[] = {
0xff000000,0x23000000,0x0,0x2000000,0x11000000,0x1d000000,0x23000000,0x28000000,0x23000000,0x1d000000,0x11000000,0x2000000,0x0,0x23000000,
0xff000000,0xff000000,0x23000000,0xe000000,0x25000000,0x55000000,0x8e000000,0xaf000000,0xb0000000,0xaf000000,0x8e000000,0x55000000,0x25000000,0xe000000,
0x23000000,0xff000000,0xff000000,0x331b1b1b,0x36000000,0xa1000000,0x7c000000,0x28000000,0x1000000,0x0,0x1000000,0x28000000,0x7c000000,0xa1000000,
@ -747,7 +747,7 @@ static const QRgb scroll2BtnVContour2_data[] = {
0x2000000,0x0,0x23000000,0xff000000
};
static const QRgb scroll2BtnVMask_data[] = {
static const TQRgb scroll2BtnVMask_data[] = {
0x0,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,
0x0,0x0,0xffff0000,0xffff0000,0xffff0000,0xfcff0000,0xbfff0000,0x88ff0000,0x76ff0000,0x88ff0000,0xbfff0000,0xfcff0000,0xffff0000,0xffff0000,
0xffff0000,0x0,0x0,0xffff0000,0xffff0000,0xb4ff0000,0x24ff0000,0x0,0x0,0x0,0x0,0x0,0x24ff0000,0xb4ff0000,
@ -770,7 +770,7 @@ static const QRgb scroll2BtnVMask_data[] = {
0xffff0000,0xffff0000,0xffff0000,0x0
};
static const QRgb scroll2BtnVShadow2_data[] = {
static const TQRgb scroll2BtnVShadow2_data[] = {
0x0,0x17ffffff,0x0,0x5ffffff,0xeffffff,0x17ffffff,0x1bffffff,0x1cffffff,0x1bffffff,0x17ffffff,0xeffffff,0x5ffffff,0x0,0x17ffffff,
0x0,0x0,0x17ffffff,0xcffffff,0x1bffffff,0x18ffffff,0x186a6a6a,0x1a000000,0x1e000000,0x1a000000,0x19666666,0x18ffffff,0x1bffffff,0xcffffff,
0x17ffffff,0x0,0x0,0x12ffffff,0x19ffffff,0x112d2d2d,0x24000000,0x20000000,0x19000000,0x17000000,0x19000000,0x20000000,0x24000000,0x122a2a2a,
@ -793,7 +793,7 @@ static const QRgb scroll2BtnVShadow2_data[] = {
0x5ffffff,0x0,0x17ffffff,0x0
};
static const QRgb scroll2SliderHContour_data[] = {
static const TQRgb scroll2SliderHContour_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x64000000,0x8f000000,0x8f000000,0x64000000,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x18000000,0x9b000000,0x7c000000,0x3e000000,0x3e000000,0x7c000000,0x9b000000,0x18000000,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1c000000,0xb2000000,0x44000000,0x1c000000,0xa000000,0xa000000,0x1c000000,
@ -814,7 +814,7 @@ static const QRgb scroll2SliderHContour_data[] = {
0x0,0x0
};
static const QRgb scroll2SliderHDockedContour_data[] = {
static const TQRgb scroll2SliderHDockedContour_data[] = {
0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,0xff000000,
0xff000000,0xff000000,0x23000000,0x23000000,0x23000000,0x2b000000,0x44121212,0x9c000000,0x7c000000,0x3e000000,0x3e000000,0x7c000000,0x9c000000,0x44121212,
0x2b000000,0x23000000,0x23000000,0x23000000,0x0,0x0,0xe000000,0x2f000000,0xb2000000,0x71000000,0x1c000000,0xa000000,0xa000000,0x1c000000,
@ -835,7 +835,7 @@ static const QRgb scroll2SliderHDockedContour_data[] = {
0xff000000,0xff000000
};
static const QRgb scroll2SliderHDockedShadow_data[] = {
static const TQRgb scroll2SliderHDockedShadow_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x17ffffff,0x17ffffff,0x17ffffff,0x17ffffff,0x11ffffff,0x16ffffff,0xbffffff,0x13ffffff,0x13ffffff,0xbffffff,0x16ffffff,0x11ffffff,
0x17ffffff,0x17ffffff,0x17ffffff,0x17ffffff,0x0,0x0,0xaffffff,0x19ffffff,0x18ffffff,0x17ffffff,0x15ffffff,0x7ffffff,0x7ffffff,0x15ffffff,
@ -856,7 +856,7 @@ static const QRgb scroll2SliderHDockedShadow_data[] = {
0x0,0x0
};
static const QRgb scroll2SliderHMask_data[] = {
static const TQRgb scroll2SliderHMask_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4bff0000,0xdaff0000,0xffff0000,0xffff0000,0xdaff0000,0x4bff0000,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x72ff0000,0xfeff0000,0xffff0000,0xffff0000,0xffff0000,0xffff0000,
@ -877,7 +877,7 @@ static const QRgb scroll2SliderHMask_data[] = {
0x0,0x0
};
static const QRgb scroll2SliderHShadow2_data[] = {
static const TQRgb scroll2SliderHShadow2_data[] = {
0x0,0x0,0x0,0x3000000,0xa000000,0x15000000,0x1f000000,0x17000000,0x17000000,0x1f000000,0x15000000,0xa000000,0x3000000,0x0,
0x0,0x0,0x0,0x0,0x3000000,0xb000000,0x1a000000,0x1a000000,0xce9e9e9,0x13ffffff,0x13ffffff,0xce9e9e9,0x1a000000,0x1a000000,
0xb000000,0x3000000,0x0,0x0,0x0,0x2000000,0xa000000,0x1a000000,0x1b000000,0x10ffffff,0x15ffffff,0x7ffffff,0x7ffffff,0x15ffffff,
@ -898,7 +898,7 @@ static const QRgb scroll2SliderHShadow2_data[] = {
0x0,0x0
};
static const QRgb scroll2SliderVContour_data[] = {
static const TQRgb scroll2SliderVContour_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x2000000,0x4a000000,0x98000000,0xb8000000,0xb9000000,0xb8000000,0x91000000,0x56000000,0x2000000,
@ -919,7 +919,7 @@ static const QRgb scroll2SliderVContour_data[] = {
0x0,0x0
};
static const QRgb scroll2SliderVDockedContour_data[] = {
static const TQRgb scroll2SliderVDockedContour_data[] = {
0xff000000,0x23000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x23000000,
0xff000000,0xff000000,0x23000000,0x0,0x2000000,0x11000000,0x1d000000,0x23000000,0x23000000,0x23000000,0x1d000000,0x11000000,0x2000000,0x0,
0x23000000,0xff000000,0xff000000,0x23000000,0xe000000,0x25000000,0x63000000,0x94000000,0xb8000000,0xb9000000,0xb8000000,0x94000000,0x63000000,0x25000000,
@ -940,7 +940,7 @@ static const QRgb scroll2SliderVDockedContour_data[] = {
0x23000000,0xff000000
};
static const QRgb scroll2SliderVDockedShadow_data[] = {
static const TQRgb scroll2SliderVDockedShadow_data[] = {
0x0,0x17ffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x17ffffff,
0x0,0x0,0x17ffffff,0x0,0x5ffffff,0xdffffff,0x16ffffff,0x1effffff,0x1effffff,0x1effffff,0x16ffffff,0xdffffff,0x5ffffff,0x0,
0x17ffffff,0x0,0x0,0x17ffffff,0xaffffff,0x19ffffff,0x1effffff,0x9ffffff,0x0,0x0,0x0,0x9ffffff,0x1effffff,0x19ffffff,
@ -961,7 +961,7 @@ static const QRgb scroll2SliderVDockedShadow_data[] = {
0x17ffffff,0x0
};
static const QRgb scroll2SliderVMask_data[] = {
static const TQRgb scroll2SliderVMask_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x3ff0000,0x40ff0000,0x77ff0000,0x89ff0000,0x77ff0000,0x40ff0000,0x3ff0000,0x0,
@ -982,7 +982,7 @@ static const QRgb scroll2SliderVMask_data[] = {
0x0,0x0
};
static const QRgb scroll2SliderVShadow2_data[] = {
static const TQRgb scroll2SliderVShadow2_data[] = {
0x0,0x0,0x0,0x1000000,0x2000000,0x4000000,0x5000000,0x6000000,0x5000000,0x4000000,0x2000000,0x1000000,0x0,0x0,
0x0,0x0,0x0,0x2000000,0x6000000,0xc000000,0x12000000,0x16000000,0x16000000,0x16000000,0x12000000,0xc000000,0x6000000,0x2000000,
0x0,0x0,0x0,0x3000000,0xa000000,0x16000000,0x20000000,0x15000000,0x16000000,0x16000000,0x16000000,0x15000000,0x20000000,0x16000000,
@ -1003,7 +1003,7 @@ static const QRgb scroll2SliderVShadow2_data[] = {
0x0,0x0
};
static const QRgb scrollBarArrows_data[] = {
static const TQRgb scrollBarArrows_data[] = {
0x0,0x0,0x0,0x23000000,0xa2000000,0xa2000000,0x23000000,0x0,0x0,0x0,0x0,0x0,0x4000000,0x77000000,
0x4000000,0x0,0x0,0xa2000000,0xe5000000,0xeb000000,0xef000000,0xeb000000,0xe5000000,0xa2000000,0x0,0x0,0x42000000,0xbb000000,
0xe5000000,0xe5000000,0xbb000000,0x42000000,0x0,0x0,0x0,0x0,0x7b000000,0xf5000000,0x7b000000,0x0,0x0,0x2a000000,
@ -1018,29 +1018,29 @@ static const QRgb scrollBarArrows_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
};
static const QRgb sizeGrip_data[] = {
static const TQRgb sizeGrip_data[] = {
0x33bebebe,0x78bbbbbb,0x6bababab,0x278f8f8f,0x5e9d9d9d,0x6e9b9b9b,0x678a8a8a,0x4e6b6b6b,0x4b6c6c6c,0x576c6c6c,0x53595959,0x41363636,0x19282828,0x3a1e1e1e,
0x390d0d0d,0x18000000
};
static const QRgb sliderGrooveHBody_data[] = {
static const TQRgb sliderGrooveHBody_data[] = {
0xb000000,0xb000000,0xb000000,0xb000000,0x9b353535,0x9b353535,0x9b353535,0x9b353535,0x92434343,0x92434343,0x92434343,0x92434343,0x8c535353,0x8c535353,
0x8c535353,0x8c535353,0x86656565,0x86656565,0x86656565,0x86656565,0x2bfefefe,0x2bfefefe,0x2bfefefe,0x2bfefefe,0x9ffffff,0x9ffffff,0x9ffffff,0x9ffffff
};
static const QRgb sliderGroove_h_data[] = {
static const TQRgb sliderGroove_h_data[] = {
0x1000000,0x5000000,0x9000000,0x9000000,0x5000000,0x1000000,0x2000000,0x41353535,0x89353535,0x89353535,0x41353535,0x2000000,0x5999999,0x83444444,
0x92434343,0x92434343,0x83444444,0x5999999,0x8dfdfdf,0x7f575757,0x8c535353,0x8c535353,0x7f575757,0x8dfdfdf,0x7ffffff,0x488e8e8e,0x7c6c6c6c,0x7c6c6c6c,
0x488e8e8e,0x7ffffff,0x3ffffff,0x14fcfcfc,0x25ffffff,0x25ffffff,0x14fcfcfc,0x3ffffff,0x0,0x3ffffff,0x7ffffff,0x7ffffff,0x3ffffff,0x0
};
static const QRgb sliderGroove_v_data[] = {
static const TQRgb sliderGroove_v_data[] = {
0x1000000,0x2000000,0x5999999,0x8dfdfdf,0x7ffffff,0x3ffffff,0x0,0x5000000,0x41353535,0x83444444,0x7f575757,0x488e8e8e,0x14fcfcfc,0x3ffffff,
0x9000000,0x89353535,0x92434343,0x8c535353,0x7c6c6c6c,0x25ffffff,0x7ffffff,0x9000000,0x89353535,0x92434343,0x8c535353,0x7c6c6c6c,0x25ffffff,0x7ffffff,
0x5000000,0x41353535,0x83444444,0x7f575757,0x488e8e8e,0x14fcfcfc,0x3ffffff,0x1000000,0x2000000,0x5999999,0x8dfdfdf,0x7ffffff,0x3ffffff,0x0
};
static const QRgb sliderHandle2inside2_data[] = {
static const TQRgb sliderHandle2inside2_data[] = {
0x0,0x0,0x0,0x0,0x0,0xfffffff,0x39ffffff,0x51ffffff,0x39ffffff,0xfffffff,0x0,0x0,0x0,0x0,
0x0,0x0,0xffffff,0xffffff,0x4ffffff,0x71ffffff,0xf4ffffff,0xffffffff,0xffffffff,0xffffffff,0xf3ffffff,0x6fffffff,0x3ffffff,0xffffff,
0x0,0x0,0x0,0xffffff,0x4ffffff,0xabffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xabffffff,
@ -1060,7 +1060,7 @@ static const QRgb sliderHandle2inside2_data[] = {
0x0
};
static const QRgb sliderHandle2circle_data[] = {
static const TQRgb sliderHandle2circle_data[] = {
0x0,0x0,0x0,0x0,0x1e8b8b8b,0x815e5e5e,0x95595959,0x995d5d5d,0x95595959,0x815e5e5e,0x1e8b8b8b,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x6c5e5e5e,0x92585858,0x336e6e6e,0x0,0x0,0x0,0x336e6e6e,0x92585858,0x6c5e5e5e,0x0,
0x0,0x0,0x0,0x0,0x6f595959,0x75595959,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x75595959,
@ -1080,7 +1080,7 @@ static const QRgb sliderHandle2circle_data[] = {
0x0
};
static const QRgb sliderHandle2shadow_data[] = {
static const TQRgb sliderHandle2shadow_data[] = {
0x0,0x0,0x1000000,0x3000000,0x5000000,0x4000000,0x2000000,0x5d5d5d,0x2000000,0x4000000,0x5000000,0x3000000,0x1000000,0x0,
0x0,0x0,0x1000000,0x4000000,0x5000000,0xefefefe,0x32fefefe,0x45fefefe,0x4cfefefe,0x45fefefe,0x32fefefe,0xefefefe,0x5000000,0x4000000,
0x1000000,0x0,0x1000000,0x4000000,0x6000000,0x17fefefe,0x3bfefefe,0x35fefefe,0x30fefefe,0x2efefefe,0x30fefefe,0x35fefefe,0x3bfefefe,0x17fefefe,
@ -1100,7 +1100,7 @@ static const QRgb sliderHandle2shadow_data[] = {
0x0
};
static const QRgb spinBoxArrows_data[] = {
static const TQRgb spinBoxArrows_data[] = {
0x0,0x0,0x0,0xd000000,0x0,0x0,0x0,0x0,0x0,0x24000000,0xa5000000,0x24000000,0x0,0x0,
0x0,0x19000000,0xb5000000,0xff000000,0xb5000000,0x19000000,0x0,0x18000000,0x99000000,0xff000000,0xff000000,0xff000000,0x99000000,0x12000000,
0x79000000,0xca000000,0xcc000000,0xd7000000,0xcc000000,0xca000000,0x78000000,0x79000000,0xca000000,0xcc000000,0xd7000000,0xcc000000,0xca000000,0x78000000,
@ -1108,16 +1108,16 @@ static const QRgb spinBoxArrows_data[] = {
0x0,0x0,0x24000000,0xa5000000,0x24000000,0x0,0x0,0x0,0x0,0x0,0xd000000,0x0,0x0,0x0
};
static const QRgb tabHLines_data[] = {
static const TQRgb tabHLines_data[] = {
0x4effffff,0x4effffff,0x4effffff,0x4effffff,0x1effffff,0x1effffff,0x1effffff,0x1effffff,0x19f9f9f9,0x19f9f9f9,0x19f9f9f9,0x19f9f9f9
};
static const QRgb tabInsideWhiteLines_data[] = {
static const TQRgb tabInsideWhiteLines_data[] = {
0x19ffffff,0x19ffffff,0x19ffffff,0x19ffffff,0x19ffffff,0x0,0x0,0x0,0x19ffffff,0x0,0x0,0x0,0x19ffffff,0x0,
0x0,0x0
};
static const QRgb tabInsideWhite_data[] = {
static const TQRgb tabInsideWhite_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0xaffffff,0x13ffffff,0x18ffffff,0x18ffffff,0x13ffffff,0xaffffff,0x0,0x0,0x0,0x0,
0x0,0x0,0x3ffffff,0x17ffffff,0x14ffffff,0x9ffffff,0x3ffffff,0x3ffffff,0x9ffffff,0x14ffffff,0x17ffffff,0x3ffffff,0x0,0x0,
@ -1134,11 +1134,11 @@ static const QRgb tabInsideWhite_data[] = {
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0
};
static const QRgb tabVlines_data[] = {
static const TQRgb tabVlines_data[] = {
0x1effffff,0x1effffff,0x1effffff,0x1effffff
};
static const QRgb tabWidget_data[] = {
static const TQRgb tabWidget_data[] = {
0x0,0x0,0x0,0x0,0x3000000,0xb000000,0x13000000,0x17000000,0x17000000,0x13000000,0xb000000,0x3000000,0x0,0x0,
0x0,0x0,0x0,0x0,0x1000000,0xb000000,0x27474747,0x46b2b2b2,0x4ededede,0x48ffffff,0x48ffffff,0x4ededede,0x46b2b2b2,0x27474747,
0xb000000,0x1000000,0x0,0x0,0x0,0x1000000,0xf000000,0x408f8f8f,0x44f7f7f7,0x37ffffff,0x29ffffff,0x21ffffff,0x20ffffff,0x28ffffff,
@ -1160,7 +1160,7 @@ static const QRgb tabWidget_data[] = {
0x3000000,0x0,0x0,0x0
};
static const QRgb tooltipframe2_data[] = {
static const TQRgb tooltipframe2_data[] = {
0x0,0x0,0x0,0xa575757,0x50575757,0x98575757,0xcc575757,0xcc575757,0x98575757,0x50575757,0xa575757,0x0,0x0,0x0,
0x0,0x0,0x27575757,0xd3575757,0x99575757,0x56575757,0x1c575757,0x1c575757,0x56575757,0x99575757,0xd3575757,0x27575757,0x0,0x0,
0x0,0x2d575757,0xe9575757,0x47575757,0x0,0x0,0x0,0x0,0x0,0x0,0x47575757,0xe9575757,0x2d575757,0x0,
@ -1177,7 +1177,7 @@ static const QRgb tooltipframe2_data[] = {
0x0,0x0,0x0,0xf575757,0x5d575757,0xa5575757,0xd9575757,0xd9575757,0xa5575757,0x5d575757,0xf575757,0x0,0x0,0x0
};
static const QRgb toolBtnFrameThin_data[] = {
static const TQRgb toolBtnFrameThin_data[] = {
0x0,0x12000000,0x4e000000,0x9d000000,0x9d000000,0x4e000000,0x12000000,0x0,0xd000000,0x81000000,0x6d000000,0x19000000,0x19000000,0x6d000000,
0x81000000,0xd000000,0x4a000000,0x66000000,0x0,0x0,0x0,0x0,0x66000000,0x4a000000,0x9c000000,0x19000000,0x0,0x0,
0x0,0x0,0x19000000,0x9c000000,0x9c000000,0x19000000,0x0,0x0,0x0,0x0,0x19000000,0x9c000000,0x4a000000,0x66000000,
@ -1190,7 +1190,7 @@ static struct EmbedImage {
int width, height, depth;
const unsigned char *data;
int numColors;
const QRgb *colorTable;
const TQRgb *colorTable;
bool alpha;
const char *name;
} embed_image_vec[] = {
@ -1275,20 +1275,20 @@ static struct EmbedImage {
{ 0, 0, 0, 0, 0, 0, 0, 0 }
};
static const QImage& qembed_findImage( const QString& name )
static const TQImage& qembed_findImage( const TQString& name )
{
static QDict<QImage> dict;
QImage* img = dict.find( name );
static TQDict<TQImage> dict;
TQImage* img = dict.find( name );
if ( !img ) {
for ( int i = 0; embed_image_vec[i].data; i++ ) {
if ( strcmp(embed_image_vec[i].name, name.latin1()) == 0 ) {
img = new QImage((uchar*)embed_image_vec[i].data,
img = new TQImage((uchar*)embed_image_vec[i].data,
embed_image_vec[i].width,
embed_image_vec[i].height,
embed_image_vec[i].depth,
(QRgb*)embed_image_vec[i].colorTable,
(TQRgb*)embed_image_vec[i].colorTable,
embed_image_vec[i].numColors,
QImage::BigEndian );
TQImage::BigEndian );
if ( embed_image_vec[i].alpha )
img->setAlphaBuffer( TRUE );
dict.insert( name, img );
@ -1296,7 +1296,7 @@ static const QImage& qembed_findImage( const QString& name )
}
}
if ( !img ) {
static QImage dummy;
static TQImage dummy;
return dummy;
}
}

File diff suppressed because it is too large Load Diff

@ -42,11 +42,11 @@
#define __DOMINO_H
#include <kstyle.h>
#include <qintcache.h>
#include <tqintcache.h>
#include <ktoolbarbutton.h>
#include "misc.h"
#include "data.h"
#include <qpixmapcache.h>
#include <tqpixmapcache.h>
// #include <X11/extensions/Xrender.h>
@ -80,11 +80,11 @@ class Rubber;
struct DSurface {
int numGradients;
QColor g1Color1;
QColor g1Color2;
QColor g2Color1;
QColor g2Color2;
QColor background;
TQColor g1Color1;
TQColor g1Color2;
TQColor g2Color1;
TQColor g2Color2;
TQColor background;
int g1Top;
int g1Bottom;
int g2Top;
@ -108,112 +108,112 @@ public:
Palette_Widget
};
void polish(QApplication* app );
void polish(QWidget* widget );
void polish( QPalette &p );
void unPolish(QWidget* widget );
void polish(TQApplication* app );
void polish(TQWidget* widget );
void polish( TQPalette &p );
void unPolish(TQWidget* widget );
void drawKStylePrimitive(KStylePrimitive kpe,
QPainter* p,
const QWidget* widget,
const QRect &r,
const QColorGroup &cg,
TQPainter* p,
const TQWidget* widget,
const TQRect &r,
const TQColorGroup &cg,
SFlags flags = Style_Default,
const QStyleOption& = QStyleOption::Default ) const;
const TQStyleOption& = TQStyleOption::Default ) const;
void drawPrimitive(PrimitiveElement pe,
QPainter *p,
const QRect &r,
const QColorGroup &cg,
TQPainter *p,
const TQRect &r,
const TQColorGroup &cg,
SFlags flags = Style_Default,
const QStyleOption &opt = QStyleOption::Default ) const;
const TQStyleOption &opt = TQStyleOption::Default ) const;
void drawControl(ControlElement element,
QPainter *p,
const QWidget *widget,
const QRect &r,
const QColorGroup &cg,
TQPainter *p,
const TQWidget *widget,
const TQRect &r,
const TQColorGroup &cg,
SFlags flags = Style_Default,
const QStyleOption& = QStyleOption::Default ) const;
const TQStyleOption& = TQStyleOption::Default ) const;
void drawControlMask( ControlElement, QPainter *, const QWidget *, const QRect &, const QStyleOption &) const;
void drawControlMask( ControlElement, TQPainter *, const TQWidget *, const TQRect &, const TQStyleOption &) const;
void drawComplexControl(ComplexControl control,
QPainter *p,
const QWidget *widget,
const QRect &r,
const QColorGroup &cg,
TQPainter *p,
const TQWidget *widget,
const TQRect &r,
const TQColorGroup &cg,
SFlags flags = Style_Default,
SCFlags controls = SC_All,
SCFlags active = SC_None,
const QStyleOption& = QStyleOption::Default ) const;
const TQStyleOption& = TQStyleOption::Default ) const;
int pixelMetric(PixelMetric m,
const QWidget *widget = 0 ) const;
const TQWidget *widget = 0 ) const;
QRect subRect(SubRect r,
const QWidget *widget ) const;
TQRect subRect(SubRect r,
const TQWidget *widget ) const;
QRect querySubControlMetrics(ComplexControl control,
const QWidget *widget,
TQRect querySubControlMetrics(ComplexControl control,
const TQWidget *widget,
SubControl subcontrol,
const QStyleOption &opt = QStyleOption::Default ) const;
const TQStyleOption &opt = TQStyleOption::Default ) const;
QSize sizeFromContents(QStyle::ContentsType t,
const QWidget *w,
const QSize &s,
const QStyleOption &o) const;
TQSize sizeFromContents(TQStyle::ContentsType t,
const TQWidget *w,
const TQSize &s,
const TQStyleOption &o) const;
int styleHint(StyleHint, const QWidget * = 0,
const QStyleOption & = QStyleOption::Default,
QStyleHintReturn * = 0 ) const;
int styleHint(StyleHint, const TQWidget * = 0,
const TQStyleOption & = TQStyleOption::Default,
TQStyleHintReturn * = 0 ) const;
QPixmap stylePixmap(StylePixmap stylepixmap, const QWidget* widget, const QStyleOption& opt) const;
TQPixmap stylePixmap(StylePixmap stylepixmap, const TQWidget* widget, const TQStyleOption& opt) const;
void drawItem( QPainter *p, const QRect &r,
int flags, const QColorGroup &g, bool enabled,
const QPixmap *pixmap, const QString &text,
int len = -1, const QColor *penColor = 0) const;
void drawItem( TQPainter *p, const TQRect &r,
int flags, const TQColorGroup &g, bool enabled,
const TQPixmap *pixmap, const TQString &text,
int len = -1, const TQColor *penColor = 0) const;
void dominoDrawItem( QPainter *p, const QRect &r,
int flags, const QColorGroup &g, bool enabled,
const QPixmap *pixmap, const QString &text,
int len = -1, const QColor *penColor = 0, bool buttonTextEffect = 0 ) const;
void dominoDrawItem( TQPainter *p, const TQRect &r,
int flags, const TQColorGroup &g, bool enabled,
const TQPixmap *pixmap, const TQString &text,
int len = -1, const TQColor *penColor = 0, bool buttonTextEffect = 0 ) const;
void setDominoButtonPalette(QWidget* widget, PaletteTyp type);
void setDominoButtonPalette(TQWidget* widget, PaletteTyp type);
virtual void drawFocusIndicator(QPainter *p,
const QRect &r,
virtual void drawFocusIndicator(TQPainter *p,
const TQRect &r,
int flags,
const QColorGroup cg,
const TQColorGroup cg,
bool /*enabled*/,
const QPixmap* /*pixmap*/,
const QString & text,
const TQPixmap* /*pixmap*/,
const TQString & text,
int /*len = -1*/,
const QColor& highlight = 0,
const TQColor& highlight = 0,
bool drawLine = true,
bool isButton = false) const;
QPixmap renderOutlineIcon(const QPixmap* icon) const;
TQPixmap renderOutlineIcon(const TQPixmap* icon) const;
void renderSurface(QPainter *p,
const QRect &r,
const QColor &backgroundColor,
const QColor &buttonColor,
const QColor &highlightColor,
void renderSurface(TQPainter *p,
const TQRect &r,
const TQColor &backgroundColor,
const TQColor &buttonColor,
const TQColor &highlightColor,
const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|Is_Horizontal) const;
inline QWidget::BackgroundOrigin setPixmapOrigin(QWidget::BackgroundOrigin origin);
inline TQWidget::BackgroundOrigin setPixmapOrigin(TQWidget::BackgroundOrigin origin);
mutable Rubber* rubber;
mutable QRect oldRubberRect;
mutable TQRect oldRubberRect;
mutable bool viewPortPressed;
mutable bool ignoreNextFocusRect;
uint _argbRubberBandColor;
mutable bool compositeManagerRunning;
const QWidget* rubberViewPort;
const TQWidget* rubberViewPort;
protected:
@ -235,25 +235,25 @@ protected:
struct TextEffectSettings {
TextEffect mode;
QColor color;
QColor buttonColor;
TQColor color;
TQColor buttonColor;
int opacity;
int buttonOpacity;
QPoint pos;
QPoint buttonPos;
TQPoint pos;
TQPoint buttonPos;
};
struct GroupBoxSettings {
bool tintBackground;
int brightness;
bool customColor;
QColor color;
TQColor color;
};
struct FocusIndicatorSettings {
QColor color;
TQColor color;
int opacity;
QColor buttonColor;
TQColor buttonColor;
int buttonOpacity;
bool drawUnderline;
bool indicateFocus;
@ -308,51 +308,51 @@ protected:
PE_ScrollBarSubLine2 = 0xf000001
};
void renderContour(QPainter *p,
const QRect &r,
const QColor &backgroundColor,
const QColor &contourColor,
void renderContour(TQPainter *p,
const TQRect &r,
const TQColor &backgroundColor,
const TQColor &contourColor,
const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight) const;
void renderButtonShadow(QPainter *p, const QRect &r, const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
void renderButtonShadow(TQPainter *p, const TQRect &r, const uint flags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom|
Round_UpperLeft|Round_UpperRight|Round_BottomLeft|Round_BottomRight|Is_Horizontal) const;
QPixmap* renderLineEditShadow(QWidget* widget, QRect rect, QColor bg, uint flags, bool reverse);
TQPixmap* renderLineEditShadow(TQWidget* widget, TQRect rect, TQColor bg, uint flags, bool reverse);
inline void renderPixel(QPainter *p,
const QPoint &pos,
inline void renderPixel(TQPainter *p,
const TQPoint &pos,
const int alpha,
const QColor &color,
const QColor &background = QColor(),
const TQColor &color,
const TQColor &background = TQColor(),
bool fullAlphaBlend = true) const;
void renderButton(QPainter *p,
const QRect &r,
const QColorGroup &g,
void renderButton(TQPainter *p,
const TQRect &r,
const TQColorGroup &g,
bool sunken = false,
bool mouseOver = false,
bool horizontal = true,
bool enabled = true,
bool khtmlMode = false) const;
void renderHeader(QPainter *p,
const QRect &r,
const QColorGroup &g,
void renderHeader(TQPainter *p,
const TQRect &r,
const TQColorGroup &g,
bool sunken = false,
bool mouseOver = false,
bool horizontal = true,
bool enabled = true) const;
void renderGradient(QPainter *p,
const QRect &r,
const QColor &c1,
const QColor &c2,
void renderGradient(TQPainter *p,
const TQRect &r,
const TQColor &c1,
const TQColor &c2,
bool horizontal = true) const;
void renderTab(QPainter *p,
const QRect &r,
const QColorGroup &g,
void renderTab(TQPainter *p,
const TQRect &r,
const TQColorGroup &g,
bool mouseOver = false,
const bool selected = false,
const bool bottom = false,
@ -371,53 +371,53 @@ protected:
DSurface headerSurface;
DSurface checkItemSurface;
bool eventFilter(QObject *, QEvent *);
QString configMode;
void removeCachedSbPix(const QColor &color) {
QPixmapCache::remove("sHCap"+QString::number(color.pixel(), 16)+"1"+configMode);
QPixmapCache::remove("sHCap"+QString::number(color.pixel(), 16)+"0"+configMode);
QPixmapCache::remove("sVCap"+QString::number(color.pixel(), 16)+"1"+configMode);
QPixmapCache::remove("sVCap"+QString::number(color.pixel(), 16)+"0"+configMode);
QPixmapCache::remove(QString::number(color.pixel(), 16)+"sh"+configMode);
QPixmapCache::remove(QString::number(color.pixel(), 16)+"sv"+configMode);
QPixmapCache::remove(QString::number(color.pixel(), 16)+"ah"+configMode);
QPixmapCache::remove(QString::number(color.pixel(), 16)+"av"+configMode);
bool eventFilter(TQObject *, TQEvent *);
TQString configMode;
void removeCachedSbPix(const TQColor &color) {
TQPixmapCache::remove("sHCap"+TQString::number(color.pixel(), 16)+"1"+configMode);
TQPixmapCache::remove("sHCap"+TQString::number(color.pixel(), 16)+"0"+configMode);
TQPixmapCache::remove("sVCap"+TQString::number(color.pixel(), 16)+"1"+configMode);
TQPixmapCache::remove("sVCap"+TQString::number(color.pixel(), 16)+"0"+configMode);
TQPixmapCache::remove(TQString::number(color.pixel(), 16)+"sh"+configMode);
TQPixmapCache::remove(TQString::number(color.pixel(), 16)+"sv"+configMode);
TQPixmapCache::remove(TQString::number(color.pixel(), 16)+"ah"+configMode);
TQPixmapCache::remove(TQString::number(color.pixel(), 16)+"av"+configMode);
};
QColor getGroupBoxColor(const QWidget* w) const;
QPixmap* createCheckMark(const QColor color) const;
QPixmap* createRadioIndicator(const QColor color) const;
QPixmap disableIcon(const QPixmap* icon) const;;
TQColor getGroupBoxColor(const TQWidget* w) const;
TQPixmap* createCheckMark(const TQColor color) const;
TQPixmap* createRadioIndicator(const TQColor color) const;
TQPixmap disableIcon(const TQPixmap* icon) const;;
QWidget* hoverWidget;
TQWidget* hoverWidget;
QPixmap* checkMark;
QPixmap* radioIndicator;
QPixmap* popupFrame;
QPixmap* border1;
TQPixmap* checkMark;
TQPixmap* radioIndicator;
TQPixmap* popupFrame;
TQPixmap* border1;
mutable bool alphaButtonMode;
bool KApplicationMode;
QColor _checkMarkColor;
TQColor _checkMarkColor;
QMap<const QGroupBox*, const QPixmap*> groupBoxPixmaps;
TQMap<const TQGroupBox*, const TQPixmap*> groupBoxPixmaps;
uint preMultiplyColor(const uint &c) const;
QToolButton* popupButton;
QTimer* popupTimer;
QPoint popupMousePressPos;
TQToolButton* popupButton;
TQTimer* popupTimer;
TQPoint popupMousePressPos;
protected slots:
void khtmlWidgetDestroyed(QObject* w);
void groupBoxDestroyed(QObject* w);
void khtmlWidgetDestroyed(TQObject* w);
void groupBoxDestroyed(TQObject* w);
//Animation slots.
void updateProgressPos();
void updateScrollPos(); // smoothscroll
void progressBarDestroyed(QObject* bar);
inline QColor dGetColor(const QColor &color, const int value) const;
inline QColor lightenColor(const QColor &color, const int value) const;
inline QColor darkenColor(const QColor &color, const int value) const;
void progressBarDestroyed(TQObject* bar);
inline TQColor dGetColor(const TQColor &color, const int value) const;
inline TQColor lightenColor(const TQColor &color, const int value) const;
inline TQColor darkenColor(const TQColor &color, const int value) const;
void updateTabWidgetFrame();
void spinBoxValueChanged(int);
void toolPopupPressed();
@ -439,12 +439,12 @@ private:
bool _drawTriangularExpander;
bool _customCheckMarkColor;
bool _smoothScrolling;
QColor _toolTipColor;
TQColor _toolTipColor;
int _buttonHeightAdjustment;
bool _customPopupMenuColor;
QColor _popupMenuColor;
TQColor _popupMenuColor;
bool _customSelMenuItemColor;
QColor _selMenuItemColor;
TQColor _selMenuItemColor;
bool _drawPopupMenuGradient;
bool _indentPopupMenuItems;
bool _centerTabs;
@ -465,16 +465,16 @@ private:
// smoothscrolling
int scrollDistance;
bool scrollVertical;
QScrollView* scrollWidget;
QTimer* scrollTimer;
TQScrollView* scrollWidget;
TQTimer* scrollTimer;
bool hoveredToolBoxTab;
// track khtml widgets.
QMap<const QWidget*,bool> khtmlWidgets;
TQMap<const TQWidget*,bool> khtmlWidgets;
//Animation support.
QMap<QWidget*, int> progAnimWidgets;
TQMap<TQWidget*, int> progAnimWidgets;
// pixmap cache.
enum CacheEntryType {
@ -488,14 +488,14 @@ private:
CacheEntryType type;
int width;
int height;
QRgb c1Rgb;
QRgb c2Rgb;
TQRgb c1Rgb;
TQRgb c2Rgb;
bool horizontal;
QPixmap* pixmap;
TQPixmap* pixmap;
CacheEntry(CacheEntryType t, int w, int h, QRgb c1, QRgb c2 = 0,
bool hor = false, QPixmap* p = 0 ):
CacheEntry(CacheEntryType t, int w, int h, TQRgb c1, TQRgb c2 = 0,
bool hor = false, TQPixmap* p = 0 ):
type(t), width(w), height(h), c1Rgb(c1), c2Rgb(c2), horizontal(hor), pixmap(p)
{}
@ -506,7 +506,7 @@ private:
int key()
{
// create an int key from the properties which is used to refer to entries in the QIntCache.
// create an int key from the properties which is used to refer to entries in the TQIntCache.
// the result may not be 100% correct as we don't have so much space in one integer -- use
// == operator after find to make sure we got the right one. :)
return horizontal ^ (type<<1) ^ (width<<5) ^ (height<<10) ^ (c1Rgb<<19) ^ (c2Rgb<<22);
@ -521,27 +521,27 @@ private:
(c1Rgb == other.c1Rgb) &&
(horizontal = other.horizontal);
// if(!match) {
// qDebug("operator ==: CacheEntries don't match!");
// qDebug("width: %d\t\tother width: %d", width, other.width);
// qDebug("height: %d\t\tother height: %d", height, other.height);
// qDebug("fgRgb: %d\t\tother fgRgb: %d", fgRgb, other.fgRgb);
// qDebug("bgRgb: %d\t\tother bgRgb: %d", bgRgb, other.bgRgb);
// qDebug("surfaceFlags: %d\t\tother surfaceFlags: %d", surfaceFlags, other.surfaceFlags);
// tqDebug("operator ==: CacheEntries don't match!");
// tqDebug("width: %d\t\tother width: %d", width, other.width);
// tqDebug("height: %d\t\tother height: %d", height, other.height);
// tqDebug("fgRgb: %d\t\tother fgRgb: %d", fgRgb, other.fgRgb);
// tqDebug("bgRgb: %d\t\tother bgRgb: %d", bgRgb, other.bgRgb);
// tqDebug("surfaceFlags: %d\t\tother surfaceFlags: %d", surfaceFlags, other.surfaceFlags);
// }
return match;
}
};
QIntCache<CacheEntry> *pixmapCache;
TQIntCache<CacheEntry> *pixmapCache;
// For KPE_ListViewBranch
mutable QBitmap *verticalLine;
mutable QBitmap *horizontalLine;
mutable TQBitmap *verticalLine;
mutable TQBitmap *horizontalLine;
// For progress bar animation
QTimer *animationTimer;
TQTimer *animationTimer;
void renderTabSeparator(QPainter *p, const QRect &r, const QColor buttonColor, bool tabAbove) const;
void renderGroupBox(QObject *obj, QEvent *ev);
void renderTabSeparator(TQPainter *p, const TQRect &r, const TQColor buttonColor, bool tabAbove) const;
void renderGroupBox(TQObject *obj, TQEvent *ev);
};
@ -565,22 +565,22 @@ class ButtonContour
int created[num_types][num_states];
int shadowCreated[num_states];
QColor contour[num_states];
TQColor contour[num_states];
uint c1[num_types][num_states]; // top shadow
uint c2[num_types][num_states]; // outer ring
uint c3[num_types][num_states]; // inner ring
uint c4[num_types][num_states]; // bottom first shadow line
uint c5[num_types][num_states]; // bottom second shadow line
uint c6[num_types][num_states]; // first left shadow line
QPixmap* btnEdges[num_types][num_states];
QPixmap* btnVLines[num_types][num_states];
QPixmap* btnHLines[num_types][num_states];
TQPixmap* btnEdges[num_types][num_states];
TQPixmap* btnVLines[num_types][num_states];
TQPixmap* btnHLines[num_types][num_states];
// for sunken type and sunken flat buttons
QPixmap* buttonShadowRectangular[num_states];
QPixmap* buttonShadowRound [num_states];
QPixmap* buttonShadowHlines[num_states];
QPixmap* buttonShadowVlines[num_states];
TQPixmap* buttonShadowRectangular[num_states];
TQPixmap* buttonShadowRound [num_states];
TQPixmap* buttonShadowHlines[num_states];
TQPixmap* buttonShadowVlines[num_states];
bool alphaMode() {
@ -604,16 +604,16 @@ class ButtonContour
uint color6() {
return c6[type][state];
}
QColor contourColor(int t) {
TQColor contourColor(int t) {
return contour[t];
}
QPixmap* buttonEdges() {
TQPixmap* buttonEdges() {
return btnEdges[type][state];
}
QPixmap* buttonVLines() {
TQPixmap* buttonVLines() {
return btnVLines[type][state];
}
QPixmap* buttonHLines() {
TQPixmap* buttonHLines() {
return btnHLines[type][state];
}
void setType(ContourType t = Contour_Sunken) {
@ -631,20 +631,20 @@ class ButtonContour
state = s;
createPixmaps(type, state);
}
void setColor(ContourState s, QColor color) {
void setColor(ContourState s, TQColor color) {
contour[s] = color;
uint c2_tmp;
uint c3_tmp;
if(defaultType == Contour_Sunken /*|| defaultType == Contour_Simple*/) {
c2_tmp = qRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 218);
c3_tmp = qRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 35);
c2_tmp = tqRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 218);
c3_tmp = tqRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 35);
}
else {
c2_tmp = qRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 203);
c2_tmp = tqRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 203);
QColor whiteColor(qRgba(Qt::white.red(), Qt::white.green(), Qt::white.blue(), 34));
QColor blackColor(qRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 35));
TQColor whiteColor(tqRgba(TQt::white.red(), TQt::white.green(), TQt::white.blue(), 34));
TQColor blackColor(tqRgba(contour[s].red(), contour[s].green(), contour[s].blue(), 35));
c3_tmp = blendColors(whiteColor, blackColor).rgb();
}
@ -669,16 +669,16 @@ class ButtonContour
alpha_mode = false;
}
QPixmap* shadowRound() {
TQPixmap* shadowRound() {
return buttonShadowRound[state];
}
QPixmap* shadowRectangular() {
TQPixmap* shadowRectangular() {
return buttonShadowRectangular[state];
}
QPixmap* shadowHLines() {
TQPixmap* shadowHLines() {
return buttonShadowHlines[state];
}
QPixmap* shadowVLines() {
TQPixmap* shadowVLines() {
return buttonShadowVlines[state];
}
@ -690,11 +690,11 @@ class ButtonContour
// for pressed sunken buttons + pressed KMultiTabbarTabs
if(drawButtonSunkenShadow && !shadowCreated[state]) {
QColor shadowColor = alphaBlendColors(Qt::black, contour[state], 120);
buttonShadowRectangular[state] = new QPixmap(tintImage(qembed_findImage("btnPressedShadowRectangular"), shadowColor));
buttonShadowRound[state] = new QPixmap(tintImage(qembed_findImage("btnPressedShadowRound"), shadowColor));
buttonShadowHlines[state] = new QPixmap(tintImage(qembed_findImage("btnPressedShadowHLines"), shadowColor));
buttonShadowVlines[state] = new QPixmap(tintImage(qembed_findImage("btnPressedShadowVLines"), shadowColor));
TQColor shadowColor = alphaBlendColors(TQt::black, contour[state], 120);
buttonShadowRectangular[state] = new TQPixmap(tintImage(qembed_findImage("btnPressedShadowRectangular"), shadowColor));
buttonShadowRound[state] = new TQPixmap(tintImage(qembed_findImage("btnPressedShadowRound"), shadowColor));
buttonShadowHlines[state] = new TQPixmap(tintImage(qembed_findImage("btnPressedShadowHLines"), shadowColor));
buttonShadowVlines[state] = new TQPixmap(tintImage(qembed_findImage("btnPressedShadowVLines"), shadowColor));
shadowCreated[state] = 1;
}
@ -702,9 +702,9 @@ class ButtonContour
if(created[type][state])
return;
QImage btnVLines_img;
QImage btnHLines_img;
QImage btnShadow_img;
TQImage btnVLines_img;
TQImage btnHLines_img;
TQImage btnShadow_img;
switch(type) {
case Contour_Simple: // now pressed raised!
@ -734,14 +734,14 @@ class ButtonContour
break;
}
btnEdges[type][state] = new QPixmap(btnShadow_img);
btnVLines[type][state] = new QPixmap(btnVLines_img);
btnHLines[type][state] = new QPixmap(btnHLines_img);
btnEdges[type][state] = new TQPixmap(btnShadow_img);
btnVLines[type][state] = new TQPixmap(btnVLines_img);
btnHLines[type][state] = new TQPixmap(btnHLines_img);
created[type][state] = 1;
}
};
class RubberWidget : public QWidget
class RubberWidget : public TQWidget
{
public:
RubberWidget(Window window);
@ -763,7 +763,7 @@ class Rubber
RubberWidget* parent;
RubberWidget* rubber;
QRegion mask;
TQRegion mask;
uint color;
void destroy() {
@ -775,46 +775,46 @@ class Rubber
rubber = 0;
}
}
void create(QRect& r, QRegion& mask);
void updateMask(QRegion& mask);
void create(TQRect& r, TQRegion& mask);
void updateMask(TQRegion& mask);
};
// DominoXXX classes to access protected (or private...) members
class DominoQGroupBox : public QGroupBox
class DominoTQGroupBox : public TQGroupBox
{
friend class DominoStyle;
public:
DominoQGroupBox( QWidget* parent=0, const char* name=0 )
: QGroupBox( parent, name ) {}
DominoTQGroupBox( TQWidget* parent=0, const char* name=0 )
: TQGroupBox( parent, name ) {}
};
class DominoQWidget : public QWidget
class DominoTQWidget : public TQWidget
{
friend class DominoStyleConfig;
friend class DominoStyle;
public:
DominoQWidget( QWidget* parent=0, const char* name=0 )
: QWidget( parent, name ) {}
DominoTQWidget( TQWidget* parent=0, const char* name=0 )
: TQWidget( parent, name ) {}
};
class DominoQFrame : public QFrame
class DominoTQFrame : public TQFrame
{
friend class DominoStyle;
public:
DominoQFrame( QFrame* parent=0, const char* name=0 )
: QFrame( parent, name ) {}
DominoTQFrame( TQFrame* parent=0, const char* name=0 )
: TQFrame( parent, name ) {}
};
// QWhatsThis
class DominoQWhatsThat : public QWidget
// TQWhatsThis
class DominoTQWhatsThat : public TQWidget
{
friend class DominoStyle;
public:
DominoQWhatsThat(): QWidget() {}
DominoTQWhatsThat(): TQWidget() {}
private:
QString text;
TQString text;
};
class DominoKToolBarButton : public KToolBarButton
@ -824,42 +824,42 @@ class DominoKToolBarButton : public KToolBarButton
DominoKToolBarButton(): KToolBarButton() {}
};
class DominoQListBoxItem : public QListBoxItem
class DominoTQListBoxItem : public TQListBoxItem
{
friend class DominoStyle;
public:
DominoQListBoxItem(): QListBoxItem() {}
DominoTQListBoxItem(): TQListBoxItem() {}
};
class DominoQTabWidget : public QTabWidget
class DominoTQTabWidget : public TQTabWidget
{
friend class DominoStyleConfig;
friend class DominoStyle;
public:
DominoQTabWidget( QWidget* parent=0, const char* name=0 )
: QTabWidget( parent, name ) {}
DominoTQTabWidget( TQWidget* parent=0, const char* name=0 )
: TQTabWidget( parent, name ) {}
};
class DominoQSpinBox : public QSpinBox
class DominoTQSpinBox : public TQSpinBox
{
friend class DominoStyle;
public:
DominoQSpinBox( QFrame* parent=0, const char* name=0 )
: QSpinBox( parent, name ) {}
DominoTQSpinBox( TQFrame* parent=0, const char* name=0 )
: TQSpinBox( parent, name ) {}
};
class DominoQPixmap : public QPixmap
class DominoTQPixmap : public TQPixmap
{
friend class DominoStyle;
public:
DominoQPixmap( int w, int h, int depth = -1) : QPixmap(w, h, depth) {}
DominoTQPixmap( int w, int h, int depth = -1) : TQPixmap(w, h, depth) {}
};
class DominoQButton : public QButton
class DominoTQButton : public TQButton
{
friend class DominoStyle;
public:
DominoQButton(): QButton() {}
DominoTQButton(): TQButton() {}
};
#endif // __DOMINO_H

File diff suppressed because it is too large Load Diff

@ -18,10 +18,10 @@
* Boston, MA 02111-1307, USA.
*/
#include <qcolor.h>
#include <tqcolor.h>
#include "misc.h"
#include <qimage.h>
#include <qpixmap.h>
#include <tqimage.h>
#include <tqpixmap.h>
#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
@ -36,33 +36,33 @@
QColor alphaBlendColors(const QColor &bgColor, const QColor &fgColor, const int a)
TQColor alphaBlendColors(const TQColor &bgColor, const TQColor &fgColor, const int a)
{
QRgb rgb = bgColor.rgb();
QRgb rgb_b = fgColor.rgb();
TQRgb rgb = bgColor.rgb();
TQRgb rgb_b = fgColor.rgb();
uint alpha;
if(a > 255) alpha = 255;
else if(a < 0) alpha = 0;
else alpha = a;
uint inv_alpha = 255 - alpha;
return QColor((qRed(rgb_b)*inv_alpha + qRed(rgb)*alpha)>>8,
(qGreen(rgb_b)*inv_alpha + qGreen(rgb)*alpha)>>8,
(qBlue(rgb_b)*inv_alpha + qBlue(rgb)*alpha)>>8 );
return TQColor((tqRed(rgb_b)*inv_alpha + tqRed(rgb)*alpha)>>8,
(tqGreen(rgb_b)*inv_alpha + tqGreen(rgb)*alpha)>>8,
(tqBlue(rgb_b)*inv_alpha + tqBlue(rgb)*alpha)>>8 );
}
QColor blendColors(const QColor &bgColor, const QColor &fgColor)
TQColor blendColors(const TQColor &bgColor, const TQColor &fgColor)
{
uint fg_r = fgColor.red();
uint fg_g = fgColor.green();
uint fg_b = fgColor.blue();
uint fg_a = qAlpha(fgColor.rgb());
uint fg_a = tqAlpha(fgColor.rgb());
uint bg_r = bgColor.red();
uint bg_g = bgColor.green();
uint bg_b = bgColor.blue();
uint bg_a = qAlpha(bgColor.rgb());
uint bg_a = tqAlpha(bgColor.rgb());
uint ac = 65025 - (255 - fg_a) * (255 - bg_a);
uint res_r = ((255 - fg_a) * bg_r * bg_a + fg_a * fg_r * 255 + 127) / ac;
@ -70,37 +70,37 @@ QColor blendColors(const QColor &bgColor, const QColor &fgColor)
uint res_b = ((255 - fg_a) * bg_b * bg_a + fg_a * fg_b * 255 + 127) / ac;
uint res_a = (ac+127)/255;
return QColor(qRgba(res_r,res_g, res_b, res_a ));
return TQColor(tqRgba(res_r,res_g, res_b, res_a ));
}
QImage tintImage(const QImage &img, const QColor &tintColor) {
TQImage tintImage(const TQImage &img, const TQColor &tintColor) {
QImage *result = new QImage(img.width(), img.height(), 32, 0, QImage::IgnoreEndian);
TQImage *result = new TQImage(img.width(), img.height(), 32, 0, TQImage::IgnoreEndian);
result->setAlphaBuffer( true );
register uint *data = (unsigned int*) img.bits();
register uint *resultData = (unsigned int*) result->bits();
register uint total = img.width()*img.height();
for ( uint current = 0 ; current < total ; ++current ) {
resultData[ current ] = qRgba( tintColor.red(), tintColor.green(), tintColor.blue(), qAlpha( data[ current ] ));
resultData[ current ] = tqRgba( tintColor.red(), tintColor.green(), tintColor.blue(), tqAlpha( data[ current ] ));
}
return *result;
}
QImage setImageOpacity(const QImage &img, const uint &p) {
QImage *result = new QImage(img.width(), img.height(), 32, 0, QImage::IgnoreEndian);
TQImage setImageOpacity(const TQImage &img, const uint &p) {
TQImage *result = new TQImage(img.width(), img.height(), 32, 0, TQImage::IgnoreEndian);
result->setAlphaBuffer( true );
register uint *data = (unsigned int*) img.bits();
register uint *resultData = (unsigned int*) result->bits();
register uint alpha;
register uint total = img.width()*img.height();
for ( uint current = 0 ; current < total ; ++current ) {
alpha = qAlpha( data[ current ] ) * p / 100;
resultData[ current ] = qRgba( qRed( data[ current ] ), qGreen( data[ current ] ), qBlue( data[ current ] ), alpha );
alpha = tqAlpha( data[ current ] ) * p / 100;
resultData[ current ] = tqRgba( tqRed( data[ current ] ), tqGreen( data[ current ] ), tqBlue( data[ current ] ), alpha );
}
return *result;
}
bool blend( const QImage & upper, const QImage & lower, QImage & output)
bool blend( const TQImage & upper, const TQImage & lower, TQImage & output)
// adopted from kimageeffect::blend - that is not endian safe and cannot handle complex alpha combinations...
{
if

@ -20,9 +20,9 @@
#ifndef __MISC_H
#define __MISC_H
QColor blendColors(const QColor &backgroundColor, const QColor &foregroundColor);
QColor alphaBlendColors(const QColor &backgroundColor, const QColor &foregroundColor, const int alpha);
QImage tintImage(const QImage &img, const QColor &tintColor);
QImage setImageOpacity(const QImage &img, const uint &p);
bool blend( const QImage & upper, const QImage & lower, QImage & output);
TQColor blendColors(const TQColor &backgroundColor, const TQColor &foregroundColor);
TQColor alphaBlendColors(const TQColor &backgroundColor, const TQColor &foregroundColor, const int alpha);
TQImage tintImage(const TQImage &img, const TQColor &tintColor);
TQImage setImageOpacity(const TQImage &img, const uint &p);
bool blend( const TQImage & upper, const TQImage & lower, TQImage & output);
#endif // __MISC_H

@ -18,9 +18,9 @@
#ifndef _QEMBED_Config
#define _QEMBED_Config
#include <qimage.h>
#include <qdict.h>
static const QRgb tabIndicatorArrow_data[] = {
#include <tqimage.h>
#include <tqdict.h>
static const TQRgb tabIndicatorArrow_data[] = {
0x0,0x0,0x0,0x10000000,0x4e000000,0x10000000,0x0,0x0,0x0,0x0,0x0,0x18000000,0x5f000000,0x66000000,
0x5f000000,0x18000000,0x0,0x0,0x0,0x21000000,0x63000000,0x66000000,0x66000000,0x66000000,0x63000000,0x20000000,0x0,0x28000000,
0x62000000,0x63000000,0x66000000,0x66000000,0x66000000,0x63000000,0x62000000,0x27000000,0x0,0x0,0x0,0x60000000,0x66000000,0x60000000,
@ -34,7 +34,7 @@ static struct ConfigEmbedImage {
int width, height, depth;
const unsigned char *data;
int numColors;
const QRgb *colorTable;
const TQRgb *colorTable;
bool alpha;
const char *name;
} config_embed_image_vec[] = {
@ -42,20 +42,20 @@ static struct ConfigEmbedImage {
{ 0, 0, 0, 0, 0, 0, 0, 0 }
};
static const QImage& config_findImage( const QString& name )
static const TQImage& config_findImage( const TQString& name )
{
static QDict<QImage> dict;
QImage* img = dict.find( name );
static TQDict<TQImage> dict;
TQImage* img = dict.find( name );
if ( !img ) {
for ( int i = 0; config_embed_image_vec[i].data; i++ ) {
if ( strcmp(config_embed_image_vec[i].name, name.latin1()) == 0 ) {
img = new QImage((uchar*)config_embed_image_vec[i].data,
img = new TQImage((uchar*)config_embed_image_vec[i].data,
config_embed_image_vec[i].width,
config_embed_image_vec[i].height,
config_embed_image_vec[i].depth,
(QRgb*)config_embed_image_vec[i].colorTable,
(TQRgb*)config_embed_image_vec[i].colorTable,
config_embed_image_vec[i].numColors,
QImage::BigEndian );
TQImage::BigEndian );
if ( config_embed_image_vec[i].alpha )
img->setAlphaBuffer( TRUE );
dict.insert( name, img );
@ -63,7 +63,7 @@ static const QImage& config_findImage( const QString& name )
}
}
if ( !img ) {
static QImage dummy;
static TQImage dummy;
return dummy;
}
}

File diff suppressed because it is too large Load Diff

@ -31,7 +31,7 @@ DEALINGS IN THE SOFTWARE.
#define DOMINO_CONF_H
#include <../domino/domino.h>
#include <qlineedit.h>
#include <tqlineedit.h>
class DSpinBox;
@ -53,175 +53,175 @@ struct DSurface;
class SchemeEntry {
public:
SchemeEntry(const QString &_fileName, const QString &_schemeName, const bool &_deletable)
SchemeEntry(const TQString &_fileName, const TQString &_schemeName, const bool &_deletable)
: fileName(_fileName), schemeName(_schemeName), deletable(_deletable) { }
QString getSchemeName() const { return schemeName; }
QString getFileName() const { return fileName; }
TQString getSchemeName() const { return schemeName; }
TQString getFileName() const { return fileName; }
bool isDeletable() const { return deletable; }
private:
QString fileName;
QString schemeName;
TQString fileName;
TQString schemeName;
bool deletable;
};
class SchemeList : public QPtrList<SchemeEntry> {
class SchemeList : public TQPtrList<SchemeEntry> {
public:
SchemeList()
{ setAutoDelete(true); }
};
class DominoStyleConfig: public QWidget
class DominoStyleConfig: public TQWidget
{
Q_OBJECT
public:
DominoStyleConfig(QWidget* parent);
DominoStyleConfig(TQWidget* parent);
~DominoStyleConfig();
QFrame* frame3;
QListBox* listBox1;
QHeader* header1;
TQFrame* frame3;
TQListBox* listBox1;
TQHeader* header1;
DominoKTabWidget* tabWidget2;
QWidget* tab1;
QGroupBox* groupBox22;
QLabel* textLabel1_2;
TQWidget* tab1;
TQGroupBox* groupBox22;
TQLabel* textLabel1_2;
KColorButton* kColorButton27_2;
QGroupBox* groupBox10_2_2_2;
QPushButton* pushButton16;
QGroupBox* groupBox8_2_2_2;
QLabel* textLabel4_3_2_2_2;
TQGroupBox* groupBox10_2_2_2;
TQPushButton* pushButton16;
TQGroupBox* groupBox8_2_2_2;
TQLabel* textLabel4_3_2_2_2;
DSpinBox* spinBox2_2_2_2_2;
QLabel* textLabel2_2_2_2_2;
TQLabel* textLabel2_2_2_2_2;
KColorButton* kColorButton1_2_2_2_2;
QLabel* textLabel3_3_2_2_2;
TQLabel* textLabel3_3_2_2_2;
DSpinBox* spinBox1_2_2_2_2;
QLabel* textLabel1_4_2_2_2;
TQLabel* textLabel1_4_2_2_2;
KColorButton* kColorButton2_4_2_2_2;
QGroupBox* groupBox9_2_2_2;
QLabel* textLabel4_4_2_2_2;
TQGroupBox* groupBox9_2_2_2;
TQLabel* textLabel4_4_2_2_2;
DSpinBox* spinBox2_3_2_2_2;
QLabel* textLabel3_4_2_2_2;
TQLabel* textLabel3_4_2_2_2;
DSpinBox* spinBox1_3_2_2_2;
KColorButton* kColorButton1_3_2_2_2;
KColorButton* kColorButton2_5_2_2_2;
QLabel* textLabel1_5_2_2_2;
QLabel* textLabel2_3_2_2_2;
QLabel* textLabel7_4;
QComboBox* comboBox3_4;
QPushButton* pushButton4_4;
QWidget* tab2;
QGroupBox* groupBox22_2;
QGroupBox* groupBox8_2_2_2_2;
QLabel* textLabel4_3_2_2_2_2;
TQLabel* textLabel1_5_2_2_2;
TQLabel* textLabel2_3_2_2_2;
TQLabel* textLabel7_4;
TQComboBox* comboBox3_4;
TQPushButton* pushButton4_4;
TQWidget* tab2;
TQGroupBox* groupBox22_2;
TQGroupBox* groupBox8_2_2_2_2;
TQLabel* textLabel4_3_2_2_2_2;
DSpinBox* spinBox2_2_2_2_2_2;
QLabel* textLabel2_2_2_2_2_2;
TQLabel* textLabel2_2_2_2_2_2;
KColorButton* kColorButton1_2_2_2_2_2;
QLabel* textLabel3_3_2_2_2_2;
TQLabel* textLabel3_3_2_2_2_2;
DSpinBox* spinBox1_2_2_2_2_2;
QLabel* textLabel1_4_2_2_2_2;
TQLabel* textLabel1_4_2_2_2_2;
KColorButton* kColorButton2_4_2_2_2_2;
QGroupBox* groupBox9_2_2_2_2;
QLabel* textLabel4_4_2_2_2_2;
TQGroupBox* groupBox9_2_2_2_2;
TQLabel* textLabel4_4_2_2_2_2;
DSpinBox* spinBox2_3_2_2_2_2;
QLabel* textLabel3_4_2_2_2_2;
TQLabel* textLabel3_4_2_2_2_2;
DSpinBox* spinBox1_3_2_2_2_2;
KColorButton* kColorButton1_3_2_2_2_2;
KColorButton* kColorButton2_5_2_2_2_2;
QLabel* textLabel1_5_2_2_2_2;
QLabel* textLabel2_3_2_2_2_2;
QLabel* textLabel1_2_2;
TQLabel* textLabel1_5_2_2_2_2;
TQLabel* textLabel2_3_2_2_2_2;
TQLabel* textLabel1_2_2;
KColorButton* kColorButton27_2_2;
QGroupBox* groupBox10_2_2_2_2;
QComboBox* comboBox17;
TQGroupBox* groupBox10_2_2_2_2;
TQComboBox* comboBox17;
DSpinBox* spinBox44;
QLabel* textLabel7_4_2;
QComboBox* comboBox3_4_2;
QPushButton* pushButton4_4_2;
QWidget* tab3;
QGroupBox* groupBox22_2_2;
QGroupBox* groupBox8_2_2_2_2_4;
QLabel* textLabel4_3_2_2_2_2_4;
TQLabel* textLabel7_4_2;
TQComboBox* comboBox3_4_2;
TQPushButton* pushButton4_4_2;
TQWidget* tab3;
TQGroupBox* groupBox22_2_2;
TQGroupBox* groupBox8_2_2_2_2_4;
TQLabel* textLabel4_3_2_2_2_2_4;
DSpinBox* spinBox2_2_2_2_2_2_4;
QLabel* textLabel2_2_2_2_2_2_4;
TQLabel* textLabel2_2_2_2_2_2_4;
KColorButton* kColorButton1_2_2_2_2_2_4;
QLabel* textLabel3_3_2_2_2_2_4;
TQLabel* textLabel3_3_2_2_2_2_4;
DSpinBox* spinBox1_2_2_2_2_2_4;
QLabel* textLabel1_4_2_2_2_2_4;
TQLabel* textLabel1_4_2_2_2_2_4;
KColorButton* kColorButton2_4_2_2_2_2_4;
QGroupBox* groupBox9_2_2_2_2_4;
QLabel* textLabel4_4_2_2_2_2_4;
TQGroupBox* groupBox9_2_2_2_2_4;
TQLabel* textLabel4_4_2_2_2_2_4;
DSpinBox* spinBox2_3_2_2_2_2_4;
QLabel* textLabel3_4_2_2_2_2_4;
TQLabel* textLabel3_4_2_2_2_2_4;
DSpinBox* spinBox1_3_2_2_2_2_4;
KColorButton* kColorButton1_3_2_2_2_2_4;
KColorButton* kColorButton2_5_2_2_2_2_4;
QLabel* textLabel1_5_2_2_2_2_4;
QLabel* textLabel2_3_2_2_2_2_4;
QGroupBox* groupBox10_2_2_2_2_4;
QScrollBar* scrollBar5;
QScrollBar* scrollBar6;
TQLabel* textLabel1_5_2_2_2_2_4;
TQLabel* textLabel2_3_2_2_2_2_4;
TQGroupBox* groupBox10_2_2_2_2_4;
TQScrollBar* scrollBar5;
TQScrollBar* scrollBar6;
KColorButton* kColorButton27_2_2_2;
QLabel* textLabel1_2_2_2;
QComboBox* comboBox7;
QLabel* textLabel7_4_2_3;
QComboBox* comboBox3_4_2_3;
QPushButton* pushButton4_4_2_3;
QWidget* tab4;
QGroupBox* groupBox22_2_2_3;
TQLabel* textLabel1_2_2_2;
TQComboBox* comboBox7;
TQLabel* textLabel7_4_2_3;
TQComboBox* comboBox3_4_2_3;
TQPushButton* pushButton4_4_2_3;
TQWidget* tab4;
TQGroupBox* groupBox22_2_2_3;
KColorButton* kColorButton27_2_2_2_2;
QLabel* textLabel1_2_2_2_2;
QGroupBox* groupBox10_2_2_2_2_4_3;
QGroupBox* groupBox8_2_2_2_2_4_3;
QLabel* textLabel4_3_2_2_2_2_4_3;
TQLabel* textLabel1_2_2_2_2;
TQGroupBox* groupBox10_2_2_2_2_4_3;
TQGroupBox* groupBox8_2_2_2_2_4_3;
TQLabel* textLabel4_3_2_2_2_2_4_3;
DSpinBox* spinBox2_2_2_2_2_2_4_3;
QLabel* textLabel2_2_2_2_2_2_4_3;
TQLabel* textLabel2_2_2_2_2_2_4_3;
KColorButton* kColorButton1_2_2_2_2_2_4_3;
QLabel* textLabel3_3_2_2_2_2_4_3;
TQLabel* textLabel3_3_2_2_2_2_4_3;
DSpinBox* spinBox1_2_2_2_2_2_4_3;
QLabel* textLabel1_4_2_2_2_2_4_3;
TQLabel* textLabel1_4_2_2_2_2_4_3;
KColorButton* kColorButton2_4_2_2_2_2_4_3;
QGroupBox* groupBox9_2_2_2_2_4_3;
QLabel* textLabel4_4_2_2_2_2_4_3;
TQGroupBox* groupBox9_2_2_2_2_4_3;
TQLabel* textLabel4_4_2_2_2_2_4_3;
DSpinBox* spinBox2_3_2_2_2_2_4_3;
QLabel* textLabel3_4_2_2_2_2_4_3;
TQLabel* textLabel3_4_2_2_2_2_4_3;
DSpinBox* spinBox1_3_2_2_2_2_4_3;
KColorButton* kColorButton1_3_2_2_2_2_4_3;
KColorButton* kColorButton2_5_2_2_2_2_4_3;
QLabel* textLabel1_5_2_2_2_2_4_3;
QLabel* textLabel2_3_2_2_2_2_4_3;
QLabel* textLabel7_4_2_3_3;
QComboBox* comboBox3_4_2_3_3;
QPushButton* pushButton4_4_2_3_3;
QWidget* tab5;
QGroupBox* groupBox22_2_2_3_2;
QGroupBox* groupBox8_2_2_2_2_4_3_2;
QLabel* textLabel4_3_2_2_2_2_4_3_2;
TQLabel* textLabel1_5_2_2_2_2_4_3;
TQLabel* textLabel2_3_2_2_2_2_4_3;
TQLabel* textLabel7_4_2_3_3;
TQComboBox* comboBox3_4_2_3_3;
TQPushButton* pushButton4_4_2_3_3;
TQWidget* tab5;
TQGroupBox* groupBox22_2_2_3_2;
TQGroupBox* groupBox8_2_2_2_2_4_3_2;
TQLabel* textLabel4_3_2_2_2_2_4_3_2;
DSpinBox* spinBox2_2_2_2_2_2_4_3_2;
QLabel* textLabel2_2_2_2_2_2_4_3_2;
TQLabel* textLabel2_2_2_2_2_2_4_3_2;
KColorButton* kColorButton1_2_2_2_2_2_4_3_2;
QLabel* textLabel3_3_2_2_2_2_4_3_2;
TQLabel* textLabel3_3_2_2_2_2_4_3_2;
DSpinBox* spinBox1_2_2_2_2_2_4_3_2;
QLabel* textLabel1_4_2_2_2_2_4_3_2;
TQLabel* textLabel1_4_2_2_2_2_4_3_2;
KColorButton* kColorButton2_4_2_2_2_2_4_3_2;
KColorButton* kColorButton27_2_2_2_3;
QLabel* textLabel1_2_2_2_3;
QGroupBox* groupBox10_2_2_2_2_4_3_2;
TQLabel* textLabel1_2_2_2_3;
TQGroupBox* groupBox10_2_2_2_2_4_3_2;
PreviewRadioButton* radioButton2;
PreviewCheckBox* checkBox2;
QGroupBox* groupBox9_2_2_2_2_4_3_2;
QLabel* textLabel4_4_2_2_2_2_4_3_2;
TQGroupBox* groupBox9_2_2_2_2_4_3_2;
TQLabel* textLabel4_4_2_2_2_2_4_3_2;
DSpinBox* spinBox2_3_2_2_2_2_4_3_2;
QLabel* textLabel3_4_2_2_2_2_4_3_2;
TQLabel* textLabel3_4_2_2_2_2_4_3_2;
DSpinBox* spinBox1_3_2_2_2_2_4_3_2;
KColorButton* kColorButton1_3_2_2_2_2_4_3_2;
KColorButton* kColorButton2_5_2_2_2_2_4_3_2;
QLabel* textLabel1_5_2_2_2_2_4_3_2;
QLabel* textLabel2_3_2_2_2_2_4_3_2;
QLabel* textLabel7_4_2_3_3_2;
QComboBox* comboBox3_4_2_3_3_2;
QPushButton* pushButton4_4_2_3_3_2;
TQLabel* textLabel1_5_2_2_2_2_4_3_2;
TQLabel* textLabel2_3_2_2_2_2_4_3_2;
TQLabel* textLabel7_4_2_3_3_2;
TQComboBox* comboBox3_4_2_3_3_2;
TQPushButton* pushButton4_4_2_3_3_2;
// KTabWidget *prevTopTabWidget;
// KTabWidget *prevBottomTabWidget;
TabWidgetIndicator* prevBottomPage1;
@ -232,51 +232,51 @@ public:
TabWidgetIndicator* prevTopPage3;
PreviewTabBar* tabBarBottom;
PreviewTabBar* tabBarTop;
QHBoxLayout* tabComboLayout;
TQHBoxLayout* tabComboLayout;
// tab 3 - load/save
// KTabWidget* tabWidget3;
QWidget* tab;
QGroupBox* groupBox_ls;
QListView* listView_ls;
QPushButton* loadButton;
QPushButton* saveButton;
QPushButton* deleteButton;
QPushButton* importButton;
QWidget* tab_2;
TQWidget* tab;
TQGroupBox* groupBox_ls;
TQListView* listView_ls;
TQPushButton* loadButton;
TQPushButton* saveButton;
TQPushButton* deleteButton;
TQPushButton* importButton;
TQWidget* tab_2;
// focusIndicator
QGroupBox* indicateFocusFrame;
QCheckBox* indicateFocus;
QLabel* labelIndicatorColor;
QLabel* labelIndicatorBtnColor;
TQGroupBox* indicateFocusFrame;
TQCheckBox* indicateFocus;
TQLabel* labelIndicatorColor;
TQLabel* labelIndicatorBtnColor;
IndicatorPrevWidget* indicatorPrevWidget;
IndicatorPrevButton* indicatorPrevButton;
QLabel* labelIndicatorColorOpacity;
QLabel* labelIndicatorBtnColorOpacity;
TQLabel* labelIndicatorColorOpacity;
TQLabel* labelIndicatorBtnColorOpacity;
QGroupBox* gb1;
QGroupBox* gb2;
QGroupBox* gb3;
TQGroupBox* gb1;
TQGroupBox* gb2;
TQGroupBox* gb3;
// text effect
QGroupBox* textEffectFrame;
QLabel* labelTextEffectColor;
QLabel* labelTextEffectButtonColor;
TQGroupBox* textEffectFrame;
TQLabel* labelTextEffectColor;
TQLabel* labelTextEffectButtonColor;
TextEffectPrevWidget* textEffectPrevWidget;
TextEffectPrevButton* textEffectPrevButton;
QLabel* labelTextEffectColorOpacity;
QLabel* labelTextEffectButtonColorOpacity;
QLabel* labelTextEffectPos;
QLabel* labelTextEffectButtonPos;
TQLabel* labelTextEffectColorOpacity;
TQLabel* labelTextEffectButtonColorOpacity;
TQLabel* labelTextEffectPos;
TQLabel* labelTextEffectButtonPos;
QCheckBox* drawButtonSunkenShadow;
TQCheckBox* drawButtonSunkenShadow;
QLabel* buttonTypLabel;
QLabel* labelButtonContourColors;
QPushButton* buttonContourPrevButton;
QLabel* labelPopupMenuOptions;
TQLabel* buttonTypLabel;
TQLabel* labelButtonContourColors;
TQPushButton* buttonContourPrevButton;
TQLabel* labelPopupMenuOptions;
signals:
void changed(bool);
@ -290,54 +290,54 @@ protected slots:
void updateChanged();
virtual void languageChange();
void userLoadScrollBarConfig();
void testCanDecode(const QDragMoveEvent * e, bool & accept);
void testCanDecode(const TQDragMoveEvent * e, bool & accept);
private slots:
void btnPv1(const QColor&);
void btnPv2(const QColor&);
void btnPv3(const QColor&);
void btnPv4(const QColor&);
void btnPv5(const QColor&);
void btnPv1(const TQColor&);
void btnPv2(const TQColor&);
void btnPv3(const TQColor&);
void btnPv4(const TQColor&);
void btnPv5(const TQColor&);
void btnPv6(int);
void btnPv7(int);
void btnPv8(int);
void btnPv9(int);
void hPv1(const QColor&);
void hPv2(const QColor&);
void hPv3(const QColor&);
void hPv4(const QColor&);
void hPv5(const QColor&);
void hPv1(const TQColor&);
void hPv2(const TQColor&);
void hPv3(const TQColor&);
void hPv4(const TQColor&);
void hPv5(const TQColor&);
void hPv6(int);
void hPv7(int);
void hPv8(int);
void hPv9(int);
void chbPv1(const QColor&);
void chbPv2(const QColor&);
void chbPv3(const QColor&);
void chbPv4(const QColor&);
void chbPv5(const QColor&);
void chbPv1(const TQColor&);
void chbPv2(const TQColor&);
void chbPv3(const TQColor&);
void chbPv4(const TQColor&);
void chbPv5(const TQColor&);
void chbPv6(int);
void chbPv7(int);
void chbPv8(int);
void chbPv9(int);
void sbPv1(const QColor&);
void sbPv2(const QColor&);
void sbPv3(const QColor&);
void sbPv4(const QColor&);
void sbPv5(const QColor&);
void sbPv1(const TQColor&);
void sbPv2(const TQColor&);
void sbPv3(const TQColor&);
void sbPv4(const TQColor&);
void sbPv5(const TQColor&);
void sbPv6(int);
void sbPv7(int);
void sbPv8(int);
void sbPv9(int);
void tabPv1(const QColor&col);
void tabPv2(const QColor&col);
void tabPv3(const QColor&col);
void tabPv4(const QColor&col);
void tabPv5(const QColor&col);
void tabPv1(const TQColor&col);
void tabPv2(const TQColor&col);
void tabPv3(const TQColor&col);
void tabPv4(const TQColor&col);
void tabPv5(const TQColor&col);
void tabPv6(int);
void tabPv7(int);
void tabPv8(int);
@ -348,7 +348,7 @@ private slots:
void slotSave();
void slotDelete();
void slotImport();
void slotDelPerm(QListViewItem*);
void slotDelPerm(TQListViewItem*);
void scrollBar1GradientChanged();
void scrollBar2GradientChanged();
void scrollBarNumGradientsChanged(int g=0);
@ -390,43 +390,43 @@ protected:
bool hasCompositeExtension;
QVBoxLayout* frame3Layout;
QVBoxLayout* layout1;
QGroupBox* grFrame;
QLabel* grValueLabel;
TQVBoxLayout* frame3Layout;
TQVBoxLayout* layout1;
TQGroupBox* grFrame;
TQLabel* grValueLabel;
//We store settings directly in widgets to
//avoid the hassle of sync'ing things
QCheckBox* animateProgressBar;
QCheckBox* drawTriangularExpander;
QCheckBox* customCheckMarkColor;
TQCheckBox* animateProgressBar;
TQCheckBox* drawTriangularExpander;
TQCheckBox* customCheckMarkColor;
KColorButton* checkMarkColor;
QCheckBox* customToolTipColor;
TQCheckBox* customToolTipColor;
KColorButton* toolTipColor;
QCheckBox* highlightToolBtnIcons;
QCheckBox* toolBtnAsBtn;
TQCheckBox* highlightToolBtnIcons;
TQCheckBox* toolBtnAsBtn;
QLabel* labelRubberOptions;
QRadioButton* argbRubber;
QRadioButton* lineRubber;
QRadioButton* distRubber;
TQLabel* labelRubberOptions;
TQRadioButton* argbRubber;
TQRadioButton* lineRubber;
TQRadioButton* distRubber;
int rubberBandType;
QLabel* labelArgbRubberColor;
QLabel* labelArgbRubberOpacity;
TQLabel* labelArgbRubberColor;
TQLabel* labelArgbRubberOpacity;
KColorButton* argbRubberColor;
DSpinBox* argbRubberOpacity;
QCheckBox* smoothScrolling;
TQCheckBox* smoothScrolling;
DSpinBox* buttonHeightAdjustment;
QLabel* buttonHeightAdjustmentLabel;
QCheckBox* customPopupMenuColor;
TQLabel* buttonHeightAdjustmentLabel;
TQCheckBox* customPopupMenuColor;
KColorButton* popupMenuColor;
QCheckBox* centerTabs;
QCheckBox* customSelMenuItemColor;
TQCheckBox* centerTabs;
TQCheckBox* customSelMenuItemColor;
KColorButton* selMenuItemColor;
QCheckBox* drawPopupMenuGradient;
QCheckBox* indentPopupMenuItems;
TQCheckBox* drawPopupMenuGradient;
TQCheckBox* indentPopupMenuItems;
//Original settings, for accurate dirtiness tracking
bool origAnimProgressBar;
@ -435,40 +435,40 @@ protected:
bool origHighlightToolBtnIcons;
bool origCustomCheckMarkColor;
QColor origCheckMarkColor;
TQColor origCheckMarkColor;
bool origTintGroupBoxBackground;
int origGroupBoxBrightness;
bool origCustomGroupBoxBackgroundColor;
QColor origGroupBoxBackgroundColor;
TQColor origGroupBoxBackgroundColor;
bool origCustomToolTipColor;
QColor origToolTipColor;
TQColor origToolTipColor;
int origRubberBandType;
QColor origArgbRubberColor;
TQColor origArgbRubberColor;
int origArgbRubberOpacity;
bool origSmoothScrolling;
int origButtonHeightAdjustment;
int origButtonContourType;
bool origCustomPopupMenuColor;
QColor origPopupMenuColor;
TQColor origPopupMenuColor;
bool origCustomSelMenuItemColor;
QColor origSelMenuItemColor;
TQColor origSelMenuItemColor;
bool origDrawPopupMenuGradient;
bool origIndentPopupMenuItems;
bool origCenterTabs;
bool origIndicateFocus;
QColor origIndicatorColor;
QColor origIndicatorBtnColor;
TQColor origIndicatorColor;
TQColor origIndicatorBtnColor;
int origIndicatorOpacity;
int origIndicatorBtnOpacity;
bool origDrawUnderline;
int origTextEffectMode;
QColor origTextEffectColor;
QColor origTextEffectButtonColor;
TQColor origTextEffectColor;
TQColor origTextEffectButtonColor;
bool origDrawTextEffect;
int origTextEffectOpacity;
int origTextEffectButtonOpacity;
@ -477,153 +477,153 @@ protected:
bool origDrawButtonSunkenShadow;
QColor origButtonContourColor;
QColor origButtonDefaultButtonContourColor;
QColor origButtonMouseOverContourColor;
QColor origButtonPressedContourColor;
TQColor origButtonContourColor;
TQColor origButtonDefaultButtonContourColor;
TQColor origButtonMouseOverContourColor;
TQColor origButtonPressedContourColor;
int konqTabBarContrast;
QString currentConfig;
QLabel* currentConfigLabel;
TQString currentConfig;
TQLabel* currentConfigLabel;
SchemeList* schemeList;
bool configLoaded;
DSurface* currentScrollBarSurface;
DSurface* currentTabSurface;
void loadConfig(const QString &name);
void saveConfig(const QString &fileName, const QString &schemeName);
void loadConfig(const TQString &name);
void saveConfig(const TQString &fileName, const TQString &schemeName);
void getConfigSchemes();
//////////////////////////////////////////////// form:
//protected:
QVBoxLayout* tab1Layout;
QGridLayout* groupBox22Layout;
QSpacerItem* spacer6;
QSpacerItem* spacer3;
QSpacerItem* spacer43;
QSpacerItem* spacer46;
QSpacerItem* spacer2;
QVBoxLayout* groupBox10_2_2_2Layout;
QGridLayout* groupBox8_2_2_2Layout;
QGridLayout* groupBox9_2_2_2Layout;
QHBoxLayout* layout9;
QSpacerItem* spacer7;
QVBoxLayout* tab2Layout;
QGridLayout* groupBox22_2Layout;
QSpacerItem* spacer46_2;
QSpacerItem* spacer43_2;
QSpacerItem* spacer6_2;
QSpacerItem* spacer2_2;
QSpacerItem* spacer3_2;
QGridLayout* groupBox8_2_2_2_2Layout;
QGridLayout* groupBox9_2_2_2_2Layout;
QVBoxLayout* groupBox10_2_2_2_2Layout;
QHBoxLayout* layout9_2;
QSpacerItem* spacer7_2;
QVBoxLayout* tab3Layout;
QGridLayout* groupBox22_2_2Layout;
QSpacerItem* spacer46_2_2;
QSpacerItem* spacer43_2_2;
QSpacerItem* spacer3_2_2;
QSpacerItem* spacer6_2_2;
QSpacerItem* spacer2_2_2;
QGridLayout* groupBox8_2_2_2_2_4Layout;
QGridLayout* groupBox9_2_2_2_2_4Layout;
QGridLayout* groupBox10_2_2_2_2_4Layout;
QSpacerItem* spacer35;
QHBoxLayout* layout6;
QSpacerItem* spacer7_2_3;
QVBoxLayout* tab4Layout;
QGridLayout* groupBox22_2_2_3Layout;
QSpacerItem* spacer3_2_2_2;
QSpacerItem* spacer6_2_2_2;
QSpacerItem* spacer2_2_2_2;
QSpacerItem* spacer46_2_2_2;
QSpacerItem* spacer43_2_2_2;
QVBoxLayout* groupBox10_2_2_2_2_4_3Layout;
QGridLayout* groupBox8_2_2_2_2_4_3Layout;
QGridLayout* groupBox9_2_2_2_2_4_3Layout;
QHBoxLayout* layout21;
QSpacerItem* spacer7_2_3_3;
QVBoxLayout* tab5Layout;
QGridLayout* groupBox22_2_2_3_2Layout;
QSpacerItem* spacer3_2_2_3;
QSpacerItem* spacer6_2_2_3;
QSpacerItem* spacer2_2_2_3;
QSpacerItem* spacer46_2_2_3;
QSpacerItem* spacer43_2_2_2_2;
QGridLayout* groupBox8_2_2_2_2_4_3_2Layout;
QVBoxLayout* groupBox10_2_2_2_2_4_3_2Layout;
QGridLayout* groupBox9_2_2_2_2_4_3_2Layout;
QHBoxLayout* layout22;
QSpacerItem* spacer7_2_3_3_2;
TQVBoxLayout* tab1Layout;
TQGridLayout* groupBox22Layout;
TQSpacerItem* spacer6;
TQSpacerItem* spacer3;
TQSpacerItem* spacer43;
TQSpacerItem* spacer46;
TQSpacerItem* spacer2;
TQVBoxLayout* groupBox10_2_2_2Layout;
TQGridLayout* groupBox8_2_2_2Layout;
TQGridLayout* groupBox9_2_2_2Layout;
TQHBoxLayout* layout9;
TQSpacerItem* spacer7;
TQVBoxLayout* tab2Layout;
TQGridLayout* groupBox22_2Layout;
TQSpacerItem* spacer46_2;
TQSpacerItem* spacer43_2;
TQSpacerItem* spacer6_2;
TQSpacerItem* spacer2_2;
TQSpacerItem* spacer3_2;
TQGridLayout* groupBox8_2_2_2_2Layout;
TQGridLayout* groupBox9_2_2_2_2Layout;
TQVBoxLayout* groupBox10_2_2_2_2Layout;
TQHBoxLayout* layout9_2;
TQSpacerItem* spacer7_2;
TQVBoxLayout* tab3Layout;
TQGridLayout* groupBox22_2_2Layout;
TQSpacerItem* spacer46_2_2;
TQSpacerItem* spacer43_2_2;
TQSpacerItem* spacer3_2_2;
TQSpacerItem* spacer6_2_2;
TQSpacerItem* spacer2_2_2;
TQGridLayout* groupBox8_2_2_2_2_4Layout;
TQGridLayout* groupBox9_2_2_2_2_4Layout;
TQGridLayout* groupBox10_2_2_2_2_4Layout;
TQSpacerItem* spacer35;
TQHBoxLayout* layout6;
TQSpacerItem* spacer7_2_3;
TQVBoxLayout* tab4Layout;
TQGridLayout* groupBox22_2_2_3Layout;
TQSpacerItem* spacer3_2_2_2;
TQSpacerItem* spacer6_2_2_2;
TQSpacerItem* spacer2_2_2_2;
TQSpacerItem* spacer46_2_2_2;
TQSpacerItem* spacer43_2_2_2;
TQVBoxLayout* groupBox10_2_2_2_2_4_3Layout;
TQGridLayout* groupBox8_2_2_2_2_4_3Layout;
TQGridLayout* groupBox9_2_2_2_2_4_3Layout;
TQHBoxLayout* layout21;
TQSpacerItem* spacer7_2_3_3;
TQVBoxLayout* tab5Layout;
TQGridLayout* groupBox22_2_2_3_2Layout;
TQSpacerItem* spacer3_2_2_3;
TQSpacerItem* spacer6_2_2_3;
TQSpacerItem* spacer2_2_2_3;
TQSpacerItem* spacer46_2_2_3;
TQSpacerItem* spacer43_2_2_2_2;
TQGridLayout* groupBox8_2_2_2_2_4_3_2Layout;
TQVBoxLayout* groupBox10_2_2_2_2_4_3_2Layout;
TQGridLayout* groupBox9_2_2_2_2_4_3_2Layout;
TQHBoxLayout* layout22;
TQSpacerItem* spacer7_2_3_3_2;
// tab 3 - load/save
QVBoxLayout* tab_lsLayout;
QHBoxLayout* groupBox_lsLayout;
QVBoxLayout* layout8;
QSpacerItem* spacer32;
TQVBoxLayout* tab_lsLayout;
TQHBoxLayout* groupBox_lsLayout;
TQVBoxLayout* layout8;
TQSpacerItem* spacer32;
};
class DSpinBox : public QSpinBox
class DSpinBox : public TQSpinBox
{
public:
DSpinBox(QWidget *parent, const char* name=0): QSpinBox(parent, name){};
DSpinBox( int minValue, int maxValue, int step = 1, QWidget* parent=0, const char* name=0 ): QSpinBox(minValue, maxValue, step, parent, name){};
DSpinBox(TQWidget *parent, const char* name=0): TQSpinBox(parent, name){};
DSpinBox( int minValue, int maxValue, int step = 1, TQWidget* parent=0, const char* name=0 ): TQSpinBox(minValue, maxValue, step, parent, name){};
void setAlignRight() {
this->editor()->setAlignment(Qt::AlignRight);
this->editor()->setAlignment(TQt::AlignRight);
}
QSpinWidget* spinWidget() {
return static_cast<QSpinWidget*>(editor()->parentWidget());
TQSpinWidget* spinWidget() {
return static_cast<TQSpinWidget*>(editor()->parentWidget());
}
};
class PreviewCheckBox : public QCheckBox
class PreviewCheckBox : public TQCheckBox
{
public:
PreviewCheckBox(QWidget *parent, const char * name = 0 ): QCheckBox( parent, name){};
void paintEvent(QPaintEvent *event);
void drawButton(QPainter *paint);
PreviewCheckBox(TQWidget *parent, const char * name = 0 ): TQCheckBox( parent, name){};
void paintEvent(TQPaintEvent *event);
void drawButton(TQPainter *paint);
};
class PreviewRadioButton : public QRadioButton
class PreviewRadioButton : public TQRadioButton
{
public:
PreviewRadioButton(QWidget *parent, const char * name = 0 ): QRadioButton( parent, name){};
void paintEvent(QPaintEvent *event);
void drawButton(QPainter *paint);
PreviewRadioButton(TQWidget *parent, const char * name = 0 ): TQRadioButton( parent, name){};
void paintEvent(TQPaintEvent *event);
void drawButton(TQPainter *paint);
};
class PreviewTabBar : public QTabBar
class PreviewTabBar : public TQTabBar
{
public:
PreviewTabBar(QWidget *parent, const char * name = 0 ): QTabBar( parent, name){};
void mousePressEvent(QMouseEvent* event);
void paintEvent(QPaintEvent *event);
PreviewTabBar(TQWidget *parent, const char * name = 0 ): TQTabBar( parent, name){};
void mousePressEvent(TQMouseEvent* event);
void paintEvent(TQPaintEvent *event);
};
class IndicatorPrevButton : public QPushButton
class IndicatorPrevButton : public TQPushButton
{
public:
IndicatorPrevButton(QWidget *parent, const char * name = 0 ): QPushButton( parent, name){};
void paintEvent(QPaintEvent *event);
IndicatorPrevButton(TQWidget *parent, const char * name = 0 ): TQPushButton( parent, name){};
void paintEvent(TQPaintEvent *event);
};
class IndicatorPrevWidget : public QPushButton /*QWidget*/
class IndicatorPrevWidget : public TQPushButton /*TQWidget*/
{
public:
IndicatorPrevWidget(QWidget *parent, const char * name = 0) : QPushButton( parent, name){};
void paintEvent(QPaintEvent *event);
IndicatorPrevWidget(TQWidget *parent, const char * name = 0) : TQPushButton( parent, name){};
void paintEvent(TQPaintEvent *event);
};
class DominoKTabWidget : public KTabWidget
@ -631,7 +631,7 @@ class DominoKTabWidget : public KTabWidget
Q_OBJECT
friend class DominoStyleConfig;
public:
DominoKTabWidget( QWidget* parent=0, const char* name=0 ) : KTabWidget( parent, name ) {}
DominoKTabWidget( TQWidget* parent=0, const char* name=0 ) : KTabWidget( parent, name ) {}
protected slots:
void wheelDelta( int ) {};
};
@ -641,29 +641,29 @@ class DominoKTabPrevWidget : public KTabWidget
friend class DominoStyleConfig;
friend class TabWidgetIndicator;
public:
DominoKTabPrevWidget( QWidget* parent=0, const char* name=0 ) : KTabWidget( parent, name ) {}
DominoKTabPrevWidget( TQWidget* parent=0, const char* name=0 ) : KTabWidget( parent, name ) {}
};
class TabWidgetIndicator : public QWidget
class TabWidgetIndicator : public TQWidget
{
friend class DominoStyleConfig;
public:
TabWidgetIndicator( QWidget* parent=0, const char* name=0 ) : QWidget( parent, name ) {}
void paintEvent(QPaintEvent *event);
TabWidgetIndicator( TQWidget* parent=0, const char* name=0 ) : TQWidget( parent, name ) {}
void paintEvent(TQPaintEvent *event);
};
class TextEffectPrevButton : public QPushButton
class TextEffectPrevButton : public TQPushButton
{
public:
TextEffectPrevButton(QWidget *parent, const char * name = 0 ): QPushButton( parent, name){};
void paintEvent(QPaintEvent *event);
TextEffectPrevButton(TQWidget *parent, const char * name = 0 ): TQPushButton( parent, name){};
void paintEvent(TQPaintEvent *event);
};
class TextEffectPrevWidget : public QWidget
class TextEffectPrevWidget : public TQWidget
{
public:
TextEffectPrevWidget(QWidget *parent, const char * name = 0, uint flags = 0 ): QWidget( parent, name, flags){};
void paintEvent(QPaintEvent *event);
TextEffectPrevWidget(TQWidget *parent, const char * name = 0, uint flags = 0 ): TQWidget( parent, name, flags){};
void paintEvent(TQPaintEvent *event);
};
class PreviewStyle : public DominoStyle
@ -687,40 +687,40 @@ DSurface origCheckItemSurface;
// global
bool initialized;
QComboBox* indicatorModeCombo;
TQComboBox* indicatorModeCombo;
KColorButton* indicatorBtnColor;
KColorButton* indicatorColor;
QString indicatorPreviewText;
QSpinBox* indicatorOpacity;
QSpinBox* indicatorBtnOpacity;
TQString indicatorPreviewText;
TQSpinBox* indicatorOpacity;
TQSpinBox* indicatorBtnOpacity;
QCheckBox* tintGroupBoxBackground;
QCheckBox* customGroupBoxBackgroundColor;
TQCheckBox* tintGroupBoxBackground;
TQCheckBox* customGroupBoxBackgroundColor;
KColorButton* groupBoxBackgroundColor;
QSlider* grSlider;
TQSlider* grSlider;
// text effect
QComboBox* textEffectModeCombo;
QCheckBox* drawTextEffect;
TQComboBox* textEffectModeCombo;
TQCheckBox* drawTextEffect;
KColorButton* textEffectColor;
KColorButton* textEffectButtonColor;
QString textEffectPreviewText;
QSpinBox* textEffectOpacity;
QSpinBox* textEffectButtonOpacity;
TQString textEffectPreviewText;
TQSpinBox* textEffectOpacity;
TQSpinBox* textEffectButtonOpacity;
QComboBox* textEffectPos;
QComboBox* textEffectButtonPos;
TQComboBox* textEffectPos;
TQComboBox* textEffectButtonPos;
// button contour colors
QComboBox* buttonContourType;
TQComboBox* buttonContourType;
KColorButton* buttonContourColor;
KColorButton* buttonDefaultButtonContourColor;
KColorButton* buttonMouseOverContourColor;
KColorButton* buttonPressedContourColor;
QComboBox* tabPosCombo;
QComboBox* tabStateCombo;
TQComboBox* tabPosCombo;
TQComboBox* tabStateCombo;
DominoKTabPrevWidget *prevTopTabWidget;
DominoKTabPrevWidget *prevBottomTabWidget;

@ -14,7 +14,7 @@
along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <qdir.h>
#include <tqdir.h>
#include "../client/clientData.h"
namespace dembed {
#include "../domino/data.h"
@ -24,42 +24,42 @@ namespace dembed {
int main ( int /*argc*/, char **/*argv*/ )
{
QDir d;
TQDir d;
d.mkdir("style_pixmaps");
d.mkdir("client_pixmaps");
QImage * img;
TQImage * img;
for ( int i = 0; embed_image_vec[i].data; i++ ) {
qDebug("ss");
img = new QImage((uchar*)embed_image_vec[i].data,
tqDebug("ss");
img = new TQImage((uchar*)embed_image_vec[i].data,
embed_image_vec[i].width,
embed_image_vec[i].height,
embed_image_vec[i].depth,
(QRgb*)embed_image_vec[i].colorTable,
(TQRgb*)embed_image_vec[i].colorTable,
embed_image_vec[i].numColors,
QImage::BigEndian );
TQImage::BigEndian );
if ( embed_image_vec[i].alpha )
img->setAlphaBuffer( TRUE );
img->save(QString("style_pixmaps/") + embed_image_vec[i].name + QString(".png"), "PNG");
img->save(TQString("style_pixmaps/") + embed_image_vec[i].name + TQString(".png"), "PNG");
delete img;
}
for ( int i = 0; dembed::embed_image_vec[i].data; i++ ) {
img = new QImage((uchar*)embed_image_vec[i].data,
img = new TQImage((uchar*)embed_image_vec[i].data,
dembed::embed_image_vec[i].width,
dembed::embed_image_vec[i].height,
dembed::embed_image_vec[i].depth,
(QRgb*)dembed::embed_image_vec[i].colorTable,
(TQRgb*)dembed::embed_image_vec[i].colorTable,
dembed::embed_image_vec[i].numColors,
QImage::BigEndian );
TQImage::BigEndian );
if ( dembed::embed_image_vec[i].alpha )
img->setAlphaBuffer( TRUE );
img->save(QString("client_pixmaps/") + dembed::embed_image_vec[i].name + QString(".png"), "PNG");
img->save(TQString("client_pixmaps/") + dembed::embed_image_vec[i].name + TQString(".png"), "PNG");
delete img;
}
return 0;

Loading…
Cancel
Save