TfrmMain Class Reference

Main application window. More...

#include <Main.h>

List of all members.

Classes

struct  DISP_STATE
 Current plot state (depending on mode).

Public Member Functions

void __fastcall pnlCenterResize (TObject *Sender)
void __fastcall TimerTimer (TObject *Sender)
void __fastcall pnlCenterMouseDown (TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y)
void __fastcall ActionChangeMouseModeCursorExecute (TObject *Sender)
void __fastcall ActionChangeMouseModeOffsetExecute (TObject *Sender)
void __fastcall ActionChangeMouseModeZoomExecute (TObject *Sender)
void __fastcall ActionChangeMouseModeZoomXExecute (TObject *Sender)
void __fastcall ActionChangeMouseModeZoomYExecute (TObject *Sender)
void __fastcall ActionZoomClearExecute (TObject *Sender)
void __fastcall pnlCenterMouseUp (TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y)
void __fastcall ActionModeScopeExecute (TObject *Sender)
void __fastcall ActionModeSpectrumExecute (TObject *Sender)
void __fastcall miAboutClick (TObject *Sender)
void __fastcall FormCreate (TObject *Sender)
void __fastcall miDeviceSettingsClick (TObject *Sender)
void __fastcall miViewLogClick (TObject *Sender)
void __fastcall ActionAcquireStartExecute (TObject *Sender)
void __fastcall ActionAcquireStopExecute (TObject *Sender)
void __fastcall tmrUpdateConnStateTimer (TObject *Sender)
void __fastcall cbTriggerTypeChange (TObject *Sender)
void __fastcall btnManualTriggerClick (TObject *Sender)
void __fastcall cbBufferSizeChange (TObject *Sender)
void __fastcall cbCouplingTypeChange (TObject *Sender)
void __fastcall PaintBoxCenterPaint (TObject *Sender)
void __fastcall PaintBoxCenterMouseDown (TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y)
void __fastcall PaintBoxCenterMouseUp (TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y)
void __fastcall FormCloseQuery (TObject *Sender, bool &CanClose)
void __fastcall ActionCopyPlotClipbrdExecute (TObject *Sender)
void __fastcall TrackbarKeyUp (TObject *Sender, WORD &Key, TShiftState Shift)
void __fastcall miStatisticsClick (TObject *Sender)
void __fastcall ActionShowCommonSettingsExecute (TObject *Sender)
void __fastcall ActionModeRecorderExecute (TObject *Sender)
void __fastcall btnRecorderStartClick (TObject *Sender)
void __fastcall btnRecorderStopClick (TObject *Sender)
void __fastcall btnRecorderClearClick (TObject *Sender)
void __fastcall tmrRecorderTimer (TObject *Sender)
void __fastcall ActionExportPlotBitmapExecute (TObject *Sender)
void __fastcall ActionCalibrateSensitivityExecute (TObject *Sender)
void __fastcall ActionExportDataExecute (TObject *Sender)
void __fastcall FormShow (TObject *Sender)
void __fastcall ActionAutoFitYExecute (TObject *Sender)
 Set diaplay Y axis zoom & offset to fit trace into.
void __fastcall ActionAutoFitXExecute (TObject *Sender)
void __fastcall ActionLoadJsonFileExecute (TObject *Sender)
void __fastcall ActionShowDataFilterChainExecute (TObject *Sender)
void __fastcall ActionMs3RecordExecute (TObject *Sender)
void __fastcall ActionMs3LoadExecute (TObject *Sender)
void __fastcall ActionMs3FileRepairExecute (TObject *Sender)
void __fastcall edIntervalExit (TObject *Sender)
__fastcall TfrmMain (TComponent *Owner)
void CallbackCloseLogFn (void)
 Called when log window is closed.
void CallbackDataFn (short *, int)
 Called by device when new data is available.
void CallbackConnectFn (int state, char *szMsgText)
 Called by device when connection state is changed.
void CallbackTriggerFn (void)
 Called by device when triggered.
int CallbackCalculateCalibrationFn (float fVoltageHigh, int *const offset, float *const gain)
 Request calibration calculation.
int CallbackStoreCalibrationFn (const int offset, const float gain)
 Store calibration data to device.
void CallbackPlotToolbarClickFn (int tag)
void CallbackJsonViewerClose (void)
 Called when closing JSON viewer.
void CallbackMs3ViewerClose (void)
 Called when closing MS3 viewer.
void CallbackMs3ViewerDataUpdate (void)
 Called when MS3 viewer updates data.

Public Attributes

