ARB
|
Public Member Functions | |
AW_gc_manager (const char *name, AW_device *device_, int drag_gc_offset_, AW_window *aww_, int colorindex_base_) | |
void | init_all_fonts () const |
void | update_all_fonts (bool sizeChanged) const |
void | init_color_ranges (int &gc) |
bool | has_color_range () const |
int | first_range_gc () const |
bool | has_color_groups () const |
bool | has_variable_width_font () const |
int | size () const |
const gc_desc & | get_gc_desc (int idx) const |
const char * | get_base_name () const |
int | get_drag_gc () const |
void | add_gc (const char *gc_description, int &gc, gc_type type, const char *id_prefix=NULp) |
void | add_gc_range (const char *gc_description) |
void | reserve_gcs (const char *gc_description, int &gc) |
void | add_color_groups (int &gc) |
void | update_gc_color (int idx) const |
void | update_gc_font (int idx) const |
void | update_range_gc_color (int idx, const char *color) const |
void | create_gc_buttons (AW_window *aww, gc_type for_gc_type) |
void | set_changed_cb (const GcChangedCallback &ccb) |
void | trigger_changed_cb (GcChange whatChanged) const |
void | delay_changed_callbacks (bool suppress) const |
const char * | get_current_color (int idx) const |
void | getColorRangeNames (int dimension, ConstStrArray &ids, ConstStrArray &names) const |
void | activateColorRange (const char *id) |
const char * | getActiveColorRangeID (int *dimension) const |
const char * | awarname_active_range () const |
void | active_range_changed_cb (AW_root *awr) |
Static Public Member Functions | |
static bool | color_groups_initialized () |
Static Public Attributes | |
static const char ** | color_group_defaults = NULp |
static bool | use_color_groups = false |
static bool | show_range_overlay = false |
Definition at line 289 of file AW_preset.cxx.
|
inline |
Definition at line 340 of file AW_preset.cxx.
|
inlinestatic |
Definition at line 338 of file AW_preset.cxx.
References color_group_defaults.
Referenced by AW_color_groups_active(), AW_get_color_group_name(), AW_get_color_groups_active_awarname(), and AW_popup_gc_color_groups_window().
void AW_gc_manager::init_all_fonts | ( | ) | const |
Definition at line 927 of file AW_preset.cxx.
References AW_awar::add_callback(), ALL_FONTS_ID, all_fontsOrSizes_changed_cb(), AW_root::awar(), AW_root::awar_int(), fontname_awarname(), fontsize_awarname(), gc_desc::has_font, gc_desc::key, AW_awar::read_int(), AW_root::SINGLETON, and update_gc_font().
Referenced by AW_manage_GC().
void AW_gc_manager::update_all_fonts | ( | bool | sizeChanged | ) | const |
Definition at line 483 of file AW_preset.cxx.
References ALL_FONTS_ID, AW_root::awar(), delay_changed_callbacks(), font_has_fixed_width(), fontname_awarname(), fontsize_awarname(), NO_FONT, AW_awar::read_int(), AW_root::SINGLETON, and AW_awar::write_int().
Referenced by all_fontsOrSizes_changed_cb().
void AW_gc_manager::init_color_ranges | ( | int & | gc | ) |
Definition at line 786 of file AW_preset.cxx.
References active_range_changed_cb(), aw_assert, first_range_gc(), has_color_range(), and AW_root::SINGLETON.
Referenced by AW_manage_GC().
|
inline |
Definition at line 358 of file AW_preset.cxx.
Referenced by add_gc(), AW_create_gc_window_named(), and init_color_ranges().
|
inline |
Definition at line 359 of file AW_preset.cxx.
References AW_RANGE_COLORS.
Referenced by AW_getFirstRangeGC(), init_color_ranges(), and update_range_gc_color().
|
inline |
Definition at line 361 of file AW_preset.cxx.
References NO_INDEX.
Referenced by AW_create_gc_window_named().
bool AW_gc_manager::has_variable_width_font | ( | ) | const |
Definition at line 950 of file AW_preset.cxx.
Referenced by AW_create_gc_window_named().
|
inline |
Definition at line 364 of file AW_preset.cxx.
Definition at line 365 of file AW_preset.cxx.
References aw_assert.
Referenced by get_current_color().
|
inline |
Definition at line 369 of file AW_preset.cxx.
Referenced by AW_create_gc_window_named(), awarname_active_range(), and get_current_color().
|
inline |
Definition at line 370 of file AW_preset.cxx.
Referenced by AW_get_drag_gc().
void AW_gc_manager::add_gc | ( | const char * | gc_description, |
int & | gc, | ||
gc_type | type, | ||
const char * | id_prefix = NULp |
||
) |
Definition at line 849 of file AW_preset.cxx.
References AW_awar::add_callback(), ALL_FONTS_ID, ARB_strpartdup(), aw_assert, AW_DATA_BG, AW_DEFAULT_FIXED_FONT, AW_DEFAULT_NORMAL_FONT, AW_root::awar(), AW_root::awar_int(), AW_root::awar_string(), gc_desc::belongs_to_range(), color_awarname(), DEF_FONTSIZE, default_color(), gc_desc::fixed_width_font, fontinfo_awarname(), fontname_awarname(), fontsize_awarname(), GC_BACKGROUND, gc_color_changed_cb(), gc_fontOrSize_changed_cb(), GC_TYPE_RANGE, has_color_range(), gc_desc::has_font, IF_ASSERTION_USED, implicated, gc_desc::is_color_group(), gc_desc::key, NO_INDEX, NULp, gc_desc::parse_decl(), AW_awar::read_char_pntr(), and AW_root::SINGLETON.
Referenced by gc_range::add_color(), add_color_groups(), and AW_manage_GC().
void AW_gc_manager::add_gc_range | ( | const char * | gc_description | ) |
Definition at line 728 of file AW_preset.cxx.
References error(), GBK_terminatef(), GBS_global_string(), GC_RANGE_CYCLIC, GC_RANGE_INVALID, GC_RANGE_LINEAR, GC_RANGE_PLANAR, GC_RANGE_SPATIAL, and NULp.
Referenced by AW_manage_GC().
void AW_gc_manager::add_color_groups | ( | int & | gc | ) |
Definition at line 957 of file AW_preset.cxx.
References AW_awar::add_callback(), add_gc(), AW_COLOR_GROUPS, AW_root::awar_string(), color_group_defaults, color_group_name_changed_cb(), colorgroupname_awarname(), default_colorgroup_name(), GC_TYPE_GROUP, and AW_root::SINGLETON.
Referenced by AW_manage_GC().
void AW_gc_manager::update_gc_color | ( | int | idx | ) | const |
Definition at line 667 of file AW_preset.cxx.
References aw_assert, AW_root::awar(), gc_desc::belongs_to_range(), color_awarname(), gc_desc::gc, GC_COLOR_CHANGED, gc_desc::key, AW_awar::read_char_pntr(), AW_root::SINGLETON, and trigger_changed_cb().
Referenced by gc_color_changed_cb().
void AW_gc_manager::update_gc_font | ( | int | idx | ) | const |
Definition at line 431 of file AW_preset.cxx.
References aw_assert, AW_get_font_shortname(), AW_root::awar(), gc_desc::belongs_to_range(), fontinfo_awarname(), fontname_awarname(), fontsize_awarname(), GBS_global_string(), gc_desc::gc, GC_FONT_CHANGED, gc_desc::has_font, gc_desc::key, NO_FONT, NULp, AW_awar::read_int(), AW_stylable::set_font(), AW_root::SINGLETON, trigger_changed_cb(), AW_awar::write_int(), and AW_awar::write_string().
Referenced by gc_fontOrSize_changed_cb(), and init_all_fonts().
Definition at line 380 of file AW_preset.cxx.
References first_range_gc().
Referenced by gc_range::update_colors().
Definition at line 1203 of file AW_preset.cxx.
References AW_window::at_newline(), aw_assert, gc_desc::belongs_to_range(), AW_window::button_length(), color_awarname(), colorgroupname_awarname(), gc_desc::colorlabel, AW_window::create_button(), create_color_button(), create_font_button(), AW_window::create_input_field(), GBS_global_string(), GC_RANGE_CYCLIC, GC_RANGE_INVALID, GC_RANGE_LINEAR, GC_RANGE_PLANAR, GC_RANGE_SPATIAL, GC_TYPE_GROUP, GC_TYPE_NORMAL, GC_TYPE_RANGE, gc_desc::get_color_index(), gc_range::get_name(), gc_desc::get_range_index(), gc_range::get_type(), gc_desc::has_font, gc_desc::is_color_group(), gc_desc::key, AW_window::label(), AW_window::label_length(), NULp, and gc_desc::same_line.
Referenced by AW_create_gc_window_named(), AW_popup_gc_color_groups_window(), and AW_popup_gc_color_range_window().
|
inline |
Definition at line 386 of file AW_preset.cxx.
Referenced by AW_manage_GC().
|
inline |
Definition at line 387 of file AW_preset.cxx.
References max.
Referenced by color_group_use_changed_cb(), delay_changed_callbacks(), range_overlay_changed_cb(), update_gc_color(), and update_gc_font().
|
inline |
Definition at line 399 of file AW_preset.cxx.
References aw_assert, and trigger_changed_cb().
Referenced by update_all_fonts().
Definition at line 411 of file AW_preset.cxx.
References AW_root::awar(), color_awarname(), get_base_name(), get_gc_desc(), AW_awar::read_char_pntr(), and AW_root::SINGLETON.
Referenced by gc_range::get_color().
void AW_gc_manager::getColorRangeNames | ( | int | dimension, |
ConstStrArray & | ids, | ||
ConstStrArray & | names | ||
) | const |
Definition at line 814 of file AW_preset.cxx.
References gc_range::get_dimension(), gc_range::get_id(), gc_range::get_name(), and ConstStrArray::put().
Referenced by AW_getColorRangeNames().
void AW_gc_manager::activateColorRange | ( | const char * | id | ) |
Definition at line 795 of file AW_preset.cxx.
References aw_assert, AW_root::awar(), awarname_active_range(), gc_range::get_id(), id, AW_root::SINGLETON, and AW_awar::write_int().
Referenced by AW_activateColorRange().
Definition at line 807 of file AW_preset.cxx.
References gc_range::get_dimension(), and gc_range::get_id().
Referenced by AW_getActiveColorRangeID().
|
inline |
Definition at line 419 of file AW_preset.cxx.
References gcman_awarname(), and get_base_name().
Referenced by activateColorRange(), active_range_changed_cb(), and AW_manage_GC().
void AW_gc_manager::active_range_changed_cb | ( | AW_root * | awr | ) |
Definition at line 771 of file AW_preset.cxx.
References aw_assert, AW_root::awar(), awarname_active_range(), AW_awar::read_int(), and gc_range::update_colors().
Referenced by active_range_changed_cb(), and init_color_ranges().
Definition at line 333 of file AW_preset.cxx.
Referenced by add_color_groups(), and color_groups_initialized().
|
static |
Definition at line 335 of file AW_preset.cxx.
Referenced by AW_color_groups_active().
|
static |
Definition at line 336 of file AW_preset.cxx.