|
|
void | sceneRealChanged () |
| |
|
void | loadingProgress (const int progress, const QString &loadcomment="", const QString &loadinfo="Loading Project") |
| |
|
|
| ItemScene (QSharedPointer< ProjectGui > projectGui, QObject *parent=0) |
| |
| bool | loadFromXml (QDomElement &dom) |
| | Load the current scene from the passed xml element. More...
|
| |
| bool | saveToXml (QDomDocument &document, QDomElement &xml) const |
| | Save the current scene with all items and their config to xml. More...
|
| |
|
void | resetBounding () |
| | Resets the bounding rect. Call this method after resizing the view. The sceneRect will be shrinked if possible.
|
| |
|
void | paste () |
| | pastes the items in the clipboard to the mouse cursor position on the scene
|
| |
| QList< QGraphicsItem * > | copyableItems () const |
| | Returns all currently selected and copyable items. More...
|
| |
|
void | cut () |
| | copies the selected items & connectors to clipboard and removes them from the scene
|
| |
|
void | copy () const |
| | copies the selected items & connections to clipboard
|
| |
|
void | createTemplate () |
| | Creates a template using the currently selected items.
|
| |
| void | copy (QList< QGraphicsItem *> itms) const |
| | Copy the passed items to clipboard. More...
|
| |
| QSharedPointer< ProjectGui > | projectGui () const |
| |
| QPixmap | createPixmap (QDomDocument const &itemsDocument) |
| |
| QPixmap | createPixmap (QList< QGraphicsItem *> items, const QRectF &bounding) const |
| |
|
| static QList< QGraphicsItem * > | copyableItems (QList< QGraphicsItem *> itms) |
| | Returns the items which are copyable (removing connectors where only one end is in the list) More...
|
| |
|
|
void | mousePressEvent (QGraphicsSceneMouseEvent *mouseEvent) |
| |
|
void | mouseMoveEvent (QGraphicsSceneMouseEvent *mouseEvent) |
| |
|
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *mouseEvent) |
| |
|
void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
| |
|
void | keyPressEvent (QKeyEvent *event) |
| |
|
void | dragEnterEvent (QGraphicsSceneDragDropEvent *event) |
| |
|
void | dropEvent (QGraphicsSceneDragDropEvent *event) |
| |
|
void | dragMoveEvent (QGraphicsSceneDragDropEvent *event) |
| |
◆ copy()
| void ItemScene::copy |
( |
QList< QGraphicsItem *> |
itms | ) |
const |
Copy the passed items to clipboard.
- Parameters
-
| itms | the items, connectors & notes to copy to clipboard |
◆ copyableItems() [1/2]
| QList< QGraphicsItem * > ItemScene::copyableItems |
( |
| ) |
const |
Returns all currently selected and copyable items.
- Returns
- A list containing all the copyable items
◆ copyableItems() [2/2]
| QList< QGraphicsItem * > ItemScene::copyableItems |
( |
QList< QGraphicsItem *> |
itms | ) |
|
|
static |
Returns the items which are copyable (removing connectors where only one end is in the list)
- Parameters
-
| itms | The items to search for copyable items |
- Returns
- A list containing all the copyable items
◆ createPixmap() [1/2]
| QPixmap ItemScene::createPixmap |
( |
QDomDocument const & |
itemsDocument | ) |
|
- Parameters
-
| itemsDocument | A XML-representation of the items to render |
- Returns
- A pixmap representation of the given items
◆ createPixmap() [2/2]
| QPixmap ItemScene::createPixmap |
( |
QList< QGraphicsItem *> |
items, |
|
|
const QRectF & |
bounding |
|
) |
| const |
- Parameters
-
| items | A list of items to render |
| bounding | The bounding box of the given items |
- Returns
- A pixmap representation of the given items
◆ loadFromXml()
| bool ItemScene::loadFromXml |
( |
QDomElement & |
dom | ) |
|
Load the current scene from the passed xml element.
- Parameters
-
| dom | the element to load the scene from |
- Returns
- true on success
◆ projectGui()
| QSharedPointer< ProjectGui > ItemScene::projectGui |
( |
| ) |
const |
- Returns
- Returns the associated project gui, which renders/owns this view/scene
◆ saveToXml()
| bool ItemScene::saveToXml |
( |
QDomDocument & |
document, |
|
|
QDomElement & |
xml |
|
) |
| const |
Save the current scene with all items and their config to xml.
- Parameters
-
| document | the document which can be used to create elements on it |
| xml | the DomElement to save the scene to |
- Returns
- true on success
The documentation for this class was generated from the following files:
- itemframework/itemframework/src/item/item_scene.h
- itemframework/itemframework/moc/moc_item_scene.cpp
- itemframework/itemframework/src/item/item_scene.cpp