]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blob - viewer/view_debug.h
Agrego vista de debug a la ventana principal.
[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::TreeView list;
21                 Glib::RefPtr<Gtk::ListStore> list_store;
22
23                 class ModelColumns : public Gtk::TreeModel::ColumnRecord {
24                         public:
25                                 ModelColumns(){ 
26                                         add (col_key_string);
27                                         add (col_key_verified);
28                                         add (col_key);
29                                 }
30                                 Gtk::TreeModelColumn<std::string> col_key_string;
31                                 Gtk::TreeModelColumn<bool> col_key_verified;
32                                 Gtk::TreeModelColumn<Clave *> col_key;
33                 };
34
35                 ModelColumns columns;
36 };
37
38 #endif
39