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

korganizer

Classes | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
CalendarView Class Reference

#include <calendarview.h>

Inheritance diagram for CalendarView:
Inheritance graph
[legend]

Classes

class  CalendarViewVisitor
 

Public Slots

bool addIncidence (const QString &ical)
 
bool addIncidence (const KCalCore::Incidence::Ptr &incidence)
 
void addIncidenceOn (const Akonadi::Item &incidence, const QDate &)
 
void appointment_delete ()
 
void appointment_edit ()
 
void appointment_show ()
 
void archiveCalendar ()
 
void changeFullView (bool fullView)
 
void changeIncidenceDisplay (const Akonadi::Item &incidence, Akonadi::IncidenceChanger::ChangeType)
 
void checkClipboard ()
 
void configureCurrentView ()
 
void copyIncidence (const Akonadi::Item &)
 
void copyIncidenceToResource (const Akonadi::Item &incidence, const QString &resourceId)
 
void cutIncidence (const Akonadi::Item &)
 
bool deleteIncidence (const Akonadi::Item &item, bool force=false)
 
bool deleteIncidence (Akonadi::Item::Id id, bool force=false)
 
void deleteIncidence ()
 
void deleteSubTodosIncidence (const Akonadi::Item &todo)
 
void deleteTodoIncidence (const Akonadi::Item &todo, bool force=false)
 
void dialogClosing (const Akonadi::Item &incidence)
 
void dissociateOccurrences (const Akonadi::Item &incidence, const QDate &date)
 
void edit_copy ()
 
void edit_cut ()
 
void edit_options ()
 
void edit_paste ()
 
void editFilters ()
 
bool editIncidence (const Akonadi::Item &item, bool isCounter=false)
 
bool editIncidence (Akonadi::Item::Id id)
 
void editIncidence ()
 
void endMultiModify ()
 
void eventUpdated (const Akonadi::Item &incidence)
 
void exportICalendar ()
 
void exportVCalendar ()
 
void exportWeb ()
 
void filterActivated (int filterNum)
 
void goDate (const QDate &date)
 
void goNext ()
 
void goPrevious ()
 
void goToday ()
 
void handleIncidenceCreated (const Akonadi::Item &item)
 
bool incidence_unsub (const Akonadi::Item &item)
 
bool isReadOnly () const
 
void mailFreeBusy (int daysToPublish=30)
 
bool makeChildrenIndependent (const Akonadi::Item &item)
 
bool makeSubTodosIndependent ()
 
void moveIncidenceTo (const Akonadi::Item &incidence, const QDate &)
 
void moveIncidenceToResource (const Akonadi::Item &incidence, const QString &resourceId)
 
void newEvent (const QDate &)
 
void newEvent ()
 
void newEvent (const QDateTime &startDt)
 
void newEvent (const QDateTime &startDt, const QDateTime &EndDt, bool allDay=false)
 
void newEvent (const QString &summary, const QString &description=QString(), const QStringList &attachment=QStringList(), const QStringList &attendees=QStringList(), const QStringList &attachmentMimetypes=QStringList(), bool inlineAttachment=false)
 
void newFloatingEvent ()
 
void newJournal ()
 
void newJournal (const QDate &date)
 
void newJournal (const QString &text, const QDate &date=QDate())
 
void newJournal (const Akonadi::Collection &collection)
 
void newSubTodo ()
 
void newSubTodo (const Akonadi::Item &todo)
 
void newSubTodo (const Akonadi::Collection &collection)
 
void newTodo ()
 
void newTodo (const QDate &date)
 
void newTodo (const Akonadi::Collection &collection)
 
void newTodo (const QString &summary, const QString &description=QString(), const QStringList &attachments=QStringList(), const QStringList &attendees=QStringList(), const QStringList &attachmentMimetypes=QStringList(), bool inlineAttachment=false)
 
void onCutFinished ()
 
void openAddressbook ()
 
void pasteIncidence ()
 
void print ()
 
void printPreview ()
 
void processIncidenceSelection (const Akonadi::Item &incidence, const QDate &date)
 
void processMainViewSelection (const Akonadi::Item &incidence, const QDate &date)
 
void processTodoListSelection (const Akonadi::Item &incidence, const QDate &date)
 
void purgeCompleted ()
 
void readFilterSettings (KConfig *config)
 
void readSettings ()
 
void resourcesChanged ()
 
bool saveCalendar (const QString &filename)
 
void schedule (KCalCore::iTIPMethod, const Akonadi::Item &incidence)
 
void schedule_add (const Akonadi::Item &incidence=Akonadi::Item())
 
void schedule_cancel (const Akonadi::Item &incidence=Akonadi::Item())
 
void schedule_counter (const Akonadi::Item &incidence=Akonadi::Item())
 
void schedule_declinecounter (const Akonadi::Item &incidence=Akonadi::Item())
 
void schedule_forward (const Akonadi::Item &incidence=Akonadi::Item())
 
void schedule_publish (const Akonadi::Item &incidence=Akonadi::Item())
 
