Rev 7909 | Rev 8020 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7909 | Rev 7960 | ||
---|---|---|---|
Line 202... | Line 202... | ||
202 | tabs.w = Form.cwidth-LP-LP; |
202 | tabs.w = Form.cwidth-LP-LP; |
203 | tabs.draw(); |
203 | tabs.draw(); |
204 | DrawIcon16(tabs.x + TAB_PADDING, 15, sc.work, 17); |
204 | DrawIcon16(tabs.x + TAB_PADDING, 15, sc.work, 17); |
205 | DrawIcon16(strlen(T_SKINS)*8 + tabs.x + TAB_PADDING + TAB_PADDING, 15, sc.work, 6); |
205 | DrawIcon16(strlen(T_SKINS)*8 + tabs.x + TAB_PADDING + TAB_PADDING, 15, sc.work, 6); |
Line 206... | Line -... | ||
206 | - | ||
207 | if (select_list.cur_y>select_list.visible) select_list.first=select_list.cur_y; |
- | |
208 | select_list.CheckDoesValuesOkey(); |
- | |
209 | 206 | ||
210 | id = select_list.cur_y; |
207 | id = select_list.cur_y; |
211 | SelectList_Init( |
208 | SelectList_Init( |
212 | tabs.x+TAB_PADDING, |
209 | tabs.x+TAB_PADDING, |
213 | tabs.y+TAB_HEIGHT+TAB_PADDING, |
210 | tabs.y+TAB_HEIGHT+TAB_PADDING, |
Line 295... | Line 292... | ||
295 | void SelectList_LineChanged() |
292 | void SelectList_LineChanged() |
296 | { |
293 | { |
297 | EventApply(); |
294 | EventApply(); |
298 | } |
295 | } |
Line -... | Line 296... | ||
- | 296 | ||
- | 297 | void ActivateTab(int _id) |
|
- | 298 | { |
|
- | 299 | select_list.ClearList(); |
|
- | 300 | Open_Dir(); |
|
- | 301 | if (!select_list.count) notify("'No files were found' -E"); |
|
- | 302 | select_list.cur_y = _id; |
|
- | 303 | if (select_list.cur_y>select_list.visible) select_list.first=select_list.cur_y; |
|
- | 304 | select_list.CheckDoesValuesOkey(); |
|
- | 305 | if (select_list.w) draw_window(); |
|
- | 306 | } |
|
299 | 307 | ||
300 | //===================================================// |
308 | //===================================================// |
301 | // // |
309 | // // |
302 | // EVENTS // |
310 | // EVENTS // |
303 | // // |
311 | // // |
Line 304... | Line 312... | ||
304 | //===================================================// |
312 | //===================================================// |
305 | 313 | ||
306 | void EventTabSkinsClick() |
314 | void EventTabSkinsClick() |
307 | { |
315 | { |
308 | active_wallpaper = select_list.cur_y; |
- | |
309 | strcpy(#folder_path, #skins_folder_path); |
- | |
310 | select_list.ClearList(); |
- | |
311 | Open_Dir(); |
316 | active_wallpaper = select_list.cur_y; |
312 | if (!select_list.count) notify("'No skins were found' -E"); |
- | |
313 | select_list.cur_y = active_skin; |
- | |
314 | 317 | strcpy(#folder_path, #skins_folder_path); |
|
Line 315... | Line 318... | ||
315 | if (select_list.w) draw_window(); |
318 | ActivateTab(active_skin); |
316 | } |
319 | } |
317 | 320 | ||
318 | void EventTabWallpappersClick() |
321 | void EventTabWallpappersClick() |
319 | { |
- | |
320 | active_skin = select_list.cur_y; |
- | |
321 | strcpy(#folder_path, #wallp_folder_path); |
- | |
322 | select_list.ClearList(); |
322 | { |
323 | Open_Dir(); |
- | |
324 | if (!select_list.count) notify("'No wallpapers were found' -E"); |
- | |
325 | select_list.cur_y = active_wallpaper; |
323 | active_skin = select_list.cur_y; |
Line 326... | Line 324... | ||
326 | 324 | strcpy(#folder_path, #wallp_folder_path); |
|
327 | if (select_list.w) draw_window(); |
325 | ActivateTab(active_wallpaper); |
328 | } |
326 | } |