Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTransformToolActivationCommand.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Sven Langkamp <sven.langkamp@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
9#include <QApplication>
10
11#include <KoToolManager.h>
12#include <KoToolBase.h>
13#include "canvas/kis_canvas2.h"
14
16 : KUndo2Command(kundo2_i18n("Activate transform tool"), parent), m_firstRedo(true), m_view(view)
17{
18 connect(this, SIGNAL(requestTransformTool()), m_view, SLOT(slotActivateTransformTool()));
19}
20
24
26{
27 if(m_firstRedo)
28 {
29 m_firstRedo = false;
30 Q_EMIT requestTransformTool();
31 }
32}
33
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
KisTransformToolActivationCommand(KisViewManager *view, KUndo2Command *parent=0)
KUndo2MagicString kundo2_i18n(const char *text)