forwarding a signal



Hello

I created a widget like this:

class AxeWidget : public Gtk::VBox
{
  public:
    AxeWidget(hkl::Axe & axe);
    virtual ~AxeWidget(void);
    void update(bool const & connect);
  
  protected:

    virtual void on_spinbutton_value_changed();

    hkl::Axe & m_axe;

    Gtk::Label m_label;
    Gtk::SpinButton m_spinbutton;
    sigc::connection m_on_value_changed;
};

I would like for another class to connect to a signal AxeWidget.signal_value_changed() with is in fact the m_spinbutton.signal_value_changed().
How can I proceed ?

Have a nice day.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]