Noel Grandin
81b954718f
loplugin:unnecessaryvirtuals
...
Improve the plugin a little.
Create a python script to process the output.
Run it again.
Change-Id: I05c21d8a21c8f4243af739c412fda0a521f9b5f0
2015-06-09 10:06:57 +02:00
Noel Grandin
b406664c0c
GetFocusFlags::Cursor->GetFocusFlags::CURSOR
...
to avoid name-clash with X11 headers
Change-Id: I727c523f6d9bd7d4db28fe7427e053903626be00
2015-05-28 13:01:56 +02:00
Noel Grandin
f3331f7694
convert PARENTCLIPMODE constants to scoped enum
...
Change-Id: I36a53112e75fca9208b2f91e224a7c671695509b
2015-05-28 12:47:08 +02:00
Noel Grandin
173aa749d5
convert INVERT flags to scoped enum
...
Change-Id: Iad8faee927de1ad646975157e36c3027c0ba8149
2015-05-28 12:47:07 +02:00
Noel Grandin
79db3fc0ee
convert STARTTRACK constants to scoped enum
...
Change-Id: I9b441688eb59ffd3540b014716a9abe7969c9be4
2015-05-28 12:47:07 +02:00
Noel Grandin
a086ca1898
convert AUTOSCROLL constants to scoped enum
...
Change-Id: Id1d2b5c13ad6af05314cba60ba5b9a62e0683f5e
2015-05-28 12:47:06 +02:00
Noel Grandin
4c93c30c79
convert GETFOCUS constants to scoped enum
...
Change-Id: I7c324bb6358be28c119592850eb7607479279f09
2015-05-28 12:47:05 +02:00
Noel Grandin
66854d697f
convert WINDOW_DRAW flags to scoped enum
...
Change-Id: I9400a286fab18d683b4c109007961685f01b6da3
2015-05-27 11:14:26 +02:00
Noel Grandin
9e3b1236b6
convert WINDOW_DLGCTRL flags to scoped enum
...
Change-Id: I6c3a95cdcb15e5b1d4adb13908a751b06a302e20
2015-05-27 11:14:26 +02:00
Noel Grandin
edc69a55c3
simplify GetWindowClipRegionPixel
...
since it has only one call-site
Change-Id: I80344faf4beab9aa9427ba8d448b0cf3fd30c7b6
2015-05-27 11:14:25 +02:00
Noel Grandin
5ad3886ec8
convert EXTTEXTINPUT constants to scoped enum
...
Change-Id: I1bb4ff2c13eaa2a9da3e32963ac0802e947e18d9
2015-05-27 11:14:25 +02:00
Noel Grandin
c6dfe0545c
convert DLGWINDOW constants to scoped enum
...
Change-Id: Ieda6c5d638c608dd9e7b5d760dfbbfbcc37cc35a
2015-05-27 11:14:24 +02:00
Noel Grandin
204d147b8a
convert SCROLL constants to scoped enum
...
Change-Id: I5696fa39b2d032735cea7abe039349d4f83cf68d
2015-05-26 08:30:19 +02:00
Noel Grandin
79aa1ab00a
convert VALIDATE constants to scoped enum
...
Change-Id: Ib3456116ab4c2e2f4b567bc195be2ad159b4fc82
2015-05-26 08:30:18 +02:00
Noel Grandin
bb7ce3137d
convert INVALIDATE constants to scoped enum
...
fixing a bug in Window::ImplMoveAllInvalidateRegions, and improving the
IDL docs for XWindowPeer
Change-Id: Idb774ac913945db2ac7c492c11cf86c370624c3d
2015-05-26 08:30:18 +02:00
Noel Grandin
c7efb51e31
convert TOTOP constants to scoped enum
...
Change-Id: I85ba631ba298f1034dc5b6a04a5ff3d509c41bcb
2015-05-25 10:32:24 +02:00
Noel Grandin
4de86ac0c6
convert ACTIVATE_MODE constants to scoped enum
...
Change-Id: Ica20e033d5cde8a0c18eff51c63c66e6a3845fd0
2015-05-25 10:32:24 +02:00
Noel Grandin
65be8fd0f7
convert WINDOW_ZORDER constants to scoped enum
...
Change-Id: I91a583fe7d4195ee6bc73b4854f757517b38408b
2015-05-25 10:31:35 +02:00
Noel Grandin
b419da0f53
convert SHOW constants to scoped enum
...
Change-Id: I2712a0901049885502cade31f9757f712048bb33
2015-05-25 10:31:35 +02:00
Caolán McNamara
d1d2a0bb65
IsInModalNonRefMode just forwards to IsInModalMode now
...
Change-Id: I940b70648ede6239930ba36e755994e7749b2d0b
2015-05-24 15:40:23 +01:00
Michael Meeks
0792e97bd7
VclPtr - add compat methods for old-style focus / notification.
...
The previous code would only invoke Window:: methods by the time we
hit the destructor; do the same to avoid fixing more scattered
crashers for now.
Change-Id: Ibdcd1290309bb7fc31a44d534c52d357da022591
Reviewed-on: https://gerrit.libreoffice.org/15880
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Michael Meeks <michael.meeks@collabora.com >
2015-05-23 20:51:12 +00:00
Noel Grandin
ac3802da9a
convert WINDOW_POSSIZE constants to scoped enum
...
Change-Id: Id85137ffc7309a66b04132d588d289db136117b9
2015-05-22 10:37:59 +02:00
Noel Grandin
566922a98d
convert WINDOW constants for GetWindow() methods to scoped enum
...
Change-Id: I0c7c6d095732704eb4ab48f1277a0592b1c7fa33
2015-05-22 10:37:59 +02:00
Noel Grandin
953f327818
convert COPYAREA constant to bool flag
...
since there is only value in this flags thing
Change-Id: I86d7a3a358c467a9748b00e1ba8c09106f282947
2015-05-20 09:52:08 +02:00
Jan Holesovsky
5094075fb1
rendercontext: Double-buffer an entire hierarchy.
...
This finally allows real double-buffering. Also with the per-widget setting,
no need to be experimental any more.
Change-Id: I405b3b2ce084cb8176b761e7113d3c3c87a6febf
2015-05-19 15:58:36 +02:00
Jan Holesovsky
0fc56aad09
rendercontext: Per-widget double-buffering for the cases we know that work.
...
Uses a variable, not a virtual method, as any change would need a large
re-compile.
Change-Id: I103669b139a82137c5d346ab8c9459483d358f2b
2015-05-18 18:34:15 +02:00
Tomaž Vajngerl
e5bb5c52ae
add RenderContext to Window::PushPaintHelper, use Erase correctly
...
Change-Id: Icc684a2dcfb4d92752b09768e5a908636910f302
2015-05-18 11:22:50 +09:00
Tomaž Vajngerl
b4bbb5e5d7
refactor how font, fg. and bg. are applied in widgets/controls
...
- Move vcl::RenderContext to outdev.
- Change some methods on vcl::Window to accept RenderContext
as parameter.
- Add ApplySettings to vcl::Window - This method is called before
painting. Refactor existing classes that use InitSettings to
have ApplySettings or mark the classes to be refactored later.
- Add RenderSettings for adding defered settings to rendering.
This is similar to ApplySettings but for more ad-hoc calls.
Change-Id: I4ea58461f3b6b08ccfa3e0ddd1a4a3e04f8c4f45
2015-05-18 11:22:49 +09:00
Caolán McNamara
994b9700f8
gtk3: provide a scheme where NWF can render the focus rects itself
...
Change-Id: Ide68e35964670f7acf7a9098b2e04451a17e335a
2015-05-14 16:13:21 +01:00
Noel Grandin
4c27e84145
convert ENDTRACK_ constants to scoped enum
...
Change-Id: Iaccd9c3be1ae24f7f9861f9049cd5b52f155170f
2015-05-13 08:54:41 +02:00
Tomaž Vajngerl
0ac8026773
add PostPaint and change PrePaint to include RenderContext param.
...
Change-Id: I26e03159fa6115025c6cf376e6ce71443bc98cec
2015-05-13 13:57:46 +09:00
Tomaž Vajngerl
dfb70a8f63
Add DrawSelectionBackground that is outside of vcl::Window
...
This will later replace all existing DrawSelectionBackground
methods found on vcl::Window.
Change-Id: I383b5ae880066c473c702b59044b1b77f4920c05
2015-05-13 08:36:28 +09:00
Michael Meeks
a738606d48
PostUserEvent - instrument to allow holding a VclPtr reference.
...
This helps avoid things dying during emission in a robust manner.
Bit of an unpleasant 3rd optional parameter; better names appreciated.
Change-Id: I27571823f9d96caef1d07602785a02390d3a3591
2015-05-08 17:37:41 +01:00
Noel Grandin
12b0e654d1
revert part of "new clang plugin: rendercontext"
...
committed in error
Change-Id: I768b9683dd4dd997b3728c53054043aea0e88040
2015-05-07 10:57:46 +02:00
Noel Grandin
0825b020ca
new clang plugin: rendercontext
...
to help with converting calls to OutputDevice to pass via
vcl::RenderContext.
Change-Id: I4b49d2f5e4afca46898d2a7c7ed33cbf5577e664
2015-05-07 10:33:51 +02:00
Michael Stahl
8fca0c44e8
vcl: rename other members of StateChangedType for consistency
...
Change-Id: Ifd3339813e5d3dfb54566fd226aaf2d2a199d59a
2015-05-05 15:51:11 +02:00
Michael Stahl
c724eebbae
vcl: rename conflicting defintion of TRANSPARENT remove it from postwin.h
...
Change-Id: I3b4e25c27593e3a61612a96baa2a4378542d151c
2015-05-05 15:51:10 +02:00
Richard PALO
e4f10cb0e1
Avoid redefine of TRANSPARENT on solaris after including stream.h
...
Change-Id: I90611a4855320148f1d4b6e61a420ada47308c28
Reviewed-by: Michael Stahl <mstahl@redhat.com >
2015-05-05 15:51:05 +02:00
Stephan Bergmann
c9b4c56811
Use typed Idle::SetIdleHdl Link
...
Change-Id: I189937950325dc4ef663f7f49cb45f38f8537de9
2015-05-05 12:05:38 +02:00
Stephan Bergmann
8cafd08278
Use typed Timer::SetTimeoutHdl Link
...
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
2015-05-05 10:21:54 +02:00
Stephan Bergmann
3ead3ad52f
Gradually typed Link
...
Turn the Link class into a template abstracting over the link's argument and
return types, but provide default template arguments that keep the generic,
unsafe "void* in, sal_IntPtr out" behvior. That way, individual uses of the
Link class can be updated over time.
All the related macros are duplicated with ..._TYPED counterparts, that
additionally take the RetType (except for LINK_TYPED, which manages to infer the
relevant types from the supplied Member).
(It would have been attractive to change the "untyped" LinkStubs from taking a
void* to a properly typed ArgType parameter, too, but that would cause
-fsanitize=function to flag uses of "untyped" Link::Call.)
Change-Id: I3b0140378bad99abbf240140ebb4a46a05d2d2f8
2015-04-30 10:20:00 +02:00
Tomaž Vajngerl
704ebef99d
remove old Paint(Rect&) method in vcl::Window
...
Change-Id: I0f3377eaeb68f4933ccc3f86c9136c97c09c464d
2015-04-29 09:24:20 +09:00
Tomaž Vajngerl
d36da8c193
remove "y"
...
Change-Id: I792a15ad04cf8a54c2609ec3cc91ed46caab66be
2015-04-29 09:03:56 +09:00
Tomaž Vajngerl
2d7ff9c23b
change Paint input parameter to ref
...
Change-Id: I4bf97d46736ce8186c3699c9a861e44103ab0d4b
2015-04-29 09:03:56 +09:00
Tomaž Vajngerl
56e2f3e338
Add paint with render context to window -> impl. calls old paint
...
Change-Id: Ic4823f9f74c75e87de92d07a9a1310a7eed93074
2015-04-29 09:03:56 +09:00
Tomaž Vajngerl
d3ba96e37e
typedef OutputDevice as RenderContext to pass to Paint methods
...
Change-Id: I858c0c51fc0892ea81ac39f69aff7d401a25184b
2015-04-29 09:03:55 +09:00
Michael Meeks
6cf6e2da24
Windows compile fix for VclPtr intersection with events.
...
Unfortunately, not incredibly elegant for now.
Change-Id: I4ac2e6e013671e7d7830f9555c5bd6bb6b7529b8
2015-04-23 11:26:44 +01:00
Michael Meeks
7acf94a7cf
vcl: remove curious self referential OutputDevice ptr.
...
No need to pay a per-instance cost for this, also avoid a self
reference for every Window sub-class.
Change-Id: I040a0ede9481229e43a39bc23297969e90b95f5e
2015-04-10 13:07:52 +01:00
Noel Grandin
820576af4f
start wrapping OutputDevice in VclPtr
...
Change-Id: If3ecbb0599b50d50ce6b3997ca7892200c332ffe
2015-04-10 12:10:43 +01:00
Noel Grandin
e35bc27fdc
vclwidget: make sure we have an explicit destructor
...
Change-Id: I50490ad8957e8069e72e855f0f5a3b694218fd6b
2015-04-10 11:33:58 +01:00