Script
Public Slots | List of all members
Drawing Class Reference

provide an interface for iterating and manipulating the collection of drawings of an element More...

#include <elementinterface.h>

Inheritance diagram for Drawing:
Inheritance graph
[legend]
Collaboration diagram for Drawing:
Collaboration graph
[legend]

Public Slots

int numberOf (int elementId)
 return the # of drawings in the element.
 
QString name (int elementId, int drawingIndex)
 return the drawing id.
 
bool isExists (int elementId, QString timing)
 return true if the given drawing exists in this element.
 
bool create (int elementId, QString timing, bool fileExists)
 create a drawing.
 
QString filename (int elementId, QString drawingName)
 return the 'load' filename of this drawing. This filename may be in the temp folder or project folder. Before the project is actually saved, this is where the drawing must reside to be found by the application.
 

Detailed Description

provide an interface for iterating and manipulating the collection of drawings of an element

Member Function Documentation

bool Drawing::create ( int  elementId,
QString  timing,
bool  fileExists 
)
slot

create a drawing.

Parameters
elementId: the unique id of the element
timingthe proposed drawing name.
fileExists: not used
Returns
true if new drawing created. false if not.
QString Drawing::filename ( int  elementId,
QString  drawingName 
)
slot

return the 'load' filename of this drawing. This filename may be in the temp folder or project folder. Before the project is actually saved, this is where the drawing must reside to be found by the application.

Parameters
elementId,:the unique id of the element
drawingName,:the drawing name
bool Drawing::isExists ( int  elementId,
QString  timing 
)
slot

return true if the given drawing exists in this element.

Parameters
elementId,:the unique id of the element
timing,:the drawing name
QString Drawing::name ( int  elementId,
int  drawingIndex 
)
slot

return the drawing id.

Parameters
elementId,:the unique id of the element
drawingIndex,:
int Drawing::numberOf ( int  elementId)
slot

return the # of drawings in the element.

Parameters
elementId,:the unique id of the element

The documentation for this class was generated from the following file: