Eventviews
multiagendaview.cpp
86 Akonadi::CollectionCalendar::Ptr calendarForCollection(const Akonadi::Collection &collection) override
103 explicit MultiAgendaViewPrivate(const MultiAgendaView::CalendarFactory::Ptr &factory, MultiAgendaView *qq)
237 d->mTimeLabelsZone->setContentsMargins(0, d->mScrollArea->frameWidth(), 0, d->mScrollArea->frameWidth());
308 connect(timeLabel->verticalScrollBar(), &QAbstractSlider::valueChanged, d->mScrollBar, &QAbstractSlider::setValue);
309 connect(d->mScrollBar, &QAbstractSlider::valueChanged, timeLabel->verticalScrollBar(), &QAbstractSlider::setValue);
347 q->connect(agendaView, qOverload<>(&EventView::newEventSignal), q, qOverload<>(&EventView::newEventSignal));
348 q->connect(agendaView, qOverload<const QDate &>(&EventView::newEventSignal), q, qOverload<const QDate &>(&EventView::newEventSignal));
349 q->connect(agendaView, qOverload<const QDateTime &>(&EventView::newEventSignal), q, qOverload<const QDateTime &>(&EventView::newEventSignal));
357 q->connect(agendaView, &EventView::deleteIncidenceSignal, q, &EventView::deleteIncidenceSignal);
365 q->connect(agendaView, &EventView::dissociateOccurrencesSignal, q, &EventView::dissociateOccurrencesSignal);
369 q->connect(agendaView, &EventView::incidenceSelected, q, &MultiAgendaView::slotSelectionChanged);
371 q->connect(agendaView, &AgendaView::timeSpanSelectionChanged, q, &MultiAgendaView::slotClearTimeSpanSelection);
420void MultiAgendaView::showDates(const QDate &start, const QDate &end, const QDate &preferredMonth)
432void MultiAgendaView::showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
462bool MultiAgendaView::eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay) const
511 auto av = new AgendaView(q->preferences(), q->startDateTime().date(), q->endDateTime().date(), true, true, q);
521 q->connect(mScrollBar, &QAbstractSlider::valueChanged, av->agenda()->verticalScrollBar(), &QAbstractSlider::setValue);
526 q->connect(av, &AgendaView::showIncidencePopupSignal, q, &MultiAgendaView::showIncidencePopupSignal);
528 q->connect(av, &AgendaView::showNewEventPopupSignal, q, &MultiAgendaView::showNewEventPopupSignal);
542 const auto title = Akonadi::CalendarUtils::displayName(calendar->model(), calendar->collection());
553 if (const auto col = index.data(Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>(); col.isValid()) {
559 if (const auto col = index.data(Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>(); col.isValid()) {
581 updateViewFromSelection(view, sm->selectionModel()->selection(), QItemSelection{}, mCalendarFactory);
796 for (KCheckableProxyModel *checkableProxyModel : std::as_const(d->mCollectionSelectionModels)) {
bool isValid() const
void collectionTreeFetched(const Akonadi::Collection::List &collections)
CollectionRole
AgendaView is the agenda-like view that displays events in a single or multi-day view.
Definition agendaview.h:70
EventView is the abstract base class from which all other calendar views for event data are derived.
Definition eventview.h:69
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 toggleAlarmSignal(const Akonadi::Item &)
instructs the receiver to toggle the alarms of the Incidence.
virtual void setChanges(Changes changes)
Notifies the view that there are pending changes so a redraw is needed.
Definition eventview.cpp:518
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 pasteIncidenceSignal()
instructs the receiver to paste the incidence
Changes changes() const
Returns if there are pending changes and a redraw is needed.
Definition eventview.cpp:528
void cutIncidenceSignal(const Akonadi::Item &)
instructs the receiver to cut the Incidence
void editIncidenceSignal(const Akonadi::Item &)
instructs the receiver to begin editing the incidence specified in some manner.
void copyIncidenceSignal(const Akonadi::Item &)
instructs the receiver to copy the incidence
virtual void updateConfig()
Re-reads the configuration and picks up relevant changes which are applicable to the view.
Definition eventview.cpp:261
virtual void setIncidenceChanger(Akonadi::IncidenceChanger *changer)
Assign a new incidence change helper object.
Definition eventview.cpp:246
Shows one agenda for every resource side-by-side.
Definition multiagendaview.h:28
int currentDateCount() const override
Returns the number of currently shown dates.
Definition multiagendaview.cpp:412
bool eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay) const override
Sets the default start/end date/time for new events.
Definition multiagendaview.cpp:462
Akonadi::Item::List selectedIncidences() const override
Definition multiagendaview.cpp:394
void doRestoreConfig(const KConfigGroup &configGroup) override
reimplement to read view-specific settings.
Definition multiagendaview.cpp:729
KCalendarCore::DateList selectedIncidenceDates() const override
Returns a list of the dates of selected events.
Definition multiagendaview.cpp:403
void doSaveConfig(KConfigGroup &configGroup) override
reimplement to write view-specific settings.
Definition multiagendaview.cpp:790
bool hasConfigurationDialog() const override
Definition multiagendaview.cpp:721
void setChanges(Changes changes) override
Notifies the view that there are pending changes so a redraw is needed.
Definition multiagendaview.cpp:694
void collectionSelectionChanged()
Reimplemented from KOrg::BaseView.
Definition multiagendaview.cpp:714
KConfigGroup group(const QString &group)
QString name() const
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
KConfig * config()
QString readEntry(const char *key, const char *aDefault=nullptr) const
Q_SCRIPTABLE Q_NOREPLY void start()
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT QString displayName(Akonadi::ETMCalendar *calendar, const Akonadi::Collection &collection)
Namespace EventViews provides facilities for displaying incidences, including events,...
Definition agenda.h:33
QAction * create(StandardAction id, const Receiver *recvr, Func slot, QObject *parent, std::optional< Qt::ConnectionType > connectionType=std::nullopt)
QScrollBar * horizontalScrollBar() const const
QScrollBar * verticalScrollBar() const const
maximum
minimum
pageStep
singleStep
void setValue(int)
void valueChanged(int value)
QDate date() const const
int height() const const
NoFrame
QModelIndexList indexes() const const
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
void addWidget(QWidget *w)
void append(QList< T > &&value)
void clear()
bool contains(const AT &value) const const
void resize(qsizetype size)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
T qobject_cast(QObject *object)
QObject * sender() const const
const QSize & size() const const
int height() const const
bool isValid() const const
int width() const const
void splitterMoved(int pos, int index)
QString number(double n, char format, int precision)
PM_LayoutVerticalSpacing
AlignRight
QueuedConnection
Vertical
ScrollBarAlwaysOff
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
singleShot
virtual bool event(QEvent *event) override
height
QLayout * layout() const const
void setMinimumHeight(int minh)
pos
virtual void resizeEvent(QResizeEvent *event)
void setFixedHeight(int h)
virtual void showEvent(QShowEvent *event)
void resize(const QSize &)
bool isVisible() const const
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.