ARB
|
#include <aw_color_groups.hxx>
#include "aw_preset.hxx"
#include "aw_root.hxx"
#include "aw_awar.hxx"
#include "aw_device.hxx"
#include "aw_advice.hxx"
#include "aw_question.hxx"
#include "aw_msg.hxx"
#include "aw_def.hxx"
#include "aw_nawar.hxx"
#include "aw_xfont.hxx"
#include "aw_rgb.hxx"
#include <arbdbt.h>
#include <arb_strbuf.h>
#include <vector>
#include <map>
#include <string>
Go to the source code of this file.
Classes | |
struct | ColorGroupDef |
struct | gc_desc |
class | gc_range |
class | AW_gc_manager |
class | AW_hsv |
Macros | |
#define | AWAR_RANGE_OVERLAY "tmp/GCS/range/overlay" |
#define | AWAR_COLOR_GROUPS_PREFIX "colorGroups" |
#define | AWAR_COLOR_GROUPS_USE AWAR_COLOR_GROUPS_PREFIX "/use" |
#define | ATPL_GCMAN_LOCAL "GCS/%s" |
#define | ATPL_GC_LOCAL ATPL_GCMAN_LOCAL "/MANAGE_GCS/%s" |
#define | ALL_FONTS_ID "all_fonts" |
#define | NO_FONT -1 |
#define | NO_SIZE -2 |
#define | RANGE_INDEX_BITS 4 |
#define | RANGE_INDEX_MASK ((1<<RANGE_INDEX_BITS)-1) |
#define | AWAR_SELECTOR_COLOR_LABEL "tmp/aw/color_label" |
#define | AWAR_CV_R "tmp/aw/color_r" |
#define | AWAR_CV_G "tmp/aw/color_g" |
#define | AWAR_CV_B "tmp/aw/color_b" |
#define | AWAR_CV_H "tmp/aw/color_h" |
#define | AWAR_CV_S "tmp/aw/color_s" |
#define | AWAR_CV_V "tmp/aw/color_v" |
#define | AWAR_SELECTOR_FONT_LABEL "tmp/aw/font_label" |
#define | AWAR_SELECTOR_FONT_NAME "tmp/aw/font_name" |
#define | AWAR_SELECTOR_FONT_SIZE "tmp/aw/font_size" |
Typedefs | |
typedef std::map < AW_gc_manager *, AW_window_simple * > | GroupWindowRegistry |
Enumerations | |
enum | gc_type { GC_TYPE_NORMAL, GC_TYPE_GROUP, GC_TYPE_RANGE } |
enum | gc_range_type { GC_RANGE_INVALID, GC_RANGE_LINEAR, GC_RANGE_CYCLIC, GC_RANGE_PLANAR, GC_RANGE_SPATIAL } |
Variables | |
static ColorGroupDef | color_group_def [AW_COLOR_GROUPS+1] |
const int | GC_BACKGROUND = -1 |
const int | GC_INVALID = -2 |
const int | NO_INDEX = -1 |
static const int | STD_LABEL_LEN = 15 |
static const int | COLOR_BUTTON_LEN = 10 |
static const int | FONT_BUTTON_LEN = COLOR_BUTTON_LEN+STD_LABEL_LEN+1 |
static char * | current_color_awarname = NULp |
static bool | ignore_color_value_change = false |
static bool | color_value_change_was_ignored = false |
#define AWAR_RANGE_OVERLAY "tmp/GCS/range/overlay" |
Definition at line 43 of file AW_preset.cxx.
Referenced by AW_manage_GC(), AW_popup_gc_color_range_window(), and range_overlay_changed_cb().
#define AWAR_COLOR_GROUPS_PREFIX "colorGroups" |
Definition at line 44 of file AW_preset.cxx.
Referenced by colorgroupname_awarname().
#define AWAR_COLOR_GROUPS_USE AWAR_COLOR_GROUPS_PREFIX "/use" |
Definition at line 45 of file AW_preset.cxx.
Referenced by AW_get_color_groups_active_awarname(), AW_manage_GC(), AW_popup_gc_color_groups_window(), and color_group_use_changed_cb().
#define ATPL_GCMAN_LOCAL "GCS/%s" |
Definition at line 47 of file AW_preset.cxx.
Referenced by gcman_awarname().
#define ATPL_GC_LOCAL ATPL_GCMAN_LOCAL "/MANAGE_GCS/%s" |
Definition at line 48 of file AW_preset.cxx.
Referenced by color_awarname(), fontinfo_awarname(), fontname_awarname(), and fontsize_awarname().
#define ALL_FONTS_ID "all_fonts" |
Definition at line 50 of file AW_preset.cxx.
Referenced by AW_gc_manager::add_gc(), AW_create_gc_window_named(), AW_gc_manager::init_all_fonts(), and AW_gc_manager::update_all_fonts().
#define NO_FONT -1 |
Definition at line 52 of file AW_preset.cxx.
Referenced by aw_create_font_chooser_awars(), aw_create_font_chooser_window(), AW_gc_manager::update_all_fonts(), and AW_gc_manager::update_gc_font().
#define NO_SIZE -2 |
Definition at line 53 of file AW_preset.cxx.
Referenced by aw_create_font_chooser_awars().
#define RANGE_INDEX_BITS 4 |
Definition at line 146 of file AW_preset.cxx.
Referenced by build_range_gc_number(), and gc_desc::get_color_index().
#define RANGE_INDEX_MASK ((1<<RANGE_INDEX_BITS)-1) |
Definition at line 147 of file AW_preset.cxx.
Referenced by build_range_gc_number(), and gc_desc::get_range_index().
#define AWAR_SELECTOR_COLOR_LABEL "tmp/aw/color_label" |
Definition at line 1629 of file AW_preset.cxx.
Referenced by aw_create_color_chooser_window(), and aw_create_colorslider_awars().
#define AWAR_CV_R "tmp/aw/color_r" |
Definition at line 1631 of file AW_preset.cxx.
Referenced by aw_create_color_chooser_window(), aw_create_colorslider_awars(), aw_set_rgb_sliders(), and colorslider_changed_cb().
#define AWAR_CV_G "tmp/aw/color_g" |
Definition at line 1632 of file AW_preset.cxx.
Referenced by aw_create_color_chooser_window(), aw_create_colorslider_awars(), aw_set_rgb_sliders(), and colorslider_changed_cb().
#define AWAR_CV_B "tmp/aw/color_b" |
Definition at line 1633 of file AW_preset.cxx.
Referenced by aw_create_color_chooser_window(), aw_create_colorslider_awars(), aw_set_rgb_sliders(), and colorslider_changed_cb().
#define AWAR_CV_H "tmp/aw/color_h" |
Definition at line 1634 of file AW_preset.cxx.
Referenced by aw_create_color_chooser_window(), aw_create_colorslider_awars(), and colorslider_changed_cb().
#define AWAR_CV_S "tmp/aw/color_s" |
Definition at line 1635 of file AW_preset.cxx.
Referenced by aw_create_color_chooser_window(), aw_create_colorslider_awars(), and colorslider_changed_cb().
#define AWAR_CV_V "tmp/aw/color_v" |
Definition at line 1636 of file AW_preset.cxx.
Referenced by aw_create_color_chooser_window(), aw_create_colorslider_awars(), and colorslider_changed_cb().
#define AWAR_SELECTOR_FONT_LABEL "tmp/aw/font_label" |
Definition at line 1804 of file AW_preset.cxx.
Referenced by aw_create_font_chooser_awars(), and aw_create_font_chooser_window().
#define AWAR_SELECTOR_FONT_NAME "tmp/aw/font_name" |
Definition at line 1805 of file AW_preset.cxx.
Referenced by aw_create_font_chooser_awars(), and aw_create_font_chooser_window().
#define AWAR_SELECTOR_FONT_SIZE "tmp/aw/font_size" |
Definition at line 1806 of file AW_preset.cxx.
Referenced by aw_create_font_chooser_awars(), and aw_create_font_chooser_window().
typedef std::map<AW_gc_manager*, AW_window_simple*> GroupWindowRegistry |
Definition at line 1254 of file AW_preset.cxx.
enum gc_type |
Enumerator | |
---|---|
GC_TYPE_NORMAL | |
GC_TYPE_GROUP | |
GC_TYPE_RANGE |
Definition at line 140 of file AW_preset.cxx.
enum gc_range_type |
Enumerator | |
---|---|
GC_RANGE_INVALID | |
GC_RANGE_LINEAR | |
GC_RANGE_CYCLIC | |
GC_RANGE_PLANAR | |
GC_RANGE_SPATIAL |
Definition at line 238 of file AW_preset.cxx.
|
static |
Definition at line 1716 of file AW_preset.cxx.
References AW_rgb16::ascii(), aw_create_colorslider_awars(), AW_POPDOWN(), AW_SCALER_LINEAR, aw_set_color(), aw_set_sliders_from_color(), AW_root::awar(), AWAR_CV_B, AWAR_CV_G, AWAR_CV_H, AWAR_CV_R, AWAR_CV_S, AWAR_CV_V, AWAR_SELECTOR_COLOR_LABEL, AW_window::get_root(), label, NULp, and AW_awar::write_string().
Referenced by create_color_button().
|
static |
Referenced by AW_create_gc_window_named(), and create_font_button().
CONSTEXPR_INLINE bool valid_color_group | ( | int | color_group | ) |
Definition at line 59 of file AW_preset.cxx.
References AW_COLOR_GROUPS.
Referenced by AW_get_color_group_name(), colorgroupname_awarname(), and ColorGroupDef::defaultColorgroupName().
|
inline |
Definition at line 63 of file AW_preset.cxx.
References aw_assert, GB_check_hkey(), GB_check_key(), and GBS_global_string_copy().
Referenced by gc_awarname(), and gcman_awarname().
Definition at line 71 of file AW_preset.cxx.
References gcman_specific_awarname().
Referenced by color_awarname(), fontinfo_awarname(), fontname_awarname(), and fontsize_awarname().
Definition at line 74 of file AW_preset.cxx.
References ATPL_GCMAN_LOCAL, and gcman_specific_awarname().
Referenced by AW_gc_manager::awarname_active_range().
Definition at line 78 of file AW_preset.cxx.
References ATPL_GC_LOCAL, and gc_awarname().
Referenced by AW_gc_manager::add_gc(), AW_copy_GC_colors(), AW_gc_manager::create_gc_buttons(), AW_gc_manager::get_current_color(), and AW_gc_manager::update_gc_color().
Definition at line 79 of file AW_preset.cxx.
References ATPL_GC_LOCAL, and gc_awarname().
Referenced by AW_gc_manager::add_gc(), aw_create_font_chooser_window(), AW_gc_manager::init_all_fonts(), AW_gc_manager::update_all_fonts(), and AW_gc_manager::update_gc_font().
Definition at line 80 of file AW_preset.cxx.
References ATPL_GC_LOCAL, and gc_awarname().
Referenced by AW_gc_manager::add_gc(), aw_create_font_chooser_window(), AW_gc_manager::init_all_fonts(), AW_gc_manager::update_all_fonts(), and AW_gc_manager::update_gc_font().
Definition at line 81 of file AW_preset.cxx.
References ATPL_GC_LOCAL, and gc_awarname().
Referenced by AW_gc_manager::add_gc(), create_font_button(), and AW_gc_manager::update_gc_font().
Definition at line 126 of file AW_preset.cxx.
References AWAR_COLOR_GROUPS_PREFIX, GBS_global_string(), NULp, and valid_color_group().
Referenced by AW_gc_manager::add_color_groups(), AW_get_color_group_name(), color_group_name_changed_cb(), and AW_gc_manager::create_gc_buttons().
Definition at line 130 of file AW_preset.cxx.
References ColorGroupDef::defaultColorgroupName().
Referenced by AW_gc_manager::add_color_groups(), and AW_init_color_group_defaults().
Definition at line 149 of file AW_preset.cxx.
References aw_assert, RANGE_INDEX_BITS, and RANGE_INDEX_MASK.
Referenced by gc_range::add_color().
Definition at line 154 of file AW_preset.cxx.
References GBS_string_2_key(), and id.
Referenced by name2ID(), and gc_desc::parse_decl().
Definition at line 160 of file AW_preset.cxx.
References name2ID().
|
static |
Definition at line 477 of file AW_preset.cxx.
References AW_gc_manager::update_gc_font().
Referenced by AW_gc_manager::add_gc().
|
inline |
Definition at line 480 of file AW_preset.cxx.
References AW_font_2_xfig().
Referenced by aw_create_font_chooser_window(), and AW_gc_manager::update_all_fonts().
|
static |
Definition at line 505 of file AW_preset.cxx.
References AW_gc_manager::update_all_fonts().
Referenced by AW_gc_manager::init_all_fonts().
STATIC_ASSERT | ( | AW_PLANAR_COLORS * | AW_PLANAR_COLORS = =AW_RANGE_COLORS | ) |
STATIC_ASSERT | ( | AW_SPATIAL_COLORS *AW_SPATIAL_COLORS * | AW_SPATIAL_COLORS = =AW_RANGE_COLORS | ) |
|
static |
Definition at line 682 of file AW_preset.cxx.
References AW_gc_manager::update_gc_color().
Referenced by AW_gc_manager::add_gc().
|
static |
Definition at line 686 of file AW_preset.cxx.
References AW_advice(), AW_ADVICE_TOGGLE, AW_COLOR_GROUP_NAME_LEN, AW_COLOR_GROUPS, aw_message(), AW_root::awar(), awarname(), colorgroupname_awarname(), NULp, AW_awar::read_string(), and AW_awar::write_string().
Referenced by AW_gc_manager::add_color_groups().
|
static |
Definition at line 710 of file AW_preset.cxx.
References AW_root::awar(), AWAR_COLOR_GROUPS_USE, GC_COLOR_GROUP_USE_CHANGED, AW_awar::read_int(), and AW_gc_manager::trigger_changed_cb().
Referenced by AW_manage_GC().
|
static |
Definition at line 714 of file AW_preset.cxx.
References AW_root::awar(), AWAR_RANGE_OVERLAY, GC_COLOR_GROUP_USE_CHANGED, AW_awar::read_int(), and AW_gc_manager::trigger_changed_cb().
Referenced by AW_manage_GC().
|
static |
Definition at line 784 of file AW_preset.cxx.
References AW_gc_manager::active_range_changed_cb().
Referenced by AW_manage_GC().
AW_gc_manager* AW_manage_GC | ( | AW_window * | aww, |
const char * | gc_base_name, | ||
AW_device * | device, | ||
int | base_drag, | ||
AW_GCM_AREA | area, | ||
const GcChangedCallback & | changecb, | ||
const char * | default_background_color, | ||
... | |||
) |
creates some GC pairs:
the other for drag mode eg. AW_manage_GC(aww, "ARB_NT", device, 0, 1, AW_GCM_DATA_AREA, my_expose_cb, "white","#sequence", NULp); (see implementation for more details on parameter strings) will create 2 GCs: GC 0 (normal) GC 1 (drag) Don't forget the NULp sentinel at the end of the GC definition list.
When the GCs are modified the 'changecb' is called
aww | base window |
gc_base_name | (usually the window_id, prefixed to awars) |
device | screen device |
base_drag | one after last gc |
area | AW_GCM_DATA_AREA or AW_GCM_WINDOW_AREA (motif only) |
changecb | cb if changed |
define_color_groups | true -> add colors for color groups |
... | NULp terminated list of \0 terminated <definition>s: |
<definition>::= <gcdef>|<reserve>|<rangedef>|<groupdef> <reserve> ::= !<num> "reserves <num> gc-numbers; used eg. in arb_pars to sync GCs with arb_ntree" <gcdef> ::= [<option>+]<descript>['$'<default>] "defines a GC" <option> ::= '#'|'+'|'-' "'-'=no font; '#'=only fixed fonts; '+'=append next GC on same line" <descript> ::= "description of GC; shown as label; has to be unique when converted to key" <default> ::= <xcolor>|<gcref> "default color of GC" <xcolor> ::= "accepts any valid X-colorname (e.g. 'white', '#c0ff40')" <gcref> ::= '{'<descript>'}' "reference to another earlier defined gc" <rangedef> ::= '*'<name>','<type>':'<gcdef>[','<gcdef>]+ "defines a GC-range (with one <gcdef> for each support color)" <name> ::= "description of range" <type> ::= 'linear'|'cyclic'|'planar'|'spatial' "rangetype; implies number of required support colors: linear=2 cyclic=3-N planar=3 spatial=4" <groupdef> ::= '&color_groups' "insert color-groups here"
Definition at line 969 of file AW_preset.cxx.
References active_range_changed_cb(), AW_awar::add_callback(), AW_gc_manager::add_color_groups(), AW_gc_manager::add_gc(), AW_gc_manager::add_gc_range(), aw_assert, AW_DATA_BG, AW_GCM_DATA_AREA, AW_WINDOW_BG, AWAR_COLOR_GROUPS_USE, AW_root::awar_int(), AWAR_RANGE_OVERLAY, AW_gc_manager::awarname_active_range(), color_group_use_changed_cb(), GC_BACKGROUND, GC_TYPE_NORMAL, id, AW_gc_manager::init_all_fonts(), AW_gc_manager::init_color_ranges(), range_overlay_changed_cb(), AW_awar::read_int(), AW_gc_manager::reserve_gcs(), AW_gc_manager::set_changed_cb(), AW_root::SINGLETON, va_end(), and va_start().
Referenced by create_phyl_main_window(), DI_create_view_matrix_window(), ED4_root::generate_window(), RNA3D_Graphics::init_devices(), GEN_graphic::init_devices(), SAI_graphic::init_devices(), and AWT_graphic_tree::init_devices().
void AW_copy_GC_colors | ( | AW_root * | aw_root, |
const char * | source_gcman, | ||
const char * | dest_gcman, | ||
const char * | id0, | ||
... | |||
) |
Definition at line 1090 of file AW_preset.cxx.
References AW_root::awar(), color_awarname(), AW_awar::read_char_pntr(), va_end(), va_start(), and AW_awar::write_string().
Referenced by SEC_sync_colors(), and SynchronizeColorsWithEditor().
void AW_init_color_group_defaults | ( | const char * | for_program | ) |
Definition at line 1113 of file AW_preset.cxx.
References aw_assert, AW_COLOR_GROUPS, BUFSIZE, GBS_strstruct::cat(), default_colorgroup_name(), GBT_splitNdestroy_string(), GBS_strstruct::get_position(), NULp, GBS_strstruct::put(), GBS_strstruct::release(), and SEP.
Referenced by ED4_root::generate_window(), and popup_new_main_window().
bool AW_color_groups_active | ( | ) |
returns true if color groups are active
Definition at line 1163 of file AW_preset.cxx.
References aw_assert, AW_gc_manager::color_groups_initialized(), and AW_gc_manager::use_color_groups.
Referenced by getDrawGcs(), ItemShader::overlay_color_groups(), and AP_DefaultTreeShader::update_settings().
const char* AW_get_color_groups_active_awarname | ( | ) |
Definition at line 1168 of file AW_preset.cxx.
References aw_assert, AWAR_COLOR_GROUPS_USE, and AW_gc_manager::color_groups_initialized().
Referenced by global_colorgroup_use_changed_cb().
Definition at line 1173 of file AW_preset.cxx.
References aw_assert, AW_root::awar(), AW_gc_manager::color_groups_initialized(), colorgroupname_awarname(), AW_awar::read_string(), and valid_color_group().
Referenced by create_colorize_window(), and insert_color_collapse_submenu().
|
static |
Definition at line 1179 of file AW_preset.cxx.
References aw_create_color_chooser_window(), AW_root::awar(), AW_window::callback(), AW_window::create_button(), GBS_global_string_copy(), AW_window::get_root(), NULp, and AW_awar::read_char_pntr().
Referenced by AW_preset_create_color_button(), and AW_gc_manager::create_gc_buttons().
|
static |
Definition at line 1189 of file AW_preset.cxx.
References aw_create_font_chooser_window(), AW_window::callback(), AW_window::create_button(), fontinfo_awarname(), GBS_global_string_copy(), and gc_desc::key.
Referenced by AW_gc_manager::create_gc_buttons().
|
static |
Definition at line 1256 of file AW_preset.cxx.
References aw_assert, AW_POPDOWN(), AWAR_COLOR_GROUPS_USE, AW_gc_manager::color_groups_initialized(), AW_gc_manager::create_gc_buttons(), GC_TYPE_GROUP, AW_window::get_root(), makeHelpCallback(), and NULp.
Referenced by AW_create_gc_window_named().
void AW_popup_gc_color_range_window | ( | AW_window * | aww, |
AW_gc_manager * | gcmgr | ||
) |
Definition at line 1291 of file AW_preset.cxx.
References AW_POPDOWN(), AWAR_RANGE_OVERLAY, AW_gc_manager::create_gc_buttons(), GC_TYPE_RANGE, AW_window::get_root(), makeHelpCallback(), and NULp.
Referenced by AW_create_gc_window_named(), and FINAL_TYPE< SEQTYPE >::configure_colors_cb().
AW_window* AW_create_gc_window_named | ( | AW_root * | aw_root, |
AW_gc_manager * | gcman, | ||
const char * | wid, | ||
const char * | windowname | ||
) |
Definition at line 1323 of file AW_preset.cxx.
References ALL_FONTS_ID, AW_window::at(), aw_create_font_chooser_window(), AW_POPDOWN(), AW_popup_gc_color_groups_window(), AW_popup_gc_color_range_window(), gc_desc::colorlabel, AW_gc_manager::create_gc_buttons(), gc_desc::fixed_width_font, GC_TYPE_NORMAL, AW_gc_manager::get_base_name(), AW_gc_manager::has_color_groups(), AW_gc_manager::has_color_range(), AW_gc_manager::has_variable_width_font(), gc_desc::key, and makeHelpCallback().
Referenced by AW_create_gc_window(), CreateRNA3DGcWindow(), createSaiColorWindow(), GEN_create_gc_window(), and SEC_create_gc_window().
AW_window* AW_create_gc_window | ( | AW_root * | aw_root, |
AW_gc_manager * | gcman | ||
) |
Definition at line 1373 of file AW_preset.cxx.
References AW_create_gc_window_named().
Referenced by create_phyl_main_window(), DI_create_view_matrix_window(), ED4_popup_gc_window(), pars_start_cb(), and popup_new_main_window().
int AW_get_drag_gc | ( | AW_gc_manager * | gcman | ) |
Definition at line 1377 of file AW_preset.cxx.
References AW_gc_manager::get_drag_gc().
Referenced by AWT_canvas::AWT_canvas().
void AW_displayColorRange | ( | AW_device * | device, |
int | first_range_gc, | ||
AW::Position | start, | ||
AW_pos | xsize, | ||
AW_pos | ysize | ||
) |
display active color range
device | output device |
first_range_gc | first color range gc |
start | position of upper left corner |
xsize | xsize used per color |
ysize | xsize used per color |
displays AW_PLANAR_COLORS rows and AW_PLANAR_COLORS columns
Definition at line 1381 of file AW_preset.cxx.
References AW_PLANAR_COLORS, AW_device::box(), AW::FillStyle::SOLID, and y.
Referenced by AWT_graphic_tree::show().
void AW_getColorRangeNames | ( | const AW_gc_manager * | gcman, |
int | dimension, | ||
ConstStrArray & | ids, | ||
ConstStrArray & | names | ||
) |
retrieve selected color-range IDs
gcman | the gc-manager defining the color-ranges |
dimension | the wanted dimension of the color-ranges |
ids | array where range-IDs will be stored |
names | array where corresponding range-names will be stored (same index as 'ids') |
Definition at line 1406 of file AW_preset.cxx.
References CharPtrArray::clear(), and AW_gc_manager::getColorRangeNames().
int AW_getFirstRangeGC | ( | AW_gc_manager * | gcman | ) |
Definition at line 1418 of file AW_preset.cxx.
References AW_gc_manager::first_range_gc().
void AW_activateColorRange | ( | AW_gc_manager * | gcman, |
const char * | id | ||
) |
Definition at line 1419 of file AW_preset.cxx.
References AW_gc_manager::activateColorRange().
Referenced by FINAL_TYPE< SEQTYPE >::selected_range_changed_cb().
const char* AW_getActiveColorRangeID | ( | AW_gc_manager * | gcman, |
int * | dimension | ||
) |
gcman | of this gc-manager |
dimension | if !NULp -> is set to dimension of range |
Definition at line 1421 of file AW_preset.cxx.
References AW_gc_manager::getActiveColorRangeID().
|
static |
Definition at line 1440 of file AW_preset.cxx.
References AW_forget_all_window_geometry(), AW_reactivate_all_advices(), AW_reactivate_all_questions(), AWM_ALL, and AW_window::insert_menu_topic().
Referenced by AW_insert_common_property_menu_entries().
void AW_insert_common_property_menu_entries | ( | AW_window_menu_modes * | awmm | ) |
Definition at line 1445 of file AW_preset.cxx.
References add_common_property_menu_entries().
Referenced by create_phyl_main_window(), DI_create_matrix_window(), ED4_root::generate_window(), GEN_map_window::init(), MERGE_create_main_window(), pars_start_cb(), and popup_new_main_window().
void AW_insert_common_property_menu_entries | ( | AW_window_simple_menu * | awsm | ) |
Definition at line 1446 of file AW_preset.cxx.
References add_common_property_menu_entries().
Definition at line 1448 of file AW_preset.cxx.
References aw_message(), error(), AW_window::get_root(), and AW_root::save_properties().
Referenced by AW_save_properties(), and ED4_save_properties().
void AW_save_properties | ( | AW_window * | aw | ) |
Definition at line 1452 of file AW_preset.cxx.
References AW_save_specific_properties(), and NULp.
Referenced by aw_message_save_cb(), create_phyl_main_window(), DI_create_matrix_window(), DI_create_view_matrix_window(), GEN_map_window::init(), MERGE_create_main_window(), pars_start_cb(), and popup_new_main_window().
|
static |
Definition at line 1642 of file AW_preset.cxx.
References AW_root::awar(), AWAR_CV_B, AWAR_CV_G, AWAR_CV_R, AW_rgb_normalized::b(), AW_rgb_normalized::g(), AW_rgb_normalized::r(), AW_awar::touch(), and AW_awar::write_float().
Referenced by aw_set_sliders_from_color().
|
static |
Definition at line 1653 of file AW_preset.cxx.
References aw_set_rgb_sliders(), AW_root::awar(), and AW_awar::read_char_pntr().
Referenced by aw_create_color_chooser_window(), and aw_set_color().
Definition at line 1658 of file AW_preset.cxx.
References aw_set_sliders_from_color(), AW_root::awar(), and AW_awar::write_string().
Referenced by aw_create_color_chooser_window(), aw_set_color(), and colorslider_changed_cb().
Definition at line 1662 of file AW_preset.cxx.
References aw_set_color(), and AW_window::get_root().
|
static |
Definition at line 1666 of file AW_preset.cxx.
References aw_set_color(), AW_root::awar(), AWAR_CV_B, AWAR_CV_G, AWAR_CV_H, AWAR_CV_R, AWAR_CV_S, AWAR_CV_V, AW_rgb_normalized::b(), AW_rgb_normalized::g(), AW_hsv::h(), AW_rgb_normalized::r(), AW_awar::read_float(), AW_hsv::s(), AW_hsv::v(), and AW_awar::write_float().
Referenced by aw_create_colorslider_awars().
|
static |
Definition at line 1702 of file AW_preset.cxx.
References AW_awar::add_callback(), AWAR_CV_B, AWAR_CV_G, AWAR_CV_H, AWAR_CV_R, AWAR_CV_S, AWAR_CV_V, AW_root::awar_float(), AWAR_SELECTOR_COLOR_LABEL, AW_root::awar_string(), colorslider_changed_cb(), and AW_awar::set_minmax().
Referenced by aw_create_color_chooser_window().
|
static |
Definition at line 1808 of file AW_preset.cxx.
References AW_root::awar_int(), AWAR_SELECTOR_FONT_LABEL, AWAR_SELECTOR_FONT_NAME, AWAR_SELECTOR_FONT_SIZE, AW_root::awar_string(), MAX_FONTSIZE, MIN_FONTSIZE, NO_FONT, NO_SIZE, and AW_awar::set_minmax().
Referenced by aw_create_font_chooser_window().
|
static |
Definition at line 1814 of file AW_preset.cxx.
References aw_create_font_chooser_awars(), AW_get_font_specification(), AW_POPDOWN(), AW_root::awar(), AWAR_SELECTOR_FONT_LABEL, AWAR_SELECTOR_FONT_NAME, AWAR_SELECTOR_FONT_SIZE, gc_desc::colorlabel, gc_desc::fixed_width_font, font_has_fixed_width(), fontname_awarname(), fontsize_awarname(), AW_window::get_root(), gc_desc::key, AW_awar::map(), NO_FONT, NULp, and AW_awar::write_string().
|
static |
Definition at line 1886 of file AW_preset.cxx.
References aw_message().
Referenced by AW_preset_create_color_button(), and AW_preset_create_font_chooser().
|
static |
Definition at line 1892 of file AW_preset.cxx.
References AW_awar::add_callback(), aw_message_reload(), AW_root::awar(), AW_window::create_option_menu(), AW_window::get_root(), AW_window::insert_default_option(), AW_window::insert_option(), AW_window::label(), and AW_window::update_option_menu().
Referenced by AW_preset_window().
|
static |
Definition at line 1914 of file AW_preset.cxx.
References AW_awar::add_callback(), aw_message_reload(), AW_root::awar(), create_color_button(), AW_window::get_root(), and AW_window::label().
Referenced by AW_preset_window().
Definition at line 1920 of file AW_preset.cxx.
References AW_POPDOWN(), AW_preset_create_color_button(), AW_preset_create_font_chooser(), AW_window::label_length(), and makeHelpCallback().
Referenced by create_phyl_main_window(), DI_create_matrix_window(), ED4_root::generate_window(), GEN_map_window::init(), pars_start_cb(), and popup_new_main_window().
|
static |
Definition at line 109 of file AW_preset.cxx.
const int GC_BACKGROUND = -1 |
Definition at line 135 of file AW_preset.cxx.
Referenced by AW_gc_manager::add_gc(), and AW_manage_GC().
const int GC_INVALID = -2 |
Definition at line 136 of file AW_preset.cxx.
const int NO_INDEX = -1 |
Definition at line 138 of file AW_preset.cxx.
Referenced by AW_gc_manager::add_gc(), and AW_gc_manager::has_color_groups().
|
static |
Definition at line 1198 of file AW_preset.cxx.
|
static |
Definition at line 1199 of file AW_preset.cxx.
|
static |
Definition at line 1200 of file AW_preset.cxx.
Definition at line 1638 of file AW_preset.cxx.
|
static |
Definition at line 1639 of file AW_preset.cxx.
|
static |
Definition at line 1640 of file AW_preset.cxx.