korganizer

KOEventEditor Class Reference

#include <koeventeditor.h>

Inheritance diagram for KOEventEditor:

KOIncidenceEditor KDialogBase KDialog

List of all members.


Detailed Description

This class provides a dialog for editing an event.

Definition at line 48 of file koeventeditor.h.


Signals

void focusReceivedSignal ()

Public Member Functions

 KOEventEditor (Calendar *calendar, QWidget *parent)
void init ()
void modified ()
void reload ()
void newEvent ()
void setTexts (const QString &summary, const QString &description=QString::null)
void editIncidence (Incidence *incidence, const QDate &date, Calendar *calendar)
void setDates (const QDateTime &from, const QDateTime &to, bool allDay)
void readEvent (Event *event, Calendar *calendar, const QDate &date, bool tmpl=false)
void writeEvent (Event *)
QObject * typeAheadReceiver () const
void selectInvitationCounterProposal (bool enable)

Protected Slots

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

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

void KOEventEditor::modified (  )  [virtual]

This event has been modified externally.

Reimplemented from KOIncidenceEditor.

Definition at line 171 of file koeventeditor.cpp.

void KOEventEditor::newEvent (  ) 

Clear event win for new event.

Definition at line 212 of file koeventeditor.cpp.

void KOEventEditor::setTexts ( const QString &  summary,
const QString &  description = QString::null 
)

Sets the given summary and description.

If description is empty and the summary contains multiple lines, the summary will be used as description and only the first line of summary will be used as the summary.

Definition at line 232 of file koeventeditor.cpp.

void KOEventEditor::editIncidence ( Incidence incidence,
const QDate &  date,
Calendar calendar 
) [virtual]

Edit an existing event.

Implements KOIncidenceEditor.

Definition at line 198 of file koeventeditor.cpp.

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

Set widgets to the given date/time values.

Definition at line 220 of file koeventeditor.cpp.

void KOEventEditor::readEvent ( Event event,
Calendar calendar,
const QDate &  date,
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 329 of file koeventeditor.cpp.

void KOEventEditor::writeEvent ( Event event  ) 

Write event settings to event object.

Definition at line 346 of file koeventeditor.cpp.

bool KOEventEditor::validateInput (  )  [protected]

Check if the input is valid.

Definition at line 359 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 254 of file koeventeditor.cpp.


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