00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "publishdialog_base.h"
00013
00014 #include <qvariant.h>
00015 #include <qheader.h>
00016 #include <qlistview.h>
00017 #include <qlabel.h>
00018 #include <qlineedit.h>
00019 #include <qpushbutton.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qwhatsthis.h>
00023
00024
00025
00026
00027
00028 PublishDialog_base::PublishDialog_base( QWidget* parent, const char* name, WFlags fl )
00029 : QWidget( parent, name, fl )
00030 {
00031 if ( !name )
00032 setName( "PublishDialog_base" );
00033 PublishDialog_baseLayout = new QGridLayout( this, 1, 1, 0, 6, "PublishDialog_baseLayout");
00034
00035 mAddressListView = new QListView( this, "mAddressListView" );
00036 mAddressListView->addColumn( tr2i18n( "Name" ) );
00037 mAddressListView->addColumn( tr2i18n( "Email" ) );
00038
00039 PublishDialog_baseLayout->addMultiCellWidget( mAddressListView, 0, 3, 0, 1 );
00040
00041 TextLabel1 = new QLabel( this, "TextLabel1" );
00042
00043 PublishDialog_baseLayout->addWidget( TextLabel1, 4, 0 );
00044
00045 TextLabel2 = new QLabel( this, "TextLabel2" );
00046
00047 PublishDialog_baseLayout->addWidget( TextLabel2, 5, 0 );
00048
00049 mEmailLineEdit = new QLineEdit( this, "mEmailLineEdit" );
00050
00051 PublishDialog_baseLayout->addWidget( mEmailLineEdit, 5, 1 );
00052
00053 mNameLineEdit = new QLineEdit( this, "mNameLineEdit" );
00054
00055 PublishDialog_baseLayout->addWidget( mNameLineEdit, 4, 1 );
00056
00057 mNew = new QPushButton( this, "mNew" );
00058
00059 PublishDialog_baseLayout->addWidget( mNew, 0, 2 );
00060
00061 mSelectAddressee = new QPushButton( this, "mSelectAddressee" );
00062
00063 PublishDialog_baseLayout->addWidget( mSelectAddressee, 2, 2 );
00064
00065 mRemove = new QPushButton( this, "mRemove" );
00066
00067 PublishDialog_baseLayout->addWidget( mRemove, 1, 2 );
00068 spacer102 = new QSpacerItem( 20, 241, QSizePolicy::Minimum, QSizePolicy::Expanding );
00069 PublishDialog_baseLayout->addMultiCell( spacer102, 3, 5, 2, 2 );
00070 languageChange();
00071 resize( QSize(420, 379).expandedTo(minimumSizeHint()) );
00072 clearWState( WState_Polished );
00073
00074
00075 setTabOrder( mAddressListView, mNameLineEdit );
00076 setTabOrder( mNameLineEdit, mEmailLineEdit );
00077 setTabOrder( mEmailLineEdit, mNew );
00078 setTabOrder( mNew, mRemove );
00079 setTabOrder( mRemove, mSelectAddressee );
00080 }
00081
00082
00083
00084
00085 PublishDialog_base::~PublishDialog_base()
00086 {
00087
00088 }
00089
00090
00091
00092
00093
00094 void PublishDialog_base::languageChange()
00095 {
00096 mAddressListView->header()->setLabel( 0, tr2i18n( "Name" ) );
00097 mAddressListView->header()->setLabel( 1, tr2i18n( "Email" ) );
00098 TextLabel1->setText( tr2i18n( "Name:" ) );
00099 TextLabel2->setText( tr2i18n( "Email:" ) );
00100 mEmailLineEdit->setText( QString::null );
00101 mNew->setText( tr2i18n( "&New" ) );
00102 mSelectAddressee->setText( tr2i18n( "Select &Addressee..." ) );
00103 mRemove->setText( tr2i18n( "&Remove" ) );
00104 }
00105
00106 #include "publishdialog_base.moc"