18#ifndef KIS_TOOL_MANAGER
19#define KIS_TOOL_MANAGER
25#include "kis_tool_controller.h"
26#include "kis_global.h"
27#include "kis_tool_types.h"
28#include "kis_input_device.h"
36class KoPaletteManager;
43class KisToolManager : public TQObject, public KisToolControllerInterface {
55 void setUp(KoToolBox * toolbox, KoPaletteManager * paletteManager, TDEActionCollection * collection);
58 void youAintGotNoToolBox();
62 virtual void setCurrentTool(KisTool *tool);
63 virtual void setCurrentTool( const TQString & toolName);
65 virtual KisTool *currentTool() const;
67 void setToolForInputDevice(KisInputDevice oldDevice, KisInputDevice newDevice);
69 KisTool *findTool( const TQString &toolName, KisInputDevice inputDevice = KisInputDevice::unknown()) const;
71 void activateCurrentTool();
75 void resetToolBox(KoToolBox * toolbox);
79 typedef std::map<KisInputDevice, KisTool *> InputDeviceToolMap;
80 typedef std::map<KisInputDevice, vKisTool> InputDeviceToolSetMap;
82 InputDeviceToolMap m_inputDeviceToolMap;
83 InputDeviceToolSetMap m_inputDeviceToolSetMap;
88 KoPaletteManager * m_paletteManager;
89 TDEActionCollection * m_actionCollection;
91 KoToolBox * m_toolBox;
94 KisTool * m_dummyTool;
98 bool m_tools_disabled;
Interface for classes that implement a canvas; i.e., a widget where KisImages are painted onto.
KisCanvasSubject is part of the Observer pattern.
|