Files: Save

From Inkscape Wiki
Revision as of 11:42, 30 September 2024 by Tavmjong (talk | contribs) (Created page with " == Introduction == With native file dialogs, we cannot add features such as check boxes for options ("Choices"). We also cannot obtain information about which file filter is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

With native file dialogs, we cannot add features such as check boxes for options ("Choices"). We also cannot obtain information about which file filter is selected. This breaks are current method for using file dialogs to influence how files are saved. In particular, we cannot have a checkbox to "Save as 1.1 SVG", nor can we use the file filter setting to distinguish between saving as "Inkscape SVG" or "Plain SVG". Native file dialogs are simply useful for choosing file names, nothing more, nothing less.

It's important to recognize that the Gtk::FileDialog class is NOT derived from a widget thus we cannot not change the insides. This is a necessity born from using native dialogs.

Our current (Inkscape 1.4) situation spreads options for how SVG's are saved across several places. Choosing Inkscape or Plain SVG's is done in the File menu, selecting to save to SVG 2 or SVG 1.1 is done in the File dialog, selecting which SVG 2 features are converted to SVG 1.1 fallbacks is done in the Preferences dialog. It would be better to have all of this in one place.

The Export dialog has received a lot of love over the past few years. However, it currently can handle only a subset of the file types that Inkscape can export to.

See also 2018 proposal.

Proposal

With GTK4 Inkscape, all "Export" is done through the Export dialog, where "Export" is defined as saving a document to any form other than Inkscape SVG.

The File menu will contain these options:

Save

Save a document to Inkscape SVG.

  • If a document does not contain a stored filename, open up File dialog to choose a filename.
  • Update internal Inkscape version and filename. Clear modified flag.
  • Save.
  • If save fails, revert internal Inkcape version and filename. Restore modified flag.

Save as...

Save a document as Inkscape SVG with a new different filename.

  • Open up File dialog to choose a filename.
  • Update internal Inkscape version and filename. Clear modified flag.
  • Save.
  • If save fails, revert internal Inkcape version and filename. Restore modified flag.

Save a copy...

Save a document as Inkscape SVG with a new different filename, not updating internals.

  • Open up File dialog to choose a filename.
  • Update internal Inkscape version and filename.
  • Save.
  • Revert internal Inkcape version and filename. Restore modified flag.

Save Template...

Save a document as an Inkscape template.

Export

Export document to a non Inkscape SVG format.

  • Open up Export dialog to choose export file type and options..

Options shown are based on selected file type.

Export Overwrite

New (needs some thought) Export document, overwriting.

  • Export to same format as import or to the previously used export filetype.
  • No File dialog used.