koeditordetails.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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
This file is part of the documentation for kdelibs Version 3.1.5.