summaryrefslogtreecommitdiffstats
path: root/src/file.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove OCALMarc Jeanmougin2019-11-011-206/+1
|
* Move imported files to position of mouse pointer when droppedPatrick Storz2019-10-071-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.
* Templates: Accept non-underscored variants of "inkscape:templateinfo"Patrick Storz2019-08-311-5/+5
|
* Replace deprecated Gtk::Main::quit() callKarl Cheng2019-06-161-4/+4
| | | | | As this should only be called in a console context, we can replace Gtk::Main::quit() with Gio::Application::quit().
* Remove unused code for NEW_EXPORT_DIALOGPatrick Storz2019-03-271-130/+0
| | | | | Functionality seems to have been replaced by "Save a Copy" and the PNG export dialog respectively.
* Fix adding/lookup of recent files.Patrick Storz2019-03-271-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
* Misc. typosluz.paz2019-03-261-1/+1
| | | Found via `codespell`
* Make InkscapeApplication responsible for managing documents and windows.Tavmjong Bah2019-03-151-136/+19
| | | | Any change from previous behavior is a bug.
* Save default template as "default.$lang.svg" if presentPatrick Storz2019-03-101-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
* Give more descriptive names to document file related variables and functions.Tavmjong Bah2019-02-201-14/+14
| | | | Makes searching through code for them easier.
* Move logic to build localized filenames into io/ressource.cppPatrick Storz2019-02-171-2/+1
| | | | | Now all that's needed to prefer a localized version of the file (if available) is a Boolean.
* Revert to "default.$lang.svg" as name for default templatesPatrick Storz2019-02-161-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.
* Remove sp_create_window().Tavmjong Bah2019-01-191-15/+5
|
* Use ink_file_open in sp_file_open.Tavmjong Bah2019-01-151-48/+47
|
* simplify translated default.svgMarc Jeanmougin2019-01-131-0/+3
|
* Remove unneeded unreferencing. Add check on reference count.Tavmjong Bah2019-01-061-7/+1
|
* modernize loopsMarc Jeanmougin2019-01-021-4/+4
|
* desktop-widget: Move function to correct headerAlexander Valavanis2018-11-271-1/+1
|
* Clarify licensesMax Gaukler2018-11-081-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
* Remove 'document-private.h' where not needed plus some other header cleanup.Tavmjong Bah2018-10-221-1/+0
|
* Merge branch ↵Marc Jeanmougin2018-10-181-14/+23
|\ | | | | | | 'bugfix-1789838-confirmation-needed-before-overwriting-template' of gitlab.com:ccrb/inkscape
| * Fix bug 1789838 - Ask for confirmation before overwriting templateChristophe Lebras2018-08-311-14/+23
| |
* | Move some files to 'io' directory.Tavmjong Bah2018-10-131-1/+1
| |
* | Remove #include "config.h" wherever possibleEduard Braun2018-10-011-1/+1
| |
* | Use _WIN32 instead of WIN32Eduard Braun2018-10-011-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
* | End fix bug bug:#1769679 #18; Crash when opening file with live path effectJabier Arraiza2018-10-011-1/+6
| |
* | improbe UX of Fillet/Chamfer LPEJabiertxof2018-09-141-3/+0
| |
* | Fix a bug opening SVG from comand lines related to the DPI changes done. ↵Jabiertxof2018-09-141-2/+3
| | | | | | | | Thanks Mark for testing!
* | copypaste bugfixMarc Jeanmougin2018-09-091-6/+8
|/
* Fix bug 1789010 - Sanitize template's file nameChristophe Lebras2018-08-271-5/+4
|
* Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot2018-06-181-42/+42
| | | | | This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
* Add global guide controls to guides panelGeoff Lankow2018-05-041-1/+1
|
* Move classes derived from SPObject to own directory.Tavmjong Bah2018-01-301-18/+25
| | | | A lot of header clean-up.
* Always show an error dialog on failed savesEduard Braun2018-01-241-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.
* Show appropriate warning if non-existent export ID is specifiedEduard Braun2017-12-221-0/+7
| | | | | Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1739497
* Fix bug#1643179. Guides lock lost on load. Patch proposed in #5Jabier Arraiza2017-12-051-0/+5
|
* Remove deprecated GNOME VFSStefano Facchini2017-10-131-89/+0
| | | | Just use Gio::File when access to non-local files is needed.
* Skip empty template informationChristophe Lebras2017-07-021-14/+25
|
* Manage template informationsChristophe Lebras2017-07-021-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.
* Add function to save templateChristophe Lebras2017-07-021-9/+25
| | | | | Saves template as default. Does not save template informations yet.
* Refactor profile directory use and promote IO::Resource get_path and ↵Martin Owens2017-06-281-42/+3
| | | | get_filename methods
* Porting the pre-92 file update message from 0.92.x to trunk:Marc Jeanmougin2017-06-041-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)
* Implement rotation via desktop to window affine.Tavmjong Bah2017-03-201-4/+2
| | | | | | Remove rotation via viewbox. Still some work to do... (bzr r15603)
* Replace rectangle based zooming by affine based zooming.Tavmjong Bah2017-03-131-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)
* fixing to new trunkJabiertxof2017-01-241-22/+548
|\ | | | | (bzr r15142.1.38)
| * Fixes bugs in copy LPE's. #1656093:Paste path effect doesn't work on 0.92 ↵Jabiertxof2017-01-201-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)
| * Remove debugging lines from last commit.Tavmjong Bah2017-01-101-5/+0
| | | | | | (bzr r15407)
| * Another scaling option to test.Tavmjong Bah2017-01-101-2/+67
| | | | | | (bzr r15406)
| * Fix header inclusion orderingAlex Valavanis2016-12-261-2/+2
| | | | | | (bzr r15365)
| * Add string translatable pointed by MarenJabiertxof2016-12-211-1/+1
| | | | | | (bzr r15345)