Scope
|
#include <ScopeEditCtrl.h>
Inherits CWindowImpl< CScopeEditCtrl< ValT >, CEdit >.
Public Member Functions | |
* | CScopeEditCtrl (ScopeValue< ValT > *_scopeval, const bool &_connectback=false, const bool &_connectcontrolstate=false) |
~CScopeEditCtrl () | |
bool | AttachToDlgItem (HWND hWnd) |
void | UpdateControl () |
void | UpdateValue () |
void | SetState (const bool &state) |
Called via Win32 messages | |
LRESULT | OnChar (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
LRESULT | OnKeyDown (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
LRESULT | OnKeyUp (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
LRESULT | OnKillFocus (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
LRESULT | OnUpdateControl (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
Protected Attributes | |
bool | created |
ScopeValue< ValT > *const | scope_val |
boost::signals2::connection | stateconnection |
boost::signals2::connection | valueconnection |
bool | shiftstate |
An adapted CEdit control around a ScopeValue.
Definition at line 13 of file ScopeEditCtrl.h.
|
inline |
()
Gets a pointer to the ScopeValue and connects for value changes and read/write status changes if desired
[in] | _scopeval | ScopeValue to which the edit control connects (taken by reference) |
[in] | _connectback | change edit control displayed value/text when ScopeValue is changed |
[in] | _connectcontrolstate | change edit control enabled/disabled state when read/write state of the ScopeValue is changed |
Definition at line 51 of file ScopeEditCtrl.h.
|
inline |
Disconnects everything.
Definition at line 62 of file ScopeEditCtrl.h.
|
inline |
Attach the control to a dialog item.
Definition at line 68 of file ScopeEditCtrl.h.
|
inline |
For ignoring tab and return without beep.
Definition at line 81 of file ScopeEditCtrl.h.
|
inline |
Switches to next control on return or tab and updates ScopeValue scope_val Also sets state of shift key.
Definition at line 94 of file ScopeEditCtrl.h.
|
inline |
Resets state of shift key.
Definition at line 108 of file ScopeEditCtrl.h.
|
inline |
Update scope_val when leaving focus.
Definition at line 117 of file ScopeEditCtrl.h.
|
inline |
Worker for UpdateControl (explicit specialization for ScopeValue<CString> below).
Definition at line 123 of file ScopeEditCtrl.h.
|
inline |
Updates the string inside the control from the ScopeValues' value.
Do this asynchronously, thus Gui thread does the updating in OnUpdateControl and ScopeController (or whatever) thread can immediatly continue.
Definition at line 132 of file ScopeEditCtrl.h.
|
inline |
Updates the ScopeValue from the string inside the control.
Definition at line 137 of file ScopeEditCtrl.h.
|
inline |
Sets the enabled/disabled state of the control.
Definition at line 147 of file ScopeEditCtrl.h.
|
protected |
true after window creation
Definition at line 18 of file ScopeEditCtrl.h.
|
protected |
pointer to underlying ScopeValue
Definition at line 21 of file ScopeEditCtrl.h.
|
protected |
The connection object for the control state (connection to the scope_val rw state change)
Definition at line 24 of file ScopeEditCtrl.h.
|
protected |
The connection object for the control state (connection to the scope_val value change)
Definition at line 27 of file ScopeEditCtrl.h.
|
protected |
stores state of shift key
Definition at line 30 of file ScopeEditCtrl.h.