Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htpal.h File Reference

#include "htdata.h"
#include "htobj.h"
#include "htreg.h"

Go to the source code of this file.

Classes

struct  defpal
class  palette_entry

Defines

#define rnt_palette_name   "palette"
#define palettekey   "palette"
#define palclasskey_generic   "generic"
#define palclasskey_tags   "tags"
#define palclasskey_syntax   "syntax"
#define palkey_generic_window_default   "window"
#define palkey_generic_dialog_default   "dialog"
#define palkey_generic_menu_default   "menu"
#define palkey_generic_keys_default   "keyline"
#define palkey_generic_desktop_default   "desktop"
#define palkey_generic_help_default   "help"
#define palkey_generic_cyan   "cyan"
#define palkey_generic_black   "black"
#define palkey_generic_blue   "blue"
#define palkey_generic_gray   "gray"
#define palkey_generic_special   "special"
#define palidx_generic_body   0
#define palidx_generic_text_focused   1
#define palidx_generic_text_unfocused   2
#define palidx_generic_text_shortcut   3
#define palidx_generic_text_shortcut_selected   4
#define palidx_generic_text_selected   5
#define palidx_generic_text_disabled   6
#define palidx_generic_frame_focused   7
#define palidx_generic_frame_unfocused   8
#define palidx_generic_frame_move_resize   9
#define palidx_generic_frame_killer   10
#define palidx_generic_scrollbar   11
#define palidx_generic_input_focused   12
#define palidx_generic_input_unfocused   13
#define palidx_generic_input_selected   14
#define palidx_generic_input_clip   15
#define palidx_generic_button_focused   16
#define palidx_generic_button_unfocused   17
#define palidx_generic_button_shadow   18
#define palidx_generic_button_shortcut   19
#define palidx_generic_list_focused_selected   20
#define palidx_generic_list_focused_unselected   21
#define palidx_generic_list_unfocused_selected   22
#define palidx_generic_list_unfocused_unselected   23
#define palidx_generic_cluster_focused   24
#define palidx_generic_cluster_unfocused   25
#define palidx_generic_cluster_shortcut   26

Functions

vcp getcolorv (palette *pal, UINT index)
bool load_pal (char *pal_class, char *pal_flavour, palette *p)
bool init_pal ()
void done_pal ()


Define Documentation

#define palclasskey_generic   "generic"
 

Definition at line 64 of file htpal.h.

Referenced by ht_view::defaultpaletteclass(), ht_context_menu_window_body::defaultpaletteclass(), ht_menu_frame::defaultpaletteclass(), and ht_menu::defaultpaletteclass().

#define palclasskey_syntax   "syntax"
 

Definition at line 66 of file htpal.h.

Referenced by ht_c_syntax_lexer::reloadpalette().

#define palclasskey_tags   "tags"
 

Definition at line 65 of file htpal.h.

Referenced by ht_uformat_viewer::reloadpalette().

#define palettekey   "palette"
 

Definition at line 58 of file htpal.h.

Referenced by load_pal().

#define palidx_generic_body   0
 

Definition at line 85 of file htpal.h.

Referenced by ht_hbar::draw(), ht_vbar::draw(), ht_window::draw(), ht_context_menu_window_body::draw(), ht_menu::draw(), ht_uformat_viewer::draw(), ht_color_block::draw(), ht_dialog::draw(), ht_logviewer::draw(), ht_desktop::draw(), ht_text_viewer::get_bgcolor(), ht_statictext::gettextcolor(), ht_listbox_title::getTextColor(), and ht_uformat_viewer::render_tagstring().

#define palidx_generic_button_focused   16
 

Definition at line 101 of file htpal.h.

Referenced by ht_button::draw().

#define palidx_generic_button_shadow   18
 

Definition at line 103 of file htpal.h.

Referenced by ht_button::draw().

#define palidx_generic_button_shortcut   19
 

Definition at line 104 of file htpal.h.

Referenced by ht_button::draw().

#define palidx_generic_button_unfocused   17
 

Definition at line 102 of file htpal.h.

