korganizer Library API Documentation

outgoingdialog_base.cpp

00001 #include <kdialog.h> 00002 #include <klocale.h> 00003 /**************************************************************************** 00004 ** Form implementation generated from reading ui file './outgoingdialog_base.ui' 00005 ** 00006 ** Created: Thu Oct 21 19:41:42 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 "outgoingdialog_base.h" 00013 00014 #include <qvariant.h> 00015 #include <qheader.h> 00016 #include <qlistview.h> 00017 #include <qpushbutton.h> 00018 #include <qlayout.h> 00019 #include <qtooltip.h> 00020 #include <qwhatsthis.h> 00021 00022 /* 00023 * Constructs a OutgoingDialog_base as a child of 'parent', with the 00024 * name 'name' and widget flags set to 'f'. 00025 * 00026 * The dialog will by default be modeless, unless you set 'modal' to 00027 * TRUE to construct a modal dialog. 00028 */ 00029 OutgoingDialog_base::OutgoingDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) 00030 : QDialog( parent, name, modal, fl ) 00031 { 00032 if ( !name ) 00033 setName( "OutgoingDialog_base" ); 00034 OutgoingDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "OutgoingDialog_baseLayout"); 00035 00036 mMessageListView = new QListView( this, "mMessageListView" ); 00037 mMessageListView->addColumn( tr2i18n( "Summary" ) ); 00038 mMessageListView->addColumn( tr2i18n( "Start Date" ) ); 00039 mMessageListView->addColumn( tr2i18n( "Start Time" ) ); 00040 mMessageListView->addColumn( tr2i18n( "End Date" ) ); 00041 mMessageListView->addColumn( tr2i18n( "End Time" ) ); 00042 mMessageListView->addColumn( tr2i18n( "Method" ) ); 00043 mMessageListView->setFrameShape( QListView::StyledPanel ); 00044 mMessageListView->setFrameShadow( QListView::Sunken ); 00045 mMessageListView->setAllColumnsShowFocus( TRUE ); 00046 00047 OutgoingDialog_baseLayout->addMultiCellWidget( mMessageListView, 0, 3, 0, 0 ); 00048 00049 PushButton5 = new QPushButton( this, "PushButton5" ); 00050 PushButton5->setDefault( FALSE ); 00051 00052 OutgoingDialog_baseLayout->addWidget( PushButton5, 0, 1 ); 00053 00054 PushButton7 = new QPushButton( this, "PushButton7" ); 00055 00056 OutgoingDialog_baseLayout->addWidget( PushButton7, 1, 1 ); 00057 00058 PushButton6 = new QPushButton( this, "PushButton6" ); 00059 PushButton6->setDefault( TRUE ); 00060 00061 OutgoingDialog_baseLayout->addWidget( PushButton6, 3, 1 ); 00062 Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00063 OutgoingDialog_baseLayout->addItem( Spacer2, 2, 1 ); 00064 languageChange(); 00065 resize( QSize(582, 274).expandedTo(minimumSizeHint()) ); 00066 clearWState( WState_Polished ); 00067 00068 // signals and slots connections 00069 connect( PushButton6, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00070 connect( PushButton5, SIGNAL( clicked() ), this, SLOT( send() ) ); 00071 connect( PushButton7, SIGNAL( clicked() ), this, SLOT( deleteItem() ) ); 00072 } 00073 00074 /* 00075 * Destroys the object and frees any allocated resources 00076 */ 00077 OutgoingDialog_base::~OutgoingDialog_base() 00078 { 00079 // no need to delete child widgets, Qt does it all for us 00080 } 00081 00082 /* 00083 * Sets the strings of the subwidgets using the current 00084 * language. 00085 */ 00086 void OutgoingDialog_base::languageChange() 00087 { 00088 setCaption( tr2i18n( "Scheduler - Outgoing Messages" ) ); 00089 mMessageListView->header()->setLabel( 0, tr2i18n( "Summary" ) ); 00090 mMessageListView->header()->setLabel( 1, tr2i18n( "Start Date" ) ); 00091 mMessageListView->header()->setLabel( 2, tr2i18n( "Start Time" ) ); 00092 mMessageListView->header()->setLabel( 3, tr2i18n( "End Date" ) ); 00093 mMessageListView->header()->setLabel( 4, tr2i18n( "End Time" ) ); 00094 mMessageListView->header()->setLabel( 5, tr2i18n( "Method" ) ); 00095 PushButton5->setText( tr2i18n( "&Send Messages" ) ); 00096 PushButton7->setText( tr2i18n( "&Remove" ) ); 00097 PushButton6->setText( tr2i18n( "&Close" ) ); 00098 } 00099 00100 void OutgoingDialog_base::send() 00101 { 00102 qWarning( "OutgoingDialog_base::send(): Not implemented yet" ); 00103 } 00104 00105 void OutgoingDialog_base::deleteItem() 00106 { 00107 qWarning( "OutgoingDialog_base::deleteItem(): Not implemented yet" ); 00108 } 00109 00110 #include "outgoingdialog_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 Thu Oct 21 19:46:57 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003