2 #include "dlg_property.h"
4 DlgProperty::DlgProperty(BaseObjectType *co, const Glib::RefPtr<Gnome::Glade::Xml> &rg):Gtk::Dialog(co),refXml(rg)
7 refXml->get_widget("btn_prop_cancel", cancel);
8 refXml->get_widget("btn_prop_ok", ok);
10 cancel->signal_clicked().connect( SigC::slot(*this, &DlgProperty::on_cancel_clicked) );
13 DlgProperty::~DlgProperty()
17 void DlgProperty::on_cancel_clicked()
22 Gtk::Button *DlgProperty::get_ok_button()
27 int DlgProperty::get_velocity()
29 Gtk::SpinButton *vel = 0;
30 refXml->get_widget("spn_velocity", vel);
31 return vel->get_value_as_int();