KDDockWidgets API Documentation 2.0
|
The interface that MainWindow views should implement. More...
#include <MainWindowViewInterface.h>
Protected Member Functions | |
MainWindowViewInterface (const MainWindowViewInterface &)=delete | |
MainWindowViewInterface & | operator= (const MainWindowViewInterface &)=delete |
Protected Attributes | |
MainWindow *const | m_mainWindow |
The interface that MainWindow views should implement.
Definition at line 26 of file MainWindowViewInterface.h.
|
explicit |
Definition at line 21 of file MainWindowViewInterface.cpp.
|
virtualdefault |
|
protecteddelete |
void KDDockWidgets::Core::MainWindowViewInterface::addDockWidget | ( | const QString & | dockId, |
KDDockWidgets::Location | location, | ||
const QString & | relativeToDockId = {} , |
||
KDDockWidgets::InitialOption | initialOption = {} |
||
) |
Definition at line 201 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::addDockWidget(), KDDockWidgets::DockRegistry::dockByName(), QString::isEmpty(), m_mainWindow, and KDDockWidgets::DockRegistry::self().
void KDDockWidgets::Core::MainWindowViewInterface::addDockWidget | ( | DockWidgetViewInterface * | dockWidget, |
KDDockWidgets::Location | location, | ||
DockWidgetViewInterface * | relativeTo = nullptr , |
||
KDDockWidgets::InitialOption | initialOption = {} |
||
) |
Definition at line 84 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::addDockWidget(), KDDockWidgets::Core::DockWidgetViewInterface::dockWidget(), and m_mainWindow.
void KDDockWidgets::Core::MainWindowViewInterface::addDockWidgetAsTab | ( | const QString & | dockId | ) |
Definition at line 192 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::addDockWidgetAsTab(), m_mainWindow, and KDDockWidgets::DockRegistry::self().
void KDDockWidgets::Core::MainWindowViewInterface::addDockWidgetAsTab | ( | DockWidgetViewInterface * | dockwidget | ) |
Definition at line 78 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::addDockWidgetAsTab(), KDDockWidgets::Core::DockWidgetViewInterface::dockWidget(), and m_mainWindow.
Definition at line 38 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::affinities(), and m_mainWindow.
bool KDDockWidgets::Core::MainWindowViewInterface::anySideBarIsVisible | ( | ) | const |
Definition at line 94 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::anySideBarIsVisible(), and m_mainWindow.
|
pure virtual |
|
pure virtual |
void KDDockWidgets::Core::MainWindowViewInterface::clearSideBarOverlay | ( | bool | deleteFrame = true | ) |
Definition at line 68 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::clearSideBarOverlay(), and m_mainWindow.
bool KDDockWidgets::Core::MainWindowViewInterface::closeDockWidgets | ( | bool | force = false | ) |
Definition at line 58 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::closeDockWidgets(), and m_mainWindow.
bool KDDockWidgets::Core::MainWindowViewInterface::isMDI | ( | ) | const |
Definition at line 53 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::isMDI(), and m_mainWindow.
void KDDockWidgets::Core::MainWindowViewInterface::layoutEqually | ( | ) |
Definition at line 73 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::layoutEqually(), and m_mainWindow.
void KDDockWidgets::Core::MainWindowViewInterface::layoutParentContainerEqually | ( | const QString & | dockId | ) |
Definition at line 183 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::layoutParentContainerEqually(), m_mainWindow, and KDDockWidgets::DockRegistry::self().
void KDDockWidgets::Core::MainWindowViewInterface::layoutParentContainerEqually | ( | DockWidgetViewInterface * | dockView | ) |
Definition at line 130 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::DockWidgetViewInterface::dockWidget(), KDDockWidgets::Core::MainWindow::layoutParentContainerEqually(), and m_mainWindow.
Core::MainWindow * KDDockWidgets::Core::MainWindowViewInterface::mainWindow | ( | ) | const |
Returns the main window controller.
Definition at line 28 of file MainWindowViewInterface.cpp.
References m_mainWindow.
void KDDockWidgets::Core::MainWindowViewInterface::moveToSideBar | ( | const QString & | dockId | ) |
Definition at line 137 of file MainWindowViewInterface.cpp.
References m_mainWindow, KDDockWidgets::Core::MainWindow::moveToSideBar(), and KDDockWidgets::DockRegistry::self().
void KDDockWidgets::Core::MainWindowViewInterface::moveToSideBar | ( | const QString & | dockId, |
KDDockWidgets::SideBarLocation | loc | ||
) |
Definition at line 146 of file MainWindowViewInterface.cpp.
References m_mainWindow, KDDockWidgets::Core::MainWindow::moveToSideBar(), and KDDockWidgets::DockRegistry::self().
void KDDockWidgets::Core::MainWindowViewInterface::moveToSideBar | ( | DockWidgetViewInterface * | dockView | ) |
Definition at line 99 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::DockWidgetViewInterface::dockWidget(), m_mainWindow, and KDDockWidgets::Core::MainWindow::moveToSideBar().
void KDDockWidgets::Core::MainWindowViewInterface::moveToSideBar | ( | DockWidgetViewInterface * | dockView, |
KDDockWidgets::SideBarLocation | loc | ||
) |
Definition at line 105 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::DockWidgetViewInterface::dockWidget(), m_mainWindow, and KDDockWidgets::Core::MainWindow::moveToSideBar().
|
protecteddelete |
MainWindowOptions KDDockWidgets::Core::MainWindowViewInterface::options | ( | ) | const |
Definition at line 48 of file MainWindowViewInterface.cpp.
References m_mainWindow, and KDDockWidgets::Core::MainWindow::options().
void KDDockWidgets::Core::MainWindowViewInterface::overlayOnSideBar | ( | const QString & | dockId | ) |
Definition at line 165 of file MainWindowViewInterface.cpp.
References m_mainWindow, KDDockWidgets::Core::MainWindow::overlayOnSideBar(), and KDDockWidgets::DockRegistry::self().
void KDDockWidgets::Core::MainWindowViewInterface::overlayOnSideBar | ( | DockWidgetViewInterface * | dockView | ) |
Definition at line 118 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::DockWidgetViewInterface::dockWidget(), m_mainWindow, and KDDockWidgets::Core::MainWindow::overlayOnSideBar().
void KDDockWidgets::Core::MainWindowViewInterface::restoreFromSideBar | ( | const QString & | dockId | ) |
Definition at line 156 of file MainWindowViewInterface.cpp.
References m_mainWindow, KDDockWidgets::Core::MainWindow::restoreFromSideBar(), and KDDockWidgets::DockRegistry::self().
void KDDockWidgets::Core::MainWindowViewInterface::restoreFromSideBar | ( | DockWidgetViewInterface * | dockView | ) |
Definition at line 112 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::DockWidgetViewInterface::dockWidget(), m_mainWindow, and KDDockWidgets::Core::MainWindow::restoreFromSideBar().
Definition at line 43 of file MainWindowViewInterface.cpp.
References m_mainWindow, and KDDockWidgets::Core::MainWindow::setAffinities().
|
pure virtual |
bool KDDockWidgets::Core::MainWindowViewInterface::sideBarIsVisible | ( | KDDockWidgets::SideBarLocation | loc | ) | const |
Definition at line 63 of file MainWindowViewInterface.cpp.
References m_mainWindow, and KDDockWidgets::Core::MainWindow::sideBarIsVisible().
void KDDockWidgets::Core::MainWindowViewInterface::toggleOverlayOnSideBar | ( | const QString & | dockId | ) |
Definition at line 174 of file MainWindowViewInterface.cpp.
References m_mainWindow, KDDockWidgets::DockRegistry::self(), and KDDockWidgets::Core::MainWindow::toggleOverlayOnSideBar().
void KDDockWidgets::Core::MainWindowViewInterface::toggleOverlayOnSideBar | ( | DockWidgetViewInterface * | dockView | ) |
Definition at line 124 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::DockWidgetViewInterface::dockWidget(), m_mainWindow, and KDDockWidgets::Core::MainWindow::toggleOverlayOnSideBar().
QString KDDockWidgets::Core::MainWindowViewInterface::uniqueName | ( | ) | const |
Definition at line 33 of file MainWindowViewInterface.cpp.
References m_mainWindow, and KDDockWidgets::Core::MainWindow::uniqueName().
|
protected |
Definition at line 74 of file MainWindowViewInterface.h.
Referenced by addDockWidget(), addDockWidget(), addDockWidgetAsTab(), addDockWidgetAsTab(), affinities(), anySideBarIsVisible(), clearSideBarOverlay(), closeDockWidgets(), isMDI(), layoutEqually(), layoutParentContainerEqually(), layoutParentContainerEqually(), mainWindow(), moveToSideBar(), moveToSideBar(), moveToSideBar(), moveToSideBar(), options(), overlayOnSideBar(), overlayOnSideBar(), restoreFromSideBar(), restoreFromSideBar(), setAffinities(), sideBarIsVisible(), toggleOverlayOnSideBar(), toggleOverlayOnSideBar(), and uniqueName().