void schedule_refresh (const Akonadi::Item &incidence=Akonadi::Item())
 
void schedule_reply (const Akonadi::Item &incidence=Akonadi::Item())
 
void schedule_request (const Akonadi::Item &incidence=Akonadi::Item())
 
void selectWeek (const QDate &week, const QDate &preferredMonth)
 
void setReadOnly (bool readOnly=true)
 
void showDate (const QDate &date)
 
void showDateNavigator (bool)
 
void showErrorMessage (const QString &)
 
void showEventViewer (bool)
 
void showIncidence (const Akonadi::Item &item)
 
bool showIncidence (Akonadi::Item::Id id)
 
void showIncidence ()
 
void showIncidenceContext (const Akonadi::Item &incidence)
 
bool showIncidenceContext (Akonadi::Item::Id id)
 
void showIntro ()
 
void showLeftFrame (bool show=true)
 
void showTodoView (bool)
 
void slotAutoArchivingSettingsModified ()
 
void slotCreateFinished (int changeId, const Akonadi::Item &item, Akonadi::IncidenceChanger::ResultCode resultCode, const QString &errorString)
 
void slotDeleteFinished (int changeId, const QVector< Akonadi::Item::Id > &itemIdList, Akonadi::IncidenceChanger::ResultCode resultCode, const QString &errorString)
 
void slotModifyFinished (int changeId, const Akonadi::Item &item, Akonadi::IncidenceChanger::ResultCode resultCode, const QString &errorString)
 
void startMultiModify (const QString &text)
 
void takeOverEvent ()
 
void todo_unsub ()
 
void toggleAlarm (const Akonadi::Item &incidence)
 
void toggleTodoCompleted (const Akonadi::Item &incidence)
 
void updateCategories ()
 
void updateConfig ()
 
void updateConfig (const QByteArray &)
 
void updateFilter ()
 
void updateUnmanagedViews ()
 
void updateView (const QDate &start, const QDate &end, const QDate &preferredMonth, const bool updateTodos=true)
 
void updateView ()
 
void uploadFreeBusy ()
 
void writeFilterSettings (KConfig *config)
 
void writeSettings ()
 
- Public Slots inherited from KOrg::CalendarViewBase
virtual void updateCategories ()=0
 
virtual void updateView ()=0
 

Signals

void autoArchivingSettingsModified ()
 
void calendarViewExpanded (bool)
 
void categoriesChanged ()
 
void categoryConfigChanged ()
 
void changeNavStringNext (const QString &)
 
void changeNavStringPrev (const QString &)
 
void closed (QWidget *)
 
void configChanged ()
 
void dayPassed (const QDate &)
 
void exportHTML (KOrg::HTMLExportSettings *)
 
void filterChanged ()
 
void filtersUpdated (const QStringList &, int)
 
void groupEventsSelected (bool)
 
void incidenceSelected (const Akonadi::Item &incidence, const QDate &date)
 
void modifiedChanged (bool)
 
void newIncidenceChanger (Akonadi::IncidenceChanger *)
 
void organizerEventsSelected (bool)
 
void pasteEnabled (bool)
 
void readOnlyChanged (bool)
 
void statusMessage (const QString &)
 
void subtodoSelected (bool)
 
void todoSelected (bool)
 
- Signals inherited from KOrg::CalendarViewBase
virtual void newIncidenceChanger (Akonadi::IncidenceChanger *)=0
 

Public Member Functions

 CalendarView (QWidget *parent=0)
 
virtual ~CalendarView ()
 
QDate activeDate (bool fallbackToToday=false)
 
QDate activeIncidenceDate ()
 
void adaptNavigationUnits ()
 
void addExtension (CalendarViewExtension::Factory *)
 
void addView (KOrg::BaseView *)
 
Akonadi::ETMCalendar::Ptr calendar () const
 
QString currentFilterName () const
 
Akonadi::Item currentSelection ()
 
KOrg::BaseView * currentView () const
 
DateNavigator * dateNavigator () const
 
KODialogManager * dialogManager () const
 
QDate endDate ()
 
Akonadi::History * history () const
 
virtual Akonadi::IncidenceChanger * incidenceChanger () const
 
bool isFiltered () const
 
QWidget * leftFrame () const
 
int msgCalModified ()
 
NavigatorBar * navigatorBar () const
 
Akonadi::Item selectedIncidence ()
 
void setCalendar (const Akonadi::ETMCalendar::Ptr &)
 
void setCheckableProxyModel (KOCheckableProxyModel *)
 
void showMessage (const QString &message, KMessageWidget::MessageType)
 
void showView (KOrg::BaseView *)
 
QDate startDate ()
 
void updateHighlightModes ()
 
KOViewManager * viewManager () const
 
QStackedWidget * viewStack () const
 
- Public Member Functions inherited from KOrg::CalendarViewBase
 CalendarViewBase (QWidget *parent)
 
virtual ~CalendarViewBase ()
 
