Krita Source Code Documentation
Loading...
Searching...
No Matches
KoDockFactoryBase.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 SPDX-FileCopyrightText: 2006 Peter Simonsson <peter.simonsson@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KODOCKFACTORY_H
8#define KODOCKFACTORY_H
9
10#include "kritaflake_export.h"
11
12#include <QString>
13
14class QDockWidget;
15
21class KRITAFLAKE_EXPORT KoDockFactoryBase
22{
23public:
24 static constexpr int DEFAULT_PRIORITY = 100;
25 static constexpr int HIGHEST_PRIORITY = 0;
26
35
37 virtual ~KoDockFactoryBase();
38
40 virtual QString id() const = 0;
41
43 // priority, HIGHEST_PRIORITY is the highest. Only the log docker should
44 // have that priority so that it starts logging at the earliest chance.
45 virtual int priority() const
46 {
47 return DEFAULT_PRIORITY;
48 }
49
51 virtual DockPosition defaultDockPosition() const = 0;
52
55 virtual QDockWidget* createDockWidget() = 0;
56};
57
58#endif
virtual QDockWidget * createDockWidget()=0
@ DockRight
Right of the centra widget.
@ DockTop
Above the central widget.
@ DockBottom
Below the central widget.
@ DockLeft
Left of the centra widget.
@ DockTornOff
Floating as its own top level window.
virtual int priority() const
virtual DockPosition defaultDockPosition() const =0
virtual QString id() const =0