korganizer Library API Documentation

kogroupwareincomingdialog_base.cpp

00001 #include <kdialog.h> 00002 #include <klocale.h> 00003 /**************************************************************************** 00004 ** Form implementation generated from reading ui file './kogroupwareincomingdialog_base.ui' 00005 ** 00006 ** Created: Fri Oct 1 15:12:31 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 "kogroupwareincomingdialog_base.h" 00013 00014 #include <qvariant.h> 00015 #include <qlabel.h> 00016 #include <qtextedit.h> 00017 #include <qpushbutton.h> 00018 #include <qlayout.h> 00019 #include <qtooltip.h> 00020 #include <qwhatsthis.h> 00021 00022 /* 00023 * Constructs a KOGroupwareIncomingDialog_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 KOGroupwareIncomingDialog_base::KOGroupwareIncomingDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) 00030 : QDialog( parent, name, modal, fl ) 00031 { 00032 if ( !name ) 00033 setName( "KOGroupwareIncomingDialog_base" ); 00034 KOGroupwareIncomingDialog_baseLayout = new QVBoxLayout( this, 11, 6, "KOGroupwareIncomingDialog_baseLayout"); 00035 00036 TextLabel1 = new QLabel( this, "TextLabel1" ); 00037 QFont TextLabel1_font( TextLabel1->font() ); 00038 TextLabel1_font.setBold( TRUE ); 00039 TextLabel1->setFont( TextLabel1_font ); 00040 TextLabel1->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) ); 00041 KOGroupwareIncomingDialog_baseLayout->addWidget( TextLabel1 ); 00042 00043 Layout5 = new QGridLayout( 0, 1, 1, 0, 6, "Layout5"); 00044 00045 TextLabel3 = new QLabel( this, "TextLabel3" ); 00046 00047 Layout5->addWidget( TextLabel3, 0, 2 ); 00048 00049 toLA = new QLabel( this, "toLA" ); 00050 toLA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)5, 0, 0, toLA->sizePolicy().hasHeightForWidth() ) ); 00051 toLA->setMinimumSize( QSize( 100, 0 ) ); 00052 toLA->setFrameShape( QLabel::Panel ); 00053 toLA->setFrameShadow( QLabel::Sunken ); 00054 00055 Layout5->addWidget( toLA, 0, 3 ); 00056 00057 descriptionTE = new QTextEdit( this, "descriptionTE" ); 00058 descriptionTE->setReadOnly( TRUE ); 00059 00060 Layout5->addMultiCellWidget( descriptionTE, 3, 3, 1, 3 ); 00061 00062 summaryLA = new QLabel( this, "summaryLA" ); 00063 summaryLA->setFrameShape( QLabel::Panel ); 00064 summaryLA->setFrameShadow( QLabel::Sunken ); 00065 00066 Layout5->addMultiCellWidget( summaryLA, 2, 2, 1, 3 ); 00067 00068 TextLabel10 = new QLabel( this, "TextLabel10" ); 00069 TextLabel10->setAlignment( int( QLabel::AlignTop ) ); 00070 00071 Layout5->addWidget( TextLabel10, 3, 0 ); 00072 00073 TextLabel8 = new QLabel( this, "TextLabel8" ); 00074 00075 Layout5->addWidget( TextLabel8, 2, 0 ); 00076 00077 fromLA = new QLabel( this, "fromLA" ); 00078 fromLA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)5, 0, 0, fromLA->sizePolicy().hasHeightForWidth() ) ); 00079 fromLA->setMinimumSize( QSize( 100, 0 ) ); 00080 fromLA->setFrameShape( QLabel::Panel ); 00081 fromLA->setFrameShadow( QLabel::Sunken ); 00082 00083 Layout5->addWidget( fromLA, 0, 1 ); 00084 00085 TextLabel2 = new QLabel( this, "TextLabel2" ); 00086 00087 Layout5->addWidget( TextLabel2, 0, 0 ); 00088 00089 locationLA = new QLabel( this, "locationLA" ); 00090 locationLA->setFrameShape( QLabel::Panel ); 00091 locationLA->setFrameShadow( QLabel::Sunken ); 00092 00093 Layout5->addMultiCellWidget( locationLA, 1, 1, 1, 3 ); 00094 00095 TextLabel6 = new QLabel( this, "TextLabel6" ); 00096 00097 Layout5->addWidget( TextLabel6, 1, 0 ); 00098 KOGroupwareIncomingDialog_baseLayout->addLayout( Layout5 ); 00099 00100 Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 00101 00102 PushButton1 = new QPushButton( this, "PushButton1" ); 00103 Layout2->addWidget( PushButton1 ); 00104 00105 PushButton2 = new QPushButton( this, "PushButton2" ); 00106 Layout2->addWidget( PushButton2 ); 00107 00108 PushButton3 = new QPushButton( this, "PushButton3" ); 00109 Layout2->addWidget( PushButton3 ); 00110 00111 PushButton4 = new QPushButton( this, "PushButton4" ); 00112 Layout2->addWidget( PushButton4 ); 00113 KOGroupwareIncomingDialog_baseLayout->addLayout( Layout2 ); 00114 languageChange(); 00115 resize( QSize(594, 306).expandedTo(minimumSizeHint()) ); 00116 clearWState( WState_Polished ); 00117 00118 // signals and slots connections 00119 connect( PushButton1, SIGNAL( clicked() ), this, SLOT( slotAcceptEvent() ) ); 00120 connect( PushButton2, SIGNAL( clicked() ), this, SLOT( slotAcceptEvent() ) ); 00121 connect( PushButton3, SIGNAL( clicked() ), this, SLOT( slotDeclineEvent() ) ); 00122 connect( PushButton1, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00123 connect( PushButton2, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00124 connect( PushButton3, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00125 connect( PushButton4, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00126 } 00127 00128 /* 00129 * Destroys the object and frees any allocated resources 00130 */ 00131 KOGroupwareIncomingDialog_base::~KOGroupwareIncomingDialog_base() 00132 { 00133 // no need to delete child widgets, Qt does it all for us 00134 } 00135 00136 /* 00137 * Sets the strings of the subwidgets using the current 00138 * language. 00139 */ 00140 void KOGroupwareIncomingDialog_base::languageChange() 00141 { 00142 setCaption( tr2i18n( "Meeting Request" ) ); 00143 TextLabel1->setText( tr2i18n( "You have received a request for participating in a meeting with the following data:" ) ); 00144 TextLabel3->setText( tr2i18n( "To:" ) ); 00145 toLA->setText( QString::null ); 00146 summaryLA->setText( QString::null ); 00147 TextLabel10->setText( tr2i18n( "Description:" ) ); 00148 TextLabel8->setText( tr2i18n( "Summary:" ) ); 00149 fromLA->setText( QString::null ); 00150 TextLabel2->setText( tr2i18n( "From:" ) ); 00151 locationLA->setText( QString::null ); 00152 TextLabel6->setText( tr2i18n( "Location:" ) ); 00153 PushButton1->setText( tr2i18n( "&Accept" ) ); 00154 PushButton2->setText( tr2i18n( "Accept C&onditionally" ) ); 00155 PushButton3->setText( tr2i18n( "&Decline" ) ); 00156 PushButton4->setText( tr2i18n( "&Cancel" ) ); 00157 } 00158 00159 void KOGroupwareIncomingDialog_base::slotAcceptEvent() 00160 { 00161 qWarning( "KOGroupwareIncomingDialog_base::slotAcceptEvent(): Not implemented yet" ); 00162 } 00163 00164 void KOGroupwareIncomingDialog_base::slotAcceptEventConditionally() 00165 { 00166 qWarning( "KOGroupwareIncomingDialog_base::slotAcceptEventConditionally(): Not implemented yet" ); 00167 } 00168 00169 void KOGroupwareIncomingDialog_base::slotDeclineEvent() 00170 { 00171 qWarning( "KOGroupwareIncomingDialog_base::slotDeclineEvent(): Not implemented yet" ); 00172 } 00173 00174 #include "kogroupwareincomingdialog_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:31 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003