QElectroTech  0.8-dev
Public Member Functions | Public Attributes | List of all members
TitleBlockTemplateCellsSet Class Reference

#include <templatecellsset.h>

Inherits QList< TitleBlockTemplateVisualCell * >.

Collaboration diagram for TitleBlockTemplateCellsSet:
Collaboration graph

Public Member Functions

 TitleBlockTemplateCellsSet (const TitleBlockTemplateView *)
 
virtual ~TitleBlockTemplateCellsSet ()
 
QPainterPath painterPath () const
 
bool isRectangle () const
 
bool allCellsAreSelected () const
 
bool hasExternalSpan () const
 
TitleBlockTemplateVisualCelltopLeftCell () const
 
TitleBlockTemplateVisualCellbottomRightCell () const
 
QRectF mergeAreaRect () const
 
TitleBlockTemplateCellsSet mergeArea (const QRectF &=QRectF()) const
 
QSet< TitleBlockCell * > cells (bool=true) const
 

Public Attributes

const TitleBlockTemplateViewparent_view_
 the view displaying the cells More...
 

Detailed Description

This class represents a set of cells (selected or not) when editing a title block template.

Constructor & Destructor Documentation

◆ TitleBlockTemplateCellsSet()

TitleBlockTemplateCellsSet::TitleBlockTemplateCellsSet ( const TitleBlockTemplateView parent_view)

Constructor

Parameters
parent_viewView this set of cells are rattached to

◆ ~TitleBlockTemplateCellsSet()

TitleBlockTemplateCellsSet::~TitleBlockTemplateCellsSet ( )
virtual

Destructor

Member Function Documentation

◆ allCellsAreSelected()

bool TitleBlockTemplateCellsSet::allCellsAreSelected ( ) const
Returns
true if all cells within this set are selected

◆ bottomRightCell()

TitleBlockTemplateVisualCell * TitleBlockTemplateCellsSet::bottomRightCell ( ) const
Returns
the bottom right cell within this set, or 0 if this set is empty
Here is the caller graph for this function:

◆ cells()

QSet< TitleBlockCell * > TitleBlockTemplateCellsSet::cells ( bool  include_spanned = true) const
Returns
the list of cells rendered by the current selection
Parameters
include_spannedwhether to include spanned cells or not
Here is the caller graph for this function:

◆ hasExternalSpan()

bool TitleBlockTemplateCellsSet::hasExternalSpan ( ) const
Returns
true if this set includes at least one cell which is spanned by a cell not present in this set, false otherwise.
Here is the call graph for this function:

◆ isRectangle()

bool TitleBlockTemplateCellsSet::isRectangle ( ) const
Returns
true if the cells within this set are composing a rectangle shape, false otherwise.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mergeArea()

TitleBlockTemplateCellsSet TitleBlockTemplateCellsSet::mergeArea ( const QRectF &  rect = QRectF()) const
Parameters
rect(Optional) The merge area to be considered; if a null QRectF is provided, this method will use mergeAreaRect().
Returns
the cells contained in the merge area of this cells set
Here is the call graph for this function:

◆ mergeAreaRect()

QRectF TitleBlockTemplateCellsSet::mergeAreaRect ( ) const
Returns
the merge area, i.e. the rectangle delimited by the top left cell and the bottom right cell within this cells set.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ painterPath()

QPainterPath TitleBlockTemplateCellsSet::painterPath ( ) const
Returns
a QPainterPath composed of the rectangles from cells within this set
Here is the caller graph for this function:

◆ topLeftCell()

TitleBlockTemplateVisualCell * TitleBlockTemplateCellsSet::topLeftCell ( ) const
Returns
the top left cell within this set, or 0 if this set is empty
Here is the caller graph for this function:

Member Data Documentation

◆ parent_view_

const TitleBlockTemplateView* TitleBlockTemplateCellsSet::parent_view_

the view displaying the cells


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