aboutsummaryrefslogtreecommitdiff
path: root/lib/service/listboxservice.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-03 15:53:37 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-03 15:53:37 +0000
commit36940d42cf3cc58b40a5a6f5fe86bad50ff48ad7 (patch)
treee0990a34f6c21597f045297b9bc322a0f1308857 /lib/service/listboxservice.cpp
parent20fdb2a2af40da98427a702a03a79b1fbec3d7af (diff)
downloadenigma2-36940d42cf3cc58b40a5a6f5fe86bad50ff48ad7.tar.gz
enigma2-36940d42cf3cc58b40a5a6f5fe86bad50ff48ad7.zip
fix marking non playable services in channellist
Diffstat (limited to 'lib/service/listboxservice.cpp')
-rw-r--r--lib/service/listboxservice.cpp25
1 files changed, 8 insertions, 17 deletions
diff --git a/lib/service/listboxservice.cpp b/lib/service/listboxservice.cpp
index 4e20fcb7..035658ee 100644
--- a/lib/service/listboxservice.cpp
+++ b/lib/service/listboxservice.cpp
@@ -335,28 +335,12 @@ void eListboxServiceContent::paint(gPainter &painter, eWindowStyle &style, const
{
painter.clip(eRect(offset, m_itemsize));
- bool tuneable=true;
-
-#if 0
- if (m_res_mgr && cursorValid() && !((m_cursor->flags & eServiceReference::flagDirectory) == eServiceReference::flagDirectory))
- {
- eServiceReferenceDVB &ref = (eServiceReferenceDVB&) *m_cursor;
- eDVBChannelID chid;
- ref.getChannelID(chid);
- tuneable = m_res_mgr->canAllocateChannel(chid);
- }
-#endif
-
if (m_current_marked && selected)
style.setStyle(painter, eWindowStyle::styleListboxMarked);
else if (cursorValid() && isMarked(*m_cursor))
style.setStyle(painter, eWindowStyle::styleListboxMarked);
else
- {
style.setStyle(painter, selected ? eWindowStyle::styleListboxSelected : eWindowStyle::styleListboxNormal);
- if (!tuneable)
- painter.setForegroundColor(gRGB(0xbbbbbb));
- }
painter.clear();
if (cursorValid())
@@ -364,7 +348,10 @@ void eListboxServiceContent::paint(gPainter &painter, eWindowStyle &style, const
/* get service information */
ePtr<iStaticServiceInformation> service_info;
m_service_center->info(*m_cursor, service_info);
-
+
+ if (m_is_playable_ignore.valid() && !service_info->isPlayable(*m_cursor, m_is_playable_ignore))
+ painter.setForegroundColor(gRGB(0xbbbbbb));
+
for (int e = 0; e < celElements; ++e)
{
if (!m_element_font[e])
@@ -447,3 +434,7 @@ void eListboxServiceContent::paint(gPainter &painter, eWindowStyle &style, const
painter.clippop();
}
+void eListboxServiceContent::setIgnoreService( const eServiceReference &service )
+{
+ m_is_playable_ignore=service;
+}