KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KDDockWidgets::Core::Controller Class Reference

#include <Controller.h>

Inheritance diagram for KDDockWidgets::Core::Controller:
Inheritance graph
[legend]
Collaboration diagram for KDDockWidgets::Core::Controller:
Collaboration graph
[legend]

Public Member Functions

 Controller (ViewType type, View *)
 
virtual ~Controller ()
 
bool close ()
 
void destroyLater ()
 
Controller::Private * dptr () const
 
Rect geometry () const
 
int height () const
 
bool inDtor () const
 
bool is (ViewType) const
 Returns whether this controller is of the specified type.
 
bool isFixedHeight () const
 
bool isFixedWidth () const
 
bool isVisible () const
 
Point mapToGlobal (Point) const
 
Point pos () const
 
Rect rect () const
 
void setParentView (View *parent)
 
void setVisible (bool)
 
void show () const
 
Size size () const
 
ViewType type () const
 Returns the type of this controller.
 
Viewview () const
 Returns the view associated with this controller, if any.
 
int width () const
 
std::shared_ptr< Viewwindow () const
 
int x () const
 
int y () const
 

Protected Member Functions

virtual void setParentView_impl (View *parent)
 

Protected Attributes

bool m_inDtor = false
 

Detailed Description

Definition at line 49 of file Controller.h.

Constructor & Destructor Documentation

◆ Controller()

Controller::Controller ( ViewType  type,
View view 
)
explicit

Definition at line 26 of file Controller.cpp.

◆ ~Controller()

Controller::~Controller ( )
virtual

Definition at line 31 of file Controller.cpp.

References m_inDtor.

Member Function Documentation

◆ close()

bool Controller::close ( )

Definition at line 121 of file Controller.cpp.

References KDDockWidgets::Core::View::close(), and view().

Referenced by c_KDDockWidgets__Core__Controller__close().

◆ destroyLater()

void Controller::destroyLater ( )

◆ dptr()

Controller::Private * Controller::dptr ( ) const

Definition at line 164 of file Controller.cpp.

◆ geometry()

Rect Controller::geometry ( ) const

◆ height()

int Controller::height ( ) const

◆ inDtor()

bool Controller::inDtor ( ) const

Definition at line 52 of file Controller.cpp.

References m_inDtor.

Referenced by c_KDDockWidgets__Core__Controller__inDtor().

◆ is()

bool Controller::is ( ViewType  t) const

◆ isFixedHeight()

bool Controller::isFixedHeight ( ) const

◆ isFixedWidth()

bool Controller::isFixedWidth ( ) const

◆ isVisible()

bool Controller::isVisible ( ) const

◆ mapToGlobal()

Point Controller::mapToGlobal ( Point  localPt) const

◆ pos()

Point Controller::pos ( ) const

◆ rect()

Rect Controller::rect ( ) const

◆ setParentView()

void Controller::setParentView ( View parent)

◆ setParentView_impl()

void Controller::setParentView_impl ( View parent)
protectedvirtual

Reimplemented in KDDockWidgetsBindings_wrappersNS::DropIndicatorOverlay_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Controller_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::DockWidget_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::DropArea_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::FloatingWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Group_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Layout_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::MainWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Stack_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TitleBar_wrapper, KDDockWidgets::Core::DockWidget, and KDDockWidgets::Core::Group.

Definition at line 142 of file Controller.cpp.

References view().

Referenced by setParentView(), KDDockWidgetsBindings_wrappersNS::DropIndicatorOverlay_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Controller_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::DropArea_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::FloatingWindow_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Layout_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::MainWindow_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Stack_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TitleBar_wrapper::setParentView_impl(), KDDockWidgets::Core::DockWidget::setParentView_impl(), KDDockWidgets::Core::Group::setParentView_impl(), KDDockWidgetsBindings_wrappersNS::DropIndicatorOverlay_wrapper::setParentView_impl_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper::setParentView_impl_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Controller_wrapper::setParentView_impl_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::DropArea_wrapper::setParentView_impl_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::FloatingWindow_wrapper::setParentView_impl_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Layout_wrapper::setParentView_impl_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::MainWindow_wrapper::setParentView_impl_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::setParentView_impl_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::SideBar_wrapper::setParentView_impl_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Stack_wrapper::setParentView_impl_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TabBar_wrapper::setParentView_impl_nocallback(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::TitleBar_wrapper::setParentView_impl_nocallback().

◆ setVisible()

void Controller::setVisible ( bool  is)

◆ show()

void Controller::show ( ) const

◆ size()

Size Controller::size ( ) const

◆ type()

ViewType Controller::type ( ) const

◆ view()

View * Controller::view ( ) const

Returns the view associated with this controller, if any.

Definition at line 57 of file Controller.cpp.

Referenced by KDDockWidgets::Core::DropIndicatorOverlay::DropIndicatorOverlay(), KDDockWidgets::Core::FloatingWindow::FloatingWindow(), KDDockWidgets::Core::Group::Group(), KDDockWidgets::Core::Layout::Layout(), KDDockWidgets::Core::Separator::Separator(), KDDockWidgets::Core::SideBar::SideBar(), KDDockWidgets::Core::Stack::Stack(), KDDockWidgets::Core::FloatingWindow::~FloatingWindow(), KDDockWidgets::Core::DropArea::_addDockWidget(), KDDockWidgets::Core::SideBar::addDockWidget(), KDDockWidgets::Core::DockWidget::addDockWidgetAsTab(), KDDockWidgets::Core::DockWidget::addDockWidgetToContainingWindow(), KDDockWidgets::Core::DropArea::addMultiSplitter(), KDDockWidgets::Core::Layout::asDropArea(), KDDockWidgets::Core::Layout::asMDILayout(), KDDockWidgets::QtQuick::asQQuickItem(), KDDockWidgets::flutter::asView_flutter(), KDDockWidgets::QtQuick::asView_qtquick(), c_KDDockWidgets__Core__Controller__view(), KDDockWidgets::Core::TabBar::changeTabIcon(), close(), KDDockWidgets::Core::Group::containsMouse(), KDDockWidgets::QtQuick::ViewFactory::createFloatingWindow(), KDDockWidgets::QtWidgets::ViewFactory::createFloatingWindow(), createLayout(), KDDockWidgets::Core::FloatingWindow::deserialize(), KDDockWidgets::Core::Group::deserialize(), KDDockWidgets::Core::Layout::deserialize(), KDDockWidgets::Core::Group::detachTab(), KDDockWidgets::Core::FloatingWindow::dragRect(), KDDockWidgets::Core::Group::dragRect(), KDDockWidgets::Core::DropIndicatorOverlay::dropIndicatorVisible(), KDDockWidgets::DockRegistry::ensureAllFloatingWidgetsAreMorphed(), KDDockWidgets::DockRegistry::floatingQWindows(), KDDockWidgets::Core::DockWidget::floatingWindow(), KDDockWidgets::Core::Group::floatingWindow(), KDDockWidgets::Core::Layout::floatingWindow(), KDDockWidgets::DockRegistry::floatingWindowForHandle(), KDDockWidgets::QtQuick::DockWidget::groupVisualItem(), KDDockWidgets::Core::SegmentedDropIndicatorOverlay::hover_impl(), KDDockWidgets::Core::DockWidget::init(), KDDockWidgets::QtQuick::Group::insertDockWidget(), KDDockWidgets::Core::Group::insertDockWidget(), KDDockWidgets::Core::TabBar::insertDockWidget(), KDDockWidgets::flutter::TabBar::insertDockWidget(), KDDockWidgets::Core::Group::insertWidget(), isFixedHeight(), isFixedWidth(), KDDockWidgets::Core::DockWidget::isFloating(), KDDockWidgets::Core::TitleBar::isFocused(), KDDockWidgets::Core::TitleBar::isMDI(), KDDockWidgets::Core::Stack::isPositionDraggable(), KDDockWidgets::Core::Stack::isWindow(), KDDockWidgets::Core::FloatingWindow::mainWindow(), KDDockWidgets::Core::Layout::mainWindow(), KDDockWidgets::Core::Stack::makeWindow(), KDDockWidgets::Core::TitleBar::makeWindow(), KDDockWidgets::Core::FloatingWindow::maybeCreateResizeHandler(), KDDockWidgets::Core::DropArea::mdiDockWidgetWrapper(), KDDockWidgets::Core::Group::mdiDockWidgetWrapper(), KDDockWidgets::Core::Group::mdiDropAreaWrapper(), KDDockWidgets::Core::DockWidget::mdiZ(), KDDockWidgets::QtQuick::FloatingWindow::minSize(), KDDockWidgets::Core::Group::nonContentsHeight(), KDDockWidgets::Core::TitleBar::onCloseClicked(), KDDockWidgets::QtQuick::DockWidget::onGeometryUpdated(), KDDockWidgets::Core::TitleBar::onMinimizeClicked(), KDDockWidgets::Core::DockWidget::onResize(), KDDockWidgets::Core::DockWidget::open(), parentForIndicatorWindow(), KDDockWidgets::Core::TabBar::removeDockWidget(), KDDockWidgets::flutter::TabBar::removeDockWidget(), KDDockWidgets::Core::SideBar::removeDockWidget(), KDDockWidgets::Core::Group::removeWidget(), KDDockWidgets::Core::TabBar::renameTab(), KDDockWidgets::Core::MDILayout::resizeDockWidget(), KDDockWidgets::Core::Layout::restorePlaceholder(), KDDockWidgets::Core::FloatingWindow::scheduleDeleteLater(), KDDockWidgets::Core::FloatingWindow::serialize(), KDDockWidgets::Core::Group::serialize(), KDDockWidgets::Core::ClassicDropIndicatorOverlay::setCurrentDropLocation(), KDDockWidgets::Core::TabBar::setCurrentIndex(), KDDockWidgets::QtQuick::DockWidgetModel::setCurrentIndex(), KDDockWidgets::Core::Stack::setDocumentMode(), KDDockWidgets::Core::DockWidget::setFloatingGeometry(), KDDockWidgets::Core::Separator::setGeometry(), KDDockWidgets::Core::DockWidget::setGuestView(), KDDockWidgets::Core::DropIndicatorOverlay::setHoveredGroup(), KDDockWidgets::Core::Layout::setLayoutSize(), KDDockWidgets::Core::DockWidget::setMDIZ(), setParentView_impl(), KDDockWidgets::Core::Layout::setRootItem(), KDDockWidgets::Core::FloatingWindow::setSuggestedGeometry(), KDDockWidgets::Core::TitleBar::setTitle(), KDDockWidgets::Core::DropIndicatorOverlay::setWindowBeingDragged(), show(), KDDockWidgets::QtQuick::TabBar::stackView(), KDDockWidgets::Core::DockWidget::startDragging(), KDDockWidgets::Core::TitleBar::toggleMaximized(), KDDockWidgets::DockRegistry::topLevels(), KDDockWidgets::QtWidgets::IndicatorWindow::updatePositions(), KDDockWidgets::Core::FloatingWindow::updateTitleAndIcon(), KDDockWidgets::Core::Layout::viewAboutToBeDeleted(), and window().

◆ width()

int Controller::width ( ) const

Definition at line 91 of file Controller.cpp.

Referenced by c_KDDockWidgets__Core__Controller__width().

◆ window()

std::shared_ptr< View > Controller::window ( ) const

◆ x()

int Controller::x ( ) const

Definition at line 111 of file Controller.cpp.

Referenced by c_KDDockWidgets__Core__Controller__x().

◆ y()

int Controller::y ( ) const

Definition at line 116 of file Controller.cpp.

Referenced by c_KDDockWidgets__Core__Controller__y().

Member Data Documentation

◆ m_inDtor

bool KDDockWidgets::Core::Controller::m_inDtor = false
protected

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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8