2020-05-20 00:09:18 +02:00
|
|
|
#ifndef VIEW_USER_INFO_H
|
|
|
|
#define VIEW_USER_INFO_H
|
|
|
|
|
|
|
|
#include <gtkmm/box.h>
|
|
|
|
#include <gtkmm/treeview.h>
|
|
|
|
#include <gtkmm/liststore.h>
|
|
|
|
|
|
|
|
class view_user_info: public Gtk::Box
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
view_user_info();
|
|
|
|
Gtk::TreeView tree;
|
|
|
|
class ModelColumns : public Gtk::TreeModel::ColumnRecord
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ModelColumns()
|
|
|
|
{ add(r_user); add(r_admin); }
|
|
|
|
Gtk::TreeModelColumn<std::string> r_user;
|
|
|
|
Gtk::TreeModelColumn<bool> r_admin;
|
|
|
|
};
|
|
|
|
|
2020-05-23 19:59:55 +02:00
|
|
|
ModelColumns m_Columns;
|
2020-05-20 00:09:18 +02:00
|
|
|
Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
|
2020-05-23 19:59:55 +02:00
|
|
|
Gtk::Button b_add_user;
|
|
|
|
Gtk::Button b_dell_user;
|
|
|
|
|
|
|
|
void restart_table();
|
2020-05-20 00:09:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VIEW_USER_INFO_H
|