Commit 85a52d25 authored by claes's avatar claes

Cursor time was not shown for history curves

parent a69adcf8
This diff is collapsed.
/* /*
* Proview $Id: ge_curve.h,v 1.11 2008-07-17 11:21:25 claes Exp $ * Proview $Id: ge_curve.h,v 1.12 2008-09-18 15:00:21 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -45,6 +45,12 @@ typedef enum { ...@@ -45,6 +45,12 @@ typedef enum {
curve_eAxis_y curve_eAxis_y
} curve_eAxis; } curve_eAxis;
typedef enum {
curve_eTimeFormat_Float,
curve_eTimeFormat_HourMinute,
curve_eTimeFormat_DayHour
} curve_eTimeFormat;
//! Contains data for the curves. //! Contains data for the curves.
class GeCurveData { class GeCurveData {
public: public:
...@@ -71,6 +77,8 @@ class GeCurveData { ...@@ -71,6 +77,8 @@ class GeCurveData {
double axis_width[CURVE_MAX_COLS]; double axis_width[CURVE_MAX_COLS];
char format[CURVE_MAX_COLS][20]; char format[CURVE_MAX_COLS][20];
int x_reverse; int x_reverse;
curve_eTimeFormat time_format;
void get_borders(); void get_borders();
void get_default_axis(); void get_default_axis();
void select_color( bool dark_bg); void select_color( bool dark_bg);
...@@ -156,6 +164,7 @@ class GeCurve { ...@@ -156,6 +164,7 @@ class GeCurve {
void activate_help(); void activate_help();
void activate_minmax_ok( double min_value, double max_value); void activate_minmax_ok( double min_value, double max_value);
void set_curvedata( GeCurveData *curve_data); void set_curvedata( GeCurveData *curve_data);
void redraw();
static int growcurve_cb( GlowCtx *ctx, glow_tEvent event); static int growcurve_cb( GlowCtx *ctx, glow_tEvent event);
static int init_growcurve_cb( GlowCtx *fctx, void *client_data); static int init_growcurve_cb( GlowCtx *fctx, void *client_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment