File indexing completed on 2024-12-22 04:13:03
0001 /* 0002 * SPDX-FileCopyrightText: 2018 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #include "KisSelectionToolFactoryBase.h" 0007 0008 #include <kis_action_registry.h> 0009 0010 KisSelectionToolFactoryBase::KisSelectionToolFactoryBase(const QString &id) 0011 : KisToolPaintFactoryBase(id) 0012 { 0013 } 0014 0015 KisSelectionToolFactoryBase::~KisSelectionToolFactoryBase() 0016 { 0017 } 0018 0019 QList<QAction *> KisSelectionToolFactoryBase::createActionsImpl() 0020 { 0021 KisActionRegistry *actionRegistry = KisActionRegistry::instance(); 0022 QList<QAction *> actions = KisToolPaintFactoryBase::createActionsImpl(); 0023 0024 actions << actionRegistry->makeQAction("selection_tool_mode_add", this); 0025 actions << actionRegistry->makeQAction("selection_tool_mode_replace", this); 0026 actions << actionRegistry->makeQAction("selection_tool_mode_subtract", this); 0027 actions << actionRegistry->makeQAction("selection_tool_mode_intersect", this); 0028 0029 return actions; 0030 } 0031 0032 KisToolPolyLineFactoryBase::KisToolPolyLineFactoryBase(const QString &id) 0033 : KisToolPaintFactoryBase(id) 0034 { 0035 } 0036 0037 KisToolPolyLineFactoryBase::~KisToolPolyLineFactoryBase() 0038 { 0039 0040 } 0041 0042 QList<QAction *> KisToolPolyLineFactoryBase::createActionsImpl() 0043 { 0044 KisActionRegistry *actionRegistry = KisActionRegistry::instance(); 0045 QList<QAction *> actions = KisToolPaintFactoryBase::createActionsImpl(); 0046 0047 actions << actionRegistry->makeQAction("undo_polygon_selection", this); 0048 actions << actionRegistry->makeQAction("selection_tool_mode_add", this); 0049 0050 return actions; 0051 }