• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

korganizer

koeventviewerdialog.cpp

Go to the documentation of this file.
00001 /*
00002   This file is part of KOrganizer.
00003 
00004   Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (c) 2005 Rafal Rzepecki <divide@users.sourceforge.net>
00006 
00007   This program is free software; you can redistribute it and/or modify
00008   it under the terms of the GNU General Public License as published by
00009   the Free Software Foundation; either version 2 of the License, or
00010   (at your option) any later version.
00011 
00012   This program is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015   GNU General Public License for more details.
00016 
00017   You should have received a copy of the GNU General Public License along
00018   with this program; if not, write to the Free Software Foundation, Inc.,
00019   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020 
00021   As a special exception, permission is given to link this program
00022   with any edition of Qt, and distribute the resulting executable,
00023   without including the source code for Qt in the source distribution.
00024 */
00025 
00026 #include "koeventviewerdialog.h"
00027 #include "koeventviewer.h"
00028 #include <klocale.h>
00029 
00030 KOEventViewerDialog::KOEventViewerDialog( QWidget *parent, bool compact )
00031   : KDialog( parent )
00032 {
00033   setCaption( i18n( "Event Viewer" ) );
00034   setButtons( Ok | User1 | User2 );
00035   setModal( false );
00036   setButtonGuiItem( User1, KGuiItem( i18n( "Edit..." ) ) );
00037   setButtonGuiItem( User2, KGuiItem( i18n( "Show in Context" ) ) );
00038   mEventViewer = new KOEventViewer( this );
00039   setMainWidget( mEventViewer );
00040 
00041   // FIXME: Set a sensible size (based on the content?).
00042   if ( compact ) {
00043     setFixedSize( 240, 284 );
00044     move( 0, 15 );
00045   } else {
00046     setMinimumSize( 300, 200 );
00047     resize( 320, 300 );
00048   }
00049   connect( this, SIGNAL(finished()), this, SLOT(delayedDestruct()) );
00050   connect( this, SIGNAL( user1Clicked() ), mEventViewer,
00051            SLOT( editIncidence() ) );
00052   connect( this, SIGNAL( user2Clicked() ), mEventViewer,
00053            SLOT( showIncidenceContext() ) );
00054 }
00055 
00056 KOEventViewerDialog::~KOEventViewerDialog()
00057 {
00058 }
00059 
00060 void KOEventViewerDialog::addText( const QString &text )
00061 {
00062   mEventViewer->addText(text);
00063 }
00064 
00065 #include "koeventviewerdialog.moc"

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal