[Rock-dev] Subclassing a C++ widget from ruby, and registering the result as a Vizkit widget

Alexander Duda Alexander.Duda at dfki.de
Mon Apr 11 17:26:58 CEST 2011


On Mon, 2011-04-11 at 14:20 +0200, Sylvain Joyeux wrote:

> My problem was to make the raster-map-to-imageview functionality 
> available to everyone. I came up with this solution:
> 
>  
> https://rock.opendfki.de/wiki/WikiStart/Ruby/VizkitExtendingCXXWidgetsInRuby
> 
> Comments are welcome
> 

Looks good. But if you only want to change parameters you can also use
an ui file for this.

raster_map = Vizkit.load('rastermap.ui')

If the parameter is not listed as property but reachable via slots we
can easily add them via.
Q_PROPERTY(...)

Alex

-- 
Dipl.-Ing. Alexander Duda 
Unterwasserrobotik

DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-456620
Fax:   +49 (0)421 178-454150
E-Mail: alexander.duda at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3



More information about the Rock-dev mailing list