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

The interface that MainWindow views should implement. More...

#include <MainWindowViewInterface.h>

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

Public Member Functions

 MainWindowViewInterface (MainWindow *)
 
virtual ~MainWindowViewInterface ()
 
void addDockWidget (const QString &dockId, KDDockWidgets::Location, const QString &relativeToDockId={}, const KDDockWidgets::InitialOption &={})
 
void addDockWidget (DockWidgetViewInterface *dockWidget, KDDockWidgets::Location location, DockWidgetViewInterface *relativeTo=nullptr, const KDDockWidgets::InitialOption &initialOption={})
 
void addDockWidgetAsTab (const QString &dockId)
 
void addDockWidgetAsTab (DockWidgetViewInterface *dockwidget)
 
Vector< QStringaffinities () const
 
bool anySideBarIsVisible () const
 
virtual Margins centerWidgetMargins () const =0
 
virtual Rect centralAreaGeometry () const =0
 
void clearSideBarOverlay (bool deleteFrame=true)
 
bool closeDockWidgets (bool force=false)
 
bool isMDI () const
 
void layoutEqually ()
 
void layoutParentContainerEqually (const QString &dockId)
 
void layoutParentContainerEqually (DockWidgetViewInterface *)
 
MainWindowmainWindow () const
 Returns the main window controller.
 
void moveToSideBar (const QString &dockId)
 
void moveToSideBar (const QString &dockId, KDDockWidgets::SideBarLocation)
 
void moveToSideBar (DockWidgetViewInterface *)
 
void moveToSideBar (DockWidgetViewInterface *, KDDockWidgets::SideBarLocation)
 
MainWindowOptions options () const
 
void overlayOnSideBar (const QString &dockId)
 
void overlayOnSideBar (DockWidgetViewInterface *)
 
void restoreFromSideBar (const QString &dockId)
 
void restoreFromSideBar (DockWidgetViewInterface *)
 
void setAffinities (const Vector< QString > &names)
 
virtual void setContentsMargins (int left, int top, int right, int bottom)=0
 
void setPersistentCentralView (std::shared_ptr< Core::View >)
 
bool sideBarIsVisible (KDDockWidgets::SideBarLocation) const
 
void toggleOverlayOnSideBar (const QString &dockId)
 
void toggleOverlayOnSideBar (DockWidgetViewInterface *)
 
QString uniqueName () const
 

Protected Member Functions

 MainWindowViewInterface (const MainWindowViewInterface &)=delete
 
MainWindowViewInterfaceoperator= (const MainWindowViewInterface &)=delete
 

Protected Attributes

MainWindow *const m_mainWindow
 

Detailed Description

The interface that MainWindow views should implement.

Definition at line 27 of file MainWindowViewInterface.h.

Constructor & Destructor Documentation

◆ MainWindowViewInterface() [1/2]

KDDockWidgets::Core::MainWindowViewInterface::MainWindowViewInterface ( Core::MainWindow controller)
explicit

Definition at line 20 of file MainWindowViewInterface.cpp.

◆ ~MainWindowViewInterface()

KDDockWidgets::Core::MainWindowViewInterface::~MainWindowViewInterface ( )
virtualdefault

◆ MainWindowViewInterface() [2/2]

KDDockWidgets::Core::MainWindowViewInterface::MainWindowViewInterface ( const MainWindowViewInterface )
protecteddelete

Member Function Documentation

◆ addDockWidget() [1/2]

void KDDockWidgets::Core::MainWindowViewInterface::addDockWidget ( const QString dockId,
KDDockWidgets::Location  location,
const QString relativeToDockId = {},
const KDDockWidgets::InitialOption initialOption = {} 
)

◆ addDockWidget() [2/2]

void KDDockWidgets::Core::MainWindowViewInterface::addDockWidget ( DockWidgetViewInterface dockWidget,
KDDockWidgets::Location  location,
DockWidgetViewInterface relativeTo = nullptr,
const KDDockWidgets::InitialOption initialOption = {} 
)

◆ addDockWidgetAsTab() [1/2]

void KDDockWidgets::Core::MainWindowViewInterface::addDockWidgetAsTab ( const QString dockId)

◆ addDockWidgetAsTab() [2/2]

void KDDockWidgets::Core::MainWindowViewInterface::addDockWidgetAsTab ( DockWidgetViewInterface dockwidget)

◆ affinities()

Vector< QString > KDDockWidgets::Core::MainWindowViewInterface::affinities ( ) const

◆ anySideBarIsVisible()

