QElectroTech
0.70
|
#include <templatecellsset.h>
Public Member Functions | |
TitleBlockTemplateCellsSet (const TitleBlockTemplateView *) | |
TitleBlockTemplateCellsSet (const TitleBlockTemplateCellsSet &) | |
virtual | ~TitleBlockTemplateCellsSet () |
QPainterPath | painterPath () const |
bool | isRectangle () const |
bool | allCellsAreSelected () const |
bool | hasExternalSpan () const |
TitleBlockTemplateVisualCell * | topLeftCell () const |
TitleBlockTemplateVisualCell * | bottomRightCell () const |
QRectF | mergeAreaRect () const |
TitleBlockTemplateCellsSet | mergeArea (const QRectF &=QRectF()) const |
QSet< TitleBlockCell * > | cells (bool=true) const |
Public Attributes | |
const TitleBlockTemplateView * | parent_view_ |
the view displaying the cells More... | |
This class represents a set of cells (selected or not) when editing a title block template.
Definition at line 28 of file templatecellsset.h.
TitleBlockTemplateCellsSet::TitleBlockTemplateCellsSet | ( | const TitleBlockTemplateView * | parent_view | ) |
Constructor
parent_view | View this set of cells are rattached to |
Definition at line 27 of file templatecellsset.cpp.
TitleBlockTemplateCellsSet::TitleBlockTemplateCellsSet | ( | const TitleBlockTemplateCellsSet & | copy | ) |
Copy constructor
copy | TitleBlockTemplateCellsSet object to copy |
Definition at line 36 of file templatecellsset.cpp.
|
virtual |
Destructor
Definition at line 45 of file templatecellsset.cpp.
bool TitleBlockTemplateCellsSet::allCellsAreSelected | ( | ) | const |
Definition at line 76 of file templatecellsset.cpp.
TitleBlockTemplateVisualCell * TitleBlockTemplateCellsSet::bottomRightCell | ( | ) | const |
Definition at line 136 of file templatecellsset.cpp.
Referenced by MergeCellsCommand::getBottomRightCell(), and mergeAreaRect().
QSet< TitleBlockCell * > TitleBlockTemplateCellsSet::cells | ( | bool | include_spanned = true | ) | const |
include_spanned | whether to include spanned cells or not |
Definition at line 198 of file templatecellsset.cpp.
Referenced by hasExternalSpan(), mergeArea(), and MergeCellsCommand::MergeCellsCommand().
bool TitleBlockTemplateCellsSet::hasExternalSpan | ( | ) | const |
Definition at line 89 of file templatecellsset.cpp.
References cells().
bool TitleBlockTemplateCellsSet::isRectangle | ( | ) | const |
Definition at line 63 of file templatecellsset.cpp.
References painterPath().
Referenced by MergeCellsCommand::canMerge().
TitleBlockTemplateCellsSet TitleBlockTemplateCellsSet::mergeArea | ( | const QRectF & | rect = QRectF() | ) | const |
rect | (Optional) The merge area to be considered; if a null QRectF is provided, this method will use mergeAreaRect(). |
Definition at line 184 of file templatecellsset.cpp.
References cells(), mergeAreaRect(), and parent_view_.
QRectF TitleBlockTemplateCellsSet::mergeAreaRect | ( | ) | const |
Definition at line 165 of file templatecellsset.cpp.
References bottomRightCell(), parent_view_, and topLeftCell().
Referenced by mergeArea().
QPainterPath TitleBlockTemplateCellsSet::painterPath | ( | ) | const |
Definition at line 51 of file templatecellsset.cpp.
Referenced by isRectangle().
TitleBlockTemplateVisualCell * TitleBlockTemplateCellsSet::topLeftCell | ( | ) | const |
Definition at line 105 of file templatecellsset.cpp.
Referenced by MergeCellsCommand::canMerge(), mergeAreaRect(), MergeCellsCommand::MergeCellsCommand(), and TitleBlockTemplateView::paste().
const TitleBlockTemplateView* TitleBlockTemplateCellsSet::parent_view_ |
the view displaying the cells
Definition at line 49 of file templatecellsset.h.
Referenced by mergeArea(), and mergeAreaRect().