Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
MainView (Scene *scene) | |
virtual | ~MainView () |
qreal | scaleFactor () const |
void | setMiniMapSize (int width, int height) |
void | zoom (int scaleLevel) |
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 Member Functions | |
static void | centerAndZoomViewToFitEntireScene () |
Static Public Attributes | |
static const int | MINIMAP_DEFAULT_HEIGHT = 200 |
static const int | MINIMAP_DEFAULT_WIDTH = 200 |
static const int | PNG_SCREENSHOT_SCALE = 8 |
Protected Member Functions | |
virtual bool | event (QEvent *event) override |
virtual void | keyPressEvent (QKeyEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | resizeEvent (QResizeEvent *event) override |
virtual void | scrollContentsBy (int dx, int dy) override |
virtual void | wheelEvent (QWheelEvent *event) override |
Private Member Functions | |
bool | setCursorAndOwnerIgnoreScaleForScreenShot (bool ignore, bool modifyOwner) |
void | updateInfoLabels () |
void | zoomAccordingToScaleLevel () |
Private Attributes | |
QList< QLabel * > | infoLabels_ |
Information text displayed in the top left corner. More... | |
bool | isPanning_ {} |
MiniMap * | miniMap |
QPoint | panStartPos_ {} |
int | scaleLevel_ {} |
bool | showTimers_ {false} |
Static Private Attributes | |
static const bool | ITEM_STRUCTURE_AWARE_ZOOM_ANCHORING = true |
static const int | SCALING_FACTOR = 2 |
Visualization::MainView::MainView | ( | Scene * | scene | ) |
|
virtual |
|
static |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from Visualization::View.
|
overrideprotectedvirtual |
qreal Visualization::MainView::scaleFactor | ( | ) | const |
|
overrideprotectedvirtual |
|
private |
void Visualization::MainView::setMiniMapSize | ( | int | width, |
int | height | ||
) |
|
private |
|
overrideprotectedvirtual |
void Visualization::MainView::zoom | ( | int | scaleLevel | ) |
|
private |
|
private |
Information text displayed in the top left corner.
|
private |
|
staticprivate |
|
private |
|
static |
|
static |
|
private |
|
static |
|
private |
|
staticprivate |
|
private |