The base class for all webgets. More...
#include <qwuiwebget.h>
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 |
QwuiApplication * | webApp () const |
void | setLayout (QwuiLayout *l) |
QwuiLayout * | layout () 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 |
QwuiApplication * | m_webApp |
QSet< QString > | m_jsFiles |
QSet< QString > | m_cssFiles |
QwuiLayout * | m_layout |
QHash< QString, QString > | m_styleItems |
Qt::Alignment | m_align |
Friends | |
class | QwuiApplication |
class | QwuiLayout |
class | QwuiWebgetItem |
class | QwuiTag |
The base class for all webgets.
QwuiWebget::QwuiWebget | ( | QwuiWebget * | parent = NULL , |
|
const QString & | webName = QString::null | |||
) |
parent | the parent webget. | |
webName | the name used to indentify this webget in an URL. This is mandatory. |
QwuiWebget::~QwuiWebget | ( | ) | [virtual] |
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.
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 |
QString QwuiWebget::webPath | ( | ) | const |
Concatenes the web name of this webget and with its parents names.
friend class QwuiApplication [friend] |
friend class QwuiLayout [friend] |
friend class QwuiTag [friend] |
friend class QwuiWebgetItem [friend] |
Qt::Alignment QwuiWebget::m_align [private] |
QSet<QString> QwuiWebget::m_cssFiles [private] |
QSet<QString> QwuiWebget::m_jsFiles [private] |
QwuiLayout* QwuiWebget::m_layout [private] |
QHash<QString, QString> QwuiWebget::m_styleItems [private] |
QwuiApplication* QwuiWebget::m_webApp [private] |
QString QwuiWebget::m_webClass [private] |
QString QwuiWebget::m_webId [private] |
QString QwuiWebget::m_webName [private] |