TfrmMain Class Reference

Main application window. More...

#include <Main.h>

List of all members.

Classes

struct  DEV_CALIBRATION
struct  DISP_STATE
 Current plot state (depending on mode).
struct  S_CURRENT

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 edIntervalChange (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.
__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)

Public Attributes

TPanel * pnlRight
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
TTrackBar * trbarSensitivity
TLabel * lblSensitivity
TLabel * lblSensitivityVal
TLabel * lblTriggerType
TComboBox * cbTriggerType
TButton * btnManualTrigger
TComboBox * cbBufferSize
TLabel * lblBuffer
TLabel * lblSampling
TLabel * lblSamplingVal
TTrackBar * trbarSampling
TTrackBar * trbarTriggerLevel
TLabel * lblTriggerLevel
TLabel * lblTriggerLevelVal
TLabel * lblCouplingType
TComboBox * cbCouplingType
TButton * btnStart
TButton * btnStop
TPaintBox * PaintBoxCenter
TAction * ActionCopyPlotClipbrd
TMenuItem * miCopyPlotToClipbrd
TPanel * pnlZoomInfo
TLabel * lblZoomX
TLabel * lblZoomY
TMenuItem * miTools
TMenuItem * miStatistics
TAction * ActionShowCommonSettings
TAction * ActionModeRecorder
TLabel * lblInterval
TEdit * edInterval
TLabel * lblSeconds
TButton * btnRecorderStart
TButton * btnRecorderStop
TButton * btnRecorderClear
TTimer * tmrRecorder
TProgressBar * ProgressBarFrameRx
TMenuItem * miExportPlotBitmap
TAction * ActionExportPlotBitmap
TSaveDialog * SaveDialog
TAction * ActionCalibrateSensitivity
TMenuItem * miCalibrateSensitivity
TAction * ActionExportData
TMenuItem * miExportcurrentdatatoJSONfile
TToolButton * ToolButton1
TToolButton * ToolButton2
TToolButton * ToolButton3
TAction * ActionAutoFitY


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 Sat Oct 3 18:45:45 2009 for miniscope v3 by  doxygen 1.5.9
Tomasz Ostrowski