Changeset 15328
- Timestamp:
- 04/19/12 21:39:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/gmultiepg.h
r15257 r15328 110 110 } 111 111 112 113 int calcgmultiepg(struct channel* tmpchannel, struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, int zoom, time_t akttime, struct channel* aktchannel, int linecol1, int linecol2, int linecol3, int* aktline, struct skin** pchnode, struct skin** pchnode1, int height, int picheight, int epgpicon, long deaktivcol) 112 int calcgmultiepg(struct channel* tmpchannel, struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, int zoom, time_t akttime, struct channel* aktchannel, int linecol1, int linecol2, int linecol3, int* aktline, struct skin** pchnode, struct skin** pchnode1, int height, int picheight, int epgpicon, long deaktivcol, int marklast) 114 113 { 115 114 int treffer = 0, gridbr = 0, aktcol = 0, nottuneable = 0; … … 160 159 if(gridbr == 0) 161 160 { 161 chnode1->titlesize = 1; 162 162 chnode1->type = TEXTBOX | GRIDBR; 163 163 if(tmpchannel == aktchannel) … … 204 204 if(chnode1->posx + chnode1->width >= listbox->iwidth) 205 205 { 206 if(marklast == 1 && tmpchannel == aktchannel) 207 listbox->aktline = *aktline; 208 chnode1->titlesize += 2; 206 209 chnode1->width = listbox->iwidth - chnode1->posx; 207 210 break; … … 210 213 epgnode = epgnode->next; 211 214 } 215 216 if(chnode1 != NULL && chnode1->titlesize < 2) chnode1->titlesize += 2; 217 212 218 if(gridbr == 0) 213 219 { … … 216 222 if(chnode1 != NULL) 217 223 { 224 chnode1->titlesize = 3; 218 225 (*aktline)++; 219 226 if(tmpchannel == aktchannel) … … 240 247 } 241 248 242 int showallgmepgchannel(struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, int zoom, time_t akttime, struct channel* aktchannel )249 int showallgmepgchannel(struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, int zoom, time_t akttime, struct channel* aktchannel, int marklast) 243 250 { 244 251 int treffer = 0, aktline = 0; … … 262 269 while(tmpchannel != NULL) 263 270 { 264 if(calcgmultiepg(tmpchannel, gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, linecol1, linecol2, linecol3, &aktline, &chnode, &chnode1, height, picheight, epgpicon, deaktivcol ) == 1)271 if(calcgmultiepg(tmpchannel, gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, linecol1, linecol2, linecol3, &aktline, &chnode, &chnode1, height, picheight, epgpicon, deaktivcol, marklast) == 1) 265 272 treffer = 1; 266 273 tmpchannel = tmpchannel->next; … … 269 276 } 270 277 271 int showbouquetgmepgchannel(struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, struct bouquet* firstbouquet, int zoom, time_t akttime, struct channel* aktchannel )278 int showbouquetgmepgchannel(struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, struct bouquet* firstbouquet, int zoom, time_t akttime, struct channel* aktchannel, int marklast) 272 279 { 273 280 int treffer = 0, aktline = 0; … … 291 298 while(tmpbouquet != NULL) 292 299 { 293 if(calcgmultiepg(tmpbouquet->channel, gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, linecol1, linecol2, linecol3, &aktline, &chnode, &chnode1, height, picheight, epgpicon, deaktivcol ) == 1)300 if(calcgmultiepg(tmpbouquet->channel, gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, linecol1, linecol2, linecol3, &aktline, &chnode, &chnode1, height, picheight, epgpicon, deaktivcol, marklast) == 1) 294 301 treffer = 1; 295 302 tmpbouquet = tmpbouquet->next; … … 298 305 } 299 306 300 int showprovidergmepgchannel(struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, struct provider* providernode, int zoom, time_t akttime, struct channel* aktchannel )307 int showprovidergmepgchannel(struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, struct provider* providernode, int zoom, time_t akttime, struct channel* aktchannel, int marklast) 301 308 { 302 309 int treffer = 0, aktline = 0; … … 321 328 if(tmpchannel->provider == providernode) 322 329 { 323 if(calcgmultiepg(tmpchannel, gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, linecol1, linecol2, linecol3, &aktline, &chnode, &chnode1, height, picheight, epgpicon, deaktivcol ) == 1)330 if(calcgmultiepg(tmpchannel, gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, linecol1, linecol2, linecol3, &aktline, &chnode, &chnode1, height, picheight, epgpicon, deaktivcol, marklast) == 1) 324 331 treffer = 1; 325 332 } … … 329 336 } 330 337 331 int showsatgmepgchannel(struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, struct sat* satnode, int zoom, time_t akttime, struct channel* aktchannel )338 int showsatgmepgchannel(struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, struct sat* satnode, int zoom, time_t akttime, struct channel* aktchannel, int marklast) 332 339 { 333 340 int treffer = 0, aktline = 0; … … 354 361 if(tmpchannel->transponder != NULL && tmpchannel->transponder->orbitalpos == satnode->orbitalpos) 355 362 { 356 if(calcgmultiepg(tmpchannel, gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, linecol1, linecol2, linecol3, &aktline, &chnode, &chnode1, height, picheight, epgpicon, deaktivcol ) == 1)363 if(calcgmultiepg(tmpchannel, gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, linecol1, linecol2, linecol3, &aktline, &chnode, &chnode1, height, picheight, epgpicon, deaktivcol, marklast) == 1) 357 364 treffer = 1; 358 365 } … … 362 369 } 363 370 364 int showazgmepgchannel(struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, int character, int zoom, time_t akttime, struct channel* aktchannel )371 int showazgmepgchannel(struct skin* gmultiepg, struct skin* channellistbox, struct skin* listbox, struct skin* timeline, int character, int zoom, time_t akttime, struct channel* aktchannel, int marklast) 365 372 { 366 373 int treffer = 0, aktline = 0; … … 385 392 if(tmpchannel->name != NULL && (tmpchannel->name[0] == character || tmpchannel->name[0] == character + 32)) 386 393 { 387 if(calcgmultiepg(tmpchannel, gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, linecol1, linecol2, linecol3, &aktline, &chnode, &chnode1, height, picheight, epgpicon, deaktivcol ) == 1)394 if(calcgmultiepg(tmpchannel, gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, linecol1, linecol2, linecol3, &aktline, &chnode, &chnode1, height, picheight, epgpicon, deaktivcol, marklast) == 1) 388 395 treffer = 1; 389 396 } … … 523 530 list = BOUQUETCHANNEL; 524 531 aktlist = (void*)mainbouquetnode; 525 showbouquetgmepgchannel(gmultiepg, channellistbox, listbox, timeline, mainbouquetnode->bouquet, zoom, akttime, aktchannel );532 showbouquetgmepgchannel(gmultiepg, channellistbox, listbox, timeline, mainbouquetnode->bouquet, zoom, akttime, aktchannel, 0); 526 533 selectchannelgmepg(channellistbox); 527 534 } … … 537 544 character = (int)tmpstr[6]; 538 545 aktlist = (void*)(int)tmpstr[6]; 539 showazgmepgchannel(gmultiepg, channellistbox, listbox, timeline, character, zoom, akttime, aktchannel );546 showazgmepgchannel(gmultiepg, channellistbox, listbox, timeline, character, zoom, akttime, aktchannel, 0); 540 547 selectchannelgmepg(channellistbox); 541 548 } … … 550 557 list = SATCHANNEL; 551 558 aktlist = (void*)satnode; 552 showsatgmepgchannel(gmultiepg, channellistbox, listbox, timeline, satnode, zoom, akttime, aktchannel );559 showsatgmepgchannel(gmultiepg, channellistbox, listbox, timeline, satnode, zoom, akttime, aktchannel, 0); 553 560 selectchannelgmepg(channellistbox); 554 561 } … … 563 570 list = PROVIDERCHANNEL; 564 571 aktlist = (void*)providernode; 565 showprovidergmepgchannel(gmultiepg, channellistbox, listbox, timeline, providernode, zoom, akttime, aktchannel );572 showprovidergmepgchannel(gmultiepg, channellistbox, listbox, timeline, providernode, zoom, akttime, aktchannel, 0); 566 573 selectchannelgmepg(channellistbox); 567 574 } … … 570 577 if(nochanneltitle == 0) changetitle(gmultiepg, _("GRAPHIC MULTI EPG - All Channels")); 571 578 list = ALLCHANNEL; 572 showallgmepgchannel(gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel );579 showallgmepgchannel(gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, 0); 573 580 selectchannelgmepg(channellistbox); 574 581 } … … 656 663 } 657 664 658 if( rcret == getrcconfigint("rcff", NULL) || rcret == getrcconfigint("rcfav", NULL))665 if((listbox->select != NULL && (listbox->select->titlesize == 1 || listbox->select->titlesize == 3) && rcret == getrcconfigint("rcright", NULL)) || rcret == getrcconfigint("rcff", NULL) || rcret == getrcconfigint("rcfav", NULL)) 659 666 { 660 667 time_t tmptime = 0; … … 673 680 if(list == BOUQUETCHANNEL) 674 681 { 675 if(showbouquetgmepgchannel(gmultiepg, channellistbox, listbox, timeline, ((struct mainbouquet*)aktlist)->bouquet, zoom, akttime, aktchannel ) == 0)682 if(showbouquetgmepgchannel(gmultiepg, channellistbox, listbox, timeline, ((struct mainbouquet*)aktlist)->bouquet, zoom, akttime, aktchannel, 0) == 0) 676 683 { 677 684 if(tmptime == 0) … … 682 689 akttime = starttime; 683 690 else 684 showbouquetgmepgchannel(gmultiepg, channellistbox, listbox, timeline, ((struct mainbouquet*)aktlist)->bouquet, zoom, akttime, aktchannel );691 showbouquetgmepgchannel(gmultiepg, channellistbox, listbox, timeline, ((struct mainbouquet*)aktlist)->bouquet, zoom, akttime, aktchannel, 0); 685 692 } 686 693 } 687 694 else if(list == ALLCHANNEL) 688 695 { 689 if(showallgmepgchannel(gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel ) == 0)696 if(showallgmepgchannel(gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, 0) == 0) 690 697 { 691 698 if(tmptime == 0) … … 696 703 akttime = starttime; 697 704 else 698 showallgmepgchannel(gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel );705 showallgmepgchannel(gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, 0); 699 706 } 700 707 } 701 708 else if(list == AZCHANNEL) 702 709 { 703 if(showazgmepgchannel(gmultiepg, channellistbox, listbox, timeline, character, zoom, akttime, aktchannel ) == 0)710 if(showazgmepgchannel(gmultiepg, channellistbox, listbox, timeline, character, zoom, akttime, aktchannel, 0) == 0) 704 711 { 705 712 if(tmptime == 0) … … 710 717 akttime = starttime; 711 718 else 712 showazgmepgchannel(gmultiepg, channellistbox, listbox, timeline, character, zoom, akttime, aktchannel );719 showazgmepgchannel(gmultiepg, channellistbox, listbox, timeline, character, zoom, akttime, aktchannel, 0); 713 720 } 714 721 } 715 722 else if(list == SATCHANNEL) 716 723 { 717 if(showsatgmepgchannel(gmultiepg, channellistbox, listbox, timeline, satnode, zoom, akttime, aktchannel ) == 0)724 if(showsatgmepgchannel(gmultiepg, channellistbox, listbox, timeline, satnode, zoom, akttime, aktchannel, 0) == 0) 718 725 { 719 726 if(tmptime == 0) … … 724 731 akttime = starttime; 725 732 else 726 showsatgmepgchannel(gmultiepg, channellistbox, listbox, timeline, satnode, zoom, akttime, aktchannel );733 showsatgmepgchannel(gmultiepg, channellistbox, listbox, timeline, satnode, zoom, akttime, aktchannel, 0); 727 734 } 728 735 } 729 736 else if(list == PROVIDERCHANNEL) 730 737 { 731 if(showprovidergmepgchannel(gmultiepg, channellistbox, listbox, timeline, providernode, zoom, akttime, aktchannel ) == 0)738 if(showprovidergmepgchannel(gmultiepg, channellistbox, listbox, timeline, providernode, zoom, akttime, aktchannel, 0) == 0) 732 739 { 733 740 if(tmptime == 0) … … 738 745 akttime = starttime; 739 746 else 740 showprovidergmepgchannel(gmultiepg, channellistbox, listbox, timeline, providernode, zoom, akttime, aktchannel );747 showprovidergmepgchannel(gmultiepg, channellistbox, listbox, timeline, providernode, zoom, akttime, aktchannel, 0); 741 748 } 742 749 } … … 752 759 } 753 760 754 if( rcret == getrcconfigint("rcfr", NULL))761 if((listbox->select != NULL && (listbox->select->titlesize == 2 || listbox->select->titlesize == 3) && rcret == getrcconfigint("rcleft", NULL)) || rcret == getrcconfigint("rcfr", NULL)) 755 762 { 756 763 akttime -= addtime; 757 764 if(akttime < starttime) akttime = starttime; 765 766 int marklast = 0; 767 if(rcret == getrcconfigint("rcleft", NULL)) marklast = 1; 758 768 759 769 if(list == BOUQUETCHANNEL) 760 showbouquetgmepgchannel(gmultiepg, channellistbox, listbox, timeline, ((struct mainbouquet*)aktlist)->bouquet, zoom, akttime, aktchannel );770 showbouquetgmepgchannel(gmultiepg, channellistbox, listbox, timeline, ((struct mainbouquet*)aktlist)->bouquet, zoom, akttime, aktchannel, marklast); 761 771 else if(list == ALLCHANNEL) 762 showallgmepgchannel(gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel );772 showallgmepgchannel(gmultiepg, channellistbox, listbox, timeline, zoom, akttime, aktchannel, marklast); 763 773 else if(list == AZCHANNEL) 764 showazgmepgchannel(gmultiepg, channellistbox, listbox, timeline, character, zoom, akttime, aktchannel );774 showazgmepgchannel(gmultiepg, channellistbox, listbox, timeline, character, zoom, akttime, aktchannel, marklast); 765 775 else if(list == SATCHANNEL) 766 showsatgmepgchannel(gmultiepg, channellistbox, listbox, timeline, satnode, zoom, akttime, aktchannel );776 showsatgmepgchannel(gmultiepg, channellistbox, listbox, timeline, satnode, zoom, akttime, aktchannel, marklast); 767 777 else if(list == PROVIDERCHANNEL) 768 showprovidergmepgchannel(gmultiepg, channellistbox, listbox, timeline, providernode, zoom, akttime, aktchannel );778 showprovidergmepgchannel(gmultiepg, channellistbox, listbox, timeline, providernode, zoom, akttime, aktchannel, marklast); 769 779 createtimeline(gmultiepg, timeline, akttime, zoom); 770 780 status.screencalc = 2;
Note: See TracChangeset
for help on using the changeset viewer.