]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Client/src/item_and.cpp
agrego mi partes sobre los problemas encontrados
[z.facultad/75.42/plaqui.git] / Client / src / item_and.cpp
1
2 #include "item_and.h"
3 #include <sstream>
4 #include <string>
5
6 ViewAnd::ViewAnd(Glib::ustring _name, int orientacion):ViewItem(_name)
7 {
8         switch (orientacion) {
9                 case 0:
10                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/and_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                 break;
18                 case 1:
19                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/and_s.png");
20                         in_x = 16;
21                         in_y = 0;
22                         out_x = 16;
23                         out_y = 32;
24                         offset_x = 0;
25                         offset_y = 15;
26                 break;
27                 case 2:
28                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/and_o.png");
29                         in_x = 32;
30                         in_y = 16;
31                         out_x = 0;
32                         out_y = 16;
33                         offset_x = -15;
34                         offset_y = 0;
35                 break;
36                 case 3:
37                         image.set(PACKAGE_DATA_DIR"/plaqui-client/pixmaps/and_n.png");
38                         in_x = 16;
39                         in_y = 32;
40                         out_x = 16;
41                         out_y = 0;
42                         offset_x = 0;
43                         offset_y = -15;
44         }
45         m_or = orientacion;
46         image.show();
47         set_size_request();
48 }
49
50 ViewAnd::~ViewAnd()
51 {
52 }
53
54 bool ViewAnd::on_image_expose_event(GdkEventExpose *e)
55 {
56 }
57