Walls And Holes  1
TileMapToolManager Class Reference

#include <tilemaptoolmanager.h>

Inheritance diagram for TileMapToolManager:
Collaboration diagram for TileMapToolManager:

Public Slots

void cellActivated (int x, int y, QMouseEvent *event)
 
void cellClicked (int x, int y, QMouseEvent *event)
 
void cellReleased (int x, int y, QMouseEvent *event)
 
void cellHovered (int x, int y, QMouseEvent *event)
 
void mouseExitedMap (QMouseEvent *event)
 
void tileTemplateChanged (TileTemplate *tileTemplate)
 
- Public Slots inherited from ToolManager
void activateTool (QString name)
 Activates the desired tool. More...
 
void deactivateTool (QString name)
 Deactivates the tool if it is active. NOTE: A ToolManager is exclusive, so activateTool() automatically deactivates the previous tool. More...
 
QToolBar * contextToolBar ()
 Returns the context toolBar of the current active tool. More...
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void wheelEvent (QWheelEvent *event)
 

Public Member Functions

 TileMapToolManager (QObject *parent=nullptr)
 
void setTileMap (TileMap *tileMap)
 
QAction * registerMapTool (AbstractTileMapTool *tool, QString name, QIcon icon=QIcon(), QKeySequence ks=QKeySequence())
 
- Public Member Functions inherited from ToolManager
 ToolManager (QObject *parent=nullptr)
 
QAction * registerTool (AbstractTool *tool, QString name, QIcon icon=QIcon(), QKeySequence ks=QKeySequence())
 Registers the tool with the given identifier. More...
 
QAction * getAction (QString name)
 Finds the action associated with the name. More...
 

Additional Inherited Members

- Signals inherited from ToolManager
void toolWasActivated (AbstractTool *tool, QString name)
 Signal emitted when a new tool is activated. More...
 
- Protected Attributes inherited from ToolManager
QMap< QString, AbstractTool * > mTools
 
QMap< QString, QAction * > mToolActions
 A map from tool names to tool objects. More...
 
QActionGroup * mActionGroup
 The actions associated to each tool. All pointers delete selves when the ToolManager is destructed. More...
 
AbstractToolmActiveTool
 The action group containing all of the ToolManager's actions. More...
 
QToolBar * mContextToolBar
 The active tool. More...
 

Constructor & Destructor Documentation

◆ TileMapToolManager()

TileMapToolManager::TileMapToolManager ( QObject *  parent = nullptr)

Member Function Documentation

◆ cellActivated

void TileMapToolManager::cellActivated ( int  x,
int  y,
QMouseEvent *  event 
)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cellClicked

void TileMapToolManager::cellClicked ( int  x,
int  y,
QMouseEvent *  event 
)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cellHovered

void TileMapToolManager::cellHovered ( int  x,
int  y,
QMouseEvent *  event 
)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cellReleased

void TileMapToolManager::cellReleased ( int  x,
int  y,
QMouseEvent *  event 
)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mouseExitedMap

void TileMapToolManager::mouseExitedMap ( QMouseEvent *  event)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ registerMapTool()

QAction * TileMapToolManager::registerMapTool ( AbstractTileMapTool tool,
QString  name,
QIcon  icon = QIcon(),
QKeySequence  ks = QKeySequence() 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTileMap()

void TileMapToolManager::setTileMap ( TileMap tileMap)
Here is the call graph for this function:

◆ tileTemplateChanged

void TileMapToolManager::tileTemplateChanged ( TileTemplate tileTemplate)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

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