KDDockWidgets API Documentation 2.1
|
The default ViewFactory for Flutter frontend. More...
#include <ViewFactory.h>
Public Member Functions | |
ViewFactory ()=default | |
~ViewFactory () override | |
Destructor. Don't delete ViewFactory directly, it's owned by the framework. | |
KDDockWidgets::Core::Action * | createAction (Core::DockWidget *, const char *debugName) const override |
Creates a QAction if QtWidgets, or an equivalent fallback if QtQuick/Flutter Not needed to be overridden by users. | |
Core::ClassicIndicatorWindowViewInterface * | createClassicIndicatorWindow (Core::ClassicDropIndicatorOverlay *, Core::View *parent=0) const override |
Creates the window that will show the actual drop indicators. They need a higher z-order, so this is actually a separate window, not parented to the main window. | |
virtual flutter::IndicatorWindow * | createClassicIndicatorWindow_flutter (Core::ClassicDropIndicatorOverlay *, Core::View *parent=0) const |
Core::View * | createDockWidget (const QString &uniqueName, DockWidgetOptions={}, LayoutSaverOptions={}, Qt::WindowFlags={}) const override |
Creates a dock widget. This is only used by MainWindow's persistent widget feature. In all other cases users will instantiate DockWidget directly. | |
Core::View * | createDropArea (Core::DropArea *, Core::View *parent) const override |
Called by the framework to create a DropArea view. | |
Core::View * | createFloatingWindow (Core::FloatingWindow *, Core::MainWindow *parent=nullptr, Qt::WindowFlags windowFlags={}) const override |
Called by the framework to create a FloatingWindow view Override to provide your own FloatingWindow sub-class. | |
Core::View * | createGroup (Core::Group *, Core::View *parent=nullptr) const override |
Called by the framework to create a Frame view Override to provide your own Frame sub-class. A group is the widget that holds the titlebar and tab-widget which holds the DockWidgets. | |
Core::View * | createMDILayout (Core::MDILayout *, Core::View *parent) const override |
Called by the framework to create a MDI Layout view. | |
Core::View * | createRubberBand (Core::View *parent) const override |
Called by the framework to create a RubberBand view to show as drop zone. | |
Core::View * | createSegmentedDropIndicatorOverlayView (Core::SegmentedDropIndicatorOverlay *controller, Core::View *parent) const override |
Creates the view that will parent the segmented drop indicators. | |
Core::View * | createSeparator (Core::Separator *, Core::View *parent=nullptr) const override |
Called by the framework to create a Separator view Override to provide your own Separator sub-class. The Separator allows the user to resize nested dock widgets. | |
Core::View * | createSideBar (Core::SideBar *, Core::View *parent) const override |
Called by the framework to create a SideBar view. | |
Core::View * | createStack (Core::Stack *, Core::View *parent) const override |
Called by the framework to create a Stack view Override to provide your own Stack sub-class. | |
Core::View * | createTabBar (Core::TabBar *tabBar, Core::View *parent=nullptr) const override |
Called by the framework to create a TabBar view Override to provide your own TabBar sub-class. | |
Core::View * | createTitleBar (Core::TitleBar *, Core::View *parent) const override |
Called by the framework to create a TitleBar view Override to provide your own TitleBar sub-class. Just forward the controller and parent arguments to the TitleBar view ctor. | |
Icon | iconForButtonType (TitleBarButtonType type, double dpr) const override |
Returns the icon to be used with the specified type . | |
Public Member Functions inherited from KDDockWidgets::Core::ViewFactory | |
ViewFactory ()=default | |
virtual QString | classicIndicatorsPath () const |
The path to a folder containing the classic_indicator png files. | |
Additional Inherited Members | |
Static Public Attributes inherited from KDDockWidgets::Core::ViewFactory | |
static DropIndicatorType | s_dropIndicatorType = DropIndicatorType::Classic |
@ The drop indicator type | |
The default ViewFactory for Flutter frontend.
Definition at line 50 of file flutter/ViewFactory.h.
|
default |
|
overridevirtual |
Destructor. Don't delete ViewFactory directly, it's owned by the framework.
Reimplemented from KDDockWidgets::Core::ViewFactory.
Definition at line 36 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Creates a QAction if QtWidgets, or an equivalent fallback if QtQuick/Flutter Not needed to be overridden by users.
Implements KDDockWidgets::Core::ViewFactory.
Definition at line 128 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Creates the window that will show the actual drop indicators. They need a higher z-order, so this is actually a separate window, not parented to the main window.
Implements KDDockWidgets::Core::ViewFactory.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 113 of file flutter/ViewFactory.cpp.
References createClassicIndicatorWindow_flutter().
|
virtual |
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 122 of file flutter/ViewFactory.cpp.
Referenced by createClassicIndicatorWindow().
|
overridevirtual |
Creates a dock widget. This is only used by MainWindow's persistent widget feature. In all other cases users will instantiate DockWidget directly.
Implements KDDockWidgets::Core::ViewFactory.
Definition at line 40 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Called by the framework to create a DropArea view.
Implements KDDockWidgets::Core::ViewFactory.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 95 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Called by the framework to create a FloatingWindow view Override to provide your own FloatingWindow sub-class.
parent | Just forward to FloatingWindow's constructor. |
Implements KDDockWidgets::Core::ViewFactory.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 73 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Called by the framework to create a Frame view Override to provide your own Frame sub-class. A group is the widget that holds the titlebar and tab-widget which holds the DockWidgets.
parent | just forward to Frame's constructor |
Implements KDDockWidgets::Core::ViewFactory.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 47 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Called by the framework to create a MDI Layout view.
Implements KDDockWidgets::Core::ViewFactory.
Definition at line 100 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Called by the framework to create a RubberBand view to show as drop zone.
Implements KDDockWidgets::Core::ViewFactory.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 79 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Creates the view that will parent the segmented drop indicators.
Implements KDDockWidgets::Core::ViewFactory.
Definition at line 106 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Called by the framework to create a Separator view Override to provide your own Separator sub-class. The Separator allows the user to resize nested dock widgets.
parent | Just forward to Separator's constructor. |
Implements KDDockWidgets::Core::ViewFactory.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 68 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Called by the framework to create a SideBar view.
loc | The side-bar location without the main window. Just forward into your SideBar sub-class ctor. |
parent | The MainWindow. Just forward into your SideBar sub-class ctor. |
Implements KDDockWidgets::Core::ViewFactory.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 84 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Called by the framework to create a Stack view Override to provide your own Stack sub-class.
parent | Just forward to Stack's constructor. |
Implements KDDockWidgets::Core::ViewFactory.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 63 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Called by the framework to create a TabBar view Override to provide your own TabBar sub-class.
parent | Just forward to TabBar's's constructor. |
Implements KDDockWidgets::Core::ViewFactory.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 58 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Called by the framework to create a TitleBar view Override to provide your own TitleBar sub-class. Just forward the controller
and parent
arguments to the TitleBar view ctor.
Implements KDDockWidgets::Core::ViewFactory.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::ViewFactory_wrapper.
Definition at line 53 of file flutter/ViewFactory.cpp.
|
overridevirtual |
Returns the icon to be used with the specified type
.
dpr | the device pixel ratio of the button |
Implements KDDockWidgets::Core::ViewFactory.
Definition at line 90 of file flutter/ViewFactory.cpp.