Krita Source Code Documentation
Loading...
Searching...
No Matches
KoCanvasController.cpp
Go to the documentation of this file.
1/* This file is part of the KDE project
2 *
3 * SPDX-FileCopyrightText: 2010 Boudewijn Rempt <boud@valdyas.org>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
9#include "KoToolManager.h"
10
11#include <QSize>
12#include <QPoint>
13
14class Q_DECL_HIDDEN KoCanvasController::Private
15{
16public:
18 : preferredCenterFractionX(0.5)
19 , preferredCenterFractionY(0.5)
20 , actionCollection(0)
21 {
22 }
23
29};
30
32 : d(new Private())
33{
35 d->actionCollection = actionCollection;
36}
37
44
46{
47 return 0;
48}
49
51 : QObject(parent)
52 , m_canvasController(controller)
53{
54}
55
57{
58 return d->actionCollection;
59}
A container for a set of QAction objects.
KoCanvasControllerProxyObject(KoCanvasController *canvasController, QObject *parent=0)
QPointer< KoCanvasControllerProxyObject > proxyObject
KisKActionCollection * actionCollection
KoCanvasController(KisKActionCollection *actionCollection)
virtual KoCanvasBase * canvas() const
void removeCanvasController(KoCanvasController *controller)
static KoToolManager * instance()
Return the toolmanager singleton.