#include "item.h"
-#include <iostream>
+#include "workplace.h"
CItem::CItem(const char *filename):Gtk::DrawingArea()
{
CItem::CItem()
{
+ Glib::RefPtr<Gnome::Glade::Xml> ref;
+ ref = Gnome::Glade::Xml::create("constructor.glade", "item_pty_wnd");
+ ref->get_widget_derived("item_pty_wnd",property_wnd);
+ caudal_max = 0.0;
+ property_wnd->item = this;
menu_image_propiedades.set(Gtk::Stock::PREFERENCES, Gtk::ICON_SIZE_MENU);
menu_image_delete.set(Gtk::Stock::CANCEL, Gtk::ICON_SIZE_MENU);
menu_image_rotar.set(Gtk::Stock::REFRESH, Gtk::ICON_SIZE_MENU);
{
return ID;
}
+
+void CItem::set_caudal(double _caudal)
+{
+ caudal_max = _caudal;
+}
+
+double CItem::get_caudal()
+{
+ return caudal_max;
+}
+
+void CItem::set_name(Glib::ustring _name)
+{
+ name = _name;
+}
+
+Glib::ustring CItem::get_name()
+{
+ return name;
+}