Re: custom widget, gtkmm with glade support and custom properties?
PyZahl <[email protected]> Mon, 31 Dec 2012 10:24:47 -0800 (PST)
| Newsgroups | gmane.comp.gnome.glade.user |
|---|---|
| Message-ID | <[email protected]> |
I still look at this py code and can't find what I need. The very only "additional custom" properties I find in the xml file are defined are for class "HAL_LED" are "led_blink_rate" and two more. But I can not find or identify any related support code how to access this from code, nor it's showing in glade any where as far as I can see. The so called calculator is also not really a custom widget, but mostly only a assembly as it looks to me. any hints are still very welcome Percy John Thornton-3 wrote: > > That is the python way to create custom glade widgets for LinuxCNC, some > parts should be relevant enough to give you some hints. > > John > > On Thu, 2012-12-20 at 08:29 -0800, PyZahl wrote: >> Hmm, thanks for the reply. But I am not sure how this python code is >> related >> to a custom glade widget with custom glade configurable properties. >> Ideally >> a gtkmm (C++ bindings) sample would be very appreciated or at least a >> kind >> of description how things go together. >> >> Percy >> >> >> >> John Thornton-3 wrote: >> > >> > Might be some hints here even though it is for python... >> > >> > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?GladeVCP_Custom_Widgets >> > >> > John >> > >> > On Mon, 2012-12-17 at 08:25 -0800, PyZahl wrote: >> >> Hello, >> >> >> >> I have a question about creating custom widgets using gtkmm with glade >> >> support and additional properties hooked into them, >> >> >> >> I tried without success to find the clues I need in the documentations >> >> but >> >> do not get the picture how to use it in the right context. >> >> >> >> As of now I succeeded to create a custom derived widget and minimal >> >> support >> >> code creating a .so lib and a glade catalog with properties I need and >> >> it's >> >> all loading and showing fine in glade. Can set/change properties but >> it's >> >> missing the "do_child_set/get..." methods (get a warning) like this: >> >> >> >> (glade:3214): GLib-GObject-WARNING **: g_object_set_property: object >> >> class >> >> `gtkmm__CustomObject_customwidget' has no property named >> >> `frobnicated-size' >> >> >> >> >> >> I need to know how the prototypes or definitions have to be defined in >> >> C++. >> >> >> >> However, I am lost with the next step to access/support the properties >> >> within my derived widget in C++. using gtkmm. See below what I have so >> >> far. >> >> >> >> See here for my testing code (I tried unsuccessfully to add the code >> of >> >> interest here): >> >> >> https://sourceforge.net/p/gxsm/gxsm3/ci/71f858cad5fa74656f69c985fa16d8b3938be859/tree/app/ >> >> >> >> I appreciate any hints or a basic example how to get going from here. >> >> thanks >> >> -Percy >> > >> > >> > _______________________________________________ >> > Glade-users maillist - [email protected] >> > http://lists.ximian.com/mailman/listinfo/glade-users >> > >> > >> > > > _______________________________________________ > Glade-users maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/glade-users > > -- View this message in context: http://old.nabble.com/custom-widget%2C-gtkmm-with-glade-support-and-custom-properties--tp34806518p34847485.html Sent from the Gnome - Glade - User mailing list archive at Nabble.com. _______________________________________________ Glade-users maillist - [email protected] http://lists.ximian.com/mailman/listinfo/glade-users