Referenced by ht_button::draw().

#define palidx_generic_cluster_focused   24
 

Definition at line 109 of file htpal.h.

Referenced by ht_radioboxes::draw(), and ht_checkboxes::draw().

#define palidx_generic_cluster_shortcut   26
 

Definition at line 111 of file htpal.h.

Referenced by ht_checkboxes::draw().

#define palidx_generic_cluster_unfocused   25
 

Definition at line 110 of file htpal.h.

Referenced by ht_radioboxes::draw(), and ht_checkboxes::draw().

#define palidx_generic_frame_focused   7
 

Definition at line 92 of file htpal.h.

Referenced by ht_frame::getcurcol_normal().

#define palidx_generic_frame_killer   10
 

Definition at line 95 of file htpal.h.

Referenced by ht_frame::getcurcol_killer().

#define palidx_generic_frame_move_resize   9
 

Definition at line 94 of file htpal.h.

Referenced by ht_frame::getcurcol_normal().

#define palidx_generic_frame_unfocused   8
 

Definition at line 93 of file htpal.h.

Referenced by ht_frame::getcurcol_normal().

#define palidx_generic_input_clip   15
 

Definition at line 100 of file htpal.h.

Referenced by ht_hexinputfield::draw(), and ht_strinputfield::draw().

#define palidx_generic_input_focused   12
 

Definition at line 97 of file htpal.h.

Referenced by ht_hexinputfield::draw(), ht_strinputfield::draw(), ht_text_editor::get_bgcolor(), and ht_listpopup::gettextcolor().

#define palidx_generic_input_selected   14
 

Definition at line 99 of file htpal.h.

Referenced by ht_text_viewer::draw(), ht_strinputfield::draw(), ht_listpopup::gettextcolor(), and ht_text_viewer::render_str_color().

#define palidx_generic_input_unfocused   13
 

Definition at line 98 of file htpal.h.

Referenced by ht_hexinputfield::draw(), ht_strinputfield::draw(), and ht_text_editor::get_bgcolor().

#define palidx_generic_list_focused_selected   20
 

Definition at line 105 of file htpal.h.

Referenced by ht_listbox::draw(), and ht_treeview::draw_r().

#define palidx_generic_list_focused_unselected   21
 

Definition at line 106 of file htpal.h.

Referenced by ht_listbox::draw(), and ht_project_listbox::draw().

#define palidx_generic_list_unfocused_selected   22
 

Definition at line 107 of file htpal.h.

Referenced by ht_listbox::draw(), and ht_treeview::draw_r().

#define palidx_generic_list_unfocused_unselected   23
 

Definition at line 108 of file htpal.h.

Referenced by ht_treeview::draw(), ht_listbox::draw(), ht_project_listbox::draw(), and ht_treeview::draw_r().

#define palidx_generic_scrollbar   11
 

Definition at line 96 of file htpal.h.

Referenced by ht_scrollbar::draw().

#define palidx_generic_text_disabled   6
 

Definition at line 91 of file htpal.h.

Referenced by ht_context_menu_window_body::draw(), and ht_keyline::draw().

#define palidx_generic_text_focused   1
 

Definition at line 86 of file htpal.h.

Referenced by ht_context_menu_window_body::draw(), ht_menu::draw(), ht_label::draw(), ht_keyline::draw(), ht_status::draw(), and ht_info_lexer::gettoken_color().

#define palidx_generic_text_selected   5
 

Definition at line 90 of file htpal.h.

Referenced by ht_context_menu_window_body::draw(), and ht_menu::draw().

#define palidx_generic_text_shortcut   3
 

Definition at line 88 of file htpal.h.

Referenced by ht_context_menu_window_body::draw(), ht_menu::draw(), ht_label::draw(), ht_keyline::draw(), and ht_info_lexer::gettoken_color().

#define palidx_generic_text_shortcut_selected   4
 

Definition at line 89 of file htpal.h.

Referenced by ht_context_menu_window_body::draw(), ht_menu::draw(), and ht_info_lexer::gettoken_color().

