Code

Store last used paths separately for the 'Save as ...' and 'Save a copy ...' dialogs...
[inkscape.git] / src / ui / dialog / filedialogimpl-gtkmm.h
index 90dddce59a51a8ba5858d32796a1fb9ffcc5d139..2a37aed2b62e37ae9a36bdb8c7b34053cd3228cb 100644 (file)
@@ -281,11 +281,12 @@ class FileSaveDialogImplGtk : public FileSaveDialog, public FileDialogBaseGtk
 
 public:
     FileSaveDialogImplGtk(Gtk::Window &parentWindow,
-                          const Glib::ustring &dir,
-                       FileDialogType fileTypes,
-                       const Glib::ustring &title,
-                       const Glib::ustring &default_key,
-                       const gchar* docTitle);
+                          const Glib::ustring &dir,
+                          FileDialogType fileTypes,
+                          const Glib::ustring &title,
+                          const Glib::ustring &default_key,
+                          const gchar* docTitle,
+                          const bool save_copy);
 
     virtual ~FileSaveDialogImplGtk();
 
@@ -301,6 +302,11 @@ private:
     void change_path(const Glib::ustring& path);
     void updateNameAndExtension();
 
+    /**
+     * Whether the dialog was invoked by "Save as ..." or "Save a copy ..."
+     */
+    bool is_copy;
+
     /**
      * Fix to allow the user to type the file name
      */