]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/cistern.cpp
* Se agrega carga de una planta desde un XML (Archivo->Abrir)
[z.facultad/75.42/plaqui.git] / Constructor / src / cistern.cpp
index 6cb0323f2eaa8d38b9a501f15d5b828cf0742e64..a03d3bed1e381929d007d9745003bdf559aebf22 100644 (file)
@@ -1,13 +1,20 @@
 #include "cistern.h"
 #include "cisternptywnd.h"
 
 #include "cistern.h"
 #include "cisternptywnd.h"
 
-Cistern::Cistern()
+Cistern::Cistern(int orientacion)
 {
        imageE = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/tanque_e.png");
        imageO = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/tanque_o.png");
        null = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/tanque_null.png");
 {
        imageE = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/tanque_e.png");
        imageO = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/tanque_o.png");
        null = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/tanque_null.png");
-       imgActual = 0;
-       image = imageE;
+       imgActual = orientacion;
+       switch (imgActual) {
+               case 1:
+                       image = imageO;
+                       break;
+               default: 
+                       imgActual = 0;
+                       image = imageE;                 
+       }
        set_size_request(image->get_width(), image->get_height());
 
        Glib::RefPtr<Gnome::Glade::Xml> ref = Gnome::Glade::Xml::create(PACKAGE_DATA_DIR"/plaqui-constructor/dialogs/constructor.glade", "cistern_pty_wnd");
        set_size_request(image->get_width(), image->get_height());
 
        Glib::RefPtr<Gnome::Glade::Xml> ref = Gnome::Glade::Xml::create(PACKAGE_DATA_DIR"/plaqui-constructor/dialogs/constructor.glade", "cistern_pty_wnd");