2020-05-16 20:52:10 +02:00
|
|
|
#include "view_install.h"
|
2020-05-08 12:42:02 +02:00
|
|
|
#include <iostream>
|
|
|
|
|
2020-05-19 20:34:51 +02:00
|
|
|
view_install::view_install():m_button("build"),m_VBox(Gtk::ORIENTATION_VERTICAL)
|
2020-05-08 12:42:02 +02:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|