OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::CentralWidgetManager Class Reference

#include "CentralWidgetManager.h"

Inheritance diagram for ot::CentralWidgetManager:

Public Member Functions

 CentralWidgetManager (MainWindow *_window=(MainWindow *) nullptr)
 Constructor.
 
virtual ~CentralWidgetManager ()
 
std::unique_ptr< QWidget > replaceCurrentCentralWidget (QWidget *_widget)
 Replaces the current central widget. An existing widget will be hidden an returned. Caller takes ownership of the replaced widget.
 
QWidget * getCurrentCentralWidget (void)
 Returns writeable pointer to the currently set central widget. The CentralWidgetManager keeps ownership of the central widget.
 
const QWidget * getCurrentCentralWidget (void) const
 Returns read-only pointer to the currently set central widget. The CentralWidgetManager keeps ownership of the central widget.
 
void setOverlayAnimation (std::shared_ptr< QMovie > _animation)
 
std::shared_ptr< QMovie > getCurrentOverlayAnimation (void) const
 
void setOverlayAnimationVisible (bool _visible, bool _noDelay=false)
 
void setOverlayAnimatioShowDelay (int _delay)
 
int getOverlayAnimatioShowDelay (void) const
 
void setOverlayAnimatioHideDelay (int _delay)
 
int getOverlayAnimatioHideDelay (void) const
 

Protected Member Functions

virtual void resizeEvent (QResizeEvent *_event) override
 

Constructor & Destructor Documentation

◆ CentralWidgetManager()

ot::CentralWidgetManager::CentralWidgetManager ( MainWindow * _window = (MainWindow*)nullptr)

Constructor.

Parameters
_windowIf provided the CentralWidgetManager will set itself as the central widget. This may destroy the previously set central widget.

◆ ~CentralWidgetManager()

ot::CentralWidgetManager::~CentralWidgetManager ( )
virtual

Member Function Documentation

◆ getCurrentCentralWidget() [1/2]

QWidget * ot::CentralWidgetManager::getCurrentCentralWidget ( void )
inline

Returns writeable pointer to the currently set central widget. The CentralWidgetManager keeps ownership of the central widget.

◆ getCurrentCentralWidget() [2/2]

const QWidget * ot::CentralWidgetManager::getCurrentCentralWidget ( void ) const
inline

Returns read-only pointer to the currently set central widget. The CentralWidgetManager keeps ownership of the central widget.

◆ getCurrentOverlayAnimation()

std::shared_ptr< QMovie > ot::CentralWidgetManager::getCurrentOverlayAnimation ( void ) const
inline

◆ getOverlayAnimatioHideDelay()

int ot::CentralWidgetManager::getOverlayAnimatioHideDelay ( void ) const

◆ getOverlayAnimatioShowDelay()

int ot::CentralWidgetManager::getOverlayAnimatioShowDelay ( void ) const

◆ replaceCurrentCentralWidget()

std::unique_ptr< QWidget > ot::CentralWidgetManager::replaceCurrentCentralWidget ( QWidget * _widget)

Replaces the current central widget. An existing widget will be hidden an returned. Caller takes ownership of the replaced widget.

◆ resizeEvent()

void ot::CentralWidgetManager::resizeEvent ( QResizeEvent * _event)
overrideprotectedvirtual

◆ setOverlayAnimatioHideDelay()

void ot::CentralWidgetManager::setOverlayAnimatioHideDelay ( int _delay)

◆ setOverlayAnimation()

void ot::CentralWidgetManager::setOverlayAnimation ( std::shared_ptr< QMovie > _animation)

◆ setOverlayAnimationVisible()

void ot::CentralWidgetManager::setOverlayAnimationVisible ( bool _visible,
bool _noDelay = false )

◆ setOverlayAnimatioShowDelay()

void ot::CentralWidgetManager::setOverlayAnimatioShowDelay ( int _delay)

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