Krita Source Code Documentation
Loading...
Searching...
No Matches
KoDockFactoryBase Class Referenceabstract

#include <KoDockFactoryBase.h>

+ Inheritance diagram for KoDockFactoryBase:

Public Types

enum  DockPosition {
  DockTornOff , DockTop , DockBottom , DockRight ,
  DockLeft , DockMinimized
}
 

Public Member Functions

virtual QDockWidget * createDockWidget ()=0
 
virtual DockPosition defaultDockPosition () const =0
 
virtual QString id () const =0
 
 KoDockFactoryBase ()
 
virtual int priority () const
 
virtual ~KoDockFactoryBase ()
 

Static Public Attributes

static constexpr int DEFAULT_PRIORITY = 100
 
static constexpr int HIGHEST_PRIORITY = 0
 

Detailed Description

Base class for factories used to create new dock widgets.

See also
KoDockRegistry
KoCanvasObserverBase

Definition at line 21 of file KoDockFactoryBase.h.

Member Enumeration Documentation

◆ DockPosition

Enumerator
DockTornOff 

Floating as its own top level window.

DockTop 

Above the central widget.

DockBottom 

Below the central widget.

DockRight 

Right of the centra widget.

DockLeft 

Left of the centra widget.

DockMinimized 

Not docked, but reachable via the menu.

Definition at line 27 of file KoDockFactoryBase.h.

27 {
29 DockTop,
31 DockRight,
32 DockLeft,
34 };
@ DockRight
Right of the centra widget.
@ DockTop
Above the central widget.
@ DockBottom
Below the central widget.
@ DockMinimized
Not docked, but reachable via the menu.
@ DockLeft
Left of the centra widget.
@ DockTornOff
Floating as its own top level window.

Constructor & Destructor Documentation

◆ KoDockFactoryBase()

KoDockFactoryBase::KoDockFactoryBase ( )

Definition at line 9 of file KoDockFactoryBase.cpp.

10{
11}

◆ ~KoDockFactoryBase()

KoDockFactoryBase::~KoDockFactoryBase ( )
virtual

Definition at line 13 of file KoDockFactoryBase.cpp.

14{
15}

Member Function Documentation

◆ createDockWidget()

◆ defaultDockPosition()

◆ id()

◆ priority()

virtual int KoDockFactoryBase::priority ( ) const
inlinevirtual
Returns
the priority of the dock widget, lower numbers have higher

Definition at line 45 of file KoDockFactoryBase.h.

46 {
47 return DEFAULT_PRIORITY;
48 }
static constexpr int DEFAULT_PRIORITY

Member Data Documentation

◆ DEFAULT_PRIORITY

constexpr int KoDockFactoryBase::DEFAULT_PRIORITY = 100
staticconstexpr

Definition at line 24 of file KoDockFactoryBase.h.

◆ HIGHEST_PRIORITY

constexpr int KoDockFactoryBase::HIGHEST_PRIORITY = 0
staticconstexpr

Definition at line 25 of file KoDockFactoryBase.h.


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