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::WebBrowserItem Class Reference
Inheritance diagram for Visualization::WebBrowserItem:
Core::Reflect< Base >

Public Types

typedef ItemStyle StyleType
 

Public Member Functions

 WebBrowserItem (Item *parent, const QString &content, const StyleType *style=itemStyles().get())
 
 WebBrowserItem (Item *parent, const QUrl &url, const StyleType *style=itemStyles().get())
 
 WebBrowserItem (Item *parent, const QUrl &url, QSize size, const StyleType *style=itemStyles().get())
 
virtual ~WebBrowserItem ()
 
void addJavascriptObject (const QString &name, QObject *object)
 
virtual QList< Visualization::VisualizationAddOn * > addOns () override
 
QGraphicsWebView * browser () const
 
virtual QList< Item * > childItems () const override
 
virtual Visualization::InteractionHandlerhandler () const override
 
void setContent (const QString &content)
 
void setHeightResizesWithContent (bool heightResizesWithContent)
 
virtual void setStyle (const Visualization::ItemStyle *itemStyle) override
 
const StyleTypestyle () const
 
void updateSize (QSize size)
 

Static Public Member Functions

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

QGraphicsWebView * browser_ {}
 
QMetaObject::Connection connection_ {}
 
bool heightResizesWithContent_ {}
 
QSize size_
 

Static Private Attributes

static Visualization::InteractionHandlerdefaultClassHandler_ = nullptr
 
static const QSize defaultSize = QSize{400, 300}
 

Additional Inherited Members

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

Member Typedef Documentation

◆ StyleType

Constructor & Destructor Documentation

◆ WebBrowserItem() [1/3]

Visualization::WebBrowserItem::WebBrowserItem ( Item parent,
const QUrl &  url,
const StyleType style = itemStyles().get() 
)

◆ WebBrowserItem() [2/3]

Visualization::WebBrowserItem::WebBrowserItem ( Item parent,
const QUrl &  url,
QSize  size,
const StyleType style = itemStyles().get() 
)

◆ WebBrowserItem() [3/3]

Visualization::WebBrowserItem::WebBrowserItem ( Item parent,
const QString &  content,
const StyleType style = itemStyles().get() 
)

◆ ~WebBrowserItem()

Visualization::WebBrowserItem::~WebBrowserItem ( )
virtual

Member Function Documentation

◆ addAddOn()

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

◆ addJavascriptObject()

void Visualization::WebBrowserItem::addJavascriptObject ( const QString &  name,
QObject *  object 
)

◆ addOns()

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

◆ browser()

QGraphicsWebView * Visualization::WebBrowserItem::browser ( ) const
inline

◆ childItems()

QList< Item * > Visualization::WebBrowserItem::childItems ( ) const
overridevirtual

◆ defaultClassHandler()

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

◆ determineChildren()

void Visualization::WebBrowserItem::determineChildren ( )
overrideprotectedvirtual

◆ handler()

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

◆ itemStyles()

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

◆ removeAddOn()

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

◆ setContent()

void Visualization::WebBrowserItem::setContent ( const QString &  content)

◆ setDefaultClassHandler()

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

◆ setHeightResizesWithContent()

void Visualization::WebBrowserItem::setHeightResizesWithContent ( bool  heightResizesWithContent)

◆ setStyle()

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

◆ staticAddOns()

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

◆ style()

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

◆ updateGeometry()

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

◆ updateSize()

void Visualization::WebBrowserItem::updateSize ( QSize  size)

Member Data Documentation

◆ browser_

QGraphicsWebView* Visualization::WebBrowserItem::browser_ {}
private

◆ connection_

QMetaObject::Connection Visualization::WebBrowserItem::connection_ {}
private

◆ defaultClassHandler_

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

◆ defaultSize

const QSize Visualization::WebBrowserItem::defaultSize = QSize{400, 300}
staticprivate

◆ heightResizesWithContent_

bool Visualization::WebBrowserItem::heightResizesWithContent_ {}
private

◆ size_

QSize Visualization::WebBrowserItem::size_
private