KaliVeda
1.12/06
Heavy-Ion Analysis Toolkit
|
Dialog box for setting system parameters associated to runs.
Definition at line 35 of file KVDBSystemDialog.h.
Private Member Functions | |
Bool_t | NeedSave () const |
void | RemoveAll (TGComboBox *) |
void | RemoveAll (TGListBox *) |
void | SetNeedSave (Bool_t k=kTRUE) |
Private Attributes | |
TGCheckButton * | fCheckButton1376 |
check button to define projectile More... | |
TGComboBox * | fComboBox1476 |
combo box displaying list of systems for current dataset More... | |
TGComboBox * | fComboBox1515 |
layers in current target More... | |
TGComboBox * | fComboBox1542 |
list of materials for creating target layers More... | |
TGTextButton * | fCreateSystem |
button to create new system More... | |
KVString | fCurrentSystemsFile |
name (including timestamp) of currently used Systems.dat More... | |
TGLabel * | fLabel1530 |
units for thickness More... | |
KVMaterial * | fLayer |
current target layer More... | |
TGTransientFrame * | fMainFrame1475 |
the main window More... | |
unique_ptr< TObjArray > | fMaterialsList |
list of all available materials More... | |
Bool_t | fNeedSave |
TGNumberEntry * | fNumberEntry1493 |
Z of projectile. More... | |
TGNumberEntry * | fNumberEntry1499 |
A of projectile. More... | |
TGNumberEntry * | fNumberEntry1509 |
E/A of projectile. More... | |
TGNumberEntry * | fNumberEntry1526 |
thickness of current layer More... | |
TGNumberEntry * | fNumberEntry1532 |
target angle to beam More... | |
TGNumberEntry * | fNumberEntry1537 |
atomic mass of current layer More... | |
KVNumberList | fRuns |
runs selected by user More... | |
TGTextButton * | fSaveButton |
save changes More... | |
TGTextButton * | fSetRuns |
associate runs with selected system More... | |
KVDBSystem * | fSystem |
currently selected system in combo box fComboBox1476 More... | |
KVTarget * | fTarget |
current target More... | |
TGTextButton * | fTextButton1553 |
add new layer to target More... | |
TGTextButton * | fTextButton1554 |
remove current layer from target More... | |
TGTextEntry * | fTextEntry1490 |
symbol of projectile More... | |
KVDatedFileManager * | fUndo |
allows to undo changes to Systems.dat More... | |
#include <KVDBSystemDialog.h>
KVDBSystemDialog::KVDBSystemDialog | ( | const TGWindow * | p, |
const TGWindow * | main, | ||
KVDBSystem * | init_sys, | ||
const KVNumberList & | runs, | ||
UInt_t | w = 1 , |
||
UInt_t | h = 1 |
||
) |
Default constructor init_sys = initial system corresponding to chosen runs
Definition at line 114 of file KVDBSystemDialog.cpp.
|
virtual |
Destructor.
Definition at line 142 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::AddNewTargetLayer | ( | ) |
Called when "Add" button is clicked. Add a new target layer. Creates target if none exists. The currently selected material in the list will be used The new layer will be added after any existing layers in the target. get selected material
Definition at line 657 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::CloseWindow | ( | ) |
Definition at line 166 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::CreateMainWindow | ( | const TGWindow * | p, |
const TGWindow * | main, | ||
UInt_t | w, | ||
UInt_t | h | ||
) |
Creates main window and displays it.
Definition at line 801 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::CreateNewSystem | ( | ) |
Use current values of all fields in dialog box to create a new KVDBSystem We open a dialog to ask for the title of the new system, and for the target Z and A if a target is defined.
Definition at line 208 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::DeleteSystem | ( | ) |
Delete the currently selected system.
Definition at line 178 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::DoClose | ( | ) |
Definition at line 156 of file KVDBSystemDialog.cpp.
Called when "Projectile" check box is checked (on=kTRUE) or unchecked (on=kFALSE)
Definition at line 410 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::FillSystemList | ( | ) |
Fill combo box with list of all systems for the current dataset clear list of systems
Definition at line 344 of file KVDBSystemDialog.cpp.
|
inline |
Definition at line 128 of file KVDBSystemDialog.h.
|
inline |
Definition at line 132 of file KVDBSystemDialog.h.
|
inlineprivate |
Definition at line 79 of file KVDBSystemDialog.h.
Called when projectile A is changed Changes A of projectile for system
Definition at line 578 of file KVDBSystemDialog.cpp.
Called when projectile E is changed Changes E of projectile for system
Definition at line 594 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::ProjectileSymbolChanged | ( | ) |
Called when projectile symbol is changed and the user presses "Return" Changes Z and A of projectile for system
Definition at line 526 of file KVDBSystemDialog.cpp.
Called when projectile Z is changed Changes Z and symbol of projectile for system
Definition at line 555 of file KVDBSystemDialog.cpp.
|
private |
void KVDBSystemDialog::RemoveTargetLayer | ( | ) |
Removes currently selected layer from target. In fact we create a new target which does not have the offending layer
Definition at line 695 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::SaveSystems | ( | ) |
Write new Systems.dat file. The list of file versions for the 'Undo' is updated
Definition at line 281 of file KVDBSystemDialog.cpp.
Called when a new system is selected in fComboBox1476.
Definition at line 376 of file KVDBSystemDialog.cpp.
Definition at line 74 of file KVDBSystemDialog.h.
void KVDBSystemDialog::SetRuns | ( | ) |
Called when "SetRuns" button is clicked. The selected system is associated with the runlist passed to the constructor. The Systems.dat file is updated Any previous association run<->system is removed KVNumberList tmp; fSystem->GetRunList(tmp); tmp.Add(fRuns); fSystem->SetRuns(tmp);
Definition at line 739 of file KVDBSystemDialog.cpp.
Called when target angle is changed.
Definition at line 639 of file KVDBSystemDialog.cpp.
Called when target layer A is changed.
Definition at line 625 of file KVDBSystemDialog.cpp.
Called when target layer "thickness" is changed Note that this is in fact the area density in mg/cm**2
Definition at line 610 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::Undo | ( | ) |
Revert unsaved changes to system (if fNeedSave=kTRUE), or revert to previously saved version of Systems.dat file to remove unsaved changes, we simply rebuild the database from the existing files if there are no unsaved changes, we replace the current Systems.dat with the previous version
Definition at line 302 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::UpdateProjectileProperties | ( | ) |
Update displayed projectile properties Called by UpdateSystemProperties().
Definition at line 425 of file KVDBSystemDialog.cpp.
|
inline |
Signal emitted to tell KVINDRARunSheetGUI to update the runlist.
Definition at line 123 of file KVDBSystemDialog.h.
void KVDBSystemDialog::UpdateSystemProperties | ( | ) |
Update displayed system properties, e.g. when a new system is selected in fComboBox1476.
Definition at line 398 of file KVDBSystemDialog.cpp.
Update displayed target layer properties Called when a new layer is selected in fComboBox1515
Definition at line 497 of file KVDBSystemDialog.cpp.
void KVDBSystemDialog::UpdateTargetProperties | ( | ) |
Update displayed target properties Called by UpdateSystemProperties(). clear list of target layers
Definition at line 462 of file KVDBSystemDialog.cpp.
|
private |
check button to define projectile
Definition at line 43 of file KVDBSystemDialog.h.
|
private |
combo box displaying list of systems for current dataset
Definition at line 41 of file KVDBSystemDialog.h.
|
private |
layers in current target
Definition at line 50 of file KVDBSystemDialog.h.
|
private |
list of materials for creating target layers
Definition at line 54 of file KVDBSystemDialog.h.
|
private |
button to create new system
Definition at line 57 of file KVDBSystemDialog.h.
|
private |
name (including timestamp) of currently used Systems.dat
Definition at line 68 of file KVDBSystemDialog.h.
|
private |
units for thickness
Definition at line 52 of file KVDBSystemDialog.h.
|
private |
current target layer
Definition at line 62 of file KVDBSystemDialog.h.
|
private |
the main window
Definition at line 39 of file KVDBSystemDialog.h.
|
private |
list of all available materials
Definition at line 65 of file KVDBSystemDialog.h.
|
private |
Definition at line 73 of file KVDBSystemDialog.h.
|
private |
Z of projectile.
Definition at line 45 of file KVDBSystemDialog.h.
|
private |
A of projectile.
Definition at line 46 of file KVDBSystemDialog.h.
|
private |
E/A of projectile.
Definition at line 47 of file KVDBSystemDialog.h.
|
private |
thickness of current layer
Definition at line 51 of file KVDBSystemDialog.h.
|
private |
target angle to beam
Definition at line 49 of file KVDBSystemDialog.h.
|
private |
atomic mass of current layer
Definition at line 53 of file KVDBSystemDialog.h.
|
private |
runs selected by user
Definition at line 63 of file KVDBSystemDialog.h.
|
private |
save changes
Definition at line 58 of file KVDBSystemDialog.h.
|
private |
associate runs with selected system
Definition at line 59 of file KVDBSystemDialog.h.
|
private |
currently selected system in combo box fComboBox1476
Definition at line 60 of file KVDBSystemDialog.h.
|
private |
current target
Definition at line 61 of file KVDBSystemDialog.h.
|
private |
add new layer to target
Definition at line 55 of file KVDBSystemDialog.h.
|
private |
remove current layer from target
Definition at line 56 of file KVDBSystemDialog.h.
|
private |
symbol of projectile
Definition at line 44 of file KVDBSystemDialog.h.
|
private |
allows to undo changes to Systems.dat
Definition at line 67 of file KVDBSystemDialog.h.