btn_select_color->signal_clicked().connect(SigC::slot(*this,&PumpPtyWnd::on_btn_select_color_clicked));
dlg_select_color_cancel->signal_clicked().connect(SigC::slot(*this,&PumpPtyWnd::on_dlg_select_color_cancel_clicked));
dlg_select_color_ok->signal_clicked().connect(SigC::slot(*this,&PumpPtyWnd::on_dlg_select_color_ok_clicked));
+ pump = NULL;
}
PumpPtyWnd::~PumpPtyWnd()
{
}
+void PumpPtyWnd::show()
+{
+ if (pump != NULL) {
+ color_preview->modify_bg( Gtk::STATE_NORMAL , pump->get_liquid_color() );
+ }
+ PropertyWnd::show();
+}
+
void PumpPtyWnd::on_btn_accept_clicked()
{
PumpPtyWnd::on_btn_apply_clicked();