Ticket #1139: icons.diff
File icons.diff, 6.7 KB (added by , 18 years ago) |
---|
-
myththemes/MythCenter/ui.xml
1565 1565 <filename>type/processing.png</filename> 1566 1566 <position>160,195</position> 1567 1567 </image> 1568 <image name="stereo" draworder="6"> 1569 <filename>type/stereo.png</filename> 1570 <position>195,195</position> 1571 </image> 1572 <image name="cc" draworder="6"> 1573 <filename>type/cc.png</filename> 1574 <position>230,195</position> 1575 </image> 1576 <image name="hdtv" draworder="6"> 1577 <filename>type/hd.png</filename> 1578 <position>275,195</position> 1579 </image> 1568 1580 1569 1581 </container> 1570 1582 -
mythtv/libs/libmythtv/programinfo.h
273 273 274 274 QString year; 275 275 float stars; 276 bool stereo; 277 bool cc; 278 bool hd; 276 279 277 280 QDate originalAirDate; 278 281 QDateTime lastmodified; -
mythtv/libs/libmythtv/programinfo.cpp
74 74 chanOutputFilters = ""; 75 75 year = ""; 76 76 stars = 0; 77 stereo = 0; 78 cc = 0; 79 hd = 0; 77 80 availableStatus = asAvailable; 78 81 79 82 pathname = ""; … … 216 219 217 220 originalAirDate = other.originalAirDate; 218 221 stars = other.stars; 222 stereo = other.stereo; 223 cc = other.cc; 224 hd = other.hd; 219 225 year = QDeepCopy<QString>(other.year); 220 226 ignoreBookmark = other.ignoreBookmark; 221 227 … … 301 307 STR_TO_LIST(programid) 302 308 DATETIME_TO_LIST(lastmodified) 303 309 FLOAT_TO_LIST(stars) 310 INT_TO_LIST(stereo) 311 INT_TO_LIST(cc) 312 INT_TO_LIST(hd) 304 313 DATETIME_TO_LIST(QDateTime(originalAirDate)) 305 314 INT_TO_LIST(hasAirDate) 306 315 STR_TO_LIST((playgroup != "") ? playgroup : "Default") … … 399 408 STR_FROM_LIST(programid) 400 409 DATETIME_FROM_LIST(lastmodified) 401 410 FLOAT_FROM_LIST(stars) 411 INT_FROM_LIST(stereo) 412 INT_FROM_LIST(cc) 413 INT_FROM_LIST(hd) 402 414 DATE_FROM_LIST(originalAirDate); 403 415 INT_FROM_LIST(hasAirDate); 404 416 STR_FROM_LIST(playgroup) … … 596 608 } 597 609 else 598 610 progMap["stars"] = ""; 611 612 progMap["stereo"] = stereo; 613 progMap["cc"] = cc; 614 progMap["hdtv"] = hd; 599 615 600 616 if (hasAirDate) 601 617 { … … 699 715 p->programid = ""; 700 716 p->year = ""; 701 717 p->stars = 0.0f; 718 p->stereo = 0; 719 p->cc = 0; 720 p->hd = 0; 702 721 703 722 if (!genUnknown) 704 723 return p; … … 3964 3983 " program.airdate, program.stars, program.originalairdate, " 3965 3984 " program.category_type, oldrecstatus.recordid, " 3966 3985 " oldrecstatus.rectype, oldrecstatus.recstatus, " 3967 " oldrecstatus.findid " 3986 " oldrecstatus.findid, program.stereo, program.hdtv, " 3987 " program.closecaptioned " 3968 3988 "FROM program " 3969 3989 "LEFT JOIN channel ON program.chanid = channel.chanid " 3970 3990 "LEFT JOIN oldrecorded AS oldrecstatus ON " … … 4035 4055 p->rectype = RecordingType(query.value(20).toInt()); 4036 4056 p->recstatus = RecStatusType(query.value(21).toInt()); 4037 4057 p->findid = query.value(22).toInt(); 4058 p->stereo = query.value(23).toInt(); 4059 p->cc = query.value(25).toInt(); 4060 p->hd = query.value(24).toInt(); 4038 4061 4039 4062 ProgramInfo *s; 4040 4063 for (s = schedList.first(); s; s = schedList.next()) … … 4052 4075 p->dupin = s->dupin; 4053 4076 p->dupmethod = s->dupmethod; 4054 4077 p->findid = s->findid; 4078 p->stereo = s->stereo; 4079 p->cc = s->cc; 4080 p->hd = s->hd; 4055 4081 } 4056 4082 } 4057 4083 -
mythtv/programs/mythfrontend/playbackbox.cpp
741 741 itype->hide(); 742 742 } 743 743 744 itype = (UIImageType *)container->GetType("stereo"); 745 if (itype) 746 { 747 if (curitem->stereo) 748 itype->show(); 749 else 750 itype->hide(); 751 } 752 753 itype = (UIImageType *)container->GetType("cc"); 754 if (itype) 755 { 756 if (curitem->cc) 757 itype->show(); 758 else 759 itype->hide(); 760 } 761 762 itype = (UIImageType *)container->GetType("hdtv"); 763 if (itype) 764 { 765 if (curitem->hd) 766 itype->show(); 767 else 768 itype->hide(); 769 } 770 744 771 container->Draw(&tmp, 6, (type == Delete) ? 1 : 0); 745 772 } 746 773 -
mythtv/programs/mythbackend/mainserver.cpp
958 958 "recorded.lastmodified, recorded.findid, " 959 959 "recorded.originalairdate, recorded.playgroup, " 960 960 "recorded.basename, recorded.progstart, " 961 "recorded.progend, recorded.stars " 961 "recorded.progend, recorded.stars, " 962 "recordedprogram.stereo, recordedprogram.hdtv, " 963 "recordedprogram.closecaptioned " 962 964 "FROM recorded " 963 965 "LEFT JOIN record ON recorded.recordid = record.recordid " 964 966 "LEFT JOIN channel ON recorded.chanid = channel.chanid " 967 "LEFT JOIN recordedprogram ON (recorded.chanid = recordedprogram.chanid " 968 "AND recorded.starttime = recordedprogram.starttime) " 965 969 "WHERE (recorded.deletepending = 0 OR " 966 970 "DATE_ADD(recorded.lastmodified, " 967 971 "INTERVAL 5 MINUTE) <= NOW()) " … … 1086 1090 } 1087 1091 1088 1092 proginfo->stars = query.value(31).toDouble(); 1093 proginfo->stereo = query.value(32).toInt(); 1094 proginfo->cc = query.value(34).toInt(); 1095 proginfo->hd = query.value(33).toInt(); 1089 1096 1090 1097 QString lpath = fileprefix + "/" + basename; 1091 1098 PlaybackSock *slave = NULL;