refactor interface

This commit is contained in:
2020-05-26 18:09:22 +02:00
parent c4e2ec96dd
commit 90a76301f2
14 changed files with 42 additions and 63 deletions

View File

@@ -1,6 +1,7 @@
#include "view_info.h"
view_info::view_info()
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);
@@ -10,4 +11,11 @@ view_info::view_info()
tree.append_column("config", m_Columns.r_config);
tree.append_column("user", m_Columns.r_user);
this->add(this->tree);
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);
}