#include "view_install.h" #include 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; }*/