Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

PANELC1S.H

Go to the documentation of this file.
00001 //: panelc1s.h
00009 #if defined (__GNUG__)
00010     #pragma interface "panelc1s.h"
00011 #endif
00012 
00013 #ifndef xppanel_h
00014 #define xppanel_h
00015 
00016 #include <wx/wxprec.h>
00017 
00018 #ifdef __BORLANDC__
00019     #pragma hdrstop
00020 #endif
00021 
00022 #ifndef WX_PRECOMP
00023     #include <wx/wx.h>
00024 #endif
00025 
00026 #include    "xrxps.h"
00027 
00029 
00031 class xpBackgroundPanel : public wxScrolledWindow
00032 {   public:
00034     xpBackgroundPanel(wxWindow* parent, wxWindowID id,
00035         const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
00036         long style = wxTAB_TRAVERSAL, const wxString& name = "panel");
00037 
00038 DECLARE_EVENT_TABLE()
00039 };// of xpBackgroundPanel
00040 
00042 class xpPeakPanel : public wxScrolledWindow
00043 {   public:
00044     xpPeakBase *peak;           
00045     xpSpectrumBase *spectrum;   
00046     wxTextCtrl
00047             *PeakE,             
00048             *Sensitivity,       
00049             *Concentration,     
00050             *ConcentrationUncertainty,     
00051             *MeasTime,          
00052             *PeakCounts,        
00053             *BgndCounts,        
00054             *PeakRate,          
00055             *BgndRate,          
00056             *PeakXE,            
00057             *RelPrec,           
00058             *PostPeakSlope,     
00059             *ShirleyTailHeight, 
00060             *AngleRatio;        
00061     wxStaticText
00062             *TextPeakE,         
00063             *TextSensitivity,   
00064             *TextConcentration,   
00065             *TextConcentrationUncertainty,   
00066             *TextMeasTime,      
00067             *TextPeakCount,     
00068             *TextBgndCount,     
00069             *TextPeakRate,      
00070             *TextBgndRate,      
00071             *TextPeakXE,        
00072             *TextRelPrec,       
00073             *TextPPS,           
00074             *TextSTH,           
00075             *TextAngleRatio;    
00076     wxRadioBox  *PeakETypeBoxBE,    
00077             *PeakXEBox,         
00078             *PeakC1sPeakBox;    
00079     wxString label;             
00080 
00082     xpPeakPanel(wxWindow* parent, wxWindowID id,
00083         const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
00084         long style = wxTAB_TRAVERSAL, const wxString& name = "panel");
00086     void Init(xpPeakBase *p);
00088 
00089     wxString GetLabel(void) const
00090         {   return label;}
00092 
00093     void SetLabel(wxString S) 
00094         {   label = S;}
00096     xpPeakBase* GetPeak(void)
00097         {   return peak;}
00099     void UpdateTextControls(void );
00101     void OnEnergy( wxCommandEvent &event );
00103     void OnSensitivity( wxCommandEvent &event );
00105     void OnConcentration( wxCommandEvent &event );
00107     void OnConcentrationUncertainty( wxCommandEvent &event );
00109     void OnMeasTime( wxCommandEvent &event );
00111     void OnPeakCounts( wxCommandEvent &event );
00113     void OnBgndCounts( wxCommandEvent &event );
00115     void OnPeakRate( wxCommandEvent &event );
00117     void OnBgndRate( wxCommandEvent &event );
00119     void OnRelPrec( wxCommandEvent &event );
00121     void OnXEnergy( wxCommandEvent &event );
00123     void OnEnergyTypeBE( wxCommandEvent  &event );
00125     void OnEnergyTypeXE( wxCommandEvent  &event );
00127     void OnC1sPeak( wxCommandEvent  &event );
00129     void OnPostPeakSlope( wxCommandEvent &event );
00131     void OnShirleyTailHeight( wxCommandEvent &event );
00133     void OnAngleRatio( wxCommandEvent &event );
00134 
00135 DECLARE_EVENT_TABLE()
00136 };// of xpPeakPanel
00137 
00139 class xpSpectrumPanel : public wxScrolledWindow
00140 {   public:
00141     xpSpectrumBase *spectrum;   
00142     wxTextCtrl  *SpectrumLowE,  
00143             *SpectrumHighE, 
00144             *SpectrumXE,    
00145             *SpectrumES,    
00146             *SpectrumChE;   
00147     wxStaticText    *TextLowE,  
00148             *TextHighE, 
00149             *TextXE,    
00150             *TextES,    
00151             *TextChE;   
00152     wxRadioBox  *SpectrumETypeBoxBE, 
00153             *SpectrumXEBox;     
00154     float   MinE,       
00155         MaxE,       
00156         ESep;       
00157 
00159     xpSpectrumPanel(wxWindow* parent, wxWindowID id,
00160         const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
00161         long style = wxTAB_TRAVERSAL, const wxString& name = "panel");
00162     // Sets up the spectrum panel with spectrum-related info
00163     void Init(xpSpectrumBase *s);
00165     xpSpectrumBase* GetSpectrum(void)
00166         {   return spectrum;}
00168     void OnMinEnergy( wxCommandEvent &event );
00170     void OnMaxEnergy( wxCommandEvent &event );
00172     void OnXEnergy( wxCommandEvent &event );
00174     void OnEnergyTypeBE( wxCommandEvent  &event );
00176     void OnEnergyTypeXE( wxCommandEvent  &event );
00178     void OnEnergySeparation( wxCommandEvent &event );
00180     void OnChargingEnergy( wxCommandEvent &event );
00181 DECLARE_EVENT_TABLE()
00182 };// of xpSpectrumPanel
00183 
00185 
00187 class xpSamplePanel : public wxScrolledWindow
00188 {   public:
00189     xpSampleBase *sample;       
00190     wxRadioBox  *ContainsCarbonBox; 
00191 
00192     xpSamplePanel(wxWindow* parent, wxWindowID id,
00193         const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
00194         long style = wxTAB_TRAVERSAL, const wxString& name = "panel");
00196     xpSampleBase* GetSample(void) const
00197         {   return sample; }
00199     void OnContainsCarbon( wxCommandEvent  &event );
00200 
00201 DECLARE_EVENT_TABLE()
00202 };// of xpSamplePanel
00203 
00204 #endif //xppanel_h

Generated on Tue Dec 23 10:24:08 2003 for xps4xps by doxygen 1.3.5