ARB
Macros | Enumerations | Functions | Variables
DI_view_matrix.cxx File Reference
#include "di_view_matrix.hxx"
#include <aw_awars.hxx>
#include <aw_preset.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <awt_canvas.hxx>
#include <arb_algo.h>
#include <awt_config_manager.hxx>
Include dependency graph for DI_view_matrix.cxx:

Go to the source code of this file.

Macros

#define AWAR_MATRIX   "matrix/"
 
#define AWAR_MATRIX_PADDINGX   AWAR_MATRIX "paddingx"
 
#define AWAR_MATRIX_PADDINGY   AWAR_MATRIX "paddingy"
 
#define AWAR_MATRIX_SHOWZERO   AWAR_MATRIX "show_zero"
 
#define AWAR_MATRIX_DIGITS   AWAR_MATRIX "show_digits"
 
#define AWAR_MATRIX_NAMECHARS_TOP   AWAR_MATRIX "namechars_top"
 
#define AWAR_MATRIX_NAMECHARS_LEFT   AWAR_MATRIX "namechars_left"
 
#define MINMAX_GRANULARITY   10000L
 
#define FIELD_SIZE   7
 
#define SCALER_SIZE   200
 

Enumerations

enum  ClickAction { CLICK_SELECT_SPECIES = 1, CLICK_SET_MINMAX }
 

Functions

static void vertical_change_cb (AW_window *aww, MatrixDisplay *disp)
 
static void horizontal_change_cb (AW_window *aww, MatrixDisplay *disp)
 
static void redisplay_needed (UNFIXED, MatrixDisplay *disp)
 
static void reinit_needed (UNFIXED, MatrixDisplay *disp)
 
static void resize_needed (UNFIXED, MatrixDisplay *disp)
 
static void gc_changed_cb (GcChange whatChanged, MatrixDisplay *disp)
 
static void motion_cb (AW_window *aww, MatrixDisplay *disp)
 
static void input_cb (AW_window *aww, MatrixDisplay *disp)
 
static void di_view_set_max_dist (AW_window *aww, int max_dist)
 
static void di_view_set_distances (AW_root *awr, int setmax, MatrixDisplay *disp)
 
static void di_bind_dist_awars (AW_root *aw_root, MatrixDisplay *disp)
 
static void create_matrix_awars (AW_root *awr, MatrixDisplay *disp)
 
static AW_windowcreate_matrix_settings_window (AW_root *awr)
 
static void selected_species_changed_cb (AW_root *, MatrixDisplay *disp)
 
AW_windowDI_create_view_matrix_window (AW_root *awr, MatrixDisplay *disp, save_matrix_params *sparam)
 

Variables

static bool update_display_on_dist_change = true
 
static AWT_config_mapping_def matrixConfigMapping []
 
static AWT_predefined_config predefinedMatrixConfig []
 

Macro Definition Documentation

#define AWAR_MATRIX   "matrix/"

Definition at line 23 of file DI_view_matrix.cxx.

#define AWAR_MATRIX_PADDINGX   AWAR_MATRIX "paddingx"

Definition at line 24 of file DI_view_matrix.cxx.

Referenced by create_matrix_awars(), and create_matrix_settings_window().

#define AWAR_MATRIX_PADDINGY   AWAR_MATRIX "paddingy"

Definition at line 25 of file DI_view_matrix.cxx.

Referenced by create_matrix_awars(), and create_matrix_settings_window().

#define AWAR_MATRIX_SHOWZERO   AWAR_MATRIX "show_zero"

Definition at line 26 of file DI_view_matrix.cxx.

Referenced by create_matrix_awars(), and create_matrix_settings_window().

#define AWAR_MATRIX_DIGITS   AWAR_MATRIX "show_digits"

Definition at line 27 of file DI_view_matrix.cxx.

Referenced by create_matrix_awars(), and create_matrix_settings_window().

#define AWAR_MATRIX_NAMECHARS_TOP   AWAR_MATRIX "namechars_top"

Definition at line 28 of file DI_view_matrix.cxx.

Referenced by create_matrix_awars(), and create_matrix_settings_window().

#define AWAR_MATRIX_NAMECHARS_LEFT   AWAR_MATRIX "namechars_left"

Definition at line 29 of file DI_view_matrix.cxx.

Referenced by create_matrix_awars(), and create_matrix_settings_window().

#define MINMAX_GRANULARITY   10000L

Definition at line 185 of file DI_view_matrix.cxx.

Referenced by input_cb().

#define FIELD_SIZE   7
#define SCALER_SIZE   200

Enumeration Type Documentation

Enumerator
CLICK_SELECT_SPECIES 
CLICK_SET_MINMAX 

Definition at line 180 of file DI_view_matrix.cxx.

Function Documentation

static void vertical_change_cb ( AW_window aww,
MatrixDisplay disp 
)
static
static void horizontal_change_cb ( AW_window aww,
MatrixDisplay disp 
)
static
static void redisplay_needed ( UNFIXED  ,
MatrixDisplay disp 
)
static
static void reinit_needed ( UNFIXED  ,
MatrixDisplay disp 
)
static
static void resize_needed ( UNFIXED  ,
MatrixDisplay disp 
)
static
static void gc_changed_cb ( GcChange  whatChanged,
MatrixDisplay disp 
)
static
static void motion_cb ( AW_window aww,
MatrixDisplay disp 
)
static
static void input_cb ( AW_window aww,
MatrixDisplay disp 
)
static
static void di_view_set_max_dist ( AW_window aww,
int  max_dist 
)
static
static void di_view_set_distances ( AW_root awr,
int  setmax,
MatrixDisplay disp 
)
static
static void di_bind_dist_awars ( AW_root aw_root,
MatrixDisplay disp 
)
static
static void create_matrix_awars ( AW_root awr,
MatrixDisplay disp 
)
static
static AW_window* create_matrix_settings_window ( AW_root awr)
static
static void selected_species_changed_cb ( AW_root ,
MatrixDisplay disp 
)
static

Definition at line 674 of file DI_view_matrix.cxx.

References NULp, and redisplay_needed().

Referenced by DI_create_view_matrix_window().

AW_window* DI_create_view_matrix_window ( AW_root awr,
MatrixDisplay disp,
save_matrix_params sparam 
)

Variable Documentation

bool update_display_on_dist_change = true
static

Definition at line 552 of file DI_view_matrix.cxx.

AWT_config_mapping_def matrixConfigMapping[]
static
Initial value:
= {
{ AWAR_MATRIX_PADDINGX, "paddingx" },
{ AWAR_MATRIX_PADDINGY, "paddingy" },
{ AWAR_MATRIX_SHOWZERO, "showzero" },
{ AWAR_MATRIX_DIGITS, "precision" },
{ AWAR_MATRIX_NAMECHARS_TOP, "namechars_top" },
{ AWAR_MATRIX_NAMECHARS_LEFT, "namechars_left" },
{ NULp, NULp }
}
#define AWAR_MATRIX_NAMECHARS_TOP
#define AWAR_MATRIX_DIGITS
#define AWAR_MATRIX_PADDINGX
#define AWAR_MATRIX_PADDINGY
#define AWAR_MATRIX_NAMECHARS_LEFT
#define NULp
Definition: cxxforward.h:116
#define AWAR_MATRIX_SHOWZERO

Definition at line 611 of file DI_view_matrix.cxx.

AWT_predefined_config predefinedMatrixConfig[]
static
Initial value:
= {
{ "*compact", "Compact matrix view\n- use with fontsize=8\n- use without correction only (hides leading digits)", "namechars_left='10';namechars_top='3';paddingx='-3';paddingy='-2';precision='2';showzero='0'" },
{ NULp, NULp, NULp }
}
#define NULp
Definition: cxxforward.h:116

Definition at line 622 of file DI_view_matrix.cxx.