<div class="gmail_quote">On Sun, Dec 11, 2011 at 12:10 PM, Aurélien Leblond <span dir="ltr"><<a href="mailto:blablack@gmail.com">blablack@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

Let's get carried away!<span class="HOEnZb"></span><br></blockquote><div><br><code><br>m_comboWaveForm = 0;<br>builder->get_widget("comboboxtextWaveForm", m_comboWaveForm);<br>slot<void> p_slotWaveForm = compose(bind<0> (mem_fun(*this, &Vco2GUI::write_control), p_waveForm), mem_fun(*m_comboWaveForm, &ComboBoxText::get_active_row_number));<br>
m_comboWaveForm->signal_changed().connect(p_slotWaveForm);<br></code><br><br>Here were getting a widget pointer, then your "compose"-ing a connection between its "get_active_row_number()" and your own "write_control()".<br>
<br>Essentially we need to write a seperate widget class, that will *not* be inserted in the glade file, instead I'll be inserting an instance of my Gtk::DrawingArea inherited class. I can then emit a signal pretty much as ComboBoxText does, I just need to find out what the actual arguments are that it sends.. (or that I should send).<br>
<br>Perhaps we can simplify the code by me sending 2 variables, a port number and a value, and then connecting *all* widgets to *one* function, which would then just have a "write_event()" function that accepts any port number, and any value... that's the way I've previously worked.<br>
<br>If you'd prefer leave things the way they are that's fine too :D<br><br>I'll try find some time during the week to throw together a simple widget, and we can see how to best incorperate the different signals into the GUI.<br>
<br>Cheers, -Harry<br></div></div>