ClienteTFG/view_info.h

41 lines
910 B
C
Raw Normal View History

#ifndef VIEW_INFO_H
#define VIEW_INFO_H
#include <gtkmm/box.h>
2020-05-26 18:09:22 +02:00
#include <gtkmm/buttonbox.h>
#include <gtkmm/treeview.h>
#include <gtkmm/liststore.h>
class view_info: public Gtk::Box
{
public:
2020-06-01 23:24:24 +02:00
/**
* @brief view_info
* View to show all package information
*/
view_info();
Gtk::TreeView tree;
class ModelColumns : public Gtk::TreeModel::ColumnRecord
{
public:
ModelColumns()
{ add(r_name); add(r_date); add(r_user); add(r_config); }
Gtk::TreeModelColumn<std::string> r_name;
Gtk::TreeModelColumn<std::string> r_date;
Gtk::TreeModelColumn<std::string> r_user;
Gtk::TreeModelColumn<bool> r_config;
};
2020-05-26 18:09:22 +02:00
ModelColumns m_Columns;
Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
2020-05-26 18:09:22 +02:00
Gtk::ButtonBox b_box;
Gtk::Button b_remove;
2020-06-01 23:24:24 +02:00
/**
* @brief restart_table
* Rescan all packages information
*/
2020-05-26 18:09:22 +02:00
void restart_table();
};
#endif // VIEW_INFO_H