Added initial implementation of Template.

This commit is contained in:
Jim Evins
2013-11-02 17:10:49 -04:00
parent be55bebc50
commit 262932a4c7
16 changed files with 416 additions and 60 deletions
+14 -14
View File
@@ -29,20 +29,6 @@
namespace libglabels
{
bool FrameEllipse::isSimilar( Frame *b ) const
{
if ( FrameEllipse *bEllipse = dynamic_cast<FrameEllipse*>(b) )
{
if ( (fabs( mW - bEllipse->mW ) <= Constants::EPSILON) &&
(fabs( mH - bEllipse->mH ) <= Constants::EPSILON) )
{
return true;
}
}
return false;
}
const QString &FrameEllipse::sizeDescription( Units *units )
{
if ( units->id() == "in" )
@@ -64,5 +50,19 @@ namespace libglabels
}
}
bool FrameEllipse::isSimilarTo( Frame *other ) const
{
if ( FrameEllipse *otherEllipse = dynamic_cast<FrameEllipse*>(other) )
{
if ( (fabs( mW - otherEllipse->mW ) <= Constants::EPSILON) &&
(fabs( mH - otherEllipse->mH ) <= Constants::EPSILON) )
{
return true;
}
}
return false;
}
}