Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
Visualization::MessageOverlay Class Reference
Inheritance diagram for Visualization::MessageOverlay:
Core::Reflect< Base >

Public Types

typedef MessageOverlayStyle StyleType
 
using SyncFunction = std::function< QString(MessageOverlay *self)>
 

Public Member Functions

 MessageOverlay (Item *associatedItem, const StyleType *style=itemStyles().get(), bool ignoresScaling=false)
 
 MessageOverlay (Item *associatedItem, SyncFunction syncFunction, const StyleType *style=itemStyles().get(), bool ignoresScaling=false)
 
virtual QList< Visualization::VisualizationAddOn * > addOns () override
 
Item *& content ()
 
virtual Visualization::InteractionHandlerhandler () const override
 
virtual void setStyle (const Visualization::ItemStyle *itemStyle) override
 
const StyleTypestyle () const
 

Static Public Member Functions

static void addAddOn (Visualization::VisualizationAddOn *addOn)
 
static Visualization::InteractionHandlerdefaultClassHandler ()
 
static void initializeForms ()
 
static Visualization::StyleSet< MessageOverlay > & 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
 

Static Private Member Functions

static QList< Visualization::VisualizationAddOn * > & staticAddOns ()
 

Private Attributes

StaticcloseIcon_ {}
 
Itemcontent_ {}
 
bool ignoresScaling_ {}
 
Textmessage_ {}
 
StaticmessageIcon_ {}
 
bool positionSet_ {}
 
SyncFunction syncFunction_ {}
 

Static Private Attributes

static Visualization::InteractionHandlerdefaultClassHandler_ = nullptr
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Member Typedef Documentation

◆ StyleType

◆ SyncFunction

using Visualization::MessageOverlay::SyncFunction = std::function<QString (MessageOverlay* self)>

Constructor & Destructor Documentation

◆ MessageOverlay() [1/2]

Visualization::MessageOverlay::MessageOverlay ( Item associatedItem,
const StyleType style = itemStyles().get(),
bool  ignoresScaling = false 
)

◆ MessageOverlay() [2/2]

Visualization::MessageOverlay::MessageOverlay ( Item associatedItem,
SyncFunction  syncFunction,
const StyleType style = itemStyles().get(),
bool  ignoresScaling = false 
)

Member Function Documentation

◆ addAddOn()

void Visualization::MessageOverlay::addAddOn ( Visualization::VisualizationAddOn addOn)
static

◆ addOns()

QList< Visualization::VisualizationAddOn * > Visualization::MessageOverlay::addOns ( )
overridevirtual

◆ content()

Item *& Visualization::MessageOverlay::content ( )
inline

◆ defaultClassHandler()

static Visualization::InteractionHandler* Visualization::MessageOverlay::defaultClassHandler ( )
inlinestatic

◆ determineChildren()

void Visualization::MessageOverlay::determineChildren ( )
overrideprotectedvirtual

◆ handler()

Visualization::InteractionHandler * Visualization::MessageOverlay::handler ( ) const
overridevirtual

◆ initializeForms()

void Visualization::MessageOverlay::initializeForms ( )
static

◆ itemStyles()

Visualization::StyleSet< MessageOverlay > & Visualization::MessageOverlay::itemStyles ( )
static

◆ removeAddOn()

bool Visualization::MessageOverlay::removeAddOn ( Visualization::VisualizationAddOn addOn)
static

◆ setDefaultClassHandler()

static void Visualization::MessageOverlay::setDefaultClassHandler ( Visualization::InteractionHandler handler)
inlinestatic

◆ setStyle()

void Visualization::MessageOverlay::setStyle ( const Visualization::ItemStyle itemStyle)
overridevirtual

◆ staticAddOns()

QList< Visualization::VisualizationAddOn * > & Visualization::MessageOverlay::staticAddOns ( )
staticprivate

◆ style()

const StyleType* Visualization::MessageOverlay::style ( ) const
inline

◆ updateGeometry()

void Visualization::MessageOverlay::updateGeometry ( int  availableWidth,
int  availableHeight 
)
overrideprotectedvirtual

Member Data Documentation

◆ closeIcon_

Static* Visualization::MessageOverlay::closeIcon_ {}
private

◆ content_

Item* Visualization::MessageOverlay::content_ {}
private

◆ defaultClassHandler_

Visualization::InteractionHandler * Visualization::MessageOverlay::defaultClassHandler_ = nullptr
staticprivate

◆ ignoresScaling_

bool Visualization::MessageOverlay::ignoresScaling_ {}
private

◆ message_

Text* Visualization::MessageOverlay::message_ {}
private

◆ messageIcon_

Static* Visualization::MessageOverlay::messageIcon_ {}
private

◆ positionSet_

bool Visualization::MessageOverlay::positionSet_ {}
private

◆ syncFunction_

SyncFunction Visualization::MessageOverlay::syncFunction_ {}
private