#include <libglademm.h>
#include <gtkmm/entry.h>
-class Item:public Gtk::DrawingArea {
+class ViewItem:public Gtk::EventBox {
public:
- Item(Glib::ustring _name);
- virtual ~Item();
- virtual bool on_expose_event(GdkEventExpose* event);
+ ViewItem(Glib::ustring _name);
+ virtual ~ViewItem();
+// virtual bool on_expose_event(GdkEventExpose* event);
Glib::ustring get_name();
void set_position(int _x, int _y);
void set_name(Glib::ustring _name);
+ void set_actual_flow(float f) { actual_flow = f; }
+ std::string get_actual_flow();
protected:
Glib::ustring name;
- Glib::RefPtr<Gdk::Pixbuf> image;
+ Gtk::Image image;
int x, y;
+ float actual_flow;
};
#endif
+