2020-05-19 20:34:51 +02:00
|
|
|
#ifndef VIEW_INFO_H
|
|
|
|
#define VIEW_INFO_H
|
|
|
|
|
|
|
|
#include <gtkmm/box.h>
|
2020-05-26 18:09:22 +02:00
|
|
|
#include <gtkmm/buttonbox.h>
|
2020-05-19 20:34:51 +02:00
|
|
|
#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
|
|
|
|
*/
|
2020-05-19 20:34:51 +02:00
|
|
|
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;
|
2020-05-19 20:34:51 +02:00
|
|
|
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();
|
2020-05-19 20:34:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VIEW_INFO_H
|