Mapper
Functions | Variables
subdisplay.c File Reference
#include "prototypes.h"
#include <math.h>
Include dependency graph for subdisplay.c:

Go to the source code of this file.

Functions

void options_rain ()
 
void options_draw ()
 
void quit_draw ()
 
void get_new_values ()
 
void bhandle_expose ()
 
void print_bdraw (int)
 
void print_me ()
 
Widget BuildPulldownsubPushMenu (Widget parent, char *menu_title, char menu_mnemonic, struct MenuItem *items)
 
Widget BuildPulldownsubToggleMenu (Widget parent, char *menu_title, char menu_mnemonic, struct MenuItem *items)
 
void subdisplay (char *id, char *pc, int month, int day, int year, int hour, int min)
 
void get_new_values (struct stim etim, struct stim btim, char *id, char *pc)
 
void draw_area (int k, int m, int xs, int ys, int xz, int yz)
 
struct max_min get_max_min (struct stn_values *stn_values, int inum)
 
int get_delta_time (time_t lbtim, time_t letim)
 
float get_delta_valu (int diff)
 
void options_draw (Widget w, XtPointer data, XmDrawingAreaCallbackStruct *call_data)
 
void options_rain (Widget w, XtPointer data, XmDrawingAreaCallbackStruct *call_data)
 
void quit_draw (Widget w, XtPointer data, XmDrawingAreaCallbackStruct *call_data)
 
void bhandle_expose (Widget w, XtPointer data, XmDrawingAreaCallbackStruct *call_data)
 
int get_hourly (int k)
 
void print_me (Widget w, XtPointer data, XmDrawingAreaCallbackStruct *call_data)
 

Variables

int future_time_series_days
 
int past_time_series_days
 
int print_flag
 
Widget mpbutton [10]
 
struct sensor_recsensor_rec
 
struct stn_values etn_values [5000]
 
struct stn_values btn_values [5000]
 
unsigned int sensortype
 
struct sensor_typestype
 
int init_subdisplay
 
struct database dbase
 
struct sindxsdx
 
struct number_recnumber_rec
 
struct stn_valuesstn_values
 
XFontStruct * info_font [10]
 
Font font [10]
 
Display * display
 
struct save_rec save_rec [10]
 
Widget top_level
 
Widget draw_dialog [10]
 
unsigned long mmap [16]
 
Widget bmain_window
 
Widget bdrawing_area [10]
 
Window bwindow [20]
 
Window root_win
 
struct sensor_filesfile
 
struct stim btim
 
struct stim etim
 
struct stn_values values [10000]
 
char qual [10]
 
int display_method
 
static int bmax_width
 
static int bmax_height
 
static int depth
 
int defscale
 
int deflinear
 
int defrain
 
int debug
 
GC gc1
 
char * fontname
 
int report_limit =5000
 

Function Documentation

◆ bhandle_expose() [1/2]

void bhandle_expose ( )
Here is the caller graph for this function:

◆ bhandle_expose() [2/2]

void bhandle_expose ( Widget  w,
XtPointer  data,
XmDrawingAreaCallbackStruct *  call_data 
)

Definition at line 1968 of file subdisplay.c.

Here is the call graph for this function:

◆ BuildPulldownsubPushMenu()

Widget BuildPulldownsubPushMenu ( Widget  parent,
char *  menu_title,
char  menu_mnemonic,
struct MenuItem items 
)

Definition at line 2185 of file subdisplay.c.

Here is the caller graph for this function:

◆ BuildPulldownsubToggleMenu()

Widget BuildPulldownsubToggleMenu ( Widget  parent,
char *  menu_title,
char  menu_mnemonic,
struct MenuItem items 
)

Definition at line 2143 of file subdisplay.c.

Here is the caller graph for this function:

◆ draw_area()

void draw_area ( int  k,
int  m,
int  xs,
int  ys,
int  xz,
int  yz 
)

Definition at line 600 of file subdisplay.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_delta_time()

int get_delta_time ( time_t  lbtim,
time_t  letim 
)

Definition at line 1736 of file subdisplay.c.

Here is the caller graph for this function:

◆ get_delta_valu()

float get_delta_valu ( int  diff)

Definition at line 1775 of file subdisplay.c.

Here is the caller graph for this function:

◆ get_hourly()

int get_hourly ( int  k)

Definition at line 1998 of file subdisplay.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_max_min()

struct max_min get_max_min ( struct stn_values stn_values,
int  inum 
)

Definition at line 600 of file subdisplay.c.

Here is the caller graph for this function:

◆ get_new_values() [1/2]

void get_new_values ( )
Here is the caller graph for this function:

◆ get_new_values() [2/2]

void get_new_values ( struct stim  etim,
struct stim  btim,
char *  id,
char *  pc 
)

Definition at line 131 of file subdisplay.c.

Here is the call graph for this function:

◆ options_draw() [1/2]

void options_draw ( )
Here is the caller graph for this function:

◆ options_draw() [2/2]

void options_draw ( Widget  w,
XtPointer  data,
XmDrawingAreaCallbackStruct *  call_data 
)

