summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2015-07-30tdf#92765: Show the real icon instead of a black square with gtk vclplug.Jan Holesovsky
This partially brings back the behavior before 10a3db37377a68ec7529bbfbf876c852d58b7ae4. Change-Id: I5b372ab56105c05dda6ecb9aa1eed1c6a0c72ea8
2015-07-30remove PostScrollEvent and PostZoomEventNoel Grandin
not used anymore Change-Id: I9db73a1bfcdb6669310d606b101b1ffdbb2df07f
2015-07-30loplugin:unusedmethodsNoel Grandin
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971 Reviewed-on: https://gerrit.libreoffice.org/17378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-29tdf#92982 vcl::Cursor: handle rendercontextMiklos Vajna
With this, vcl::Cursor does not paint on the vcl::Window directly, and in case the output should be something other than pRenderContext, it should be a one-liner change to do that. Change-Id: I57833f6f8589286260d96f412f1fcc681e6c5c8c
2015-07-29This OWNERDRAW thing has been commented-out since 2003Tor Lillqvist
Change-Id: I3170dec0578e0e54a2edb85e0a3a8fcd796b94ae
2015-07-29tdf#92982 vcl rendercontext: move buffer from PaintHelper to ImplFrameDataMiklos Vajna
With this, code that wants to take a persistent render context (e.g. vcl::Cursor) will be able to do so. This commit just moves the buffer, though: it's still created / deleted by PaintHelper. Having it in ImplFrameData means that we'll have one buffer / one system window: i.e. toplevel window and its sub-widgets share a buffer. Change-Id: Ic37220a2a483a7389aa04cd4313b6fc61a5408bf
2015-07-29AddFontResourceExW exists since Windows 2000Tor Lillqvist
Change-Id: If81b165bf910661a2742ab4fd5123ad8b97ae7d2
2015-07-29fix windows buildNoel Grandin
after commit b97aa3faa03e5944aac8f3c35a8c198fba295e83 "Remove the unnecessary type definition: HPBYTE" Change-Id: Ifd73ecb7e923ef38826d24c3d251be29eda472bf
2015-07-29Remove the unnecessary type definition: HPBYTEDaniel Robertson
HPBYTE is a duplicate defintion of Scanline as seen below. include/vcl/salbtype.hxx: 34: typedef sal_uInt8* HPBYTE; 35: typedef HPBYTE Scanline; Remove the definition of HPBYTE and inline the definition of Scanline. Replace all instances with sal_uInt8*. Change-Id: I8a79a9d6c45af57fbabf8d3e6a04a1b5eba15a7b Reviewed-on: https://gerrit.libreoffice.org/17175 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-28tdf#92982 vcl: move Invert() member functions from vcl::Window to OutputDeviceMiklos Vajna
With this, vcl::Cursor will be able to paint to a vcl::RenderContext, too; not just directly, which is needed for double-buffering. Change-Id: I868f6cd9b08afe59611ef266911a894a26cacedc
2015-07-28Avoid uncommon C++ style of forward declaration combined with its useTor Lillqvist
Change-Id: I870821ec64653391caf516cbd3aa890637d7dd24 Reviewed-on: https://gerrit.libreoffice.org/17367 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-27remove some unused definesNoel Grandin
Change-Id: Ib2d50e8c29ccbc5ffcb52cdff4ae3eaae9a62188 Reviewed-on: https://gerrit.libreoffice.org/17332 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-27README.opengl: Some notes about env. vars. useful for OpenGLTomaž Vajngerl
Change-Id: I25e50bdead1ad1e39be3d527685230c84f08a292
2015-07-24gtk3: connect to the eventbox and not toplevel for mouse eventsCaolán McNamara
this leaves whatever magic gtk3 under wayland is doing on the toplevel alone so the window can be resized and the title bar responds to clicks as expected Change-Id: I9952cb719f3148660e17951b4f66a2525e11a6df
2015-07-24gtk3: insert an event box between toplevel and contentsCaolán McNamara
Change-Id: Ic78aa62baaa4260645a80ffb6704103440339595
2015-07-24-Werror,-Wmismatched-tagsNoel Grandin
Change-Id: I85f4ddb5b3c441b0fc18e3d255dded7456b69ddd
2015-07-24gtk3: draw/paint to the fixed containerCaolán McNamara
which fills the toplevel window, rather than directly to the toplevel window. It makes no difference for X, but for wayland the window decorations are part of the toplevel window, dropping down a level means we don't draw out menu bar under the window decoration space Change-Id: Icec400efacd16b5d901107c13b6fa90c59cad0e6
2015-07-24fixed crashSzymon Kłos
While opening folders in SvtFileView using doubleclick, sometimes GtkSalFrame::gestureLongPress method is executed with a null frame pointer and LO crashes. I noticed this only with remote dirs, probably this bug occurs only when the doubleclick handler routine takes a lot of time. Change-Id: I432046994b3e1662bd7e499681bd20e9696b2d52
2015-07-24opengl: don't cache checkboxes for nowTomaž Vajngerl
Change-Id: I67d0dcb48d1843587abbc1dc0f7da1f8057b281e
2015-07-24Use LRU map for caching of native widgetsTomaž Vajngerl
Change-Id: Ia0423dac5309aabc5e81357cf4f67b5ee14bab31
2015-07-24tdf#92018 cache native controls for X11 OpenGL backend (for now)Tomaž Vajngerl
Change-Id: I85c7cc01113bc4ac810c450a6460059463cc8e03
2015-07-24convert ImageAlign to enum classNoel Grandin
Change-Id: I22e2e66a1f0b230403ad1d9c1f5b7f34a6ee6ea5
2015-07-24convert WindowAlign to scoped enumNoel Grandin
Change-Id: I028d108b3a83bd5541d873c4d03b87339cd3be52
2015-07-24convert WALLPAPER constants to scoped enumNoel Grandin
Change-Id: I3b4b4e8a94904e22823a263bd5446a2e1aa47661
2015-07-23Resolves: tdf#92689 grab keyboard focus to parent, not to earlier generationsCaolán McNamara
Change-Id: I4c95f52f0b22ab574f608b93c172e0398e81974b
2015-07-23inline a handful of use-once #definesNoel Grandin
Change-Id: Id2654555c4042f8c0bdbd6bab6507e705f08326b
2015-07-22tdf#92600: Restore ability to apply font settings to controlsKatarina Behrens
SmShowSymbol handles font/fg/bg settings by itself, so make ApplySettings noop there. This partially reverts commit b010e4074e5d5ee3a3905f1351f04efafe937c2a Change-Id: Ib5074684ef1277d9b9b4646bd73dce4cbff3943e Reviewed-on: https://gerrit.libreoffice.org/17288 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-07-22gtk3: native focus rects are fine for flat buttonsCaolán McNamara
Change-Id: I6a70696cd119e681b4850c624c9e4ff28312c152
2015-07-22remove some unused constantsNoel Grandin
Change-Id: I8742db77a0cfd99257584d830162c1c7126da263 Reviewed-on: https://gerrit.libreoffice.org/17283 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-22drop old makefileDavid Tardon
Change-Id: Ifdc1b8e561e69947b1458aca691cb974071715b5
2015-07-21avoid 1-past-the-end string accessLionel Elie Mamane
Change-Id: Ia475ce737c430fab8d019e1b8a762f81897e0847
2015-07-21use 3,0,0 rather than 3,10,0Caolán McNamara
Change-Id: I810cdadedd5261caede474a4780ceea6d9b409c9
2015-07-20fix linux buildbotNoel Grandin
the GTK3 version check for the GDK_IS_X11_DISPLAY macro does not appear to work well on all the machines Change-Id: I7020afdca1b270f89910753737c2c70b61453b34
2015-07-19Fix typosAndrea Gelmini
Change-Id: I52cbaad71560d73f5e24f3de3cd62b00d678dd6c Reviewed-on: https://gerrit.libreoffice.org/17187 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-07-19Use sal_uInt32 consistently for WindowStateData::SetMask and relatedMatteo Casalin
Change-Id: I722828785a861065a69a1d83bc6e40517b164102
2015-07-19Fix some downcast warnings and reduce scope of variablesMatteo Casalin
Change-Id: Ica5f5947f37207c9dd2e51b7903fad52dd4836fd
2015-07-19sal_uInt16 suffices here, and suppresses a downcast warningMatteo Casalin
Change-Id: I480a816e39d188ef135f51d71ab8eb70c7aacc59
2015-07-17WaE: -Wmaybe-uninitializedCaolán McNamara
Change-Id: I295ef24b8d524e152c85b90548d8a7753347dacd
2015-07-17WaE: unused macroCaolán McNamara
Change-Id: Ic7112f9bdd638ad72758e1b187778d004df4dd7b
2015-07-17wayland: actually show somethingCaolán McNamara
Change-Id: Icd081c38de1374c6bfd6fb04d7765e07ff5d1aff
2015-07-17presumably XSetIOErrorHandler is meaningless on waylandCaolán McNamara
Change-Id: I72247a38021b11a521d785f7565c218a425a857f
2015-07-17move all the X foo of desktop detection in the fallback pathCaolán McNamara
Change-Id: I53e2634984c8e08b707dc3a21b2a6e68b48ec701
2015-07-17add gnome-wayland alongside gnomeCaolán McNamara
Change-Id: I5d57f715edbadc7fef5c508cae7e98bcde0e4e5c
2015-07-17formatting of public/private/protected section qualifiersNoel Grandin
make it consistent across the codebase, no space between keyword and the colon Change-Id: Idca61ddfc74ad2460fb05fe417499324b05e5de5 Reviewed-on: https://gerrit.libreoffice.org/17148 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-17force a specific DPI with SAL_FORCEDPI (GTK2 & GTK3 backends only)Tomaž Vajngerl
Change-Id: I2c154e4df060ade36744c6aa2fbffa8c6e665629
2015-07-17GTK3 HiDPI: disable window scaling and get display DPI via GTK3Tomaž Vajngerl
Change-Id: I66b92146757352408a331f9e23289839f443ff79
2015-07-16need cairo >= 1.10.0 for these featuresCaolán McNamara
Change-Id: I8e1e45caadc6cc537f27a194851dd00b1f1d0e89
2015-07-16tdf#92706 - avoid dbaccess wizard crash.Michael Meeks
Hold a VclPtr on the window, make reset cleaner, and don't crash removing listeners from disposed windows. Change-Id: I3efb71117fc45562d5c740578f5e33dabb2684fe Reviewed-on: https://gerrit.libreoffice.org/17037 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2015-07-16loplugin:redundantcastNoel Grandin
Change-Id: Ifafd45865c93d474510bd0557bb9ab3843b7dbb7
2015-07-16vcl: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I11bd73ff134895d05c7ce054b5ef26829a3bf8c3