add suport to add users
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user