10 #ifndef CLogViewerDlg_H 11 #define CLogViewerDlg_H 40 CWnd * aParent = NULL,
41 BOOL aOpenOther =
FALSE 63 MINMAXINFO* aMinMaxInfo
80 CDataExchange * aDataExchange
afx_msg void OnBnClickedFindNext()
Click handler for the Find Next button.
CString mSelectedPacketText
Formatted representation of the current packet.
CStatic mLogNameTitleLabel
Label for the log name control.
afx_msg void OnBnClickedViewOther()
Click handler for the View Other button.
CStatic mCurrentPacketTitleLabel
Label above the current packet text box.
void resetView()
Reset the log view.
Abstract base class for log item parsers.
afx_msg void OnBnClickedOk()
Click handler for the OK button; destroys the window.
afx_msg LPARAM OnPacketLogged(WPARAM, LPARAM)
Handles the Packet Logged event from Com; updates the packet list.
CLogViewerDlg(LogParser *aLogParser, CWnd *aParent=NULL, BOOL aOpenOther=FALSE)
Constructor.
CButton mClearButton
Reference to the Clear button.
A CListBox that highlights list items matching a search string.
Modeless log viewer dialog.
void UpdateLogDisplay()
Reads the log file and updates the packet list. If a packet was selected, keeps the packet selected a...
SearchDirectionType
Search direction. Indexes must correspond to the radio buttons in the IDC_LOG_RDO_UP radio group...
BOOL mOpenOtherLog
If TRUE, the Open File dialog should be presented (to aOpenOther another log)
CEdit mSearchTextControl
Reference to the Search Text edit box.
CButton mSearchGroupBox
Reference to the Search group box.
CStatic mPacketListTitleLabel
Label above the packet list.
LogParser * mLogParser
The log parser.
virtual ~CLogViewerDlg()
Destructor.
CButton mResendButton
Reference to the Resend button.
CButton mViewOtherButton
Reference to the View Other button.
CButton mCloseButton
Reference to the Close button.
CStatic mLogNameControl
Control containing the log name.
CButton mViewCurrentButton
Reference to the View Current button.
CButton mSearchUpRadioButton
Reference to the Search Up radio button.
afx_msg void OnBnClickedViewCurrent()
Click handler for the View Current button.
EventListener that dispatches a Windows message.
afx_msg void OnCancel()
Handler for the Cancel action; destroys the window.
void PostNcDestroy()
Perform final cleanup on the log viewer.
CButton mSaveButton
Reference to the Save button.
CStatic mCurrentPacketControl
Reference to a control containing the currently selected packet, formatted.
afx_msg void OnLbnSelchangeLog()
Selection Changed handler for the packet list.
BOOL updateView()
Update the log view.
CString mSearchText
Contents of the Search Text edit box.
afx_msg void OnGetMinMaxInfo(MINMAXINFO *aMinMaxInfo)
Called on every resize to get the resize bounds.
afx_msg void OnBnClickedClearLog()
Click handler for the Clear Log button.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
int mSearchDirection
Search direction.
void resendPacket()
Retransmit the selected packet for debugging purposes.
CString mLogNameText
The string describing the log being viewed ("Current execution's" or a file name) ...
afx_msg void OnSize(UINT aType, int aClientWidth, int aClientHeight)
Called after the dialog is resized; repositions the contents of the display.
afx_msg void OnBnClickedSaveAs()
Click handler for the Save As button.
CColoredListBox mPacketListBox
Reference to the packet list box.
CButton mSearchDownRadioButton
Reference to the Search Down radio button.
BOOL OnInitDialog()
Initialize the dialog.
CButton mFindNextButton
Reference to the Find Next button.