virtual bool editIncidence (const Akonadi::Item &item, bool isCounter=false)=0
 

Protected Slots

void showDates (const KCalCore::DateList &, const QDate &preferredMonth=QDate())
 

Protected Member Functions

void checkForFilteredChange (const Akonadi::Item &incidence)
 
void dateTimesForNewEvent (QDateTime &startDt, QDateTime &endDt, bool &allDay)
 
bool eventFilter (QObject *watched, QEvent *event)
 
IncidenceEditorNG::IncidenceDialog * incidenceDialog (const Akonadi::Item &)
 
int msgItemDelete (const Akonadi::Item &incidence)
 
IncidenceEditorNG::IncidenceDialog * newEventEditor (const KCalCore::Event::Ptr &event)
 
Akonadi::Item selectedTodo ()
 
void warningChangeFailed (const Akonadi::Item &)
 

Detailed Description

This is the main calendar widget.

It provides the different views on the calendar data as well as the date navigator. It also handles synchronization of the different views and controls the different dialogs like preferences, event editor, search dialog etc.

main calendar view widget

Author
Cornelius Schumacher

Definition at line 99 of file calendarview.h.

Constructor & Destructor Documentation

CalendarView::CalendarView ( QWidget *  parent = 0)
explicit

Constructs a new calendar view widget.

Parameters
parentparent window

Definition at line 104 of file calendarview.cpp.

CalendarView::~CalendarView ( )
virtual

Definition at line 301 of file calendarview.cpp.

Member Function Documentation

QDate CalendarView::activeDate ( bool  fallbackToToday = false)

Returns the best guess at the current active date in the view.

This has nothing to do with selected incidences, use activeIncidenceDate() for that, for example, agenda supports time selection and incidence selection and they can have diferent dates.

Parameters
fallbackToTodayIf guessing doesn't work, some views will prefer today to be returned instead of the first select date in the day matrix, Journal view for example.

Definition at line 318 of file calendarview.cpp.

QDate CalendarView::activeIncidenceDate ( )

Returns the date of the selected incidence.

If the selected incidence is recurring, it will return the date of the selected occurrence.

Definition at line 342 of file calendarview.cpp.

void CalendarView::adaptNavigationUnits ( )

Adapts navigation units according to the current view's navigation step size.

Definition at line 1898 of file calendarview.cpp.

void CalendarView::addExtension ( CalendarViewExtension::Factory *  factory)

Adds a calendar view extension widget.

CalendarView takes ownership of the objects created by the factory.

Definition at line 2104 of file calendarview.cpp.

bool CalendarView::addIncidence ( const QString &  ical)
slot

Add an incidence to the active calendar.

Parameters
icalA calendar in iCalendar format containing the incidence. The calendar must consist of a VCALENDAR component which contains the incidence (VEVENT, VTODO, VJOURNAL or VFREEBUSY) and optionally a VTIMEZONE component. If there is more than one incidence, only the first is added to KOrganizer's calendar.

Definition at line 1226 of file calendarview.cpp.

bool CalendarView::addIncidence ( const KCalCore::Incidence::Ptr &  incidence)
slot
void CalendarView::addIncidenceOn ( const Akonadi::Item &  incidence,
const QDate &  dt 
)
slot

Definition at line 2540 of file calendarview.cpp.

void CalendarView::addView ( KOrg::BaseView *  view)
virtual

Implements KOrg::CalendarViewBase.

Definition at line 2094 of file calendarview.cpp.

void CalendarView::appointment_delete ( )
slot

pop up dialog confirming deletion of currently selected event in the View.

Definition at line 1259 of file calendarview.cpp.

void CalendarView::appointment_edit ( )
slot

pop up an Appointment Dialog to edit an existing appointment.

Get information on the appointment from the list of unique IDs that is currently in the View, called currIds.

Definition at line 1249 of file calendarview.cpp.

void CalendarView::appointment_show ( )
slot

pop up a dialog to show an existing appointment.

Definition at line 1239 of file calendarview.cpp.

void CalendarView::archiveCalendar ( )
slot

Archive old events of calendar.

Definition at line 387 of file calendarview.cpp.

void CalendarView::autoArchivingSettingsModified ( )
signal

Emitted when auto-archiving options were modified.

Akonadi::ETMCalendar::Ptr CalendarView::calendar ( ) const
virtual

Implements KOrg::CalendarViewBase.

Definition at line 313 of file calendarview.cpp.

void CalendarView::calendarViewExpanded ( bool  )
signal
void CalendarView::categoriesChanged ( )
signal

Emitted when the categories were updated, and thus the categories editor dialog needs to reload the list of categories.

void CalendarView::categoryConfigChanged ( )
signal

Emitted when the categories were edited by the user, and thus the views need to reload the list of categories.

void CalendarView::changeFullView ( bool  fullView)
slot

Use as much of the full window as possible for the view.

Parameters
fullViewif true, expand the view as much as possible within the main view (hiding the sidebar for example); else put back the normal view.

Definition at line 2658 of file calendarview.cpp.

