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
+13 -13
View File
@@ -29,19 +29,6 @@
namespace libglabels
{
bool FrameRound::isSimilar( Frame *b ) const
{
if ( FrameRound *bRound = dynamic_cast<FrameRound*>(b) )
{
if ( fabs( mR - bRound->mR ) <= Constants::EPSILON )
{
return true;
}
}
return false;
}
const QString &FrameRound::sizeDescription( Units *units )
{
if ( units->id() == "in" )
@@ -64,5 +51,18 @@ namespace libglabels
return mSizeDescription;
}
bool FrameRound::isSimilarTo( Frame *other ) const
{
if ( FrameRound *otherRound = dynamic_cast<FrameRound*>(other) )
{
if ( fabs( mR - otherRound->mR ) <= Constants::EPSILON )
{
return true;
}
}
return false;
}
}