#include "global.h"
#include "htatom.h"
#include "htcurses.h"
#include "htctrl.h"
#include "htdialog.h"
#include "htpal.h"
#include "htreg.h"
#include "htstring.h"
#include "snprintf.h"
#include "tools.h"
#include "httag.h"
#include "syntax.h"
#include "out_ht.h"
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | pal_class |
struct | pal_layout |
Defines | |
#define | ATOM_PALETTE_ENTRY MAGICD("PAL\x00") |
#define | ATOM_HT_CREATE_PALETTE_ENTRY MAGICD("PAL\x10") |
Functions | |
vcp | getcolorv (palette *pal, UINT index) |
pal_layout * | find_pal_layout (pal_class *layouts, char *pal_class, int *lsize) |
int | find_pal_entry_idx (pal_layout *layout, const char *name) |
bool | load_pal (char *pal_class, char *pal_flavour, palette *p) |
ht_registry_data * | create_empty_palette_entry () |
BUILDER (ATOM_PALETTE_ENTRY, palette_entry) | |
bool | init_pal () |
void | done_pal () |
Variables | |
pal_layout | pal_layout_tags [] |
pal_layout | pal_layout_generic [] |
pal_layout | pal_layout_syntax [] |
pal_layout | pal_layout_analyser [] |
pal_class | pal_layouts [] |
|
Definition at line 42 of file htpal.cc. Referenced by done_pal(), and init_pal(). |
|
Definition at line 41 of file htpal.cc. Referenced by done_pal(), init_pal(), and palette_entry::object_id(). |
|
|
|
Definition at line 317 of file htpal.cc. Referenced by init_pal(). |
|
Definition at line 340 of file htpal.cc. References ATOM_HT_CREATE_PALETTE_ENTRY, ATOM_PALETTE_ENTRY, UNREGISTER, and unregister_atom(). |
|
Definition at line 176 of file htpal.cc. References pal_layout::idx, and pal_layout::name. Referenced by load_pal(). |
|
Definition at line 154 of file htpal.cc. References pal_class::layout, pal_layout::name, pal_class::name, and NULL. Referenced by load_pal(). |
|
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(). |
|
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(). |
|
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_uformat_viewer::reloadpalette(), ht_view::reloadpalette(), and ht_c_syntax_lexer::reloadpalette(). |
|
Initial value: { {palidx_analyser_default, "default"}, {palidx_analyser_comment, "comment"}, {palidx_analyser_label, "label"}, {palidx_analyser_number, "number"}, {palidx_analyser_string, "string"}, {palidx_analyser_symbol, "symbol-character"}, } |
|
|
|
Initial value: { {palidx_syntax_whitespace, "whitespace"}, {palidx_syntax_comment, "comment"}, {palidx_syntax_identifier, "identifier"}, {palidx_syntax_reserved, "reserved"}, {palidx_syntax_intnum, "integer number"}, {palidx_syntax_floatnum, "float number"}, {palidx_syntax_string, "string"}, {palidx_syntax_char, "character"}, {palidx_syntax_symbol, "symbol"}, {palidx_syntax_preprocess, "preprocess"}, {palidx_syntax_meta, "meta"} } |
|
Initial value: { {palidx_tags_edit_tag_cursor_select, "edit-tag cursor select"}, {palidx_tags_edit_tag_cursor_edit, "edit-tag cursor edit"}, {palidx_tags_edit_tag_cursor_unfocused, "edit-tag cursor unfocused"}, {palidx_tags_edit_tag_selected, "edit-tag selected"}, {palidx_tags_edit_tag_modified, "edit-tag modified"}, {palidx_tags_edit_tag, "edit-tag"}, {palidx_tags_sel_tag_cursor_focused, "sel-tag cursor focused"}, {palidx_tags_sel_tag_cursor_unfocused, "sel-tag cursor unfocused"}, {palidx_tags_sel_tag, "sel-tag"}, {0, NULL} } |
|
Initial value: { {pal_layout_generic, "generic"}, {pal_layout_tags, "tags"}, {pal_layout_syntax, "syntax"}, {pal_layout_analyser, "analyser"}, {NULL, NULL} } Definition at line 135 of file htpal.cc. Referenced by load_pal(). |