kaddressbook Library API Documentation

imaddressbase.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './imaddressbase.ui'
00005 **
00006 ** Created: Wed Mar 23 22:17:20 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
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  *  Constructs a IMAddressBase as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
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     // tab order
00053     setTabOrder( cmbProtocol, edtAddress );
00054 
00055     // buddies
00056     textLabel2->setBuddy( edtAddress );
00057     textLabel1->setBuddy( cmbProtocol );
00058 }
00059 
00060 /*
00061  *  Destroys the object and frees any allocated resources
00062  */
00063 IMAddressBase::~IMAddressBase()
00064 {
00065     // no need to delete child widgets, Qt does it all for us
00066 }
00067 
00068 /*
00069  *  Sets the strings of the subwidgets using the current
00070  *  language.
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"
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 22:42:47 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003