summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2016-07-11loplugin:nullptr: Better heuristic to determine code shared between C and C++Stephan Bergmann
Change-Id: I51e1c5fa4639e51fac90f92adf3d87d12960d589
2016-07-11Resolves: tdf#95729 move 'alt' accel enable/disable down to systemwindowCaolán McNamara
from dialog and send the 'alt' to the active floating window, if there is one, before trying the menubar. so popups like the calc autofilter one can display their accelerators when alt is pressed Change-Id: I52e45b72885b1b0a7362cecc30e41d218a48a58d
2016-07-11Resolves: tdf#100463 tolerence in contour editor doesn't workCaolán McNamara
probably since commit f51f03a46102333bac6a7fe06bc8538492f413a5 Author: Stephan Bergmann <sbergman@redhat.com> Date: Wed Mar 5 12:24:14 2014 +0100 Do not needlessly truncate MinMax argument before comparison with bounds Change-Id: I5c92f0af3e05ad68ed88fa860b36e8426e160bf9
2016-07-11opencl: OpenCLZone, detect CL device change and disable CL on crashTomaž Vajngerl
Guard OpenCL calls with OpenCLZone, so if a OpenCL call crashes we detect this and disable OpenCL so next time the user doesn't encounter the crash at the same calculation because he has a broken OpenCL drivers. Similar has been implemented for OpenGL with good results. Additionaly we persistently remember a known good OpenCL device ID and driver version so we can match this and perform calculation tests when they change. This is to ensure that the selected OpenCL device performs as we expect. In this commit the calculation tests aren't included yet. Remove complex static initializer in opencl wrapper library. Change-Id: I1a8b81ee31298731efcf63dc6a476955afc035e9 Reviewed-on: https://gerrit.libreoffice.org/27064 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-07-11Modify ImpGraphic class, GraphicReader context to use unique ptrMark Page
Change-Id: I51c3995f4a6e940a5235524eb94dd356b27ae8d7 Reviewed-on: https://gerrit.libreoffice.org/26955 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-10so the global Application GetAutoMnemonic is always true, simplifyCaolán McNamara
Change-Id: I6c23273bd02841f72b489535f8a546e561df94e8
2016-07-10ditch the application per-language IsAutoMnemonicEnabled settingCaolán McNamara
Change-Id: I9734ada09edb6544a332893a7c5d31730b0d081d
2016-07-10ditch the multiply dialog width * X where X is based on language thingCaolán McNamara
Which should be unnecessary since the vcl layout work and optimal size widgets, and its a small and arbitary set of languages for which its set. Change-Id: Ifa397218510ade251f795cdd9360d6bdccb115b7
2016-07-10ditch the font/screen-scaling thingCaolán McNamara
its of limited utility wrt the vcl layout work and optimal size widgets, and its confuses people looking for hidpi settings Change-Id: I37d21b480446f9fe2845b3a2d9fd59cdeddf1a93
2016-07-10making a disabled image from a 1 bit depth icon gives index assertsCaolán McNamara
cause the disabled color cannot be mapped to the 2 entries in the palette, so use 8bit dests if the src is 1bit regression from commit 507d0ded64db51a8826d07c507f612a6c02c3869 Author: Caolán McNamara <caolanm@redhat.com> Date: Tue Dec 1 12:18:57 2015 +0000 keep disable image at same depth as original seen when clicking on the image loaded from tdf#100632 Change-Id: Ic69bccfa0fc86707b4fd9e757d8374d80e4b0071
2016-07-09uitest: throw an exception instead of crashing when we can't find childMarkus Mohrhard
Change-Id: I0527a1d207a87b7ba8d2e65cb866fe3ea1f25af6
2016-07-08Resolves: tdf#100452 class Date full (BCE,CE) proleptic Gregorian calendarEike Rathke
... implementing signed years with year 0 gap. Date(31,12,-1) last day BCE Date(1,1,1) first day CE New class Date member functions: * AddYears(sal_Int16) to be used instead of aDate.SetYear(aDate.GetYear()+sal_Int16) to handle year 0 gap. * convenience GetNextYear() to be used insted of GetYear()+1 * convenience GetPrevYear() to be used insted of GetYear()-1 * AddMonths(sal_Int32) * operator=(const css::util::Date&) New class DateTime member functions: * operator=(const css::util::DateTime&) Made some conversion ctors explicit, specifically Date(sal_Int32) Adapted hopefully all places that used a sal_uInt16 year to use sal_Int16 where appropriate. Eliminated some quirks in date handling found on the fly. Added era handling to i18npool icu calendar setting interface, which missing was responsible for 0001-01-01 entered in Calc being set as -0001-01-01, hence subtracting one day resulted in -0002-12-31. Change-Id: I77b39fba9599ebd5067d7864f6c9ebe01f6f578f Reviewed-on: https://gerrit.libreoffice.org/27049 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
2016-07-08DialogControlFlags::Mod1Tab is never setCaolán McNamara
Change-Id: If681e1f296934c7e20934b0e000a3288f989ed35
2016-07-08ScrollFlags::NoErase is never setCaolán McNamara
Change-Id: I0cd0140b26100c6cd6d91ad060526310ef2ba7f6
2016-07-08ScrollFlags::NoInvalidate is never setCaolán McNamara
Change-Id: I7646b9572429540704a6f84734f647c10540825d
2016-07-08ScrollFlags::NoWindowInvalidate never setCaolán McNamara
Change-Id: Ib1f0f85fc6c1b68fcebdf94635536a9bdba06d93
2016-07-08PosSizeFlags::Dropdown is never setCaolán McNamara
Change-Id: I22d43822a54ec80b01b889cb4ab32073fdd2a3d0
2016-07-08loplugin:redundantcast: redundant static_casts in vclStephan Bergmann
Change-Id: Ib543e45d8eb1d54ef5c27769c601379fe615b23d
2016-07-08Resolves: rhbz#1352965 gtk3 infinite clipboard recursion with clipit installedCaolán McNamara
Change-Id: Ib67afaf532b8409e05fffbf1b8312d664460567d
2016-07-08if mpCurrentProgram and pProgram are NULL this crashesMarkus Mohrhard
See http://crashreport.libreoffice.org/stats/signature/OpenGLProgram::Reuse%28%29 Change-Id: I2d1c9d9faff05d0d57a2c217a9ee594b1c22b61d Reviewed-on: https://gerrit.libreoffice.org/27043 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-08GSoC notebookbar: container with prioritySzymon Kłos
+ extended vcl builder to parse priority + IPrioritable interface for controls with priorities + added IPrioritable as a base for VclContainer + Added PriorityHBox - box which shows controls if we have enough space PriorityHBox listen vcl events from SystemWindow to detect Resize Change-Id: I74ac1a80e7d0a061f5e7a8584dbb2abf956053c7 Reviewed-on: https://gerrit.libreoffice.org/26983 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-08renamed local var 'clipRegion' to silence werrorArmin Le Grand
Had to rename 'clipRegion' to 'localClipRegion' to silence a warning created by [-Werror=shadow]. The shadowed entry is a function definition, so in this case the warning is questionable and maybe unwanted by the compiler Change-Id: I05aa93ad1d9b34dc8e82a4a2a099cf8070c01463
2016-07-08gtk3: this is why the active position in a menu jumps to some weird placeCaolán McNamara
if there is a reason for this then perhaps it needs to be protected with pEvent->window == widget_get_window(pThis->getMouseEventWidget() Change-Id: I714b67c3e6ace932a605dcd00d337c92c5fdfd19
2016-07-08loplugin:nullptrStephan Bergmann
Change-Id: I5878df00006ca8a1b4e249c4b3775f21c610d151
2016-07-07loplugin:passstuffbyref also for {css::uno,rtl}::ReferenceStephan Bergmann
Change-Id: Icd5cc30d88f514a724dfe4858d0077650584820d
2016-07-07tdf#82214 optimize PatternFillPrimitive and SVGArmin Le Grand
Use buffering in the drawinglayer, and don't do slow stuff in the windows gdi renderer. Conflicts: svgio/source/svgreader/svgstyleattributes.cxx Change-Id: Id955ee6a3b03e568c2678f02d77af35d2e5ba1d4
2016-07-07tdf#82214 optimize performance for primitivesArmin Le Grand
See svg bug doc, which is processed quite slowly. Beyond needing faster renderers, there is also demand to improve the handling of primitives created by SVG import. Conflicts: drawinglayer/source/primitive2d/patternfillprimitive2d.cxx vcl/win/gdi/gdiimpl.cxx Change-Id: I10992a5746b8b2d6b50e3ee3fe415a035685c9ba
2016-07-07tdf#99165 avoid passing empty control points for beziersArmin Le Grand
Some graphic sub systems have problems to create correct geometry for fat line drawing when 'empty' control points are handed over for bezier curves. Avoid this by offering the mathematical correct default in that cases. Change-Id: I20f484ef4537076889d832d83581844690514acc
2016-07-07tdf#50613 add close_path to correctly show closed polygonsArmin Le Grand
For closed polygons it is essential to add a close_path to correctly show the last line join. Change-Id: Ib6f37bbc5e85133f21a936b186eb0ab12773f7da
2016-07-07tdf#50613 speedup fat line drawing on linux using cairoArmin Le Grand
Drawing fat lines is slow on linux due to X11 having no direct support for it. This leads to creating the PolyPolygon geometry for each fat line, then tesselate and draw as trapezoids. This is not buffered in any way and is done at each paint. As a side effect, fat lines composed of multiple anti-aliased lines also show errors since AA-ed edges do not add up graphically. Since we have cairo now available it makes sense to use it for fat line drawing, it is markedly faster despite being a software renderer. No such gains for PolyPolygons though. Change-Id: If4001556e2dd4c15ecf2587cad6ce1e864558f2d
2016-07-07loplugin:passstuffbyref also for {css::uno,rtl}::ReferenceStephan Bergmann
Change-Id: Ia113176ebeca497c557ace01408467b17bcdfe31
2016-07-07Resolves: rhbz#1351224 wayland grab related crashesCaolán McNamara
only one popup active at a time. Try and find the right path through the uncanny valley which allows popups to appear, to get all mouse input that happens to them, forward keyboard input to their parents, dismiss when the mouse is clicked outside them and not crash if another popup wants to appear to replace it Change-Id: If4b39df41ca3dccde1e506d5328b06731a8c80eb Reviewed-on: https://gerrit.libreoffice.org/27005 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-07-07FloatWinPopupFlags::NoMouseRectClose was never setCaolán McNamara
Change-Id: I5df81113c5ab4009eff82ec0d8c15094a1e24a3a
2016-07-07FloatWinPopupFlags::NoAutoArrange is never setCaolán McNamara
Change-Id: I3b3173d4d0041585a5b6a0db58cace6cf46db6ca
2016-07-07FloatWinPopupFlags::NoFocusClose is only set, never readCaolán McNamara
Change-Id: Ide67b9279b626d3427c93891d27378ffd1f004cc
2016-07-07drop commented out FloatWinPopupFlags linesCaolán McNamara
Change-Id: I6063e0e5fdf53245dee610c72f8b9fa4543d9cae
2016-07-07drop SAL_FLOATWIN_NOAPPFOCUSCLOSECaolán McNamara
Change-Id: I42c73f8f5493c01be8d999522da9a5f88dfdc713
2016-07-07g_warning->SAL_WARNCaolán McNamara
Change-Id: If2a1fa3514069f5a5dc4ab9a6b853833e39bab01
2016-07-07gtk3: if a popup is withdrawn close the popupCaolán McNamara
we don't always get the click that causes the popup to be withdrawn when the mouse is clicked outside the application during a grab Change-Id: I2dbef23813972ebd75c8899711a2d1309110f968
2016-07-07make this a little more clearCaolán McNamara
Change-Id: I1e13ba97bd057b755fc65b2c90a6b74669422b22
2016-07-06OSL_TRACE->SAL_INFO for the Invalidate all children outputCaolán McNamara
Change-Id: Ib5db114502ebf86ab1581104b914c84eceb50829
2016-07-06tdf#77667 Remove gcc3 workaroundkrishna keshav
where it could handle instantiated objects as parameters Removed objects of 'Point' as 'Point()' can be instantiated as a parameter. Change-Id: Iad2dceed6dfe8bd3cc555758c518620cd975a8fc Reviewed-on: https://gerrit.libreoffice.org/26967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-07-06restore loplugin:vclwidget checking for calling clear() on VclPtr fieldsNoel Grandin
Change-Id: I85eda1c33016c1461d897fc0a3b70457209a7405 Reviewed-on: https://gerrit.libreoffice.org/26806 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-05when disposing popup menus, don't leave dangling pointersNoel Grandin
Change-Id: Ia1b49937ba0693a567097367b99b75a3011666bf Reviewed-on: https://gerrit.libreoffice.org/26960 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-07-05changes to floating windows shouldn't trigger re-layout on their parentCaolán McNamara
cause they are not inside them so don't affect the parents layout Change-Id: I3c08b874ac450fb4c824b62a4e882df93c34fa68
2016-07-05Clarify calculation precedence tdf#39440Muhammet Kara
Use parentheses to clarify the code. Change-Id: I864dc6dacadb5b9ba9dca8e0abd9fa4e6db1eddc Reviewed-on: https://gerrit.libreoffice.org/25677 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-07-05Remove unused DELEGATE_PLUGGABLE_RENDERER to simplify mtf codeMark Page
The code was added July 2008 as a way to delegate mtf action rendering to external services. Change-Id: I5b2277fada1a8ad85e82cb2c10c822df09da836a Reviewed-on: https://gerrit.libreoffice.org/26371 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-07-04Modify the ImpGraphic class, mpGfxLink to use an unique pointerMark Page
Change-Id: I74eb2347970ef19f7a215b86bfeae9945c07dbea Reviewed-on: https://gerrit.libreoffice.org/26889 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-04merge vcl::DisplayConnectionDispatch with vcl::DisplayConnectionNoel Grandin
Change-Id: I0eb83905896e1d7549a5bd4adde45e9d69209401 Reviewed-on: https://gerrit.libreoffice.org/26888 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-04this flush refers to the gtk2/X implCaolán McNamara
where there is two connections to the display, for gtk3 there is just the one connection Change-Id: I2da02efa12205ab4ca39d9585965e5d6d0adf474