diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-07-02 13:43:48 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-07-02 13:43:48 -0700 |
commit | be6e6638de10fd120a7adeb5d85121f41e99a9c9 (patch) | |
tree | 40da4ef273388d3d276dafe07a3e814c70641257 /qt-ui/graphicsview-common.h | |
parent | 44c33742c26dcf9387b5c837c161e33ddc5eb060 (diff) | |
parent | 7c8bdf70d5300a0325c7c6cc8872373fc8274063 (diff) | |
download | subsurface-be6e6638de10fd120a7adeb5d85121f41e99a9c9.tar.gz |
Merge branch 'nitpicks' of github.com:tcanabrava/subsurface
Diffstat (limited to 'qt-ui/graphicsview-common.h')
-rw-r--r-- | qt-ui/graphicsview-common.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/qt-ui/graphicsview-common.h b/qt-ui/graphicsview-common.h new file mode 100644 index 000000000..96cecc8e6 --- /dev/null +++ b/qt-ui/graphicsview-common.h @@ -0,0 +1,41 @@ +#ifndef GRAPHICSVIEW_COMMON_H +#define GRAPHICSVIEW_COMMON_H + +#include "../color.h" +#include <QMap> +#include <QVector> +#include <QColor> + +#define SAC_COLORS_START_IDX SAC_1 +#define SAC_COLORS 9 +#define VELOCITY_COLORS_START_IDX VELO_STABLE +#define VELOCITY_COLORS 5 + +typedef enum { + /* SAC colors. Order is important, the SAC_COLORS_START_IDX define above. */ + SAC_1, SAC_2, SAC_3, SAC_4, SAC_5, SAC_6, SAC_7, SAC_8, SAC_9, + + /* Velocity colors. Order is still important, ref VELOCITY_COLORS_START_IDX. */ + VELO_STABLE, VELO_SLOW, VELO_MODERATE, VELO_FAST, VELO_CRAZY, + + /* gas colors */ + PO2, PO2_ALERT, PN2, PN2_ALERT, PHE, PHE_ALERT, PP_LINES, + + /* Other colors */ + TEXT_BACKGROUND, ALERT_BG, ALERT_FG, EVENTS, SAMPLE_DEEP, SAMPLE_SHALLOW, + SMOOTHED, MINUTE, TIME_GRID, TIME_TEXT, DEPTH_GRID, MEAN_DEPTH, DEPTH_TOP, + DEPTH_BOTTOM, TEMP_TEXT, TEMP_PLOT, SAC_DEFAULT, BOUNDING_BOX, PRESSURE_TEXT, BACKGROUND, + CEILING_SHALLOW, CEILING_DEEP, CALC_CEILING_SHALLOW, CALC_CEILING_DEEP +} color_indice_t; + + + +/* profile_color[color indice] = COLOR(screen color, b/w printer color, color printer}} printer & screen colours could be different */ + +extern QMap<color_indice_t, QVector<QColor> > profile_color; + +void fill_profile_color(); + + + +#endif |