From 43aa212b9816129a8a2b08a8848bca407ef0129f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicol=C3=A1s=20Dimov?= Date: Thu, 6 Nov 2003 19:38:52 +0000 Subject: [PATCH] cambios menores, la aplicacion no modifico su funcionamiento --- Constructor/constructor.cpp | 9 +++++---- Constructor/constructor.glade | 6 +++--- Constructor/ico_canio.png | Bin 718 -> 1724 bytes Constructor/ico_codo.png | Bin 1743 -> 2784 bytes Constructor/ico_y.png | Bin 2126 -> 2758 bytes Constructor/item.h | 6 +++--- Constructor/splitter.h | 1 - Constructor/union.cpp | 1 - Constructor/workplace.cpp | 8 ++++++-- Constructor/workplace.h | 9 ++++----- 10 files changed, 21 insertions(+), 19 deletions(-) diff --git a/Constructor/constructor.cpp b/Constructor/constructor.cpp index e2fddbf..af1263b 100644 --- a/Constructor/constructor.cpp +++ b/Constructor/constructor.cpp @@ -7,10 +7,10 @@ Constructor::Constructor(BaseObjectType* cobject, const Glib::RefPtrget_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& c void Constructor::on_main_menu_quit() { + delete this; Gtk::Main::quit(); //hide(); } diff --git a/Constructor/constructor.glade b/Constructor/constructor.glade index 56a5149..d3ae137 100644 --- a/Constructor/constructor.glade +++ b/Constructor/constructor.glade @@ -434,7 +434,7 @@ True True True - button2 + AND True GTK_RELIEF_NORMAL @@ -445,7 +445,7 @@ True True True - button3 + OR True GTK_RELIEF_NORMAL @@ -456,7 +456,7 @@ True True True - button4 + NOT True GTK_RELIEF_NORMAL diff --git a/Constructor/ico_canio.png b/Constructor/ico_canio.png index 002171afc626d4d9982acc4be0f6a589a08ae2ad..8bcc89d3369277c52d50599476e97ec152accf66 100644 GIT binary patch delta 1657 zcmV-<28Q|01-uO*iBL{Q4GJ0x0000DNk~Le0000O0000t2nGNE02Ymk8<8RQd4(R$0@4NRn9*;O24tV|MHSYg=4+a1zF8}D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z8l`2Wxa_eAhzz(pFu+f*HNb-B=FH)ZpZt^|e`!OIQX+*w3566ADFsqUl$3mEf$0}^rnbW5yHibe=n=!-9d=y>?dfq+4;VxFL`Y~l?TVrMX`r_S0_ ze`n6yn%dL0u&^gjZ*jU0m883jW6Sp+a^Us$(4nI?E*qsM%b83fc!z_FZv@7#|I#FW z@+DkeKkHtcViM__tm3+^j{~p8>HZmL9xQM_@N;M9Ch*JK^R0-#$>njn|40Np(NH-F z%yQ#tKyB{=(W}c{>vV9}oP1bfyx$(We|SKBuw;bFNH-n@WB@cYT%hCHHKdTVx3|Z1 zGvZ47NOx`HV5Pv#3ABkf59W+BYSc)+z4WE%j-B?<+BN5;#;90h-e8Qv=xB5P_2tW{ ztE(H-P$B)1A>`&wL3$o0wqxg|;Hl`&S&A|Ed>%fxW9Ruie(}~@4^;u`r_&n0S!LwyNFaJr8@vB!_36^e0Diz(eQwFUJS}K&(80EIK l-J!Imv2oC{;NYjj{{hmB99S5TNQD3Z002ovPDHLkV1iWQ2sQu! diff --git a/Constructor/item.h b/Constructor/item.h index 1e188c1..4bc193f 100644 --- a/Constructor/item.h +++ b/Constructor/item.h @@ -24,11 +24,11 @@ public: virtual void on_menu_popup_eliminar(); virtual void on_menu_popup_conectar(); Glib::RefPtr 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; diff --git a/Constructor/splitter.h b/Constructor/splitter.h index c814988..3c443a0 100644 --- a/Constructor/splitter.h +++ b/Constructor/splitter.h @@ -1,4 +1,3 @@ -// Splitter.h #ifndef _SPLITTER_H_ #define _SPLITTER_H_ diff --git a/Constructor/union.cpp b/Constructor/union.cpp index f1bee2f..d1395be 100644 --- a/Constructor/union.cpp +++ b/Constructor/union.cpp @@ -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); diff --git a/Constructor/workplace.cpp b/Constructor/workplace.cpp index 11a98d1..7c82cfe 100644 --- a/Constructor/workplace.cpp +++ b/Constructor/workplace.cpp @@ -4,7 +4,11 @@ WorkPlace::WorkPlace( BaseObjectType* cobject, const Glib::RefPtrdraw_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; } diff --git a/Constructor/workplace.h b/Constructor/workplace.h index 67ba45e..005eb8d 100644 --- a/Constructor/workplace.h +++ b/Constructor/workplace.h @@ -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 &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 *listaItems; + void delete_item(int _id); std::list lista_lineas; t_line temp; + std::list *listaItems; }; #endif -- 2.43.0