Add media-type (broken, needs to go into media-col)

This commit is contained in:
Anton Thomasson 2021-07-09 17:44:16 +02:00
parent 6d444c9aa6
commit ec6224f777
9 changed files with 168 additions and 0 deletions

View file

@ -148,6 +148,12 @@ Page {
prettyName: qsTr("Transfer format")
mime_type: selectedFileType
}
ChoiceSetting {
tag: IppMsg.Keyword
name: "media-type"
prettyName: qsTr("Media type")
mime_type: selectedFileType
}
ChoiceSetting {
tag: IppMsg.Keyword
name: "media-source"

View file

@ -135,6 +135,15 @@ function ippName(name, value)
{
return value;
}
case "media-type":
if(mediaType.hasOwnProperty(value))
{
return mediaType[value];
}
else
{
return value;
}
case "printer-state-reasons":
if(printerStateReasons.hasOwnProperty(value))
{
@ -690,6 +699,131 @@ var media =
"roc_16k_7.75x10.75in": "ROC 16k",
"roc_8k_10.75x15.5in": "ROC 8k"}
var mediaType =
{"aluminum": "Aluminum",
"auto": "Automatic",
"back-print-film": "Back Print Film",
"cardboard": "Cardboard",
"cardstock": "Cardstock",
"cd": "CD",
"continuous": "Continuous",
"continuous-long": "Continuous Long",
"continuous-short": "Continuous Short",
"corrugated-board": "Corrugated Board",
"disc": "Optical Disc",
"disc-glossy": "Glossy Optical Disc",
"disc-high-gloss": "High Gloss Optical Disc",
"disc-matte": "Matte Optical Disc",
"disc-satin": "Satin Optical Disc",
"disc-semi-gloss": "Semi-Gloss Optical Disc",
"double-wall": "Double Wall",
"dry-film": "Dry Film",
"dvd": "DVD",
"embossing-foil": "Embossing Foil",
"end-board": "End Board",
"envelope": "Envelope",
"envelope-archival": "Archival Envelope",
"envelope-bond": "Bond Envelope",
"envelope-coated": "Coated Envelope",
"envelope-cotton": "Cotton Envelope",
"envelope-fine": "Fine Envelope",
"envelope-heavyweight": "Heavyweight Envelope",
"envelope-inkjet": "Inkjet Envelope",
"envelope-lightweight": "Lightweight Envelope",
"envelope-plain": "Plain Envelope",
"envelope-preprinted": "Preprinted Envelope",
"envelope-window": "Windowed Envelope",
"fabric": "Fabric",
"fabric-archival": "Archival Fabric",
"fabric-glossy": "Glossy Fabric",
"fabric-high-gloss": "High Gloss Fabric",
"fabric-matte": "Matte Fabric",
"fabric-semi-gloss": "Semi-Gloss Fabric",
"fabric-waterproof": "Waterproof Fabric",
"film": "Film",
"flexo-base": "Flexo Base",
"flexo-photo-polymer": "Flexo Photo Polymer",
"flute": "Flute",
"foil": "Foil",
"full-cut-tabs": "Full Cut Tabs",
"glass": "Glass",
"glass-colored": "Glass Colored",
"glass-opaque": "Glass Opaque",
"glass-surfaced": "Glass Surfaced",
"glass-textured": "Glass Textured",
"gravure-cylinder": "Gravure Cylinder",
"image-setter-paper": "Image Setter Paper",
"imaging-cylinder": "Imaging Cylinder",
"labels": "Labels",
"labels-colored": "Colored Labels",
"labels-glossy": "Glossy Labels",
"labels-high-gloss": "High Gloss Labels",
"labels-inkjet": "Inkjet Labels",
"labels-matte": "Matte Labels",
"labels-permanent": "Permanent Labels",
"labels-satin": "Satin Labels",
"labels-security": "Security Labels",
"labels-semi-gloss": "Semi-Gloss Labels",
"laminating-foil": "Laminating Foil",
"letterhead": "Letterhead",
"metal": "Metal",
"metal-glossy": "Metal Glossy",
"metal-high-gloss": "Metal High Gloss",
"metal-matte": "Metal Matte",
"metal-satin": "Metal Satin",
"metal-semi-gloss": "Metal Semi Gloss",
"mounting-tape": "Mounting Tape",
"multi-layer": "Multi Layer",
"multi-part-form": "Multi Part Form",
"other": "Other",
"paper": "Paper",
"photographic": "Photo Paper",
"photographic-archival": "Photographic Archival",
"photographic-film": "Photo Film",
"photographic-glossy": "Glossy Photo Paper",
"photographic-high-gloss": "High Gloss Photo Paper",
"photographic-matte": "Matte Photo Paper",
"photographic-satin": "Satin Photo Paper",
"photographic-semi-gloss": "Semi-Gloss Photo Paper",
"plastic": "Plastic",
"plastic-archival": "Plastic Archival",
"plastic-colored": "Plastic Colored",
"plastic-glossy": "Plastic Glossy",
"plastic-high-gloss": "Plastic High Gloss",
"plastic-matte": "Plastic Matte",
"plastic-satin": "Plastic Satin",
"plastic-semi-gloss": "Plastic Semi Gloss",
"plate": "Plate",
"polyester": "Polyester",
"pre-cut-tabs": "Pre Cut Tabs",
"roll": "Roll",
"screen": "Screen",
"screen-paged": "Screen Paged",
"self-adhesive": "Self Adhesive",
"self-adhesive-film": "Self Adhesive Film",
"shrink-foil": "Shrink Foil",
"single-face": "Single Face",
"single-wall": "Single Wall",
"sleeve": "Sleeve",
"stationery": "Stationery",
"stationery-archival": "Stationery Archival",
"stationery-coated": "Coated Paper",
"stationery-cotton": "Stationery Cotton",
"stationery-fine": "Vellum Paper",
"stationery-heavyweight": "Heavyweight Paper",
"stationery-heavyweight-coated": "Stationery Heavyweight Coated",
"stationery-inkjet": "Stationery Inkjet Paper",
"stationery-letterhead": "Letterhead",
"stationery-lightweight": "Lightweight Paper",
"stationery-preprinted": "Preprinted Paper",
"stationery-prepunched": "Punched Paper",
"tab-stock": "Tab Stock",
"tractor": "Tractor",
"transfer": "Transfer",
"transparency": "Transparency",
"triple-wall": "Triple Wall",
"wet-film": "Wet Film"}
var printerStateReasons =
{"alert-removal-of-binary-change-entry": "Old Alerts Have Been Removed",
"bander-added": "Bander Added",

View file

@ -494,6 +494,10 @@
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Media type</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>

View file

@ -494,6 +494,10 @@
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Media type</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>

View file

@ -494,6 +494,10 @@
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Media type</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>

View file

@ -494,6 +494,10 @@
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Media type</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>

View file

@ -494,6 +494,10 @@
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Media type</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>

View file

@ -494,6 +494,10 @@
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Media type</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>

View file

@ -494,6 +494,10 @@
<source>Output bin</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Media type</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>RangeSetting</name>