X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/33a5f978014e65a402a3d376c7e47bd8ee8ab8ab..HEAD:/Constructor/include/constructor.h diff --git a/Constructor/include/constructor.h b/Constructor/include/constructor.h index 55f1ffd..bf6bc4e 100644 --- a/Constructor/include/constructor.h +++ b/Constructor/include/constructor.h @@ -78,12 +78,13 @@ class Constructor : public Gtk::Window { int id; /// Defino los elementos de la ventana. Gtk::Button *btn_canio, *btn_codo, *btn_y, *btn_tanque, *btn_bomba, *btn_exclusa, *btn_drain, *btn_file_ok, *btn_file_cancel, *btn_check, *btn_dlg_close, - *btn_and, *btn_or, *btn_not, *btn_open_ok, *btn_open_cancel, *quick_btn_clear, *quick_btn_save, *quick_btn_open, *quick_btn_new, *btn_find; + *btn_and, *btn_or, *btn_not, *btn_open_ok, *btn_open_cancel, *quick_btn_clear, *quick_btn_save, *quick_btn_open, *quick_btn_new, *btn_find, + *btn_dlg_quit_ok, *btn_dlg_quit_cancel; Gtk::ImageMenuItem *main_menu_quit,*main_menu_new, *edit_menu_del, *edit_menu_delete_all, *main_menu_save, *main_menu_open; Gtk::CheckButton *chk_btn_logica; Gtk::FileSelection *file_selection, *file_open_selection; Gtk::Combo *combo_entry; - Gtk::Dialog *dlg_connect, *dlg_about; + Gtk::Dialog *dlg_connect, *dlg_about, *dlg_quit; Gtk::Label *dlg_label; Gtk::Statusbar *status_bar; Glib::RefPtr ico_canio, ico_y, ico_codo, ico_tanque, ico_bomba, ico_exclusa, ico_drain, ico_and, ico_or, ico_not; @@ -94,7 +95,8 @@ class Constructor : public Gtk::Window { WorkPlace *workplace; bool logica; bool can_drop(CItem *, int , int); - + // Sobrecarga del evento cerrar + virtual bool on_delete_event(GdkEventAny *e); // /señales de control para los elementos de la ventana. virtual void on_btn_canio_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time); virtual void on_btn_y_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time); @@ -122,6 +124,8 @@ class Constructor : public Gtk::Window { virtual void on_quick_btn_save_clicked(); virtual void on_quick_btn_new_clicked(); virtual void on_btn_find_clicked(); + virtual void on_btn_dlg_quit_ok_clicked(); + virtual void on_btn_dlg_quit_cancel_clicked(); ///Verifica la conexion de todos los items iterando en la listaItems. bool check_connection(Glib::ustring& name);