@ -22,11 +22,11 @@
# include <unistd.h>
# include <unistd.h>
// QT includes
// QT includes
# include < tq clipboard.h>
# include < clipboard.h>
# include <tqcursor.h>
# include <tqcursor.h>
# include <tqgroupbox.h>
# include <tqgroupbox.h>
# include <tqhbox.h>
# include <tqhbox.h>
# include < tq layout.h>
# include < layout.h>
# include <tqpainter.h>
# include <tqpainter.h>
# include <tqpaintdevicemetrics.h>
# include <tqpaintdevicemetrics.h>
# include <tqprogressdialog.h>
# include <tqprogressdialog.h>
@ -91,14 +91,14 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
TQDomElement e = n . toElement ( ) ; // try to convert the node to an element.
TQDomElement e = n . toElement ( ) ; // try to convert the node to an element.
if ( ! e . isNull ( ) )
if ( ! e . isNull ( ) )
if ( e . tagName ( ) = = " id " ) {
if ( e . tagName ( ) = = " id " ) {
result + = TQString ( " {D%1, " ) . tq arg( convZeros ( ( e . attribute ( " height " ) . toInt ( ) + e . attribute ( " gap_v " ) . toInt ( ) ) * 10 , 4 ) ) ; // Altura + Gap vertical
result + = TQString ( " {D%1, " ) . arg( convZeros ( ( e . attribute ( " height " ) . toInt ( ) + e . attribute ( " gap_v " ) . toInt ( ) ) * 10 , 4 ) ) ; // Altura + Gap vertical
result + = TQString ( " %1, " ) . tq arg( convZeros ( e . attribute ( " width " ) . toInt ( ) * 10 , 4 ) ) ; // Anchura
result + = TQString ( " %1, " ) . arg( convZeros ( e . attribute ( " width " ) . toInt ( ) * 10 , 4 ) ) ; // Anchura
result + = TQString ( " %1|} \n " ) . tq arg( convZeros ( e . attribute ( " height " ) . toInt ( ) * 10 , 4 ) ) ; // Altura
result + = TQString ( " %1|} \n " ) . arg( convZeros ( e . attribute ( " height " ) . toInt ( ) * 10 , 4 ) ) ; // Altura
result + = TQString ( " {C|} \n " ) ; // Clear buffer
result + = TQString ( " {C|} \n " ) ; // Clear buffer
result + = TQString ( " {U2;0130|} \n " ) ; // BackFeed
result + = TQString ( " {U2;0130|} \n " ) ; // BackFeed
result + = TQString ( " {D%1, " ) . tq arg( convZeros ( ( e . attribute ( " height " ) . toInt ( ) + e . attribute ( " gap_v " ) . toInt ( ) ) * 10 , 4 ) ) ; // Altura + Gap vertical
result + = TQString ( " {D%1, " ) . arg( convZeros ( ( e . attribute ( " height " ) . toInt ( ) + e . attribute ( " gap_v " ) . toInt ( ) ) * 10 , 4 ) ) ; // Altura + Gap vertical
result + = TQString ( " %1, " ) . tq arg( convZeros ( e . attribute ( " width " ) . toInt ( ) * 10 , 4 ) ) ; // Anchura
result + = TQString ( " %1, " ) . arg( convZeros ( e . attribute ( " width " ) . toInt ( ) * 10 , 4 ) ) ; // Anchura
result + = TQString ( " %1|} \n " ) . tq arg( convZeros ( e . attribute ( " height " ) . toInt ( ) * 10 , 4 ) ) ; // Altura
result + = TQString ( " %1|} \n " ) . arg( convZeros ( e . attribute ( " height " ) . toInt ( ) * 10 , 4 ) ) ; // Altura
result + = TQString ( " {AX;+000,+000,+00|} \n " ) ; // Position Fine adjust
result + = TQString ( " {AX;+000,+000,+00|} \n " ) ; // Position Fine adjust
result + = TQString ( " {AY;+04,1|} \n " ) ; // Print density fine adjust
result + = TQString ( " {AY;+04,1|} \n " ) ; // Print density fine adjust
@ -130,20 +130,20 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
if ( e . tagName ( ) = = " value " ) data = e . text ( ) ;
if ( e . tagName ( ) = = " value " ) data = e . text ( ) ;
n = n . nextSibling ( ) ;
n = n . nextSibling ( ) ;
}
}
result + = TQString ( " {RB%1; " ) . tq arg( convZeros ( countBar , 2 ) ) ; // count de RB
result + = TQString ( " {RB%1; " ) . arg( convZeros ( countBar , 2 ) ) ; // count de RB
result + = TQString ( " %1|} \n " ) . tq arg( data ) ; // Data + fin
result + = TQString ( " %1|} \n " ) . arg( data ) ; // Data + fin
countBar + + ;
countBar + + ;
} else if ( e . tagName ( ) = = " textfield " ) {
} else if ( e . tagName ( ) = = " textfield " ) {
result + = TQString ( " {PC%1; " ) . tq arg( convZeros ( countText , 3 ) ) ; // count
result + = TQString ( " {PC%1; " ) . arg( convZeros ( countText , 3 ) ) ; // count
result + = TQString ( " %1, " ) . tq arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . tq arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . tq arg( " 10 " ) ;
result + = TQString ( " %1, " ) . arg( " 10 " ) ;
result + = TQString ( " %1, " ) . tq arg( " 15 " ) ;
result + = TQString ( " %1, " ) . arg( " 15 " ) ;
result + = TQString ( " %1, " ) . tq arg( " J " ) ;
result + = TQString ( " %1, " ) . arg( " J " ) ;
result + = TQString ( " %1, " ) . tq arg( " 00 " ) ;
result + = TQString ( " %1, " ) . arg( " 00 " ) ;
result + = TQString ( " %1|} \n " ) . tq arg( " B " ) ;
result + = TQString ( " %1|} \n " ) . arg( " B " ) ;
TQString etext ;
TQString etext ;
TQDomNode n = e . firstChild ( ) ;
TQDomNode n = e . firstChild ( ) ;
@ -155,9 +155,9 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
n = n . nextSibling ( ) ;
n = n . nextSibling ( ) ;
}
}
result + = TQString ( " {RC%1; " ) . tq arg( convZeros ( countText , 3 ) ) ; // count de RB
result + = TQString ( " {RC%1; " ) . arg( convZeros ( countText , 3 ) ) ; // count de RB
etext = getData ( etext , art , group , id ) ;
etext = getData ( etext , art , group , id ) ;
result + = TQString ( " %1|} \n " ) . tq arg( etext ) ; // Data + fin
result + = TQString ( " %1|} \n " ) . arg( etext ) ; // Data + fin
countText + + ;
countText + + ;
}
}
else if ( e . tagName ( ) = = " rect " ) {
else if ( e . tagName ( ) = = " rect " ) {
@ -165,40 +165,40 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
if ( e . attribute ( " colorr " ) = = " 0 " and e . attribute ( " colorg " ) = = " 0 " and e . attribute ( " colorb " ) = = " 0 " ) {
if ( e . attribute ( " colorr " ) = = " 0 " and e . attribute ( " colorg " ) = = " 0 " and e . attribute ( " colorb " ) = = " 0 " ) {
result + = TQString ( " {XR; " ) ; // XR
result + = TQString ( " {XR; " ) ; // XR
result + = TQString ( " %1, " ) . tq arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . tq arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . tq arg( convZeros ( posConv ( e . attribute ( " x_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " width_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . arg( convZeros ( posConv ( e . attribute ( " x_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " width_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . tq arg( convZeros ( posConv ( e . attribute ( " y_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " height_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . arg( convZeros ( posConv ( e . attribute ( " y_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " height_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // Y position
result + = TQString ( " A " ) ; // Type of Clear
result + = TQString ( " A " ) ; // Type of Clear
result + = TQString ( " |} \n " ) ; // FIN
result + = TQString ( " |} \n " ) ; // FIN
result + = TQString ( " {XR; " ) ; // XR
result + = TQString ( " {XR; " ) ; // XR
result + = TQString ( " %1, " ) . tq arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . tq arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . tq arg( convZeros ( posConv ( e . attribute ( " x_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " width_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . arg( convZeros ( posConv ( e . attribute ( " x_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " width_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . tq arg( convZeros ( posConv ( e . attribute ( " y_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " height_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . arg( convZeros ( posConv ( e . attribute ( " y_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " height_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // Y position
result + = TQString ( " B " ) ; // Type of Clear
result + = TQString ( " B " ) ; // Type of Clear
result + = TQString ( " |} \n " ) ; // FIN
result + = TQString ( " |} \n " ) ; // FIN
}
}
else {
else {
result + = TQString ( " {LC; " ) ; // LC
result + = TQString ( " {LC; " ) ; // LC
result + = TQString ( " %1, " ) . tq arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . tq arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . tq arg( convZeros ( posConv ( e . attribute ( " x_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " width_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . arg( convZeros ( posConv ( e . attribute ( " x_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " width_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . tq arg( convZeros ( posConv ( e . attribute ( " y_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " height_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . arg( convZeros ( posConv ( e . attribute ( " y_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " height_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // Y position
result + = TQString ( " 1, " ) ; // Type of line 0=line 1=Rectangulo 2=Jagged line 3=Rectangle with jagged lines
result + = TQString ( " 1, " ) ; // Type of line 0=line 1=Rectangulo 2=Jagged line 3=Rectangle with jagged lines
result + = TQString ( " %1 " ) . tq arg( lineWidth ( e ) ) ; // No. of line width dots 1-9
result + = TQString ( " %1 " ) . arg( lineWidth ( e ) ) ; // No. of line width dots 1-9
//result += TQString("999"); // Radius of rounded corners of a rectangle
//result += TQString("999"); // Radius of rounded corners of a rectangle
result + = TQString ( " |} \n " ) ; // FIN
result + = TQString ( " |} \n " ) ; // FIN
}
}
}
}
else if ( e . tagName ( ) = = " line " ) {
else if ( e . tagName ( ) = = " line " ) {
result + = TQString ( " {LC; " ) ; // LC
result + = TQString ( " {LC; " ) ; // LC
result + = TQString ( " %1, " ) . tq arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . tq arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . tq arg( convZeros ( posConv ( e . attribute ( " x_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " width_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . arg( convZeros ( posConv ( e . attribute ( " x_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " width_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // X position
result + = TQString ( " %1, " ) . tq arg( convZeros ( posConv ( e . attribute ( " y_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " height_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // Y position
result + = TQString ( " %1, " ) . arg( convZeros ( posConv ( e . attribute ( " y_mm " ) , 4 ) . toInt ( ) + posConv ( e . attribute ( " height_mm " ) , 4 ) . toInt ( ) , 4 ) ) ; // Y position
result + = TQString ( " 0, " ) ; // Type of line 0=line 1=Rectangulo 2=Jagged line 3=Rectangle with jagged lines
result + = TQString ( " 0, " ) ; // Type of line 0=line 1=Rectangulo 2=Jagged line 3=Rectangle with jagged lines
result + = TQString ( " %1 " ) . tq arg( lineWidth ( e ) ) ; // No. of line width dots 1-9
result + = TQString ( " %1 " ) . arg( lineWidth ( e ) ) ; // No. of line width dots 1-9
//result += TQString("999"); // Radius of rounded corners of a rectangle
//result += TQString("999"); // Radius of rounded corners of a rectangle
result + = TQString ( " |} \n " ) ; // FIN
result + = TQString ( " |} \n " ) ; // FIN
}
}
@ -206,7 +206,7 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
}
}
result + = TQString ( " {U1;0130|} \n " ) ; // ForwardFeed
result + = TQString ( " {U1;0130|} \n " ) ; // ForwardFeed
result + = TQString ( " {XS;I,%1,0000C2000|} \n " ) . tq arg( convZeros ( count , 4 ) ) ; // Issue Command
result + = TQString ( " {XS;I,%1,0000C2000|} \n " ) . arg( convZeros ( count , 4 ) ) ; // Issue Command
return result ;
return result ;
}
}
@ -214,7 +214,7 @@ TQString tec452(const TQString &url, int count, const TQString &art, const TQStr
TQString convZeros ( int count , int zeros )
TQString convZeros ( int count , int zeros )
{
{
TQString str = TQString ( " %1 " ) . tq arg( count ) ;
TQString str = TQString ( " %1 " ) . arg( count ) ;
int l = strlen ( str ) ; //get the string length
int l = strlen ( str ) ; //get the string length
for ( ; l < zeros ; l + + ) str = TQString ( " 0 " ) + str ;
for ( ; l < zeros ; l + + ) str = TQString ( " 0 " ) + str ;
return str ;
return str ;
@ -223,9 +223,9 @@ return str;
TQString posConv ( TQString str , int zeros )
TQString posConv ( TQString str , int zeros )
{
{
int point = str . find ( " . " , 0 ) ;
int point = str . find ( " . " , 0 ) ;
TQString dec = TQString ( " %1 " ) . tq arg( str . mid ( point + 1 , 1 ) ) ;
TQString dec = TQString ( " %1 " ) . arg( str . mid ( point + 1 , 1 ) ) ;
str = str . mid ( 0 , point ) ;
str = str . mid ( 0 , point ) ;
str = TQString ( " %1%2 " ) . tq arg( str ) . tq arg( dec ) ;
str = TQString ( " %1%2 " ) . arg( str ) . arg( dec ) ;
return convZeros ( str . toInt ( ) , zeros ) ;
return convZeros ( str . toInt ( ) , zeros ) ;
}
}
@ -240,20 +240,20 @@ else return 0;
TQString code39 ( const TQDomElement & e , int countBar ) {
TQString code39 ( const TQDomElement & e , int countBar ) {
TQString result ;
TQString result ;
result + = TQString ( " {XB%1; " ) . tq arg( convZeros ( countBar , 2 ) ) ; // count
result + = TQString ( " {XB%1; " ) . arg( convZeros ( countBar , 2 ) ) ; // count
result + = TQString ( " %1 " ) . tq arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1 " ) . arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " ,%1 " ) . tq arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " ,%1 " ) . arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " ,%1 " ) . tq arg( barcodeType ( e . attribute ( " type " ) ) ) ; // Type of bar code
result + = TQString ( " ,%1 " ) . arg( barcodeType ( e . attribute ( " type " ) ) ) ; // Type of bar code
result + = TQString ( " ,%1 " ) . tq arg( withChecksum ( e ) ) ; // Type of check digit
result + = TQString ( " ,%1 " ) . arg( withChecksum ( e ) ) ; // Type of check digit
result + = TQString ( " ,%1 " ) . tq arg( " 03 " ) ; // Narrow bar width
result + = TQString ( " ,%1 " ) . arg( " 03 " ) ; // Narrow bar width
result + = TQString ( " ,%1 " ) . tq arg( " 03 " ) ; // Narrow space width
result + = TQString ( " ,%1 " ) . arg( " 03 " ) ; // Narrow space width
result + = TQString ( " ,%1 " ) . tq arg( " 06 " ) ; // Wide bar width
result + = TQString ( " ,%1 " ) . arg( " 06 " ) ; // Wide bar width
result + = TQString ( " ,%1 " ) . tq arg( " 06 " ) ; // Wide space width
result + = TQString ( " ,%1 " ) . arg( " 06 " ) ; // Wide space width
result + = TQString ( " ,%1 " ) . tq arg( " 03 " ) ; // Character to Character space width
result + = TQString ( " ,%1 " ) . arg( " 03 " ) ; // Character to Character space width
result + = TQString ( " ,%1 " ) . tq arg( rotation ( e . attribute ( " rotation " , " 0 " ) . toInt ( ) ) ) ; // Rotation angel of barcode
result + = TQString ( " ,%1 " ) . arg( rotation ( e . attribute ( " rotation " , " 0 " ) . toInt ( ) ) ) ; // Rotation angel of barcode
result + = TQString ( " ,%1 " ) . tq arg( " 0063 " ) ; // height of barcode
result + = TQString ( " ,%1 " ) . arg( " 0063 " ) ; // height of barcode
result + = TQString ( " ,+%1 " ) . tq arg( sequence ( e ) ) ; // Increment / Decrement
result + = TQString ( " ,+%1 " ) . arg( sequence ( e ) ) ; // Increment / Decrement
result + = TQString ( " ,%1 " ) . tq arg( e . attribute ( " text " , " 1 " ) . toInt ( ) ) ; // Selection of print or non print of numerals under bars
result + = TQString ( " ,%1 " ) . arg( e . attribute ( " text " , " 1 " ) . toInt ( ) ) ; // Selection of print or non print of numerals under bars
result + = TQString ( " ,00 " ) ; //Number of Zeros to be suppressed
result + = TQString ( " ,00 " ) ; //Number of Zeros to be suppressed
result + = TQString ( " |} \n " ) ; // FIN
result + = TQString ( " |} \n " ) ; // FIN
@ -371,17 +371,17 @@ return convZeros(e.attribute("sequencestep" ,"0").toInt() ,10);
TQString code128 ( const TQDomElement & e , int countBar ) {
TQString code128 ( const TQDomElement & e , int countBar ) {
TQString result ;
TQString result ;
result + = TQString ( " {XB%1; " ) . tq arg( convZeros ( countBar , 2 ) ) ; // count
result + = TQString ( " {XB%1; " ) . arg( convZeros ( countBar , 2 ) ) ; // count
result + = TQString ( " %1 " ) . tq arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1 " ) . arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " ,%1 " ) . tq arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " ,%1 " ) . arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " ,%1 " ) . tq arg( barcodeType ( e . attribute ( " type " ) ) ) ; // Type of bar code
result + = TQString ( " ,%1 " ) . arg( barcodeType ( e . attribute ( " type " ) ) ) ; // Type of bar code
result + = TQString ( " ,%1 " ) . tq arg( withChecksum ( e ) ) ; // Type of check digit
result + = TQString ( " ,%1 " ) . arg( withChecksum ( e ) ) ; // Type of check digit
result + = TQString ( " ,%1 " ) . tq arg( " 03 " ) ; // 1 module width
result + = TQString ( " ,%1 " ) . arg( " 03 " ) ; // 1 module width
result + = TQString ( " ,%1 " ) . tq arg( rotation ( e . attribute ( " rotation " , " 0 " ) . toInt ( ) ) ) ; // Rotation angel of barcode
result + = TQString ( " ,%1 " ) . arg( rotation ( e . attribute ( " rotation " , " 0 " ) . toInt ( ) ) ) ; // Rotation angel of barcode
result + = TQString ( " ,%1 " ) . tq arg( " 0063 " ) ; // height of barcode
result + = TQString ( " ,%1 " ) . arg( " 0063 " ) ; // height of barcode
result + = TQString ( " ,+%1 " ) . tq arg( sequence ( e ) ) ; // Increment / Decrement
result + = TQString ( " ,+%1 " ) . arg( sequence ( e ) ) ; // Increment / Decrement
result + = TQString ( " ,000 " ) ; // Length of th WPC guard bar
result + = TQString ( " ,000 " ) ; // Length of th WPC guard bar
result + = TQString ( " ,%1 " ) . tq arg( e . attribute ( " text " , " 1 " ) . toInt ( ) ) ; // Selection of print or non print of numerals under bars
result + = TQString ( " ,%1 " ) . arg( e . attribute ( " text " , " 1 " ) . toInt ( ) ) ; // Selection of print or non print of numerals under bars
result + = TQString ( " ,00 " ) ; //Number of Zeros to be suppressed
result + = TQString ( " ,00 " ) ; //Number of Zeros to be suppressed
result + = TQString ( " |} \n " ) ; // FIN
result + = TQString ( " |} \n " ) ; // FIN
@ -457,15 +457,15 @@ return result;
TQString pdf417 ( const TQDomElement & e , int countBar ) {
TQString pdf417 ( const TQDomElement & e , int countBar ) {
TQString result ;
TQString result ;
result + = TQString ( " {XB%1; " ) . tq arg( convZeros ( countBar , 2 ) ) ; // count
result + = TQString ( " {XB%1; " ) . arg( convZeros ( countBar , 2 ) ) ; // count
result + = TQString ( " %1 " ) . tq arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " %1 " ) . arg( posConv ( e . attribute ( " x_mm " ) , 4 ) ) ; // X position
result + = TQString ( " ,%1 " ) . tq arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " ,%1 " ) . arg( posConv ( e . attribute ( " y_mm " ) , 4 ) ) ; // Y position
result + = TQString ( " ,P " ) ; // Type of bar code ALWAYS PDF417
result + = TQString ( " ,P " ) ; // Type of bar code ALWAYS PDF417
result + = TQString ( " ,%1 " ) . tq arg( withChecksum ( e ) ) ; // Type of check digit
result + = TQString ( " ,%1 " ) . arg( withChecksum ( e ) ) ; // Type of check digit
result + = TQString ( " ,%1 " ) . tq arg( " 03 " ) ; // Module Width
result + = TQString ( " ,%1 " ) . arg( " 03 " ) ; // Module Width
result + = TQString ( " ,%1 " ) . tq arg( convZeros ( e . attribute ( " pdf417.col " ) . toInt ( ) , 2 ) ) ; // Number of columns
result + = TQString ( " ,%1 " ) . arg( convZeros ( e . attribute ( " pdf417.col " ) . toInt ( ) , 2 ) ) ; // Number of columns
result + = TQString ( " ,%1 " ) . tq arg( rotation ( e . attribute ( " rotation " , " 0 " ) . toInt ( ) ) ) ; // Rotation angel of barcode
result + = TQString ( " ,%1 " ) . arg( rotation ( e . attribute ( " rotation " , " 0 " ) . toInt ( ) ) ) ; // Rotation angel of barcode
result + = TQString ( " ,%1 " ) . tq arg( " 0063 " ) ; // height of barcode
result + = TQString ( " ,%1 " ) . arg( " 0063 " ) ; // height of barcode
result + = TQString ( " |} \n " ) ; // FIN
result + = TQString ( " |} \n " ) ; // FIN
return result ;
return result ;
@ -619,7 +619,7 @@ if (etext.contains("[barcode_no_customer]") ){
while ( query . next ( ) ) temp = TQString ( query . value ( 0 ) . toString ( ) ) ;
while ( query . next ( ) ) temp = TQString ( query . value ( 0 ) . toString ( ) ) ;
etext . replace ( " [barcode_no_customer] " , temp ) ;
etext . replace ( " [barcode_no_customer] " , temp ) ;
}
}
if ( etext . contains ( " [date] " ) ) etext . replace ( " [date] " , TQDateTime : : tq currentDateTime( ) . toString ( KBarcodeSettings : : getDateFormat ( ) ) ) ;
if ( etext . contains ( " [date] " ) ) etext . replace ( " [date] " , TQDateTime : : currentDateTime( ) . toString ( KBarcodeSettings : : getDateFormat ( ) ) ) ;
if ( etext . contains ( " [time] " ) ) etext . replace ( " [time] " , TQTime : : currentTime ( ) . toString ( ) ) ;
if ( etext . contains ( " [time] " ) ) etext . replace ( " [time] " , TQTime : : currentTime ( ) . toString ( ) ) ;
return etext ; */
return etext ; */