Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

virtual Item* ItemDocument::addItem ( const QString &  id,
const QPoint &  p,
bool  newItem 
) [pure virtual]

Will attempt to create an item with the given id at position p. Some item (such as PIC/START) have restrictions, and can only have one instance of themselves on the canvas, and adds the operation to the undo list

Implemented in ICNDocument, and MechanicsDocument.

Referenced by CMDraw::mouseReleased().


Generated by  Doxygen 1.6.0   Back to index