Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

MainFrame Class Reference

#include <gui.h>

List of all members.

Public Methods

 MainFrame (const TGWindow *, UInt_t, UInt_t)
virtual ~MainFrame ()
void CloseWindow ()
void HandleMenu (Int_t)
void DoButtons (Int_t wid=-1, Int_t id=-1)
void DoTempText (const char *)
void SetInfoAtoms (Int_t)
void SetInfoDefects (Int_t)
void SetInfoEnergy (Double_t)
void SetInfoMoves (Int_t)
void SetInfoImages (Int_t)
void SetInfoStatus ()
Bool_t IsInfoEnabled ()
LayerGetLayer ()

Private Methods

void FillParamCont (TGCompositeFrame *)
void ClearEnFuncCombo (TGComboBox *)
void FillEnFuncCombo (TGComboBox *)

Private Attributes

TList * pCleanup
TList * pParamElems
TList * pParamVals
TGVSplitter * pSplitter
TGCompositeFrame * pMainCont
TGCompositeFrame * pControlFrame
TGCompositeFrame * pSplitFrame
TGCompositeFrame * pParamCont
TGCompositeFrame * pSimToolFr
TGCompositeFrame * pSimBtFr
TGCompositeFrame * pSimTmpFr
TGCompositeFrame * pSimLaunchBtFr
TGCompositeFrame * pInfoFr
TGCompositeFrame * pFr
TGDoubleVSlider * pSimTmpSlider
TGNumEntrypSimTmpEntry
TGTextBuffer * pSimTmpEBuf
TGLabel * pFuncL
TGLabel * pLabel
TGLabel * pNumAtomL
TGLabel * pNumDefL
TGLabel * pEnergyL
TGLabel * pMovesL
TGLabel * pImgL
TGLabel * pStatusL
TGComboBox * pFuncCombo
ScrollViewpParamSV
TGGroupFrame * pParamGrFr
TGGroupFrame * pSimGrFr
TGToggleButtonpSimStartBt
TGToggleButtonpSimStopBt
TGTextButton * pSimInsBt
TGTextButton * pSimRemBt
TGTextButton * pSimTempRangeBt
TGTextButton * pSimRemAllBt
TGTextButton * pSimUpdBt
TGTextButton * pParamSetBt
TGTextButton * pSimEnBt
TGTextButton * pSimOptsBt
TGHorizontal3DLine * pSimSep
TGLayoutHints * pL
TGLayoutHints * pL2
TGMenuBar * pMenuBar
TGPopupMenu * pMenuProg
TGPopupMenu * pMenuSim
TGPopupMenu * pMenuOpts
TGPopupMenu * pMenuView
TGPopupMenu * pMenuPlot
TGLayoutHints * pMenuBarLayout
TGLayoutHints * pMenuBarItemLayout
time_t simStartTime
TRootEmbeddedCanvas * pRECanvas
TEFormulapEFormula
TEF1pEPlot1
TEF2pEPlot2
LayerpLayer
ConfigurationpConfig
TempControlpTempControl

Friends

class TempControl


Constructor & Destructor Documentation

MainFrame::MainFrame const TGWindow *   ,
UInt_t   ,
UInt_t   
 

Definition at line 72 of file gui.cpp.

References Configuration::AutoSave(), FillEnFuncCombo(), FillParamCont(), Configuration::GetTemp(), Configuration::GetTempMax(), Configuration::GetTempMin(), M_OPTS_AUTOSAVE, M_OPTS_FORMULA, M_OPTS_SIM, M_OPTS_UPDATECANV, M_PLOT_FUNC, M_PROG_CHLAT, M_PROG_QUIT, M_PROG_SAVE, M_SIM_ENERGY, M_SIM_INS, M_SIM_REM, M_SIM_REM_ALL, M_SIM_STARTSTOP, M_SIM_TMP_RANGE, M_SIM_UPDCANV, M_VIEW_CONTROL, M_VIEW_INFO, M_VIEW_TEMP, MF_CHOOSE_FUNC, MF_SET_PARAM, MF_SIM_OPTS, MF_SIM_START, MF_SIM_STOP, MF_SIM_TMP_ENTRY, MF_SIM_TMP_SLIDER, pCleanup, pConfig, pControlFrame, pEFormula, pEnergyL, pEPlot1, pEPlot2, pFr, pFuncCombo, pFuncL, pImgL, pInfoFr, pL, pL2, pLabel, pLayer, pMainCont, pMenuBar, pMenuBarItemLayout, pMenuBarLayout, pMenuOpts, pMenuPlot, pMenuProg, pMenuSim, pMenuView, pMovesL, pNumAtomL, pNumDefL, pParamCont, pParamElems, pParamGrFr, pParamSetBt, pParamSV, pParamVals, pRECanvas, pSimBtFr, pSimEnBt, pSimGrFr, pSimInsBt, pSimLaunchBtFr, pSimOptsBt, pSimRemAllBt, pSimRemBt, pSimSep, pSimStartBt, pSimStopBt, pSimTempRangeBt, pSimTmpEBuf, pSimTmpEntry, pSimTmpFr, pSimTmpSlider, pSimToolFr, pSimUpdBt, pSplitFrame, pSplitter, pStatusL, pTempControl, Layer::SetFormula(), TGToggleButton::SetState(), and Configuration::UpdateCanvas().

MainFrame::~MainFrame   [virtual]
 

Definition at line 346 of file gui.cpp.

References pCleanup, pConfig, pControlFrame, pEFormula, pEnergyL, pEPlot1, pEPlot2, pFuncCombo, pFuncL, pImgL, pInfoFr, pLayer, pMainCont, pMenuBar, pMenuBarItemLayout, pMenuBarLayout, pMenuOpts, pMenuPlot, pMenuProg, pMenuView, pMovesL, pNumAtomL, pNumDefL, pParamCont, pParamElems, pParamGrFr, pParamSetBt, pParamSV, pParamVals, pRECanvas, pSimBtFr, pSimEnBt, pSimGrFr, pSimInsBt, pSimLaunchBtFr, pSimOptsBt, pSimRemAllBt, pSimRemBt, pSimSep, pSimStartBt, pSimStopBt, pSimTempRangeBt, pSimTmpEBuf, pSimTmpEntry, pSimTmpFr, pSimTmpSlider, pSimToolFr, pSimUpdBt, pSplitter, and pStatusL.


Member Function Documentation

void MainFrame::ClearEnFuncCombo TGComboBox *    [private]
 

Definition at line 813 of file gui.cpp.

References Function::bDeleted, Configuration::GetFunction(), and pConfig.

Referenced by HandleMenu().

void MainFrame::CloseWindow  
 

Definition at line 382 of file gui.cpp.

References pConfig, and Configuration::SaveTempToFile().

void MainFrame::DoButtons Int_t    wid = -1,
Int_t    id = -1
 

Definition at line 556 of file gui.cpp.

References Configuration::GetFunction(), Layer::GetLattice(), Configuration::GetParam(), HandleMenu(), Function::id, M_OPTS_SIM, M_SIM_ENERGY, M_SIM_INS, M_SIM_REM, M_SIM_REM_ALL, M_SIM_TMP_RANGE, M_SIM_UPDCANV, MF_CHOOSE_FUNC, MF_SET_PARAM, MF_SIM_OPTS, MF_SIM_START, MF_SIM_STOP, MF_SIM_TMP_SLIDER, Layer::MonteCarloStart(), Layer::MonteCarloStop(), pConfig, pEFormula, pEPlot1, pEPlot2, pFuncCombo, pLayer, pParamVals, pSimStartBt, pSimStopBt, pSimTmpEBuf, pSimTmpEntry, pSimTmpSlider, TEF2::SetParNames(), TEF1::SetParNames(), TEFormula::SetParNames(), TGToggleButton::SetState(), Configuration::SetTemp(), TEF2::SetVariables(), TEF1::SetVariables(), TEFormula::SetVariables(), simStartTime, and Param::value.

void MainFrame::DoTempText const char *   
 

Definition at line 646 of file gui.cpp.

References pSimTmpEBuf, and pSimTmpSlider.

void MainFrame::FillEnFuncCombo TGComboBox *    [private]
 

Definition at line 826 of file gui.cpp.

References Function::bDeleted, Function::curName, Configuration::GetFunction(), Function::parsedExpr, ConfigDialog::ParseExpression(), pConfig, pEFormula, and TEFormula::SetVariables().

