Implement continuous tape labels and path-based label shapes.

- Added "roll" as a special paper id
- Added roll_width attribute to draw tape in previews
- Updated Brother QL-500/* label templates
- Preserve print dialog settings between print jobs.
- Added path based labels for arbitrary shaped labels.
- Fleshed out implementation of continuous labels.
This commit is contained in:
Jim Evins
2018-08-11 14:05:26 -04:00
parent b9a1f2e150
commit 467ca9fc62
135 changed files with 41934 additions and 13681 deletions
+11 -6
View File
@@ -37,7 +37,7 @@ namespace glabels
public:
virtual Markup* dup() const = 0;
const QPainterPath& path() const;
virtual QPainterPath path( const Frame* frame ) const;
protected:
QPainterPath mPath;
@@ -47,16 +47,21 @@ namespace glabels
class MarkupMargin : public Markup
{
public:
MarkupMargin( const Frame* frame,
const Distance& size );
MarkupMargin( const Distance& size );
Distance size() const;
MarkupMargin( const Distance& xSize,
const Distance& ySize );
QPainterPath path( const Frame* frame ) const override;
Distance xSize() const;
Distance ySize() const;
Markup* dup() const override;
private:
const Frame* mFrame;
Distance mSize;
Distance mXSize;
Distance mYSize;
};