Skip to content

Commit

Permalink
Remove PrintQuantity Command
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattking committed Jul 29, 2024
1 parent ddc0f0b commit 7947f66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
19 changes: 0 additions & 19 deletions src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,11 @@ package info.mking.k2zpl.builder

import info.mking.k2zpl.command.EndFormat
import info.mking.k2zpl.command.LabelLength
import info.mking.k2zpl.command.PrintQuantity
import info.mking.k2zpl.command.StartFormat
import info.mking.k2zpl.command.ZplCommand
import info.mking.k2zpl.command.options.ZplFont
import info.mking.k2zpl.command.options.ZplYesNo

/**
* Sets the print quantity and related parameters.
* @param quantity The number of labels to print.
* @param labelsBetweenPauses The number of labels between pauses (optional).
* @param replicates The number of times to replicate the label (optional).
* @param noPause Whether to pause the printer (optional).
* @param cutOnError Whether to cut on error (optional).
*/
fun ZplBuilder.printQuantity(
quantity: Int,
labelsBetweenPauses: Int? = null,
replicates: Int? = null,
noPause: Boolean = false,
cutOnError: Boolean = false
) {
command(PrintQuantity(quantity, labelsBetweenPauses, replicates, noPause, cutOnError))
}

/**
* Sets the length of the label.
* @param length The length of the label.
Expand Down
24 changes: 0 additions & 24 deletions src/main/kotlin/info/mking/k2zpl/command/PrintQuantity.kt

This file was deleted.

0 comments on commit 7947f66

Please sign in to comment.