akonadi
standardcalendaractionmanager.cpp
43 Private(KActionCollection *actionCollection, QWidget *parentWidget, StandardCalendarActionManager *parent)
82 mGenericManager->action(Akonadi::StandardActionManager::CreateCollection)->setProperty("ContentMimeTypes", QStringList() <<
353 mGenericManager->action(Akonadi::StandardActionManager::CopyItemToMenu)->setText(i18n("Copy Event To"));
356 mGenericManager->action(Akonadi::StandardActionManager::CopyItemToDialog)->setText(i18n("Copy Event To"));
367 mGenericManager->action(Akonadi::StandardActionManager::MoveItemToMenu)->setText(i18n("Move Event To"));
370 mGenericManager->action(Akonadi::StandardActionManager::MoveItemToDialog)->setText(i18n("Move Event To"));
381 mGenericManager->action(Akonadi::StandardActionManager::CopyItemToMenu)->setText(i18n("Copy To-do To"));
384 mGenericManager->action(Akonadi::StandardActionManager::CopyItemToDialog)->setText(i18n("Copy To-do To"));
395 mGenericManager->action(Akonadi::StandardActionManager::MoveItemToMenu)->setText(i18n("Move To-do To"));
398 mGenericManager->action(Akonadi::StandardActionManager::MoveItemToDialog)->setText(i18n("Move To-do To"));
409 mGenericManager->action(Akonadi::StandardActionManager::CopyItemToMenu)->setText(i18n("Copy Journal To"));
412 mGenericManager->action(Akonadi::StandardActionManager::CopyItemToDialog)->setText(i18n("Copy Journal To"));
423 mGenericManager->action(Akonadi::StandardActionManager::MoveItemToMenu)->setText(i18n("Move Journal To"));
426 mGenericManager->action(Akonadi::StandardActionManager::MoveItemToDialog)->setText(i18n("Move Journal To"));
437 mActions[ StandardCalendarActionManager::CreateEvent ]->setEnabled(hasWritableCollection(KCalCore::Event::eventMimeType()));
440 mActions[ StandardCalendarActionManager::CreateTodo ]->setEnabled(hasWritableCollection(KCalCore::Todo::todoMimeType()));
443 mActions[ StandardCalendarActionManager::CreateJournal ]->setEnabled(hasWritableCollection(KCalCore::Journal::journalMimeType()));
456 const Collection parentCollection = index.data(EntityTreeModel::ParentCollectionRole).value<Collection>();
474 mActions[ StandardCalendarActionManager::CreateSubTodo ]->setEnabled(hasWritableCollection(KCalCore::Todo::todoMimeType()));
517Akonadi::StandardCalendarActionManager::StandardCalendarActionManager(KActionCollection *actionCollection, QWidget *parent)
528void StandardCalendarActionManager::setCollectionSelectionModel(QItemSelectionModel *selectionModel)
649void StandardCalendarActionManager::setActionText(StandardActionManager::Type type, const KLocalizedString &text)
654void StandardCalendarActionManager::interceptAction(StandardCalendarActionManager::Type type, bool intercept)
663void StandardCalendarActionManager::interceptAction(StandardActionManager::Type type, bool intercept)
678void StandardCalendarActionManager::setContextText(StandardActionManager::Type type, StandardActionManager::TextContext context, const QString &text)
683void StandardCalendarActionManager::setContextText(StandardActionManager::Type type, StandardActionManager::TextContext context, const KLocalizedString &text)
Manages generic actions for collection and item views.
Definition standardactionmanager.h:127
KAction * action(Type type) const
Returns the action of the given type, 0 if it has not been created (yet).
void setContextText(Type type, TextContext context, const QString &text)
Sets the text of the action type for the given context.
@ MoveToTrashRestoreItem
Move Item to Trash or Restore it from Trash, needs EntityDeletedAttribute.
Definition standardactionmanager.h:168
@ RemoveFromFavoriteCollections
Remove the collection from the favorite collections model.
Definition standardactionmanager.h:144
@ CopyCollectionToDialog
Copy a collection into another collection, select the target in a dialog.
Definition standardactionmanager.h:157
@ MoveCollectionToDialog
Move a collection into another collection, select the target in a dialog.
Definition standardactionmanager.h:158
@ CopyItemToMenu
Menu allowing to quickly copy an item into a collection.
Definition standardactionmanager.h:147
@ RenameFavoriteCollection
Rename the collection of the favorite collections model.
Definition standardactionmanager.h:145
@ SynchronizeFavoriteCollections
Synchronize favorite collections.
Definition standardactionmanager.h:170
@ MoveToTrashRestoreCollection
Move Collection to Trash or Restore it from Trash, needs EntityDeletedAttribute.
Definition standardactionmanager.h:166
@ ToggleWorkOffline
Toggles the work offline state of all resources.
Definition standardactionmanager.h:156
@ CopyCollectionToMenu
Menu allowing to quickly copy a collection into another collection.
Definition standardactionmanager.h:146
@ AddToFavoriteCollections
Add the collection to the favorite collections model.
Definition standardactionmanager.h:143
@ SynchronizeCollectionsRecursive
Synchronizes collections in a recursive way.
Definition standardactionmanager.h:161
@ MoveItemsToTrash
Moves the selected items to trash and marks them as deleted, needs EntityDeletedAttribute.
Definition standardactionmanager.h:163
@ MoveToTrashRestoreCollectionAlternative
Helper type for MoveToTrashRestoreCollection, do not create directly. Use this to override texts of t...
Definition standardactionmanager.h:167
@ RestoreItemsFromTrash
Restores the selected items from trash, needs EntityDeletedAttribute.
Definition standardactionmanager.h:165
@ MoveToTrashRestoreItemAlternative
Helper type for MoveToTrashRestoreItem, do not create directly. Use this to override texts of the res...
Definition standardactionmanager.h:169
@ RestoreCollectionsFromTrash
Restores the selected collection from trash, needs EntityDeletedAttribute.
Definition standardactionmanager.h:164
@ MoveCollectionToMenu
Menu allowing to move a collection into another collection.
Definition standardactionmanager.h:149
@ MoveItemToDialog
Move an item into a collection, select the target in a dialog.
Definition standardactionmanager.h:160
@ CopyItemToDialog
Copy an item into a collection, select the target in a dialog.
Definition standardactionmanager.h:159
@ MoveCollectionsToTrash
Moves the selected collection to trash and marks it as deleted, needs EntityDeletedAttribute.
Definition standardactionmanager.h:162
void setCapabilityFilter(const QStringList &capabilities)
Sets the capability filter that will be used when creating new resources.
void setActionText(Type type, const KLocalizedString &text)
Sets the label of the action type to text, which is used during updating the action state and substit...
void setMimeTypeFilter(const QStringList &mimeTypes)
Sets the mime type filter that will be used when creating new resources.
Akonadi::Item::List selectedItems() const
Returns the list of items that are currently selected.
Manages calendar specific actions for collection and item views.
Definition standardcalendaractionmanager.h:50
void createAllActions()
Convenience method to create all standard actions.
Definition standardcalendaractionmanager.cpp:622
void actionStateUpdated()
This signal is emitted whenever the action state has been updated.
void interceptAction(Type type, bool intercept=true)
Sets whether the default implementation for the given action type shall be executed when the action i...
Definition standardcalendaractionmanager.cpp:654
KAction * action(Type type) const
Returns the action of the given type, 0 if it has not been created (yet).
Definition standardcalendaractionmanager.cpp:635
void setContextText(StandardActionManager::Type type, StandardActionManager::TextContext context, const QString &text)
Sets the text of the action type for the given context.
Definition standardcalendaractionmanager.cpp:678
~StandardCalendarActionManager()
Destroys the standard calendar action manager.
Definition standardcalendaractionmanager.cpp:523
StandardCalendarActionManager(KActionCollection *actionCollection, QWidget *parent=0)
Creates a new standard calendar action manager.
Definition standardcalendaractionmanager.cpp:517
KAction * createAction(Type type)
Creates the action of the given type and adds it to the action collection specified in the constructo...
Definition standardcalendaractionmanager.cpp:553
Akonadi::Collection::List selectedCollections() const
Returns the list of collections that are currently selected.
Definition standardcalendaractionmanager.cpp:668
void setActionText(StandardActionManager::Type type, const KLocalizedString &text)
Sets the label of the action type to text, which is used during updating the action state and substit...
Definition standardcalendaractionmanager.cpp:649
Akonadi::Item::List selectedItems() const
Returns the list of items that are currently selected.
Definition standardcalendaractionmanager.cpp:673
void setCollectionSelectionModel(QItemSelectionModel *selectionModel)
Sets the collection selection model based on which the collection related actions should operate.
Definition standardcalendaractionmanager.cpp:528
@ EditIncidence
Edit currently selected event/todo/journal.
Definition standardcalendaractionmanager.h:61
void setItemSelectionModel(QItemSelectionModel *selectionModel)
Sets the item selection model based on which the item related actions should operate.
Definition standardcalendaractionmanager.cpp:542
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.