diff options
Diffstat (limited to 'src/palettecfgdesign.cpp')
-rw-r--r-- | src/palettecfgdesign.cpp | 168 |
1 files changed, 84 insertions, 84 deletions
diff --git a/src/palettecfgdesign.cpp b/src/palettecfgdesign.cpp index 4e9034f..43415e2 100644 --- a/src/palettecfgdesign.cpp +++ b/src/palettecfgdesign.cpp @@ -1,4 +1,4 @@ -#include <klocale.h> +#include <tdelocale.h> /**************************************************************************** ** Form implementation generated from reading ui file './palettecfgdesign.ui' ** @@ -10,117 +10,117 @@ #include "palettecfgdesign.h" -#include <qvariant.h> -#include <qframe.h> -#include <qlabel.h> -#include <qpushbutton.h> -#include <qcombobox.h> +#include <ntqvariant.h> +#include <ntqframe.h> +#include <ntqlabel.h> +#include <ntqpushbutton.h> +#include <ntqcombobox.h> #include <kcolorbutton.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <ntqlayout.h> +#include <ntqtooltip.h> +#include <ntqwhatsthis.h> /* * Constructs a PaletteCfgDesign as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ -PaletteCfgDesign::PaletteCfgDesign( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +PaletteCfgDesign::PaletteCfgDesign( TQWidget* parent, const char* name, WFlags fl ) + : TQWidget( parent, name, fl ) { if ( !name ) setName( "PaletteCfgDesign" ); - setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); - PaletteCfgDesignLayout = new QGridLayout( this, 1, 1, 0, 6, "PaletteCfgDesignLayout"); - - framePanel = new QFrame( this, "framePanel" ); - framePanel->setMinimumSize( QSize( 64, 64 ) ); - framePanel->setMaximumSize( QSize( 64, 64 ) ); - QPalette pal; - QColorGroup cg; - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, white ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); - cg.setColor( QColorGroup::Link, black ); - cg.setColor( QColorGroup::LinkVisited, black ); + setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); + PaletteCfgDesignLayout = new TQGridLayout( this, 1, 1, 0, 6, "PaletteCfgDesignLayout"); + + framePanel = new TQFrame( this, "framePanel" ); + framePanel->setMinimumSize( TQSize( 64, 64 ) ); + framePanel->setMaximumSize( TQSize( 64, 64 ) ); + TQPalette pal; + TQColorGroup cg; + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, white ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Link, black ); + cg.setColor( TQColorGroup::LinkVisited, black ); pal.setActive( cg ); - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, white ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); - cg.setColor( QColorGroup::Link, black ); - cg.setColor( QColorGroup::LinkVisited, black ); + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, white ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Link, black ); + cg.setColor( TQColorGroup::LinkVisited, black ); pal.setInactive( cg ); - cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, white ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); - cg.setColor( QColorGroup::Link, black ); - cg.setColor( QColorGroup::LinkVisited, black ); + cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, white ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Link, black ); + cg.setColor( TQColorGroup::LinkVisited, black ); pal.setDisabled( cg ); framePanel->setPalette( pal ); - framePanel->setFrameShape( QFrame::Panel ); - framePanel->setFrameShadow( QFrame::Raised ); + framePanel->setFrameShape( TQFrame::Panel ); + framePanel->setFrameShadow( TQFrame::Raised ); - labelTitle = new QLabel( framePanel, "labelTitle" ); - labelTitle->setGeometry( QRect( 8, 40, 50, 20 ) ); - QFont labelTitle_font( labelTitle->font() ); + labelTitle = new TQLabel( framePanel, "labelTitle" ); + labelTitle->setGeometry( TQRect( 8, 40, 50, 20 ) ); + TQFont labelTitle_font( labelTitle->font() ); labelTitle_font.setPointSize( 7 ); labelTitle->setFont( labelTitle_font ); - labelTitle->setAlignment( int( QLabel::AlignCenter ) ); + labelTitle->setAlignment( int( TQLabel::AlignCenter ) ); - labelValue = new QLabel( framePanel, "labelValue" ); - labelValue->setGeometry( QRect( 7, 16, 50, 20 ) ); - labelValue->setAlignment( int( QLabel::AlignCenter ) ); + labelValue = new TQLabel( framePanel, "labelValue" ); + labelValue->setGeometry( TQRect( 7, 16, 50, 20 ) ); + labelValue->setAlignment( int( TQLabel::AlignCenter ) ); PaletteCfgDesignLayout->addMultiCellWidget( framePanel, 0, 1, 0, 0 ); - buttonDefaultPalette = new QPushButton( this, "buttonDefaultPalette" ); - buttonDefaultPalette->setMinimumSize( QSize( 0, 22 ) ); + buttonDefaultPalette = new TQPushButton( this, "buttonDefaultPalette" ); + buttonDefaultPalette->setMinimumSize( TQSize( 0, 22 ) ); PaletteCfgDesignLayout->addMultiCellWidget( buttonDefaultPalette, 1, 1, 1, 2 ); - comboSelect = new QComboBox( FALSE, this, "comboSelect" ); - comboSelect->setMinimumSize( QSize( 0, 22 ) ); + comboSelect = new TQComboBox( FALSE, this, "comboSelect" ); + comboSelect->setMinimumSize( TQSize( 0, 22 ) ); PaletteCfgDesignLayout->addWidget( comboSelect, 0, 1 ); buttonColor = new KColorButton( this, "buttonColor" ); - buttonColor->setMinimumSize( QSize( 0, 22 ) ); + buttonColor->setMinimumSize( TQSize( 0, 22 ) ); PaletteCfgDesignLayout->addWidget( buttonColor, 0, 2 ); languageChange(); - resize( QSize(287, 74).expandedTo(minimumSizeHint()) ); + resize( TQSize(287, 74).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } @@ -129,7 +129,7 @@ PaletteCfgDesign::PaletteCfgDesign( QWidget* parent, const char* name, WFlags fl */ PaletteCfgDesign::~PaletteCfgDesign() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -147,7 +147,7 @@ void PaletteCfgDesign::languageChange() comboSelect->insertItem( tr2i18n( "Border" ) ); comboSelect->insertItem( tr2i18n( "Title" ) ); comboSelect->insertItem( tr2i18n( "Value" ) ); - buttonColor->setText( QString::null ); + buttonColor->setText( TQString::null ); } #include "palettecfgdesign.moc" |