korganizer

KOEventEditor Class Reference

#include <koeventeditor.h>

Inheritance diagram for KOEventEditor:

KOIncidenceEditor List of all members.

Detailed Description

This class provides a dialog for editing an event.

Definition at line 47 of file koeventeditor.h.


Signals

void focusReceivedSignal ()

Public Member Functions

 KOEventEditor (Calendar *calendar, QWidget *parent)
virtual ~KOEventEditor (void)
void init ()
void modified (int change=0)
void reload ()
void newEvent (const QDateTime &from, const 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 (const QDateTime &from, const QDateTime &to, bool allDay)
void readEvent (Event *, bool tmpl=false)
void writeEvent (Event *)
QObject * typeAheadReceiver () 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 &)
QStringList & templates () const

Constructor & Destructor Documentation

KOEventEditor::KOEventEditor ( Calendar calendar,
QWidget *  parent 
)

Construct new event editor.

Definition at line 57 of file koeventeditor.cpp.


Member Function Documentation

void KOEventEditor::editIncidence ( Incidence  )  [virtual]

Edit an existing event.

Implements KOIncidenceEditor.

Definition at line 199 of file koeventeditor.cpp.

void KOEventEditor::init (  )  [virtual]

Initialize editor.

This function creates the tab widgets.

Implements KOIncidenceEditor.

Definition at line 68 of file koeventeditor.cpp.

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

This event has been modified externally.

Reimplemented from KOIncidenceEditor.

Definition at line 165 of file koeventeditor.cpp.

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

Edit new event.

Definition at line 264 of file koeventeditor.cpp.

void KOEventEditor::newEvent ( const QString &  summary,
const QString &  description,
const QString &  attachment 
)

Edit new event.

Definition at line 244 of file koeventeditor.cpp.

void KOEventEditor::newEvent ( const QString &   ) 

Edit new event.

Set summary and description from given text.

Definition at line 223 of file koeventeditor.cpp.

void KOEventEditor::newEvent ( const QDateTime &  from,
const QDateTime &  to,
bool  allDay = false 
)

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

Definition at line 212 of file koeventeditor.cpp.

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 289 of file koeventeditor.cpp.

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 364 of file koeventeditor.cpp.

void KOEventEditor::setDefaults ( const QDateTime &  from,
const QDateTime &  to,
bool  allDay 
)

Set widgets to default values.

Definition at line 350 of file koeventeditor.cpp.

bool KOEventEditor::validateInput (  )  [protected]

Check if the input is valid.

Definition at line 396 of file koeventeditor.cpp.

void KOEventEditor::writeEvent ( Event  ) 

Write event settings to event object.

Definition at line 383 of file koeventeditor.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys