]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/cisternptywnd.cpp
* Se agrega carga de colores desde el XML
[z.facultad/75.42/plaqui.git] / Constructor / src / cisternptywnd.cpp
index f12867c2549a71a53233810c4890a9d02a85b2c1..31a01529a421c03575c0d9de8269adc70f0cd145 100644 (file)
@@ -17,6 +17,15 @@ CisternPtyWnd::CisternPtyWnd(BaseObjectType* cobject, const Glib::RefPtr<Gnome::
        btn_select_color->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_btn_select_color_clicked));
        dlg_select_color_cancel->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_dlg_select_color_cancel_clicked));
        dlg_select_color_ok->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_dlg_select_color_ok_clicked));
        btn_select_color->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_btn_select_color_clicked));
        dlg_select_color_cancel->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_dlg_select_color_cancel_clicked));
        dlg_select_color_ok->signal_clicked().connect(SigC::slot(*this,&CisternPtyWnd::on_dlg_select_color_ok_clicked));
+       cistern = NULL;
+}
+
+void CisternPtyWnd::show()
+{
+       if (cistern != NULL) {
+               color_preview->modify_bg( Gtk::STATE_NORMAL , cistern->get_liquid_color() );
+       }
+       PropertyWnd::show();
 }
 
 CisternPtyWnd::~CisternPtyWnd()
 }
 
 CisternPtyWnd::~CisternPtyWnd()