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
+15 -1
View File
@@ -43,17 +43,22 @@ namespace glabels
public:
Template() = default;
Template( const QString& brand,
const QString& part,
const QString& description,
const QString& paperId,
const Distance& pageWidth,
const Distance& pageHeight,
const Distance& rollWidth = 0,
bool isUserDefined = false );
Template( const Template& other );
Template* dup() const;
~Template();
Template& operator=( const Template& other );
// Generic full page template
static Template* fullPage( const QString& paperId );
@@ -71,9 +76,11 @@ namespace glabels
QString paperId() const;
Distance pageWidth() const;
Distance pageHeight() const;
Distance rollWidth() const;
bool isSizeIso() const;
bool isSizeUs() const;
bool isSizeOther() const;
bool isRoll() const;
bool isUserDefined() const;
@@ -104,8 +111,10 @@ namespace glabels
QString mPaperId;
Distance mPageWidth;
Distance mPageHeight;
Distance mRollWidth;
bool mIsSizeIso;
bool mIsSizeUs;
bool mIsRoll;
bool mIsUserDefined;
@@ -119,7 +128,12 @@ namespace glabels
};
}
}
// Debugging support
QDebug operator<<( QDebug dbg, const glabels::model::Template& tmplate );
#endif // model_Template_h