diff --git a/qml/pages/PrinterPage.qml b/qml/pages/PrinterPage.qml index 03b4445..387ec0c 100644 --- a/qml/pages/PrinterPage.qml +++ b/qml/pages/PrinterPage.qml @@ -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" diff --git a/qml/pages/utils.js b/qml/pages/utils.js index 0ffe14c..72a9d0f 100644 --- a/qml/pages/utils.js +++ b/qml/pages/utils.js @@ -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", diff --git a/translations/harbour-seaprint-de.ts b/translations/harbour-seaprint-de.ts index b1da42e..5f37d9d 100644 --- a/translations/harbour-seaprint-de.ts +++ b/translations/harbour-seaprint-de.ts @@ -494,6 +494,10 @@ Output bin + + Media type + + RangeSetting diff --git a/translations/harbour-seaprint-es.ts b/translations/harbour-seaprint-es.ts index 5f465ce..15f23b0 100644 --- a/translations/harbour-seaprint-es.ts +++ b/translations/harbour-seaprint-es.ts @@ -494,6 +494,10 @@ Output bin + + Media type + + RangeSetting diff --git a/translations/harbour-seaprint-fr.ts b/translations/harbour-seaprint-fr.ts index 56a5887..4be291c 100644 --- a/translations/harbour-seaprint-fr.ts +++ b/translations/harbour-seaprint-fr.ts @@ -494,6 +494,10 @@ Output bin + + Media type + + RangeSetting diff --git a/translations/harbour-seaprint-nl.ts b/translations/harbour-seaprint-nl.ts index c768ddb..f0bad71 100644 --- a/translations/harbour-seaprint-nl.ts +++ b/translations/harbour-seaprint-nl.ts @@ -494,6 +494,10 @@ Output bin + + Media type + + RangeSetting diff --git a/translations/harbour-seaprint-pl.ts b/translations/harbour-seaprint-pl.ts index bdd5455..e3149c3 100644 --- a/translations/harbour-seaprint-pl.ts +++ b/translations/harbour-seaprint-pl.ts @@ -494,6 +494,10 @@ Output bin + + Media type + + RangeSetting diff --git a/translations/harbour-seaprint-zh_CN.ts b/translations/harbour-seaprint-zh_CN.ts index 5ccb448..ae0b6eb 100644 --- a/translations/harbour-seaprint-zh_CN.ts +++ b/translations/harbour-seaprint-zh_CN.ts @@ -494,6 +494,10 @@ Output bin + + Media type + + RangeSetting diff --git a/translations/harbour-seaprint.ts b/translations/harbour-seaprint.ts index 0fe537f..5468d1d 100644 --- a/translations/harbour-seaprint.ts +++ b/translations/harbour-seaprint.ts @@ -494,6 +494,10 @@ Output bin + + Media type + + RangeSetting