20 explicit Sheet(
bool defaultHeader =
true);
24 float getWidth()
const;
25 float getHeight()
const;
27 QRectF getContentArea()
const;
28 QList<Object *> &getObjects();
29 QList<Object *> getObjects()
const;
40 void setWidth(
float width);
41 void setHeight(
float height);
42 void setHeight()
const;
49 void addObject(
Object *obj);
50 void removeObject(
Object *obj);
51 virtual void setParent(
Project *project);
54 QList<Object *>::iterator begin();
55 QList<Object *>::iterator end();
59 float width = 297, height = 210;
62 QList<Object *> objects;
The abstract base class for all objects in a sheet.
Definition: object.h:21
A project is essentially a list of sheets, along with some project properties.
Definition: project.h:16
Base class for entities.
Definition: entity.h:32
int getIndex()
Return the index of the sheet in the project it belongs to.
void setHeader(Header *header, bool destroy=true)
Set this sheet's header.
virtual Project * getParent() const
Override getParent with covariant return type Project.
This class models a sheet of paper.
Definition: sheet.h:16