add suport to add users

This commit is contained in:
2020-05-23 19:59:55 +02:00
parent 021139d669
commit 03f2c31989
11 changed files with 133 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
#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);
@@ -8,4 +10,11 @@ view_user_info::view_user_info()
tree.append_column("user", m_Columns.r_user);
tree.append_column("config", m_Columns.r_admin);
this->add(this->tree);
this->add(this->b_add_user);
this->add(this->b_dell_user);
}
void view_user_info::restart_table(){
this->m_refTreeModel = Gtk::ListStore::create(this->m_Columns);
this->tree.set_model(this->m_refTreeModel);
}