|
|
@ -29,10 +29,12 @@ class UBGraphicsScene; |
|
|
|
class UBAbstractWidget; |
|
|
|
class UBAbstractWidget; |
|
|
|
class UBW3CWidgetAPI; |
|
|
|
class UBW3CWidgetAPI; |
|
|
|
class UBW3CWidgetWebStorageAPI; |
|
|
|
class UBW3CWidgetWebStorageAPI; |
|
|
|
|
|
|
|
class UBGraphiscItem; |
|
|
|
|
|
|
|
class UBGraphiscItemDelegate; |
|
|
|
|
|
|
|
|
|
|
|
class UBGraphicsWidgetItem : public UBGraphicsProxyWidget |
|
|
|
class UBGraphicsWidgetItem : public UBGraphicsProxyWidget |
|
|
|
{ |
|
|
|
{ |
|
|
|
Q_OBJECT; |
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
UBGraphicsWidgetItem(QGraphicsItem *parent = 0, int widgetType = 0); |
|
|
|
UBGraphicsWidgetItem(QGraphicsItem *parent = 0, int widgetType = 0); |
|
|
@ -60,11 +62,13 @@ class UBGraphicsWidgetItem : public UBGraphicsProxyWidget |
|
|
|
QMap<QString, QString> datastoreEntries() const; |
|
|
|
QMap<QString, QString> datastoreEntries() const; |
|
|
|
void removeDatastoreEntry(const QString& key); |
|
|
|
void removeDatastoreEntry(const QString& key); |
|
|
|
void removeAllDatastoreEntries(); |
|
|
|
void removeAllDatastoreEntries(); |
|
|
|
|
|
|
|
virtual UBGraphicsItemDelegate* Delegate() const {return mDelegate;} |
|
|
|
|
|
|
|
|
|
|
|
virtual void remove(); |
|
|
|
virtual void remove(); |
|
|
|
void removeScript(); |
|
|
|
void removeScript(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
protected: |
|
|
|
|
|
|
|
|
|
|
|
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event); |
|
|
|
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event); |
|
|
@ -89,7 +93,7 @@ class UBGraphicsWidgetItem : public UBGraphicsProxyWidget |
|
|
|
|
|
|
|
|
|
|
|
class UBGraphicsAppleWidgetItem : public UBGraphicsWidgetItem |
|
|
|
class UBGraphicsAppleWidgetItem : public UBGraphicsWidgetItem |
|
|
|
{ |
|
|
|
{ |
|
|
|
Q_OBJECT; |
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
UBGraphicsAppleWidgetItem(const QUrl& pWidgetUrl, QGraphicsItem *parent = 0); |
|
|
|
UBGraphicsAppleWidgetItem(const QUrl& pWidgetUrl, QGraphicsItem *parent = 0); |
|
|
@ -109,7 +113,7 @@ class UBGraphicsAppleWidgetItem : public UBGraphicsWidgetItem |
|
|
|
|
|
|
|
|
|
|
|
class UBGraphicsW3CWidgetItem : public UBGraphicsWidgetItem |
|
|
|
class UBGraphicsW3CWidgetItem : public UBGraphicsWidgetItem |
|
|
|
{ |
|
|
|
{ |
|
|
|
Q_OBJECT; |
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
UBGraphicsW3CWidgetItem(const QUrl& pWidgetUrl, QGraphicsItem *parent = 0, int widgetType = UBGraphicsItemType::W3CWidgetItemType); |
|
|
|
UBGraphicsW3CWidgetItem(const QUrl& pWidgetUrl, QGraphicsItem *parent = 0, int widgetType = UBGraphicsItemType::W3CWidgetItemType); |
|
|
|