Changeset 15220
- Timestamp:
- 04/11/12 19:26:57 (10 years ago)
- Location:
- titan
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/mc/mc_global.h
r15189 r15220 21 21 } 22 22 23 if(view == 1) 23 if(view == 0) 24 filelist->fontsize = 25; 25 else if(view == 1) 24 26 filelist->fontsize = 40; 25 27 else if(view == 3) 26 filelist->fontsize = 2 0;28 filelist->fontsize = 25; 27 29 else if(view == 4) 28 30 filelist->fontsize = 20; 31 else if(view == 5) 32 filelist->fontsize = 25; 29 33 else 30 filelist->fontsize = 30;34 filelist->fontsize = 25; 31 35 } 32 36 -
titan/plugins/mc/mc_videoplayer.h
r15218 r15220 61 61 62 62 tmpview = view; 63 mc_changeview(view, filelist);63 // mc_changeview(view, filelist); 64 64 65 65 printf("111111111: view=%d tmpview=%d\n", view, tmpview); 66 66 // getfilelist(apskin, filelistpath, filelist, currentdirectory, filemask, view, NULL); 67 filelist->fontsize = 25;67 // filelist->fontsize = 25; 68 68 getfilelist(apskin, filelistpath, filelist, currentdirectory, filemask, tmpview, NULL); 69 69 addscreenrc(apskin, filelist); 70 70 71 char* savecmd = NULL; 72 71 73 while(1) 72 74 { … … 87 89 } 88 90 } 91 else if(status.filelistextend == 5 && filelist->select != NULL && filelist->select->input == NULL) 92 { 93 char* cmd = NULL; 94 cmd = ostrcat(cmd, filelist->select->filelist->imdbpath, 0, 0); 95 cmd = ostrcat(cmd, ".backdrop.mvi", 0, 0); 96 97 if(!file_exist(cmd)){ 98 cmd = NULL; 99 cmd = ostrcat(cmd, "/var/usr/local/share/titan/plugins/mc/skin/default.mvi", 0, 0); 100 } 101 102 if(savecmd == NULL) 103 { 104 singlepicstart(cmd, 0); 105 savecmd = ostrcat("", cmd, 0, 0); 106 } 107 else 108 { 109 if(ostrcmp(savecmd, cmd) != 0) 110 { 111 singlepicstart(cmd, 0); 112 free(savecmd), savecmd = NULL; 113 savecmd = ostrcat("", cmd, 0, 0); 114 } 115 } 116 } 89 117 90 118 if(rcret == getrcconfigint("rc1", NULL)) … … 245 273 } 246 274 247 mc_changeview(view, filelist);275 // mc_changeview(view, filelist); 248 276 249 277 //new … … 449 477 450 478 debug(50, "filelist->select->text: %s", filelist->select->text); 451 filename = createpath(filelistpath->text, filelist->select->text); 479 filename = createpath(filelistpath->text, filelist->select->name); 480 printf("name: %s\n",filelist->select->name); 481 printf("text: %s\n",filelist->select->text); 482 452 483 453 484 if(getconfigint("playertype", NULL) == 1 && (cmpfilenameext(filename, ".ts") == 0 || cmpfilenameext(filename, ".mts") == 0 || cmpfilenameext(filename, ".m2ts") == 0)) -
titan/plugins/mc/mc_videoplayer_settings.h
r15216 r15220 22 22 setchoiceboxselection(dirsort, getconfig("dirsort", NULL)); 23 23 24 addchoicebox(view, "0", "fast"); 25 addchoicebox(view, "1", "big"); 26 addchoicebox(view, "2", "cover"); 27 addchoicebox(view, "3", "default"); 28 addchoicebox(view, "4", "details"); 29 addchoicebox(view, "5", "fullcover"); 24 30 25 addchoicebox(view, "0", "default");26 addchoicebox(view, "1", "cover");27 addchoicebox(view, "2", "size");28 addchoicebox(view, "3", "details");29 30 31 // addchoicebox(view, "0", _("default")); 31 32 // addchoicebox(view, "1", _("cover")); -
titan/skins/mc/skin.xml
r15218 r15220 33 33 <node fontsize=30 bordercol=bordercol scrollbar=auto type=listbox name=listbox posx=center posy=140 width=92% height=480> 34 34 <node name=mc_filelistpath valign=middle bordersize=1 posx=center posy=100 width=95% height=30> 35 <node hspace=10 picmem=skin/ ext_directory.png textposx=30 fontsize=40 bordersize=0 bordercol=bordercol scrollbar=auto type=filelist name=mc_filelist posx=center posy=140 width=92% height=480>35 <node hspace=10 picmem=skin/folder.png textposx=30 fontsize=40 bordersize=0 bordercol=bordercol scrollbar=auto type=filelist name=mc_filelist posx=center posy=140 width=92% height=480> 36 36 <node name=b1 text="Sorting" halign=center valign=center bordercol=bgcol bordersize=0 posx=15% posy=90% width=150 height=30/> 37 37 <node name=b1 text="Sorting" halign=center valign=center bordercol=red bordersize=2 posx=15% posy=95% width=150 height=2/> … … 65 65 <node name=mc_filelistpath valign=middle bordersize=1 posx=center posy=100 width=95% height=30> 66 66 <node fontsize=30 bordercol=bordercol scrollbar=auto type=listbox name=listbox posx=center posy=140 width=92% height=50%> 67 <node hspace=10 picmem=skin/ ext_directory.png textposx=30 fontsize=20 bordersize=0 bordercol=bordercol scrollbar=auto type=filelist name=mc_filelist posx=center posy=140 width=92% height=50%>67 <node hspace=10 picmem=skin/folder.png textposx=30 fontsize=20 bordersize=0 bordercol=bordercol scrollbar=auto type=filelist name=mc_filelist posx=center posy=140 width=92% height=50%> 68 68 <node name=b1 text="Sorting" halign=center valign=center bordercol=bgcol bordersize=0 posx=15% posy=90% width=150 height=30/> 69 69 <node name=b1 text="Sorting" halign=center valign=center bordercol=red bordersize=2 posx=15% posy=95% width=150 height=2/> … … 109 109 <node fontsize=30 bordercol=bordercol scrollbar=auto type=listbox name=listbox posx=center posy=140 width=92% height=480> 110 110 <node name=mc_filelistpath valign=middle bordersize=1 posx=center posy=100 width=95% height=30> 111 <node hspace=10 picmem=skin/ ext_directory.png textposx=30 fontsize=40 bordersize=0 bordercol=bordercol scrollbar=auto type=filelist name=mc_filelist posx=center posy=140 width=92% height=480>111 <node hspace=10 picmem=skin/folder.png textposx=30 fontsize=40 bordersize=0 bordercol=bordercol scrollbar=auto type=filelist name=mc_filelist posx=center posy=140 width=92% height=480> 112 112 <node name=b1 text="Sorting" halign=center valign=center bordercol=bgcol bordersize=0 posx=15% posy=90% width=150 height=30/> 113 113 <node name=b1 text="Sorting" halign=center valign=center bordercol=red bordersize=2 posx=15% posy=95% width=150 height=2/> -
titan/titan/filelist.h
r15218 r15220 217 217 } 218 218 219 if(status.filelistextend == 1) node->type |= GRID;219 if(status.filelistextend == 2) node->type |= GRID; 220 220 221 221 status.tmp = node->input; … … 263 263 8 fullcover (list) 264 264 */ 265 266 if(status.filelistextend == 1 && parentdir != NULL) 265 int fontsize = 20; 266 int fontspace = 2; 267 // if(status.filelistextend == 0) 268 // fontsize = 30, fontspace = 5; 269 if(status.filelistextend == 1) 270 fontsize = 35, fontspace = 5; 271 else if(status.filelistextend == 2) 272 fontsize = 20, fontspace = 5; 273 else if(status.filelistextend == 3) 274 fontsize = 30, fontspace = 5; 275 else if(status.filelistextend == 4) 276 fontsize = 25, fontspace = 5; 277 else if(status.filelistextend == 5) 278 fontsize = 25, fontspace = 10; 279 280 if(status.filelistextend == 2 && parentdir != NULL) 267 281 { 268 282 parentdir->picheight = 180; … … 280 294 parentdir->valign = TEXTBOTTOM; 281 295 parentdir->posx = posx; 296 parentdir->fontsize = fontsize; 282 297 posx += parentdir->width; 283 298 284 tmpstr = ostrcat(tmpstr, "skin/ changedir_cover.png", 1, 0);299 tmpstr = ostrcat(tmpstr, "skin/ext_grid_changedir.png", 1, 0); 285 300 changepic(parentdir, tmpstr); 286 301 free(tmpstr); tmpstr = NULL; … … 315 330 if(child != NULL) 316 331 { 317 if(status.filelistextend == 1) 332 if(status.filelistextend != 0) 333 child->fontsize = fontsize; 334 if(status.filelistextend == 2) 318 335 { 319 336 if(gridbr == 0) child->type = GRIDBR; … … 340 357 posx += child->width; 341 358 342 if(ostrcmp(filelist[i]->d_name, "..") == 0) 343 tmpstr = ostrcat(tmpstr, "skin/ext_grid_changedir.png", 1, 0); 344 else if(ostrcmp(filelist[i]->d_name, "autofs") == 0) 359 if(ostrcmp(filelist[i]->d_name, "autofs") == 0) 345 360 tmpstr = ostrcat(tmpstr, "skin/ext_grid_autofs.png", 1, 0); 346 361 else if(ostrcmp(filelist[i]->d_name, "hdd") == 0) … … 402 417 } 403 418 } 404 405 child->bordercol = node->bordercol; 406 407 if(status.filelistextend != 1) 419 else 408 420 { 409 421 if(node->pic != NULL) 410 422 changepic(child, node->pic); 411 412 child->valign = MIDDLE;413 child->width = 200;414 child->prozwidth = 1;415 child->height = node->fontsize + 2 + (node->bordersize * 2);416 423 } 417 424 changetext(child, filelist[i]->d_name); 418 425 changename(child, filelist[i]->d_name); 419 426 child->parentpointer = node; 420 421 if(status.filelistextend != 1) 427 child->bordercol = node->bordercol; 428 429 430 if(status.filelistextend != 2) 422 431 { 432 child->valign = MIDDLE; 423 433 child->width = 100; 424 434 child->prozwidth = 1; 425 child->height = node->fontsize + 2 + (node->bordersize * 2); 435 if(status.filelistextend == 0) 436 child->height = node->fontsize + 2 + (node->bordersize * 2); 437 else 438 child->height = child->fontsize + fontspace + (node->bordersize * 2); 426 439 child->textposx = node->textposx; 427 440 } … … 434 447 free(tmpstr); tmpstr = NULL; 435 448 436 if(status.filelistextend > 1)449 if(status.filelistextend > 2) 437 450 { 438 451 child->filelist = (struct filelist*)malloc(sizeof(struct filelist)); … … 447 460 child->filelist->path = createpath(node->input, ""); 448 461 449 if(status.filelistextend == 4)462 if(status.filelistextend == 5) 450 463 { 451 464 char* filename = NULL; … … 493 506 if(child != NULL) 494 507 { 495 if(status.filelistextend == 1) 508 if(status.filelistextend != 0) 509 child->fontsize = fontsize; 510 if(status.filelistextend == 2) 496 511 { 497 512 if(gridbr == 0) child->type = GRIDBR; … … 583 598 584 599 child->bordercol = node->bordercol; 585 if(status.filelistextend != 1)600 if(status.filelistextend != 2) 586 601 { 602 child->valign = MIDDLE; 587 603 child->width = 100; 588 604 child->prozwidth = 1; 589 child->height = node->fontsize + 2 + (node->bordersize * 2); 605 if(status.filelistextend == 0) 606 child->height = node->fontsize + 2 + (node->bordersize * 2); 607 else 608 child->height = child->fontsize + fontspace + (node->bordersize * 2); 590 609 child->textposx = node->textposx; 591 610 } … … 601 620 changeinput(child, NULL); 602 621 603 if(status.filelistextend > 1)622 if(status.filelistextend > 2) 604 623 { 605 624 child->filelist = (struct filelist*)malloc(sizeof(struct filelist)); … … 614 633 child->filelist->path = createpath(node->input, ""); 615 634 616 if(status.filelistextend == 4)635 if(status.filelistextend == 5) 617 636 { 637 /* 618 638 char* filename = NULL; 619 639 filename = ostrcat(filename, strdup(filelist[i]->d_name), 1, 0); … … 632 652 string_remove_whitechars(tmpfile1); 633 653 child->filelist->imdbpath = tmpfile1; 654 */ 655 char* filename = NULL; 656 filename = ostrcat(filename, strdup(filelist[i]->d_name), 1, 0); 657 debug(10, "[filelist] filename: %s", filename); 658 string_tolower(filename); 659 // printf("1filename: %s\n",filename); 660 661 filename = string_shortname(filename,1); 662 // printf("2filename: %s\n",filename); 663 664 string_removechar(filename); 665 // printf("3filename: %s\n",filename); 666 667 string_toupper(filename); 668 changetext(child, filename); 669 670 string_tolower(filename); 671 filename = string_shortname(filename,2); 672 673 string_remove_whitechars(filename); 674 // printf("4filename: %s\n",filename); 675 676 tmpstr = ostrcat(tmpstr, "/media/autofs/DEBIAN/imdb/", 1, 0); 677 tmpstr = ostrcat(tmpstr, filename, 1, 0); 678 free(filename); filename = NULL; 679 // tmpstr = ostrcat(tmpstr, ".imdb", 1, 0); 680 child->filelist->imdbpath = tmpstr; 634 681 } 635 682
Note: See TracChangeset
for help on using the changeset viewer.