Changeset View
Changeset View
Standalone View
Standalone View
virtualdesktops.h
Show First 20 Lines • Show All 483 Lines • ▼ Show 20 Line(s) | 456 | private: | |||
---|---|---|---|---|---|
484 | * @param name The name of the action to be created | 484 | * @param name The name of the action to be created | ||
485 | * @param label The localized name for the action to be created | 485 | * @param label The localized name for the action to be created | ||
486 | * @param slot The slot to invoke when the action is triggered | 486 | * @param slot The slot to invoke when the action is triggered | ||
487 | **/ | 487 | **/ | ||
488 | QAction *addAction(const QString &name, const QString &label, void (VirtualDesktopManager::*slot)()); | 488 | QAction *addAction(const QString &name, const QString &label, void (VirtualDesktopManager::*slot)()); | ||
489 | 489 | | |||
490 | QVector<VirtualDesktop*> m_desktops; | 490 | QVector<VirtualDesktop*> m_desktops; | ||
491 | QPointer<VirtualDesktop> m_current; | 491 | QPointer<VirtualDesktop> m_current; | ||
492 | quint32 m_rows = 2; | ||||
492 | bool m_navigationWrapsAround; | 493 | bool m_navigationWrapsAround; | ||
493 | VirtualDesktopGrid m_grid; | 494 | VirtualDesktopGrid m_grid; | ||
494 | // TODO: QPointer | 495 | // TODO: QPointer | ||
495 | NETRootInfo *m_rootInfo; | 496 | NETRootInfo *m_rootInfo; | ||
496 | KWayland::Server::PlasmaVirtualDesktopManagementInterface *m_virtualDesktopManagement = nullptr; | 497 | KWayland::Server::PlasmaVirtualDesktopManagementInterface *m_virtualDesktopManagement = nullptr; | ||
497 | KSharedConfig::Ptr m_config; | 498 | KSharedConfig::Ptr m_config; | ||
498 | bool m_isLoading = false; | 499 | bool m_isLoading = false; | ||
499 | 500 | | |||
▲ Show 20 Lines • Show All 205 Lines • ▼ Show 20 Line(s) | |||||
705 | 706 | | |||
706 | inline | 707 | inline | ||
707 | bool VirtualDesktopManager::isNavigationWrappingAround() const | 708 | bool VirtualDesktopManager::isNavigationWrappingAround() const | ||
708 | { | 709 | { | ||
709 | return m_navigationWrapsAround; | 710 | return m_navigationWrapsAround; | ||
710 | } | 711 | } | ||
711 | 712 | | |||
712 | inline | 713 | inline | ||
713 | void VirtualDesktopManager::setRootInfo(NETRootInfo *info) | | |||
714 | { | | |||
715 | m_rootInfo = info; | | |||
716 | } | | |||
717 | | ||||
718 | inline | | |||
719 | void VirtualDesktopManager::setConfig(KSharedConfig::Ptr config) | 714 | void VirtualDesktopManager::setConfig(KSharedConfig::Ptr config) | ||
720 | { | 715 | { | ||
721 | m_config = config; | 716 | m_config = config; | ||
722 | } | 717 | } | ||
723 | 718 | | |||
724 | inline | 719 | inline | ||
725 | const VirtualDesktopGrid &VirtualDesktopManager::grid() const | 720 | const VirtualDesktopGrid &VirtualDesktopManager::grid() const | ||
726 | { | 721 | { | ||
Show All 12 Lines |