void CalendarView::changeIncidenceDisplay ( const Akonadi::Item &  incidence,
Akonadi::IncidenceChanger::ChangeType  changeType 
)
slot

passes on the message that an event has changed to the currently activated view so that it can make appropriate display changes.

Definition at line 736 of file calendarview.cpp.

void CalendarView::changeNavStringNext ( const QString &  )
signal
void CalendarView::changeNavStringPrev ( const QString &  )
signal

Emitted when the unit of navigation changes.

void CalendarView::checkClipboard ( )
slot

Check if clipboard contains vCalendar event.

The signal pasteEnabled() is emitted as result.

Definition at line 1966 of file calendarview.cpp.

void CalendarView::checkForFilteredChange ( const Akonadi::Item &  incidence)
protected

Definition at line 712 of file calendarview.cpp.

void CalendarView::closed ( QWidget *  )
signal

Emitted right before we die.

void CalendarView::configChanged ( )
signal

when change is made to options dialog, the topwidget will catch this and emit this signal which notifies all widgets which have registered for notification to update their settings.

void CalendarView::configureCurrentView ( )
slot

Definition at line 1162 of file calendarview.cpp.

void CalendarView::copyIncidence ( const Akonadi::Item &  incidence)
slot

Copies the selected incidence using the edit_copy() method.

Definition at line 2217 of file calendarview.cpp.

void CalendarView::copyIncidenceToResource ( const Akonadi::Item &  incidence,
const QString &  resourceId 
)
slot

Definition at line 1407 of file calendarview.cpp.

QString CalendarView::currentFilterName ( ) const

Returns the name of the current filter.

Definition at line 2031 of file calendarview.cpp.

Akonadi::Item CalendarView::currentSelection ( )
virtual

Returns the item selected in the current view (or an invalid one if none selected)

Reimplemented from superclass.

Implements KOrg::CalendarViewBase.

Definition at line 2153 of file calendarview.cpp.

KOrg::BaseView * CalendarView::currentView ( ) const

Definition at line 1157 of file calendarview.cpp.

void CalendarView::cutIncidence ( const Akonadi::Item &  incidence)
slot

Cuts the selected incidence using the edit_cut() method.

Definition at line 2211 of file calendarview.cpp.

DateNavigator* CalendarView::dateNavigator ( ) const
inline

Definition at line 142 of file calendarview.h.

void CalendarView::dateTimesForNewEvent ( QDateTime &  startDt,
QDateTime &  endDt,
bool &  allDay 
)
protected

Adjust the given date/times by valid defaults (selection or configured defaults, if invalid values are given) and allow the view to adjust the type.

Definition at line 924 of file calendarview.cpp.

void CalendarView::dayPassed ( const QDate &  )
signal

Emitted, when a day changed (i.e.

korganizer was running at midnight). The argument is the new date

bool CalendarView::deleteIncidence ( const Akonadi::Item &  item,
bool  force = false 
)
slot

Delete the supplied incidence.

It calls the correct deleteXXX method

Parameters
forceIf true, all recurrences and sub-todos (if applicable) will be deleted without prompting for confirmation.
forceIf true, all recurrences and sub-todos (if applicable) will be deleted without prompting for confirmation.

Definition at line 2357 of file calendarview.cpp.

bool CalendarView::deleteIncidence ( Akonadi::Item::Id  id,
bool  force = false 
)
slot

Definition at line 1325 of file calendarview.cpp.

void CalendarView::deleteIncidence ( )
slot

Definition at line 2206 of file calendarview.cpp.

void CalendarView::deleteSubTodosIncidence ( const Akonadi::Item &  todo)
slot

Delete the supplied todo and all sub-todos.

Definition at line 2290 of file calendarview.cpp.

void CalendarView::deleteTodoIncidence ( const Akonadi::Item &  todo,
bool  force = false 
)
slot

Delete the todo incidence, and its sub-to-dos.

Parameters
todoThe todo to delete.
forceIf true, all sub-todos will be deleted without prompting for confirmation.

Definition at line 2308 of file calendarview.cpp.

void CalendarView::dialogClosing ( const Akonadi::Item &  incidence)
slot

Definition at line 2149 of file calendarview.cpp.

KODialogManager* CalendarView::dialogManager ( ) const
inline

Definition at line 137 of file calendarview.h.

void CalendarView::dissociateOccurrences ( const Akonadi::Item &  incidence,
const QDate &  date 
)
slot

Definition at line 1563 of file calendarview.cpp.

void CalendarView::edit_copy ( )
slot

copy the current appointment(s) to the clipboard

Definition at line 812 of file calendarview.cpp.

void CalendarView::edit_cut ( )
slot

cut the current appointment to the clipboard

Definition at line 800 of file calendarview.cpp.

void CalendarView::edit_options ( )
slot

edit viewing and configuration options.

Definition at line 919 of file calendarview.cpp.

void CalendarView::edit_paste ( )
slot

paste the current vobject(s) in the clipboard buffer into calendar

