#include <DockFocusController.h>
Public Types | |
using | Super = QObject |
Public Slots | |
void | setDockWidgetFocused (CDockWidget *focusedNow) |
Public Member Functions | |
CDockFocusController (CDockManager *DockManager) | |
CDockWidget * | focusedDockWidget () const |
void | notifyFloatingWidgetDrop (CFloatingDockContainer *FloatingWidget) |
void | notifyWidgetOrAreaRelocation (QWidget *RelocatedWidget) |
virtual | ~CDockFocusController () |
Static Public Member Functions | |
template<class QWidgetPtr > | |
static void | setWidgetFocus (QWidgetPtr widget) |
Private Slots | |
void | onApplicationFocusChanged (QWidget *old, QWidget *now) |
void | onDockWidgetVisibilityChanged (bool Visible) |
void | onFocusedDockAreaViewToggled (bool Open) |
void | onStateRestored () |
Private Attributes | |
DockFocusControllerPrivate * | d |
private data (pimpl) More... | |
Friends | |
struct | DockFocusControllerPrivate |
Manages focus styling of dock widgets and handling of focus changes
Definition at line 26 of file DockFocusController.h.
using ads::CDockFocusController::Super = QObject |
Definition at line 40 of file DockFocusController.h.
ads::CDockFocusController::CDockFocusController | ( | CDockManager * | DockManager | ) |
Default Constructor
Definition at line 202 of file DockFocusController.cpp.
|
virtual |
Virtual Destructor
Definition at line 213 of file DockFocusController.cpp.
CDockWidget * ads::CDockFocusController::focusedDockWidget | ( | ) | const |
Returns the dock widget that has focus style in the ui or a nullptr if not dock widget is painted focused.
Definition at line 390 of file DockFocusController.cpp.
void ads::CDockFocusController::notifyFloatingWidgetDrop | ( | CFloatingDockContainer * | FloatingWidget | ) |
This function is called, if a floating widget has been dropped into an new position. When this function is called, all dock widgets of the FloatingWidget are already inserted into its new position
Definition at line 356 of file DockFocusController.cpp.
void ads::CDockFocusController::notifyWidgetOrAreaRelocation | ( | QWidget * | RelocatedWidget | ) |
A container needs to call this function if a widget has been dropped into it
Definition at line 328 of file DockFocusController.cpp.
|
privateslot |
Definition at line 220 of file DockFocusController.cpp.
|
privateslot |
Definition at line 189 of file DockFocusController.cpp.
|
privateslot |
Definition at line 304 of file DockFocusController.cpp.
|
privateslot |
Definition at line 380 of file DockFocusController.cpp.
|
slot |
Request a focus change to the given dock widget
Definition at line 297 of file DockFocusController.cpp.
|
inlinestatic |
Helper function to set focus depending on the configuration of the FocusStyling flag
Definition at line 56 of file DockFocusController.h.
|
friend |
Definition at line 31 of file DockFocusController.h.
|
private |
private data (pimpl)
Definition at line 30 of file DockFocusController.h.