]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Client/src/dlg_conectar.cpp
Se agrega docs de instalaciĆ³n.
[z.facultad/75.42/plaqui.git] / Client / src / dlg_conectar.cpp
1
2 #include "dlg_conectar.h"
3
4 DlgConectar::DlgConectar(BaseObjectType *co, const Glib::RefPtr<Gnome::Glade::Xml> &rg):Gtk::Dialog(co),refXml(rg)
5 {
6         ok = cancel = 0;
7         refXml->get_widget("btn_cancel", cancel);
8         refXml->get_widget("btn_ok", ok);
9
10         cancel->signal_clicked().connect( SigC::slot(*this, &DlgConectar::on_cancel_clicked) );
11 }
12
13 DlgConectar::~DlgConectar()
14 {
15 }
16
17 void DlgConectar::on_cancel_clicked()
18 {
19         hide();
20 }
21
22 Gtk::Button *DlgConectar::get_ok_button()
23 {
24         return ok;
25 }
26
27 Glib::ustring DlgConectar::get_server_name()
28 {
29         Gtk::Entry *server_name = 0;
30         refXml->get_widget("server_name", server_name);
31         return server_name->get_text();
32 }
33
34 int DlgConectar::get_server_port()
35 {
36         Gtk::SpinButton *server_port = 0;
37         refXml->get_widget("server_port", server_port);
38         return server_port->get_value_as_int();
39 }
40