Some style cleanup to libglabels.

This commit is contained in:
Jim Evins
2015-08-11 17:18:49 -04:00
parent de8ec9b66a
commit 0ad6caeeca
46 changed files with 1294 additions and 380 deletions
+14 -20
View File
@@ -29,33 +29,23 @@ namespace libglabels
class FrameEllipse : public Frame
{
public:
FrameEllipse( double w,
double h,
double waste,
QString id = "0" )
: mW(w), mH(h), mWaste(waste), Frame(id)
{
mPath.addEllipse( 0, 0, mW, mH );
mRotatedPath.addEllipse( 0, 0, mH, mW );
}
FrameEllipse( double w, double h, double waste, QString id = "0" );
FrameEllipse( const FrameEllipse &other )
: mW(other.mW), mH(other.mH), mWaste(other.mWaste), mPath(other.mPath), Frame(other)
{
}
FrameEllipse( const FrameEllipse& other );
Frame *dup() const { return new FrameEllipse( *this ); }
Frame* dup() const;
inline double waste() const { return mWaste; }
double waste() const;
double w() const { return mW; }
double h() const { return mH; }
double w() const;
double h() const;
const QString sizeDescription( const Units *units ) const;
bool isSimilarTo( Frame *other ) const;
const QString sizeDescription( const Units* units ) const;
bool isSimilarTo( Frame* other ) const;
const QPainterPath &path( bool isRotated ) const { return isRotated ? mRotatedPath : mPath; }
const QPainterPath& path( bool isRotated ) const;
QGraphicsItem* createMarginGraphicsItem( double size, const QPen& pen ) const;
@@ -71,4 +61,8 @@ namespace libglabels
}
#include "FrameEllipse.inl"
#endif // libglabels_FrameEllipse_h