-
Notifications
You must be signed in to change notification settings - Fork 4
/
colorset.h
224 lines (189 loc) · 4.03 KB
/
colorset.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
/**
* @namespace biew
* @file colorset.h
* @brief This file contains color function prototypes.
* @version -
* @remark this source file is part of Binary vIEW project (BIEW).
* The Binary vIEW (BIEW) is copyright (C) 1995 Nickols_K.
* All rights reserved. This software is redistributable under the
* licence given in the file "Licence.en" ("Licence.ru" in russian
* translation) distributed in the BIEW archive.
* @note Requires POSIX compatible development system
*
* @author Nickols_K
* @since 2000
* @note Development, fixes and improvements
**/
#ifndef __COLORSET__H
#define __COLORSET__H
#ifndef __TWIN_H
#include "libbeye/twin.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef struct tag_namedColorDef
{
const char *name;
Color color;
}namedColorDef;
extern namedColorDef named_color_def[16];
typedef struct tag_MultiEditCSet
{
ColorAttr main;
ColorAttr change;
ColorAttr selected;
}MultiEditCSet;
/** Browser window */
typedef struct tag_BrowserCSet
{
ColorAttr main;
ColorAttr bound;
ColorAttr hlight;
ColorAttr highline;
ColorAttr title;
ColorAttr footer;
ColorAttr scroller;
MultiEditCSet edit;
}BrowserCSet;
extern BrowserCSet browser_cset;
/** Prompt window */
typedef struct tag_PromptCSet
{
ColorAttr button;
ColorAttr digit;
ColorAttr control;
}PromptCSet;
extern PromptCSet prompt_cset;
/** Title window */
typedef struct tag_TitleCSet
{
ColorAttr main;
ColorAttr change;
}TitleCSet;
extern TitleCSet title_cset;
typedef struct tag_ButtonCSet
{
ColorAttr active;
ColorAttr focused;
ColorAttr disabled;
}ButtonCSet;
/** message box */
typedef struct tag_MessageCSet
{
ColorAttr main;
ColorAttr border;
ButtonCSet button;
}MessageCSet;
extern MessageCSet error_cset;
extern MessageCSet warn_cset;
extern MessageCSet notify_cset;
/** Text highlight */
typedef struct tag_TextCSet
{
ColorAttr normal;
ColorAttr bold;
ColorAttr italic;
ColorAttr underline;
ColorAttr strikethrough;
}TextCSet;
extern TextCSet text_cset;
/** CPU highlight */
typedef struct tag_CPUCSet
{
ColorAttr clone[16];
}CPUCSet;
typedef struct tag_EngineCSet
{
ColorAttr engine,engine_unopt;
}EngineCSet;
/** Disassembler highlight */
typedef struct tag_DisasmCSet
{
ColorAttr family_id;
ColorAttr opcodes;
ColorAttr opcodes0;
ColorAttr opcodes1;
ColorAttr opcodes2;
ColorAttr opcodes3;
ColorAttr opcodes4;
ColorAttr opcodes5;
ColorAttr comments;
CPUCSet cpu_cset[4];
EngineCSet engine[7];
}DisasmCSet;
extern DisasmCSet disasm_cset;
/** Programming highlight */
typedef struct tag_PrgWordCSet
{
ColorAttr base;
ColorAttr extended;
ColorAttr reserved;
ColorAttr alt;
}PrgWordCSet;
typedef struct tag_ProgCSet
{
ColorAttr bads;
PrgWordCSet comments;
PrgWordCSet keywords;
PrgWordCSet constants;
PrgWordCSet operators;
PrgWordCSet preproc;
}ProgCSet;
extern ProgCSet prog_cset;
typedef struct tag_EditorCSet
{
ColorAttr active;
ColorAttr focused;
ColorAttr disabled;
ColorAttr select;
}EditorCSet;
/** Dialog window */
typedef struct tag_DialogCSet
{
ColorAttr main;
ColorAttr border;
ColorAttr title;
ColorAttr footer;
ColorAttr selfooter;
ColorAttr entry;
ColorAttr altentry;
ColorAttr addinfo;
ColorAttr altinfo;
ColorAttr extrainfo;
ButtonCSet group;
ButtonCSet button;
ButtonCSet any;
EditorCSet editor;
}DialogCSet;
extern DialogCSet dialog_cset;
typedef struct tag_MenuCSet
{
ColorAttr main;
ColorAttr border;
ColorAttr title;
ColorAttr highlight;
ButtonCSet hotkey;
ButtonCSet item;
}MenuCSet;
extern MenuCSet menu_cset;
/** Help window */
typedef struct tag_HelpCSet
{
ColorAttr main;
ColorAttr border;
ColorAttr title;
ColorAttr bold;
ColorAttr italic;
ColorAttr reverse;
ColorAttr underline;
ColorAttr strikethrough;
ColorAttr link;
ColorAttr sellink;
}HelpCSet;
extern HelpCSet help_cset;
extern tBool csetReadIniFile(const char *pal_name);
#ifdef __cplusplus
}
#endif
#endif