profile: move printing-related variables to ProfileScene

Since the ProfileScene does the actual rendering, it needs
access to the "printMode", "isGrayScale" and "fontPrintScale"
variables. Move them down from ProfileView to ProfileScene.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-07-29 06:50:59 +02:00 committed by Dirk Hohndel
parent f8fbff9f7d
commit bf12756819
4 changed files with 25 additions and 24 deletions

View file

@ -30,6 +30,9 @@ const static struct ProfileItemPos {
} itemPos;
ProfileScene::ProfileScene(double fontPrintScale) :
fontPrintScale(fontPrintScale),
printMode(false),
isGrayscale(false),
dataModel(new DivePlotDataModel(this)),
profileYAxis(new DepthAxis(fontPrintScale, *this)),
gasYAxis(new PartialGasPressureAxis(*dataModel, fontPrintScale, *this)),