Tweaked the size of the Dialog columns to give more space for the Filename column. Also added the Filename text as a cell’s Tooltip, which will display the full text of the filename on hover in the event it’s too long to fit the column and get’s elided.
Ok… hopefully I’ll now have time to get back to finishing this issue so we can move on.
Some updates on the new Autosave / Backup features.
There will now be a new item in the File menu… “Restore Version” which will handle restoring either an AVB - autosave file, a versioned autosave file, or a back up file. Ctrl-R is the keyboard shortcut. Just to recap… an A (autosave file) - if enabled - is created every x interval if there are unsaved changes. Once a pattern is saved the autosave file is removed. A V (versioned autosave) file is created every x interval, date & time stamped in the filename, and remains until you implicitly delete it. A B (backup file) or copy is created every time a pattern file is saved. They too are date & time stamped in the file name. You can limit the number of V & B files… if you reach the limit while saving, the oldest file is removed.
This will bring up the Restore dialog…
A context menu was added to the Restore dialog… which will allow some management of the autosave / backup files within Seamly2D without having to resort to finding the autosave directory and using the system file manager to rename or delete files. Deleting a file “moves” the file to the recycle bin, so you still can restore the restore file.
Also added is “double clicking” on a file defaults to renaming the file…
When a restore file is selected you are presented with a File dialog. Here you can decide where or what to name the name to restored file. It will default to the path and name of the original pattern file, Leaving the dialog unchanged will overwrite the original file. Note the date / time stamp of a versioned or backup file will be stripped out.
In the event of a crash OR you chose to close the app down and not save pattern files that had unsaved changes… you should be presented with the Restore unsaved files dialog. This is an update of the current autosave feature. Instead of just saying there were x number of files open with unsaved changes, the dialog now lists the files that were open at the time of a crash or you chose to close without saving. You now have 2 choices - Save and Open, or just Open. Save and Open will overwrite the original pattern files as stored in the settings… Open will just open the file as if it was any other pattern file, allowing you to Save As a new file - leaving the original file intact (albeit probably damaged).
And the latest addition is a modification to the Statusbar & Status Toolbar. - bet you didn’t know there were 2 separate bars. I first wanted to add a visual status as to the state of the AVB settings… which led to cleaning up and combining the Status toolbar into the actual “Statusbar”. That meant moving the Multi size combo boxes and the Mouse coordinates… by nature a Qt Statusbar places permanent widgets to the right of the bar… so now tool tooltips and messages will appear to the left, while the widgets appear on the right. Since the “Status Toolbar” has been eliminated that adds another 24 or so pixels to the vertical workspace… not to mention less code.
Since the mouse coordinates / units is now a subclassed widget there are a few side effects - the coordinate widgets are fixed in size. The pattern units are more visually notated, and there should be a speed increase as the pattern unit setting is not called with every mouse move.
The state of AVB or autosave, versioned, and backups are now displayed. If the setting is disabled the A, V or B will be grey. It the setting is enabled it will be green. If there is an A, V or B file created while the pattern is open, AND the A, V or B is enabled - the color will change to orange.
The tooltip messages and the multisize dropdowns remain the same with the noted change of the multisize drops downs move to the Statusbar and to the right.