|
mkRPG
|
The MapViewer class provides a widget to display and edit a Map using a MapPainter. More...
#include <mapviewer.h>
Public Types | |
| enum | SelectionMode { PencilSelection, RectangleSelection, RegionSelection } |
| The SelectionMode enum describes the different behaviour the cell selection can have. More... | |
Public Slots | |
| void | updateRequest () |
Signals | |
| void | viewSizeChanged (QSize) |
| void | selectionChanged () |
Public Member Functions | |
| MapViewer (QWidget *parent=0) | |
| void | setMap (Map *m) |
| void | updateMap () |
| MapPainter & | mapPainter () |
| void | setSelectionMode (SelectionMode m) |
| SelectionMode | selectionMode () const |
The MapViewer class provides a widget to display and edit a Map using a MapPainter.
Several selection modes are available. Combined with the ```Ctrl``` and ```Shift``` modifiers, a colossal amount of selection possibilities is offered. See SelectionMode for more information.
The SelectionMode enum describes the different behaviour the cell selection can have.
The selection's behaviour in based on to parameters :
If the ```Ctrl``` modifier is pressed, the past selected cells stay selected otherwise, they are all unselected
If the ```Shift``` modifier is pressed, the selection is inverted.
Three modes of selection exists :
1.7.6.1