summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2016-06-24loplugin:singlevalfields in vcl(part1)Noel Grandin
Change-Id: I0031199937cc95793951a070c4b3d8910933e69f Reviewed-on: https://gerrit.libreoffice.org/26595 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-24tdf#100411 start the flush timer when batching (PostBatchDraw)Tomaž Vajngerl
When we batch a draw command we need to start the flush timer (if not already started) as otherwise it could happen that we won't flush the offscreen texture at the correct time or at all. This fixes a problem with drawing of pop-up "help" text. Change-Id: I6afcf173c3ac517ed0612cd413d95e28c19faa81
2016-06-24tweak fftester to upscale everything to 24bits...Caolán McNamara
to flush out color index problems Change-Id: Ifc7a56e0938eb10d82dc880e94ac09062d239ce1
2016-06-24uitest: make the testing available on windows as wellMarkus Mohrhard
Change-Id: I6db5bde8860030e6e812c5fc421b5dcc97ed67c3 Reviewed-on: https://gerrit.libreoffice.org/26624 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-23Resolves: rhbz#1349501 gtk3: smooth scrolling events can be disabled...Caolán McNamara
by the user with GDK_CORE_DEVICE_EVENTS=1, and so manage to disable their wheel scrolling Change-Id: I7df63f738983c90dea75b9f43a36133910446aba
2016-06-23vcl: add initial PDF import-as-graphic filterMiklos Vajna
This allows Insert -> Image e.g. in Writer to read a PDF file, and insert the metafile equivalent of the first page into the document. Currently the original PDF document is lost on import (unlike when inserting an SVG file). Change-Id: Ib0472c5d9bd9a1da054353fa3a3a638a1052721e Reviewed-on: https://gerrit.libreoffice.org/26586 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-06-23map MenuToggleButton to GtkToggleButton with a custom menu propertyCaolán McNamara
we don't have non-menu ToggleButtons yet, so thats not done here. since we first started with GtkPushButton:menu_attrib to indicate menubuttons gtk has grown menu buttons, but they don't have the idea of a gtktogglemenu button, so this attribute still has a role to play I guess Change-Id: Iebfe5ccf996e22784cf9aaf2bcf367eed79ae686
2016-06-23vcl: avoid vcl_filters_test crash with ASAN 32-bitMichael Stahl
ASAN usually aborts on operator new[] allocation failure but with allocator_may_return_null=1 in ASAN_OPTIONS it returns null instead; it doesn't throw std::bad_alloc though. Change-Id: I28d67a787e90604c12ad06fd97d265664bd62ef2
2016-06-23GSoC tdf#87697 START CENTER: Indicate selected thumbnailviewAkshay Deep
Added new "Active" state to PushButton class Active state used in MenuToggleButton class. Active => Pressed + Flyover When hovered in Active state, Active => Flyover only Change-Id: Iece1550b6d742a7ab3c9f4c7516ec855e1a1b6ef Reviewed-on: https://gerrit.libreoffice.org/26470 Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com> Tested-by: Akshay Deep <akshaydeepiitr@gmail.com>
2016-06-23tdf#97527 - vcl: reference-count MenuNoel Grandin
some places are marked with "dodgy"- need to check those to see what is going on, because they are leaving dangling pointers behind in the Menu class Change-Id: I41d5c7c0fec2f70ce9e3ffdc48cd03d26c0a869b Reviewed-on: https://gerrit.libreoffice.org/26516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-22crashtesting: fix bmp->odg failure...Caolán McNamara
id:000178,src:000000,op:havoc,rep:16.bmp id:000383,src:000047,op:flip2,pos:18,+cov.bmp id:000403,src:000047,op:arith32,pos:22,val:-33.bmp id:000317,src:000025,op:havoc,rep:8.bmp id:000119,src:000000,op:havoc,rep:16.bmp id:000167,src:000000,op:havoc,rep:8.bmp revealed since commit 81e3ca4f60e6ac0823c1233841c22a759cfe937f Author: Tor Lillqvist <tml@collabora.com> Date: Tue Jun 21 10:34:21 2016 +0300 Use real assert() instead of DBG_ASSERT() sanitize invalid palette entry indexes at the outer perimeter on initial load to try and avoid having to do it in all sort of places in the interior. we load the palette before getting here, so we should always know the palette size here Change-Id: I8856787d28310898c3806647fc181a97cfa88514
2016-06-22uitest: we also need a SolarMutex when deleting the wrapper objectMarkus Mohrhard
The wrapper has references to vcl objects and the destructor might have the last reference to a vcl::Window causing a delete. Avoid potential problems (I have seen one deadlock in the chart wizard code) by taking the SolarMutex. Change-Id: I8afcf79842b2f8e8f822b975629d5c8e18a86163
2016-06-22uitest: add support for TabControlMarkus Mohrhard
Change-Id: I4cdffe62cdabaf110eaaeb0d31a45c44833d354a
2016-06-22crashtesting: fix tdf95481-1.odg reexport to odg failureCaolán McNamara
revealed since commit 81e3ca4f60e6ac0823c1233841c22a759cfe937f Author: Tor Lillqvist <tml@collabora.com> Date: Tue Jun 21 10:34:21 2016 +0300 Use real assert() instead of DBG_ASSERT() sanitize invalid palette entry indexes at the outer perimeter on initial load to try and avoid having to do it in all sort of places in the interior. png spec says that the palette has to appear before the first IDAT so we should always know the palette size here Change-Id: I6e04223adce1c88d037f9cf34862e6f54e381bb0
2016-06-22g_bytes_icon_new is only in glib >= 2.38Caolán McNamara
Change-Id: I57f2d016eb6d35d2bc9be090444be1190d68d11d
2016-06-22G_MENU_ATTRIBUTE_ICON is only in glib >= 2.38Caolán McNamara
Change-Id: I7761ac05fbc9be39a6982ba66054c75a331816be
2016-06-22crashtesting: assert on export of tdf96006-1.odt to rtfCaolán McNamara
revealed since... commit 81e3ca4f60e6ac0823c1233841c22a759cfe937f Author: Tor Lillqvist <tml@collabora.com> Date: Tue Jun 21 10:34:21 2016 +0300 surely here we should ask the palette how many entries are in it, not assume from the original bitcount that all entries exist. presumably the palette can only have <= 1 << BitCount entries in it Change-Id: Ieb1b98f2f13f702a6a6a20d8cf3d8e9a695141b2
2016-06-22g_icon_serialize is only in glib >= 2.38Caolán McNamara
Change-Id: I824ebd9083bd702e90f577471248be43707cc811
2016-06-22DBG_ASSERT->SAL_WARN_IF didn't reverse conditionCaolán McNamara
Change-Id: Iea3d1870df6422422a04e6027711ffa8ec65924a
2016-06-22Simplify dynamic_cast followed by a static_cast.Jan Holesovsky
Change-Id: Iec55b1d2e290e2bcc0286225b6f731314f058625
2016-06-21bMirrorMode and nItemImageAngle are unusedNoel Grandin
Change-Id: I87da73db3a58b2e94b3bdda2cea5874701303a18
2016-06-21Put more local functions into the unnamed namespaceTor Lillqvist
Change-Id: I483a1943c3c229aa839a72b333061f92c6b728ba
2016-06-21vcl: fprintf -> SAL_INFOThorsten Behrens
Only touching dbglevel > 0 code here, so clearly only informational.. Change-Id: Id6991c93f971bcc2a8badc809b98870a85322992 Reviewed-on: https://gerrit.libreoffice.org/26531 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-06-21tdf#100451 convert texture buffer to 1-bit and 4-bit palette bufferTomaž Vajngerl
OpenGL doesn't support palettes so when the texture is created, the bitmap buffer is converted to 24-bit RGB. This works nice for showing the bitmaps on screen. The problem arises when we want to read the bitmap buffer back (like in a PDF export) as we have to convert that back to 1-bit or 4-bit palette bitmap buffer. For 4-bit this was not implemented yet, on the other hand for 1-bit it was implemented but it didn't take palette into account so the bitmap was not correct (inverted). This commit introduces a ScanlineWriter which handles writing RGB colors to 1-bit and 4-bit palette scanlines. The class sets up the masks and shifts needed to place the color information at the correct place in a byte. It also automatically converts a RGB to palette index. Change-Id: Ie66ca8cecff40c1252072ba95196ef65ba787f4c Reviewed-on: https://gerrit.libreoffice.org/26532 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-06-21vcl: remove some commented-out codeThorsten Behrens
Change-Id: Iac827fd102404ae615dfd1685886010e949ff653
2016-06-21vcl: fix dbglevel>1 buildThorsten Behrens
Change-Id: I94c35499d395d10a86a821a28e57ad3c1d8ec485
2016-06-20reduce warnings in vclJochen Nitschke
pHelpWin is always false, array sizes can be checked at compile time Change-Id: I945ede9432b4927b30c31018a1420396176ecb94 Reviewed-on: https://gerrit.libreoffice.org/26518 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-06-20add some OpenGL info to the crash reporterMarkus Mohrhard
Change-Id: Id377bc3bd814fad822d577603b1f147b71ad9ae2 Reviewed-on: https://gerrit.libreoffice.org/26445 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-20-Werror,-WswitchStephan Bergmann
Change-Id: I319f932f24a5b4c2eb331eac6795731a1bc483ca
2016-06-20Convert PART to scoped enumNoel Grandin
Change-Id: If4c2849beb207593d3d450ae3846ed24eaf66ca4 Reviewed-on: https://gerrit.libreoffice.org/26173 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-20support typing into the spin fieldMarkus Mohrhard
Change-Id: I2cae24d36d1eebf48f52646d84e7f6d291c8e473 Reviewed-on: https://gerrit.libreoffice.org/26492 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-06-19loplugin:redundantcastStephan Bergmann
Change-Id: I0fc720f677440ed659c445151c5fd4e53f63444c
2016-06-19LOK: tile rendering regression fixAshod Nakashian
Calc fast rendering requires us to offset the are being rendered and shift all bitmaps accordingly. This however is breaking Impress rendering since the offseting logic is common (in svx and vcl). This adds new API to enable or disable this local rendering (as opposed to rendering a full document as was previously done. The new flag is then set by Calc to enable the offseting logic in isolation without affecting other applications. In one case isolation was achieved by checking the MapModeUnit. Change-Id: Ia0aadfc3f6df7c1a891b97dc731f5897414c9420 Reviewed-on: https://gerrit.libreoffice.org/26367 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit 60fdcda65bad242f99895cb453182578250fbdea) Reviewed-on: https://gerrit.libreoffice.org/26378 Tested-by: Jenkins <ci@libreoffice.org>
2016-06-19Resolve: tdf#100429 gtk3: set custom icons in native gtk menusCaolán McNamara
Change-Id: I4798274f38c34c99d6f22f3c7959ebd9673a8966
2016-06-19bogus warningCaolán McNamara
since... commit 9c79945ca62b18213728cdd23d9f390304aee1de Date: Sun Jun 12 20:11:20 2016 +0200 convert DBG_ASSERT in vcl Change-Id: I67b2f0d21965a70980c4f0c522a0431107216a27
2016-06-18plugin:defaultparamsMarkus Mohrhard
Change-Id: Ibeec35b72e6dc81c72a9120ed14ae165e6137d26
2016-06-18uitest: loplugin:staticcallMarkus Mohrhard
Change-Id: I0e8fd138689e73cd0b320d0898e0410baa2bcfa9
2016-06-18uitest: dump the implementation name as wellMarkus Mohrhard
Change-Id: Ifefc5eb8c271aae0c815bb68535b1e3eb8afb2cd
2016-06-18uitest: support more special keycodesMarkus Mohrhard
Change-Id: Ief5fde7c9840de0f7b0a34fec24837e3a8e5ae70
2016-06-18uitest: add wrapper for radio buttonMarkus Mohrhard
Change-Id: I8b4b35ac313796364502f8e9e2e836dc21f48a42
2016-06-18uitest: set ids for a few UI objects created in codeMarkus Mohrhard
Change-Id: I421b97448bb596b134908ca6ddd60d7b4f60b186
2016-06-18uitest: add method to get all children of a ui objectMarkus Mohrhard
This makes writing ui tests so much easier. Change-Id: Ice7d98c354fc9b68ee4532bc854561b5b9446e3f
2016-06-18uitest: add initial support sending special key eventsMarkus Mohrhard
Currently supported are: CTRL ALT SHIFT Change-Id: Ibf90f5a8b74f33f1ca69c66d18eb86889c0c52ea
2016-06-18uitest: let us return a string based typeMarkus Mohrhard
This is less important for the UI testing and more for debugging and logging. Change-Id: Id65fcacc591129869ca0f80f828eb63ce044cf33
2016-06-18uitest: an enum is a bad idea for the typeMarkus Mohrhard
Change-Id: I1efd59b2f664f0aa9be733466fa7c1057e92ef27
2016-06-18uitest: support selecting different tab pages in tab dialogMarkus Mohrhard
Change-Id: I541f83a87f5f3d459b2baf4587b76cb2fce5d5fc
2016-06-18uitest: fix bug in the uitesting frameworkMarkus Mohrhard
Change-Id: I2f2b766c315403810f8446231d852345b837d633
2016-06-18uitest: don't use WindowUIObject if not necessaryMarkus Mohrhard
Change-Id: Iff31ce674651cb2a6150dd9a0822bfbf8f0b5aea
2016-06-18uitest: fix wrong factory function for checkboxesMarkus Mohrhard
Change-Id: I6392fbf162869c400a9f992e64a145f3bea8f2bc
2016-06-18uitest: move declaration for the uitesting wrapper objects to include/ dirMarkus Mohrhard
This allows non-vcl wrapper objects to inherit from the vcl base classes. This is especially important for the WindowUIObject base class object. Change-Id: I91ef69839ff4c031d3bcd21d70b4b9e7d62ad572