A factory class for allowing the user to customize some internal widgets. This is optional, and if not provided, a default one will be used, DefaultWidgetFactory.
More...
#include <FrameworkWidgetFactory.h>
|
virtual | ~FrameworkWidgetFactory () |
| Destructor.Don't delete FrameworkWidgetFactory directly, it's owned by the framework.
|
|
virtual DropIndicatorOverlayInterface * | createDropIndicatorOverlay (DropArea *dropArea) const =0 |
| Called internally by the framework to create a DropIndicatorOverlayInterface Override to provide your own DropIndicatorOverlayInterface sub-class. More...
|
|
virtual FloatingWindow * | createFloatingWindow (MainWindowBase *parent=nullptr) const =0 |
| Called internally by the framework to create a FloatingWindow Override to provide your own FloatingWindow sub-class. If overridden then you also need to override the overloads below. More...
|
|
virtual FloatingWindow * | createFloatingWindow (Frame *frame, MainWindowBase *parent=nullptr) const =0 |
| Called internally by the framework to create a FloatingWindow Override to provide your own FloatingWindow sub-class. If overridden then you also need to override the overloads above. More...
|
|
virtual Frame * | createFrame (QWidgetOrQuick *parent=nullptr, FrameOptions options=FrameOption_None) const =0 |
| Called internally by the framework to create a Frame class Override to provide your own Frame sub-class. A frame is the widget that holds the titlebar and tab-widget which holds the DockWidgets. More...
|
|
virtual Layouting::Separator * | createSeparator (Layouting::Widget *parent=nullptr) const =0 |
| Called internally by the framework to create a Separator Override to provide your own Separator sub-class. The Separator allows the user to resize nested dock widgets. More...
|
|
virtual TabBar * | createTabBar (TabWidget *parent=nullptr) const =0 |
| Called internally by the framework to create a TabBar Override to provide your own TabBar sub-class. More...
|
|
virtual TabWidget * | createTabWidget (Frame *parent) const =0 |
| Called internally by the framework to create a TabWidget Override to provide your own TabWidget sub-class. More...
|
|
virtual TitleBar * | createTitleBar (Frame *frame) const =0 |
| Called internally by the framework to create a TitleBar Override to provide your own TitleBar sub-class. If overridden then you also need to override the overload below. More...
|
|
virtual TitleBar * | createTitleBar (FloatingWindow *floatingWindow) const =0 |
| Called internally by the framework to create a TitleBar Override to provide your own TitleBar sub-class. If overridden then you also need to override the overload above. More...
|
|
A factory class for allowing the user to customize some internal widgets. This is optional, and if not provided, a default one will be used, DefaultWidgetFactory.
Deriving from DefaultWidgetFactory is recommended, unless you need to override all methods.
Sub-classing FrameworkWidgetFactory allows for fine-grained customization and styling of some non-public widgets, such as titlebars, dock widget frame and tab widgets.
To set your own factory see Config::setFrameworkWidgetFactory()
Will also be useful to provide a QtQuickWidget factory in the future.
- See also
- Config::setFrameworkWidgetFactory()
virtual DropIndicatorOverlayInterface* KDDockWidgets::FrameworkWidgetFactory::createDropIndicatorOverlay |
( |
DropArea * |
dropArea | ) |
const |
|
pure virtual |
Called internally by the framework to create a DropIndicatorOverlayInterface Override to provide your own DropIndicatorOverlayInterface sub-class.
- Parameters
-
dropArea | Just forward to DropIndicatorOverlayInterface's constructor. |
Implemented in KDDockWidgets::DefaultWidgetFactory.
virtual FloatingWindow* KDDockWidgets::FrameworkWidgetFactory::createFloatingWindow |
( |
MainWindowBase * |
parent = nullptr | ) |
const |
|
pure virtual |
Called internally by the framework to create a FloatingWindow Override to provide your own FloatingWindow sub-class. If overridden then you also need to override the overloads below.
- Parameters
-
parent | Just forward to FloatingWindow's constructor. |
Implemented in KDDockWidgets::DefaultWidgetFactory.
virtual FloatingWindow* KDDockWidgets::FrameworkWidgetFactory::createFloatingWindow |
( |
Frame * |
frame, |
|
|
MainWindowBase * |
parent = nullptr |
|
) |
| const |
|
pure virtual |
Called internally by the framework to create a FloatingWindow Override to provide your own FloatingWindow sub-class. If overridden then you also need to override the overloads above.
- Parameters
-
frame | Just forward to FloatingWindow's constructor. |
parent | Just forward to FloatingWindow's constructor. |
Implemented in KDDockWidgets::DefaultWidgetFactory.
virtual Frame* KDDockWidgets::FrameworkWidgetFactory::createFrame |
( |
QWidgetOrQuick * |
parent = nullptr , |
|
|
FrameOptions |
options = FrameOption_None |
|
) |
| const |
|
pure virtual |
Called internally by the framework to create a Frame class Override to provide your own Frame sub-class. A frame is the widget that holds the titlebar and tab-widget which holds the DockWidgets.
- Parameters
-
parent | just forward to Frame's constructor |
options | just forward to Frame's constructor |
Implemented in KDDockWidgets::DefaultWidgetFactory.
virtual Layouting::Separator* KDDockWidgets::FrameworkWidgetFactory::createSeparator |
( |
Layouting::Widget * |
parent = nullptr | ) |
const |
|
pure virtual |
Called internally by the framework to create a Separator Override to provide your own Separator sub-class. The Separator allows the user to resize nested dock widgets.
- Parameters
-
parent | Just forward to Separator's constructor. |
Implemented in KDDockWidgets::DefaultWidgetFactory.
virtual TabBar* KDDockWidgets::FrameworkWidgetFactory::createTabBar |
( |
TabWidget * |
parent = nullptr | ) |
const |
|
pure virtual |
Called internally by the framework to create a TabBar Override to provide your own TabBar sub-class.
- Parameters
-
parent | Just forward to TabBar's's constructor. |
Implemented in KDDockWidgets::DefaultWidgetFactory.
virtual TabWidget* KDDockWidgets::FrameworkWidgetFactory::createTabWidget |
( |
Frame * |
parent | ) |
const |
|
pure virtual |
Called internally by the framework to create a TabWidget Override to provide your own TabWidget sub-class.
- Parameters
-
parent | Just forward to TabWidget's constructor. |
Implemented in KDDockWidgets::DefaultWidgetFactory.
virtual TitleBar* KDDockWidgets::FrameworkWidgetFactory::createTitleBar |
( |
Frame * |
frame | ) |
const |
|
pure virtual |
Called internally by the framework to create a TitleBar Override to provide your own TitleBar sub-class. If overridden then you also need to override the overload below.
- Parameters
-
frame | Just forward to TitleBar's constructor. |
Implemented in KDDockWidgets::DefaultWidgetFactory.
virtual TitleBar* KDDockWidgets::FrameworkWidgetFactory::createTitleBar |
( |
FloatingWindow * |
floatingWindow | ) |
const |
|
pure virtual |
Called internally by the framework to create a TitleBar Override to provide your own TitleBar sub-class. If overridden then you also need to override the overload above.
- Parameters
-
floatingWindow | Just forward to TitleBar's constructor. |
Implemented in KDDockWidgets::DefaultWidgetFactory.