"Fossies" - the Fresh Open Source Software Archive 
Member "xosview-1.23/sensorfieldmeter.h" (11 Jul 2020, 805 Bytes) of package /linux/misc/xosview-1.23.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "sensorfieldmeter.h" see the
Fossies "Dox" file reference documentation.
1 //
2 // Copyright (c) 2014 by Tomi Tapper <tomi.o.tapper@jyu.fi>
3 //
4 // This file may be distributed under terms of the GPL
5 //
6 // Put code common to *BSD and Linux sensor meters here.
7 //
8
9 #ifndef _SENSORFIELDMETER_H_
10 #define _SENSORFIELDMETER_H_
11
12 #include "fieldmeter.h"
13 #include "xosview.h"
14
15
16 class SensorFieldMeter : public FieldMeter {
17 public:
18 SensorFieldMeter( XOSView *parent, const char *title = "",
19 const char *legend = "", int docaptions = 0,
20 int dolegends = 0, int dousedlegends = 0 );
21 ~SensorFieldMeter( void );
22
23 protected:
24 void updateLegend( void );
25 void checkFields( double low, double high );
26 char unit_[8];
27 double high_, low_;
28 bool has_high_, has_low_, negative_;
29 unsigned long actcolor_, highcolor_, lowcolor_;
30
31 private:
32
33 };
34
35
36 #endif