Definition at line 1848 of file subdisplay.c.

Here is the call graph for this function:

◆ options_rain() [1/2]

void options_rain ( )
Here is the caller graph for this function:

◆ options_rain() [2/2]

void options_rain ( Widget  w,
XtPointer  data,
XmDrawingAreaCallbackStruct *  call_data 
)

Definition at line 1906 of file subdisplay.c.

Here is the call graph for this function:

◆ print_bdraw()

void print_bdraw ( int  k)

Definition at line 2238 of file subdisplay.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_me() [1/2]

void print_me ( )
Here is the caller graph for this function:

◆ print_me() [2/2]

void print_me ( Widget  w,
XtPointer  data,
XmDrawingAreaCallbackStruct *  call_data 
)

Definition at line 2228 of file subdisplay.c.

Here is the call graph for this function:

◆ quit_draw() [1/2]

void quit_draw ( )
Here is the caller graph for this function:

◆ quit_draw() [2/2]

void quit_draw ( Widget  w,
XtPointer  data,
XmDrawingAreaCallbackStruct *  call_data 
)

Definition at line 1952 of file subdisplay.c.

◆ subdisplay()

void subdisplay ( char *  id,
char *  pc,
int  month,
int  day,
int  year,
int  hour,
int  min 
)

Definition at line 55 of file subdisplay.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ bdrawing_area

Widget bdrawing_area[10]
extern

Definition at line 182 of file mapper.c.

◆ bmain_window

Widget bmain_window
extern

Definition at line 181 of file mapper.c.

◆ bmax_height

int bmax_height
static

Definition at line 35 of file subdisplay.c.

◆ bmax_width

int bmax_width
static

Definition at line 35 of file subdisplay.c.

◆ btim

struct stim btim

Definition at line 29 of file subdisplay.c.

◆ btn_values

struct stn_values btn_values[5000]

Definition at line 8 of file subdisplay.c.

◆ bwindow

Window bwindow[20]
extern

Definition at line 189 of file mapper.c.

◆ dbase

struct database dbase
extern

Definition at line 120 of file mapper.c.

◆ debug

int debug
extern

Definition at line 53 of file hydro_data.h.

◆ deflinear

int deflinear
extern

Definition at line 44 of file mapper.c.

◆ defrain

int defrain
extern

Definition at line 42 of file mapper.c.

◆ defscale

int defscale
extern

Definition at line 43 of file mapper.c.

◆ depth

int depth
static

Definition at line 35 of file subdisplay.c.

◆ display

Display* display
extern

Definition at line 159 of file mapper.c.

◆ display_method

int display_method

Definition at line 34 of file subdisplay.c.

◆ draw_dialog

Widget draw_dialog[10]
extern

Definition at line 180 of file mapper.c.

◆ etim

struct stim etim

Definition at line 29 of file subdisplay.c.

◆ etn_values

struct stn_values etn_values[5000]

Definition at line 8 of file subdisplay.c.

◆ font

Font font[10]
extern

Definition at line 161 of file mapper.c.

◆ fontname

char* fontname

Definition at line 52 of file subdisplay.c.

◆ future_time_series_days

int future_time_series_days
extern

Definition at line 41 of file mapper.c.

◆ gc1

GC gc1

Definition at line 51 of file subdisplay.c.

◆ info_font

XFontStruct* info_font[10]
extern

Definition at line 195 of file mapper.c.

◆ init_subdisplay

int init_subdisplay
extern

Definition at line 48 of file mapper.c.

◆ mmap

unsigned long mmap[16]
extern

Definition at line 117 of file mapper.c.

◆ mpbutton

Widget mpbutton[10]
extern

Definition at line 178 of file mapper.c.

◆ number_rec

struct number_rec* number_rec
extern

Definition at line 123 of file mapper.c.

◆ past_time_series_days

int past_time_series_days
extern

Definition at line 40 of file mapper.c.

◆ print_flag

int print_flag
extern

Definition at line 39 of file mapper.c.

◆ qual

char qual[10]

Definition at line 33 of file subdisplay.c.

◆ report_limit

int report_limit =5000

Definition at line 53 of file subdisplay.c.

◆ root_win

Window root_win

Definition at line 28 of file subdisplay.c.

◆ save_rec

struct save_rec save_rec[10]
extern

Definition at line 124 of file mapper.c.

◆ sdx

struct sindx* sdx
extern

Definition at line 122 of file mapper.c.

◆ sensor_rec

struct sensor_rec* sensor_rec
extern

Definition at line 119 of file mapper.c.

◆ sensortype

unsigned int sensortype
extern

Definition at line 13 of file subdisplay.c.

◆ sfile

struct sensor_file* sfile
extern

Definition at line 126 of file mapper.c.

◆ stn_values

struct stn_values* stn_values
extern

Definition at line 124 of file mapper.c.

◆ stype

struct sensor_type* stype
extern

Definition at line 120 of file mapper.c.

◆ top_level

Widget top_level
extern

Definition at line 5 of file display_rec.c.

◆ values

struct stn_values values[10000]

Definition at line 29 of file subdisplay.c.