Schim
Public Member Functions | Static Public Member Functions | List of all members
Header Class Reference

Class representing a header for a sheet. More...

#include <header.h>

Inheritance diagram for Header:
[legend]
Collaboration diagram for Header:
[legend]

Public Member Functions

 Header ()=default
 Default constructor.
 
 Header (CompositeObject &&obj)
 Move constructor. More...
 
 Header (const Header &obj)
 Copy constructor.
 
- Public Member Functions inherited from CompositeObject
 CompositeObject (const CompositeObject &obj)
 Copy constructor.
 
QPointF getPos () const override
 Return the position of the object in the sheet.
 
void setPos (const QPointF &pos) override
 Set the position of the object in the sheet.
 
virtual void remove (Object *obj)
 Remove obj from the object. More...
 
- Public Member Functions inherited from Object
virtual ~Object ()=default
 This destructor does nothing. More...
 
- Public Member Functions inherited from Entity
 Entity (Entity *parent=nullptr)
 Construct an empty entity with an optional parent.
 
virtual ~Entity ()=default
 Default destructor that makes this class virtual.
 
VariableSet getVariables () const
 Return the variables defined for this entity. More...
 

Static Public Member Functions

static Headerabsorb (CompositeObject *obj)
 Steal everything from obj and delete it. More...
 

Additional Inherited Members

- Protected Attributes inherited from Entity
QString name
 The name of the entity.
 
QString fileName
 The name of the source file where the entity is defined.
 
VariableSet variables
 The variables associated with this entity.
 
Entityparent {}
 The parent of this entity.
 

Detailed Description

Class representing a header for a sheet.

It is a specialization of CompositeObject and its content is user-configurable. For example, the user can enable/disable column and row markers and set the pattern that generates them.

Constructor & Destructor Documentation

◆ Header()

Header::Header ( CompositeObject &&  obj)
explicit

Move constructor.

Take all children from obj. Consequently, obj is emptied and this object takes ownership of its children.

Member Function Documentation

◆ absorb()

static Header* Header::absorb ( CompositeObject obj)
static

Steal everything from obj and delete it.

This creates a new component containing all constituents from obj, and then destroys obj.


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