Referenced by HandleMenu(), and MainFrame().

void MainFrame::FillParamCont TGCompositeFrame *    [private]
 

Definition at line 744 of file gui.cpp.

References Configuration::GetParam(), pCleanup, pConfig, pL2, pLabel, pParamElems, and pParamVals.

Referenced by HandleMenu(), and MainFrame().

Layer* MainFrame::GetLayer   [inline]
 

Definition at line 136 of file gui.h.

References pLayer.

Referenced by Layer::MonteCarlo().

void MainFrame::HandleMenu Int_t   
 

Definition at line 388 of file gui.cpp.

References Configuration::AutoSave(), ClearEnFuncCombo(), Layer::CompEnergy(), FillEnFuncCombo(), FillParamCont(), Lattice::GetCellSize(), Configuration::GetInsNum(), Configuration::GetInteractionLimit(), Layer::GetLattice(), Lattice::GetNUniqueAtoms(), Lattice::GetNUniqueDefects(), Configuration::GetRemNum(), M_OPTS_AUTOSAVE, M_OPTS_FORMULA, M_OPTS_SIM, M_OPTS_UPDATECANV, M_PLOT_FUNC, M_PROG_CHLAT, M_PROG_QUIT, M_PROG_SAVE, M_SIM_ENERGY, M_SIM_INS, M_SIM_REM, M_SIM_REM_ALL, M_SIM_STARTSTOP, M_SIM_TMP_RANGE, M_SIM_UPDCANV, M_VIEW_CONTROL, M_VIEW_INFO, M_VIEW_TEMP, pConfig, pControlFrame, pEFormula, pEPlot1, pEPlot2, pFuncCombo, pInfoFr, pLayer, pMainCont, pMenuOpts, pMenuView, pParamCont, pSimStartBt, pSimStopBt, pSimTmpSlider, pSplitFrame, pTempControl, Lattice::RemoveAllDefects(), Lattice::RndInsertDefect(), Lattice::RndRemoveDefect(), Layer::RunSimulation(), Lattice::SetInfo(), SetInfoAtoms(), SetInfoDefects(), SetInfoEnergy(), TGToggleButton::SetState(), TempControl, and Configuration::UpdateCanvas().

Referenced by DoButtons().

Bool_t MainFrame::IsInfoEnabled   [inline]
 

Definition at line 134 of file gui.h.

References M_VIEW_INFO, and pMenuView.

Referenced by Layer::MonteCarlo().

void MainFrame::SetInfoAtoms Int_t   
 

Definition at line 652 of file gui.cpp.

References pNumAtomL.

Referenced by HandleMenu().

void MainFrame::SetInfoDefects Int_t   
 

Definition at line 663 of file gui.cpp.

References pNumDefL.

Referenced by HandleMenu(), Atom::InsertDefect(), and Atom::RemoveDefect().

void MainFrame::SetInfoEnergy Double_t   
 

Definition at line 674 of file gui.cpp.

References pEnergyL.

Referenced by HandleMenu(), and Layer::MonteCarlo().

void MainFrame::SetInfoImages Int_t   
 

Definition at line 694 of file gui.cpp.

References pImgL.

Referenced by Layer::MonteCarlo().

void MainFrame::SetInfoMoves Int_t   
 

Definition at line 684 of file gui.cpp.

References pMovesL.

Referenced by Layer::MonteCarlo().

void MainFrame::SetInfoStatus  
 

Definition at line 704 of file gui.cpp.

References pLayer, pStatusL, Layer::RunSimulation(), and simStartTime.

Referenced by Layer::MonteCarlo().


Friends And Related Function Documentation

friend class TempControl [friend]
 

Definition at line 117 of file gui.h.

Referenced by HandleMenu().


Member Data Documentation

TList* MainFrame::pCleanup [private]
 

Definition at line 143 of file gui.h.

Referenced by FillParamCont(), MainFrame(), and ~MainFrame().

Configuration* MainFrame::pConfig [private]
 

Definition at line 178 of file gui.h.

Referenced by ClearEnFuncCombo(), CloseWindow(), DoButtons(), FillEnFuncCombo(), FillParamCont(), HandleMenu(), MainFrame(), and ~MainFrame().

