imaddressbase.cpp
00001
#include <kdialog.h>
00002
#include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
#include "imaddressbase.h"
00013
00014
#include <qvariant.h>
00015
#include <qlineedit.h>
00016
#include <qcombobox.h>
00017
#include <qlabel.h>
00018
#include <qlayout.h>
00019
#include <qtooltip.h>
00020
#include <qwhatsthis.h>
00021
00022
00023
00024
00025
00026 IMAddressBase::IMAddressBase(
QWidget* parent,
const char* name, WFlags fl )
00027 :
QWidget( parent, name, fl )
00028 {
00029
if ( !name )
00030 setName(
"IMAddressBase" );
00031 IMAddressBaseLayout =
new QGridLayout(
this, 1, 1, 11, 6,
"IMAddressBaseLayout");
00032
00033 edtAddress =
new QLineEdit(
this,
"edtAddress" );
00034
00035 IMAddressBaseLayout->addWidget( edtAddress, 1, 1 );
00036
00037 cmbProtocol =
new QComboBox( FALSE,
this,
"cmbProtocol" );
00038
00039 IMAddressBaseLayout->addWidget( cmbProtocol, 0, 1 );
00040
00041 textLabel2 =
new QLabel(
this,
"textLabel2" );
00042
00043 IMAddressBaseLayout->addWidget( textLabel2, 1, 0 );
00044
00045 textLabel1 =
new QLabel(
this,
"textLabel1" );
00046
00047 IMAddressBaseLayout->addWidget( textLabel1, 0, 0 );
00048 languageChange();
00049 resize(
QSize(177, 90).expandedTo(minimumSizeHint()) );
00050 clearWState( WState_Polished );
00051
00052
00053 setTabOrder( cmbProtocol, edtAddress );
00054
00055
00056 textLabel2->setBuddy( edtAddress );
00057 textLabel1->setBuddy( cmbProtocol );
00058 }
00059
00060
00061
00062
00063 IMAddressBase::~IMAddressBase()
00064 {
00065
00066 }
00067
00068
00069
00070
00071
00072
void IMAddressBase::languageChange()
00073 {
00074 setCaption( tr2i18n(
"Edit Address" ) );
00075 textLabel2->setText( tr2i18n(
"&Address:" ) );
00076 textLabel1->setText( tr2i18n(
"&Protocol:" ) );
00077 }
00078
00079
#include "imaddressbase.moc"
This file is part of the documentation for kaddressbook Library Version 3.3.0.