korganizer

#include <kojournaleditor.h>

Inheritance diagram for KOJournalEditor:
KOIncidenceEditor

List of all members.

Public Member Functions

 KOJournalEditor (Calendar *calendar, TQWidget *parent)
void init ()
void reload ()
void newJournal ()
void setTexts (const TQString &summary, const TQString &description=TQString())
void editIncidence (Incidence *, const TQDate &date, Calendar *)
void setDate (const TQDate &date)
void readJournal (Journal *, const TQDate &date)
void writeJournal (Journal *)
int msgItemDelete ()
bool validateInput ()
bool processInput ()
void modified ()

Protected Slots

void loadDefaults ()
void deleteJournal ()
void slotSaveTemplate (const TQString &)

Protected Member Functions

TQString type ()
void setupGeneral ()
void loadTemplate (CalendarLocal &)
TQStringList & templates () const

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,
TQWidget *  parent 
)

Constructs a new Journal editor.

Definition at line 46 of file kojournaleditor.cpp.


Member Function Documentation

void KOJournalEditor::editIncidence ( Incidence incidence,
const TQDate &  date,
Calendar  
) [virtual]

Edit an existing Journal.

Implements KOIncidenceEditor.

Definition at line 99 of file kojournaleditor.cpp.

void KOJournalEditor::init ( ) [virtual]

Initialize editor.

This function creates the tab widgets.

Implements KOIncidenceEditor.

Definition at line 57 of file kojournaleditor.cpp.

void KOJournalEditor::modified ( ) [virtual]

This Journal has been modified externally.

Reimplemented from KOIncidenceEditor.

Definition at line 205 of file kojournaleditor.cpp.

Clear editor for new Journal.

Definition at line 112 of file kojournaleditor.cpp.

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 138 of file kojournaleditor.cpp.

void KOJournalEditor::readJournal ( Journal journal,
const TQDate &  date 
)

Read event object and setup widgets accordingly.

Definition at line 180 of file kojournaleditor.cpp.

void KOJournalEditor::setDate ( const TQDate &  date)

Set widgets to default values.

Definition at line 174 of file kojournaleditor.cpp.

void KOJournalEditor::setTexts ( const TQString &  summary,
const TQString &  description = TQString() 
)

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 119 of file kojournaleditor.cpp.

Check if the input is valid.

Definition at line 193 of file kojournaleditor.cpp.

Write event settings to event object.

Definition at line 187 of file kojournaleditor.cpp.


The documentation for this class was generated from the following files: