summaryrefslogtreecommitdiffstats
path: root/src/file.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-11-01Remove OCALMarc Jeanmougin1-206/+1
2019-10-07Move imported files to position of mouse pointer when droppedPatrick Storz1-1/+4
We only considered the position of the mouse pointer *after* clicking through possible import dialogs, so we usually imported at the position of the "OK" button of the import dialog.
2019-08-31Templates: Accept non-underscored variants of "inkscape:templateinfo"Patrick Storz1-5/+5
2019-06-16Replace deprecated Gtk::Main::quit() callKarl Cheng1-4/+4
As this should only be called in a console context, we can replace Gtk::Main::quit() with Gio::Application::quit().
2019-03-27Remove unused code for NEW_EXPORT_DIALOGPatrick Storz1-130/+0
Functionality seems to have been replaced by "Save a Copy" and the PNG export dialog respectively.
2019-03-27Fix adding/lookup of recent files.Patrick Storz1-20/+6
Avoid setting an application name as Gtk::RecentManager calls g_get_application_name () internally to determine the default "name" attribute used for new entries in the list of recently used files (recently-used.xbel) Our Gtk::RecentFilter in menubar.cpp expects the name to equal to g_get_prgname () though (which happens to be the fallback of g_get_application_name, but only if no application name is set as in earlier versions) The alternative would be to set metadata manually, but it would require us to set *all* fields manually (including mime type, etc.). See also https://gitlab.gnome.org/GNOME/gtk/issues/1775 Fixes https://gitlab.com/inkscape/inkscape/issues/160
2019-03-26Misc. typosluz.paz1-1/+1
Found via `codespell`
2019-03-15Make InkscapeApplication responsible for managing documents and windows.Tavmjong Bah1-136/+19
Any change from previous behavior is a bug.
2019-03-10Save default template as "default.$lang.svg" if presentPatrick Storz1-4/+8
By default we want to save as "default.svg", so it works indepentent from the UI language selected. However if a localized default template like "default.de.svg" is already present (i.e. manually created by the user), it will override our custom template, so we need to overwrite it. Second part of a fix for https://gitlab.com/inkscape/inkscape/issues/103
2019-02-20Give more descriptive names to document file related variables and functions.Tavmjong Bah1-14/+14
Makes searching through code for them easier.
2019-02-17Move logic to build localized filenames into io/ressource.cppPatrick Storz1-2/+1
Now all that's needed to prefer a localized version of the file (if available) is a Boolean.
2019-02-16Revert to "default.$lang.svg" as name for default templatesPatrick Storz1-3/+1
It was changed in 19316e382c0a2ae5105c746191c3fba90f54995b to avoid some CMake trouble but breaks the established naming scheme and is not necessary after the previous commit.
2019-01-19Remove sp_create_window().Tavmjong Bah1-15/+5
2019-01-15Use ink_file_open in sp_file_open.Tavmjong Bah1-48/+47
2019-01-13simplify translated default.svgMarc Jeanmougin1-0/+3
2019-01-06Remove unneeded unreferencing. Add check on reference count.Tavmjong Bah1-7/+1
2019-01-02modernize loopsMarc Jeanmougin1-4/+4
2018-11-27desktop-widget: Move function to correct headerAlexander Valavanis1-1/+1
2018-11-08Clarify licensesMax Gaukler1-1/+2
- add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
2018-10-22Remove 'document-private.h' where not needed plus some other header cleanup.Tavmjong Bah1-1/+0
2018-10-13Move some files to 'io' directory.Tavmjong Bah1-1/+1
2018-10-01Remove #include "config.h" wherever possibleEduard Braun1-1/+1
2018-10-01Use _WIN32 instead of WIN32Eduard Braun1-2/+2
The former is guaranteed to be set for any compiler targeting win32, the latter is implementation dependent (but works for gcc) See also http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system
2018-10-01End fix bug bug:#1769679 #18; Crash when opening file with live path effectJabier Arraiza1-1/+6
2018-09-14improbe UX of Fillet/Chamfer LPEJabiertxof1-3/+0
2018-09-14Fix a bug opening SVG from comand lines related to the DPI changes done. ↵Jabiertxof1-2/+3
Thanks Mark for testing!
2018-09-09copypaste bugfixMarc Jeanmougin1-6/+8
2018-08-31Fix bug 1789838 - Ask for confirmation before overwriting templateChristophe Lebras1-14/+23
2018-08-27Fix bug 1789010 - Sanitize template's file nameChristophe Lebras1-5/+4
2018-06-18Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot1-42/+42
This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
2018-05-04Add global guide controls to guides panelGeoff Lankow1-1/+1
2018-01-30Move classes derived from SPObject to own directory.Tavmjong Bah1-18/+25
A lot of header clean-up.
2018-01-24Always show an error dialog on failed savesEduard Braun1-0/+17
As a result of 2b8d9986140cc36ea6c0a3c3b88571983490e0ef the actual exceptions are now catched (instead of the generic Inkscape::Extension::Output::save_failed) but were not handled yet. Implement this handling for generic exceptions and output any potentially helpful information on what went wrong.
2017-12-22Show appropriate warning if non-existent export ID is specifiedEduard Braun1-0/+7
Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1739497
2017-12-05Fix bug#1643179. Guides lock lost on load. Patch proposed in #5Jabier Arraiza1-0/+5
2017-10-13Remove deprecated GNOME VFSStefano Facchini1-89/+0
Just use Gio::File when access to non-local files is needed.
2017-07-02Skip empty template informationChristophe Lebras1-14/+25
2017-07-02Manage template informationsChristophe Lebras1-4/+73
Template informations are added to the saved file. File name is is the same as template name Template is saved as default.svg only if requested by user.
2017-07-02Add function to save templateChristophe Lebras1-9/+25
Saves template as default. Does not save template informations yet.
2017-06-28Refactor profile directory use and promote IO::Resource get_path and ↵Martin Owens1-42/+3
get_filename methods
2017-06-04Porting the pre-92 file update message from 0.92.x to trunk:Marc Jeanmougin1-532/+4
New dialog when opening pre-0.92 files (with 90 dpi). I implemented it mostly based on mizmo's UI proposal (thanks!), with additional inputs from su_v with a few bugfixes from jabiertxof Also adds a commandline option --convert-dpi-method=[none|scale-viewbox|scale-document] to be able to batch convert files. Fixed bugs: - https://launchpad.net/bugs/1659229 (bzr r15729)
2017-06-04Porting the pre-92 file update message from 0.92.x to trunk:Marc Jeanmougin1-532/+4
New dialog when opening pre-0.92 files (with 90 dpi). I implemented it mostly based on mizmo's UI proposal (thanks!), with additional inputs from su_v with a few bugfixes from jabiertxof Also adds a commandline option --convert-dpi-method=[none|scale-viewbox|scale-document] to be able to batch convert files. Fixed bugs: - https://launchpad.net/bugs/1659229 (bzr r15703.1.26)
2017-03-20Implement rotation via desktop to window affine.Tavmjong Bah1-4/+2
Remove rotation via viewbox. Still some work to do... (bzr r15603)
2017-03-13Replace rectangle based zooming by affine based zooming.Tavmjong Bah1-1/+1
This allows a rotation to be included in the drawing to window mapping. General code cleanup. Added documentation. Any change to zooming behavior is probably a bug. (bzr r15592)
2017-01-20Fixes bugs in copy LPE's. #1656093:Paste path effect doesn't work on 0.92 ↵Jabiertxof1-1/+5
and #1656527:Copy & paste of group with shaped path corrupts it, in v0.92 Fixed bugs: - https://launchpad.net/bugs/1656093 - https://launchpad.net/bugs/1656527 (bzr r15426)
2017-01-10Remove debugging lines from last commit.Tavmjong Bah1-5/+0
(bzr r15407)
2017-01-10Another scaling option to test.Tavmjong Bah1-2/+67
(bzr r15406)
2016-12-26Fix header inclusion orderingAlex Valavanis1-2/+2
(bzr r15365)
2016-12-21Add string translatable pointed by MarenJabiertxof1-1/+1
(bzr r15345)
2016-12-16remove rollback to 15315Jabiertxof1-36/+234
(bzr r15295.1.26)