]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Client/src/item_pump.cpp
Se mejora el manejo de errores. Ahora con el codigo de error va una descripcion
[z.facultad/75.42/plaqui.git] / Client / src / item_pump.cpp
1
2 #include "item_pump.h"
3
4 ViewPump::ViewPump(Glib::ustring _name, int orientacion):ViewItem(_name)
5 {
6         switch (orientacion) {
7                 case 0:
8                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/bomba_e.png");
9                         in_x = 96-16;
10                         in_y = 0;
11                         out_x = in_x;
12                         out_y = 32;
13                         offset_x = 0;
14                         offset_y = 0;
15                         item_offset_x = 0;
16                         item_offset_y = -15;
17                 break;
18                 case 1:
19                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/bomba_o.png");
20                         in_x = 16;
21                         in_y = 0;                       
22                         out_x = 16;
23                         out_y = 32;
24                         offset_x = 0;
25                         offset_y = 0;
26                         item_offset_x = 0;
27                         item_offset_y = -15;
28         }
29         image.show();
30         set_size_request();
31 }
32
33 ViewPump::~ViewPump()
34 {
35 }
36