Changeset 16407
- Timestamp:
- 06/09/12 12:16:26 (12 years ago)
- Location:
- titan
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tmc/tmc.h
r16370 r16407 415 415 struct skin* picfull = getscreennode(tmcpic3, "picfull"); 416 416 struct skin* picname = getscreennode(tmcpic3, "picname"); 417 struct skin* scan = getscreennode(tmcpic3, "scan"); 417 418 struct skin* tmp = NULL; 418 419 char* tmppic = NULL; … … 425 426 picfull->hidden = NO; 426 427 picname->hidden = NO; 428 scan->hidden = NO; 427 429 428 430 addchoicebox(pictimeout, "5", "5"); … … 440 442 setchoiceboxselection(picname, getconfig("tmcpicname", NULL)); 441 443 444 addchoicebox(scan, "0", _("all")); 445 addchoicebox(scan, "1", _("video")); 446 addchoicebox(scan, "2", _("audio")); 447 addchoicebox(scan, "3", _("picture")); 448 addchoicebox(scan, "91", _("video / audio")); 449 addchoicebox(scan, "92", _("video / picture")); 450 addchoicebox(scan, "93", _("audio / picture")); 451 setchoiceboxselection(scan, getconfig("tmcscan", NULL)); 452 442 453 addscreenrc(tmcpic3, listbox); 443 454 drawscreen(tmcpic3, 0); … … 454 465 if(rcret == getrcconfigint("rcok", NULL) && listbox->select != NULL) 455 466 { 456 addconfigscreencheck("tmcpictimeout", tmcpic3, "5"); 457 addconfigscreencheck("tmcpicname", tmcpic3, "0"); 458 addconfigscreencheck("tmcpicfull", tmcpic3, "0"); 467 addconfigscreencheck("tmcpictimeout", pictimeout, "5"); 468 addconfigscreencheck("tmcpicname", picname, "0"); 469 addconfigscreencheck("tmcpicfull", picfull, "0"); 470 addconfigscreencheck("tmcscan", scan, "0"); 459 471 break; 460 472 } … … 464 476 picfull->hidden = YES; 465 477 picname->hidden = YES; 478 scan->hidden = YES; 466 479 467 480 delownerrc(tmcpic3); 468 delmarkedscreennodes(tmcpic3, 1); 481 482 changepic(tmcpic3, tmppic); 483 tmcpic3->bgcol = -1; 484 free(tmppic); tmppic = NULL; 485 drawscreen(tmcpic3, 0); 486 } 487 488 void screentmcedit(char* file) 489 { 490 //TODO 491 } 492 493 void screentmcdelete(char* file) 494 { 495 //TODO 496 } 497 498 void screentmcimdbsearch(char* file) 499 { 500 //TODO 501 } 502 503 void screentmcinfo(char* file) 504 { 505 //TODO 506 } 507 508 void screentmcdbmenu(char* file) 509 { 510 int rcret = 0; 511 struct skin* tmcpic3 = getscreen("tmcpic3"); 512 struct skin* listbox = getscreennode(tmcpic3, "listbox"); 513 struct skin* edit = getscreennode(tmcpic3, "edit"); 514 struct skin* delete = getscreennode(tmcpic3, "delete"); 515 struct skin* imdbsearch = getscreennode(tmcpic3, "imdbsearch"); 516 struct skin* info = getscreennode(tmcpic3, "imdbsearch"); 517 struct skin* tmp = NULL; 518 char* tmppic = NULL; 519 520 tmppic = ostrcat(tmcpic3->pic, NULL, 0, 0); 521 changepic(tmcpic3, NULL); 522 tmcpic3->bgcol = 0; 523 524 edit->hidden = NO; 525 delete->hidden = NO; 526 imdbsearch->hidden = NO; 527 info->hidden = NO; 528 529 addscreenrc(tmcpic3, listbox); 530 drawscreen(tmcpic3, 0); 531 532 while(1) 533 { 534 rcret = waitrc(tmcpic3, 0, 0); 535 536 if(rcret == getrcconfigint("rcexit", NULL)) break; 537 538 if(rcret == getrcconfigint("rcok", NULL) && listbox->select != NULL) 539 { 540 if(ostrcmp(listbox->select->name, "edit") == 0) 541 screentmcedit(file); 542 if(ostrcmp(listbox->select->name, "delete") == 0) 543 screentmcdelete(file); 544 if(ostrcmp(listbox->select->name, "imdbsearch") == 0) 545 screentmcimdbsearch(file); 546 if(ostrcmp(listbox->select->name, "info") == 0) 547 screentmcinfo(file); 548 549 drawscreen(tmcpic3, 0); 550 } 551 } 552 553 edit->hidden = YES; 554 delete->hidden = YES; 555 imdbsearch->hidden = YES; 556 info->hidden = YES; 557 558 delownerrc(tmcpic3); 469 559 470 560 changepic(tmcpic3, tmppic); … … 647 737 } 648 738 739 if(rcret == getrcconfigint("rcmenu", NULL) && active == 1) 740 screentmcdbmenu(tmcpic3->ret); 741 742 if(rcret == getrcconfigint("rcinfo", NULL) && active == 1) 743 screentmcinfo(tmcpic3->ret); 744 649 745 if(rcret == getrcconfigint("rcok", NULL)) 650 746 { … … 666 762 else if(menuid == 1 && ostrcmp("Scan", tmcmenutxt->ret) == 0) 667 763 { 668 mediadbscan(NULL, 100); 764 int scantype = getconfigint("tmcscan", NULL); 765 766 if(scantype == 0) 767 scantype = 100; 768 else 769 scantype--; 770 771 mediadbscan(NULL, scantype); 669 772 screentmcdb(); 670 773 } -
titan/skins/tmc/skin.xml
r16291 r16407 45 45 <node hidden=yes name=picfull type=choicebox parent=listbox valign=middle posx=0 text="Full Pic" bordercol=bordercol width=100%> 46 46 <node hidden=yes name=picname type=choicebox parent=listbox valign=middle posx=0 text="Pic Name" bordercol=bordercol width=100%> 47 <node hidden=yes name=scan type=choicebox parent=listbox valign=middle posx=0 text="Scan" bordercol=bordercol width=100%> 48 <node hidden=yes name=imdbsearch parent=listbox valign=middle posx=0 text="IMDB Search" bordercol=bordercol width=100%> 49 <node hidden=yes name=info parent=listbox valign=middle posx=0 text="Info" bordercol=bordercol width=100%> 50 <node hidden=yes name=edit parent=listbox valign=middle posx=0 text="Edit" bordercol=bordercol width=100%> 51 <node hidden=yes name=delete parent=listbox valign=middle posx=0 text="Delete" bordercol=bordercol width=100%> 47 52 </screen> 48 53 -
titan/titan/mediadb.h
r16403 r16407 1479 1479 if(!filelistflt("*.avi", entry->d_name)) 1480 1480 { 1481 if(type == 0 || type == 100 )1481 if(type == 0 || type == 100 || type == 90 || type == 91) 1482 1482 mediadbfindfilecb(path, entry->d_name, 0); 1483 1483 } … … 1485 1485 if(!filelistflt("*.mp3", entry->d_name)) 1486 1486 { 1487 if(type == 1 || type == 100 )1487 if(type == 1 || type == 100 || type == 90 || type == 92) 1488 1488 mediadbfindfilecb(path, entry->d_name, 1); 1489 1489 } … … 1491 1491 if(!filelistflt("*.jpg", entry->d_name)) 1492 1492 { 1493 if(type == 2 || type == 100 )1493 if(type == 2 || type == 100 || type == 91 || type == 92) 1494 1494 mediadbfindfilecb(path, entry->d_name, 2); 1495 1495 } … … 1507 1507 } 1508 1508 1509 //type 0=video, 1=audio, 2=pic ture, 3=all1509 //type 0=video, 1=audio, 2=pic, 90=video/audio, 91=video/pic, 92=audio/pic, 100=all 1510 1510 void mediadbscan(char* path, int type) 1511 1511 {
Note: See TracChangeset
for help on using the changeset viewer.