5d796ae7f4
coverity#1169811 'Constant' variable guards dead code
...
Change-Id: I1c795134469c0ab8cf6591982e2a44a6506e4fc5
2014-10-02 14:49:07 +01:00
f05cc18dda
coverity#1242832 Result is not floating-point
...
Change-Id: Ic244ebaf7e19f82a086318a91024767a2044ab03
2014-10-02 14:48:57 +01:00
1075cd6b5d
coverity#707673 uninitialized member
...
Change-Id: Iab55c2545790bdee7104abf91d7a3df2deb21ec5
2014-10-01 20:28:59 +01:00
bc8a11cf66
chart2: add a SolarMutexGuard in ChartView::createInstance()
...
SvxUnoNameItemTable::SvxUnoNameItemTable() registers a listener at
SdrModel, surely that needs a lock of some kind.
Change-Id: I80d5a31be66e75f07e8abd26504bdcc93ffd22a3
2014-09-30 17:34:25 +02:00
c9d4a2887c
fdo#82577: Handle PolyPolygon
...
Put the TOOLS PolyPolygon class in the tools namespace. Avoids clash with the Windows
PolyPolygon typedef.
Change-Id: I811ecbb3d55ba4ce66e4555a8586f60fcd57fb66
2014-09-30 11:47:41 +02:00
be31d107f5
chart2: std::auto_ptr -> std::unique_ptr
...
Change-Id: Ia92c18858c8ed7cfc2765cc2310f3bf7bfd7e8df
2014-09-30 10:33:24 +02:00
8dbde0845a
fdo#82577: Handle Region
...
Put the VCL Region class in the vcl namespace. Avoids clash with the X11
Region typedef.
Change-Id: I6e008111df7cf37121fbc3eaabd44a8306338291
2014-09-30 09:58:23 +02:00
ca53769780
chart2: take the mutex to update the chart structures.
...
Change-Id: I8ee6ec81913c008eeb67cd70a2490b523b0d8177
2014-09-29 20:50:50 +01:00
892a7be963
Resolves: fdo#83010 remove svx::WrapField
...
in favour of a wrap property on NumericField
Change-Id: I62c6bdb69a16f37ae6018a2fe41070fb18dbe4a0
2014-09-25 17:20:31 +01:00
62deb6d622
Changing the font properties makes it look better
...
Change-Id: I1be1833ef416e5eed1e7edbb1254302e28bacba7
Reviewed-on: https://gerrit.libreoffice.org/11620
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2014-09-25 12:22:08 +00:00
b067ead2ee
Don't update chart view when the controllers are locked.
...
Change-Id: I8468925e63db3a5cc5ef3e0f942d22478fd0863e
2014-09-24 16:19:27 -04:00
4e82025189
Replace some std::auto_ptr function parameters with std::unique_ptr
...
Change-Id: Ic66d325fd9559c6dde9556c26e5b2a7e60376c49
2014-09-24 16:06:52 +02:00
97bad49ffa
Add missing include to avoid compile error on windows
...
Change-Id: If338b41e416362fc36da25b16f119187a358206c
Reviewed-on: https://gerrit.libreoffice.org/11617
Reviewed-by: Matúš Kukan <matus.kukan@collabora.com >
Tested-by: Matúš Kukan <matus.kukan@collabora.com >
2014-09-24 06:22:01 +00:00
7c1686a6e4
Some cleanup on Timer.
...
Use a different name for handler as 'updateTimer' is also used as
a method name within the same class. Also no need to set the interval
repeatedly & no need to stop the timer when it times out.
Change-Id: I430bc26b945d179c87310eaefd9d94986192841c
2014-09-23 13:54:57 -04:00
3a4f5b4722
This guard blocks main loop.
...
And I've been told that by design the main thread doesn't need to be
aware of the rendering threads, so no need to take mutex here.
Change-Id: I78ec348ccc28dd67284ecdfccebb915cc1942fa8
2014-09-23 13:54:56 -04:00
7f895dfbf5
update camera when bar is clicked
...
Change-Id: Icf397070d1b17a282a07e166d1387881b854b337
Reviewed-on: https://gerrit.libreoffice.org/11541
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 15:12:15 +00:00
9d97b1a7b1
fdo#84001: update environment name BENCHMARK_MODE to UNLOCK_FPS_MODE
...
Change-Id: I7837b2b2639cd003931227f3eb957ef90b905fd0
2014-09-23 17:05:21 +02:00
bc1b8dd63e
use environment AUTO_FLY to control if autofly
...
Change-Id: Ie47dfdc5f3b07f6e1a6336fc235ac6ccd5d53cab
Reviewed-on: https://gerrit.libreoffice.org/11540
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 15:05:00 +00:00
5c9ca2fb86
update effect of bar click
...
Change-Id: Ibb09537d418e78c7fc9b6760988abd56505268b3
Reviewed-on: https://gerrit.libreoffice.org/11539
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 15:04:38 +00:00
32d267f556
make Camera flythrough looks more smooth
...
Change-Id: I46f79bb6ede2da133fe8971319fc4b7257848382
Reviewed-on: https://gerrit.libreoffice.org/11590
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 15:04:23 +00:00
192b360cfb
overloaded function GetDiffOfTwoCameras
...
Change-Id: Ic195c846364ddf9c798d019eed23c27200713017
Reviewed-on: https://gerrit.libreoffice.org/11589
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 15:03:55 +00:00
080bab41b6
Add function:GetDiffOfTwoCameras
...
Change-Id: I3b3f4e8e18d5970d408adcf0457bfdd4e064e37c
Reviewed-on: https://gerrit.libreoffice.org/11588
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 15:03:25 +00:00
e975f78a30
instead of a top view a 45 degree view
...
Change-Id: Iaf922b998552778c527440c4b3a83cb8c05d2a6e
Reviewed-on: https://gerrit.libreoffice.org/11536
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 15:02:44 +00:00
57cc338ddf
Using 3D fonts
...
Change-Id: If6cdece9f100f51b7a69ac4be4e316fb9c9928d5
Reviewed-on: https://gerrit.libreoffice.org/11535
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 14:59:11 +00:00
98cb400d08
3D fonts suport
...
Change-Id: Id8142586e8ace4ba91a30b2f78d1216f89f22148
Reviewed-on: https://gerrit.libreoffice.org/11585
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 14:58:36 +00:00
35d4c21bf0
Update the color of FPS text
...
Change-Id: Ic6f5889e24f98101426fc215c0313122797400b7
Reviewed-on: https://gerrit.libreoffice.org/11507
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 14:58:01 +00:00
221c2eb24b
Show values of bars in selected row
...
Change-Id: I18fbdcb05e3c95c20c96b426bf93e85657209f34
Reviewed-on: https://gerrit.libreoffice.org/11584
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 14:57:10 +00:00
cc2bc03eb6
fix the fly back bug
...
Change-Id: Ie866d02ab2ca3a5372dbeec6805eee42c8e10312
Reviewed-on: https://gerrit.libreoffice.org/11505
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 14:56:41 +00:00
7d833aa8a7
add translucent balck background for history rendering
...
Change-Id: I9da69bdb29bb780776355e79fab61d5d9bb844a4
Reviewed-on: https://gerrit.libreoffice.org/11583
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 14:56:17 +00:00
b8c442f2b9
add 50 histories for histroy rendering
...
Change-Id: I26ff4655d682960ef397be27d5a9fc894502cf8a
Reviewed-on: https://gerrit.libreoffice.org/11579
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us >
Tested-by: Kohei Yoshida <libreoffice@kohei.us >
2014-09-23 14:55:31 +00:00
b71204f67f
fdo#84001: Renamed the env. variable to fit better.
...
Change-Id: Ie3e3a1871bfd0db22726206cf634debebcf4ef63
2014-09-23 14:58:39 +02:00
827c46e7d7
fdo#82577: Handle Window
...
Put the VCL Window class in the vcl namespace. Avoids clash with the X11
Window typedef.
Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-23 14:11:39 +03:00
8419d67219
OPENGL_SCALE_VALUE is not needed any more
...
It seems to me that this value was a workaround to
make chart fit to the OpenGL window (working in calc, in default view).
Now it's uselss since projection matrix do this job better.
Change-Id: I968d6d96cb45c2444b8ebed59830b87f0cb87b61
2014-09-21 15:49:54 +02:00
3ef6bcc291
fdo#81237: 2D OpenGL charts have wrong size
...
So far the size unit was 100th mm \ OPENGL_SCALE_VALUE
which is an absolute value, independent from the actual
size of the OpenGL window.
To solve that I added the SetSizePixel() method with
which we can specify the size in pixels and which
method resize the whole scene accordingly.
Change-Id: Ibd19a1bd9484c7bc8f8ce0d8113f60b95619db39
2014-09-21 15:49:53 +02:00
3b6dcf40f1
These are no longer used.
...
Change-Id: I55a19ab06108825ece00844bb20c3fd5f65dfe37
2014-09-19 18:43:51 -04:00
9396f59a3c
Finally, move the group shape object for the diagram with axes to the param.
...
Change-Id: I134275076256bb1b5441ae7804eacaaaa689d171
2014-09-19 18:43:51 -04:00
21c92bb25c
Move the "PlotAreaIncludingAxes" shape object to CreateShapeParam2D.
...
Change-Id: I6c88611e837f651af92406952df273693d651121
2014-09-19 18:43:50 -04:00
133b7b935c
Move the "MarkHandles" shape object to CreateShapeParam2D.
...
Change-Id: I66843ca4ded3b69cb7f5256c94566c8f5d2de31c
2014-09-19 18:43:50 -04:00
db51e40450
Remove double-conversion between awt::Rectangle and basegfx::B2IRectangle.
...
Change-Id: I51b1a366ca49f680f964814b0fd0fa69a6a7f5bd
2014-09-19 18:43:50 -04:00
af655d2f76
Refactor impl_createDiagramAndContent() to take CreateShapeParam2D.
...
Change-Id: I517c4e4a2296531c0d7f129ff46adca0f85a969d
2014-09-19 18:43:49 -04:00
d4a6d85cef
Refactor getAvailablePosAndSizeForDiagram() to use CreateShapeParam2D.
...
Re-use its maRemainingSpace member to keep track of available space.
Change-Id: I28fdaf11c4ab895cd09a5b6c7ea3da7c730044d5
2014-09-19 18:43:49 -04:00
be775a1ab4
Move the code that creates shapes for axis titles to own method.
...
This change also creates a struct that keeps track of states during
shape creation, to make it easier to extract methods as necessary.
Change-Id: I0d84dbee9dba5b9c59d22e4a1be318c5e8c6c6c3
2014-09-19 13:46:09 -04:00
e55fd119c0
More scope reduction.
...
Change-Id: Ibaabf1122fb3e828c1b7b71e846911d77f312445
2014-09-19 13:46:08 -04:00
4e58aa02bf
Scope reduction.
...
Change-Id: Id677971ccd6959356a781a2d8c35ab864b35a62e
2014-09-19 13:46:08 -04:00
b26b1f79b7
Reduce scope by early bailout.
...
Change-Id: Icd344caf6e52ef568361078455d4e8d5cf0d40a8
2014-09-19 13:46:08 -04:00
6d0592b40e
Move the 2D shape creation code into a separate method.
...
Change-Id: I38ccb7f98f404540f5cf3c32be27da19394475a0
2014-09-19 13:46:07 -04:00
38deb7e53b
Fix chart2 with system libglm (explicit constructors)
...
Change-Id: I582095b6b47eaff7800f6aaa68f176f06d64a34e
2014-09-19 12:36:54 +02:00
5abf95a4fe
Returned shape object is assigned but not used.
...
Change-Id: Icd15ce57e6d4bb5384b7508d4d3ceb9cd1038f9a
2014-09-18 22:51:19 -04:00
6ca26d642f
Pass by const reference.
...
Change-Id: If4bcee8d9d45b43f025ee0409070afdc53b9405a
2014-09-18 22:51:19 -04:00
ccfbb5af4f
Scope level reduction.
...
Change-Id: I4e2f25cdb9aef851724073d32e96c76c3416de3c
2014-09-18 22:51:19 -04:00