KDDockWidgets API Documentation 2.1
|
#include <DockRegistry_c.h>
Public Member Functions | |
~DockRegistry_wrapper () | |
void | clear () |
bool | containsDockWidget (const QString &uniqueName) const |
bool | containsMainWindow (const QString &uniqueName) const |
KDDockWidgets::Core::DockWidget * | dockByName (const QString &arg__1) const |
void | ensureAllFloatingWidgetsAreMorphed () |
KDDockWidgets::Core::DockWidget * | focusedDockWidget () const |
KDDockWidgets::Core::Group * | groupInMDIResize () const |
bool | hasFloatingWindows () const |
bool | isEmpty (bool excludeBeingDeleted=false) const |
bool | isSane () const |
bool | itemIsInMainWindow (const KDDockWidgets::Core::Item *arg__1) const |
KDDockWidgets::Core::Layout * | layoutForItem (const KDDockWidgets::Core::Item *arg__1) const |
KDDockWidgets::Core::MainWindow * | mainWindowByName (const QString &arg__1) const |
void | registerDockWidget (KDDockWidgets::Core::DockWidget *arg__1) |
void | registerFloatingWindow (KDDockWidgets::Core::FloatingWindow *arg__1) |
void | registerGroup (KDDockWidgets::Core::Group *arg__1) |
void | registerLayoutSaver () |
void | registerMainWindow (KDDockWidgets::Core::MainWindow *arg__1) |
KDDockWidgets::Core::SideBar * | sideBarForDockWidget (const KDDockWidgets::Core::DockWidget *arg__1) const |
void | unregisterDockWidget (KDDockWidgets::Core::DockWidget *arg__1) |
void | unregisterFloatingWindow (KDDockWidgets::Core::FloatingWindow *arg__1) |
void | unregisterGroup (KDDockWidgets::Core::Group *arg__1) |
void | unregisterLayoutSaver () |
void | unregisterMainWindow (KDDockWidgets::Core::MainWindow *arg__1) |
Public Member Functions inherited from KDDockWidgets::DockRegistry | |
~DockRegistry () | |
bool | affinitiesMatch (const Vector< QString > &affinities1, const Vector< QString > &affinities2) const |
void | clear (const Vector< Core::DockWidget * > &dockWidgets, const Vector< Core::MainWindow * > &mainWindows, const Vector< QString > &affinities) |
clear Overload that only clears the specified dockWidgets and main windows. | |
Q_INVOKABLE void | clear (const Vector< QString > &affinities={}) |
Closes all dock widgets, and destroys all FloatingWindows This is called before restoring a layout. | |
Vector< Core::DockWidget * > | closedDockwidgets (bool honourSkipped) const |
returns all closed DockWidget instances | |
Q_INVOKABLE bool | containsDockWidget (const QString &uniqueName) const |
Q_INVOKABLE bool | containsMainWindow (const QString &uniqueName) const |
CloseReason | currentCloseReason () |
Q_INVOKABLE KDDockWidgets::Core::DockWidget * | dockByName (const QString &, KDDockWidgets::DockRegistry::DockByNameFlags={}) const |
Vector< QString > | dockWidgetNames () const |
Returns a list of all known dock widget unique names. | |
Vector< Core::DockWidget * > | dockwidgets () const |
returns all DockWidget instances | |
Vector< Core::DockWidget * > | dockWidgets (const Vector< QString > &names) |
overload returning only the ones with the specified names | |
Private * | dptr () const |
void | ensureAllFloatingWidgetsAreMorphed () |
Ensures that all floating DockWidgets have a FloatingWindow as a window. | |
Vector< std::shared_ptr< Core::Window > > | floatingQWindows () const |
overload that returns list of QWindow. This is more friendly for supporting both QtWidgets and QtQuick | |
Core::FloatingWindow * | floatingWindowForHandle (Core::WId hwnd) const |
returns the FloatingWindow with handle hwnd | |
Core::FloatingWindow * | floatingWindowForHandle (std::shared_ptr< Core::Window > windowHandle) const |
returns the FloatingWindow with handle windowHandle | |
Vector< Core::FloatingWindow * > | floatingWindows (bool includeBeingDeleted=false, bool honourSkipped=false) const |
returns all FloatingWindow instances. Not necessarily all floating dock widgets, As there might be DockWidgets which weren't morphed yet. | |
Q_INVOKABLE KDDockWidgets::Core::DockWidget * | focusedDockWidget () const |
Core::Group * | groupInMDIResize () const |
Returns the Group which is being resized in a MDI layout. nullptr if none. | |
Vector< Core::Group * > | groups () const |
returns a list of all Frame instances | |
Q_INVOKABLE bool | hasFloatingWindows () const |
returns whether if there's at least one floating window | |
bool | isEmpty (bool excludeBeingDeleted=false) const |
returns true if there's 0 dockwidgets, 0 main windows | |
bool | isProbablyObscured (std::shared_ptr< Core::Window > target, Core::FloatingWindow *exclude) const |
returns if the specified window has some other window on top (with higher Z) This is an approximation, as we don't have ways to compare Z, so we mostly intersect geometries. | |
bool | isProbablyObscured (std::shared_ptr< Core::Window > target, Core::WindowBeingDragged *exclude) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
bool | isSane () const |
bool | itemIsInMainWindow (const Core::Item *) const |
Returns whether the item is in a main window. Nesting is honoured. (MDIArea inside DropArea inside MainWindow, for example) | |
Core::Layout * | layoutForItem (const Core::Item *) const |
Returns the Layout where the specified item is in. | |
Vector< Core::MainWindowViewInterface * > | mainDockingAreas () const |
returns all MainWindow instances Like mainwindows(), but with better suited for QtQuick and better terminology as we're phasing out the "MainWindow" name there | |
Q_INVOKABLE KDDockWidgets::Core::MainWindow * | mainWindowByName (const QString &) const |
Core::MainWindow * | mainWindowForHandle (std::shared_ptr< Core::Window > windowHandle) const |
returns the MainWindow with handle windowHandle | |
Vector< Core::MainWindow * > | mainwindows () const |
returns all MainWindow instances | |
Vector< Core::MainWindow * > | mainWindows (const Vector< QString > &names) |
overload returning only the ones with the specified names | |
Vector< QString > | mainWindowsNames () const |
Returns a list of all known main window unique names. | |
Vector< Core::MainWindow * > | mainWindowsWithAffinity (const Vector< QString > &affinities) const |
Returns all main windows which match at least one of the affinities . | |
void | registerDockWidget (Core::DockWidget *) |
void | registerFloatingWindow (Core::FloatingWindow *) |
void | registerGroup (Core::Group *) |
void | registerLayoutSaver () |
void | registerMainWindow (Core::MainWindow *) |
void | setCurrentCloseReason (CloseReason) |
Core::SideBar * | sideBarForDockWidget (const Core::DockWidget *) const |
Overload that returns the SideBar itself. | |
SideBarLocation | sideBarLocationForDockWidget (const Core::DockWidget *) const |
Returns whether the specified dock widget is in a side bar, and which. SideBarLocation::None is returned if it's not in a sidebar. This is only relevant when using the auto-hide and side-bar feature. | |
Vector< std::shared_ptr< Core::Window > > | topLevels (bool excludeFloatingDocks=false) const |
Returns the list with all visiblye top-level parents of our FloatingWindow and MainWindow instances. | |
void | unregisterDockWidget (Core::DockWidget *) |
void | unregisterFloatingWindow (Core::FloatingWindow *) |
void | unregisterGroup (Core::Group *) |
void | unregisterLayoutSaver () |
void | unregisterMainWindow (Core::MainWindow *) |
Public Member Functions inherited from KDDockWidgets::Core::EventFilterInterface | |
EventFilterInterface ()=default | |
virtual | ~EventFilterInterface () |
bool | enabled () const |
Returns whether mouse filtering is enabled. Default true. | |
virtual bool | onDnDEvent (View *, Event *) |
Override to handle drag enter, drag leave, drag move and drop events. | |
virtual bool | onExposeEvent (std::shared_ptr< Window >) |
Override to handle expose events for a certain window. | |
virtual bool | onMouseButtonMove (View *, MouseEvent *) |
Override to handle when a view receives a mouse press event. | |
virtual bool | onMouseButtonRelease (View *, MouseEvent *) |
Override to handle when a view receives a mouse press event. | |
virtual bool | onMouseDoubleClick (View *, MouseEvent *) |
Override to handle when a view receives a mouse double click event. | |
virtual bool | onMouseEvent (View *, MouseEvent *) |
Provided for convenience, aggregates all other overloads receives all mouse event types, if you return true here then the specialized counterparts won't be called Example, if true is returned here for a mouse press, then onMouseButtonPress() won't be called. | |
virtual bool | onMoveEvent (View *) |
Override to handle a move event. | |
void | setEnabled (bool) |
Static Public Member Functions | |
static KDDockWidgets::DockRegistry * | self () |
Static Public Member Functions inherited from KDDockWidgets::DockRegistry | |
static DockRegistry * | self () |
Additional Inherited Members | |
Public Types inherited from KDDockWidgets::DockRegistry | |
enum class | DockByNameFlag { None = 0 , ConsultRemapping = 1 , CreateIfNotFound , SilentIfNotFound = 4 } |
Definition at line 24 of file DockRegistry_c.h.
KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::~DockRegistry_wrapper | ( | ) |
Definition at line 132 of file DockRegistry_c.cpp.
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::clear | ( | ) |
Definition at line 32 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::clear().
bool KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::containsDockWidget | ( | const QString & | uniqueName | ) | const |
Definition at line 36 of file DockRegistry_c.cpp.
bool KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::containsMainWindow | ( | const QString & | uniqueName | ) | const |
Definition at line 40 of file DockRegistry_c.cpp.
KDDockWidgets::Core::DockWidget * KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::dockByName | ( | const QString & | arg__1 | ) | const |
Definition at line 44 of file DockRegistry_c.cpp.
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::ensureAllFloatingWidgetsAreMorphed | ( | ) |
Definition at line 48 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::ensureAllFloatingWidgetsAreMorphed().
KDDockWidgets::Core::DockWidget * KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::focusedDockWidget | ( | ) | const |
Definition at line 52 of file DockRegistry_c.cpp.
KDDockWidgets::Core::Group * KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::groupInMDIResize | ( | ) | const |
Definition at line 56 of file DockRegistry_c.cpp.
bool KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::hasFloatingWindows | ( | ) | const |
Definition at line 60 of file DockRegistry_c.cpp.
bool KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::isEmpty | ( | bool | excludeBeingDeleted = false | ) | const |
Definition at line 64 of file DockRegistry_c.cpp.
bool KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::isSane | ( | ) | const |
Definition at line 68 of file DockRegistry_c.cpp.
bool KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::itemIsInMainWindow | ( | const KDDockWidgets::Core::Item * | arg__1 | ) | const |
Definition at line 72 of file DockRegistry_c.cpp.
KDDockWidgets::Core::Layout * KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::layoutForItem | ( | const KDDockWidgets::Core::Item * | arg__1 | ) | const |
Definition at line 76 of file DockRegistry_c.cpp.
KDDockWidgets::Core::MainWindow * KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::mainWindowByName | ( | const QString & | arg__1 | ) | const |
Definition at line 80 of file DockRegistry_c.cpp.
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::registerDockWidget | ( | KDDockWidgets::Core::DockWidget * | arg__1 | ) |
Definition at line 84 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::registerDockWidget().
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::registerFloatingWindow | ( | KDDockWidgets::Core::FloatingWindow * | arg__1 | ) |
Definition at line 88 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::registerFloatingWindow().
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::registerGroup | ( | KDDockWidgets::Core::Group * | arg__1 | ) |
Definition at line 92 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::registerGroup().
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::registerLayoutSaver | ( | ) |
Definition at line 96 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::registerLayoutSaver().
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::registerMainWindow | ( | KDDockWidgets::Core::MainWindow * | arg__1 | ) |
Definition at line 100 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::registerMainWindow().
|
static |
Definition at line 104 of file DockRegistry_c.cpp.
Referenced by c_static_KDDockWidgets__DockRegistry__self().
KDDockWidgets::Core::SideBar * KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::sideBarForDockWidget | ( | const KDDockWidgets::Core::DockWidget * | arg__1 | ) | const |
Definition at line 108 of file DockRegistry_c.cpp.
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::unregisterDockWidget | ( | KDDockWidgets::Core::DockWidget * | arg__1 | ) |
Definition at line 112 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::unregisterDockWidget().
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::unregisterFloatingWindow | ( | KDDockWidgets::Core::FloatingWindow * | arg__1 | ) |
Definition at line 116 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::unregisterFloatingWindow().
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::unregisterGroup | ( | KDDockWidgets::Core::Group * | arg__1 | ) |
Definition at line 120 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::unregisterGroup().
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::unregisterLayoutSaver | ( | ) |
Definition at line 124 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::unregisterLayoutSaver().
void KDDockWidgetsBindings_wrappersNS::DockRegistry_wrapper::unregisterMainWindow | ( | KDDockWidgets::Core::MainWindow * | arg__1 | ) |
Definition at line 128 of file DockRegistry_c.cpp.
References KDDockWidgets::DockRegistry::unregisterMainWindow().