Commit Graph

18 Commits

Author SHA1 Message Date
wmayer
961d9145e2 Qt5: 'endl' manipulator is deprecated with 5.15. Replace it with newlines. 2020-10-15 15:22:28 +02:00
Zheng, Lei
36d046d489 App/Gui: introduce temporary document
Add new argument to Application::newDocument() to create a temporary
    document. Also exposed to Python API App.newDocument() with a named
    argument 'temp'.

    The temporary document is marked with status bit 'TempDoc'. The user
    will not be prompt for saving when closing. The undo/redo is disabled.
    The AutoSaver skips it. And the tree view will not show it.
    PropertyXLink allows linking to/from object within a temporary document
    without saving.
2020-07-14 19:36:05 +02:00
wmayer
d6169d6478 boost: fix for boost < 1.60 2020-06-15 19:38:39 +02:00
wmayer
730154a684 boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated 2020-06-12 17:51:33 +02:00
asapelkin
875a463923 Used single quotes for single character in string::find algorithm, more efficient 2019-11-21 18:59:43 +01:00
Zheng, Lei
35534149a4 Gui: AutoSaver and recovery changes
* Fix AutoSaver inconsistent BinaryBrep setting

* Use temperary name when auto saving, so that it won't overwrite the
  original file, which may cause corruption when crashing in the middel
  of auto saving, especially if auto saving in a separate thread.

* Support auto recovery document containing external links

* Do not mark success after auto recover, in case the program crash
  again before the user remember to save the just recovered file. Only
  mark when user saves the document.
2019-08-17 14:52:11 +02:00
wmayer
55916175d3 + fix typo 2015-09-19 17:03:38 +02:00
wmayer
ef203bc260 + fixes #0001238: Preferences: set temp files directory 2015-09-19 16:07:33 +02:00
wmayer
718b766737 + for file-based recovery write the data files in worker threads 2015-09-19 13:12:59 +02:00
wmayer
9a45718d9e + implement file based auto-save & recovery mechanism 2015-09-19 01:13:33 +02:00
wmayer
193abe75da + make RecoveryWriter more robust 2015-09-18 15:32:33 +02:00
wmayer
698f964aa3 + implement FileWriter class based on files and a specialized sub-class for recovery purposes 2015-09-17 21:37:47 +02:00
wmayer
22b7fb660c + save Brep in binary format for recovery files 2015-09-16 22:58:47 +02:00
wmayer
65a526ef46 + fix possible loss of data with recovery function, show auto-save message in status bar 2015-09-09 18:49:45 +02:00
wmayer
984608aaaa + issue #0000175: Auto save function 2015-09-04 17:53:22 +02:00
wmayer
5cfbde93da + issue #0000175: Auto save function 2015-09-04 15:08:12 +02:00
wmayer
7dc1b5ad6a + implement GUI to enable/disable auto-save and its timeout 2015-09-04 00:48:26 +02:00
wmayer
2d8c5b7870 + implement auto-save function for documents 2015-09-03 19:09:03 +02:00