groups

A group is a simple rectangular area that has a title and contains several items.

New groups can be added by using the API function ‘addGroup(const QString& sGroupName)’ and populated by calling the group’s method ‘addItem()’ or ‘addItems()’.

If a group should be created that is to wrap exisiting items without destroying their layout, an overloaded API function ‘addGroup(const QString& sName, std::vector<CItem*>& vpItems)’ will create a new group and place it around the selected items, forming their bounding box.

If a group is moved, all its contained items will be moved accordingly.

Deletion of a group will result in the deletion of the items.

Ungrouping will delete the group but not its contents.

an icon box at the top border of the group provides the user with a set of tools.

Mockup:

 _______________________
/  name          | u | x \
|                         |
|                         |
\_______________________/

 

API functions:

CGroup* addGroup(const QString& sName, std::vector<CItem*>& vpItems);