Definition at line 830 of file calendarview.cpp.

void CalendarView::editFilters ( )
slot

Definition at line 1983 of file calendarview.cpp.

bool CalendarView::editIncidence ( const Akonadi::Item &  item,
bool  isCounter = false 
)
slot

Create an editor for the supplied incidence.

It calls the correct editXXX method

Definition at line 2266 of file calendarview.cpp.

bool CalendarView::editIncidence ( Akonadi::Item::Id  id)
slot

Definition at line 2180 of file calendarview.cpp.

void CalendarView::editIncidence ( )
slot

Definition at line 2175 of file calendarview.cpp.

QDate CalendarView::endDate ( )
virtual

Implements KOrg::CalendarViewBase.

Definition at line 361 of file calendarview.cpp.

void CalendarView::endMultiModify ( )
slot

Definition at line 731 of file calendarview.cpp.

bool CalendarView::eventFilter ( QObject *  watched,
QEvent *  event 
)
protected

Definition at line 2625 of file calendarview.cpp.

void CalendarView::eventUpdated ( const Akonadi::Item &  incidence)
slot

Definition at line 1891 of file calendarview.cpp.

void CalendarView::exportHTML ( KOrg::HTMLExportSettings *  )
signal
void CalendarView::exportICalendar ( )
slot

Export as iCalendar file.

Definition at line 1806 of file calendarview.cpp.

void CalendarView::exportVCalendar ( )
slot

Export as vCalendar file.

Definition at line 1842 of file calendarview.cpp.

void CalendarView::exportWeb ( )
slot

Export as HTML file.

Definition at line 1793 of file calendarview.cpp.

void CalendarView::filterActivated ( int  filterNum)
slot

Definition at line 2011 of file calendarview.cpp.

void CalendarView::filterChanged ( )
signal
void CalendarView::filtersUpdated ( const QStringList &  ,
int   
)
signal
void CalendarView::goDate ( const QDate &  date)
slot

Move the current view date to the specified date.

Definition at line 515 of file calendarview.cpp.

void CalendarView::goNext ( )
slot

Move to the next date(s) in the current view.

Definition at line 535 of file calendarview.cpp.

void CalendarView::goPrevious ( )
slot

Move to the previous date(s) in the current view.

Definition at line 546 of file calendarview.cpp.

void CalendarView::goToday ( )
slot

Move the current view date to today.

Definition at line 530 of file calendarview.cpp.

void CalendarView::groupEventsSelected ( bool  )
signal

Emitted when state of events selection has changed and user is attendee.

void CalendarView::handleIncidenceCreated ( const Akonadi::Item &  item)
slot

Definition at line 2824 of file calendarview.cpp.

Akonadi::History * CalendarView::history ( ) const

Definition at line 2723 of file calendarview.cpp.

bool CalendarView::incidence_unsub ( const Akonadi::Item &  item)
slot

Definition at line 1277 of file calendarview.cpp.

virtual Akonadi::IncidenceChanger* CalendarView::incidenceChanger ( ) const
inlinevirtual

Implements KOrg::CalendarViewBase.

Definition at line 145 of file calendarview.h.

IncidenceEditorNG::IncidenceDialog * CalendarView::incidenceDialog ( const Akonadi::Item &  item)
protected

Definition at line 940 of file calendarview.cpp.

void CalendarView::incidenceSelected ( const Akonadi::Item &  incidence,
const QDate &  date 
)
signal

Emitted when an incidence gets selected.

If the selection is cleared the signal is emitted with 0 as argument.

bool CalendarView::isFiltered ( ) const

Returns true if there's a filter applied.

Definition at line 2026 of file calendarview.cpp.

bool CalendarView::isReadOnly ( ) const
slot

query if the calendar is read-only.

Definition at line 1733 of file calendarview.cpp.

QWidget* CalendarView::leftFrame ( ) const
inline

Definition at line 140 of file calendarview.h.

void CalendarView::mailFreeBusy ( int  daysToPublish = 30)
slot

Definition at line 1705 of file calendarview.cpp.

bool CalendarView::makeChildrenIndependent ( const Akonadi::Item &  item)
slot

Make all children of incidence independent, not update the view Works with any incidence type, although currently we only pass to-dos.

Definition at line 1305 of file calendarview.cpp.

bool CalendarView::makeSubTodosIndependent ( )
slot

Make all sub-to-dos of the selected todo independent, update the view.

Definition at line 1293 of file calendarview.cpp.

void CalendarView::modifiedChanged ( bool  )
signal

Emitted when state of modified flag changes.

void CalendarView::moveIncidenceTo ( const Akonadi::Item &  incidence,
const QDate &  dt 
)
slot

Definition at line 2580 of file calendarview.cpp.

void CalendarView::moveIncidenceToResource ( const Akonadi::Item &  incidence,
const QString &  resourceId 
)
slot

Definition at line 1477 of file calendarview.cpp.

int CalendarView::msgCalModified ( )
int CalendarView::msgItemDelete ( const Akonadi::Item &  incidence)
protected

