]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/exclusa.cpp
* Se agrega carga de una planta desde un XML (Archivo->Abrir)
[z.facultad/75.42/plaqui.git] / Constructor / src / exclusa.cpp
index 69eef26148049849ae7dcbff1ccc774815b6886a..4d079948219ca7a4e843bc5d1ecfde3201988c5c 100644 (file)
@@ -1,13 +1,20 @@
 #include "exclusa.h"
 #include "exclusaptywnd.h"
 
 #include "exclusa.h"
 #include "exclusaptywnd.h"
 
-Exclusa::Exclusa()
+Exclusa::Exclusa(int orientacion)
 {
        imageN = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/exclusa_h.png");
        imageS = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/exclusa_s.png");
        null = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/null.png");
 {
        imageN = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/exclusa_h.png");
        imageS = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/exclusa_s.png");
        null = Gdk::Pixbuf::create_from_file(PACKAGE_DATA_DIR"/plaqui-constructor/pixmaps/null.png");
-       imgActual = 0;
-       image = imageN;
+       imgActual = orientacion;
+       switch (imgActual) {
+               case 1:
+                       image = imageS;
+                       break;
+               default: 
+                       imgActual = 0;
+                       image = imageN;                 
+       }
        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", "exclusa_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", "exclusa_pty_wnd");