summaryrefslogtreecommitdiffstats
path: root/src/io (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix CMakeLists for stream classesAlexander Valavanis2018-11-181-12/+12
|
* Move i/o stream classes into own directory. Add README.Tavmjong Bah2018-11-1815-0/+13
|
* Clarify licensesMax Gaukler2018-11-0828-153/+132
| | | | | | - 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 unused headers in src/io/Emmanuel Gil Peyrot2018-11-055-212/+0
|
* cleanup: remove Base64OutputStreamThomas Holder2018-10-293-462/+0
| | | | | It was only used in one place. Use "g_base64_encode" instead, like the rest of the codebase.
* cleanup: remove most of uristream.cppThomas Holder2018-10-293-369/+35
| | | | | | | | | | Replace UriInputStream -> FileInputStream Replace UriOutputStream -> FileOutputStream Remove UriReader Remove UriWriter UriReader, UriWriter, and the acutal URI-based API of UriInputStream and UriOutputStream was all unused/dead code.
* Fix use after free in error reportingJan Horak2018-10-161-1/+4
|
* fix vi modelines: encoding -> fileencodingThomas Holder2018-10-151-1/+1
|
* Move some files to 'io' directory.Tavmjong Bah2018-10-1312-22/+1355
|
* Remove #include "config.h" wherever possibleEduard Braun2018-10-013-10/+1
|
* Use _WIN32 instead of WIN32Eduard Braun2018-10-013-5/+5
| | | | | | | | 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
* Inkscapestream: Make some things const and avoid unnecessary copiesEduard Braun2018-09-292-9/+8
|
* Purge gunichar from InkscapestreamEduard Braun2018-09-2914-47/+44
| | | | | | | | | | None of these functions seems to expect an actual gunichar (which is a 32-bit type and can hold any UTF-32 or UCS-4 character code, also known as a Unicode code point). Instead we want UTF-8 encoded character data (i.e. gchar, which is equivalent to char) that can be output byte-wise to form a valid UTF-8 encoded string.
* Inkscapestream: Fix write methods for string typesEduard Braun2018-09-291-7/+7
| | | | | | | | | | | As we output UTF8 encoded strings to normal streams we can (and should) put one byte at a time. Iterating over an ustring will give us "unichar"s with up to four bytes, though, which is bound to fail when written to a stream. Using Glib::ustring::raw() gives us a std::string with the raw (but still UTF8 encoded) character array that can be iterated byte-wise and output to the stream as-is.
* Inkscapestream: Incredible speed up for writing of stringsEduard Braun2018-09-221-2/+3
| | | | | | | | | | | | | This tremendously speeds up saving long strings which previously had to do "n!" lookups (where n is the number of chars) as Glib::ustring::operator[] has to iterate over all preceding unichars in each iteration to find the requested unichar. A file with a CDATA section of ~1 MB saves in a few milliseconds now, previously it didn't finish even after some minutes. Fixed bugs: - https://bugs.launchpad.net/inkscape/+bug/1793877
* Fix eaae266840146a0faa3332f253ba7bd63eecbb21Eduard Braun2018-09-151-1/+6
| | | | (cherry picked from commit 11504fc9060729939703c380bcaa71cfc36ea351)
* Support reading and writing pipesRainer Keller2018-09-151-0/+19
| | | | | | | | | | | | This is useful when using inkscape from the terminal and piping the output to further programs. Example usage: cat vector.svg | inkscape --export-png - --file - | convert - out.jpg Fixes bug: 171016 (forward-ported from commit fdb3b41a37f5c37bbb8e49d59e7e6195d5363fcb)
* Working on iconsJabiertxo Arraiza Cenoz2018-07-271-1/+1
|
* Fixing paths to allow themes and icons inside main inkscape instalation not ↵Jabier Arraiza2018-07-262-2/+10
| | | | only at home
* Fix a win compiling bug and coding styleJabiertxo Arraiza Cenoz2018-07-251-3/+4
|
* Working on open folders on WINJabiertxo Arraiza Cenoz2018-07-251-2/+5
|
* Fixing coding styleJabier Arraiza2018-07-212-15/+12
|
* Working on themesJabier Arraiza2018-07-212-2/+80
|
* Run clang-tidy’s modernize-use-noexcept pass.Emmanuel Gil Peyrot2018-06-181-4/+4
| | | | This removes deprecated dynamic exception specifications.
* Run clang-tidy’s modernize-deprecated-headers pass.Emmanuel Gil Peyrot2018-06-182-2/+2
| | | | This renames most C <*.h> includes into C++ <c*> includes.
* Run clang-tidy’s modernize-use-equals-default pass.Emmanuel Gil Peyrot2018-06-183-25/+18
| | | | | This replaces empty constructors and destructors with the default keyword.
* Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot2018-06-189-68/+68
| | | | | This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
* Run clang-tidy’s modernize-use-override pass.Emmanuel Gil Peyrot2018-06-187-128/+128
| | | | | This adds the override specifier on all methods which override a virtual method, whether they were already virtual or missing this specifier.
* Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin2018-05-044-6/+6
| | | | This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
* Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin2018-04-294-6/+6
|
* Removing sample meson build files.Felipe Corrêa da Silva Sanches2018-03-171-41/+0
| | | | | | | | | | These will be kept at a separate "meson_build" branch at https://gitlab.com/fsanches/inkscape/ Learn more at: * "Using Meson's automatic dependency manager to build GTK" ** https://www.youtube.com/watch?v=2dB80CjH_3Q * "The Meson Build System - 4+ years of work to become an overnight success" ** https://www.youtube.com/watch?v=gHdTzdXkhRY
* [meson-build] libio + zlibFelipe Corrêa da Silva Sanches2018-03-171-0/+41
|
* Move classes derived from SPObject to own directory.Tavmjong Bah2018-01-301-1/+4
| | | | A lot of header clean-up.
* Misc. typosluzpaz2017-12-041-1/+1
| | | | | | Please confirm typos in the following `doc/nr-filter-interface.txt` `share/symbols/BalloonSymbols.svg` .
* Misc. typosUnknown2017-11-072-3/+3
| | | | | | | | | | | | Found using `codespell -q 3 -w --skip="*.svg,*.po,*.ts,./share/tutorials,./src/libavoid,./packaging/win32/languages,./man,./src/2geom" -I ../inkscape-whitelist.txt` whereby whitelist file contained: ``` dum iff glight substract te upto ```
* Define INKSCAPE_FONTSDIR and add USER/SYSTEM resource paths for fontsEduard Braun2017-10-202-0/+3
| | | | | (Note we always had an empty /share/fonts directory that didn't seem to have any purpose yet)
* Merge branch 'smartpointer_refactor' of gitlab.com:jali/inkscapeMarc Jeanmougin2017-10-202-3/+3
|\
| * Refactor Util::ptr_sharedJan Lingscheid2017-10-182-3/+3
| | | | | | | | | | Util::ptr_shared<T> was only used in its <char> specialization, so it is now refactored into a non-template class. Using it with arbitary classes was dangerous anyway.
* | Drop obsolete wrapper around Glib::file_open_tmpStefano Facchini2017-10-192-23/+0
| |
* | Remove all unused makefile.inStefano Facchini2017-10-191-17/+0
|/
* Create parent directories when opening a file for writingEduard Braun2017-09-271-1/+11
| | | | | | | | | | - this affects callers of Inkscape::IO::fopen_utf8name - fixes at least two issues: - creating custom shortcuts failed when "/inkscape/keys" was missing in the configuration directory, see https://bugs.launchpad.net/inkscape/+bug/1719629 - autosaving probably failed if a non-existent directory was specified
* Expand io api for tav, resolve filename to local directoryMartin Owens2017-07-312-0/+27
|
* Replace deprecated SHGetSpecialFolderLocation with SHGetFolderLocationEduard Braun2017-07-081-2/+2
|
* Hackfest Regression: Fix profile_path() not returning the correct directoryEduard Braun2017-07-081-3/+8
| | | | Also drop some unnecessary defines from the pre-XP era
* Merge branch 'su-v/inkscape-fix-MSYS2-libsoup-req'Eduard Braun2017-07-062-2/+2
|\
| * Update MSYS2 port for new dependency (libsoup)su-v2017-07-062-2/+2
| | | | | | | | | | | | - update script to install dependencies - update InstallMSYS2.cmake - fix Windows builds (uint -> unsigned int)
* | http: Migrate to new LibSoup APIAlexander Valavanis2017-07-061-1/+1
|/
* Add new libsoup based http access with caching and asyncMartin Owens2017-07-064-0/+215
|
* Make path scanning recursive, add ustring get_filenames and clean upMartin Owens2017-07-052-16/+16
|
* Move directory scanners to new get_filenames(...) callsMartin Owens2017-07-021-3/+11
|