git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
call selectionChanged in List source when setting a new index
[enigma2.git]
/
lib
/
gui
/
epositiongauge.cpp
diff --git
a/lib/gui/epositiongauge.cpp
b/lib/gui/epositiongauge.cpp
index 0adda5db26668e15c7473699202b6f89f5b78b11..4785d7aff46462cf01ba435e9023f3ec14933b6b 100644
(file)
--- a/
lib/gui/epositiongauge.cpp
+++ b/
lib/gui/epositiongauge.cpp
@@
-6,6
+6,7
@@
ePositionGauge::ePositionGauge(eWidget *parent)
{
m_point_widget = new ePixmap(this);
m_seek_point_widget = new ePixmap(this);
{
m_point_widget = new ePixmap(this);
m_seek_point_widget = new ePixmap(this);
+ m_seek_point_widget->hide();
m_point_widget->setAlphatest(1);
m_seek_point_widget->setAlphatest(1);
m_position = 0;
m_point_widget->setAlphatest(1);
m_seek_point_widget->setAlphatest(1);
m_position = 0;
@@
-42,6
+43,11
@@
void ePositionGauge::setInColor(const gRGB &color)
invalidate();
}
invalidate();
}
+void ePositionGauge::setPointer(int which, ePtr<gPixmap> &pixmap, const ePoint ¢er)
+{
+ setPointer(which, pixmap.operator->(), center);
+}
+
void ePositionGauge::setPointer(int which, gPixmap *pixmap, const ePoint ¢er)
{
if (which == 0)
void ePositionGauge::setPointer(int which, gPixmap *pixmap, const ePoint ¢er)
{
if (which == 0)
@@
-58,7
+64,7
@@
void ePositionGauge::setPointer(int which, gPixmap *pixmap, const ePoint ¢er
updatePosition();
}
updatePosition();
}
-void ePositionGauge::setInOutList(
PyObject *
list)
+void ePositionGauge::setInOutList(
ePyObject
list)
{
if (!PyList_Check(list))
return;
{
if (!PyList_Check(list))
return;
@@
-69,14
+75,14
@@
void ePositionGauge::setInOutList(PyObject *list)
for (i=0; i<size; ++i)
{
for (i=0; i<size; ++i)
{
-
PyObject *tuple = PyList_GetItem
(list, i);
+
ePyObject tuple = PyList_GET_ITEM
(list, i);
if (!PyTuple_Check(tuple))
continue;
if (PyTuple_Size(tuple) != 2)
continue;
if (!PyTuple_Check(tuple))
continue;
if (PyTuple_Size(tuple) != 2)
continue;
-
PyObject *ppts = PyTuple_GetItem(tuple, 0), *ptype = PyTuple_GetItem
(tuple, 1);
+
ePyObject ppts = PyTuple_GET_ITEM(tuple, 0), ptype = PyTuple_GET_ITEM
(tuple, 1);
if (!(PyLong_Check(ppts) && PyInt_Check(ptype)))
continue;
if (!(PyLong_Check(ppts) && PyInt_Check(ptype)))
continue;