diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-03-25 23:34:09 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-27 10:58:22 -0700 |
commit | 06a1cb09754e74957891ad9f2bacf24290895210 (patch) | |
tree | 88ff8d6de1942fb81bcb7aa6dbad02985227ff9b /qt-ui/profile/profilewidget2.h | |
parent | ac23d7397f9303c2cff6479458342fe47498ac1b (diff) | |
download | subsurface-06a1cb09754e74957891ad9f2bacf24290895210.tar.gz |
Profile2: add some print related flags
Some flags like printMode and isGrayscale are missing yet needed.
The flag printMode is required so that we know *when* to hide
certain elements such as the ruler and tool tip (e.g. not needed
while printing).
isGrayscale should be passed to all getColor() calls, so that
the greyscale color table is respected.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r-- | qt-ui/profile/profilewidget2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index f02ca4058..eb7486e8d 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -67,6 +67,7 @@ public: void replot(); virtual bool eventFilter(QObject *, QEvent *); void setupItem(AbstractProfilePolygonItem *item, DiveCartesianAxis *hAxis, DiveCartesianAxis *vAxis, DivePlotDataModel *model, int vData, int hData, int zValue); + void setPrintMode(bool mode, bool grayscale = false); public slots: // Necessary to call from QAction's signals. @@ -126,6 +127,8 @@ private: DiveCartesianAxis *heartBeatAxis; DiveHeartrateItem *heartBeatItem; RulerItem2 *rulerItem; + bool isGrayscale; + bool printMode; }; #endif // PROFILEWIDGET2_H |