]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Client/src/item_or.cpp
* Se modifica el modelo para que el tanque mando en el XML el estado logico de sus...
[z.facultad/75.42/plaqui.git] / Client / src / item_or.cpp
1
2 #include "item_or.h"
3 #include <sstream>
4 #include <string>
5
6 ViewOr::ViewOr(Glib::ustring _name, int orientacion):ViewItem(_name)
7 {
8         switch (orientacion) {
9                 case 0:
10                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/or_e.png");
11                         in_x = 0;
12                         in_y = 16;
13                         out_x = 32;
14                         out_y = 16;
15                         offset_x = 15;
16                         offset_y = 0;
17                         item_offset_x = 0;
18                         item_offset_y = 0;
19                 break;
20                 case 1:
21                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/or_s.png");
22                         in_x = 16;
23                         in_y = 0;
24                         out_x = 16;
25                         out_y = 32;
26                         offset_x = 0;
27                         offset_y = 15;
28                         item_offset_x = 0;
29                         item_offset_y = 0;
30                 break;
31                 case 2:
32                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/or_o.png");
33                         in_x = 32;
34                         in_y = 16;
35                         out_x = 0;
36                         out_y = 16;
37                         offset_x = -15;
38                         offset_y = 0;
39                         item_offset_x = 0;
40                         item_offset_y = 0;
41                 break;
42                 case 3:
43                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/or_n.png");
44                         in_x = 16;
45                         in_y = 32;
46                         out_x = 16;
47                         out_y = 0;
48                         offset_x = 0;
49                         offset_y = -15;
50                         item_offset_x = 0;
51                         item_offset_y = 0;
52         }
53         m_or = orientacion;
54         image.show();
55         set_size_request();
56 }
57
58 ViewOr::~ViewOr()
59 {
60 }
61
62 bool ViewOr::on_image_expose_event(GdkEventExpose *e)
63 {
64 }
65