subsurface/qt-ui/profile
Tomaz Canabrava c99089e1fa Add settings awareness for the PP graph
This commit is rather big, and I forgot to cut it in pieces.
The first part creates a new 'calculate_gas_information' that will not
fill the profile_info->maxpp member ( that should be removed from it as
soon as the new dialog is finished ). The reason for that is that all of
the profile data will be calculated and the graph needs to update
dynamically, so whenever the settings changes, I ask for the model which
is the biggest graph and replot only the ones we need.

The second part adds a new animation function 'animdelete' to fade-out and
delete the item when it's done. the old function 'hide' did just that but
a hide shouldn't delete anything.

The third part is preferenes awareness for the PP graphs. I created two
new functions that receive the settings key for visibility and use the
QSettings to show / hide them. This also works quite well for the axis;
if no graph is visible, the axis will also hide itself.

The fourth part is colors. The pp graphs now have the correct colors.

And a bit of code cleanup too.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-01-27 09:15:28 -08:00
..
animationfunctions.cpp Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
animationfunctions.h Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
divecartesianaxis.cpp Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
divecartesianaxis.h Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
diveeventitem.cpp Fix compile time warnings 2014-01-17 06:39:24 +07:00
diveeventitem.h Transform the DiveProfileItem to an Abstract Generalization 2014-01-17 06:18:00 +07:00
divelineitem.cpp Added a new Namespace to deal with Animations and related functions. 2014-01-16 10:12:29 +07:00
divelineitem.h Added a class based on QGraphicsLineItem that can be animated. 2014-01-16 10:12:29 +07:00
divepixmapitem.cpp Whitespace and coding style updates 2014-01-16 11:50:56 +07:00
divepixmapitem.h Added a QGraphicsPixmapItem subclass that handles Animations. 2014-01-16 10:12:29 +07:00
diveplotdatamodel.cpp Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
diveplotdatamodel.h Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
diveprofileitem.cpp Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
diveprofileitem.h Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
diverectitem.cpp Whitespace and coding style updates 2014-01-16 11:50:56 +07:00
diverectitem.h Added a new class based on QGraphicsRectItem that can be animated. 2014-01-16 10:12:20 +07:00
divetextitem.cpp Add a MeanDepthItem that has 2 strings. 2014-01-22 12:29:41 -08:00
divetextitem.h Add the dive computer text. 2014-01-21 09:38:46 -08:00
profilewidget2.cpp Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
profilewidget2.h Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00