Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
884 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2018 Sven Langkamp <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#include "KisTransformToolActivationCommand.h"

#include <QApplication>

#include <KoToolManager.h>
#include <KoToolBase.h>
#include "canvas/kis_canvas2.h"

KisTransformToolActivationCommand::KisTransformToolActivationCommand(KisViewManager* view, KUndo2Command * parent)
    : KUndo2Command(kundo2_i18n("Activate transform tool"), parent),  m_firstRedo(true), m_view(view)
{
    connect(this, SIGNAL(requestTransformTool()), m_view, SLOT(slotActivateTransformTool()));
}

KisTransformToolActivationCommand::~KisTransformToolActivationCommand()
{
}

void KisTransformToolActivationCommand::redo()
{
    if(m_firstRedo)
    {
        m_firstRedo = false;
        Q_EMIT requestTransformTool();
    }
}

void KisTransformToolActivationCommand::undo()
{

}