korganizer Library API Documentation

KOEventEditor Class Reference

This class provides a dialog for editing an event. More...

#include <koeventeditor.h>

Inheritance diagram for KOEventEditor:

Inheritance graph
[legend]
Collaboration diagram for KOEventEditor:

Collaboration graph
[legend]
List of all members.

Signals

void focusReceivedSignal ()

Public Member Functions

 KOEventEditor (Calendar *calendar, QWidget *parent)
void init ()
void modified (int change=0)
void reload ()
void newEvent (QDateTime from, QDateTime to, bool allDay=false)
void newEvent (const QString &)
void newEvent (const QString &summary, const QString &description, const QString &attachment)
void newEvent (const QString &summary, const QString &description, const QString &attachment, const QStringList &attendees)
void editIncidence (Incidence *)
void setDefaults (QDateTime from, QDateTime to, bool allDay)
void readEvent (Event *, bool tmpl=false)
void writeEvent (Event *)
QObjecttypeAheadReceiver () const

Protected Slots

void loadDefaults ()
void deleteEvent ()
void slotSaveTemplate (const QString &)

Protected Member Functions

QString type ()
void setupGeneral ()
void setupRecurrence ()
void setupFreeBusy ()
bool validateInput ()
bool processInput ()
void processCancel ()
int msgItemDelete ()
void loadTemplate (CalendarLocal &)
QStringListtemplates () const

Static Protected Member Functions

static bool myAttendeeStatusChanged (Event *oldVersion, Event *newVersion)

Detailed Description

This class provides a dialog for editing an event.

Definition at line 47 of file koeventeditor.h.


Constructor & Destructor Documentation

KOEventEditor::KOEventEditor Calendar *  calendar,
QWidget parent
 

Construct new event editor.

Definition at line 54 of file koeventeditor.cpp.


Member Function Documentation

void KOEventEditor::init  )  [virtual]
 

Initialize editor.

This function creates the tab widgets.

Implements KOIncidenceEditor.

Definition at line 65 of file koeventeditor.cpp.

Referenced by editIncidence(), and newEvent().

void KOEventEditor::modified int  change = 0  )  [virtual]
 

This event has been modified externally.

Reimplemented from KOIncidenceEditor.

Definition at line 152 of file koeventeditor.cpp.

void KOEventEditor::newEvent QDateTime  from,
QDateTime  to,
bool  allDay = false
 

Clear eventwin for new event, and preset the dates and times with hint.

Definition at line 190 of file koeventeditor.cpp.

References init(), and setDefaults().

Referenced by newEvent(), and CalendarView::newEvent().

void KOEventEditor::newEvent const QString  ) 
 

Edit new event.

Set summary and description from given text.

Definition at line 198 of file koeventeditor.cpp.

References init().

void KOEventEditor::newEvent const QString summary,
const QString description,
const QString attachment
 

Edit new event.

Definition at line 217 of file koeventeditor.cpp.

References init().

void KOEventEditor::newEvent const QString summary,
const QString description,
const QString attachment,
const QStringList attendees
 

Edit new event.

Definition at line 235 of file koeventeditor.cpp.

References newEvent().

void KOEventEditor::editIncidence Incidence *   )  [virtual]
 

Edit an existing event.

Implements KOIncidenceEditor.

Definition at line 179 of file koeventeditor.cpp.

References init(), and readEvent().

Referenced by CalendarView::editEvent().

void KOEventEditor::setDefaults QDateTime  from,
QDateTime  to,
bool  allDay
 

Set widgets to default values.

Definition at line 385 of file koeventeditor.cpp.

Referenced by newEvent().

void KOEventEditor::readEvent Event *  ,
bool  tmpl = false
 

Read event object and setup widgets accordingly.

If tmpl is true, the event is read as template, i.e. the time and date information isn't set.

Definition at line 399 of file koeventeditor.cpp.

Referenced by editIncidence().

void KOEventEditor::writeEvent Event *   ) 
 

Write event settings to event object.

Definition at line 414 of file koeventeditor.cpp.

Referenced by processInput().

bool KOEventEditor::validateInput  )  [protected]
 

Check if the input is valid.

Definition at line 425 of file koeventeditor.cpp.

Referenced by processInput().

bool KOEventEditor::processInput  )  [protected, virtual]
 

Process user input and create or update event.

Returns false if input is not valid

Reimplemented from KOIncidenceEditor.

Definition at line 272 of file koeventeditor.cpp.

References myAttendeeStatusChanged(), validateInput(), and writeEvent().

bool KOEventEditor::myAttendeeStatusChanged Event *  oldVersion,
Event *  newVersion
[static, protected]
 

Find the attendee matching our user in both events and determine if our status changed.

Definition at line 261 of file koeventeditor.cpp.

Referenced by processInput().


The documentation for this class was generated from the following files:
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 Thu May 3 20:25:18 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003