[go: up one dir, main page]

Menu

[r662]: / trunk / VTS3 / ChildFrm.h  Maximize  Restore  History

Download this file

182 lines (160 with data), 6.0 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
// ChildFrm.h : interface of the CChildFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CHILDFRM_H__BDE65086_B82F_11D3_BE52_00A0C95A9812__INCLUDED_)
#define AFX_CHILDFRM_H__BDE65086_B82F_11D3_BE52_00A0C95A9812__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "FrameContext.h"
/////////////////////////////////
#include "DockingDetailViewBar.h"
#include "DockingHexViewBar.h"
#include "DockingEPICSViewBar.h"
/////////////////////////////////
#include "VdbPrint.h"
/////////////////////////////////
// forward definitions
class CSummaryView;
class CDetailView;
class CHexView;
class CListSummaryView;
class CReadAllPropSettingsDlg;
class CChildFrame : public CMDIChildWnd
{
DECLARE_DYNCREATE(CChildFrame)
// Attributes
public:
CSplitterWnd m_wndSplit1;
CSplitterWnd m_wndSplit2; // embedded in the first
CFrameContext* m_frameContext; // frame context
CListSummaryView* m_pSummaryView;
CDetailTreeCtrl* m_pDetailView;
CHexView* m_pHexView;
// CEPICSView * m_pEPICSView;
CDockingDetailViewBar* m_pwndDetailViewBar;
CDockingHexViewBar* m_pwndHexViewBar;
CDockingEPICSViewBar * m_pwndEPICSViewBar;
/////////////////////////////////
//Added by Zhenhua Zhu, 2003-6-2
CVdbPrint m_printer;
BOOL m_bPrintSetup;
BOOL m_bInPrinting;
/////////////////////////////////
protected:
CToolBar * m_wndGlobalBar;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChildFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void ActivateFrame(int nCmdShow = -1);
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
virtual BOOL DestroyWindow();
//}}AFX_VIRTUAL
// Implementation
public:
CChildFrame();
virtual ~CChildFrame();
void SaveBarStates(void);
void EPICSLoad( LPCSTR lpszFileName );
void DoReadAllProperties();
void DoReadSingleProperties( LPCSTR lpszFileName, unsigned long ulObjectID );
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
private:
BOOL CreateScriptFile( CString * pstrFileName, CReadAllPropSettingsDlg * pdlg, unsigned long ulObjectID );
// Generated message map functions
protected:
//{{AFX_MSG(CChildFrame)
afx_msg void OnCancelMode();
afx_msg void OnUpdateFileWksNew(CCmdUI* pCmdUI);
afx_msg void OnUpdateFileWksSwitch(CCmdUI* pCmdUI);
afx_msg void OnUpdateFileWksSaveAs(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditDelete(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditRefresh(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditPorts(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditNames(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditDevices(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditLogfile(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditCaptureFilters(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditDisplayFilters(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewFirstFrame(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewLastFrame(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewNextFrame(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewPrevFrame(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewSend(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewDetail(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewHex(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewEPICS(CCmdUI* pCmdUI);
afx_msg void OnUpdateEPICSLoad(CCmdUI* pCmdUI);
afx_msg void OnUpdateEPICSReadallproperty(CCmdUI* pCmdUI);
afx_msg void OnEditDelete();
afx_msg void OnEditRefresh();
afx_msg void OnEditPorts();
afx_msg void OnEditNames();
afx_msg void OnEditDevices();
afx_msg void OnEditLogfile();
afx_msg void OnEditCaptureFilters();
afx_msg void OnEditDisplayFilters();
afx_msg void OnEditPreferences();
afx_msg void OnViewFirstFrame();
afx_msg void OnViewPrevFrame();
afx_msg void OnViewNextFrame();
afx_msg void OnViewLastFrame();
afx_msg void OnSendNewPacket();
afx_msg void OnSendSelectPort(UINT uID);
afx_msg void OnSendSelectPacket(UINT uID);
//add by Hu Meng responding to new menu items
afx_msg void OnViewDetail();
afx_msg void OnViewHex();
afx_msg void OnViewEPICS();
afx_msg void OnEPICSLoad();
afx_msg void OnEPICSLoadAuto();
//end 6.24
// Added by Yajun Zhou, 2002-7-24
afx_msg void OnFileExport();
afx_msg void OnDestroy();
//Added by Zhenhua Zhu, 2003-6-2
afx_msg void OnFilePrint();
afx_msg void OnFilePrintSetup();
afx_msg void OnUpdateFilePrint(CCmdUI* pCmdUI);
afx_msg void OnReadAllProperty();
//Added by Zhu Zhenhua, 2004-11-27,for #508589 request
afx_msg void OnGlobalScriptSteppass();
afx_msg void OnUpdateGlobalScriptSteppass(CCmdUI* pCmdUI);
afx_msg void OnGlobalScriptStepfail();
afx_msg void OnUpdateGlobalScriptStepfail(CCmdUI* pCmdUI);
afx_msg void OnGlobalScriptStep();
afx_msg void OnUpdateGlobalScriptStep(CCmdUI* pCmdUI);
afx_msg void OnGlobalScriptKill();
afx_msg void OnUpdateGlobalScriptKill(CCmdUI* pCmdUI);
afx_msg void OnGlobalScriptHalt();
afx_msg void OnUpdateGlobalScriptHalt(CCmdUI* pCmdUI);
afx_msg void OnGlobalDisablePort();
afx_msg void OnUpdateGlobalDisablePort(CCmdUI* pCmdUI);
afx_msg void OnGlobalScriptChecksyntax();
afx_msg void OnUpdateGlobalScriptChecksyntax(CCmdUI* pCmdUI);
afx_msg void OnGlobalScriptReset();
afx_msg void OnUpdateGlobalScriptReset(CCmdUI* pCmdUI);
afx_msg void OnGlobalScriptRun();
afx_msg void OnUpdateGlobalScriptRun(CCmdUI* pCmdUI);
afx_msg void OnViewMaintoolbar();
afx_msg void OnViewGlobalToolbar();
afx_msg void OnUpdateViewMaintoolbar(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewGlobalToolbar(CCmdUI* pCmdUI);
//}}AFX_MSG
// Added by Jingbo Gao, 2004-9-20
void OnBackupRestore();
void OnUpdateBackupRestore(CCmdUI* pCmdUI);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHILDFRM_H__BDE65086_B82F_11D3_BE52_00A0C95A9812__INCLUDED_)