fix client install comunication

This commit is contained in:
2020-05-16 20:52:10 +02:00
parent 7691c80fb4
commit 9eb45f329a
14 changed files with 82 additions and 66 deletions

35
view_install.cpp Normal file
View File

@@ -0,0 +1,35 @@
#include "view_install.h"
#include <iostream>
view_install::view_install():m_button("send"),m_VBox(Gtk::ORIENTATION_VERTICAL)
{
set_border_width(5);
add(m_VBox);
m_ScrolledWindow.add(m_TextView);
m_ScrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
m_VBox.pack_start(m_ScrolledWindow);
//Add buttons:
m_VBox.pack_start(m_ButtonBox, Gtk::PACK_SHRINK);
m_ButtonBox.pack_start(m_button, Gtk::PACK_SHRINK);
m_ButtonBox.set_border_width(5);
m_ButtonBox.set_spacing(5);
m_ButtonBox.set_layout(Gtk::BUTTONBOX_END);
// When the button receives the "clicked" signal, it will call the
// on_button_clicked() method defined below.
/*m_button.signal_clicked().connect(sigc::mem_fun(*this,
&vista::on_button_clicked));*/
m_refTextBuffer1 = Gtk::TextBuffer::create();
//m_refTextBuffer1->set_text("This is the text from TextBuffer #1.");
m_TextView.set_buffer(m_refTextBuffer1);
show_all_children();
}
/*void vista::on_button_clicked(){
std::string salida = m_refTextBuffer1->get_text();
std::cout << salida << std::endl;
}*/