Jacob Støren
d37ed9bb7c
#2889 Fix crash when few tick marks in legend.
...
Set legend title before adding to view to make size calculaltion correct first time.
2018-05-11 14:06:08 +02:00
Jacob Støren
d413df0aeb
#2730 Category and Scalarmapper Legend: Improve the preferred size
2018-05-04 13:33:06 +02:00
Bjørn Erik Jensen
736277e0ef
#2797 Ensemble curves. Slightly increased cateory legend height
2018-05-03 09:53:34 +02:00
Gaute Lindkvist
517a557efe
Legends ( #2786 ): Fix Debug-build of Resinsight.
2018-04-23 13:08:35 +02:00
Jacob Støren
3957027b4b
#2657 Final cleanup and refactoring of legends size system
2018-04-20 16:59:10 +02:00
Jacob Støren
03ec76c20a
#2657 Add a preferredSize method to the legends
2018-04-20 16:59:10 +02:00
Jacob Støren
0192f66a4d
More renaming and reformatting of legend code
2018-04-20 16:59:10 +02:00
Jacob Støren
1f8d4437bf
Remove the unused, unnecessary "position" from several methods and the overlay layout struct
2018-04-20 16:59:10 +02:00
Jacob Støren
d48c2b7aa9
Rename layout variables in legends to make their intent and use clearer
2018-04-20 09:23:19 +02:00
Gaute Lindkvist
ab736ab46b
#2693 . Fix overlap of category legend with other legends.
...
* CategoryLegend should not use the matchedWidth. They have their own columns.
* Change shifts to using minimumWidth instead.
2018-04-09 14:30:21 +02:00
Gaute Lindkvist
b488d99f81
#2696 Fix ubuntu build after Legend updates.
...
* Was missing <cmath> to get std::ceil, but cvf::Math also has ceil, so switch
to that.
2018-04-09 14:19:43 +02:00
Gaute Lindkvist
b6fb60115a
Refactored after review
2018-04-09 13:14:19 +02:00
Gaute Lindkvist
e93f79790e
Make sure Ternary legends also expand and renamed width method.
2018-04-09 13:14:19 +02:00
Gaute Lindkvist
38aa447dcd
Unify the width of all visible legends.
...
* Calculate the minimum width to fit the content before the render pass.
* Set the actual width of all the legends to the largest of the minimum widths.
* This resizes the legends to always be the same size and reduces the size of you remove
the widest legend.
2018-04-09 13:14:19 +02:00
Gaute Lindkvist
63ffade452
Set background and frame color from the view plus update frame margins.
2018-04-09 13:14:19 +02:00
Gaute Lindkvist
507229f84b
Fixed background color setting for legends and refactored Legend class hierarchy
...
* Added a new cafTitledOverlayFrame as a base-class for all ResInsight legend classes
* Inherits cvf::OverlayItem
2018-04-09 13:14:19 +02:00
Jacob Støren
7a9e53bdb1
#51 Avoid that legend background misses frame line on the right
2018-03-08 16:12:40 +01:00
Jacob Støren
7bd08067a9
#52 Add background to category legend
2018-03-08 11:38:51 +01:00
Jacob Støren
c258528dc5
#51 Add background to standard legends. Needed a separate legend implementation, now in caf. Cleaned up CategoryLegend to make it ready for the new background.
2018-03-08 11:20:27 +01:00
Magne Sjaastad
120cc8b6dc
#887 Category Legend: Limit legend height when having few categories
2016-09-22 15:31:21 +02:00
Magne Sjaastad
f01e762ef1
#827 Added support for text labels in category legend
2016-09-06 11:15:21 +02:00
Magne Sjaastad
1101db5787
( #805 ) Added category legend and mapper
2016-08-05 17:23:50 +02:00