|
Walls And Holes
1
|
#include <filltool.h>


Public Slots | |
| void | invalidateSelection () |
Public Member Functions | |
| FillTool (TileMapPreviewGraphicsItem *previewItem, QUndoStack *undoStack) | |
| void | cellClicked (int x, int y, QMouseEvent *) override |
| This will immediately fill an area. More... | |
| void | cellHovered (int x, int y, QMouseEvent *) override |
| This will show a preview for the selected area. More... | |
| void | toolTileMapChanged (TileMap *prev) override |
| Called whenever mTileMap changes. Called in constructor. More... | |
| void | mouseExitedMap (QMouseEvent *) override |
| Called when the mouse is no longer hovering over a cell. More... | |
| void | deactivate () override |
| Deactivates the tool. This is called before the tool stops being used. More... | |
Public Member Functions inherited from AbstractTileMapTool | |
| AbstractTileMapTool (TileMapPreviewGraphicsItem *previewItem) | |
| void | setTileMap (TileMap *tileMap) |
| void | setTileTemplate (TileTemplate *tileTemplate) |
| virtual void | cellActivated (int, int, QMouseEvent *) |
| Called when the left mouse button is down over a new cell. More... | |
| virtual void | cellReleased (int, int, QMouseEvent *) |
| Called when the left mouse button is released over a cell. More... | |
Public Member Functions inherited from AbstractTool | |
| virtual | ~AbstractTool () |
| virtual void | activate () |
| Activates the tool. This is called before the tool is used. More... | |
| virtual QList< QAction * > | contextActions () |
| Returns a vector of qactions which can be used to modify the behaviour of the tool. Will be used by the tool manager to add the actions to a context tool bar. More... | |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | wheelEvent (QWheelEvent *) |
Protected Member Functions | |
| void | updateSelection (int x, int y) |
| void | drawOverlay (int endX, int endY) |
| Draws an overlay previewing the area that will be filled. More... | |
| void | clearOverlay () |
| Clears the overlay. More... | |
Protected Member Functions inherited from AbstractTileMapTool | |
| TileMap * | getTileMap () const |
| TileTemplate * | getTileTemplate () const |
Protected Attributes | |
| QSet< QPoint > | mSelection |
| The set of points that will be filled in. More... | |
| QUndoStack * | mUndoStack |
Protected Attributes inherited from AbstractTileMapTool | |
| TileMapPreviewGraphicsItem *const | mPreviewItem |
| FillTool::FillTool | ( | TileMapPreviewGraphicsItem * | previewItem, |
| QUndoStack * | undoStack | ||
| ) |
|
overridevirtual |
This will immediately fill an area.
| x | The X position of the clicked tile. |
| y | The Y position of the clicked tile. |
Reimplemented from AbstractTileMapTool.

|
overridevirtual |
This will show a preview for the selected area.
Reimplemented from AbstractTileMapTool.

|
protected |
Clears the overlay.


|
overridevirtual |
Deactivates the tool. This is called before the tool stops being used.
Reimplemented from AbstractTool.

|
protected |
Draws an overlay previewing the area that will be filled.


|
slot |

|
overridevirtual |
Called when the mouse is no longer hovering over a cell.
Reimplemented from AbstractTileMapTool.

|
overridevirtual |
Called whenever mTileMap changes. Called in constructor.
| previous | The OLD mTileMap. The new one can be retreived using getTileMap(). |
Reimplemented from AbstractTileMapTool.

|
protected |
Updates mSelection to match the points that will be filled if the given point is selected.


|
protected |
The set of points that will be filled in.
|
protected |