Scope
|
#include <MainDlgFrame.h>
Inherits CAeroImpl< CMainDlgFrame >, CFrameWindowImpl< CMainDlgFrame, CWindow, CMainDlgFrameTraits >, CUpdateUI< CMainDlgFrame >, CToolBarHelper< CMainDlgFrame >, CIdleHandler, and CMessageFilter.
Public Member Functions | |
virtual void | PrepareToolBarMenu (UINT nMenuID, HMENU hMenu) |
*virtual BOOL | OnIdle () |
void | OnTimer (UINT_PTR nIDEvent) |
LRESULT | OnCreate (LPCREATESTRUCT lParam) |
void | OnPaint (CDCHandle dc) |
BOOL | OnForwardMsg (LPMSG Msg, DWORD nUserData) |
void | OnDestroy () |
LRESULT | OnFileExit (WORD, WORD, HWND, BOOL &) |
LRESULT | OnNewChannelFrame (WORD, WORD, HWND, BOOL &) |
LRESULT | OnNewHistogramFrame (WORD, WORD, HWND, BOOL &) |
LRESULT | OnOpenLogbook (WORD, WORD, HWND, BOOL &) |
LRESULT | OnLoadParameters (WORD, WORD, HWND, BOOL &) |
LRESULT | OnSaveParameters (WORD, WORD, HWND, BOOL &) |
LRESULT | OnSaveDefaultParameters (WORD, WORD, HWND, BOOL &) |
LRESULT | OnZeroGalvoOutputs (WORD, WORD, HWND, BOOL &) |
LRESULT | OnShutterOpen (WORD, WORD, HWND, BOOL &) |
LRESULT | OnSaveWindowPositions (WORD, WORD, HWND, BOOL &) |
LRESULT | OnAppAbout (WORD, WORD, HWND, BOOL &) |
Called internally or from ScopeController | |
{ | |
void | QuitApplication () |
Public Attributes | |
CCommandBarCtrl | m_CmdBar |
Protected Types | |
typedef CFrameWindowImpl< CMainDlgFrame, CWindow, CMainDlgFrameTraits > | CMainDlgFrameType |
Protected Member Functions | |
void | NewChannelFrame (const uint32_t &_area, const RECT &_rect) |
void | NewHistogramFrame (const uint32_t &_area, const RECT &_rect) |
void | NewLogFrame (const RECT &_rect) |
void | RecreateWindows () |
Protected Attributes | |
bool | firstpaint |
CMultiPaneStatusBarCtrl | m_wndStatusBar |
CMainDlgView | m_dlgView |
scope::ScopeController | scope_controller |
scope::ScopeLogger | scope_logger |
Static Protected Attributes | |
static std::array< UINT, 4 > | viewareas_ids = { ID_NEWVIEW_AREA1, ID_NEWVIEW_AREA2, ID_NEWVIEW_AREA3, ID_NEWVIEW_AREA4} |
static std::array< UINT, 4 > | histogramareas_ids = { ID_NEWHISTOGRAM_AREA1, ID_NEWHISTOGRAM_AREA2, ID_NEWHISTOGRAM_AREA3, ID_NEWHISTOGRAM_AREA4} |
The main application dialog frame.
Definition at line 20 of file MainDlgFrame.h.
|
protected |
Need to typedef this, otherwise problems with CHAIN_MSG_MAP macro...
Definition at line 30 of file MainDlgFrame.h.
|
protected |
Opens a new CChannelFrame.
Definition at line 16 of file MainDlgFrame.cpp.
|
protected |
Opens a new CHistogramFrame.
Definition at line 24 of file MainDlgFrame.cpp.
|
protected |
Opens a CLogFrame.
Definition at line 36 of file MainDlgFrame.cpp.
|
protected |
Opens windows as saved.
Definition at line 46 of file MainDlgFrame.cpp.
|
virtual |
Used in CToolBarHelper to fill the dropdown menus.
Definition at line 88 of file MainDlgFrame.cpp.
|
virtual |
void scope::gui::CMainDlgFrame::OnTimer | ( | UINT_PTR | nIDEvent | ) |
Update the memory consumption display.
Definition at line 215 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnCreate | ( | LPCREATESTRUCT | lParam | ) |
Creates the frame with all its stuff and the CMainDialogView inside.
Definition at line 114 of file MainDlgFrame.cpp.
void scope::gui::CMainDlgFrame::OnPaint | ( | CDCHandle | dc | ) |
Recreates stored frames on first call.
Definition at line 201 of file MainDlgFrame.cpp.
BOOL scope::gui::CMainDlgFrame::OnForwardMsg | ( | LPMSG | Msg, |
DWORD | nUserData | ||
) |
Forwards to the view.
Definition at line 211 of file MainDlgFrame.cpp.
void scope::gui::CMainDlgFrame::OnDestroy | ( | ) |
Destroys view and removes message stuff.
Definition at line 229 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnFileExit | ( | WORD | , |
WORD | , | ||
HWND | , | ||
BOOL & | |||
) |
Calls QuitApplication.
Definition at line 242 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnNewChannelFrame | ( | WORD | , |
WORD | wID, | ||
HWND | , | ||
BOOL & | |||
) |
Opens a new CChannelFrame, determines which dropdown menu item/area was choosen.
Definition at line 247 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnNewHistogramFrame | ( | WORD | , |
WORD | wID, | ||
HWND | , | ||
BOOL & | |||
) |
Opens a new CHistogramFrame, determines which dropdown menu item/area was choosen.
Definition at line 261 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnOpenLogbook | ( | WORD | , |
WORD | , | ||
HWND | , | ||
BOOL & | |||
) |
Opens the LogFrame window.
Definition at line 275 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnLoadParameters | ( | WORD | , |
WORD | , | ||
HWND | , | ||
BOOL & | |||
) |
Opens dialog to load ScopeParameters.
Definition at line 305 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnSaveParameters | ( | WORD | , |
WORD | , | ||
HWND | , | ||
BOOL & | |||
) |
Opens dialog to save ScopeParameters.
Definition at line 326 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnSaveDefaultParameters | ( | WORD | , |
WORD | , | ||
HWND | , | ||
BOOL & | |||
) |
Opens dialog to save the default ScopeParameters.
Definition at line 348 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnZeroGalvoOutputs | ( | WORD | , |
WORD | , | ||
HWND | , | ||
BOOL & | |||
) |
Calls ScopeController::ZeroGalvoOutputs.
Definition at line 281 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnShutterOpen | ( | WORD | , |
WORD | , | ||
HWND | , | ||
BOOL & | |||
) |
Calls ScopeController::OpenShutter.
Definition at line 286 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnSaveWindowPositions | ( | WORD | , |
WORD | , | ||
HWND | , | ||
BOOL & | |||
) |
Calls ScopeController::SaveCurrentWindowPositions.
Definition at line 294 of file MainDlgFrame.cpp.
LRESULT scope::gui::CMainDlgFrame::OnAppAbout | ( | WORD | , |
WORD | , | ||
HWND | , | ||
BOOL & | |||
) |
Opens the about dialog.
Definition at line 299 of file MainDlgFrame.cpp.
void scope::gui::CMainDlgFrame::QuitApplication | ( | ) |
Calls ScopeController::PrepareQuit and sends close message and subsequently quits the whole application.
Definition at line 83 of file MainDlgFrame.cpp.
|
protected |
to recreate stored windows
Definition at line 33 of file MainDlgFrame.h.
|
protected |
the status bar
Definition at line 36 of file MainDlgFrame.h.
|
protected |
the view with the dialog controls
Definition at line 39 of file MainDlgFrame.h.
|
protected |
our ScopeController here
Definition at line 42 of file MainDlgFrame.h.
|
protected |
our ScopeLogger here
Definition at line 45 of file MainDlgFrame.h.
|
staticprotected |
ids for the new view toolbar dropdown menu items.
See PrepareToolBarMenu.
Definition at line 48 of file MainDlgFrame.h.
|
staticprotected |
ids for the new histogram toolbar dropdown menu items.
See PrepareToolBarMenu.
Definition at line 51 of file MainDlgFrame.h.
CCommandBarCtrl scope::gui::CMainDlgFrame::m_CmdBar |
the command bar.
public for CToolBarHelper to compile.
Definition at line 68 of file MainDlgFrame.h.