FOX/ObjCryst++  2022
wxLSQ.cpp
1 /* ObjCryst++ Object-Oriented Crystallographic Library
2  (c) 2008 Vincent Favre-Nicolin vincefn@users.sourceforge.net
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18 /*
19 * code file for the wxLSQ class
20 *
21 */
22 
23 #include "ObjCryst/wxCryst/wxLSQ.h"
24 
25 namespace ObjCryst
26 {
27 
28 BEGIN_EVENT_TABLE(WXLSQ, wxWindow)
29 END_EVENT_TABLE()
30 
31 WXLSQ::WXLSQ(wxWindow *parent, LSQNumObj*p):
32 WXCrystObj(parent, wxVERTICAL, false),mpLSQ(p)
33 {
34  // Add all individual refinable parameters
35  for(unsigned int i=0;i<mpLSQ->GetCompiledRefinedObj().GetNbPar();++i)
36  {
37  if(mpLSQ->GetCompiledRefinedObj().GetPar(i).IsUsed())
38  {
39  WXCrystObjBasic* pRefPar=mpLSQ->GetCompiledRefinedObj().GetPar(i).WXCreate(this);
40  mpSizer->Add(pRefPar, 1, wxALIGN_RIGHT);
41  mList.Add(pRefPar);
42  }
43  }
44  this->CrystUpdate(true,true);
45 }
46 
47 WXLSQ::~WXLSQ(){mpLSQ->WXNotifyDelete();}
48 
49 bool WXLSQ::OnChangeName(const int id)
50 {
51  return false;
52 }
53 
54 } //namespace
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++.
Definition: doc-main.h:25
virtual bool OnChangeName(const int id)
When a WXFieldName has been changed by the user, it is handled here.
Definition: wxLSQ.cpp:49