#include <mechanicsgroup.h>
Inheritance diagram for MechanicsGroup:


Public Member Functions | |
| MechanicsGroup (MechanicsDocument *mechanicsDocument, const char *name=0) | |
| ~MechanicsGroup () | |
| MechanicsItemList | toplevelMechItemList () const |
| void | setSelectionMode (uint sm) |
| void | setRaised (bool isRaised) |
| void | removeChildren (Item *item) |
| bool | addItem (Item *item) |
| bool | removeItem (Item *item) |
| virtual bool | addQCanvasItem (QCanvasItem *item) |
| virtual bool | contains (QCanvasItem *item) const |
| virtual uint | count () const |
| virtual void | deleteAllItems () |
| virtual void | mergeGroup (ItemGroup *group) |
| virtual void | removeAllItems () |
| virtual void | removeQCanvasItem (QCanvasItem *item) |
| virtual void | setItems (QCanvasItemList list) |
| virtual void | setSelected (bool sel) |
| MechanicsItemList | extractMechanicsItems () const |
Protected Member Functions | |
| void | updateInfo () |
Protected Attributes | |
| bool | b_isRaised |
Definition at line 24 of file mechanicsgroup.h.
| MechanicsItemList MechanicsGroup::toplevelMechItemList | ( | ) | const |
Returns a list of top-level mechanics items only
Definition at line 125 of file mechanicsgroup.cpp.
References extractMechanicsItems().
Referenced by CMMechItemMove::mouseMoved().
| void MechanicsGroup::setSelectionMode | ( | uint | sm | ) |
Sets the selection mode of all MechanicsItems in the group
Definition at line 97 of file mechanicsgroup.cpp.
References ItemGroup::m_itemList.
Referenced by CMMechItemMove::mousePressedInitial(), and CMMechItemMove::mouseReleased().
| void MechanicsGroup::setRaised | ( | bool | isRaised | ) |
"Raises" (increases the z value of) the selected group of items
Definition at line 84 of file mechanicsgroup.cpp.
References b_isRaised, and ItemGroup::m_itemList.
Referenced by CMMechItemMove::mousePressedInitial(), and CMMechItemMove::mouseReleased().
| void MechanicsGroup::removeChildren | ( | Item * | item | ) |
Removes all the children of the given item from the group
Definition at line 69 of file mechanicsgroup.cpp.
References Item::children(), and removeItem().
Referenced by addItem().
| void MechanicsGroup::setSelected | ( | bool | sel | ) | [virtual] |
Sets the selected state of all items in the group
Implements ItemGroup.
Definition at line 148 of file mechanicsgroup.cpp.
References ItemGroup::m_itemList.
| MechanicsItemList MechanicsGroup::extractMechanicsItems | ( | ) | const |
Extracts the mechanics items from the item list
Definition at line 109 of file mechanicsgroup.cpp.
References ItemGroup::m_itemList.
Referenced by toplevelMechItemList().
1.5.1