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