Definition at line 789 of file calendarview.cpp.

NavigatorBar* CalendarView::navigatorBar ( ) const
inline

Definition at line 141 of file calendarview.h.

void CalendarView::newEvent ( const QDate &  dt)
slot

Definition at line 966 of file calendarview.cpp.

void CalendarView::newEvent ( )
slot

create new event without having a date hint.

Takes current date as default hint.

Definition at line 961 of file calendarview.cpp.

void CalendarView::newEvent ( const QDateTime &  startDt)
slot

create an editeventwin with supplied date/time, and if bool is true, make the event take all day.

Definition at line 980 of file calendarview.cpp.

void CalendarView::newEvent ( const QDateTime &  startDt,
const QDateTime &  EndDt,
bool  allDay = false 
)
slot

Definition at line 985 of file calendarview.cpp.

void CalendarView::newEvent ( const QString &  summary,
const QString &  description = QString(),
const QStringList &  attachment = QStringList(),
const QStringList &  attendees = QStringList(),
const QStringList &  attachmentMimetypes = QStringList(),
bool  inlineAttachment = false 
)
slot

Create new Event from given summary, description, attachment list and attendees list.

Definition at line 1012 of file calendarview.cpp.

IncidenceEditorNG::IncidenceDialog * CalendarView::newEventEditor ( const KCalCore::Event::Ptr &  event)
protected

Definition at line 947 of file calendarview.cpp.

void CalendarView::newFloatingEvent ( )
slot

Definition at line 1219 of file calendarview.cpp.

void CalendarView::newIncidenceChanger ( Akonadi::IncidenceChanger *  )
signal
void CalendarView::newJournal ( )
slot

Definition at line 1105 of file calendarview.cpp.

void CalendarView::newJournal ( const QDate &  date)
slot

Definition at line 1110 of file calendarview.cpp.

void CalendarView::newJournal ( const QString &  text,
const QDate &  date = QDate() 
)
slot

Definition at line 1139 of file calendarview.cpp.

void CalendarView::newJournal ( const Akonadi::Collection &  collection)
slot

Definition at line 1115 of file calendarview.cpp.

void CalendarView::newSubTodo ( )
slot

create new todo with a parent todo

Definition at line 1170 of file calendarview.cpp.

void CalendarView::newSubTodo ( const Akonadi::Item &  todo)
slot

create new todo with a parent todo

Definition at line 1199 of file calendarview.cpp.

void CalendarView::newSubTodo ( const Akonadi::Collection &  collection)
slot

create new todo with parent todo

Definition at line 1178 of file calendarview.cpp.

void CalendarView::newTodo ( )
slot

create new todo

Definition at line 1056 of file calendarview.cpp.

void CalendarView::newTodo ( const QDate &  date)
slot

create new todo, due on date

Definition at line 1088 of file calendarview.cpp.

void CalendarView::newTodo ( const Akonadi::Collection &  collection)
slot

create new todo

Definition at line 1061 of file calendarview.cpp.

void CalendarView::newTodo ( const QString &  summary,
const QString &  description = QString(),
const QStringList &  attachments = QStringList(),
const QStringList &  attendees = QStringList(),
const QStringList &  attachmentMimetypes = QStringList(),
bool  inlineAttachment = false 
)
slot

Definition at line 1041 of file calendarview.cpp.

void CalendarView::onCutFinished ( )
slot

Definition at line 2728 of file calendarview.cpp.

void CalendarView::openAddressbook ( )
slot

Definition at line 1728 of file calendarview.cpp.

void CalendarView::organizerEventsSelected ( bool  )
signal

Emitted when state of events selection has changed and user is organizer.

void CalendarView::pasteEnabled ( bool  )
signal

Emitted, when clipboard content changes.

Parameter indicates if paste is possible or not.

void CalendarView::pasteIncidence ( )
slot

Pastes the current incidence using the edit_paste() method.

Definition at line 2223 of file calendarview.cpp.

void CalendarView::print ( )
slot

Functions for printing, previewing a print, and setting up printing parameters.

Definition at line 1746 of file calendarview.cpp.

void CalendarView::printPreview ( )
slot

Definition at line 1769 of file calendarview.cpp.

void CalendarView::processIncidenceSelection ( const Akonadi::Item &  incidence,
const QDate &  date 
)
slot

Definition at line 1928 of file calendarview.cpp.

void CalendarView::processMainViewSelection ( const Akonadi::Item &  incidence,
const QDate &  date 
)
slot

Definition at line 1912 of file calendarview.cpp.

void CalendarView::processTodoListSelection ( const Akonadi::Item &  incidence,
const QDate &  date 
)
slot

Definition at line 1920 of file calendarview.cpp.

void CalendarView::purgeCompleted ( )
slot

Definition at line 2481 of file calendarview.cpp.

void CalendarView::readFilterSettings ( KConfig *  config)
slot

read settings for calendar filters

Definition at line 461 of file calendarview.cpp.

