kaddressbook Library API Documentation

imeditorbase.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './imeditorbase.ui'
00005 **
00006 ** Created: Mon Apr 4 04:32:42 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 "imeditorbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qheader.h>
00016 #include <klistview.h>
00017 #include <kpushbutton.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a IMEditorBase as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 IMEditorBase::IMEditorBase( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "IMEditorBase" );
00031     IMEditorBaseLayout = new QHBoxLayout( this, 11, 6, "IMEditorBaseLayout"); 
00032 
00033     lvAddresses = new KListView( this, "lvAddresses" );
00034     lvAddresses->addColumn( tr2i18n( "Protocol" ) );
00035     lvAddresses->addColumn( tr2i18n( "Address" ) );
00036     lvAddresses->setAllColumnsShowFocus( TRUE );
00037     lvAddresses->setFullWidth( TRUE );
00038     IMEditorBaseLayout->addWidget( lvAddresses );
00039 
00040     layout4 = new QVBoxLayout( 0, 0, 6, "layout4"); 
00041 
00042     btnAdd = new KPushButton( this, "btnAdd" );
00043     layout4->addWidget( btnAdd );
00044 
00045     btnEdit = new KPushButton( this, "btnEdit" );
00046     layout4->addWidget( btnEdit );
00047 
00048     btnDelete = new KPushButton( this, "btnDelete" );
00049     layout4->addWidget( btnDelete );
00050     spacer1 = new QSpacerItem( 20, 266, QSizePolicy::Minimum, QSizePolicy::Expanding );
00051     layout4->addItem( spacer1 );
00052     IMEditorBaseLayout->addLayout( layout4 );
00053     languageChange();
00054     resize( QSize(581, 378).expandedTo(minimumSizeHint()) );
00055     clearWState( WState_Polished );
00056 }
00057 
00058 /*
00059  *  Destroys the object and frees any allocated resources
00060  */
00061 IMEditorBase::~IMEditorBase()
00062 {
00063     // no need to delete child widgets, Qt does it all for us
00064 }
00065 
00066 /*
00067  *  Sets the strings of the subwidgets using the current
00068  *  language.
00069  */
00070 void IMEditorBase::languageChange()
00071 {
00072     setCaption( tr2i18n( "IM Addresses" ) );
00073     lvAddresses->header()->setLabel( 0, tr2i18n( "Protocol" ) );
00074     lvAddresses->header()->setLabel( 1, tr2i18n( "Address" ) );
00075     btnAdd->setText( tr2i18n( "&Add..." ) );
00076     btnEdit->setText( tr2i18n( "&Edit..." ) );
00077     btnDelete->setText( tr2i18n( "&Delete" ) );
00078 }
00079 
00080 #include "imeditorbase.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 Mon Apr 4 04:47:50 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003