Rev 8457 | Rev 8492 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8457 | Rev 8490 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | //===================================================// |
5 | //===================================================// |
6 | 6 | ||
Line 7... | Line 7... | ||
7 | #define TABS_MAX 5 |
7 | #define TABS_MAX 5 |
Line 8... | Line 8... | ||
8 | 8 | ||
9 | TWebBrowser data[TABS_MAX+1]=0; |
9 | TWebBrowser tabdata[TABS_MAX+1]=0; |
Line 10... | Line 10... | ||
10 | _history tabstory[TABS_MAX+1]=0; |
10 | _history tabstory[TABS_MAX+1]=0; |
11 | 11 | ||
12 | struct TAB |
12 | struct TAB |
Line 34... | Line 34... | ||
34 | { |
34 | { |
35 | int i; |
35 | int i; |
36 | if (count==1) return false; |
36 | if (count==1) return false; |
37 | for (i=_tab_number; i |
37 | for (i=_tab_number; i |
38 | data[i] = data[i+1]; |
38 | tabdata[i] = tabdata[i+1]; |
39 | tabstory[i] = tabstory[i+1]; |
39 | tabstory[i] = tabstory[i+1]; |
40 | } |
40 | } |
41 | if (_tab_number |
41 | if (_tab_number |
42 | if (active==count-1) && (active>0) active--; |
42 | if (active==count-1) && (active>0) active--; |
43 | count--; |
43 | count--; |
44 | return true; |
44 | return true; |
Line 46... | Line 46... | ||
46 | 46 | ||
Line 47... | Line 47... | ||
47 | void TAB::save_state() |
47 | void TAB::save_state() |
48 | { |
48 | { |
49 | tabstory[active] = history; |
49 | tabstory[active] = history; |
50 | data[active] = WB1; |
50 | tabdata[active] = WB1; |
51 | } |
51 | } |
Line 52... | Line 52... | ||
52 | 52 | ||
53 | void TAB::restore(int _id) |
53 | void TAB::restore(int _id) |
54 | { |
54 | { |
55 | tab.active = _id; |
55 | tab.active = _id; |
56 | WB1 = data[_id]; |
56 | WB1 = tabdata[_id]; |
57 | history = tabstory[_id]; |
57 | history = tabstory[_id]; |
Line 58... | Line 58... | ||
58 | } |
58 | } |
59 | 59 | ||
Line 88... | Line 88... | ||
88 | } else { |
88 | } else { |
89 | bgcol=sc.work; |
89 | bgcol=sc.work; |
90 | border_bottom_color = sc.work_graph; |
90 | border_bottom_color = sc.work_graph; |
91 | } |
91 | } |
92 | if (data[_id].header) { |
92 | if (tabdata[_id].header) { |
93 | strncpy(#header_no_version, #data[_id].header, strlen(#data[_id].header)-sizeof(version)-2); |
93 | strncpy(#header_no_version, #tabdata[_id].header, strlen(#tabdata[_id].header)-sizeof(version)-2); |
94 | strncpy(#name, #header_no_version, tab_w-CLOSE_S/6-2); |
94 | strncpy(#name, #header_no_version, tab_w-CLOSE_S/6-2); |
95 | } |
95 | } |
96 | DrawBar(xxx, TOOLBAR_H, 1, TAB_H, sc.work_dark); |
96 | DrawBar(xxx, TOOLBAR_H, 1, TAB_H, sc.work_dark); |
97 | DrawBar(xxx+1, TOOLBAR_H, tab_w-1, TAB_H-1, bgcol); |
97 | DrawBar(xxx+1, TOOLBAR_H, tab_w-1, TAB_H-1, bgcol); |
98 | DrawBar(xxx+1, TOOLBAR_H+TAB_H-1, tab_w-1, 1, border_bottom_color); |
98 | DrawBar(xxx+1, TOOLBAR_H+TAB_H-1, tab_w-1, 1, border_bottom_color); |
99 | DefineHiddenButton(xxx, TOOLBAR_H-1, tab_w, TAB_H, TAB_ID+_id); |
99 | DefineHiddenButton(xxx, TOOLBAR_H-1, tab_w, TAB_H, TAB_ID+_id); |