Eventviews
eventview.h
239 virtual void setDateRange(const QDateTime &start, const QDateTime &end, const QDate &preferredMonth = QDate());
247 [[nodiscard]] int showMoveRecurDialog(const KCalendarCore::Incidence::Ptr &incidence, QDate date);
285 [[nodiscard]] Akonadi::CollectionCalendar::Ptr calendarForCollection(const Akonadi::Collection &collection) const;
286 [[nodiscard]] Akonadi::CollectionCalendar::Ptr calendarForCollection(Akonadi::Collection::Id collectionId) const;
451 EVENTVIEWS_NO_EXPORT void onCollectionChanged(const Akonadi::Collection &, const QSet<QByteArray> &);
456 Akonadi::CollectionCalendar::Ptr calendar3(const KCalendarCore::Incidence::Ptr &incidence) const;
474 virtual void showDates(const QDate &start, const QDate &end, const QDate &preferredMonth = QDate()) = 0;
qint64 Id
QList< Item > List
virtual bool eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay) const
Sets the default start/end date/time for new events.
Definition eventview.cpp:450
void toggleTodoCompletedSignal(const Akonadi::Item &)
instructs the receiver to toggle the completion state of the Incidence (which must be a Todo type).
void newEventSignal(const QDate &)
instructs the receiver to create a new event with the specified beginning time.
virtual void updateView()=0
Updates the current display to reflect changes that may have happened in the calendar since the last ...
virtual QPair< QDateTime, QDateTime > actualDateRange(const QDateTime &start, const QDateTime &end, const QDate &preferredMonth=QDate()) const
from the requested date range (passed via setDateRange()), calculates the adjusted date range actuall...
Definition eventview.cpp:472
virtual QDateTime selectionEnd() const
Returns the end of the selection, or an invalid QDateTime if there is no selection or the view doesn'...
Definition eventview.cpp:270
void dissociateOccurrencesSignal(const Akonadi::Item &, const QDate &)
Dissociate from a recurring incidence the occurrence on the given date to a new incidence or dissocia...
void showIncidenceSignal(const Akonadi::Item &)
instructs the receiver to show the incidence in read-only mode.
void setHolidayRegions(const QStringList ®ions)
Set which holiday regions the user wants to use.
Definition eventview.cpp:91
bool dateRangeSelectionEnabled() const
Returns whether or not date range selection is enabled.
Definition eventview.cpp:275
virtual QDateTime selectionStart() const
Returns the start of the selection, or an invalid QDateTime if there is no selection or the view does...
Definition eventview.cpp:265
void toggleAlarmSignal(const Akonadi::Item &)
instructs the receiver to toggle the alarms of the Incidence.
bool processKeyEvent(QKeyEvent *)
Handles key events, opens the new event dialog when enter is pressed, activates type ahead.
Definition eventview.cpp:337
void moveIncidenceToResourceSignal(const Akonadi::Item &, const Akonadi::Collection &)
Move the incidence to the specified resource.
virtual void setChanges(Changes changes)
Notifies the view that there are pending changes so a redraw is needed.
Definition eventview.cpp:518
virtual Akonadi::Item::List selectedIncidences() const =0
virtual EventView * viewAt(const QPoint &p)
returns the view at the given widget coordinate.
Definition eventview.cpp:256
void newEventSignal()
instructs the receiver to create a new event in given collection.
void deleteIncidenceSignal(const Akonadi::Item &)
instructs the receiver to delete the Incidence in some manner; some possibilities include automatical...
void copyIncidenceToResourceSignal(const Akonadi::Item &, const Akonadi::Collection &)
Copy the incidence to the specified resource.
virtual void doRestoreConfig(const KConfigGroup &configGroup)
reimplement to read view-specific settings.
Definition eventview.cpp:464
void shiftedEvent(const QDate &olddate, const QDate &newdate)
Emitted when an event is moved using the mouse in an agenda view (week / month).
void defaultAction(const Akonadi::Item &incidence)
Perform the default action for an incidence, e.g.
Definition eventview.cpp:74
void datesSelected(const KCalendarCore::DateList &datelist)
when the view changes the dates that are selected in one way or another, this signal is emitted.
virtual void showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)=0
Shows given incidences.
virtual bool supportsZoom() const
returns whether this view supports zoom.
Definition eventview.cpp:287
virtual KCalendarCore::DateList selectedIncidenceDates() const =0
Returns a list of the dates of selected events.
virtual void doSaveConfig(KConfigGroup &configGroup)
reimplement to write view-specific settings.
Definition eventview.cpp:468
void pasteIncidenceSignal()
instructs the receiver to paste the incidence
void setDateRangeSelectionEnabled(bool enable)
Enable or disable date range selection.
Definition eventview.cpp:281
Changes changes() const
Returns if there are pending changes and a redraw is needed.
Definition eventview.cpp:528
CalendarSupport::CollectionSelection * collectionSelection() const
Returns the selection of collection to be used by this view (custom if set, or global otherwise).
Definition eventview.cpp:407
void cutIncidenceSignal(const Akonadi::Item &)
instructs the receiver to cut the Incidence
void restoreConfig(const KConfigGroup &configGroup)
reads the view configuration.
Definition eventview.cpp:534
static QColor itemFrameColor(const QColor &color, bool selected)
Returns a variation of color that will be used for the border of an agenda or month item.
Definition eventview.cpp:621
virtual void setDateRange(const QDateTime &start, const QDateTime &end, const QDate &preferredMonth=QDate())
Definition eventview.cpp:297
void editIncidenceSignal(const Akonadi::Item &)
instructs the receiver to begin editing the incidence specified in some manner.
virtual void showDates(const QDate &start, const QDate &end, const QDate &preferredMonth=QDate())=0
void copyIncidenceSignal(const Akonadi::Item &)
instructs the receiver to copy the incidence
void saveConfig(KConfigGroup &configGroup)
writes out the view configuration.
Definition eventview.cpp:570
virtual void updateConfig()
Re-reads the configuration and picks up relevant changes which are applicable to the view.
Definition eventview.cpp:261
virtual int currentDateCount() const =0
Returns the number of currently shown dates.
virtual void setIncidenceChanger(Akonadi::IncidenceChanger *changer)
Assign a new incidence change helper object.
Definition eventview.cpp:246
void newEventSignal(const QDateTime &, const QDateTime &)
instructs the receiver to create a new event, with the specified beginning end ending times.
void newEventSignal(const QDateTime &)
instructs the receiver to create a new event with the specified beginning time.
QSharedPointer< Calendar > Ptr
QSharedPointer< Incidence > Ptr
Q_SCRIPTABLE QString start(QString train="")
Namespace EventViews provides facilities for displaying incidences, including events,...
Definition agenda.h:33
QList< QDate > DateList
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:47:03 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:47:03 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.