-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroupwindow.hpp
74 lines (53 loc) · 2.15 KB
/
groupwindow.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef GROUPWINDOW_HPP
#define GROUPWINDOW_HPP
#include <glibmm.h>
#include <gdkmm.h>
#include <gtkmm.h>
#include "model.hpp"
class GroupWindow : public Gtk::ScrolledWindow
{
public:
GroupWindow(Model& model_in);
virtual ~GroupWindow();
void fill_buffers(int pid);
private:
void add_entry_r( const char* name, const char* reltype, const int f_to, const int f_of );
void add_entry_m( const char* name, const int l_to );
class ModelColumns_r : public Gtk::TreeModel::ColumnRecord
{
public:
ModelColumns_r()
{ add(m_col_name); add(m_type); add(m_f_to); add(m_f_of); }
Gtk::TreeModelColumn<Glib::ustring> m_col_name;
Gtk::TreeModelColumn<Glib::ustring> m_type;
Gtk::TreeModelColumn<int> m_f_to;
Gtk::TreeModelColumn<int> m_f_of;
};
class ModelColumns_m : public Gtk::TreeModel::ColumnRecord
{
public:
ModelColumns_m()
{ add(m_col_name); add(m_l_to); }
Gtk::TreeModelColumn<Glib::ustring> m_col_name;
Gtk::TreeModelColumn<int> m_l_to;
};
// Private members
Gtk::Box m_VBox2;
Gtk::TextView m_TextView;
Glib::RefPtr<Gtk::TextBuffer> m_refTextBuffer1;
// Relationships
ModelColumns_r m_Columns_r;
Gtk::ScrolledWindow m_ScrolledWindow_r;
Gtk::TreeView m_TreeView_r;
Glib::RefPtr<Gtk::ListStore> m_refTreeModel_r;
Glib::RefPtr<Gtk::TreeSelection> m_refTreeSelection_r;
// Memberships
ModelColumns_m m_Columns_m;
Gtk::ScrolledWindow m_ScrolledWindow_m;
Gtk::TreeView m_TreeView_m;
Glib::RefPtr<Gtk::ListStore> m_refTreeModel_m;
Glib::RefPtr<Gtk::TreeSelection> m_refTreeSelection_m;
Model* model;
};
#include "groupwindow.impl.cpp"
#endif