X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/46de693afcd74154ed8b4f6bf6e81221e18a0f97..f5a1e732bf3907cabd004932aba3256b31d9d282:/tests/GUI/dndwindow.h diff --git a/tests/GUI/dndwindow.h b/tests/GUI/dndwindow.h index 2f0d09c..5f55b10 100644 --- a/tests/GUI/dndwindow.h +++ b/tests/GUI/dndwindow.h @@ -25,6 +25,8 @@ #include #include #include "item.h" +#include "workplace.h" +#include class DnDWindow : public Gtk::Window { @@ -39,7 +41,21 @@ protected: virtual void on_y_drag_data_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time); virtual void on_codo_drag_data_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time); virtual void on_label_drop_drag_data_received(const Glib::RefPtr& context, int x, int y, GtkSelectionData* selection_data, guint info, guint time); + // Señales para cambiar el icono cuando empieza el drag. + virtual void on_canio_drag_begin(const Glib::RefPtr& context); + virtual void on_y_drag_begin(const Glib::RefPtr& context); + virtual void on_codo_drag_begin(const Glib::RefPtr& context); + virtual void on_item_drag_begin(const Glib::RefPtr& context, CItem *); + virtual void on_item_drag_data_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time); + + /* Lista de tipos de datos para el drag&drop */ + std::list listTargets; + + // Iconos para Drag&Drop desde la barra + Glib::RefPtr ico_canio, ico_y, ico_codo; + // Icono para Drag&Drop de items + Glib::RefPtr ico_last; void on_item_button_down(); //Member widgets: @@ -48,8 +64,9 @@ protected: Gtk::Button m_Button_Canio; Gtk::Button m_Button_Y; Gtk::Button m_Button_Codo; - Gtk::Fixed m_WorkPlace; + WorkPlace m_WorkPlace; std::list listaItems; + Gtk::ScrolledWindow scroll; }; #endif // GTKMM_EXAMPLE_DNDWINDOW_H