You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
154 lines
6.2 KiB
154 lines
6.2 KiB
#include <tdelocale.h>
|
|
/****************************************************************************
|
|
** Form implementation generated from reading ui file './palettecfgdesign.ui'
|
|
**
|
|
** Created: mer aoû 18 23:39:05 2004
|
|
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
|
|
**
|
|
** WARNING! All changes made in this file will be lost!
|
|
****************************************************************************/
|
|
|
|
#include "palettecfgdesign.h"
|
|
|
|
#include <ntqvariant.h>
|
|
#include <ntqframe.h>
|
|
#include <ntqlabel.h>
|
|
#include <ntqpushbutton.h>
|
|
#include <ntqcombobox.h>
|
|
#include <kcolorbutton.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( TQWidget* parent, const char* name, WFlags fl )
|
|
: TQWidget( parent, name, fl )
|
|
{
|
|
if ( !name )
|
|
setName( "PaletteCfgDesign" );
|
|
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( 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( 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( TQFrame::Panel );
|
|
framePanel->setFrameShadow( TQFrame::Raised );
|
|
|
|
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( TQLabel::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 TQPushButton( this, "buttonDefaultPalette" );
|
|
buttonDefaultPalette->setMinimumSize( TQSize( 0, 22 ) );
|
|
|
|
PaletteCfgDesignLayout->addMultiCellWidget( buttonDefaultPalette, 1, 1, 1, 2 );
|
|
|
|
comboSelect = new TQComboBox( FALSE, this, "comboSelect" );
|
|
comboSelect->setMinimumSize( TQSize( 0, 22 ) );
|
|
|
|
PaletteCfgDesignLayout->addWidget( comboSelect, 0, 1 );
|
|
|
|
buttonColor = new KColorButton( this, "buttonColor" );
|
|
buttonColor->setMinimumSize( TQSize( 0, 22 ) );
|
|
|
|
PaletteCfgDesignLayout->addWidget( buttonColor, 0, 2 );
|
|
languageChange();
|
|
resize( TQSize(287, 74).expandedTo(minimumSizeHint()) );
|
|
clearWState( WState_Polished );
|
|
}
|
|
|
|
/*
|
|
* Destroys the object and frees any allocated resources
|
|
*/
|
|
PaletteCfgDesign::~PaletteCfgDesign()
|
|
{
|
|
// no need to delete child widgets, TQt does it all for us
|
|
}
|
|
|
|
/*
|
|
* Sets the strings of the subwidgets using the current
|
|
* language.
|
|
*/
|
|
void PaletteCfgDesign::languageChange()
|
|
{
|
|
setCaption( tr2i18n( "PaletteCfg" ) );
|
|
labelTitle->setText( tr2i18n( "Title" ) );
|
|
labelValue->setText( tr2i18n( "+3.5V" ) );
|
|
buttonDefaultPalette->setText( tr2i18n( "Default colors" ) );
|
|
comboSelect->clear();
|
|
comboSelect->insertItem( tr2i18n( "Background" ) );
|
|
comboSelect->insertItem( tr2i18n( "Border" ) );
|
|
comboSelect->insertItem( tr2i18n( "Title" ) );
|
|
comboSelect->insertItem( tr2i18n( "Value" ) );
|
|
buttonColor->setText( TQString::null );
|
|
}
|
|
|
|
#include "palettecfgdesign.moc"
|