5 #include <gtkmm/drawingarea.h>
8 #include <libglademm.h>
9 #include <gtkmm/entry.h>
11 class ViewItem:public Gtk::EventBox {
13 ViewItem(Glib::ustring _name);
16 virtual bool on_image_expose_event(GdkEventExpose *e);
17 virtual void on_realize();
18 inline Glib::ustring get_name() { return name; }
19 void set_position(int _x, int _y);
20 void set_name(Glib::ustring _name);
21 inline bool get_open() { return open; }
22 inline void set_actual_flow(float f) { actual_flow = f; }
23 inline void set_open(bool b) { open = b; }
24 inline void set_extra(float f) { extra = f; }
25 inline void set_color(const Gdk::Color &c) { color = c; }
26 inline Gdk::Color get_color() { return color; }
28 std::string get_actual_flow();
29 virtual std::string get_cap_flow() { return "Flujo Actual :"; }
30 virtual std::string get_cap_extra() { return ""; }
31 virtual std::string get_extra() { return ""; }
36 Glib::RefPtr<Gdk::GC> gc;
38 float actual_flow, extra;