File: INCLUDE\PROTOCOL\TProtocolDiffractometryDlg.h
1 //******************************************************************************
2 //Datei : TProtocolDiffractometryDlg.h
3 //Projekt : XCTL
4 //Subsystem : Protokollbuch
5 //Autor : Jens Klier <klier@informatik.hu-berlin.de>
6 // Institut fuer Informatik,
7 // Humboldt-Universitaet Berlin
8 //Inhalt : Interface der Klasse TProtocolDiffractometryDlg
9 //******************************************************************************
10 //!neu klier Protokollbuch
11
12 #include "utils\u_utils.h" // für TModalDlg
13
14 class TProtocolDiffractometryDlg : public TProtocolDlg, public TModalDlg
15 {
16 public:
17 #include "protocol\TProtocolDiffractometryParameter.h" // enthält enum TDiffractometryParameter
18
19 TProtocolDiffractometryDlg( LPSTR, int idDlg= -1 );
20
21 private:
22 BOOL Dlg_OnInit( HWND, HWND, LPARAM );
23 void Dlg_OnDestroy( HWND );
24 void Dlg_OnCommand( HWND, int, HWND, UINT );
25 BOOL Dlg_OnSysCommand( HWND, int, LPARAM );
26 BOOL CanClose( void );
27 void Dlg_OnLButtonUp( HWND, int, int, UINT );
28 void Dlg_OnLButtonDown( HWND, UINT, int, int, UINT );
29 void Dlg_OnMouseMove( HWND, int, int, UINT );
30 void Dlg_OnRButtonDown( HWND, UINT, int, int, UINT );
31 void Dlg_OnNotify( HWND, int, UINT, UINT );
32
33 void ShowDialog( int, int );
34
35 void InitializeDlgItems( HWND );
36 void SaveDlgItems( HWND );
37
38 int GetDlg( int );
39 BOOL ManageDlg( HWND, int, TAction );
40 BOOL TestPflichtDlg( HWND );
41 void RefreshCombobox( void );
42 void RefreshScanachse( int );
43 void RefreshDetektor( void );
44
45 /*
46 LPSTR GetMeasurementParameter( HWND, int, int, LPSTR );
47 void MeasurementParameterError( HWND, int, int, LPSTR );
48 */
49
50 LPSTR GetDlgItemText_LfdNr( HWND, LPSTR );
51 BOOL TestDlgItemText_LfdNr( HWND, LPSTR );
52 void SetDlgItemText_LfdNr( HWND );
53 void EnableDlgItem_LfdNr( BOOL );
54
55 BOOL IsDlgItemModify( void );
56
57 int GetStatusId( void );
58 int GetDatumId( void );
59
60 void EnableAreaScan( BOOL );
61 void EnableOmega2Theta( BOOL );
62 void EnableContinuous( BOOL );
63 void EnablePSD( BOOL );
64
65 BOOL PSD, Continuous, Omega2Theta, AreaScan;
66 int Scanachse, ScanachseAnzahl;
67
68 HWND hScanartList, hScanmethodeList, hScantypList, hScanachseList;
69 HWND hAArtList, hDetektorList, hMonitorList;
70
71 enum {ProbeSkizzeDlg= 1, MessungDlg, ScanDlg, BlendeAbsorberDlg,
72 DetektorDlg, BemerkungDlg};
73 };
74
75
76 // LastLine
77
78