Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_grid_manager.h
Go to the documentation of this file.
1/*
2 * This file is part of Krita
3 *
4 * SPDX-FileCopyrightText: 2006 Cyrille Berger <cberger@cberger.net>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KIS_GRID_MANAGER_H
10#define KIS_GRID_MANAGER_H
11
12#include <QPainter>
13
14#include "kis_types.h"
15#include <kritaui_export.h>
16#include "kis_action_manager.h"
17#include "kis_action.h"
18
20class KisViewManager;
21class KisGridConfig;
22
23
24class KRITAUI_EXPORT KisGridManager : public QObject
25{
26 Q_OBJECT
27public:
29 ~KisGridManager() override;
30public:
31
32 void setup(KisActionManager * actionManager);
33 void setView(QPointer<KisView>imageView);
34
35 void setGridConfig(const KisGridConfig &config);
36
37Q_SIGNALS:
39
40public Q_SLOTS:
41
42 void updateGUI();
43
44private Q_SLOTS:
45
46 void slotChangeGridVisibilityTriggered(bool value);
47 void slotSnapToGridTriggered(bool value);
48
49private:
50 void setGridConfigImpl(const KisGridConfig &config, bool emitModified);
51
52private:
53 void setFastConfig(int size);
54
55private:
56 struct Private;
57 QScopedPointer<Private> m_d;
58};
59
60#endif
float value(const T *src, size_t ch)
A KisActionManager class keeps track of KisActions. These actions are always associated with the GUI....
void sigRequestUpdateGridConfig(const KisGridConfig &config)
QScopedPointer< Private > m_d
void setFastConfig(int size)