bool KDDockWidgets::Core::MainWindowViewInterface::anySideBarIsVisible ( ) const

◆ centerWidgetMargins()

virtual Margins KDDockWidgets::Core::MainWindowViewInterface::centerWidgetMargins ( ) const
pure virtual

◆ centralAreaGeometry()

virtual Rect KDDockWidgets::Core::MainWindowViewInterface::centralAreaGeometry ( ) const
pure virtual

◆ clearSideBarOverlay()

void KDDockWidgets::Core::MainWindowViewInterface::clearSideBarOverlay ( bool  deleteFrame = true)

◆ closeDockWidgets()

bool KDDockWidgets::Core::MainWindowViewInterface::closeDockWidgets ( bool  force = false)

◆ isMDI()

bool KDDockWidgets::Core::MainWindowViewInterface::isMDI ( ) const

◆ layoutEqually()

void KDDockWidgets::Core::MainWindowViewInterface::layoutEqually ( )

◆ layoutParentContainerEqually() [1/2]

void KDDockWidgets::Core::MainWindowViewInterface::layoutParentContainerEqually ( const QString dockId)

◆ layoutParentContainerEqually() [2/2]

void KDDockWidgets::Core::MainWindowViewInterface::layoutParentContainerEqually ( DockWidgetViewInterface dockView)

◆ mainWindow()

Core::MainWindow * KDDockWidgets::Core::MainWindowViewInterface::mainWindow ( ) const

Returns the main window controller.

Definition at line 27 of file MainWindowViewInterface.cpp.

References m_mainWindow.

◆ moveToSideBar() [1/4]

void KDDockWidgets::Core::MainWindowViewInterface::moveToSideBar ( const QString dockId)

◆ moveToSideBar() [2/4]

void KDDockWidgets::Core::MainWindowViewInterface::moveToSideBar ( const QString dockId,
KDDockWidgets::SideBarLocation  loc 
)

◆ moveToSideBar() [3/4]

void KDDockWidgets::Core::MainWindowViewInterface::moveToSideBar ( DockWidgetViewInterface dockView)

◆ moveToSideBar() [4/4]

void KDDockWidgets::Core::MainWindowViewInterface::moveToSideBar ( DockWidgetViewInterface dockView,
KDDockWidgets::SideBarLocation  loc 
)

◆ operator=()

MainWindowViewInterface & KDDockWidgets::Core::MainWindowViewInterface::operator= ( const MainWindowViewInterface )
protecteddelete

◆ options()

MainWindowOptions KDDockWidgets::Core::MainWindowViewInterface::options ( ) const

◆ overlayOnSideBar() [1/2]

void KDDockWidgets::Core::MainWindowViewInterface::overlayOnSideBar ( const QString dockId)

◆ overlayOnSideBar() [2/2]

void KDDockWidgets::Core::MainWindowViewInterface::overlayOnSideBar ( DockWidgetViewInterface dockView)

◆ restoreFromSideBar() [1/2]

void KDDockWidgets::Core::MainWindowViewInterface::restoreFromSideBar ( const QString dockId)

◆ restoreFromSideBar() [2/2]

void KDDockWidgets::Core::MainWindowViewInterface::restoreFromSideBar ( DockWidgetViewInterface dockView)

◆ setAffinities()

void KDDockWidgets::Core::MainWindowViewInterface::setAffinities ( const Vector< QString > &  names)

◆ setContentsMargins()

virtual void KDDockWidgets::Core::MainWindowViewInterface::setContentsMargins ( int  left,
int  top,
int  right,
int  bottom 
)
pure virtual

◆ setPersistentCentralView()

void KDDockWidgets::Core::MainWindowViewInterface::setPersistentCentralView ( std::shared_ptr< Core::View view)

◆ sideBarIsVisible()

bool KDDockWidgets::Core::MainWindowViewInterface::sideBarIsVisible ( KDDockWidgets::SideBarLocation  loc) const

◆ toggleOverlayOnSideBar() [1/2]

void KDDockWidgets::Core::MainWindowViewInterface::toggleOverlayOnSideBar ( const QString dockId)

◆ toggleOverlayOnSideBar() [2/2]

void KDDockWidgets::Core::MainWindowViewInterface::toggleOverlayOnSideBar ( DockWidgetViewInterface dockView)

◆ uniqueName()

QString KDDockWidgets::Core::MainWindowViewInterface::uniqueName ( ) const

Member Data Documentation

◆ m_mainWindow

MainWindow* const KDDockWidgets::Core::MainWindowViewInterface::m_mainWindow
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