X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/43fc1b3f57852f2af098fa7411e83220015aaa6f..2bfad376fbc5a10a08ee8f18267234126d34e0bc:/Client/src/item.cpp?ds=sidebyside diff --git a/Client/src/item.cpp b/Client/src/item.cpp index 418647e..4ce5846 100644 --- a/Client/src/item.cpp +++ b/Client/src/item.cpp @@ -1,10 +1,12 @@ #include "item.h" - +#include +#include ViewItem::ViewItem(Glib::ustring _name):Gtk::EventBox(),image() { name = _name; set_events(Gdk::BUTTON_PRESS_MASK); + actual_flow = -1; add(image); } @@ -35,3 +37,13 @@ Glib::ustring ViewItem::get_name() return name; } +std::string ViewItem::get_actual_flow() +{ + std::stringstream ss; + std::string s; + + ss << actual_flow; + ss >> s; + return s; +} +