- added the ability to compress the FlatCAM project on save with LZMA compression. There is a setting in Edit -> Preferences -> Compression Level between 0 and 9. 9 level yields best compression at the price of RAM usage and time spent.

- made FlatCAM able to load old type (uncompressed) FlatCAM projects
This commit is contained in:
Marius Stanciu
2019-02-19 01:22:17 +02:00
committed by Marius S
parent c22d6766f4
commit 7f65cf628d
3 changed files with 71 additions and 32 deletions

View File

@@ -3129,6 +3129,23 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
hlay.addWidget(self.advanced_cb)
hlay.addStretch()
hlay1 = QtWidgets.QHBoxLayout()
self.layout.addLayout(hlay1)
# Project LZMA Comppression Level
self.compress_combo = FCComboBox()
self.compress_label = QtWidgets.QLabel('Compress Level:')
self.compress_label.setToolTip(
"The level of compression used when saving\n"
"a FlatCAM project. Higher value means better compression\n"
"but require more RAM and time."
)
# self.advanced_cb.setLayoutDirection(QtCore.Qt.RightToLeft)
self.compress_combo.addItems([str(i) for i in range(10)])
hlay1.addWidget(self.compress_label)
hlay1.addWidget(self.compress_combo)
self.form_box_2 = QtWidgets.QFormLayout()
self.layout.addLayout(self.form_box_2)