Krita Source Code Documentation
Loading...
Searching...
No Matches
LayerBoxFactory Class Reference

#include <LayerBox.h>

+ Inheritance diagram for LayerBoxFactory:

Public Member Functions

QDockWidget * createDockWidget () override
 
DockPosition defaultDockPosition () const override
 
QString id () const override
 
 LayerBoxFactory ()
 
- Public Member Functions inherited from KoDockFactoryBase
 KoDockFactoryBase ()
 
virtual int priority () const
 
virtual ~KoDockFactoryBase ()
 

Additional Inherited Members

- Public Types inherited from KoDockFactoryBase
enum  DockPosition {
  DockTornOff , DockTop , DockBottom , DockRight ,
  DockLeft , DockMinimized
}
 
- Static Public Attributes inherited from KoDockFactoryBase
static constexpr int DEFAULT_PRIORITY = 100
 
static constexpr int HIGHEST_PRIORITY = 0
 

Detailed Description

Definition at line 194 of file LayerBox.h.

Constructor & Destructor Documentation

◆ LayerBoxFactory()

LayerBoxFactory::LayerBoxFactory ( )
inline

Definition at line 198 of file LayerBox.h.

198{ }

Member Function Documentation

◆ createDockWidget()

QDockWidget * LayerBoxFactory::createDockWidget ( )
inlineoverridevirtual

Creates the dock widget

Returns
the created dock widget

Implements KoDockFactoryBase.

Definition at line 204 of file LayerBox.h.

204 {
205 LayerBox * dockWidget = new LayerBox();
206
207 dockWidget->setObjectName(id());
208
209 return dockWidget;
210 }

◆ defaultDockPosition()

DockPosition LayerBoxFactory::defaultDockPosition ( ) const
inlineoverridevirtual
Returns
the dock widget area the widget should appear in by default

Implements KoDockFactoryBase.

Definition at line 212 of file LayerBox.h.

212 {
213 return DockRight;
214 }
@ DockRight
Right of the centra widget.

◆ id()

QString LayerBoxFactory::id ( ) const
inlineoverridevirtual
Returns
the id of the dock widget

Implements KoDockFactoryBase.

Definition at line 200 of file LayerBox.h.

200 {
201 return QString("KisLayerBox");
202 }

The documentation for this class was generated from the following file: