|
Krita Source Code Documentation
|
#include <KisWindowLayoutManager.h>
Inheritance diagram for KisWindowLayoutManager:Classes | |
| struct | Display |
| struct | DisplayLayout |
| struct | Private |
Public Member Functions | |
| void | activeDocumentChanged (KisDocument *document) |
| bool | isShowImageInAllWindowsEnabled () const |
| KisWindowLayoutManager () | |
| QUuid | primaryWindowId () const |
| bool | primaryWorkspaceFollowsFocus () const |
| void | setLastUsedLayout (KisWindowLayoutResource *layout) |
| void | setPrimaryWorkspaceFollowsFocus (bool enabled, QUuid primaryWindow) |
| void | setShowImageInAllWindowsEnabled (bool showInAll) |
| ~KisWindowLayoutManager () | |
Static Public Member Functions | |
| static KisWindowLayoutManager * | instance () |
Private Slots | |
| void | slotFocusChanged (QWidget *, QWidget *) |
| void | slotScreensChanged () |
Private Attributes | |
| QScopedPointer< Private > | d |
Definition at line 20 of file KisWindowLayoutManager.h.
|
explicit |
Definition at line 114 of file KisWindowLayoutManager.cpp.
References connect(), d, slotFocusChanged(), and slotScreensChanged().
| KisWindowLayoutManager::~KisWindowLayoutManager | ( | ) |
Definition at line 127 of file KisWindowLayoutManager.cpp.
References d.
| void KisWindowLayoutManager::activeDocumentChanged | ( | KisDocument * | document | ) |
Definition at line 174 of file KisWindowLayoutManager.cpp.
References d, and KisPart::instance().
|
static |
Definition at line 109 of file KisWindowLayoutManager.cpp.
| bool KisWindowLayoutManager::isShowImageInAllWindowsEnabled | ( | ) | const |
When enabled, main windows will synchronize to keep the same document active
Definition at line 153 of file KisWindowLayoutManager.cpp.
References d.
| QUuid KisWindowLayoutManager::primaryWindowId | ( | ) | const |
Definition at line 169 of file KisWindowLayoutManager.cpp.
References d.
| bool KisWindowLayoutManager::primaryWorkspaceFollowsFocus | ( | ) | const |
When enabled, a workspace dedicated as primary is used for any main window which receives focus. Meanwhile, the workspace of that window is used for the window which originally had the primary workspace.
Definition at line 158 of file KisWindowLayoutManager.cpp.
References d.
| void KisWindowLayoutManager::setLastUsedLayout | ( | KisWindowLayoutResource * | layout | ) |
Definition at line 199 of file KisWindowLayoutManager.cpp.
References d, KisWindowLayoutManager::DisplayLayout::matches(), and KisWindowLayoutManager::DisplayLayout::preferredWindowLayout.
| void KisWindowLayoutManager::setPrimaryWorkspaceFollowsFocus | ( | bool | enabled, |
| QUuid | primaryWindow ) |
Definition at line 163 of file KisWindowLayoutManager.cpp.
References d.
| void KisWindowLayoutManager::setShowImageInAllWindowsEnabled | ( | bool | showInAll | ) |
Definition at line 133 of file KisWindowLayoutManager.cpp.
References activeDocumentChanged(), KisMainWindow::activeView, KisPart::currentMainwindow(), d, KisView::document, and KisPart::instance().
|
privateslot |
Definition at line 188 of file KisWindowLayoutManager.cpp.
References KisMainWindow::windowFocused().
|
privateslot |
Definition at line 215 of file KisWindowLayoutManager.cpp.
References connect(), d, KisResourceServerProvider::instance(), KisWindowLayoutManager::DisplayLayout::matches(), KisWindowLayoutManager::DisplayLayout::preferredWindowLayout, KoResourceServer< T >::resource(), setLastUsedLayout(), slotScreensChanged(), and KisResourceServerProvider::windowLayoutServer().
|
private |
Definition at line 71 of file KisWindowLayoutManager.h.