source: tags/ms_r18q1/ARBDB/ad_colorset.h

Last change on this file was 14098, checked in by westram, 9 years ago
  • refactored colorset handling
    • moved basics to ARBDB
    • remove attributes stub from AWT (was done for #443; redo if needed)
    • replace AW_find_color_group with AW_find_active_color_group (w/o bool-param) and GBT_get_color_group
    • colorset functions (create,restore,save+load) all operate on string arrays (containing "name=color" entries)
File size: 1.4 KB
Line 
1// ============================================================ //
2//                                                              //
3//   File      : ad_colorset.h                                  //
4//   Purpose   : item-colors and colorsets                      //
5//                                                              //
6//   Coded by Ralf Westram (coder@reallysoft.de) in July 2015   //
7//   http://www.arb-home.de/                                    //
8//                                                              //
9// ============================================================ //
10
11#ifndef AD_COLORSET_H
12#define AD_COLORSET_H
13
14#ifndef ARBDB_BASE_H
15#include "arbdb_base.h"
16#endif
17#ifndef ARB_STRARRAY_H
18#include <arb_strarray.h>
19#endif
20
21#define GB_COLORGROUP_ENTRY "ARB_color"
22
23long     GBT_get_color_group(GBDATA *gb_item);
24GB_ERROR GBT_set_color_group(GBDATA *gb_item, long color_group);
25
26GBDATA *GBT_colorset_root(GBDATA *gb_main, const char *itemname);
27void    GBT_get_colorset_names(ConstStrArray& colorsetNames, GBDATA *gb_colorset_root);
28GBDATA *GBT_find_colorset(GBDATA *gb_colorset_root, const char *name);
29GBDATA *GBT_find_or_create_colorset(GBDATA *gb_colorset_root, const char *name);
30
31GB_ERROR GBT_load_colorset(GBDATA *gb_colorset, ConstStrArray& colorsetDefs);
32GB_ERROR GBT_save_colorset(GBDATA *gb_colorset, CharPtrArray& colorsetDefs);
33
34#else
35#error ad_colorset.h included twice
36#endif // AD_COLORSET_H
Note: See TracBrowser for help on using the repository browser.