1%%
2%% %CopyrightBegin%
3%%
4%% Copyright Ericsson AB 2011-2016. All Rights Reserved.
5%%
6%% Licensed under the Apache License, Version 2.0 (the "License");
7%% you may not use this file except in compliance with the License.
8%% You may obtain a copy of the License at
9%%
10%%     http://www.apache.org/licenses/LICENSE-2.0
11%%
12%% Unless required by applicable law or agreed to in writing, software
13%% distributed under the License is distributed on an "AS IS" BASIS,
14%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15%% See the License for the specific language governing permissions and
16%% limitations under the License.
17%%
18%% %CopyrightEnd%
19
20-record(match_spec, {name = "",
21		     term = [],
22		     str  = [],
23		     func = ""}).
24
25-record(tpattern, {m, fa, ms}).
26
27-record(traced_func, {func_name, %atom
28		      arity, %integer
29		      match_spec = #match_spec{}}).
30
31-record(create_menu,
32	{id,
33	 text,
34	 help = [],
35	 type = append,
36	 check = false
37	}).
38
39-record(colors, {fg, even, odd}).
40-record(attrs, {even, odd, searched, deleted, changed_odd, changed_even, new_odd, new_even}).
41-define(EVEN(Row), ((Row rem 2) =:= 0)).
42-define(BG_EVEN,    {230,230,250}).
43-define(BG_ODD,     {255,255,255}).
44-define(BG_DELETED, {100,100,100}).
45-define(FG_DELETED, {230,230,230}).
46-define(BG_SEARCHED,{235,215,90}).
47-define(BG_CHANGED, {184,207,184}).
48-define(BG_NEW,     {123,168,123}).
49
50-define(LCTRL_WDECR, 4). %% Remove some pixels in column width to avoid creating unnecessary scrollbar
51
52-define(SASH_STYLE, ?wxSP_LIVE_UPDATE bor ?wxSP_NOBORDER bor ?wxSP_3DSASH).
53
54-define(DISP_FREQ, 10). %% per second
55-define(FETCH_DATA, 2). %% per second
56-define(DISP_SECONDS, 60).
57
58-record(ti, {tick=0, disp=?DISP_FREQ/?FETCH_DATA, fetch=?FETCH_DATA, secs=?DISP_SECONDS}).
59
60-record(win, {name, panel, size, geom,
61	      graphs=[], no_samples=0,
62	      max, state,
63	      info=[]}).
64