QElectroTech  0.70
Public Member Functions | Public Attributes | List of all members
TitleBlockDimension Struct Reference

#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...
 

Detailed Description

This struct is a simple container associating a length with its type.

See also
TitleBlockColumnLength

Definition at line 26 of file dimension.h.

Constructor & Destructor Documentation

◆ TitleBlockDimension()

TitleBlockDimension::TitleBlockDimension ( int  v,
QET::TitleBlockColumnLength  t = QET::Absolute 
)

Constructor

Parameters
vNumeric value for this dimension
tKind of length, determining how to interpret the numeric value

Definition at line 25 of file dimension.cpp.

Member Function Documentation

◆ toShortString()

QString TitleBlockDimension::toShortString ( ) const
Returns
a string describing this dimension in a short format.

Definition at line 49 of file dimension.cpp.

References QET::Absolute, QET::RelativeToRemainingLength, QET::RelativeToTotalLength, type, and value.

Referenced by TitleBlockTemplate::saveGrid().

◆ toString()

QString TitleBlockDimension::toString ( ) const
Returns
a string describing this dimension in a human-readable format.

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().

Member Data Documentation

◆ type

QET::TitleBlockColumnLength TitleBlockDimension::type

◆ value

int TitleBlockDimension::value

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