add user list
This commit is contained in:
26
view_user_info.h
Normal file
26
view_user_info.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
ModelColumns m_Columns;
|
||||
Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
|
||||
};
|
||||
|
||||
#endif // VIEW_USER_INFO_H
|
||||
Reference in New Issue
Block a user