Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
typedef DeclarativeItemBaseStyle | StyleType |
Public Member Functions | |
ZoomLabelOverlay (Item *itemWithLabel, const StyleType *style=itemStyles().get()) | |
virtual QList< Visualization::VisualizationAddOn * > | addOns () override |
int | determineForm () override |
virtual Visualization::InteractionHandler * | handler () const override |
virtual bool | isSensitiveToScale () const override |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
virtual void | setStyle (const Visualization::ItemStyle *itemStyle) override |
const StyleType * | style () const |
Static Public Member Functions | |
static void | addAddOn (Visualization::VisualizationAddOn *addOn) |
static Visualization::InteractionHandler * | defaultClassHandler () |
static void | initializeForms () |
static Visualization::StyleSet< ZoomLabelOverlay > & | itemStyles () |
static bool | removeAddOn (Visualization::VisualizationAddOn *addOn) |
static void | setDefaultClassHandler (Visualization::InteractionHandler *handler) |
Protected Member Functions | |
virtual void | determineChildren () override |
virtual void | updateGeometry (int availableWidth, int availableHeight) override |
Private Member Functions | |
void | adjustPositionOrHide () |
const StaticStyle * | associatedItemIconStyle () const |
QBrush | associatedItemLabelBackground () const |
const QString & | associatedItemText () const |
const TextStyle * | associatedItemTextStyle () const |
qreal | computeScaleToUse () const |
void | postUpdate (int revision) |
Static Private Member Functions | |
static QList< Item * > | itemsThatShouldHaveZoomLabel (Scene *scene) |
static QHash< Item *, ZoomLabelOverlay * > & | itemToOverlay () |
static void | reduceRect (QRect &rectToReduce, const QRect &rectToExclude) |
static void | setItemPositionsAndHideOverlapped (OverlayGroup &group) |
static QList< Visualization::VisualizationAddOn * > & | staticAddOns () |
Private Attributes | |
QBrush | backgroundBrush_ |
Static * | icon_ {} |
const StaticStyle * | iconStyle_ {} |
bool | mayBeHiddenIfChildrenHaveOverlays_ {} |
int | postUpdateRevision_ {} |
Text * | text_ {} |
const TextStyle * | textStyle_ {} |
Static Private Attributes | |
static Visualization::InteractionHandler * | defaultClassHandler_ = nullptr |
static constexpr double | ITEM_MAX_HEIGHT = 500 |
static constexpr double | ITEM_MAX_WIDTH = 500 |
static constexpr double | OVERLAY_MAX_HEIGHT = 40 |
static constexpr double | OVERLAY_MIN_HEIGHT = 15 |
static constexpr double | OVERLAY_MIN_WIDTH = 30 |
static constexpr double | SHOW_OVERLAY_IF_ITEM_TEXT_SMALLER_THAN = 8 |
Friends | |
class | Scene |
Additional Inherited Members | |
Protected Types inherited from Core::Reflect< Base > | |
using | Super = Reflect< Base > |
Visualization::ZoomLabelOverlay::ZoomLabelOverlay | ( | Item * | itemWithLabel, |
const StyleType * | style = itemStyles().get() |
||
) |
|
static |
|
overridevirtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inlinestatic |
|
overrideprotectedvirtual |
|
override |
|
overridevirtual |
|
static |
|
overridevirtual |
|
staticprivate |
|
static |
|
staticprivate |
|
overridevirtual |
|
private |
|
inlinestaticprivate |
|
static |
|
inlinestatic |
|
staticprivate |
|
overridevirtual |
|
staticprivate |
|
inline |
|
overrideprotectedvirtual |
|
friend |
|
private |
|
staticprivate |
|
private |
|
private |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
private |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
private |
|
staticconstexprprivate |
|
private |
|
private |