ClienteTFG/view_info.cpp

22 lines
652 B
C++
Raw Normal View History

#include "view_info.h"
2020-05-26 18:09:22 +02:00
view_info::view_info():Gtk::Box(Gtk::ORIENTATION_VERTICAL),
b_remove("remove")
{
this->m_refTreeModel = Gtk::ListStore::create(this->m_Columns);
this->tree.set_model(this->m_refTreeModel);
tree.append_column("name", m_Columns.r_name);
tree.append_column("date", m_Columns.r_date);
tree.append_column("config", m_Columns.r_config);
tree.append_column("user", m_Columns.r_user);
this->add(this->tree);
2020-05-26 18:09:22 +02:00
this->b_box.add(this->b_remove);
this->add(this->b_box);
}
void view_info::restart_table(){
this->m_refTreeModel = Gtk::ListStore::create(this->m_Columns);
this->tree.set_model(this->m_refTreeModel);
}