TGCompositeFrame * MainFrame::pControlFrame [private]
 

Definition at line 146 of file gui.h.

Referenced by HandleMenu(), MainFrame(), and ~MainFrame().

TEFormula* MainFrame::pEFormula [private]
 

Definition at line 174 of file gui.h.

Referenced by DoButtons(), FillEnFuncCombo(), HandleMenu(), MainFrame(), and ~MainFrame().

TGLabel * MainFrame::pEnergyL [private]
 

Definition at line 155 of file gui.h.

Referenced by MainFrame(), SetInfoEnergy(), and ~MainFrame().

TEF1* MainFrame::pEPlot1 [private]
 

Definition at line 175 of file gui.h.

Referenced by DoButtons(), HandleMenu(), MainFrame(), and ~MainFrame().

TEF2* MainFrame::pEPlot2 [private]
 

Definition at line 176 of file gui.h.

Referenced by DoButtons(), HandleMenu(), MainFrame(), and ~MainFrame().

TGCompositeFrame * MainFrame::pFr [private]
 

Definition at line 150 of file gui.h.

Referenced by MainFrame().

TGComboBox* MainFrame::pFuncCombo [private]
 

Definition at line 157 of file gui.h.

Referenced by DoButtons(), HandleMenu(), MainFrame(), and ~MainFrame().

TGLabel* MainFrame::pFuncL [private]
 

Definition at line 154 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGLabel * MainFrame::pImgL [private]
 

Definition at line 156 of file gui.h.

Referenced by MainFrame(), SetInfoImages(), and ~MainFrame().

TGCompositeFrame* MainFrame::pInfoFr [private]
 

Definition at line 150 of file gui.h.

Referenced by HandleMenu(), MainFrame(), and ~MainFrame().

TGLayoutHints* MainFrame::pL [private]
 

Definition at line 165 of file gui.h.

Referenced by MainFrame().

TGLayoutHints * MainFrame::pL2 [private]
 

Definition at line 165 of file gui.h.

Referenced by FillParamCont(), and MainFrame().

TGLabel * MainFrame::pLabel [private]
 

Definition at line 154 of file gui.h.

Referenced by FillParamCont(), and MainFrame().

Layer* MainFrame::pLayer [private]
 

Definition at line 177 of file gui.h.

Referenced by DoButtons(), GetLayer(), HandleMenu(), MainFrame(), SetInfoStatus(), and ~MainFrame().

TGCompositeFrame* MainFrame::pMainCont [private]
 

Definition at line 146 of file gui.h.

Referenced by HandleMenu(), MainFrame(), and ~MainFrame().

TGMenuBar* MainFrame::pMenuBar [private]
 

Definition at line 166 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGLayoutHints* MainFrame::pMenuBarItemLayout [private]
 

Definition at line 170 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGLayoutHints* MainFrame::pMenuBarLayout [private]
 

Definition at line 169 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGPopupMenu * MainFrame::pMenuOpts [private]
 

Definition at line 167 of file gui.h.

Referenced by HandleMenu(), MainFrame(), and ~MainFrame().

TGPopupMenu * MainFrame::pMenuPlot [private]
 

Definition at line 168 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGPopupMenu* MainFrame::pMenuProg [private]
 

Definition at line 167 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGPopupMenu * MainFrame::pMenuSim [private]
 

Definition at line 167 of file gui.h.

Referenced by MainFrame().

TGPopupMenu* MainFrame::pMenuView [private]
 

Definition at line 168 of file gui.h.

Referenced by HandleMenu(), IsInfoEnabled(), MainFrame(), ~MainFrame(), and TempControl::~TempControl().

TGLabel* MainFrame::pMovesL [private]
 

Definition at line 156 of file gui.h.

Referenced by MainFrame(), SetInfoMoves(), and ~MainFrame().

TGLabel* MainFrame::pNumAtomL [private]
 

Definition at line 155 of file gui.h.

Referenced by MainFrame(), SetInfoAtoms(), and ~MainFrame().

TGLabel * MainFrame::pNumDefL [private]
 

Definition at line 155 of file gui.h.

Referenced by MainFrame(), SetInfoDefects(), and ~MainFrame().

TGCompositeFrame * MainFrame::pParamCont [private]
 

Definition at line 147 of file gui.h.

