Operator Console
|
The class underlying the main dialog. More...
#include <OperatorConsoleDlg.h>
Public Types | |
enum | { IDD = IDD_OPERATORCONSOLE_DIALOG } |
enum | { IDD = IDD_OPERATORCONSOLE_DIALOG } |
Public Member Functions | |
COperatorConsoleDlg (CWnd *pParent=NULL) | |
afx_msg void | OnBnClickedRadioBlemish () |
afx_msg void | OnBnClickedRadioSfr () |
afx_msg void | OnBnClickedShowjson () |
afx_msg void | OnBnClickedStart () |
afx_msg void | OnBnClickedStop () |
afx_msg void | OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) |
afx_msg void | OnClose () |
afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
afx_msg void | OnBnClickedSetupButton () |
void | DrawImage (LPDRAWITEMSTRUCT info) |
void | DrawLogo (LPDRAWITEMSTRUCT info) |
void | GetLog (CString &dst) |
void | LogMessage (LPCTSTR msg, bool timestamp=true) |
void | ReInitDialog (void) |
Allows the display to be resized after the user changes the image size. More... | |
void | UpdateFPS (long long ms) |
void | UpdateImage (void *buf) |
void | UpdateStatus (bool passed, LPCTSTR reason) |
void | UpdateSummary (LPCTSTR summary) |
void | UpdateQuadrants (const bool *data) |
afx_msg void | OnClickedPassFail () |
COperatorConsoleDlg (CWnd *pParent=NULL) | |
afx_msg void | OnBnClickedRadioBlemish () |
afx_msg void | OnBnClickedRadioSfr () |
afx_msg void | OnBnClickedShowjson () |
afx_msg void | OnBnClickedStart () |
afx_msg void | OnBnClickedStop () |
afx_msg void | OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) |
afx_msg void | OnClose () |
afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
afx_msg void | OnBnClickedSetupButton () |
afx_msg void | OnClickedPassFail () |
void | DrawImage (LPDRAWITEMSTRUCT info) |
void | DrawLogo (LPDRAWITEMSTRUCT info) |
void | GetLog (CString &dst) |
void | LogMessage (LPCTSTR msg, bool timestamp=true) |
void | ReInitDialog (void) |
Allows the display to be resized after the user changes the image size. More... | |
void | UpdateFPS (long long ms) |
void | UpdateImage (void *buf) |
void | UpdateStatus (bool passed, LPCTSTR reason) |
void | UpdateSummary (LPCTSTR summary) |
void | UpdateQuadrants (const bool *data) |
Public Attributes | |
CButton | c_startButton |
CButton | c_stopButton |
CEdit | c_summary |
The summary display. More... | |
CStatic | c_status |
The status display. More... | |
CEdit | c_reason |
The reason display. More... | |
CEdit | c_log |
The log display. More... | |
CButton | c_sfrPlus |
The sfrPlus radial button. More... | |
CButton | c_blemish |
The Blemish radial button. More... | |
CStaticBmp | c_image |
owner-drawn control that displays an image from the acquisition source More... | |
CStatic | c_logo |
CStatic | c_qsoUL |
The static text for the upper left QSO. More... | |
CStatic | c_qsoUR |
The static text for the upper right QSO. More... | |
CStatic | c_qsoLL |
The static text for the lower left QSO. More... | |
CStatic | c_qsoLR |
The static text for the lower right QSO. More... | |
CStatic | c_qsoCENTER |
The static text for the center QSO. More... | |
CStatic | c_fps |
The frames-per-second display. More... | |
CButton | c_showjson |
The 'show JSON' button. More... | |
CButton | c_setup |
The setup button. More... | |
CButton | c_pass_fail |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
void | ShowStartStop (bool start, bool stop) |
BOOL | OnInitDialog () |
void | OnOK () |
void | OnCancel () |
void | Quit () |
afx_msg HBRUSH | OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor) |
afx_msg void | OnSysCommand (UINT nID, LPARAM lParam) |
afx_msg void | OnPaint () |
afx_msg HCURSOR | OnQueryDragIcon () |
void | CenterWindow (CWnd *wnd, int centerX, int centerY) |
move 'wnd' so its center is at the screen coordinate (centerX, centerY) More... | |
void | CreateFont (CWnd *wnd, int points, CFont *newFont) |
void | MoveFPS () |
void | PostParentMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) |
void | QsoMove () |
HBRUSH | QsoSet (CDC *cdc, EQuadrant quadrant) |
void | QsoShow (bool show) |
HBRUSH | SetBGColor (CDC *dc, CBrush brush, COLORREF color) |
void | UpdateQuadrant (const bool *passed, EQuadrant quadrant, CWnd *control) |
virtual void | DoDataExchange (CDataExchange *pDX) |
void | ShowStartStop (bool start, bool stop) |
BOOL | OnInitDialog () |
void | OnOK () |
void | OnCancel () |
void | Quit () |
afx_msg HBRUSH | OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor) |
afx_msg void | OnSysCommand (UINT nID, LPARAM lParam) |
afx_msg void | OnPaint () |
afx_msg HCURSOR | OnQueryDragIcon () |
void | CenterWindow (CWnd *wnd, int centerX, int centerY) |
move 'wnd' so its center is at the screen coordinate (centerX, centerY) More... | |
void | CreateFont (CWnd *wnd, int points, CFont *newFont) |
void | MoveFPS () |
void | PostParentMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) |
void | QsoMove () |
HBRUSH | QsoSet (CDC *cdc, EQuadrant quadrant) |
void | QsoShow (bool show) |
HBRUSH | SetBGColor (CDC *dc, CBrush brush, COLORREF color) |
void | UpdateQuadrant (const bool *passed, EQuadrant quadrant, CWnd *control) |
Protected Attributes | |
HICON | m_hIcon |
CBrush | m_whiteBrush |
CBrush | m_passBrush |
the brush (i.e. background color) to be used for Status item when the test has passed More... | |
CBrush | m_failBrush |
the brush (i.e. background color) to be used for Status item when the test has failed More... | |
HBRUSH | m_statusBrush |
handle to the brush to be used when drawing the Status item More... | |
COLORREF | m_statusColor |
unused if m_statusBrush == NULL More... | |
COLORREF | m_qsoColor [eNumQuadrants] |
color to use for each QSO item More... | |
CFont | m_statusFont |
font to use for Status item (used to change font size for the item) More... | |
CFont | m_qsoFont |
font to use for QSO (Quadrant Status Overlay) items More... | |
CImage | m_logo |
Imatest logo (goes at top of info display) More... | |
CSize | m_delta |
number of pixels to increase image item and dialog size More... | |
Timestamp | m_timestamp |
The class underlying the main dialog.
COperatorConsoleDlg::COperatorConsoleDlg | ( | CWnd * | pParent = NULL | ) |
References IDR_MAINFRAME.
COperatorConsoleDlg::COperatorConsoleDlg | ( | CWnd * | pParent = NULL | ) |
|
protected |
move 'wnd' so its center is at the screen coordinate (centerX, centerY)
Referenced by QsoMove().
|
protected |
move 'wnd' so its center is at the screen coordinate (centerX, centerY)
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
References c_blemish, c_fps, c_image, c_log, c_logo, c_pass_fail, c_qsoCENTER, c_qsoLL, c_qsoLR, c_qsoUL, c_qsoUR, c_reason, c_setup, c_sfrPlus, c_showjson, c_startButton, c_status, c_stopButton, c_summary, IDC_FPS, IDC_IMAGE, IDC_LOG, IDC_LOGO, IDC_PASS_FAIL, IDC_QSO_CENTER, IDC_QSO_LL, IDC_QSO_LR, IDC_QSO_UL, IDC_QSO_UR, IDC_RADIO_BLEMISH, IDC_RADIO_SFR, IDC_REASON, IDC_SETUP_BUTTON, IDC_SHOWJSON, IDC_START, IDC_STATUS, IDC_STOP, and IDC_SUMMARY.
void COperatorConsoleDlg::DrawImage | ( | LPDRAWITEMSTRUCT | info | ) |
References c_image, and CStaticBmp::Draw().
Referenced by OnDrawItem().
void COperatorConsoleDlg::DrawImage | ( | LPDRAWITEMSTRUCT | info | ) |
void COperatorConsoleDlg::DrawLogo | ( | LPDRAWITEMSTRUCT | info | ) |
References m_logo.
Referenced by OnDrawItem().
void COperatorConsoleDlg::DrawLogo | ( | LPDRAWITEMSTRUCT | info | ) |
void COperatorConsoleDlg::GetLog | ( | CString & | dst | ) |
References c_log.
void COperatorConsoleDlg::GetLog | ( | CString & | dst | ) |
void COperatorConsoleDlg::LogMessage | ( | LPCTSTR | msg, |
bool | timestamp = true |
||
) |
References c_log, Timestamp::Get(), and m_timestamp.
Referenced by COperatorConsoleApp::GetStdoutMsg(), and COperatorConsoleApp::UpdateResults().
void COperatorConsoleDlg::LogMessage | ( | LPCTSTR | msg, |
bool | timestamp = true |
||
) |
|
protected |
References c_fps, c_image, and MARGIN_Y.
Referenced by ReInitDialog().
|
protected |
void COperatorConsoleDlg::OnBnClickedRadioBlemish | ( | ) |
References MSG_SET_BLEMISH, PostParentMessage(), and QsoShow().
afx_msg void COperatorConsoleDlg::OnBnClickedRadioBlemish | ( | ) |
afx_msg void COperatorConsoleDlg::OnBnClickedRadioSfr | ( | ) |
void COperatorConsoleDlg::OnBnClickedRadioSfr | ( | ) |
References MSG_SET_SFRPLUS, PostParentMessage(), and QsoShow().
void COperatorConsoleDlg::OnBnClickedSetupButton | ( | ) |
References MSG_SETUP, and PostParentMessage().
afx_msg void COperatorConsoleDlg::OnBnClickedSetupButton | ( | ) |
void COperatorConsoleDlg::OnBnClickedShowjson | ( | ) |
References MSG_JSON, and PostParentMessage().
afx_msg void COperatorConsoleDlg::OnBnClickedShowjson | ( | ) |
afx_msg void COperatorConsoleDlg::OnBnClickedStart | ( | ) |
void COperatorConsoleDlg::OnBnClickedStart | ( | ) |
References c_setup, eNumQuadrants, MSG_START, PostParentMessage(), ShowStartStop(), UpdateQuadrants(), and UpdateStatus().
afx_msg void COperatorConsoleDlg::OnBnClickedStop | ( | ) |
void COperatorConsoleDlg::OnBnClickedStop | ( | ) |
References c_setup, MSG_STOP, PostParentMessage(), and ShowStartStop().
|
protected |
|
protected |
afx_msg void COperatorConsoleDlg::OnClickedPassFail | ( | ) |
void COperatorConsoleDlg::OnClickedPassFail | ( | ) |
References MSG_PASS_FAIL, and PostParentMessage().
void COperatorConsoleDlg::OnClose | ( | ) |
afx_msg void COperatorConsoleDlg::OnClose | ( | ) |
|
protected |
|
protected |
References eCenter, eLowerLeft, eLowerRight, eUpperLeft, eUpperRight, IDC_FPS, IDC_LOG, IDC_QSO_CENTER, IDC_QSO_LL, IDC_QSO_LR, IDC_QSO_UL, IDC_QSO_UR, IDC_STATUS, m_statusBrush, m_statusColor, m_whiteBrush, QsoSet(), and WHITE.
void COperatorConsoleDlg::OnDrawItem | ( | int | nIDCtl, |
LPDRAWITEMSTRUCT | lpDrawItemStruct | ||
) |
References DrawImage(), DrawLogo(), IDC_IMAGE, and IDC_LOGO.
afx_msg void COperatorConsoleDlg::OnDrawItem | ( | int | nIDCtl, |
LPDRAWITEMSTRUCT | lpDrawItemStruct | ||
) |
BOOL COperatorConsoleDlg::OnEraseBkgnd | ( | CDC * | pDC | ) |
References BLACK, c_qsoCENTER, c_qsoLL, c_qsoLR, c_qsoUL, and c_qsoUR.
afx_msg BOOL COperatorConsoleDlg::OnEraseBkgnd | ( | CDC * | pDC | ) |
|
protected |
|
protected |
References FAIL_COLOR, IDM_ABOUTBOX, IDS_ABOUTBOX, IMAGE_NAME, LOGO_NAME, PASS_COLOR, QSO_SIZE, ResizeDlg::Resize(), STATUS_SIZE, theApp, and WHITE.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
References m_hIcon.
|
protected |
|
protected |
References IDM_ABOUTBOX.
|
protected |
|
protected |
References theApp.
Referenced by OnBnClickedRadioBlemish(), OnBnClickedRadioSfr(), OnBnClickedSetupButton(), OnBnClickedShowjson(), OnBnClickedStart(), OnBnClickedStop(), and OnClickedPassFail().
|
protected |
|
protected |
References c_image, c_qsoCENTER, c_qsoLL, c_qsoLR, c_qsoUL, c_qsoUR, CenterWindow(), ResizeDlg::GetWindowSize(), height, and width.
Referenced by ReInitDialog().
|
protected |
|
protected |
References m_qsoColor.
Referenced by OnCtlColor().
|
protected |
|
protected |
References c_qsoCENTER, c_qsoLL, c_qsoLR, c_qsoUL, and c_qsoUR.
Referenced by OnBnClickedRadioBlemish(), and OnBnClickedRadioSfr().
|
protected |
|
protected |
|
protected |
References AppThread::Quit(), and theApp.
Referenced by OnCancel(), OnClose(), and OnOK().
void COperatorConsoleDlg::ReInitDialog | ( | void | ) |
Allows the display to be resized after the user changes the image size.
References ResizeDlg::BidirectionalResize(), c_image, CStaticBmp::Init(), MoveFPS(), QsoMove(), theApp, and CStaticBmp::Update().
void COperatorConsoleDlg::ReInitDialog | ( | void | ) |
Allows the display to be resized after the user changes the image size.
|
protected |
|
protected |
|
protected |
References c_startButton, and c_stopButton.
Referenced by OnBnClickedStart(), and OnBnClickedStop().
|
protected |
void COperatorConsoleDlg::UpdateFPS | ( | long long | ms | ) |
References c_fps, and c_image.
Referenced by COperatorConsoleApp::UpdateResults().
void COperatorConsoleDlg::UpdateFPS | ( | long long | ms | ) |
void COperatorConsoleDlg::UpdateImage | ( | void * | buf | ) |
References c_image, and CStaticBmp::Update().
Referenced by COperatorConsoleApp::UpdateResults().
void COperatorConsoleDlg::UpdateImage | ( | void * | buf | ) |
|
protected |
References FAIL_COLOR, m_qsoColor, PASS_COLOR, QSO_FAILED, and QSO_PASSED.
Referenced by UpdateQuadrants().
|
protected |
void COperatorConsoleDlg::UpdateQuadrants | ( | const bool * | data | ) |
References c_image, c_qsoCENTER, c_qsoLL, c_qsoLR, c_qsoUL, c_qsoUR, eCenter, eLowerLeft, eLowerRight, eUpperLeft, eUpperRight, and UpdateQuadrant().
Referenced by OnBnClickedStart(), and COperatorConsoleApp::UpdateResultsSFRplus().
void COperatorConsoleDlg::UpdateQuadrants | ( | const bool * | data | ) |
void COperatorConsoleDlg::UpdateStatus | ( | bool | passed, |
LPCTSTR | reason | ||
) |
References c_reason, c_status, FAIL_COLOR, FAILED_TEXT, m_failBrush, m_passBrush, m_statusBrush, m_statusColor, PASS_COLOR, and PASSED_TEXT.
Referenced by OnBnClickedStart(), and COperatorConsoleApp::UpdateResults().
void COperatorConsoleDlg::UpdateStatus | ( | bool | passed, |
LPCTSTR | reason | ||
) |
void COperatorConsoleDlg::UpdateSummary | ( | LPCTSTR | summary | ) |
References c_summary.
Referenced by COperatorConsoleApp::UpdateResults().
void COperatorConsoleDlg::UpdateSummary | ( | LPCTSTR | summary | ) |
CButton COperatorConsoleDlg::c_blemish |
The Blemish radial button.
Referenced by DoDataExchange().
CStatic COperatorConsoleDlg::c_fps |
The frames-per-second display.
Referenced by DoDataExchange(), MoveFPS(), and UpdateFPS().
CStaticBmp COperatorConsoleDlg::c_image |
owner-drawn control that displays an image from the acquisition source
Referenced by DoDataExchange(), DrawImage(), MoveFPS(), QsoMove(), ReInitDialog(), UpdateFPS(), UpdateImage(), and UpdateQuadrants().
CEdit COperatorConsoleDlg::c_log |
The log display.
Referenced by DoDataExchange(), GetLog(), and LogMessage().
CStatic COperatorConsoleDlg::c_logo |
Referenced by DoDataExchange().
CButton COperatorConsoleDlg::c_pass_fail |
Referenced by DoDataExchange().
CStatic COperatorConsoleDlg::c_qsoCENTER |
The static text for the center QSO.
Referenced by DoDataExchange(), OnEraseBkgnd(), QsoMove(), QsoShow(), and UpdateQuadrants().
CStatic COperatorConsoleDlg::c_qsoLL |
The static text for the lower left QSO.
Referenced by DoDataExchange(), OnEraseBkgnd(), QsoMove(), QsoShow(), and UpdateQuadrants().
CStatic COperatorConsoleDlg::c_qsoLR |
The static text for the lower right QSO.
Referenced by DoDataExchange(), OnEraseBkgnd(), QsoMove(), QsoShow(), and UpdateQuadrants().
CStatic COperatorConsoleDlg::c_qsoUL |
The static text for the upper left QSO.
Referenced by DoDataExchange(), OnEraseBkgnd(), QsoMove(), QsoShow(), and UpdateQuadrants().
CStatic COperatorConsoleDlg::c_qsoUR |
The static text for the upper right QSO.
Referenced by DoDataExchange(), OnEraseBkgnd(), QsoMove(), QsoShow(), and UpdateQuadrants().
CEdit COperatorConsoleDlg::c_reason |
The reason display.
Referenced by DoDataExchange(), and UpdateStatus().
CButton COperatorConsoleDlg::c_setup |
The setup button.
Referenced by DoDataExchange(), OnBnClickedStart(), and OnBnClickedStop().
CButton COperatorConsoleDlg::c_sfrPlus |
The sfrPlus radial button.
Referenced by DoDataExchange().
CButton COperatorConsoleDlg::c_showjson |
The 'show JSON' button.
Referenced by DoDataExchange().
CButton COperatorConsoleDlg::c_startButton |
Referenced by DoDataExchange(), and ShowStartStop().
CStatic COperatorConsoleDlg::c_status |
The status display.
Referenced by DoDataExchange(), and UpdateStatus().
CButton COperatorConsoleDlg::c_stopButton |
Referenced by DoDataExchange(), and ShowStartStop().
CEdit COperatorConsoleDlg::c_summary |
The summary display.
Referenced by DoDataExchange(), and UpdateSummary().
|
protected |
number of pixels to increase image item and dialog size
|
protected |
the brush (i.e. background color) to be used for Status item when the test has failed
Referenced by UpdateStatus().
|
protected |
Referenced by OnPaint(), and OnQueryDragIcon().
|
protected |
Imatest logo (goes at top of info display)
Referenced by DrawLogo().
|
protected |
the brush (i.e. background color) to be used for Status item when the test has passed
Referenced by UpdateStatus().
|
protected |
color to use for each QSO item
Referenced by QsoSet(), and UpdateQuadrant().
|
protected |
font to use for QSO (Quadrant Status Overlay) items
|
protected |
handle to the brush to be used when drawing the Status item
Referenced by OnCtlColor(), and UpdateStatus().
|
protected |
unused if m_statusBrush == NULL
Referenced by OnCtlColor(), and UpdateStatus().
|
protected |
font to use for Status item (used to change font size for the item)
|
protected |
Referenced by LogMessage().
|
protected |
Referenced by OnCtlColor().