korganizer Library API Documentation

incomingdialog_base.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './incomingdialog_base.ui'
00005 **
00006 ** Created: Mon Apr 4 04:38:31 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 "incomingdialog_base.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qheader.h>
00017 #include <qlistview.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a IncomingDialog_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 IncomingDialog_base::IncomingDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl )
00030     : QDialog( parent, name, modal, fl )
00031 {
00032     if ( !name )
00033     setName( "IncomingDialog_base" );
00034     IncomingDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "IncomingDialog_baseLayout"); 
00035 
00036     PushButton4 = new QPushButton( this, "PushButton4" );
00037 
00038     IncomingDialog_baseLayout->addWidget( PushButton4, 0, 1 );
00039 
00040     PushButton7 = new QPushButton( this, "PushButton7" );
00041     PushButton7->setDefault( TRUE );
00042 
00043     IncomingDialog_baseLayout->addWidget( PushButton7, 5, 1 );
00044 
00045     mMessageListView = new QListView( this, "mMessageListView" );
00046     mMessageListView->addColumn( tr2i18n( "Summary" ) );
00047     mMessageListView->addColumn( tr2i18n( "Start Date" ) );
00048     mMessageListView->addColumn( tr2i18n( "Start Time" ) );
00049     mMessageListView->addColumn( tr2i18n( "End Date" ) );
00050     mMessageListView->addColumn( tr2i18n( "End Time" ) );
00051     mMessageListView->addColumn( tr2i18n( "Organizer" ) );
00052     mMessageListView->addColumn( tr2i18n( "Method" ) );
00053     mMessageListView->addColumn( tr2i18n( "Status" ) );
00054     mMessageListView->setAllColumnsShowFocus( FALSE );
00055 
00056     IncomingDialog_baseLayout->addMultiCellWidget( mMessageListView, 0, 5, 0, 0 );
00057 
00058     mAcceptAllButton = new QPushButton( this, "mAcceptAllButton" );
00059 
00060     IncomingDialog_baseLayout->addWidget( mAcceptAllButton, 3, 1 );
00061 
00062     mAcceptButton = new QPushButton( this, "mAcceptButton" );
00063 
00064     IncomingDialog_baseLayout->addWidget( mAcceptButton, 1, 1 );
00065 
00066     mRejectButton = new QPushButton( this, "mRejectButton" );
00067 
00068     IncomingDialog_baseLayout->addWidget( mRejectButton, 2, 1 );
00069     Spacer3 = new QSpacerItem( 20, 70, QSizePolicy::Minimum, QSizePolicy::Expanding );
00070     IncomingDialog_baseLayout->addItem( Spacer3, 4, 1 );
00071     languageChange();
00072     resize( QSize(525, 265).expandedTo(minimumSizeHint()) );
00073     clearWState( WState_Polished );
00074 
00075     // signals and slots connections
00076     connect( PushButton7, SIGNAL( clicked() ), this, SLOT( accept() ) );
00077     connect( PushButton4, SIGNAL( clicked() ), this, SLOT( retrieve() ) );
00078     connect( mAcceptAllButton, SIGNAL( clicked() ), this, SLOT( acceptAllMessages() ) );
00079     connect( mAcceptButton, SIGNAL( clicked() ), this, SLOT( acceptMessage() ) );
00080     connect( mRejectButton, SIGNAL( clicked() ), this, SLOT( rejectMessage() ) );
00081 
00082     // tab order
00083     setTabOrder( PushButton7, PushButton4 );
00084     setTabOrder( PushButton4, mAcceptAllButton );
00085     setTabOrder( mAcceptAllButton, mMessageListView );
00086     setTabOrder( mMessageListView, mAcceptButton );
00087     setTabOrder( mAcceptButton, mRejectButton );
00088 }
00089 
00090 /*
00091  *  Destroys the object and frees any allocated resources
00092  */
00093 IncomingDialog_base::~IncomingDialog_base()
00094 {
00095     // no need to delete child widgets, Qt does it all for us
00096 }
00097 
00098 /*
00099  *  Sets the strings of the subwidgets using the current
00100  *  language.
00101  */
00102 void IncomingDialog_base::languageChange()
00103 {
00104     setCaption( tr2i18n( "Scheduler - Incoming Messages" ) );
00105     PushButton4->setText( tr2i18n( "Retrieve &Messages" ) );
00106     PushButton7->setText( tr2i18n( "&Close" ) );
00107     mMessageListView->header()->setLabel( 0, tr2i18n( "Summary" ) );
00108     mMessageListView->header()->setLabel( 1, tr2i18n( "Start Date" ) );
00109     mMessageListView->header()->setLabel( 2, tr2i18n( "Start Time" ) );
00110     mMessageListView->header()->setLabel( 3, tr2i18n( "End Date" ) );
00111     mMessageListView->header()->setLabel( 4, tr2i18n( "End Time" ) );
00112     mMessageListView->header()->setLabel( 5, tr2i18n( "Organizer" ) );
00113     mMessageListView->header()->setLabel( 6, tr2i18n( "Method" ) );
00114     mMessageListView->header()->setLabel( 7, tr2i18n( "Status" ) );
00115     mAcceptAllButton->setText( tr2i18n( "Accept A&ll" ) );
00116     mAcceptButton->setText( tr2i18n( "&Accept" ) );
00117     mRejectButton->setText( tr2i18n( "&Reject" ) );
00118 }
00119 
00120 void IncomingDialog_base::acceptAllMessages()
00121 {
00122     qWarning( "IncomingDialog_base::acceptAllMessages(): Not implemented yet" );
00123 }
00124 
00125 void IncomingDialog_base::acceptMessage()
00126 {
00127     qWarning( "IncomingDialog_base::acceptMessage(): Not implemented yet" );
00128 }
00129 
00130 void IncomingDialog_base::rejectMessage()
00131 {
00132     qWarning( "IncomingDialog_base::rejectMessage(): Not implemented yet" );
00133 }
00134 
00135 void IncomingDialog_base::retrieve()
00136 {
00137     qWarning( "IncomingDialog_base::retrieve(): Not implemented yet" );
00138 }
00139 
00140 #include "incomingdialog_base.moc"
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Apr 4 04:49:26 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003