Rev 7909 | Rev 9455 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7909 | Rev 9453 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | { |
9 | { |
10 | int x,y,w; |
10 | int x,y,w; |
11 | int base_id; |
11 | int base_id; |
Line 12... | Line 12... | ||
12 | 12 | ||
13 | int active_tab; |
- | |
14 | char names[640]; |
13 | int active_tab; |
15 | int count; |
14 | int count; |
- | 15 | dword events[10]; |
|
Line 16... | Line 16... | ||
16 | dword events[10]; |
16 | dword names[10]; |
17 | 17 | ||
18 | int click(); |
18 | int click(); |
19 | void draw(); |
19 | void draw(); |
Line 31... | Line 31... | ||
31 | DrawBar(x+1,y+0+TAB_HEIGHT,w,1, sc.work_graph); |
31 | DrawBar(x+1,y+0+TAB_HEIGHT,w,1, sc.work_graph); |
32 | DrawBar(x+1,y+1+TAB_HEIGHT,w,1, sc.work_light); |
32 | DrawBar(x+1,y+1+TAB_HEIGHT,w,1, sc.work_light); |
33 | } |
33 | } |
Line 34... | Line 34... | ||
34 | 34 | ||
35 | for (i=0; i |
35 | for (i=0; i |
36 | xx += draw_button(xx + TAB_PADDING, i, i*NAME_SIZE + #names) + TAB_PADDING; |
36 | xx += draw_button(xx + TAB_PADDING, i, names[i]) + TAB_PADDING; |
37 | } |
37 | } |
Line 38... | Line 38... | ||
38 | } |
38 | } |
39 | 39 | ||
40 | :void _tabs::draw_active_tab() |
40 | :void _tabs::draw_active_tab() |
41 | { |
41 | { |
Line 42... | Line 42... | ||
42 | events[active_tab](); |
42 | events[active_tab](); |
43 | } |
43 | } |
44 | 44 | ||
45 | :void _tabs::add(dword text, event) |
45 | :void _tabs::add(dword text, event) |
46 | { |
46 | { |
47 | strcpy(count*NAME_SIZE + #names, text); |
47 | names[count] = text; |
Line 48... | Line 48... | ||
48 | events[count] = event; |
48 | events[count] = event; |