![]() |
Walls And Holes
1
|
#include <tilemaptoolmanager.h>
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) |
![]() | |
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()) |
![]() | |
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 | |
![]() | |
void | toolWasActivated (AbstractTool *tool, QString name) |
Signal emitted when a new tool is activated. More... | |
![]() | |
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... | |
AbstractTool * | mActiveTool |
The action group containing all of the ToolManager's actions. More... | |
QToolBar * | mContextToolBar |
The active tool. More... | |
TileMapToolManager::TileMapToolManager | ( | QObject * | parent = nullptr | ) |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
QAction * TileMapToolManager::registerMapTool | ( | AbstractTileMapTool * | tool, |
QString | name, | ||
QIcon | icon = QIcon() , |
||
QKeySequence | ks = QKeySequence() |
||
) |
void TileMapToolManager::setTileMap | ( | TileMap * | tileMap | ) |
|
slot |