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);
void Constructor::on_main_menu_quit()
{
+ delete this;
Gtk::Main::quit();
//hide();
}
<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>
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;
-// Splitter.h
#ifndef _SPLITTER_H_
#define _SPLITTER_H_
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);
{
}
-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)
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;
}
-
#ifndef _H_WORKPLACE_
#define _H_WORKPLACE_
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