Rev 8952 | Rev 8956 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8952 | Rev 8953 | ||
---|---|---|---|
Line 121... | Line 121... | ||
121 | if (id) DefineButton(159,y+1,16,16,id+BT_HIDE+BT_NOFRAME,0); //arrow button |
121 | if (id) DefineButton(159,y+1,16,16,id+BT_HIDE+BT_NOFRAME,0); //arrow button |
122 | WriteText(165,y+5,0x80,col.list_gb_text,arrow); //arrow |
122 | WriteText(165,y+5,0x80,col.list_gb_text,arrow); //arrow |
123 | } |
123 | } |
124 | 124 | ||
Line 125... | Line -... | ||
125 | - | ||
126 | void ActionsDraw(int actions_y) |
125 | void ActionsDraw(int actions_y) |
127 | { |
126 | { |
128 | int i; |
127 | int i; |
129 | Tip(actions_y-18, T_ACTIONS, 77, ""); |
128 | Tip(actions_y-18, T_ACTIONS, 77, ""); |
130 | for (i=0; actions[i*3]!=0; i++, actions_y+=DEV_H) |
129 | for (i=0; actions[i*3]!=0; i++, actions_y+=DEV_H) |
Line 176... | Line 175... | ||
176 | } |
175 | } |
177 | 176 | ||
Line 178... | Line 177... | ||
178 | void DrawPathEolite() |
177 | void DrawPathEolite() |
179 | { |
178 | { |
180 | if (show_breadcrumb.checked) { |
- | |
181 | DrawBreadCrumbs(); |
- | |
182 | return; |
- | |
183 | } |
- | |
184 | - | ||
185 | PathShow.text_pointer = location[0]; |
179 | PathShow.text_pointer = location[0]; |
186 | PathShow.start_x = 250; |
180 | PathShow.start_x = 250; |
187 | PathShow.start_y = 17; |
181 | PathShow.start_y = 17; |
188 | PathShow.area_size_x = Form.cwidth-300; |
182 | PathShow.area_size_x = Form.cwidth-300; |
189 | DrawBar(PathShow.start_x-3, PathShow.start_y-6, PathShow.area_size_x+3, 19, col.odd_line); |
183 | DrawBar(PathShow.start_x-3, PathShow.start_y-6, PathShow.area_size_x+3, 19, col.odd_line); |
190 | DrawRectangle(PathShow.start_x-4,PathShow.start_y-7,PathShow.area_size_x+4,20,sc.work_graph); |
184 | DrawRectangle(PathShow.start_x-4,PathShow.start_y-7,PathShow.area_size_x+4,20,sc.work_graph); |
191 | DefineHiddenButton(PathShow.start_x-4+1,PathShow.start_y-7+1,PathShow.area_size_x+4-2,20-2,PATH_BTN); |
185 | DefineHiddenButton(PathShow.start_x-4+1,PathShow.start_y-7+1,PathShow.area_size_x+4-2,20-2,BTN_PATH); |
192 | DrawBar(PathShow.start_x-4, PathShow.start_y+14, PathShow.area_size_x+5+18, 1, sc.work_light); |
186 | DrawBar(PathShow.start_x-4, PathShow.start_y+14, PathShow.area_size_x+5+18, 1, sc.work_light); |
Line 193... | Line 187... | ||
193 | 187 | ||
Line 194... | Line 188... | ||
194 | DrawFlatButtonSmall(PathShow.start_x+PathShow.area_size_x,PathShow.start_y-7,18,20, 61, "\x19"); |
188 | DrawFlatButtonSmall(PathShow.start_x+PathShow.area_size_x,PathShow.start_y-7,18,20, BTN_BREADCRUMB, "\x19"); |
195 | 189 | ||
196 | PathShow.font_color = col.list_gb_text; |
190 | PathShow.font_color = col.list_gb_text; |
197 | PathShow_prepare stdcall(#PathShow); |
191 | PathShow_prepare stdcall(#PathShow); |
Line 216... | Line 210... | ||
216 | draw_w = Form.cwidth/2 - draw_x - 17; |
210 | draw_w = Form.cwidth/2 - draw_x - 17; |
217 | do { |
211 | do { |
218 | DrawBar(draw_x, SELECTY-1, draw_w-KFM2_DEVH+1, 1, sc.work_graph); |
212 | DrawBar(draw_x, SELECTY-1, draw_w-KFM2_DEVH+1, 1, sc.work_graph); |
219 | DrawBar(draw_x, SELECTY, draw_w-KFM2_DEVH+1, KFM2_DEVH, back_color); |
213 | DrawBar(draw_x, SELECTY, draw_w-KFM2_DEVH+1, KFM2_DEVH, back_color); |
220 | DrawBar(draw_x, SELECTY+KFM2_DEVH, draw_w-KFM2_DEVH+1, 1, sc.work_graph); |
214 | DefineHiddenButton(draw_x, SELECTY, draw_w-KFM2_DEVH, KFM2_DEVH-1, BTN_PATH+i); |
- | 215 | DrawBar(draw_x, SELECTY+KFM2_DEVH, draw_w-KFM2_DEVH+1, 1, sc.work_graph); |
|
221 | kfont.WriteIntoWindow(draw_x + 3, math.max(KFM2_DEVH-kfont.height/2+SELECTY,0), |
216 | kfont.WriteIntoWindow(draw_x + 3, math.max(KFM2_DEVH-kfont.height/2+SELECTY,0), |
222 | back_color, text_color, kfont.size.pt, location[i]+strrchr(location[i], '/')); |
217 | back_color, text_color, kfont.size.pt, location[i]+strrchr(location[i], '/')); |
223 | DrawFlatButtonSmall(draw_x+draw_w-KFM2_DEVH+1, SELECTY-1, KFM2_DEVH-1, KFM2_DEVH+1, 576+i, "\x19"); |
218 | DrawFlatButtonSmall(draw_x+draw_w-KFM2_DEVH+1, SELECTY-1, KFM2_DEVH-1, KFM2_DEVH+1, BTN_BREADCRUMB+i, "\x19"); |
224 | draw_x = Form.cwidth/2 + DDW + 1; |
219 | draw_x = Form.cwidth/2 + DDW + 1; |
225 | draw_w = Form.cwidth - draw_x - 2; |
220 | draw_w = Form.cwidth - draw_x - 2; |
226 | i++; |
221 | i++; |
227 | } while (i<2); |
222 | } while (i<2); |
228 | } |
223 | } |
229 | 224 | ||
Line 254... | Line 249... | ||
254 | btn.set_size(246,10,NULL,20); |
249 | btn.set_size(246,10,NULL,20); |
255 | //area_w = Form.cwidth - btn.x - 20; |
250 | //area_w = Form.cwidth - btn.x - 20; |
256 | for (i=0; i |
251 | for (i=0; i |
257 | { |
252 | { |
258 | text_line = breadCrumb.get(i) + #PathShow_path; |
253 | text_line = breadCrumb.get(i) + #PathShow_path; ///EDI! |
259 | btn.w = strlen(text_line)*8+10; |
254 | btn.w = strlen(text_line)*8+10; |
260 | DrawBreadcrumbButton(btn.x, btn.y, btn.w, btn.h, i+BREADCRUMB_ID, text_line); |
255 | DrawBreadcrumbButton(btn.x, btn.y, btn.w, btn.h, i+BREADCRUMB_ID, text_line); |
261 | btn.x += btn.w; |
256 | btn.y += btn.h; |
262 | } |
257 | } |
263 | btn.x++; |
258 | btn.x++; |
264 | DrawBar(btn.x,btn.y-1,Form.cwidth-btn.x-25,btn.h+3,sc.work); |
259 | DrawBar(btn.x,btn.y-1,Form.cwidth-btn.x-25,btn.h+3,sc.work); |
265 | } |
260 | } |
266 | 261 | ||
Line 290... | Line 285... | ||
290 | // MISC // |
285 | // MISC // |
291 | // // |
286 | // // |
292 | //===================================================// |
287 | //===================================================// |
293 | 288 | ||
Line 294... | Line 289... | ||
294 | void DrawEolitePopup(dword b1_text, b2_text) |
289 | int DrawEolitePopup(dword b1_text, b2_text) |
295 | { |
290 | { |
296 | #define POPIN_W 260 |
- | |
297 | int popin_x = files.w - POPIN_W / 2 + files.x ; |
291 | int popin_x = files.w - POPIN_W / 2 + files.x ; |
298 | DrawPopup(popin_x, 160, POPIN_W, 95, 1, sc.work, sc.work_graph); |
292 | DrawPopup(popin_x, 160, POPIN_W, 95, 1, sc.work, sc.work_graph); |
299 | DrawCaptButton(popin_x+23+000, 215, 100, 26, POPUP_BTN1, sc.button, sc.button_text, b1_text); |
293 | DrawCaptButton(popin_x+23+000, 215, 100, 26, POPUP_BTN1, sc.button, sc.button_text, b1_text); |
300 | DrawCaptButton(popin_x+23+114, 215, 100, 26, POPUP_BTN2, sc.button, sc.button_text, b2_text); |
294 | DrawCaptButton(popin_x+23+114, 215, 100, 26, POPUP_BTN2, sc.button, sc.button_text, b2_text); |
- | 295 | popin_text.left = popin_x+30; |
|
- | 296 | if (popin_string[0] != -1) DrawEditBox(#popin_text); |
|
- | 297 | return popin_x; |
|
301 | } |
298 | } |
Line 302... | Line 299... | ||
302 | 299 | ||
303 | void DrawDot(dword x,y) { |
300 | void DrawDot(dword x,y) { |
304 | dword col_pxl = MixColors(sc.work_graph, sc.work, 60); |
301 | dword col_pxl = MixColors(sc.work_graph, sc.work, 60); |