2 #include "dlg_conectar.h"
4 DlgConectar::DlgConectar(BaseObjectType *co, const Glib::RefPtr<Gnome::Glade::Xml> &rg):Gtk::Dialog(co),refXml(rg)
7 refXml->get_widget("btn_cancel", cancel);
8 refXml->get_widget("btn_ok", ok);
10 cancel->signal_clicked().connect( SigC::slot(*this, &DlgConectar::on_cancel_clicked) );
13 DlgConectar::~DlgConectar()
17 void DlgConectar::on_cancel_clicked()
22 Gtk::Button *DlgConectar::get_ok_button()
27 Glib::ustring DlgConectar::get_server_name()
29 Gtk::Entry *server_name = 0;
30 refXml->get_widget("server_name", server_name);
31 return server_name->get_text();
34 int DlgConectar::get_server_port()
36 Gtk::SpinButton *server_port = 0;
37 refXml->get_widget("server_port", server_port);
38 return server_port->get_value_as_int();