• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

korganizer

KOEventEditor Class Reference

#include <koeventeditor.h>

Inheritance diagram for KOEventEditor:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class provides a dialog for editing an event.

Definition at line 46 of file koeventeditor.h.


Signals

void focusReceivedSignal ()

Public Member Functions

void editIncidence (Incidence *incidence, Calendar *calendar)
void init ()
 KOEventEditor (Calendar *calendar, QWidget *parent)
void modified (int change=0)
void newEvent ()
void readEvent (Event *event, Calendar *calendar, bool tmpl=false)
void reload ()
void setDates (const QDateTime &from, const QDateTime &to, bool allDay)
void setTexts (const QString &summary, const QString &description=QString(), bool richDescription=false)
QObject * typeAheadReceiver () const
void writeEvent (Event *)
virtual ~KOEventEditor ()

Protected Slots

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

Protected Member Functions

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

Constructor & Destructor Documentation

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

Construct new event editor.

Definition at line 56 of file koeventeditor.cpp.

KOEventEditor::~KOEventEditor (  )  [virtual]

Definition at line 62 of file koeventeditor.cpp.


Member Function Documentation

void KOEventEditor::deleteEvent (  )  [protected, slot]

Definition at line 336 of file koeventeditor.cpp.

void KOEventEditor::editIncidence ( Incidence *  incidence,
Calendar *  calendar 
) [virtual]

Edit an existing event.

Implements KOIncidenceEditor.

Definition at line 220 of file koeventeditor.cpp.

void KOEventEditor::focusReceivedSignal (  )  [signal]

void KOEventEditor::init (  )  [virtual]

Initialize editor.

This function creates the tab widgets.

Implements KOIncidenceEditor.

Definition at line 67 of file koeventeditor.cpp.

void KOEventEditor::loadDefaults (  )  [protected, slot]

Definition at line 270 of file koeventeditor.cpp.

void KOEventEditor::loadTemplate ( CalendarLocal &  cal  )  [protected, virtual]

Implements KOIncidenceEditor.

Definition at line 398 of file koeventeditor.cpp.

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

This event has been modified externally.

Reimplemented from KOIncidenceEditor.

Definition at line 176 of file koeventeditor.cpp.

int KOEventEditor::msgItemDelete (  )  [protected]

Definition at line 389 of file koeventeditor.cpp.

void KOEventEditor::newEvent (  ) 

Clear event win for new event.

Definition at line 235 of file koeventeditor.cpp.

void KOEventEditor::processCancel (  )  [protected, virtual]

Reimplemented from KOIncidenceEditor.

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

void KOEventEditor::readEvent ( Event *  event,
Calendar *  calendar,
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.

Parameters:
event the event from which the data should be used
tmpl If true, the event is treated as a template, so the currently set time is preserved in the editor dialog.

Definition at line 346 of file koeventeditor.cpp.

void KOEventEditor::reload (  )  [virtual]

Implements KOIncidenceEditor.

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

void KOEventEditor::setTexts ( const QString &  summary,
const QString &  description = QString(),
bool  richDescription = false 
)

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

void KOEventEditor::setupFreeBusy (  )  [protected]

Definition at line 205 of file koeventeditor.cpp.

void KOEventEditor::setupGeneral (  )  [protected]

Definition at line 122 of file koeventeditor.cpp.

void KOEventEditor::setupRecurrence (  )  [protected]

Definition at line 185 of file koeventeditor.cpp.

void KOEventEditor::slotSaveTemplate ( const QString &  templateName  )  [protected, virtual, slot]

Implements KOIncidenceEditor.

Definition at line 413 of file koeventeditor.cpp.

QStringList & KOEventEditor::templates (  )  const [protected, virtual]

Implements KOIncidenceEditor.

Definition at line 408 of file koeventeditor.cpp.

QString KOEventEditor::type (  )  [inline, protected, virtual]

Reimplemented from KOIncidenceEditor.

Definition at line 112 of file koeventeditor.h.

QObject * KOEventEditor::typeAheadReceiver (  )  const

Definition at line 420 of file koeventeditor.cpp.

void KOEventEditor::updateRecurrenceSummary (  )  [protected, slot]

Definition at line 425 of file koeventeditor.cpp.

bool KOEventEditor::validateInput (  )  [protected]

Check if the input is valid.

Definition at line 374 of file koeventeditor.cpp.

void KOEventEditor::writeEvent ( Event *  event  ) 

Write event settings to event object.

Definition at line 360 of file koeventeditor.cpp.


The documentation for this class was generated from the following files:
  • koeventeditor.h
  • koeventeditor.cpp

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal