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:
+11
-6
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user