[Kstars-devel] Problem with dynamic GUI creation

Jasem Mutlaq mutlaqja at ikarustech.com
Sat Dec 10 11:29:19 CET 2005


>The INDI Control Panel is not automatically updated, i.e.
>repainted and stays blank when I delete all its GUI widgets
>and then create new set of them. User have to either close/open
>this dialog window or switch to another TAB panel and go back
>to see new widgets, i.e. properties offered by the driver.
>So, it seems to me that QT's widget update call is missed
>somewhere. Although
>this is not so horrible problem, using the dynamic creation
>of properties is nice feature of INDI. So, first I offer only
>DEVICE PORT and CONNECTION properties to detect the SBIG camera,
>and after that I delete these properties via IDDelete function
>and create new set of properties which depends on the detected
>camera.

Yes, I can confirm the auto-update issues. I'll try to fix these issues for KDE 4.

>2) Symptom:
>    Bad alignment including incomplete visibility of INumber
>    property if added to the existing set of properties in KStars'
>    INDI Control Panel.
>
>    a)
>    When I delete _all_ the properties from my Sbig Tab panel
>    in INDI Control Panel via calling IDDelete function call
>    and then create _new_ set of properties via IDDef calls,
>    _all_ of them are properly aligned and fully visible. That's ok.
>
>    b)
>    When I delete only part of GUI widgets and then add new set
>    to them _except_ the INumber property, all properties are
>    properly displayed on the GUI Tab panel. That's also ok.
>
>    c)
>    When doing the same as in previous step b) but I add new
>    INumber property via IDDef call, this property is only partially
>    visible. For example, the diode and property's label are shifted
>    by one position to the right and the rest R/W part is not visible
>    al all. I did a lot of trials moving this property to different
>.    place (up and down), but the result is always the same.

Yes, I saw your screenshot. I'll experiment here to find the source of the alignment issue. Thank you for your report!

Btw, did you get the grab function to work for the SBIG driver?

Cheers,
Jasem





More information about the Kstars-devel mailing list