00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
#ifndef _DETECGUI_H
00014
#define _DETECGUI_H
00015
00016
#include "utils\u_utils.h"
00017
00018
#include "detecuse\detecmes.h"
00019
00020
00021
00022 class TCommonDevParamDlg :
public TModalDlg
00023 {
00024
public:
00025
TCommonDevParamDlg(
TDetector* = 0);
00026
00027
private:
00028 HWND hChooseDetector;
00029
TDetector* Detector;
00030 BOOL Dlg_OnInit( HWND, HWND, LPARAM );
00031
void Dlg_OnCommand( HWND,
int, HWND, UINT );
00032 BOOL
CanClose(
void );
00033
void LeaveDialog(
void );
00034
00035
00036
void OnParamSet();
00037
void OnShowCounter(HWND hwnd);
00038
void OnActivateChanges();
00039
void OnSoundSwitch();
00040
void OnSpecificParameters();
00041
void OnStaticFailure(HWND hwnd);
00042
void OnChooseDetector(HWND hwnd, UINT codeNotify);
00043 };
00044
00045 class TScsParametersDlg :
public TModalDlg
00046 {
00047
public:
00048
TScsParametersDlg(
TDetector*);
00049
00050
private:
00051
TRadicon *Radicon;
00052 BOOL Dlg_OnInit( HWND, HWND, LPARAM );
00053
void Dlg_OnCommand( HWND,
int, HWND, UINT );
00054 BOOL
CanClose(
void );
00055
00056
00057
void OnParamSet();
00058 };
00059
00060 class TPsdParametersDlg :
public TModelessDlg
00061 {
00062
public:
00063
TPsdParametersDlg(
TModelessDlg** );
00064
private:
00065
TOneDimDetector* Detector;
00066
int OldId;
00067 BOOL Dlg_OnInit( HWND, HWND, LPARAM );
00068
void Dlg_OnCommand( HWND,
int, HWND, UINT );
00069 BOOL
CanClose(
void );
00070
00071
00072
void OnParamSet(HWND);
00073
void OnInitializePsd(HWND);
00074
void OnClearEnergyData();
00075
void OnSetEnergyRange(HWND);
00076
void OnSetPositionRange(HWND);
00077 };
00078
00079 class TCalibratePsdDlg :
public TModalDlg
00080 {
00081
public:
00082
TCalibratePsdDlg(
TCurve& );
00083
virtual ~TCalibratePsdDlg();
00084
00087
int GetBarEgde(
EScrollBarSide );
00088
00091
int GetBarPos(
void );
00092
00094
void Dlg_OnHScrollBar( HWND, HWND, UINT,
int );
00095
00098 BOOL
Dlg_OnInit( HWND, HWND, LPARAM );
00099
00101
void Dlg_OnTimer( HWND, UINT );
00102
00104
void Dlg_OnCommand( HWND,
int, HWND, UINT );
00105
00109 BOOL
CanClose(
void );
00110
00112
void LeaveDialog(
void );
00113
00114
private:
00115
00117
int nAskTime;
00118
00120 BOOL bMoveActive;
00121
00124
float fRelationFactor;
00125
00127
00128
00130
TCurve* Curve;
00131
00133
CPoint* LeftPeak;
00134
CPoint* RightPeak;
00135
00137 BOOL bGetRightPeak;
00138 BOOL bGetLeftPeak;
00139
00141 BOOL bLongMove;
00142
00144
00145
00148
double dOldMotorWidth;
00149
00151 HWND hDlgItem;
00152
00154 HWND hBar;
00155
00158
int BarFactor;
00159
00160
int nMotor;
00161
float dStepWidth;
00162
TOneDimDetector* Psd;
00163
00164
00165
void OnParamSet();
00166
void OnMotorInit();
00167
void OnCounterSet();
00168
void OnRightPositionReached();
00169
void OnLeftPositionReached();
00170
void OnNewAngle(
int&);
00171
void OnIDOK( HWND hwnd,
int id, HWND hwndCtl, UINT codeNotify,
int & );
00172
void OnMoveButton();
00173 };
00174
#endif // #ifndef _DETECGUI_H