#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");
- 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");