Changeset 32105


Ignore:
Timestamp:
01/05/15 16:22:24 (8 years ago)
Author:
Stephan
Message:

[webif] led bar gray when mute
[oled] symbols only for nemesis

Location:
titan/titan
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/httpdfunc.h

    r32082 r32105  
    760760        {
    761761                buf = ostrcat(buf, "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><link rel=stylesheet type=text/css href=titan.css></head><body class=body><center>", 1, 0);
    762                 if(vol >=10)
     762                if((vol >=10) && (status.mute != 1))
    763763                        buf = ostrcat(buf, "<a href=query?setvol&10><img src=img/led_on.png border=0></img></a> ", 1, 0);
    764764                else
    765765                        buf = ostrcat(buf, "<a href=query?setvol&10><img src=img/led_off.png border=0></img></a> ", 1, 0);
    766                 if(vol >=20)
     766                if((vol >=20) && (status.mute != 1))
    767767                        buf = ostrcat(buf, "<a href=query?setvol&20><img src=img/led_on.png border=0></img></a> ", 1, 0);
    768768                else
    769769                        buf = ostrcat(buf, "<a href=query?setvol&20><img src=img/led_off.png border=0></img></a> ", 1, 0);
    770                 if(vol >=30)
     770                if((vol >=30) && (status.mute != 1))
    771771                        buf = ostrcat(buf, "<a href=query?setvol&30><img src=img/led_on.png border=0></img></a> ", 1, 0);
    772772                else
    773773                        buf = ostrcat(buf, "<a href=query?setvol&30><img src=img/led_off.png border=0></img></a> ", 1, 0);
    774                 if(vol >=40)
     774                if((vol >=40) && (status.mute != 1))
    775775                        buf = ostrcat(buf, "<a href=query?setvol&40><img src=img/led_on.png border=0></img></a> ", 1, 0);
    776776                else
    777777                        buf = ostrcat(buf, "<a href=query?setvol&40><img src=img/led_off.png border=0></img></a> ", 1, 0);
    778                 if(vol >=50)
     778                if((vol >=50) && (status.mute != 1))
    779779                        buf = ostrcat(buf, "<a href=query?setvol&50><img src=img/led_on.png border=0></img></a> ", 1, 0);
    780780                else
    781781                        buf = ostrcat(buf, "<a href=query?setvol&50><img src=img/led_off.png border=0></img></a> ", 1, 0);
    782                 if(vol >=60)
     782                if((vol >=60) && (status.mute != 1))
    783783                        buf = ostrcat(buf, "<a href=query?setvol&60><img src=img/led_on.png border=0></img></a> ", 1, 0);
    784784                else
    785785                        buf = ostrcat(buf, "<a href=query?setvol&60><img src=img/led_off.png border=0></img></a> ", 1, 0);
    786                 if(vol >=70)
     786                if((vol >=70) && (status.mute != 1))
    787787                        buf = ostrcat(buf, "<a href=query?setvol&70><img src=img/led_on.png border=0></img></a> ", 1, 0);
    788788                else
    789789                        buf = ostrcat(buf, "<a href=query?setvol&70><img src=img/led_off.png border=0></img></a> ", 1, 0);
    790                 if(vol >=80)
     790                if((vol >=80) && (status.mute != 1))
    791791                        buf = ostrcat(buf, "<a href=query?setvol&80><img src=img/led_on.png border=0></img></a> ", 1, 0);
    792792                else
    793793                        buf = ostrcat(buf, "<a href=query?setvol&80><img src=img/led_off.png border=0></img></a> ", 1, 0);
    794                 if(vol >=90)
     794                if((vol >=90) && (status.mute != 1))
    795795                        buf = ostrcat(buf, "<a href=query?setvol&90><img src=img/led_on.png border=0></img></a> ", 1, 0);
    796796                else
    797797                        buf = ostrcat(buf, "<a href=query?setvol&90><img src=img/led_off.png border=0></img></a> ", 1, 0);
    798                 if(vol >=100)
     798                if((vol >=100) && (status.mute != 1))
    799799                        buf = ostrcat(buf, "<a href=query?setvol&100><img src=img/led_on.png border=0></img></a> ", 1, 0);
    800800                else
     
    47344734        char* tmpstr2 = NULL;   
    47354735        struct splitstr* ret2 = NULL;   
    4736         tmpstr = ostrcat("10\n40\n50\n60\n70\n80\n90\n99\n100\n130\n150\n200\n250\n270\n300\n400\n900\n1000", NULL, 0, 0);
    4737         tmpstr2 = ostrcat(" - Minimal\n - TopfieldVFD\n - MediaCenter\n - Menulist\n  - Network Browser\n - Harddisk\n - Screensaver\n - Tithek\n - Global\n - TPK\n - ePlayer\n - Tuning\n - Stream/Record/Softcam\n - EPG\n - Radiotext\n - Subtitle\n - Mutex\n - Function", NULL, 0, 0);
     4736        tmpstr = ostrcat("10\n40\n50\n60\n70\n80\n90\n99\n100\n130\n150\n200\n250\n270\n300\n400\n500\n900\n1000", NULL, 0, 0);
     4737        tmpstr2 = ostrcat(" - Minimal\n - TopfieldVFD\n - MediaCenter\n - Menulist\n  - Network Browser\n - Harddisk\n - Screensaver\n - Tithek\n - Global\n - TPK\n - ePlayer\n - Tuning\n - Stream/Record/Softcam\n - EPG\n - Radiotext\n - Subtitle\n - Scan\n - Mutex\n - Function", NULL, 0, 0);
    47384738
    47394739        ostrcatbig(&buf, "<tr><td><font class=\"label\">", &maxlen, &pos);
  • titan/titan/skin.h

    r32092 r32105  
    3434                return &getpicon;
    3535        }
     36
    3637#ifdef MIPSEL
    37         if(ostrcmp("getoledmute", value) == 0)
    38         {
    39                 *rettype = FUNCPIC;
    40                 return &getoledmute;
    41         }
    42 
    43         if(ostrcmp("getoledtimeshift", value) == 0)
    44         {
    45                 *rettype = FUNCPIC;
    46                 return &getoledtimeshift;
    47         }
    48 
    49         if(ostrcmp("getoledrec", value) == 0)
    50         {
    51                 *rettype = FUNCPIC;
    52                 return &getoledrec;
    53         }
    54 
    55         if(ostrcmp("getoledstreaming", value) == 0)
    56         {
    57                 *rettype = FUNCPIC;
    58                 return &getoledstreaming;
    59         }
    60 
     38        if(checkrealbox("INI-8000AM") == 1)
     39        {       
     40                if(ostrcmp("getoledmute", value) == 0)
     41                {
     42                        *rettype = FUNCPIC;
     43                        return &getoledmute;
     44                }
     45
     46                if(ostrcmp("getoledtimeshift", value) == 0)
     47                {
     48                        *rettype = FUNCPIC;
     49                        return &getoledtimeshift;
     50                }
     51
     52                if(ostrcmp("getoledrec", value) == 0)
     53                {
     54                        *rettype = FUNCPIC;
     55                        return &getoledrec;
     56                }
     57
     58                if(ostrcmp("getoledstreaming", value) == 0)
     59                {
     60                        *rettype = FUNCPIC;
     61                        return &getoledstreaming;
     62                }
     63        }
    6164#endif
     65
    6266        if(ostrcmp("getalternatepicon", value) == 0)
    6367        {
  • titan/titan/skinfunc.h

    r32089 r32105  
    144144
    145145#ifdef MIPSEL
    146 ///rec png
    147         char* getoledrec(struct skin* node, char* path)
    148         {
    149                 char* tmpstr = NULL;
    150 
    151                 if(status.recording > 0)
    152                 {
    153                         tmpstr = ostrcat("oled_rec.png", NULL, 0, 0);
    154 
    155                         if(path != NULL)
    156                                 tmpstr = ostrcat("/", tmpstr, 0, 1);
    157                         tmpstr = ostrcat(path, tmpstr, 0, 1);
    158                 }
    159        
    160                 return tmpstr;
    161         }
    162 ///mute png
    163         char* getoledmute(struct skin* node, char* path)
     146        if(checkrealbox("INI-8000AM") == 1)
     147        {
     148        //rec png
     149                char* getoledrec(struct skin* node, char* path)
     150                {
     151                        char* tmpstr = NULL;
     152
     153                        if(status.recording > 0)
     154                        {
     155                                tmpstr = ostrcat("oled_rec.png", NULL, 0, 0);
     156
     157                                if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
     158                                tmpstr = ostrcat(path, tmpstr, 0, 1);
     159                        }
     160       
     161                        return tmpstr;
     162                }
     163        //mute png
     164                char* getoledmute(struct skin* node, char* path)
    164165                {
    165166                        char* tmpstr = NULL;
     
    169170                                tmpstr = ostrcat("oled_mute.png", NULL, 0, 0);
    170171
    171                                 if(path != NULL)
    172                                         tmpstr = ostrcat("/", tmpstr, 0, 1);
     172                                if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
    173173                                tmpstr = ostrcat(path, tmpstr, 0, 1);
    174174                        }
     
    177177                }
    178178
    179 ///timeshift png
    180         char* getoledtimeshift(struct skin* node, char* path)
     179        //timeshift png
     180                char* getoledtimeshift(struct skin* node, char* path)
    181181                {
    182182                        char* tmpstr = NULL;
     
    186186                                tmpstr = ostrcat("oled_timeshift.png", NULL, 0, 0);
    187187
    188                                 if(path != NULL)
    189                                         tmpstr = ostrcat("/", tmpstr, 0, 1);
     188                                if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
    190189                                tmpstr = ostrcat(path, tmpstr, 0, 1);
    191190                        }
     
    194193                }
    195194
    196 ///streaming png
    197         char* getoledstreaming(struct skin* node, char* path)
     195        //streaming png
     196                char* getoledstreaming(struct skin* node, char* path)
    198197                {
    199198                        char* tmpstr = NULL;
     
    203202                                tmpstr = ostrcat("oled_streaming.png", NULL, 0, 0);
    204203
    205                                 if(path != NULL)
    206                                         tmpstr = ostrcat("/", tmpstr, 0, 1);
     204                                if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
    207205                                tmpstr = ostrcat(path, tmpstr, 0, 1);
    208206                        }
     
    210208                        return tmpstr;
    211209                }
    212 
     210        }
    213211#endif
    214212
Note: See TracChangeset for help on using the changeset viewer.