Changeset 15573


Ignore:
Timestamp:
05/09/12 00:07:48 (11 years ago)
Author:
nit
Message:

[titan] make channellistview changeable

Location:
titan/titan
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/adjust.h

    r14320 r15573  
    3535        struct skin* screenanim = getscreennode(adjust, "screenanim");
    3636        struct skin* screenanimspeed = getscreennode(adjust, "screenanimspeed");
     37  struct skin* channellistview = getscreennode(adjust, "channellistview");
    3738       
    3839        struct skin* tmp = NULL;
     
    160161        addchoicebox(screenanimspeed, "20", _("very slow"));
    161162        setchoiceboxselection(screenanimspeed, getconfig("screenanimspeed", NULL));
     163 
     164  addchoicebox(channellistview, "0", _("hidden"));
     165        addchoicebox(channellistview, "1", _("deactive"));
     166        setchoiceboxselection(channellistview, getconfig("channellistview", NULL));
    162167
    163168        drawscreen(adjust, 0);
     
    217222                        addconfigscreencheck("screenanimspeed", screenanimspeed, "1");
    218223                        status.screenanimspeed = getconfigint("screenanimspeed", NULL);
     224      addconfigscreencheck("channellistview", channellistview, "0");
     225                        status.channellistview = getconfigint("channellistview", NULL);
    219226
    220227                        break;
  • titan/titan/channellist.h

    r15571 r15573  
    8383                                chnode->handle1 = (char*) tmpchannel;
    8484                                if(mode == 0 && channelnottunable(tmpchannel) == 1)
    85                                         chnode->hidden = YES;
    86 //                                      chnode->deaktivcol = deaktivcol;
     85        {
     86          if(status.channellistview == 0)
     87            chnode->hidden = YES;
     88          else
     89                                        chnode->deaktivcol = deaktivcol;
    8790                        }
    8891                }
     
    121124                                        chnode->handle1 = (char*) tmpbouquet;
    122125                                        if(mode == 0 && channelnottunable(tmpbouquet->channel) == 1)
    123                                                 chnode->hidden = YES;
    124 //                                              chnode->deaktivcol = deaktivcol;
     126          {
     127            if(status.channellistview == 0)
     128              chnode->hidden = YES;
     129            else
     130                                                chnode->deaktivcol = deaktivcol;
     131          }
    125132                                               
    126133                                        if(status.showchanneltimeline == 1 && channeltimeline != status.skinerr)
     
    168175                                        chnode->handle1 = (char*) tmpchannel;
    169176                                        if(mode == 0 && channelnottunable(tmpchannel) == 1)
    170                                                 chnode->hidden = YES;
    171 //                                              chnode->deaktivcol = deaktivcol;
     177          {
     178            if(status.channellistview == 0)
     179                                                  chnode->hidden = YES;
     180            else
     181                                                chnode->deaktivcol = deaktivcol;
     182          }
    172183                                }
    173184                        }
     
    221232                                        chnode->handle1 = (char*) tmpchannel;
    222233                                        if(mode == 0 && channelnottunable(tmpchannel) == 1)
    223                                                 chnode->hidden = YES;
    224 //                                              chnode->deaktivcol = deaktivcol;
     234          {
     235            if(status.channellistview == 0)
     236                                                  chnode->hidden = YES;
     237            else
     238                                                chnode->deaktivcol = deaktivcol;
     239          }
    225240                                }
    226241                        }
     
    304319                                        chnode->handle1 = (char*) tmpchannel;
    305320                                        if(mode == 0 && channelnottunable(tmpchannel) == 1)
    306                                                 chnode->hidden = YES;
    307 //                                              chnode->deaktivcol = deaktivcol;
     321          {
     322            if(status.channellistview == 0)
     323              chnode->hidden = YES;
     324            else
     325                                                chnode->deaktivcol = deaktivcol;
     326          }
    308327                                }
    309328                        }
  • titan/titan/struct.h

    r15546 r15573  
    10701070  //time for next picmem timeout check
    10711071  time_t picmemtimeout;
     1072  //show not tunable channel hidden (0)) or deaktive (1) in channellist
     1073  int channellistview;
    10721074} status;
    10731075
Note: See TracChangeset for help on using the changeset viewer.