korganizer Library API Documentation

koincidenceeditor.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 
00019     As a special exception, permission is given to link this program
00020     with any edition of Qt, and distribute the resulting executable,
00021     without including the source code for Qt in the source distribution.
00022 */
00023 #ifndef KOINCIDENCEEDITOR_H
00024 #define KOINCIDENCEEDITOR_H
00025 
00026 #include <kdialogbase.h>
00027 
00028 #include <libkcal/calendar.h>
00029 
00030 #include "koeditordetails.h"
00031 #include "savetemplatedialog.h"
00032 
00033 class QDateTime;
00034 namespace KPIM { class CategorySelectDialog; }
00035 
00036 using namespace KCal;
00037 
00041 class KOIncidenceEditor : public KDialogBase
00042 {
00043     Q_OBJECT
00044   public:
00048     KOIncidenceEditor( const QString &caption, Calendar *calendar,
00049                        QWidget *parent );
00050     virtual ~KOIncidenceEditor();
00051 
00053     virtual void init() = 0;
00054 
00055     virtual void reload() = 0;
00056 
00057   public slots:
00058     void updateCategoryConfig();
00059 
00060   signals:
00061     void editCategories();
00062     void dialogClose( Incidence * );
00063 
00064   protected slots:
00065     void slotApply();
00066     void slotOk();
00067     void slotCancel();
00068 
00069     virtual void slotLoadTemplate();
00070     virtual void slotSaveTemplate();
00071     
00072     virtual void saveTemplate( const QString & ) = 0;
00073 
00074   protected:
00075     void setupAttendeesTab();
00076 
00077     void createSaveTemplateDialog( SaveTemplateDialog::IncidenceType );
00078 
00079     QString loadTemplate( Calendar *cal, const QString &type,
00080                           const QStringList &templates );
00081     void saveAsTemplate( Incidence *, const QString &name );
00082 
00086     virtual bool processInput() { return false; }
00087 
00088     Calendar *mCalendar;
00089 
00090     KPIM::CategorySelectDialog *mCategoryDialog;
00091 
00092     KOEditorDetails *mDetails;
00093 
00094   private:
00095     SaveTemplateDialog *mSaveTemplateDialog;
00096 };
00097 
00098 #endif
00099 
00100 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:41:09 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001