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