korganizer Library API Documentation

publishdialog_base.cpp

00001 #include <kdialog.h> 00002 #include <klocale.h> 00003 /**************************************************************************** 00004 ** Form implementation generated from reading ui file './publishdialog_base.ui' 00005 ** 00006 ** Created: Fri Oct 1 15:12:30 2004 00007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $) 00008 ** 00009 ** WARNING! All changes made in this file will be lost! 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 * Constructs a PublishDialog_base as a child of 'parent', with the 00026 * name 'name' and widget flags set to 'f'. 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 // tab order 00075 setTabOrder( mAddressListView, mNameLineEdit ); 00076 setTabOrder( mNameLineEdit, mEmailLineEdit ); 00077 setTabOrder( mEmailLineEdit, mNew ); 00078 setTabOrder( mNew, mRemove ); 00079 setTabOrder( mRemove, mSelectAddressee ); 00080 } 00081 00082 /* 00083 * Destroys the object and frees any allocated resources 00084 */ 00085 PublishDialog_base::~PublishDialog_base() 00086 { 00087 // no need to delete child widgets, Qt does it all for us 00088 } 00089 00090 /* 00091 * Sets the strings of the subwidgets using the current 00092 * language. 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"
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:19:32 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003