Walls And Holes  1
AbstractTileSelectionTool Class Reference

#include <abstracttileselectiontool.h>

Inheritance diagram for AbstractTileSelectionTool:
Collaboration diagram for AbstractTileSelectionTool:

Public Member Functions

 AbstractTileSelectionTool (PropertyBrowser *propertyBrowser, TileMapPreviewGraphicsItem *previewItem)
 
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 toolTileMapChanged (TileMap *previous=nullptr)
 Called whenever mTileMap changes. Called in constructor. More...
 
virtual void cellActivated (int, int, QMouseEvent *)
 Called when the left mouse button is down over a new cell. More...
 
virtual void cellClicked (int, int, QMouseEvent *)
 Called the first time the left mouse button is pressed over a cell. More...
 
virtual void cellReleased (int, int, QMouseEvent *)
 Called when the left mouse button is released over a cell. More...
 
virtual void cellHovered (int, int, QMouseEvent *)
 Called when the mouse hovers over a new cell. More...
 
virtual void mouseExitedMap (QMouseEvent *)
 Called when the mouse is no longer hovering 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 *)
 

Static Public Member Functions

static const QRegion & selection ()
 

Protected Member Functions

void activateSelection ()
 activateSelection More...
 
void drawPreview (QRegion previewRegion)
 
- Protected Member Functions inherited from AbstractTileMapTool
TileMapgetTileMap () const
 
TileTemplategetTileTemplate () const
 

Protected Attributes

PropertyBrowsermPropertyBrowser
 
- Protected Attributes inherited from AbstractTileMapTool
TileMapPreviewGraphicsItem *const mPreviewItem
 

Static Protected Attributes

static QRegion mSelection
 

Constructor & Destructor Documentation

◆ AbstractTileSelectionTool()

AbstractTileSelectionTool::AbstractTileSelectionTool ( PropertyBrowser propertyBrowser,
TileMapPreviewGraphicsItem previewItem 
)

Member Function Documentation

◆ activateSelection()

void AbstractTileSelectionTool::activateSelection ( )
protected

activateSelection

After updating mSelection, calling this will perform all expected actions, such as updating the graphics and property browser.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deactivate()

void AbstractTileSelectionTool::deactivate ( )
overridevirtual

Deactivates the tool. This is called before the tool stops being used.

Reimplemented from AbstractTool.

Here is the call graph for this function:

◆ drawPreview()

void AbstractTileSelectionTool::drawPreview ( QRegion  previewRegion)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ selection()

static const QRegion& AbstractTileSelectionTool::selection ( )
inlinestatic
Here is the caller graph for this function:

Member Data Documentation

◆ mPropertyBrowser

PropertyBrowser* AbstractTileSelectionTool::mPropertyBrowser
protected

◆ mSelection

QRegion AbstractTileSelectionTool::mSelection
staticprotected

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