summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
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
2016-02-24Ensure processEventsToIdle process events (including from the OS) until idle.Michael Meeks
Change-Id: I9578849b0e78af15ddeb1e6495a48ccfb3f1c44a Reviewed-on: https://gerrit.libreoffice.org/22651 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-02-23gtk3: vcl popups flush any unexecuted Select events on popdownCaolán McNamara
so if the gtksalmenu integration wants to drive popups by setting a selection on the vcl popup, then the same flush is needed after ShowNativePopupMenu Change-Id: I59be60de5742d1e382cabefcbf0d8cdd5fc30b00
2016-02-22gtk3: some changes towards enabling native gtk3 popup menusCaolán McNamara
these menubar things can be menu things and can then do away with the casting, no logic changes intended Change-Id: Ibb1b5354d5e1483327f172d6890e134f1e4b9ee4
2016-02-22tdf#82577: Remove prex.h and postx.h wrapper headersJorenz Paragas
Include the X11 headers directly in files that used to include those wrappers, and add the Pixel typedef to files that use it. prex.h included headers that a file including prex.h might not need at all, so when replacing prex.h and postx.h includes, try including only X11 headers that are actually needed in their place. Also fix saldisp.hxx and i18n_xkb.cxx relying on indirectly included X11 headers. Change-Id: If0c30c7facc28db7f2e410b5e6f1d52d8c7cdfd3 Reviewed-on: https://gerrit.libreoffice.org/22132 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-22include breakpad into the buildMarkus Mohrhard
Change-Id: I1bfd107502332fc86ae5e96bbc1f475b8d669c6c Reviewed-on: https://gerrit.libreoffice.org/22547 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-02-22Silence -fsanitize=shift ("left shift of negative value")Stephan Bergmann
Change-Id: Ifa70183b86819c85611feda671fe76d4a2bf86d9
2016-02-22loplugin:commaoperator in vcl/Noel Grandin
Change-Id: Ia5bbce27d9e9526122ce1e27389c7845e6709f27
2016-02-22loplugin:write only fieldsNoel Grandin
Change-Id: I45895e9845a9037da207f001fece427452ed499f
2016-02-22WaE vs2015 literal implicit castingNorbert Thiebaud
Change-Id: Ib3da0dd36243fbd316992e9fa88f4bed37b24f6a Reviewed-on: https://gerrit.libreoffice.org/22596 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2016-02-22WaE: 32 to 64 bits implicit on windows..Norbert Thiebaud
a misuse od sal_uLong.. int is just fine here. Change-Id: I09372b6384539cbb0beb557fdd9069cb1c63e235 Reviewed-on: https://gerrit.libreoffice.org/22595 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2016-02-20StarOffice 5.1 was released in 1999, fixing this nowCaolán McNamara
Change-Id: I0b6bf947f7d309820334ed1ac6eae5a29b5c69fb
2016-02-21vcl: README update - generic was moved some time ago to unxChris Sherlock
Change-Id: I463db3f1e0d00fba6e2b83d2e29d381e7df4bd25
2016-02-19always support packagekit if dbus is enabledCaolán McNamara
Change-Id: I8eb169d33fcb0217989b180aa0c4c0110875be32 Reviewed-on: https://gerrit.libreoffice.org/22503 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-02-19move dbus config into its own config headerCaolán McNamara
Change-Id: I5b0734a30dee323d41270de06f6a02fd676155c9 Reviewed-on: https://gerrit.libreoffice.org/22502 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-02-19move gio config into its own separate config headerCaolán McNamara
Change-Id: I25ca238931da039c244c2af6171d69c9875f95ff Reviewed-on: https://gerrit.libreoffice.org/22501 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-02-19new loplugin: find write-only fieldsNoel Grandin
Change-Id: I0f83939babacf92485420ee63f290a297d7cb717 Reviewed-on: https://gerrit.libreoffice.org/22498 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-19vcl: loplugin:staticcallMiklos Vajna
Change-Id: I2ad98616ff60ebb88f14675d94bd82e51d136c7f
2016-02-19vcl: loplugin:nullptrMiklos Vajna
Change-Id: I08566926c931e1e9ef46e44ce265bde8148439f6
2016-02-19loplugin: checkconfigmacrosCaolán McNamara
I suppose Change-Id: I2821665548077162c4a434876aee407127b312a4
2016-02-19gtk3: typo mnMaximizedWidth -> mnMaximizedHeightCaolán McNamara
Change-Id: I8966fd13d2fef4a86b19ad1916f1c266cfc037cc