00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "tagpropertieswidgetbase.h"
00012
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qlineedit.h>
00017 #include <kicondialog.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021
00022
00023
00024
00025
00026 TagPropertiesWidgetBase::TagPropertiesWidgetBase( QWidget* parent, const char* name, WFlags fl )
00027 : QWidget( parent, name, fl )
00028 {
00029 if ( !name )
00030 setName( "Form1" );
00031 Form1Layout = new QGridLayout( this, 1, 1, 0, 6, "Form1Layout");
00032
00033 layout1 = new QHBoxLayout( 0, 0, 6, "layout1");
00034
00035 textLabel1 = new QLabel( this, "textLabel1" );
00036 layout1->addWidget( textLabel1 );
00037
00038 le_title = new QLineEdit( this, "le_title" );
00039 layout1->addWidget( le_title );
00040
00041 Form1Layout->addLayout( layout1, 0, 0 );
00042 spacer5 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding );
00043 Form1Layout->addItem( spacer5, 2, 0 );
00044
00045 layout9 = new QHBoxLayout( 0, 0, 6, "layout9");
00046
00047 textLabel1_2 = new QLabel( this, "textLabel1_2" );
00048 layout9->addWidget( textLabel1_2 );
00049
00050 iconButton = new KIconButton( this, "iconButton" );
00051 iconButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, iconButton->sizePolicy().hasHeightForWidth() ) );
00052 iconButton->setMinimumSize( QSize( 40, 40 ) );
00053 iconButton->setIconSize( 32 );
00054 iconButton->setStrictIconSize( TRUE );
00055 layout9->addWidget( iconButton );
00056 spacer4 = new QSpacerItem( 200, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00057 layout9->addItem( spacer4 );
00058
00059 Form1Layout->addLayout( layout9, 1, 0 );
00060 languageChange();
00061 resize( QSize(286, 144).expandedTo(minimumSizeHint()) );
00062 clearWState( WState_Polished );
00063
00064
00065 textLabel1_2->setBuddy( iconButton );
00066 }
00067
00068
00069
00070
00071 TagPropertiesWidgetBase::~TagPropertiesWidgetBase()
00072 {
00073
00074 }
00075
00076
00077
00078
00079
00080 void TagPropertiesWidgetBase::languageChange()
00081 {
00082 textLabel1->setText( tr2i18n( "Title:" ) );
00083 textLabel1_2->setText( tr2i18n( "Icon:" ) );
00084 iconButton->setText( QString::null );
00085 }
00086
00087 #include "tagpropertieswidgetbase.moc"