ClienteTFG/view_user_info.cpp

22 lines
651 B
C++
Raw Normal View History

2020-05-20 00:09:18 +02:00
#include "view_user_info.h"
view_user_info::view_user_info()
2020-05-23 19:59:55 +02:00
:Gtk::Box(Gtk::ORIENTATION_VERTICAL),
b_add_user("add user"), b_dell_user("delete user")
2020-05-20 00:09:18 +02:00
{
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);
2020-05-26 18:09:22 +02:00
this->b_box.add(this->b_add_user);
this->b_box.add(this->b_dell_user);
this->add(this->b_box);
2020-05-23 19:59:55 +02:00
}
void view_user_info::restart_table(){
this->m_refTreeModel = Gtk::ListStore::create(this->m_Columns);
this->tree.set_model(this->m_refTreeModel);
2020-05-20 00:09:18 +02:00
}