From 9b6b96172d1d20d9daf3c11bc5f0222f487d53d7 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Mon, 27 Feb 2006 00:27:32 +0000 Subject: - add positioner plugin (just basic gui atm) - some changes to ConfigSlider (is now called "configSlider" and has a step width and max value now) - add BER/SNR/AGC display to the manual single transponder scan (just gui, no functionality yet) --- lib/gui/elistboxcontent.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/gui') diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 2b3c0fcd..f5ae2b38 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -476,12 +476,14 @@ void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style, } else if (!strcmp(atype, "slider")) { PyObject *pvalue = PyTuple_GET_ITEM(value, 1); + PyObject *psize = PyTuple_GET_ITEM(value, 2); /* convert value to Long. fallback to -1 on error. */ int value = (pvalue && PyInt_Check(pvalue)) ? PyInt_AsLong(pvalue) : -1; + int size = (pvalue && PyInt_Check(psize)) ? PyInt_AsLong(psize) : 100; /* calc. slider length */ - int width = item_right.width() * value / 100; + int width = item_right.width() * value / size; int height = item_right.height(); -- cgit v1.2.3