QElectroTech
0.70
|
#include <dimension.h>
Public Member Functions | |
TitleBlockDimension (int, QET::TitleBlockColumnLength=QET::Absolute) | |
QString | toString () const |
QString | toShortString () const |
Public Attributes | |
QET::TitleBlockColumnLength | type |
Kind of length. More... | |
int | value |
Numeric value. More... | |
This struct is a simple container associating a length with its type.
Definition at line 26 of file dimension.h.
TitleBlockDimension::TitleBlockDimension | ( | int | v, |
QET::TitleBlockColumnLength | t = QET::Absolute |
||
) |
Constructor
v | Numeric value for this dimension |
t | Kind of length, determining how to interpret the numeric value |
Definition at line 25 of file dimension.cpp.
QString TitleBlockDimension::toShortString | ( | ) | const |
Definition at line 49 of file dimension.cpp.
References QET::Absolute, QET::RelativeToRemainingLength, QET::RelativeToTotalLength, type, and value.
Referenced by TitleBlockTemplate::saveGrid().
QString TitleBlockDimension::toString | ( | ) | const |
Definition at line 34 of file dimension.cpp.
References QET::Absolute, QET::RelativeToRemainingLength, QET::RelativeToTotalLength, QET::Icons::tr, type, and value.
Referenced by TitleBlockTemplateView::addCells(), and TitleBlockTemplateView::updateColumnsHelperCells().
QET::TitleBlockColumnLength TitleBlockDimension::type |
Kind of length.
Definition at line 33 of file dimension.h.
Referenced by TitleBlockTemplateView::addCells(), TitleBlockTemplate::columnsWidth(), TitleBlockDimensionWidget::setValue(), toShortString(), toString(), and TitleBlockTemplateView::updateColumnsHelperCells().
int TitleBlockDimension::value |
Numeric value.
Definition at line 34 of file dimension.h.
Referenced by ModifyTemplateGridCommand::apply(), TitleBlockTemplateView::changePreviewWidth(), TitleBlockTemplate::columnsWidth(), TitleBlockTemplate::setRowDimension(), TitleBlockDimensionWidget::setValue(), toShortString(), and toString().