#define palidx_generic_text_unfocused   2
 

Definition at line 87 of file htpal.h.

Referenced by ht_label::draw().

#define palkey_generic_black   "black"
 

Definition at line 80 of file htpal.h.

#define palkey_generic_blue   "blue"
 

Definition at line 81 of file htpal.h.

Referenced by ht_listpopup_dialog::defaultpalette().

#define palkey_generic_cyan   "cyan"
 

Definition at line 79 of file htpal.h.

Referenced by ht_app::create_window_help(), and ht_app::create_window_project().

#define palkey_generic_desktop_default   "desktop"
 

Definition at line 76 of file htpal.h.

Referenced by ht_desktop::defaultpalette().

#define palkey_generic_dialog_default   "dialog"
 

Definition at line 73 of file htpal.h.

Referenced by ht_color_block::defaultpalette(), ht_progress_indicator::defaultpalette(), ht_label::defaultpalette(), ht_statictext::defaultpalette(), ht_listbox::defaultpalette(), ht_listbox_title::defaultpalette(), ht_button::defaultpalette(), ht_inputfield::defaultpalette(), ht_cluster::defaultpalette(), and ht_dialog::defaultpalette().

#define palkey_generic_gray   "gray"
 

Definition at line 82 of file htpal.h.

#define palkey_generic_help_default   "help"
 

Definition at line 77 of file htpal.h.

Referenced by ht_info_viewer::defaultpalette().

#define palkey_generic_keys_default   "keyline"
 

Definition at line 75 of file htpal.h.

Referenced by ht_keyline::defaultpalette().

#define palkey_generic_menu_default   "menu"
 

Definition at line 74 of file htpal.h.

Referenced by ht_context_menu_window_body::defaultpalette(), ht_menu_frame::defaultpalette(), ht_menu::defaultpalette(), ht_menu::execute_menu(), and execute_submenu().

#define palkey_generic_special   "special"
 

Definition at line 83 of file htpal.h.

Referenced by ht_app::popup_view_list(), and ht_app::popup_window_list().

#define palkey_generic_window_default   "window"
 

Definition at line 72 of file htpal.h.

Referenced by ht_view::defaultpalette(), htclassimage_init(), htpefimage_init(), htpefimports_init(), ht_uformat_viewer::ref_desc(), and ht_uformat_viewer::ref_flags().

#define rnt_palette_name   "palette"
 

Definition at line 28 of file htpal.h.

Referenced by load_pal().


Function Documentation

void done_pal  ) 
 

Definition at line 340 of file htpal.cc.

References ATOM_HT_CREATE_PALETTE_ENTRY, ATOM_PALETTE_ENTRY, UNREGISTER, and unregister_atom().

vcp getcolorv palette pal,
UINT  index
 

Definition at line 148 of file htpal.cc.

References palette::data, palette::size, UINT, VC_RED, VC_WHITE, VCP, and vcp.

Referenced by ht_scrollbar::draw(), ht_view::getcolor(), ht_c_syntax_lexer::getcolor_syntax(), and ht_uformat_viewer::getcolor_tag().

bool init_pal  ) 
 

Definition at line 328 of file htpal.cc.

References ATOM_HT_CREATE_PALETTE_ENTRY, ATOM_PALETTE_ENTRY, create_empty_palette_entry(), REGISTER, and register_atom().

bool load_pal char *  pal_class,
char *  pal_flavour,
palette p
 

Definition at line 185 of file htpal.cc.

References palette::data, ht_registry::enum_next(), find_pal_entry_idx(), find_pal_layout(), ht_registry_node_type, ht_snprintf(), ht_registry::lookup_node_type(), malloc(), NULL, pal_layouts, palettekey, registry, rnt_palette_name, palette::size, VC_RED, VC_WHITE, VCP, and vcp.

Referenced by ht_c_syntax_lexer::reloadpalette(), ht_view::reloadpalette(), and ht_uformat_viewer::reloadpalette().


Generated on Fri May 7 21:15:49 2004 by doxygen 1.3.5