Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Private Slots | Private Attributes | Friends | List of all members
ads::CDockFocusController Class Reference

#include <DockFocusController.h>

Inheritance diagram for ads::CDockFocusController:
Inheritance graph
[legend]

Public Types

using Super = QObject
 

Public Slots

void setDockWidgetFocused (CDockWidget *focusedNow)
 

Public Member Functions

 CDockFocusController (CDockManager *DockManager)
 
CDockWidgetfocusedDockWidget () 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

DockFocusControllerPrivated
 private data (pimpl) More...
 

Friends

struct DockFocusControllerPrivate
 

Detailed Description

Manages focus styling of dock widgets and handling of focus changes

Definition at line 26 of file DockFocusController.h.

Member Typedef Documentation

◆ Super

Definition at line 40 of file DockFocusController.h.

Constructor & Destructor Documentation

◆ CDockFocusController()

ads::CDockFocusController::CDockFocusController ( CDockManager DockManager)

Default Constructor

Definition at line 202 of file DockFocusController.cpp.

◆ ~CDockFocusController()

ads::CDockFocusController::~CDockFocusController ( )
virtual

Virtual Destructor

Definition at line 213 of file DockFocusController.cpp.

Member Function Documentation

◆ focusedDockWidget()

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.

◆ notifyFloatingWidgetDrop()

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.

◆ notifyWidgetOrAreaRelocation()

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.

◆ onApplicationFocusChanged

void ads::CDockFocusController::onApplicationFocusChanged ( QWidget *  old,
QWidget *  now 
)
privateslot

Definition at line 220 of file DockFocusController.cpp.

◆ onDockWidgetVisibilityChanged

void ads::CDockFocusController::onDockWidgetVisibilityChanged ( bool  Visible)
privateslot

Definition at line 189 of file DockFocusController.cpp.

◆ onFocusedDockAreaViewToggled

void ads::CDockFocusController::onFocusedDockAreaViewToggled ( bool  Open)
privateslot

Definition at line 304 of file DockFocusController.cpp.

◆ onStateRestored

void ads::CDockFocusController::onStateRestored ( )
privateslot

Definition at line 380 of file DockFocusController.cpp.

◆ setDockWidgetFocused

void ads::CDockFocusController::setDockWidgetFocused ( CDockWidget focusedNow)
slot

Request a focus change to the given dock widget

Definition at line 297 of file DockFocusController.cpp.

◆ setWidgetFocus()

template<class QWidgetPtr >
static void ads::CDockFocusController::setWidgetFocus ( QWidgetPtr  widget)
inlinestatic

Helper function to set focus depending on the configuration of the FocusStyling flag

Definition at line 56 of file DockFocusController.h.

Friends And Related Function Documentation

◆ DockFocusControllerPrivate

friend struct DockFocusControllerPrivate
friend

Definition at line 31 of file DockFocusController.h.

Member Data Documentation

◆ d

DockFocusControllerPrivate* ads::CDockFocusController::d
private

private data (pimpl)

Definition at line 30 of file DockFocusController.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51