summaryrefslogtreecommitdiffstats
path: root/src/object/sp-namedview.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-07-29Add Patrick improvements to verbs toggle menu itemsJabiertxof1-2/+3
2019-07-28Fix some issues with inverse coordinates pointed by MarenJabier Arraiza1-2/+2
2019-07-28Add verbs update checkbuttons in menu. Also do improvements requested in ↵Jabier Arraiza1-1/+7
https://gitlab.com/inkscape/inkscape/issues/323 and improve XRay rendering
2019-04-02Replace IS_NAN with std::isnan (exists since C++11)Patrick Storz1-3/+3
2019-03-03Enable global snapping preference by defaultPatrick Storz1-1/+1
Ensures consistent behavior with previous versions, i.e. before the switch was introduced in d69b5fe84fd438a218e6198af585f8532f0d8e70. Try to improve help string.
2019-02-20Fix query for monitor dimensionsPatrick Storz1-4/+0
The call to Gdk::Display::get_monitor_at_window() in Inkscape::UI::get_monitor_geometry_at_window() requires the underlying GdkWindow to be fully initialized. This is achieved by calling "realize()" before attempting to read that information. Previously we used to show the window first (which implies realizing it) which worked around the issue. However it required us to hide and show it once again later if we wanted to move it in order for the window manager's routines to sanitize the position to kick in.
2019-02-20Rescue code for restoring last used window geometryPatrick Storz1-7/+32
It was accidentally dropped in 8b1840f9507f10911f63fc00b9885354ead99d53 Also show window *after* setting position/size. This gives the window manager the chance to move an off-screen window back into the visible desktop bounds (e.g. after a monitor was disconnected).
2019-01-02modernize loopsMarc Jeanmougin1-10/+10
2019-01-02Prevent reverting a drawing from closing Inkscape when only one window is open.Tavmjong Bah1-2/+4
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-06SPAttributeEnum typed function argumentsThomas Holder1-1/+1
2018-10-01Use _WIN32 instead of WIN32Eduard Braun1-1/+1
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-09-27Add preference for default global snapping and make it falseMartin Owens1-1/+3
2018-06-18Run clang-tidy’s modernize-use-equals-default pass.Emmanuel Gil Peyrot1-2/+1
This replaces empty constructors and destructors with the default keyword.
2018-06-18Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot1-38/+38
This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
2018-05-04Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin1-11/+11
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
2018-05-04Add global guide controls to guides panelGeoff Lankow1-0/+7
2018-04-29Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin1-11/+11
2018-01-30Move classes derived from SPObject to own directory.Tavmjong Bah1-0/+0
A lot of header clean-up.
2018-01-07Limit default window size to monitor dimensionsEduard Braun1-0/+10
2018-01-07Make natural window size default and fix small window sizeEduard Braun1-5/+8
- Clamp "Small" window size to 600x600 Everything smaller seems pretty unusable but can be discussed. This fixes bug #1659256. - Make sure "Large" window size is at least as large as "Small" to avoid embarassing user reports. - add "Default" as new window size and (surprise) make it the default This will not influence the initial size request at all and should result in the natural window size (unless overriden by the window manager) and should be a suitable default for all cases. Fixed bug: - https://bugs.launchpad.net/inkscape/+bug/1659256
2018-01-07Use proper monitor for deriving geometryEduard Braun1-9/+9
- when restoring from document: use monitor closest to stored document location on screen - when using default size: use monitor Inkscape is launched on (we always used this before)
2018-01-07Switch sp-namedview.cpp to use the convenience functionEduard Braun1-16/+2
2018-01-07Let GTK+ / window managers handle window position sanitizingEduard Braun1-39/+5
Exploit that an unmapped window's size/position is automatically adjusted when it is first mapped which can be emulated by moving the window while it is hidden.
2018-01-07Make stored geometry and default window size enumsEduard Braun1-10/+12
2018-01-07Namedview: Use proper monitor to derive monitor_geometryEduard Braun1-15/+6
Inkscape does not necessarily start on the primary monitor. GTK+ did not reveal it's secrets (i.e. it seems undocumented) but empirically the monitor having the cursor is the monitor the initial window will be placed on.
2017-12-25Use a macro for GtkMM version checksAlexander Valavanis1-3/+3
2017-12-05Fix bug#1643179. Guides lock lost on load. Patch proposed in #5Jabier Arraiza1-7/+6
2017-07-12Prevent crash when get_primary_monitor() returns nullptr. (Second place.)Tavmjong Bah1-1/+5
2017-06-27GdkScreen deprecation fixesAlexander Valavanis1-10/+36
2017-03-20Implement rotation via desktop to window affine.Tavmjong Bah1-97/+1
Remove rotation via viewbox. Still some work to do... (bzr r15603)
2017-03-13Replace rectangle based zooming by affine based zooming.Tavmjong Bah1-5/+5
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-02-11Fix and improve window sizing and positioning behavior when opening new ↵Eduard Braun1-26/+38
documents * The option "Remember and use last window's geometry" often had no effect. * When setting "Default window size" to "Large" the functions gdk_screen_width() / gdk_screen_height() were used to derive the size of the Inkscape window. However those functions return the combined screen size of all attached monitors resulting in window sizes that were too large. Now the size of the primary display is used. * In many cases the Inkscape window was moved to the top left corner of the combined screen area (which could be on a different monitor at best and outside of the visible screen area at worst). Inkscape should always spawn on the primary monitor now when not restoring the previous position. Fixed bugs: - https://launchpad.net/bugs/1190828 - https://launchpad.net/bugs/195683 - https://launchpad.net/bugs/568867 - https://launchpad.net/bugs/1654464 (bzr r15507)
2017-02-04Disable rotate guides in doc rotationJabiertxof1-21/+21
(bzr r15470)
2016-10-10Fix some canvas item problems and refresh items on rotateJabier Arraiza Cenoz1-4/+10
(bzr r15142.1.10)
2016-10-10Fix some canvas problems and refactorizationJabier Arraiza Cenoz1-2/+35
(bzr r15142.1.8)
2016-10-09Added widget to to rotateJabier Arraiza Cenoz1-5/+4
(bzr r15142.1.7)
2016-10-08Keep selectionJabier Arraiza Cenoz1-28/+15
(bzr r15142.1.5)
2016-10-08add rotate from current desktop centerJabier Arraiza Cenoz1-19/+21
(bzr r15142.1.3)
2016-10-02Doc rotate startJabier Arraiza Cenoz1-1/+46
(bzr r15142.1.1)
2016-08-03Removed unused includes, decreased compilation time. Once againAdrian Boguszewski1-2/+0
(bzr r15034)
2016-07-28Reverted changes to r15024 after many building problemsAdrian Boguszewski1-0/+2
(bzr r15027)
2016-07-28Removed unused includes, decrease compilation timeAdrian Boguszewski1-2/+0
(bzr r15025)
2016-07-14Renamed children list in SPObjectAdrian Boguszewski1-2/+2
(bzr r14954.1.21)
2016-07-13Second part of new SPObject children listAdrian Boguszewski1-6/+6
(bzr r14954.1.19)
2016-06-08Really remove last of svg_units.Tavmjong Bah1-10/+0
(bzr r14964)
2016-06-08Remove unused svg-units variable.Tavmjong Bah1-18/+18
(bzr r14963)
2016-06-04Fix for bug on previous commit about guides lockJabier Arraiza Cenoz1-1/+0
(bzr r14949)
2016-06-03Fix a bug in lock guides pointed by suv on IRCJabier Arraiza Cenoz1-1/+1
(bzr r14948)
2016-06-01Remove last use of getSVGUnit() and remove all remnants of this abomination.Tavmjong Bah1-6/+0
(bzr r14939)