Ideal template for Dymo 30334/11345 for testing.

This commit is contained in:
Jim Evins
2019-01-22 22:14:22 -05:00
parent c2d024f47e
commit 212578c380
2 changed files with 18 additions and 16 deletions
+1 -4
View File
@@ -193,10 +193,6 @@ namespace glabels
void PageRenderer::print( QPrinter* printer ) const void PageRenderer::print( QPrinter* printer ) const
{ {
QSizeF pageSize( mModel->tmplate()->pageWidth().pt(), mModel->tmplate()->pageHeight().pt() ); QSizeF pageSize( mModel->tmplate()->pageWidth().pt(), mModel->tmplate()->pageHeight().pt() );
if ( mModel->tmplate()->pageWidth().pt() > mModel->tmplate()->pageHeight().pt() )
{
printer->setOrientation( QPrinter::Landscape );
}
printer->setPageSize( QPageSize(pageSize, QPageSize::Point) ); printer->setPageSize( QPageSize(pageSize, QPageSize::Point) );
printer->setFullPage( true ); printer->setFullPage( true );
printer->setPageMargins( 0, 0, 0, 0, QPrinter::Point ); printer->setPageMargins( 0, 0, 0, 0, QPrinter::Point );
@@ -207,6 +203,7 @@ namespace glabels
QRectF rectPts = printer->paperRect( QPrinter::Point ); QRectF rectPts = printer->paperRect( QPrinter::Point );
painter.scale( rectPx.width()/rectPts.width(), rectPx.height()/rectPts.height() ); painter.scale( rectPx.width()/rectPts.width(), rectPx.height()/rectPts.height() );
for ( int iPage = 0; iPage < mNPages; iPage++ ) for ( int iPage = 0; iPage < mNPages; iPage++ )
{ {
if ( iPage ) if ( iPage )
+17 -12
View File
@@ -16,6 +16,23 @@
</Template> </Template>
<Template brand="Dymo" part="99010" equiv="30252" /> <Template brand="Dymo" part="99010" equiv="30252" />
<!-- =================================================================== -->
<!-- 57mm x 32mm Return address labels. -->
<!-- =================================================================== -->
<Template brand="Dymo" part="30334" _description="Return address labels"
size="roll" roll_width="61mm" width="57mm" height="32mm" >
<Meta category="label"/>
<Meta category="mail"/>
<Label-rectangle id="0" width="57mm" height="32mm" round="2mm" x_waste="0mm" y_waste="0mm">
<Markup-margin x_size="3mm" y_size="3mm" />
<Layout nx="1" ny="1" x0="0" y0="0" dx="0" dy="0"/>
</Label-rectangle>
</Template>
<Template brand="Dymo" part="11354" equiv="30334" />
<!-- =================================================================== --> <!-- =================================================================== -->
<!-- Postage stamp labels. --> <!-- Postage stamp labels. -->
@@ -66,18 +83,6 @@
</Label-rectangle> </Label-rectangle>
</Template> </Template>
<!-- =================================================================== -->
<!-- Dymo 11354 Return address labels. -->
<!-- =================================================================== -->
<Template brand="Dymo" part="11354" size="Other" width="32mm" height="57mm" _description="Return address labels">
<Meta category="label"/>
<Meta category="mail"/>
<Label-rectangle id="0" width="32mm" height="57mm" round="0pt" x_waste="0pt" y_waste="0pt">
<Markup-margin size="0pt"/>
<Layout nx="1" ny="1" x0="0pt" y0="0pt" dx="32mm" dy="57mm"/>
</Label-rectangle>
</Template>
<!-- =================================================================== --> <!-- =================================================================== -->
<!-- Dymo 11355 Return address labels. --> <!-- Dymo 11355 Return address labels. -->
<!-- =================================================================== --> <!-- =================================================================== -->