#include "view_user_info.h" view_user_info::view_user_info() :Gtk::Box(Gtk::ORIENTATION_VERTICAL), b_add_user("add user"), b_dell_user("delete user") { this->m_refTreeModel = Gtk::ListStore::create(this->m_Columns); this->tree.set_model(this->m_refTreeModel); tree.append_column("user", m_Columns.r_user); tree.append_column("config", m_Columns.r_admin); this->add(this->tree); this->b_box.add(this->b_add_user); this->b_box.add(this->b_dell_user); this->add(this->b_box); } void view_user_info::restart_table(){ this->m_refTreeModel = Gtk::ListStore::create(this->m_Columns); this->tree.set_model(this->m_refTreeModel); }