KDDockWidgets API Documentation 2.1
|
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 27 of file MainWindowViewInterface.h.
|
explicit |
Definition at line 20 of file MainWindowViewInterface.cpp.
|
virtualdefault |
|
protecteddelete |
void KDDockWidgets::Core::MainWindowViewInterface::addDockWidget | ( | const QString & | dockId, |
KDDockWidgets::Location | location, | ||
const QString & | relativeToDockId = {} , |
||
const KDDockWidgets::InitialOption & | initialOption = {} |
||
) |
Definition at line 200 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 , |
||
const KDDockWidgets::InitialOption & | initialOption = {} |
||
) |
Definition at line 83 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 191 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 77 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::addDockWidgetAsTab(), KDDockWidgets::Core::DockWidgetViewInterface::dockWidget(), and m_mainWindow.
Definition at line 37 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::affinities(), and m_mainWindow.
bool KDDockWidgets::Core::MainWindowViewInterface::anySideBarIsVisible | ( | ) | const |
Definition at line 93 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 67 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::clearSideBarOverlay(), and m_mainWindow.
bool KDDockWidgets::Core::MainWindowViewInterface::closeDockWidgets | ( | bool | force = false | ) |
Definition at line 57 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::closeDockWidgets(), and m_mainWindow.
bool KDDockWidgets::Core::MainWindowViewInterface::isMDI | ( | ) | const |
Definition at line 52 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::isMDI(), and m_mainWindow.
void KDDockWidgets::Core::MainWindowViewInterface::layoutEqually | ( | ) |
Definition at line 72 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::MainWindow::layoutEqually(), and m_mainWindow.
void KDDockWidgets::Core::MainWindowViewInterface::layoutParentContainerEqually | ( | const QString & | dockId | ) |
Definition at line 182 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 129 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 27 of file MainWindowViewInterface.cpp.
References m_mainWindow.
void KDDockWidgets::Core::MainWindowViewInterface::moveToSideBar | ( | const QString & | dockId | ) |
Definition at line 136 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 145 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 98 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 104 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 47 of file MainWindowViewInterface.cpp.
References m_mainWindow, and KDDockWidgets::Core::MainWindow::options().
void KDDockWidgets::Core::MainWindowViewInterface::overlayOnSideBar | ( | const QString & | dockId | ) |
Definition at line 164 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 117 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 155 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 111 of file MainWindowViewInterface.cpp.
References KDDockWidgets::Core::DockWidgetViewInterface::dockWidget(), m_mainWindow, and KDDockWidgets::Core::MainWindow::restoreFromSideBar().
Definition at line 42 of file MainWindowViewInterface.cpp.
References m_mainWindow, and KDDockWidgets::Core::MainWindow::setAffinities().
|
pure virtual |
void KDDockWidgets::Core::MainWindowViewInterface::setPersistentCentralView | ( | std::shared_ptr< Core::View > | view | ) |
Definition at line 214 of file MainWindowViewInterface.cpp.
References m_mainWindow, and KDDockWidgets::Core::MainWindow::setPersistentCentralView().
bool KDDockWidgets::Core::MainWindowViewInterface::sideBarIsVisible | ( | KDDockWidgets::SideBarLocation | loc | ) | const |
Definition at line 62 of file MainWindowViewInterface.cpp.
References m_mainWindow, and KDDockWidgets::Core::MainWindow::sideBarIsVisible().
void KDDockWidgets::Core::MainWindowViewInterface::toggleOverlayOnSideBar | ( | const QString & | dockId | ) |
Definition at line 173 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 123 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 32 of file MainWindowViewInterface.cpp.
References m_mainWindow, and KDDockWidgets::Core::MainWindow::uniqueName().
|
protected |
Definition at line 77 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(), setPersistentCentralView(), sideBarIsVisible(), toggleOverlayOnSideBar(), toggleOverlayOnSideBar(), and uniqueName().