Referenced by HandleMenu(), MainFrame(), and ~MainFrame().

TList* MainFrame::pParamElems [private]
 

Definition at line 144 of file gui.h.

Referenced by FillParamCont(), MainFrame(), and ~MainFrame().

TGGroupFrame* MainFrame::pParamGrFr [private]
 

Definition at line 159 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGTextButton* MainFrame::pParamSetBt [private]
 

Definition at line 163 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

ScrollView* MainFrame::pParamSV [private]
 

Definition at line 158 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TList * MainFrame::pParamVals [private]
 

Definition at line 144 of file gui.h.

Referenced by DoButtons(), FillParamCont(), MainFrame(), and ~MainFrame().

TRootEmbeddedCanvas* MainFrame::pRECanvas [private]
 

Definition at line 173 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGCompositeFrame * MainFrame::pSimBtFr [private]
 

Definition at line 148 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGTextButton * MainFrame::pSimEnBt [private]
 

Definition at line 163 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGGroupFrame * MainFrame::pSimGrFr [private]
 

Definition at line 159 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGTextButton* MainFrame::pSimInsBt [private]
 

Definition at line 161 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGCompositeFrame * MainFrame::pSimLaunchBtFr [private]
 

Definition at line 149 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGTextButton * MainFrame::pSimOptsBt [private]
 

Definition at line 163 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGTextButton* MainFrame::pSimRemAllBt [private]
 

Definition at line 162 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGTextButton * MainFrame::pSimRemBt [private]
 

Definition at line 161 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGHorizontal3DLine* MainFrame::pSimSep [private]
 

Definition at line 164 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGToggleButton* MainFrame::pSimStartBt [private]
 

Definition at line 160 of file gui.h.

Referenced by DoButtons(), HandleMenu(), MainFrame(), and ~MainFrame().

TGToggleButton * MainFrame::pSimStopBt [private]
 

Definition at line 160 of file gui.h.

Referenced by DoButtons(), HandleMenu(), MainFrame(), and ~MainFrame().

TGTextButton * MainFrame::pSimTempRangeBt [private]
 

Definition at line 161 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGTextBuffer* MainFrame::pSimTmpEBuf [private]
 

Definition at line 153 of file gui.h.

Referenced by DoButtons(), DoTempText(), MainFrame(), and ~MainFrame().

TGNumEntry* MainFrame::pSimTmpEntry [private]
 

Definition at line 152 of file gui.h.

Referenced by DoButtons(), MainFrame(), and ~MainFrame().

TGCompositeFrame* MainFrame::pSimTmpFr [private]
 

Definition at line 149 of file gui.h.

Referenced by MainFrame(), TempControl::TempControl(), ~MainFrame(), and TempControl::~TempControl().

TGDoubleVSlider* MainFrame::pSimTmpSlider [private]
 

Definition at line 151 of file gui.h.

Referenced by DoButtons(), DoTempText(), HandleMenu(), MainFrame(), ~MainFrame(), and TempControl::~TempControl().

TGCompositeFrame* MainFrame::pSimToolFr [private]
 

Definition at line 148 of file gui.h.

Referenced by MainFrame(), TempControl::TempControl(), ~MainFrame(), and TempControl::~TempControl().

TGTextButton * MainFrame::pSimUpdBt [private]
 

Definition at line 162 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGCompositeFrame* MainFrame::pSplitFrame [private]
 

Definition at line 147 of file gui.h.

Referenced by HandleMenu(), and MainFrame().

TGVSplitter* MainFrame::pSplitter [private]
 

Definition at line 145 of file gui.h.

Referenced by MainFrame(), and ~MainFrame().

TGLabel * MainFrame::pStatusL [private]
 

Definition at line 156 of file gui.h.

Referenced by MainFrame(), SetInfoStatus(), and ~MainFrame().

TempControl* MainFrame::pTempControl [private]
 

Definition at line 179 of file gui.h.

Referenced by HandleMenu(), and MainFrame().

time_t MainFrame::simStartTime [private]
 

Definition at line 171 of file gui.h.

Referenced by DoButtons(), and SetInfoStatus().


The documentation for this class was generated from the following files:
Generated on Sun Jun 16 20:08:07 2002 for XEIS by doxygen1.2.16