void CalendarView::readOnlyChanged ( bool  )
signal

Emitted when state of read-only flag changes.

void CalendarView::readSettings ( )
slot

Using the KConfig associated with the kapp variable, read in the settings from the config file.

You have to call setCalendar before calling readSettings.

Definition at line 392 of file calendarview.cpp.

void CalendarView::resourcesChanged ( )
slot

Definition at line 2619 of file calendarview.cpp.

bool CalendarView::saveCalendar ( const QString &  filename)
slot

Save calendar data to file.

Return true if calendar could be successfully saved.

Parameters
filenameThe file name to save the calendar to

Definition at line 375 of file calendarview.cpp.

void CalendarView::schedule ( KCalCore::iTIPMethod  method,
const Akonadi::Item &  incidence 
)
slot

Definition at line 1715 of file calendarview.cpp.

void CalendarView::schedule_add ( const Akonadi::Item &  incidence = Akonadi::Item())
slot

Definition at line 1672 of file calendarview.cpp.

void CalendarView::schedule_cancel ( const Akonadi::Item &  incidence = Akonadi::Item())
slot

Definition at line 1667 of file calendarview.cpp.

void CalendarView::schedule_counter ( const Akonadi::Item &  incidence = Akonadi::Item())
slot

Definition at line 1682 of file calendarview.cpp.

void CalendarView::schedule_declinecounter ( const Akonadi::Item &  incidence = Akonadi::Item())
slot

Definition at line 1687 of file calendarview.cpp.

void CalendarView::schedule_forward ( const Akonadi::Item &  incidence = Akonadi::Item())
slot

Definition at line 1692 of file calendarview.cpp.

void CalendarView::schedule_publish ( const Akonadi::Item &  incidence = Akonadi::Item())
slot

Definition at line 1645 of file calendarview.cpp.

void CalendarView::schedule_refresh ( const Akonadi::Item &  incidence = Akonadi::Item())
slot

Definition at line 1662 of file calendarview.cpp.

void CalendarView::schedule_reply ( const Akonadi::Item &  incidence = Akonadi::Item())
slot

Definition at line 1677 of file calendarview.cpp.

void CalendarView::schedule_request ( const Akonadi::Item &  incidence = Akonadi::Item())
slot

Definition at line 1657 of file calendarview.cpp.

Akonadi::Item CalendarView::selectedIncidence ( )

Returns a pointer to the incidence selected in the current view.

If there is no selection, return the selected todo from the todo list on the left.

Definition at line 2158 of file calendarview.cpp.

Akonadi::Item CalendarView::selectedTodo ( )
protected

Definition at line 2130 of file calendarview.cpp.

void CalendarView::selectWeek ( const QDate &  week,
const QDate &  preferredMonth 
)
slot

The user clicked on a week number in the date navigator.

Select a week or a work week depending on the user's config option.

Parameters
preferredMonthHolds the month that should be selected when the week crosses months. It's a QDate instead of uint so it can be easily fed to KCalendarSystem's functions.

Definition at line 2648 of file calendarview.cpp.

void CalendarView::setCalendar ( const Akonadi::ETMCalendar::Ptr &  )
void CalendarView::setCheckableProxyModel ( KOCheckableProxyModel *  model)

Definition at line 2733 of file calendarview.cpp.

void CalendarView::setReadOnly ( bool  readOnly = true)
slot

set state of calendar to read-only

Parameters
readOnlywhether the calendar view should be set read-only or not

Definition at line 1738 of file calendarview.cpp.

void CalendarView::showDate ( const QDate &  date)
slot

Show the given date without changing date selection length.

Definition at line 520 of file calendarview.cpp.

void CalendarView::showDateNavigator ( bool  show)
slot

Definition at line 2065 of file calendarview.cpp.

void CalendarView::showDates ( const KCalCore::DateList &  ,
const QDate &  preferredMonth = QDate() 
)
protectedslot

Select a view or adapt the current view to display the specified dates.

preferredMonth is useful when the datelist crosses months, if valid, any month-like component should honour this

Definition at line 1971 of file calendarview.cpp.

void CalendarView::showErrorMessage ( const QString &  msg)
slot

Definition at line 2516 of file calendarview.cpp.

void CalendarView::showEventViewer ( bool  show)
slot

Definition at line 2085 of file calendarview.cpp.

void CalendarView::showIncidence ( const Akonadi::Item &  item)
slot

Create a read-only viewer dialog for the supplied incidence.

It calls the correct showXXX method

Definition at line 2228 of file calendarview.cpp.

bool CalendarView::showIncidence ( Akonadi::Item::Id  id)
slot

Definition at line 2186 of file calendarview.cpp.

void CalendarView::showIncidence ( )
slot

Definition at line 2170 of file calendarview.cpp.

void CalendarView::showIncidenceContext ( const Akonadi::Item &  incidence)
slot

Show an incidence in context.

This means showing the todo, agenda or journal view (as appropriate) and scrolling it to show the incidence.

Parameters
incidenceThe incidence to show.

