]> git.llucax.com Git - z.facultad/75.42/plaqui.git/commitdiff
cambios menores, la aplicacion no modifico su funcionamiento
authorNicolás Dimov <ndimov@gmail.com>
Thu, 6 Nov 2003 19:38:52 +0000 (19:38 +0000)
committerNicolás Dimov <ndimov@gmail.com>
Thu, 6 Nov 2003 19:38:52 +0000 (19:38 +0000)
Constructor/constructor.cpp
Constructor/constructor.glade
Constructor/ico_canio.png
Constructor/ico_codo.png
Constructor/ico_y.png
Constructor/item.h
Constructor/splitter.h
Constructor/union.cpp
Constructor/workplace.cpp
Constructor/workplace.h

index e2fddbff09e18b607f3cf2ad745ce88dc4418279..af1263ba7b031b84b3f0f8215ab50e590c650d40 100644 (file)
@@ -7,10 +7,10 @@ Constructor::Constructor(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glad
        set_title("Constructor");
        
        
-       ico_canio = Gdk::Pixbuf::create_from_file("item_canio.png");
-       ico_y     = Gdk::Pixbuf::create_from_file("item_y.png");
-       ico_codo  = Gdk::Pixbuf::create_from_file("item_codo.png");
-       ico_tanque  = Gdk::Pixbuf::create_from_file("item_tanque.png");
+       ico_canio = Gdk::Pixbuf::create_from_file("canio_n.png");
+       ico_y     = Gdk::Pixbuf::create_from_file("y_n.png");
+       ico_codo  = Gdk::Pixbuf::create_from_file("codo_o.png");
+       ico_tanque  = Gdk::Pixbuf::create_from_file("tanque_e.png");
        
        refGlade->get_widget("btn_canio", btn_canio);
        refGlade->get_widget("btn_codo", btn_codo);
@@ -92,6 +92,7 @@ void Constructor::on_btn_tanque_drag_get(const Glib::RefPtr<Gdk::DragContext>& c
 
 void Constructor::on_main_menu_quit()
 {
+       delete this;
        Gtk::Main::quit();
        //hide();
 }
index 56a51496060b1662a23a5be3547b9eb366f700e0..d3ae137b5d1eeb52e3102cb401c3c4dd94aa2de9 100644 (file)
                      <property name="visible">True</property>
                      <property name="can_default">True</property>
                      <property name="can_focus">True</property>
-                     <property name="label" translatable="yes">button2</property>
+                     <property name="label" translatable="yes">AND</property>
                      <property name="use_underline">True</property>
                      <property name="relief">GTK_RELIEF_NORMAL</property>
                    </widget>
                      <property name="visible">True</property>
                      <property name="can_default">True</property>
                      <property name="can_focus">True</property>
-                     <property name="label" translatable="yes">button3</property>
+                     <property name="label" translatable="yes">OR</property>
                      <property name="use_underline">True</property>
                      <property name="relief">GTK_RELIEF_NORMAL</property>
                    </widget>
                      <property name="visible">True</property>
                      <property name="can_default">True</property>
                      <property name="can_focus">True</property>
-                     <property name="label" translatable="yes">button4</property>
+                     <property name="label" translatable="yes">NOT</property>
                      <property name="use_underline">True</property>
                      <property name="relief">GTK_RELIEF_NORMAL</property>
                    </widget>
index 002171afc626d4d9982acc4be0f6a589a08ae2ad..8bcc89d3369277c52d50599476e97ec152accf66 100644 (file)
Binary files a/Constructor/ico_canio.png and b/Constructor/ico_canio.png differ
index 1fe314e2ad67385aee4cdabb1cce4fa576d56f5a..7e40501131e02d743322277f088fc7e2461ac381 100644 (file)
Binary files a/Constructor/ico_codo.png and b/Constructor/ico_codo.png differ
index e05472949000fbe313062b42d24c1b7812ae6289..bcc082cfe64abf8cb71003abe562ea2a0b32ffa9 100644 (file)
Binary files a/Constructor/ico_y.png and b/Constructor/ico_y.png differ
index 1e188c15cce8df1bc13806b0fd8cbb5ab9a29dd2..4bc193fb197a119ab365133ab4161d97ce68ebb4 100644 (file)
@@ -24,11 +24,11 @@ public:
        virtual void on_menu_popup_eliminar();
        virtual void on_menu_popup_conectar();
        Glib::RefPtr<Gdk::Pixbuf> get_image() { return image; }
-       void set_position(int, int);
+       void set_position(int _x, int _y);
        int get_position_x();
        int get_position_y();
-       bool is_occupied_area(int, int);
-       void set_id(int);
+       bool is_occupied_area(int _a, int _b);
+       void set_id(int _id);
        int get_id();
        // habria que ocultarla..........................................
        WorkPlace *workplace;
index c814988de50df5010cdba9add861f74601596819..3c443a060882fa66948bcdd488617c887580a83e 100644 (file)
@@ -1,4 +1,3 @@
-// Splitter.h
 #ifndef _SPLITTER_H_
 #define _SPLITTER_H_
 
index f1bee2f521ec06555e6a635de0e8c981ff623d5b..d1395be5d20dc1f8c0d259f4614b0ce833f5a1f3 100644 (file)
@@ -18,7 +18,6 @@ Union::~Union()
 
 bool Union::on_button_press_event(GdkEventButton *event)
 {
-       int w,h;
        if ((event->type == GDK_BUTTON_PRESS) && (event->button == 2 )){
                image = null;   
                image->render_to_drawable(get_window(),get_style()->get_black_gc(),0,0,0,0,image->get_width(),image->get_height(),Gdk::RGB_DITHER_NONE,0,0);
index 11a98d1a3b54f5e15679871a0d4b33c3a2873f33..7c82cfe565c3ae43a2a86611468d7bc4eb90e889 100644 (file)
@@ -4,7 +4,11 @@ WorkPlace::WorkPlace( BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::
 {
 }
 
-bool WorkPlace::on_expose_event(GdkEventExpose *e)
+WorkPlace::~WorkPlace()
+{
+}
+
+bool WorkPlace::on_expose_event(GdkEventExpose *event)
 {
        int x, y;
        for(x=0; x<get_width(); x+=32) 
@@ -16,7 +20,7 @@ bool WorkPlace::on_expose_event(GdkEventExpose *e)
                        get_window()->draw_point (get_style()->get_black_gc(), x-1,y);
                }
        //TODO recorer la lista_lineas y dibujar todas          
-       get_window()->draw_line (get_style()->get_black_gc(), temp.x,temp.y,temp.w,temp.z);     
+       get_window()->draw_line (get_style()->get_black_gc(), temp.x,temp.y,temp.w,temp.z);
        return true;
 }
 
index 67ba45ec2fac202e42f50196d16700d612a4300d..005eb8d35c37f33643fb2b1eeb4be69bc75ba14a 100644 (file)
@@ -1,4 +1,3 @@
-
 #ifndef _H_WORKPLACE_
 #define _H_WORKPLACE_
 
@@ -17,14 +16,14 @@ class CItem;
 class WorkPlace:public Gtk::Fixed {
        public:
                WorkPlace(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> &refGlade);
-               virtual ~WorkPlace() {}
-               virtual bool on_expose_event(GdkEventExpose *);
+               virtual ~WorkPlace();
+               virtual bool on_expose_event(GdkEventExpose *event);
                virtual bool on_button_press_event(GdkEventButton *event);
                virtual bool on_button_release_event(GdkEventButton *event);
-               void delete_item(int);  
-               std::list<CItem *> *listaItems;
+               void delete_item(int _id);      
                std::list<t_line> lista_lineas;
                t_line temp;
+               std::list<CItem *> *listaItems;
 };
 
 #endif