Changeset View
Changeset View
Standalone View
Standalone View
plugins/python/exportlayers/uiexportlayers.py
Context not available. | |||||
43 | self.batchmodeCheckBox = QCheckBox(i18n("Export in batchmode")) | 43 | self.batchmodeCheckBox = QCheckBox(i18n("Export in batchmode")) | ||
---|---|---|---|---|---|
44 | self.ignoreInvisibleLayersCheckBox = QCheckBox( | 44 | self.ignoreInvisibleLayersCheckBox = QCheckBox( | ||
45 | i18n("Ignore invisible layers")) | 45 | i18n("Ignore invisible layers")) | ||
46 | self.cropToImageBounds = QCheckBox( | ||||
47 | i18n("Crop to Image Bounds")) | ||||
46 | self.xResSpinBox = QSpinBox() | 48 | self.xResSpinBox = QSpinBox() | ||
47 | self.yResSpinBox = QSpinBox() | 49 | self.yResSpinBox = QSpinBox() | ||
48 | self.formatsComboBox = QComboBox() | 50 | self.formatsComboBox = QComboBox() | ||
Context not available. | |||||
83 | self.optionsLayout.addWidget(self.exportFilterLayersCheckBox) | 85 | self.optionsLayout.addWidget(self.exportFilterLayersCheckBox) | ||
84 | self.optionsLayout.addWidget(self.batchmodeCheckBox) | 86 | self.optionsLayout.addWidget(self.batchmodeCheckBox) | ||
85 | self.optionsLayout.addWidget(self.ignoreInvisibleLayersCheckBox) | 87 | self.optionsLayout.addWidget(self.ignoreInvisibleLayersCheckBox) | ||
88 | self.optionsLayout.addWidget(self.cropToImageBounds) | ||||
86 | 89 | | |||
87 | self.resolutionLayout.addWidget(self.xResSpinBox) | 90 | self.resolutionLayout.addWidget(self.xResSpinBox) | ||
88 | self.resolutionLayout.addWidget(self.yResSpinBox) | 91 | self.resolutionLayout.addWidget(self.yResSpinBox) | ||
Context not available. | |||||
192 | self.directoryTextField.text(), | 195 | self.directoryTextField.text(), | ||
193 | parentDir, node.name(), _fileFormat) | 196 | parentDir, node.name(), _fileFormat) | ||
194 | node.save(layerFileName, self.xResSpinBox.value(), | 197 | node.save(layerFileName, self.xResSpinBox.value(), | ||
195 | self.yResSpinBox.value(), krita.InfoObject()) | 198 | self.yResSpinBox.value(), krita.InfoObject(), self.cropToImageBounds.isChecked()) | ||
196 | 199 | | |||
197 | if node.childNodes(): | 200 | if node.childNodes(): | ||
198 | self._exportLayers(node, fileFormat, newDir) | 201 | self._exportLayers(node, fileFormat, newDir) | ||
Context not available. |