Definition at line 2240 of file calendarview.cpp.

bool CalendarView::showIncidenceContext ( Akonadi::Item::Id  id)
slot

Definition at line 2196 of file calendarview.cpp.

void CalendarView::showIntro ( )
slot

Definition at line 2060 of file calendarview.cpp.

void CalendarView::showLeftFrame ( bool  show = true)
slot

Definition at line 2113 of file calendarview.cpp.

void CalendarView::showMessage ( const QString &  message,
KMessageWidget::MessageType  type 
)

Definition at line 2793 of file calendarview.cpp.

void CalendarView::showTodoView ( bool  show)
slot

Definition at line 2075 of file calendarview.cpp.

void CalendarView::showView ( KOrg::BaseView *  )
virtual

changes the view to be the currently selected view

Implements KOrg::CalendarViewBase.

Definition at line 2099 of file calendarview.cpp.

void CalendarView::slotAutoArchivingSettingsModified ( )
inlineslot

Definition at line 582 of file calendarview.h.

void CalendarView::slotCreateFinished ( int  changeId,
const Akonadi::Item &  item,
Akonadi::IncidenceChanger::ResultCode  resultCode,
const QString &  errorString 
)
slot

Definition at line 620 of file calendarview.cpp.

void CalendarView::slotDeleteFinished ( int  changeId,
const QVector< Akonadi::Item::Id > &  itemIdList,
Akonadi::IncidenceChanger::ResultCode  resultCode,
const QString &  errorString 
)
slot

Definition at line 694 of file calendarview.cpp.

void CalendarView::slotModifyFinished ( int  changeId,
const Akonadi::Item &  item,
Akonadi::IncidenceChanger::ResultCode  resultCode,
const QString &  errorString 
)
slot

Definition at line 635 of file calendarview.cpp.

QDate CalendarView::startDate ( )
virtual

Implements KOrg::CalendarViewBase.

Definition at line 355 of file calendarview.cpp.

void CalendarView::startMultiModify ( const QString &  text)
slot

Definition at line 726 of file calendarview.cpp.

void CalendarView::statusMessage ( const QString &  )
signal

Send status message, which can e.g.

be displayed in the status bar.

void CalendarView::subtodoSelected ( bool  )
signal
void CalendarView::takeOverEvent ( )
slot

Take ownership of selected event.

Definition at line 2040 of file calendarview.cpp.

void CalendarView::todo_unsub ( )
slot

Frees a subtodo from it's relation, update the view.

Definition at line 1269 of file calendarview.cpp.

void CalendarView::todoSelected ( bool  )
signal

Emitted, when a todoitem is selected or deselected.

the connected slots enables/disables the corresponding menu items

void CalendarView::toggleAlarm ( const Akonadi::Item &  incidence)
slot

Definition at line 1335 of file calendarview.cpp.

void CalendarView::toggleTodoCompleted ( const Akonadi::Item &  incidence)
slot

Definition at line 1378 of file calendarview.cpp.

void CalendarView::updateCategories ( )
slot

Calendar configuration was changed, so refresh categories list.

Definition at line 2521 of file calendarview.cpp.

void CalendarView::updateConfig ( )
slot

options dialog made a changed to the configuration.

we catch this and notify all widgets which need to update their configuration.

Definition at line 557 of file calendarview.cpp.

void CalendarView::updateConfig ( const QByteArray &  receiver)
slot

Definition at line 562 of file calendarview.cpp.

void CalendarView::updateFilter ( )
slot

Definition at line 1988 of file calendarview.cpp.

void CalendarView::updateHighlightModes ( )

Informs the date navigator which incidence types should be used to embolden days, this function is mainly called when the view changes or when the config changes.

Definition at line 2633 of file calendarview.cpp.

void CalendarView::updateUnmanagedViews ( )
slot

Definition at line 782 of file calendarview.cpp.

void CalendarView::updateView ( const QDate &  start,
const QDate &  end,
const QDate &  preferredMonth,
const bool  updateTodos = true 
)
slot

Definition at line 753 of file calendarview.cpp.

void CalendarView::updateView ( )
slot

preferredMonth

Definition at line 773 of file calendarview.cpp.

void CalendarView::uploadFreeBusy ( )
slot

Definition at line 1710 of file calendarview.cpp.

KOViewManager* CalendarView::viewManager ( ) const
inline

Definition at line 136 of file calendarview.h.

QStackedWidget* CalendarView::viewStack ( ) const
inline

Definition at line 139 of file calendarview.h.

void CalendarView::warningChangeFailed ( const Akonadi::Item &  item)
protected

Definition at line 2504 of file calendarview.cpp.

void CalendarView::writeFilterSettings ( KConfig *  config)
slot

write settings for calendar filters

Definition at line 495 of file calendarview.cpp.

void CalendarView::writeSettings ( )
slot

write current state to config file.

Definition at line 429 of file calendarview.cpp.


The documentation for this class was generated from the following files:
  • calendarview.h
  • calendarview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korganizer

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal