<screen name="ScartLoopThrough" position="0,0" size="720,576">
</screen>
<screen name="ServiceInfo" position="180,120" size="360,330" title="Serviceinfo">
- <widget name="infolist" position="20,10" size="320,325" />
+ <widget name="infolist" position="20,10" size="320,325" selectionDisabled="1"/>
</screen>
<screen name="AudioSelection" position="210,150" size="300,170" title="Audio">
<widget name="tracks" position="20,10" size="260,150" />
eActionMap::getInstance(ptr);
m_itemheight = 25;
+ m_selection_enabled = 1;
ptr->bindAction("ListboxActions", 0, 0, this);
}
for (int y = 0, i = 0; i <= m_items_per_page; y += m_itemheight, ++i)
{
- m_content->paint(painter, *style, ePoint(0, y), m_selected == m_content->cursorGet() && m_content->size());
+ m_content->paint(painter, *style, ePoint(0, y), m_selected == m_content->cursorGet() && m_content->size() && m_selection_enabled);
m_content->cursorMove(+1);
}
recalcSize();
}
+void eListbox::setSelectionEnable(int en)
+{
+ if (m_selection_enabled == en)
+ return;
+ m_selection_enabled = en;
+ entryChanged(m_selected); /* redraw current entry */
+}
+
void eListbox::entryAdded(int index)
{
/* manage our local pointers. when the entry was added before the current position, we have to advance. */
};
void setItemHeight(int h);
+ void setSelectionEnable(int en);
#ifndef SWIG
/* entryAdded: an entry was added *before* the given index. it's index is the given number. */
protected:
int event(int event, void *data=0, void *data2=0);
void recalcSize();
-
+
private:
int m_top, m_selected;
int m_itemheight;
int m_items_per_page;
+ int m_selection_enabled;
ePtr<iListboxContent> m_content;
#endif
guiObject.setBackgroundColor(parseColor(value))
elif attrib == "foregroundColor":
guiObject.setForegroundColor(parseColor(value))
+ elif attrib == "selectionDisabled":
+ guiObject.setSelectionEnable(0)
elif attrib != 'name':
print "unsupported attribute " + attrib + "=" + value
except int: