]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blob - viewer/view_debug.h
Agrego ventana de input.
[z.facultad/75.52/treemulator.git] / viewer / view_debug.h
1
2 #ifndef _VIEW_DEBUG_H_
3 #define _VIEW_DEBUG_H_
4
5 #include <gtkmm.h>
6 #include "btree.h"
7
8 class ViewDebug:public Gtk::VBox {
9         public:
10                 ViewDebug (BTree *);
11
12                 void AddKey (const Clave &k);
13         private:
14                 /* Slots */
15                 void on_test_clicked ();
16                 
17                 BTree *btree;
18
19                 Gtk::Button testkeys;
20                 Gtk::ScrolledWindow area;
21                 Gtk::TreeView list;
22                 Glib::RefPtr<Gtk::ListStore> list_store;
23
24                 class ModelColumns : public Gtk::TreeModel::ColumnRecord {
25                         public:
26                                 ModelColumns(){ 
27                                         add (col_key_string);
28                                         add (col_key_verified);
29                                         add (col_key);
30                                 }
31                                 Gtk::TreeModelColumn<std::string> col_key_string;
32                                 Gtk::TreeModelColumn<bool> col_key_verified;
33                                 Gtk::TreeModelColumn<Clave *> col_key;
34                 };
35
36                 ModelColumns columns;
37 };
38
39 #endif
40