#include "PlotCtrl.h" PlotStyleDlg::PlotStyleDlg(PlotCtrl& parent,int index):p(parent){ CtrlLayout(*this); for(int i=0; iGetType()); scol<<=Color(symb->GetColor()); frame<<=Color(symb->GetFrameColor()); sthick<<=symb->GetThickness()>0?symb->GetThickness():1; sizex<<=symb->GetSize().cx; sizey<<=symb->GetSize().cy; col<<=Color(sel.GetColor()); vis<<=sel.IsVisible(); dash<<=sel.GetDash(); thick<<=sel.GetThickness()>0?sel.GetThickness():1; } PlotStyleDlg::RenameDlg::RenameDlg(PlotCtrl& plot,int index):p(plot),idx(index){ CtrlLayout(*this); name<<=p.data[idx].GetTitle(); name.SetSelection(); name<<=THISBACK(Update); ok<<=THISBACK(Close); } void PlotStyleDlg::RenameDlg::Update(){ p.data[idx].SetTitle(~name); p.SetModify(); p.Refresh(); }