59 Q_DECLARE_FLAGS(DockByNameFlags, DockByNameFlag)
78 void registerLayoutSaver();
79 void unregisterLayoutSaver();
83 Q_INVOKABLE
bool containsDockWidget(
const QString &uniqueName)
const;
84 Q_INVOKABLE
bool containsMainWindow(
const QString &uniqueName)
const;
87 dockByName(
const QString &, KDDockWidgets::DockRegistry::DockByNameFlags = {})
const;
93 Vector<Core::DockWidget *> dockwidgets()
const;
96 Vector<Core::DockWidget *> dockWidgets(
const Vector<QString> &names);
100 Vector<Core::DockWidget *> closedDockwidgets(
bool honourSkipped)
const;
103 Vector<Core::MainWindow *> mainwindows()
const;
108 Vector<Core::MainWindowViewInterface *> mainDockingAreas()
const;
111 Vector<Core::MainWindow *> mainWindows(
const Vector<QString> &names);
114 Vector<Core::Layout *> layouts()
const;
117 Vector<Core::Group *> groups()
const;
121 Vector<Core::FloatingWindow *>
122 floatingWindows(
bool includeBeingDeleted =
false,
bool honourSkipped =
false)
const;
126 Vector<std::shared_ptr<Core::Window>> floatingQWindows()
const;
129 Q_INVOKABLE
bool hasFloatingWindows()
const;
132 Core::FloatingWindow *
139 Core::MainWindow *mainWindowForHandle(std::shared_ptr<Core::Window> windowHandle)
const;
175 void ensureAllFloatingWidgetsAreMorphed();
182 bool isEmpty(
bool excludeBeingDeleted =
false)
const;
192 void checkSanityAll(
bool dumpDebug =
false);
204 bool itemIsInMainWindow(
const Core::Item *)
const;
223 bool isProbablyObscured(std::shared_ptr<Core::Window> target, Core::WindowBeingDragged *exclude)
const;
237 Private *dptr()
const;
245 void onFocusedViewChanged(std::shared_ptr<Core::View> view);
250 bool onExposeEvent(std::shared_ptr<Core::Window>)
override;
251 bool onMouseButtonPress(
Core::View *, MouseEvent *)
override;
272 mutable std::map<QString, QString> m_dockWidgetIdRemapping;
275 Core::SideBarGroupings *
const m_sideBarGroupings;