korganizer Library API Documentation

KOJournalEditor Class Reference

This class provides a dialog for editing a Journal. More...

#include <kojournaleditor.h>

Inheritance diagram for KOJournalEditor:

KOIncidenceEditor List of all members.

Public Member Functions

 KOJournalEditor (Calendar *calendar, QWidget *parent)
void init ()
void reload ()
void newJournal (QDate date)
void newJournal (const QString &text, QDate date)
void newJournal (const QString &text)
void newJournal (const QString &summary, const QString &description, const QString &attachment)
void editIncidence (Incidence *)
void setDefaults (QDate date)
void readJournal (Journal *)
void writeJournal (Journal *)
int msgItemDelete ()
bool validateInput ()
bool processInput ()
void processCancel ()
void modified (int change=0)

Protected Slots

void loadDefaults ()
void deleteJournal ()
void slotLoadTemplate ()
void saveTemplate (const QString &)

Protected Member Functions

QString type ()
void setupGeneral ()

Detailed Description

This class provides a dialog for editing a Journal.

Definition at line 46 of file kojournaleditor.h.


Constructor & Destructor Documentation

KOJournalEditor::KOJournalEditor Calendar *  calendar,
QWidget parent
 

Constructs a new Journal editor.

Definition at line 44 of file kojournaleditor.cpp.

References KOJournalEditor().

Referenced by KOJournalEditor().


Member Function Documentation

void KOJournalEditor::init  )  [virtual]
 

Initialize editor.

This function creates the tab widgets.

Implements KOIncidenceEditor.

Definition at line 55 of file kojournaleditor.cpp.

Referenced by editIncidence(), and newJournal().

void KOJournalEditor::newJournal QDate  date  ) 
 

Clear editor for new Journal, and preset the dates and times with hint.

Definition at line 104 of file kojournaleditor.cpp.

References init(), newJournal(), and setDefaults().

Referenced by newJournal().

void KOJournalEditor::newJournal const QString text  ) 
 

Edit new Journal.

Set summary and description from given text.

Definition at line 112 of file kojournaleditor.cpp.

References init(), and newJournal().

void KOJournalEditor::newJournal const QString summary,
const QString description,
const QString attachment
 

Edit new Journal.

void KOJournalEditor::editIncidence Incidence *   )  [virtual]
 

Edit an existing Journal.

Implements KOIncidenceEditor.

Definition at line 92 of file kojournaleditor.cpp.

References editIncidence(), init(), and readJournal().

Referenced by editIncidence(), and CalendarView::editJournal().

void KOJournalEditor::setDefaults QDate  date  ) 
 

Set widgets to default values.

Definition at line 207 of file kojournaleditor.cpp.

References setDefaults().

Referenced by newJournal(), and setDefaults().

void KOJournalEditor::readJournal Journal *   ) 
 

Read event object and setup widgets accordingly.

Definition at line 212 of file kojournaleditor.cpp.

References readJournal().

Referenced by editIncidence(), and readJournal().

void KOJournalEditor::writeJournal Journal *   ) 
 

Write event settings to event object.

Definition at line 218 of file kojournaleditor.cpp.

References writeJournal().

Referenced by processInput(), and writeJournal().

bool KOJournalEditor::validateInput  ) 
 

Check if the input is valid.

Definition at line 223 of file kojournaleditor.cpp.

Referenced by processInput().

bool KOJournalEditor::processInput  )  [virtual]
 

Process user input and create or update event.

Returns false if input is not valid

Reimplemented from KOIncidenceEditor.

Definition at line 141 of file kojournaleditor.cpp.

References validateInput(), and writeJournal().

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

This Journal has been modified externally.

Reimplemented from KOIncidenceEditor.

Definition at line 235 of file kojournaleditor.cpp.

References modified().

Referenced by modified().


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.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:19:33 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003