QwuiWebget Class Reference

The base class for all webgets. More...

#include <qwuiwebget.h>

Inheritance diagram for QwuiWebget:
QwuiLabel QwuiMainWebget QwuiScrollArea QwuiStackedWebget

List of all members.

Public Slots

void render (QString &mimeType)

Public Member Functions

 QwuiWebget (QwuiWebget *parent=NULL, const QString &webName=QString::null)
virtual ~QwuiWebget ()
void setWebName (const QString &webName)
QString webName () const
QString webPath () const
void setWebId (const QString &webId)
QString webId () const
void setWebClass (const QString &webClass)
QString webClass () const
virtual QString invoke (const QString &call)
void addStyleSheet (const QString &css)
void addJavaScript (const QString &js)
QSet< QString > styleSheets () const
QSet< QString > javascriptFiles () const
QwuiApplicationwebApp () const
void setLayout (QwuiLayout *l)
QwuiLayoutlayout () const
QIODevice * device () const
void setStyleItem (const QString &item, const QString &value)
QString styleItem (const QString &item) const
void setBorderWidth (int w)
int borderWidth () const
void setBorderColor (const QColor &c)
QColor borderColor () const
void setBackgroundColor (const QColor &c)
QColor backgroundColor () const
void setBorderStyle (Qt::QwuiBorderStyle s)
Qt::QwuiBorderStyle borderStyle () const
void setTextColor (const QColor &c)
QColor textColor () const
void setAlignment (const Qt::Alignment a)
Qt::Alignment alignment () const
void update ()

Protected Member Functions

virtual void render ()
virtual void renderContent ()
virtual bool event (QEvent *e)

Private Member Functions

void setWebApp (QwuiApplication *app)

Private Attributes

QString m_webName
QString m_webId
QString m_webClass
QwuiApplicationm_webApp
QSet< QString > m_jsFiles
QSet< QString > m_cssFiles
QwuiLayoutm_layout
QHash< QString, QString > m_styleItems
Qt::Alignment m_align

Friends

class QwuiApplication
class QwuiLayout
class QwuiWebgetItem
class QwuiTag

Detailed Description

The base class for all webgets.


Constructor & Destructor Documentation

QwuiWebget::QwuiWebget ( QwuiWebget parent = NULL,
const QString &  webName = QString::null 
)
Parameters:
parent the parent webget.
webName the name used to indentify this webget in an URL. This is mandatory.
QwuiWebget::~QwuiWebget (  )  [virtual]

Member Function Documentation

void QwuiWebget::addJavaScript ( const QString &  js  ) 
void QwuiWebget::addStyleSheet ( const QString &  css  ) 
Qt::Alignment QwuiWebget::alignment (  )  const
QColor QwuiWebget::backgroundColor (  )  const
QColor QwuiWebget::borderColor (  )  const
Qt::QwuiBorderStyle QwuiWebget::borderStyle (  )  const
int QwuiWebget::borderWidth (  )  const
QIODevice * QwuiWebget::device (  )  const
bool QwuiWebget::event ( QEvent *  e  )  [protected, virtual]
QString QwuiWebget::invoke ( const QString &  call  )  [virtual]
QSet< QString > QwuiWebget::javascriptFiles (  )  const
QwuiLayout * QwuiWebget::layout (  )  const
void QwuiWebget::render (  )  [protected, virtual]

Reimplemented in QwuiLabel, and QwuiMainWebget.

void QwuiWebget::render ( QString &  mimeType  )  [slot]
void QwuiWebget::renderContent (  )  [protected, virtual]

Reimplemented in QwuiScrollArea.

void QwuiWebget::setAlignment ( const Qt::Alignment  a  ) 
void QwuiWebget::setBackgroundColor ( const QColor &  c  ) 
void QwuiWebget::setBorderColor ( const QColor &  c  ) 
void QwuiWebget::setBorderStyle ( Qt::QwuiBorderStyle  s  ) 
void QwuiWebget::setBorderWidth ( int  w  ) 
void QwuiWebget::setLayout ( QwuiLayout l  ) 
void QwuiWebget::setStyleItem ( const QString &  item,
const QString &  value 
)
void QwuiWebget::setTextColor ( const QColor &  c  ) 
void QwuiWebget::setWebApp ( QwuiApplication app  )  [private]
void QwuiWebget::setWebClass ( const QString &  webClass  ) 
void QwuiWebget::setWebId ( const QString &  webId  ) 
void QwuiWebget::setWebName ( const QString &  webName  ) 

The web name is used to indentify this webget in an URL. This is mandatory.

Parameters:
webName the new web name.
QString QwuiWebget::styleItem ( const QString &  item  )  const
QSet< QString > QwuiWebget::styleSheets (  )  const
QColor QwuiWebget::textColor (  )  const
void QwuiWebget::update (  ) 
QwuiApplication * QwuiWebget::webApp (  )  const
QString QwuiWebget::webClass (  )  const
QString QwuiWebget::webId (  )  const
QString QwuiWebget::webName (  )  const
Returns:
the web name.
QString QwuiWebget::webPath (  )  const

Concatenes the web name of this webget and with its parents names.

Returns:
The path part of the URL identifying this webget.

Friends And Related Function Documentation

friend class QwuiApplication [friend]
friend class QwuiLayout [friend]
friend class QwuiTag [friend]
friend class QwuiWebgetItem [friend]

Member Data Documentation

Qt::Alignment QwuiWebget::m_align [private]
QSet<QString> QwuiWebget::m_cssFiles [private]
QSet<QString> QwuiWebget::m_jsFiles [private]
QHash<QString, QString> QwuiWebget::m_styleItems [private]
QString QwuiWebget::m_webClass [private]
QString QwuiWebget::m_webId [private]
QString QwuiWebget::m_webName [private]

The documentation for this class was generated from the following files:
Generated on Fri Jun 4 01:18:58 2010 for QtWui : Web User Interfaces for Qt by  doxygen 1.6.3