summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2016-03-03coverity#1355126 Logically dead codeCaolán McNamara
maybe we should be using more precision, but we haven't been in the past Change-Id: Icf1e1e95099c783435e04f60d8ade755a8d2d4d5
2016-03-03nLog10Divisor is 1Caolán McNamara
Change-Id: I8820d435e2f26d04ac3eccb710383399d050e020
2016-03-03gtk3: position the native popup menus exactly where we want themCaolán McNamara
Change-Id: I2594925cba1f7c9c90178906d9c782024ad1cf4f
2016-03-03refactor these two bizarro positioning things into reusable chunksCaolán McNamara
Change-Id: I3f89aca650d31658ce17b3b1496a7babba23bdc6
2016-03-03tdf#98380 - opengl - get font anti-aliasing right.Michael Meeks
Change-Id: I087c4939c19bc5966da45cb848d71e95ac982e33 Reviewed-on: https://gerrit.libreoffice.org/22854 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-03-03Follow our code layout styleTor Lillqvist
Consistency is important. (I know that we are wildly inconsistent in many things, even inside individual source files. Like the spacing of the expression in an if statement. But putting an opening brace on a separate line is something we do quite consistently.) Change-Id: I7c50628653b94a4da0fc4dc8db8869a5f1a64527
2016-03-03tdf#96393: reuse layout if availablePierre-Eric Pelloux-Prayer
If position and size were loaded from the WindowStateData structure there's no need to recompute the layout. As an added benefit if the user previously resized/move the dialog, the new one will open using the same geometry. Change-Id: I306504080357f9be8f3e628ba13ca5dc2957dd52 Reviewed-on: https://gerrit.libreoffice.org/21850 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-03-03vcl: scheduler - remove obsolete comment.Michael Meeks
Change-Id: I8a469f73b682e32bbb15a71e5be9b64d8412f3f1
2016-03-02vcl: document that it's possible to dump GDIMetaFile to XMLMichael Stahl
Change-Id: I921577df6c905e935d05ff0e9d2b2c6e8d22cc89
2016-03-02Fix the import of line joins and caps from EMF filesStephan van den Akker
Change-Id: I976336d35366b661e402db484820b4dd9a7b0228 Reviewed-on: https://gerrit.libreoffice.org/22821 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-03-02gtk3: menubar close button shouldn't get keyboard focusCaolán McNamara
Change-Id: I6ddd512afa1e41d2dec7c92f61d65ed5bbfa9ace
2016-03-01valgrind: fix g_variant leakCaolán McNamara
Change-Id: I6d10c7d20f9bc1dfcaa60ad89a9092fe06922074
2016-03-01gtk3: gdk_x11_display_set_window_scale needs 3.10.0Caolán McNamara
Change-Id: I4c86082eca0e7618de30841e6fe7040be7326098
2016-03-01replace SetExtendedFrameStyle + m_nExtStyle hack to direct updateWMClass callCaolán McNamara
Change-Id: I2b7dd0ea24794d08557620dda8ca1de71244ec61
2016-02-29libreoffice-main -> libreoffice-startcenterCaolán McNamara
to sync these names with the the .desktop names Change-Id: I1c4d8943e61b5ae537b865d5a9c3065894f200d7
2016-02-29gtk3: presumably XrmInitialize can be dropped nowCaolán McNamara
Change-Id: Ib3e87d8a07f4e38f8dcb6e1226f91920df53c81c
2016-02-29split gtkdata into gtk3 and gtk3 versionsCaolán McNamara
Change-Id: Ic102a5a1193a8bc50b460e5897b1ca488f0d4a65
2016-02-29shouldn't have to recall gtk_init hereCaolán McNamara
Change-Id: If851dbdb034384395ba590fda61f3383f5ef791a
2016-02-28Fix gtk2 menubarMaxim Monastirsky
Change-Id: I0605e570022f6eb57d453a3eb8bea5f4314c8229
2016-02-28mbUnityMode is always falseMaxim Monastirsky
Change-Id: I7c4b05cd02dee2b6efb926955759d725428e1dc1
2016-02-28tdf#84258 Allow creation of command aliasesMaxim Monastirsky
We already can use different labels for commands, based on whether they're in a menu, context menu or a toolbar. But in some cases we need different labels for the same type of UI element, or even different icons. One example is page/slide commands in Draw/Impress, as they share same commands, but need different icons/labels. Creating full-fledged duplicate slots just to satisfy the need of UI representation seems like overkill, and isn't flexible enough. The proposed solution is to allow creation of command entries, that do not correspond to real application slots, but instead link to another existing commands. The "real" commands will be used for controller factory and dispatch (execute/status) APIs, thus fully retaining functionality. This can be useful also for giving icons to complex commands (i.e. commands with arguments). Change-Id: I9b261b406ec8fc781cae06cf283963386379d4ad
2016-02-27log to the crashreporter whether we use OpenGLMarkus Mohrhard
Change-Id: I8fd2ffe5908074417aa5cfc00adbc54b6e9ed360
2016-02-27loplugin:implicitboolconversionJulien Nabet
Change-Id: I5bac3a484b78c68022d2533cbedaf89259b189a9
2016-02-27lp#1506544 tdf#92458: default to breeze theme on unity desktopsBjoern Michaelsen
Change-Id: I1e0e10d1561e32c5904e0e7352e914bb62b85363
2016-02-27Another blind fix for some TBs (-Werror,-Wunused-private-field)Julien Nabet
Change-Id: I2b6c219c95e94cbbee4a7fbe7c2a2ffa45d0e151
2016-02-26gtk3+wayland: gnome#762756 hack around keyboard focusCaolán McNamara
Change-Id: I6be61592a16660d62be583e082ffcf5b1907770f
2016-02-26gtk3: add a menubar close buttonCaolán McNamara
the css foo is modeled on the similiar gedit close buttons in its tabs Change-Id: I7af32ad0434a49c52eea215f797c502be7f96dac
2016-02-26gtk3: native gtk menubarCaolán McNamara
Change-Id: Ibb75aa3eae99e499e1c2026c41b0bf51d7f8cf31
2016-02-26loplugin:commaoperatorStephan Bergmann
Change-Id: I481fe73256bf0d974c54a6419874fa76ea4beaa6
2016-02-26loplugin:fpcomparisonStephan Bergmann
Change-Id: I5ef9d7bcff3fcc2b01c0e5578487a293c6e315df
2016-02-26log some information about used OpenGL deviceMarkus Mohrhard
Change-Id: I0c050396e6b1efa7dd2f003a79a9dc506135197a Reviewed-on: https://gerrit.libreoffice.org/22555 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-02-26loplugin:unuseddefaultparms in include/vcl (part2)Noel Grandin
including a fix for a rather glaring bug in BitmapTools.cxx Change-Id: Id9db990b993cfeea9039c5fbaaa91996adeae22a Reviewed-on: https://gerrit.libreoffice.org/22713 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-26Improve the import of pen styles from EMF filesStephan van den Akker
Change-Id: I643c29befeb29b7b1cdd66375f661f4adb0e6cfa Reviewed-on: https://gerrit.libreoffice.org/22638 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2016-02-26-Werror=shadowStephan Bergmann
Change-Id: I0966b87cdc04f6f7cc7d9b4bed3a8046df3547e6
2016-02-26loplugin:unuseddefaultparams in /include/vclNoel Grandin
Change-Id: I36daccd90bfa6ba0ee8b9e76bff2bd8494155a04 Reviewed-on: https://gerrit.libreoffice.org/22710 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-26loplugin:unuseddefaultparam in vcl/Noel Grandin
Change-Id: Ic09d160ed6e3cdcd95bc04844ee8f20cfcb286ec Reviewed-on: https://gerrit.libreoffice.org/22698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-25gtk3: put all of our existing toplevel stuff inside a GtkGridCaolán McNamara
so we can optionally insert a native menubar above it all Change-Id: Ib8486d7164493db79c868715a2aef209d7472c01
2016-02-25opengl: shader based polyline rendering - fixes tdf#97137 for OGLTomaž Vajngerl
Adds native opengl polyline rendering to draw polylines, line joins and line caps as triangle strips. The vertex shader allows for the dynamic line width by calculating the correct vertex posiitons, and the fragment shader is used for anti-aliasing. Change-Id: If7982c828cae1fae59c57194c8ac77e5ad7f1d26
2016-02-25-Werror,-WshadowStephan Bergmann
Change-Id: I5e4cec5f9ac5b6d92214533251f97fb73c62434f
2016-02-25loplugin:implicitboolconversionStephan Bergmann
Change-Id: Ic7e42f50adf85266ae6b61cf152c99081be11d4a
2016-02-24loplugin:implicitboolconversionTor Lillqvist
Change-Id: I5278a44d9d492d04618068afd1610358bb4b4d5c
2016-02-24gtk3: implement native context menusCaolán McNamara
This reuses lots of the unity machinery which is similar to the mac concept of a single toplevel menubar. So to drive popup menus, part of this is a rework that does away with the idea that the "menubar" is the controller of the hierarchy, and instead the top element becomes the controller Change-Id: I4336391718844bc73cfc47c1043f99f0e3b812d8
2016-02-24Ah, xsqr got changed from unsigned to singedStephan Bergmann
...in 8bcc538953ceec4ef266f16cf72329bc6080d08c "WaE vs2015 literal implicit casting," that explains why 89fe180fbcdfcd8ee3f52955a29eccd3b9ad0f36 "Silence -fsanitize=shift ("left shift of negative value")" became necessary afterwards Change-Id: I1b3d09ba59d60a88e34e48cc3697a20084623817
2016-02-24-Werror,-Wunused-functionStephan Bergmann
since ce81a477d228277f44e96356e85d92467eb7a0b9 "tdf#97458 - remove unused intel opengl driver version special-casing." Change-Id: I4d1e804bef054db5a999b23c35c308e1a0c5ece3
2016-02-24set gtk layout direction to match oursCaolán McNamara
Change-Id: I27610f28f42368355bef1b3461fc3ccea1b07218
2016-02-24tdf#97662 - Avoid JPEG compressing de-compressed PNG.Marco Cecchetti
Change-Id: Iafa5d4b347da46dedb9431b6870f34b2b6fcad99
2016-02-24tdf#97662 - Try to preserve original compressed JPEGs harder.Marco Cecchetti
Avoiding de-compressing and re-compressing them saves lots of time too. Avoid PNG compressing de-compressed JPEGs. Change-Id: I7fe7db8e294e38d3240d284f73183a34ee48fb2d Reviewed-on: https://gerrit.libreoffice.org/22657 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-02-24mark checkable toolbox menu entries as checkableCaolán McNamara
e.g. the toplevel toolbars put excess entries in menus. If the entry is not marked as checkable then a native gtk menu entry will appear to be stateless when it actually does have a toggle state Change-Id: I7168b44d59fd64dfe264ed8ca26355252d697251
2016-02-24gtk3: handle items without commandsCaolán McNamara
e.g. the draw/impress context menus. Handle these like MenuManager::Activate does Change-Id: I02a0e377a2d3a57ac7ac9239aaa75dbb856489d2
2016-02-24gtk3: replace old action if same command is addedCaolán McNamara
i.e. originally we preferred the old action, now prefer the new action because e.g. wrap items in writer only contain their "checkable" state on their update Change-Id: I6a6ce94126253396cc273834a7e8a4fb0a56921d