Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
MiniMap (Scene *scene, View *parent) | |
void | sceneRectChanged (const QRectF &rect) |
void | setMargin (qreal margin) |
void | updatePosition () |
void | visibleRectChanged () |
Public Member Functions inherited from Visualization::View | |
View (Scene *scene, View *parent=nullptr) | |
virtual | ~View () |
Scene * | scene () |
void | setHiddenItemCategories (Scene::ItemCategories hidden=Scene::NoItemCategory) |
QRectF | visibleRect () |
Static Public Attributes | |
constexpr static qreal | DEFAULT_MARGIN = 2.0 |
Protected Member Functions | |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | resizeEvent (QResizeEvent *event) override |
Private Member Functions | |
void | updateMap () |
Private Attributes | |
QRect | drawnRect |
int | margin_ |
View * | parent_ |
QRectF | visibleRect |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from Visualization::View.
|
overrideprotectedvirtual |
void Visualization::MiniMap::sceneRectChanged | ( | const QRectF & | rect | ) |
|
inline |
|
private |
void Visualization::MiniMap::updatePosition | ( | ) |
void Visualization::MiniMap::visibleRectChanged | ( | ) |
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |