-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable ^FV command (needed for UPS) (#195)
* Enable ^FV command - Based off ^FD
- Loading branch information
1 parent
ddc7cb7
commit 552973b
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/BinaryKits.Zpl.Viewer/CommandAnalyzers/FieldVarialbleZplCommandAnalyzer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace BinaryKits.Zpl.Viewer.CommandAnalyzers | ||
{ | ||
// todo: fix virtual printer, must enable the MC command | ||
// todo: factor out common parts from FieldDataZplCommandAnalyzer so both can inherit | ||
// This is currently just a hack to be able to visualize single ups zpl. | ||
// The FV command is normally used with the MC command when printing multiple labels of a same pattern. | ||
// The MC command allows us to "save" the first label as a template | ||
// using FDs as static elements of template and FVs as variable parts. | ||
// Subsequent labels only require FV to draw the variable parts. | ||
public class FieldVariableZplCommandAnalyzer : FieldDataZplCommandAnalyzer | ||
{ | ||
public FieldVariableZplCommandAnalyzer(VirtualPrinter virtualPrinter): base(virtualPrinter, "^FV") { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters