Rev 8951 | Rev 8953 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8951 | Rev 8952 | ||
---|---|---|---|
Line 169... | Line 169... | ||
169 | void DrawPathBar() |
169 | void DrawPathBar() |
170 | { |
170 | { |
171 | if (efm) { |
171 | if (efm) { |
172 | DrawPathBarKfm(); |
172 | DrawPathBarKfm(); |
173 | return; |
173 | } else { |
174 | } |
174 | DrawPathEolite(); |
- | 175 | } |
|
- | 176 | } |
|
175 | 177 | ||
Line -... | Line 178... | ||
- | 178 | void DrawPathEolite() |
|
- | 179 | { |
|
176 | if (show_breadcrumb.checked) { |
180 | if (show_breadcrumb.checked) { |
177 | DrawBreadCrumbs(); |
181 | DrawBreadCrumbs(); |
178 | return; |
182 | return; |
179 | } |
183 | } |
Line 186... | Line 190... | ||
186 | DrawRectangle(PathShow.start_x-4,PathShow.start_y-7,PathShow.area_size_x+4,20,sc.work_graph); |
190 | DrawRectangle(PathShow.start_x-4,PathShow.start_y-7,PathShow.area_size_x+4,20,sc.work_graph); |
187 | DefineHiddenButton(PathShow.start_x-4+1,PathShow.start_y-7+1,PathShow.area_size_x+4-2,20-2,PATH_BTN); |
191 | DefineHiddenButton(PathShow.start_x-4+1,PathShow.start_y-7+1,PathShow.area_size_x+4-2,20-2,PATH_BTN); |
188 | DrawBar(PathShow.start_x-4, PathShow.start_y+14, PathShow.area_size_x+5+18, 1, sc.work_light); |
192 | DrawBar(PathShow.start_x-4, PathShow.start_y+14, PathShow.area_size_x+5+18, 1, sc.work_light); |
189 | 193 | ||
Line 190... | Line 194... | ||
190 | DrawFlatButtonSmall(PathShow.start_x+PathShow.area_size_x,PathShow.start_y-7,18,20, 61, "\26"); |
194 | DrawFlatButtonSmall(PathShow.start_x+PathShow.area_size_x,PathShow.start_y-7,18,20, 61, "\x19"); |
Line 191... | Line 195... | ||
191 | 195 | ||
192 | PathShow.font_color = col.list_gb_text; |
196 | PathShow.font_color = col.list_gb_text; |
193 | PathShow_prepare stdcall(#PathShow); |
197 | PathShow_prepare stdcall(#PathShow); |
194 | PathShow_draw stdcall(#PathShow); |
198 | PathShow_draw stdcall(#PathShow); |
Line 195... | Line 199... | ||
195 | } |
199 | } |
196 | 200 | ||
- | 201 | void DrawPathBarKfm() |
|
197 | void DrawPathBarKfm() |
202 | { |
198 | { |
203 | dword back_color, text_color; |
199 | dword bgc; |
204 | int draw_x, draw_w; |
Line 200... | Line 205... | ||
200 | int i=0; |
205 | int i=0; |
201 | if (!Form.cwidth) return; |
206 | if (!Form.cwidth) return; |
202 | 207 | ||
203 | if (skin_is_dark()) { |
208 | if (skin_is_dark()) { |
204 | bgc = col.odd_line; |
209 | back_color = col.odd_line; |
205 | PathShow.font_color = col.list_gb_text; |
210 | text_color = col.list_gb_text; |
206 | } else { |
211 | } else { |
207 | bgc = 0xFFFFCC; |
- | |
208 | PathShow.font_color = 0x222222; |
- | |
209 | } |
212 | back_color = 0xFFFFCC; |
210 | PathShow.start_y = Form.cheight - status_bar_h+2; |
213 | text_color = 0x222222; |
211 | 214 | } |
|
212 | PathShow.start_x = 4; |
215 | draw_x = 3 + DDW; |
- | 216 | draw_w = Form.cwidth/2 - draw_x - 17; |
|
213 | PathShow.area_size_x = Form.cwidth/2-8; |
217 | do { |
214 | do { |
218 | DrawBar(draw_x, SELECTY-1, draw_w-KFM2_DEVH+1, 1, sc.work_graph); |
215 | DrawBar(PathShow.start_x-2,PathShow.start_y-3,PathShow.area_size_x+5,14,bgc); |
219 | DrawBar(draw_x, SELECTY, draw_w-KFM2_DEVH+1, KFM2_DEVH, back_color); |
216 | DrawRectangle(PathShow.start_x-3,PathShow.start_y-4,PathShow.area_size_x+6,15,sc.work_graph); |
220 | DrawBar(draw_x, SELECTY+KFM2_DEVH, draw_w-KFM2_DEVH+1, 1, sc.work_graph); |
217 | PathShow.text_pointer = location[i]; |
- | |
218 | PathShow_prepare stdcall(#PathShow); |
221 | kfont.WriteIntoWindow(draw_x + 3, math.max(KFM2_DEVH-kfont.height/2+SELECTY,0), |
219 | PathShow_draw stdcall(#PathShow); |
222 | back_color, text_color, kfont.size.pt, location[i]+strrchr(location[i], '/')); |
220 | 223 | DrawFlatButtonSmall(draw_x+draw_w-KFM2_DEVH+1, SELECTY-1, KFM2_DEVH-1, KFM2_DEVH+1, 576+i, "\x19"); |
|
221 | PathShow.start_x = Form.cwidth/2 + 2; |
224 | draw_x = Form.cwidth/2 + DDW + 1; |
222 | PathShow.area_size_x = Form.cwidth - PathShow.start_x - 5; |
- | |
223 | i++; |
- | |
224 | } while (i<2); |
- | |
225 | - | ||
226 | DrawBar(0,PathShow.start_y-2,1,15,sc.work); |
225 | draw_w = Form.cwidth - draw_x - 2; |
Line 227... | Line 226... | ||
227 | DrawBar(Form.cwidth-1,PathShow.start_y-2,1,15,sc.work); |
226 | i++; |
228 | DrawBar(1,PathShow.start_y+12,Form.cwidth-2,1,sc.work_light); |
227 | } while (i<2); |
229 | } |
228 | } |
Line 260... | Line 259... | ||
260 | btn.w = strlen(text_line)*8+10; |
259 | btn.w = strlen(text_line)*8+10; |
261 | DrawBreadcrumbButton(btn.x, btn.y, btn.w, btn.h, i+BREADCRUMB_ID, text_line); |
260 | DrawBreadcrumbButton(btn.x, btn.y, btn.w, btn.h, i+BREADCRUMB_ID, text_line); |
262 | btn.x += btn.w; |
261 | btn.x += btn.w; |
263 | } |
262 | } |
264 | //DrawFavButton(btn.x); |
263 | btn.x++; |
265 | //btn.x+=20; |
- | |
266 | btn.x++; |
- | |
267 | DrawBar(btn.x,btn.y-1,Form.cwidth-btn.x-25,btn.h+3,sc.work); |
264 | DrawBar(btn.x,btn.y-1,Form.cwidth-btn.x-25,btn.h+3,sc.work); |
268 | } |
265 | } |
269 | 266 | ||
Line 270... | Line 267... | ||
270 | void ClickOnBreadCrumb(unsigned clickid) |
267 | void ClickOnBreadCrumb(unsigned clickid) |