korganizer Library API Documentation

koeditordetails.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2000,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 _KOEDITORDETAILS_H
00024 #define _KOEDITORDETAILS_H
00025 
00026 #include <qframe.h>
00027 #include <qlabel.h>
00028 #include <qcheckbox.h>
00029 #include <qpushbutton.h>
00030 #include <qgroupbox.h>
00031 #include <qlineedit.h>
00032 #include <qcombobox.h>
00033 #include <qmultilineedit.h>
00034 #include <qlistview.h>
00035 #include <qradiobutton.h>
00036 #include <qptrlist.h>
00037 
00038 #include <kapplication.h>
00039 
00040 #include <libkcal/event.h>
00041 
00042 #include "ktimeedit.h"
00043 #include "customlistviewitem.h"
00044 
00045 class KDateEdit;
00046 
00047 using namespace KCal;
00048 
00049 typedef CustomListViewItem<Attendee *> AttendeeListItem;
00050 
00051 
00052 class KOEditorDetails : public QWidget
00053 {
00054     Q_OBJECT
00055   public:
00056     KOEditorDetails (int spacing = 8,QWidget* parent = 0, const char* name = 0);
00057     virtual ~KOEditorDetails();
00058 
00060     void setDefaults();
00062     void readEvent(Incidence *);
00064     void writeEvent(Incidence *);
00065 
00067     void cancelAttendeeEvent(Incidence *);
00069     bool validateInput();
00070 
00071   public slots:
00072     void insertAttendee(Attendee *);
00073 
00074   protected slots:
00075     void addNewAttendee();
00076     void removeAttendee();
00077     void openAddressBook();
00078     void updateAttendeeInput();
00079     void clearAttendeeInput();
00080     void fillAttendeeInput(AttendeeListItem *);
00081     void updateAttendeeItem();
00082     void setEnabledAttendeeInput(bool);
00083 
00084   private:
00085     bool mDisableItemUpdate;
00086 
00087     QLineEdit *mNameEdit;
00088     QLineEdit *mUidEdit;
00089     QLineEdit *mEmailEdit;
00090     QListView *mListView;
00091     QComboBox* mRoleCombo;
00092     QCheckBox* mRsvpButton;
00093     QComboBox* mStatusCombo;
00094     QLabel *mOrganizerLabel;
00095 
00096     QPushButton* mAddButton;
00097     QPushButton* mRemoveButton;
00098     QPushButton* mAddressBookButton;
00099         
00100     QPtrList<Attendee> mdelAttendees;
00101 };
00102 
00103 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:31 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001