TPanel * pnlCenter
TTimer * Timer
TStatusBar * StatusBar
TMainMenu * Menu
TMenuItem * File1
TMenuItem * miHelp
TMenuItem * E1
TMenuItem * miSettings
TImageList * imglToolbar
TCoolBar * CoolBar
TToolBar * ToolBarMode
TToolButton * btnModeScope
TToolButton * btnModeSpectrum
TToolButton * btnModeRecorder
TToolBar * ToolBarMouse
TToolButton * btnMouseCursor
TToolButton * btnMouseZoomXY
TToolButton * btnMouseMove
TActionList * ActionList
TAction * ActionChangeMouseModeCursor
TAction * ActionChangeMouseModeOffset
TAction * ActionChangeMouseModeZoom
TToolButton * btnMouseZoomX
TToolButton * btnMouseZoomY
TAction * ActionChangeMouseModeZoomX
TAction * ActionChangeMouseModeZoomY
TToolButton * btnZoomClear
TAction * ActionZoomClear
TAction * ActionModeScope
TAction * ActionModeSpectrum
TMenuItem * miAbout
TMenuItem * miCommonSettings
TMenuItem * miDeviceSettings
TMenuItem * miView
TMenuItem * miViewLog
TAction * ActionAcquireStart
TAction * ActionAcquireStop
TTimer * tmrUpdateConnState
TPaintBox * PaintBoxCenter
TAction * ActionCopyPlotClipbrd
TMenuItem * miCopyPlotToClipbrd
TPanel * pnlZoomInfo
TLabel * lblZoomX
TLabel * lblZoomY
TMenuItem * miTools
TMenuItem * miStatistics
TAction * ActionShowCommonSettings
TAction * ActionModeRecorder
TTimer * tmrRecorder
TMenuItem * miExportPlotBitmap
TAction * ActionExportPlotBitmap
TSaveDialog * SaveDialog
TAction * ActionCalibrateSensitivity
TMenuItem * miCalibrateSensitivity
TAction * ActionExportData
TMenuItem * miExportcurrentdatatoJSONfile
TToolButton * ToolButton1
TToolButton * ToolButton2
TToolButton * btinAutoFitY
TAction * ActionAutoFitY
TAction * ActionAutoFitX
TToolButton * btnAutoFitX
TMenuItem * miLoadJsonFile
TAction * ActionLoadJsonFile
TPanel * pnlRight
TPanel * pnlOscControl
TLabel * lblSensitivity
TLabel * lblSensitivityVal
TLabel * lblTriggerType
TLabel * lblBuffer
TLabel * lblSampling
TLabel * lblSamplingVal
TLabel * lblTriggerLevel
TLabel * lblTriggerLevelVal
TLabel * lblCouplingType
TLabel * lblInterval
TLabel * lblSeconds
TTrackBar * trbarSensitivity
TComboBox * cbTriggerType
TButton * btnManualTrigger
TComboBox * cbBufferSize
TTrackBar * trbarSampling
TTrackBar * trbarTriggerLevel
TComboBox * cbCouplingType
TButton * btnStart
TButton * btnStop
TEdit * edInterval
TButton * btnRecorderStart
TButton * btnRecorderStop
TButton * btnRecorderClear
TProgressBar * ProgressBarFrameRx
TFileExit * FileExit1
TMenuItem * miExit
TMenuItem * N1
TOpenDialog * OpenDialog
TAction * ActionShowDataFilterChain
TMenuItem * Datafilterchain1
TAction * ActionMs3Record
TMenuItem * RecorddatatoMS3file1
TMenuItem * N2
TMenuItem * N3
TAction * ActionMs3Load
TMenuItem * LoadMS3file1
TMenuItem * miMs3FileRepair
TAction * ActionMs3FileRepair


Detailed Description

Main application window.

Member Function Documentation

int TfrmMain::CallbackCalculateCalibrationFn ( float  fVoltageHigh,
int *const   offset,
float *const   gain 
)

Request calibration calculation.

Parameters:
fVoltageHigh real voltage at left cursor
offset returned 0V offset
gain returned real sensitivity/declared sensitivity coeff
Returns:
0 on success

void TfrmMain::CallbackConnectFn ( int  state,
char *  szMsgText 
)

Called by device when connection state is changed.

Parameters:
state current connection state
szMsgText additional text message related to current connection state

void TfrmMain::CallbackDataFn ( short *  buf,
int  size 
)

Called by device when new data is available.

Note:
DO NOT use VCL code inside callbacks called by device dll

void TfrmMain::CallbackTriggerFn ( void   ) 

Called by device when triggered.

Note:
DO NOT use VCL code inside callbacks called by device dll

void __fastcall TfrmMain::PaintBoxCenterPaint ( TObject *  Sender  ) 

Note:
PaintBoxCenter purpose is to fire OnPaint event to request graph repaint (TPanel has no OnPaint event but TPaintBox has no Handle)

void __fastcall TfrmMain::tmrRecorderTimer ( TObject *  Sender  ) 

Todo:
check if previous sample already received


The documentation for this class was generated from the following files:

Generated on Wed May 15 22:42:22 2013 for miniscope v3 by  doxygen 1.5.9
Tomasz Ostrowski