FOX/ObjCryst++  1.10.X (development)
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),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,0);
41  mList.Add(pRefPar);
42  }
43  }
44  this->BottomLayout(0);
45  this->CrystUpdate(true,true);
46 }
47 
48 WXLSQ::~WXLSQ(){mpLSQ->WXNotifyDelete();}
49 
50 bool WXLSQ::OnChangeName(const int id)
51 {
52  return false;
53 }
54 
55 } //namespace
56 
virtual bool OnChangeName(const int id)
When a WXFieldName has been changed by the user, it is handled here.
Definition: wxLSQ.cpp:50
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++.
Definition: Atom.cpp:47