]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blob - viewer/view_properties.h
Muestro los datos borrados y que son recuperables.
[z.facultad/75.52/treemulator.git] / viewer / view_properties.h
1
2 #ifndef _VIEW_PROPERTIES_H_
3 #define _VIEW_PROPERTIES_H_
4
5 #include <gtkmm.h>
6 #include "btree.h"
7 #include "btree_data.h"
8 #include "list_dialog.h"
9 #include "view_btree.h"
10
11 class ViewProperties:public Gtk::Frame {
12         public:
13                 ViewProperties ();
14                 
15                 void SetTree (Glib::RefPtr<ViewBTree> tree);
16
17                 void ShowItem (BTreeData *, BTreeNodeHeader &header);
18         private:
19                 Glib::RefPtr<ViewBTree> tree;
20                 void ViewProperties::ViewDeletedNodes (void);
21                 void ViewProperties::ViewDeletedDatas (void);
22                 std::string ToRaw (BTreeData *);
23
24                 Gtk::Table table;
25                 Gtk::HBox hbox;
26                 Gtk::TextView raw_view;
27                 Gtk::VButtonBox bbox;
28                 Gtk::Button view_deleted_nodes;
29                 Gtk::Button view_deleted_data;
30         
31                 /* Node Info */
32                 Gtk::Label node_num;
33                 Gtk::Label node_level;
34                 Gtk::Label node_items;
35                 Gtk::Label node_freespace;
36                 Gtk::Label lnode_num;
37                 Gtk::Label lnode_level;
38                 Gtk::Label lnode_items;
39                 Gtk::Label lnode_freespace;
40                 
41                 /* BTreeData Into */
42                 Gtk::Label data_type;
43                 Gtk::Label data_key;
44                 Gtk::Label data_child;
45                 Gtk::Label ldata_type;
46                 Gtk::Label ldata_key;
47                 Gtk::Label ldata_child;
48 };
49
50 #endif
51