chalk

KisToolManager Class Reference

#include <kis_tool_manager.h>

Inherits TQObject, and KisToolControllerInterface.

Public Member Functions

 KisToolManager (KisCanvasSubject *parent, KisCanvasController *controller)
 
void setUp (KoToolBox *toolbox, KoPaletteManager *paletteManager, TDEActionCollection *collection)
 
void youAintGotNoToolBox ()
 
void updateGUI ()
 
virtual void setCurrentTool (KisTool *tool)
 
virtual void setCurrentTool (const TQString &toolName)
 
virtual KisTool * currentTool () const
 
void setToolForInputDevice (KisInputDevice oldDevice, KisInputDevice newDevice)
 
KisTool * findTool (const TQString &toolName, KisInputDevice inputDevice=KisInputDevice::unknown()) const
 
void activateCurrentTool ()
 

Detailed Description

This class manages the activation and deactivation of tools for each input device.

Definition at line 43 of file kis_tool_manager.h.

Constructor & Destructor Documentation

◆ KisToolManager()

KisToolManager::KisToolManager ( KisCanvasSubject *  parent,
KisCanvasController *  controller 
)

Definition at line 35 of file kis_tool_manager.cpp.

◆ ~KisToolManager()

KisToolManager::~KisToolManager ( )

Definition at line 48 of file kis_tool_manager.cpp.

Member Function Documentation

◆ activateCurrentTool()

void KisToolManager::activateCurrentTool ( )

Definition at line 269 of file kis_tool_manager.cpp.

◆ currentTool()

KisTool * KisToolManager::currentTool ( ) const
virtual

Definition at line 224 of file kis_tool_manager.cpp.

◆ findTool()

KisTool * KisToolManager::findTool ( const TQString &  toolName,
KisInputDevice  inputDevice = KisInputDevice::unknown() 
) const

Definition at line 277 of file kis_tool_manager.cpp.

◆ setCurrentTool() [1/2]

void KisToolManager::setCurrentTool ( const TQString &  toolName)
virtual

Definition at line 219 of file kis_tool_manager.cpp.

◆ setCurrentTool() [2/2]

void KisToolManager::setCurrentTool ( KisTool *  tool)
virtual

Definition at line 178 of file kis_tool_manager.cpp.

◆ setToolForInputDevice()

void KisToolManager::setToolForInputDevice ( KisInputDevice  oldDevice,
KisInputDevice  newDevice 
)

Definition at line 236 of file kis_tool_manager.cpp.

◆ setUp()

void KisToolManager::setUp ( KoToolBox *  toolbox,
KoPaletteManager *  paletteManager,
TDEActionCollection *  collection 
)

Definition at line 53 of file kis_tool_manager.cpp.

◆ updateGUI()

void KisToolManager::updateGUI ( )

Definition at line 125 of file kis_tool_manager.cpp.

◆ youAintGotNoToolBox()

void KisToolManager::youAintGotNoToolBox ( )

Definition at line 94 of file kis_tool_manager.cpp.


The documentation for this class was generated from the following files: