ARB
|
#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>
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 } |
Variables | |
static bool | update_display_on_dist_change = true |
static AWT_config_mapping_def | matrixConfigMapping [] |
static AWT_predefined_config | predefinedMatrixConfig [] |
#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 |
Referenced by DI_create_view_matrix_window().
#define SCALER_SIZE 200 |
Referenced by DI_create_view_matrix_window().
enum ClickAction |
Enumerator | |
---|---|
CLICK_SELECT_SPECIES | |
CLICK_SET_MINMAX |
Definition at line 180 of file DI_view_matrix.cxx.
|
static |
Definition at line 31 of file DI_view_matrix.cxx.
References MatrixDisplay::monitor_vertical_scroll_cb().
Referenced by DI_create_view_matrix_window().
|
static |
Definition at line 32 of file DI_view_matrix.cxx.
References MatrixDisplay::monitor_horizontal_scroll_cb().
Referenced by DI_create_view_matrix_window().
|
static |
Definition at line 34 of file DI_view_matrix.cxx.
References MatrixDisplay::mark(), MatrixDisplay::NEED_CLEAR, and MatrixDisplay::update_display().
Referenced by DI_create_view_matrix_window(), gc_changed_cb(), and selected_species_changed_cb().
|
static |
Definition at line 39 of file DI_view_matrix.cxx.
References MatrixDisplay::mark(), MatrixDisplay::NEED_SETUP, and MatrixDisplay::update_display().
Referenced by create_matrix_awars().
|
static |
Definition at line 44 of file DI_view_matrix.cxx.
References MatrixDisplay::mark(), MatrixDisplay::NEED_SETUP, and MatrixDisplay::update_display().
Referenced by DI_create_view_matrix_window(), and gc_changed_cb().
|
static |
Definition at line 49 of file DI_view_matrix.cxx.
References di_assert, FALLTHROUGH, GC_COLOR_CHANGED, GC_COLOR_GROUP_USE_CHANGED, GC_FONT_CHANGED, NULp, redisplay_needed(), and resize_needed().
Referenced by DI_create_view_matrix_window().
|
static |
Definition at line 222 of file DI_view_matrix.cxx.
References AW_BUTTON_MIDDLE, AW_event::button, AW_window::get_event(), and MatrixDisplay::handle_move().
Referenced by DI_create_view_matrix_window().
|
static |
Definition at line 231 of file DI_view_matrix.cxx.
References AW_BUTTON_LEFT, AW_BUTTON_MIDDLE, AW_BUTTON_RIGHT, AW_CLICK, AW_KEYMODE_ALT, aw_message(), AW_MIDDLE_AREA, AW_Mouse_Press, AW_WHEEL_DOWN, AW_WHEEL_UP, AW_root::awar(), AWAR_DIST_MAX_DIST, AWAR_DIST_MIN_DIST, AWAR_SPECIES_NAME, AWT_CATCH, AWT_MODE_NONE, AWT_graphic_event::best_click(), AW_event::button, AW_clicked_element::cd1(), AW_clicked_element::cd2(), CLICK_SELECT_SPECIES, CLICK_SET_MINMAX, MatrixDisplay::device, GBS_global_string(), AW_window::get_click_device(), AW_window::get_event(), MatrixDisplay::get_matrix(), AW_window::get_root(), MatrixDisplay::handle_move(), MINMAX_GRANULARITY, DI_ENTRY::name, NULp, MatrixDisplay::scroll_cells(), AW_event::type, MatrixDisplay::update_display(), AW_awar::write_float(), AW_awar::write_string(), AW_event::x, and AW_event::y.
Referenced by DI_create_view_matrix_window(), and AW_cb::run_callbacks().
Definition at line 554 of file DI_view_matrix.cxx.
References AW_root::awar(), AWAR_DIST_MAX_DIST, AWAR_DIST_MIN_DIST, AW_window::get_root(), and AW_awar::write_float().
Referenced by DI_create_view_matrix_window().
|
static |
Definition at line 563 of file DI_view_matrix.cxx.
References AW_root::awar(), AWAR_DIST_MAX_DIST, AWAR_DIST_MIN_DIST, di_assert, MatrixDisplay::mark(), MatrixDisplay::NEED_CLEAR, AW_awar::read_float(), MatrixDisplay::set_slider_max(), MatrixDisplay::set_slider_min(), MatrixDisplay::update_display(), and AW_awar::write_float().
Referenced by di_bind_dist_awars(), and DI_create_view_matrix_window().
|
static |
Definition at line 595 of file DI_view_matrix.cxx.
References AW_awar::add_callback(), AWAR_DIST_MAX_DIST, AWAR_DIST_MIN_DIST, AW_root::awar_float(), and di_view_set_distances().
Referenced by DI_create_view_matrix_window().
|
static |
Definition at line 600 of file DI_view_matrix.cxx.
References AW_awar::add_callback(), AW_root::awar_int(), AWAR_MATRIX_DIGITS, AWAR_MATRIX_NAMECHARS_LEFT, AWAR_MATRIX_NAMECHARS_TOP, AWAR_MATRIX_PADDINGX, AWAR_MATRIX_PADDINGY, AWAR_MATRIX_SHOWZERO, reinit_needed(), and AW_awar::set_minmax().
Referenced by DI_create_view_matrix_window().
Definition at line 627 of file DI_view_matrix.cxx.
References AW_window::auto_space(), AW_POPDOWN(), AW_ROOT_DEFAULT, AWAR_MATRIX_DIGITS, AWAR_MATRIX_NAMECHARS_LEFT, AWAR_MATRIX_NAMECHARS_TOP, AWAR_MATRIX_PADDINGX, AWAR_MATRIX_PADDINGY, AWAR_MATRIX_SHOWZERO, AWT_insert_config_manager(), makeHelpCallback(), and NULp.
Referenced by DI_create_view_matrix_window().
|
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 | ||
) |
Definition at line 678 of file DI_view_matrix.cxx.
References AW_awar::add_callback(), AW_window::auto_space(), AW_create_gc_window(), AW_GCM_DATA_AREA, AW_manage_GC(), AW_MIDDLE_AREA, AW_POPDOWN(), AW_save_properties(), AW_SCALER_EXP_LOWER, AW_root::awar(), AWAR_DIST_MAX_DIST, AWAR_DIST_MIN_DIST, AWAR_SPECIES_NAME, awm, MatrixDisplay::awm, AWM_ALL, AW_window::create_input_field_with_scaler(), create_matrix_awars(), create_matrix_settings_window(), AW_window::create_menu(), MatrixDisplay::device, di_bind_dist_awars(), DI_create_save_matrix_window(), DI_G_LAST, di_view_set_distances(), di_view_set_max_dist(), FIELD_SIZE, gc_changed_cb(), AW_window::get_device(), AW_window::get_root(), AW_window::get_window_id(), horizontal_change_cb(), AW_window_menu::init(), input_cb(), AW_window::insert_menu_topic(), AW_window::label(), motion_cb(), NULp, redisplay_needed(), resize_needed(), SCALER_SIZE, selected_species_changed_cb(), AW_window::set_expose_callback(), AW_window::set_horizontal_change_callback(), AW_window::set_info_area_height(), AW_window::set_input_callback(), AW_window::set_motion_callback(), AW_window::set_resize_callback(), AW_window::set_vertical_change_callback(), and vertical_change_cb().
Referenced by di_view_matrix_cb().
|
static |
Definition at line 552 of file DI_view_matrix.cxx.
|
static |
Definition at line 611 of file DI_view_matrix.cxx.
|
static |
Definition at line 622 of file DI_view_matrix.cxx.