summaryrefslogtreecommitdiff
path: root/IvyProbe/IvyProbeDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'IvyProbe/IvyProbeDlg.cpp')
-rw-r--r--IvyProbe/IvyProbeDlg.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/IvyProbe/IvyProbeDlg.cpp b/IvyProbe/IvyProbeDlg.cpp
index 96bb3a2..0a6e7a4 100644
--- a/IvyProbe/IvyProbeDlg.cpp
+++ b/IvyProbe/IvyProbeDlg.cpp
@@ -2,8 +2,8 @@
//
#include "stdafx.h"
-#include "Test.h"
-#include "TestDlg.h"
+#include "IvyProbe.h"
+#include "IvyProbeDlg.h"
#include "TestParseCmdLine.h"
#include "IvyApplication.h"
@@ -37,8 +37,8 @@ END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTestDlg dialog
-CTestDlg::CTestDlg(CWnd* pParent /*=NULL*/)
- : MyDialog(CTestDlg::IDD, pParent)
+CIvyProbeDlg::CIvyProbeDlg(CWnd* pParent /*=NULL*/)
+ : MyDialog(CIvyProbeDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CTestDlg)
m_busnumber = "";
@@ -49,7 +49,7 @@ CTestDlg::CTestDlg(CWnd* pParent /*=NULL*/)
bus = NULL;
}
-void CTestDlg::DoDataExchange(CDataExchange* pDX)
+void CIvyProbeDlg::DoDataExchange(CDataExchange* pDX)
{
MyDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTestDlg)
@@ -59,7 +59,7 @@ void CTestDlg::DoDataExchange(CDataExchange* pDX)
//}}AFX_DATA_MAP
}
-BEGIN_MESSAGE_MAP(CTestDlg, MyDialog)
+BEGIN_MESSAGE_MAP(CIvyProbeDlg, MyDialog)
//{{AFX_MSG_MAP(CTestDlg)
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_START, OnStart)
@@ -105,7 +105,7 @@ const char * CONVSTR( const CString& str )
/////////////////////////////////////////////////////////////////////////////
// CTestDlg message handlers
-BOOL CTestDlg::OnInitDialog()
+BOOL CIvyProbeDlg::OnInitDialog()
{
MyDialog::OnInitDialog();
@@ -207,12 +207,12 @@ BOOL CTestDlg::OnInitDialog()
// The system calls this to obtain the cursor to display while the user drags
// the minimized window.
-HCURSOR CTestDlg::OnQueryDragIcon()
+HCURSOR CIvyProbeDlg::OnQueryDragIcon()
{
return (HCURSOR) m_hIcon;
}
-void CTestDlg::OnStart()
+void CIvyProbeDlg::OnStart()
{
UpdateData(TRUE);
bus->stop();
@@ -221,7 +221,7 @@ void CTestDlg::OnStart()
UpdateData(FALSE);
}
-void CTestDlg::IvyCallback(IvyApplication *app, int argc, const char **argv)
+void CIvyProbeDlg::IvyCallback(IvyApplication *app, int argc, const char **argv)
{
int i;
CString text;
@@ -238,20 +238,20 @@ void CTestDlg::IvyCallback(IvyApplication *app, int argc, const char **argv)
-void CTestDlg::OnDirectMessage(IvyApplication *app, int id, const char *arg)
+void CIvyProbeDlg::OnDirectMessage(IvyApplication *app, int id, const char *arg)
{
TRACE(TEXT("Direct Msg Receive %d, %s\n"),id,arg );
}
-void CTestDlg::OnApplicationConnected(IvyApplication *app)
+void CIvyProbeDlg::OnApplicationConnected(IvyApplication *app)
{
WriteMessage( "Application: %s ready",(LPCSTR)(app->GetName()) );
}
-void CTestDlg::OnApplicationDisconnected(IvyApplication *app)
+void CIvyProbeDlg::OnApplicationDisconnected(IvyApplication *app)
{
WriteMessage( "Application: %s bye",(LPCSTR)(app->GetName()) );
}
-void CTestDlg::WriteMessage(const char *format, ...)
+void CIvyProbeDlg::WriteMessage(const char *format, ...)
{
char str[4096];
// format and write the data we were given
@@ -263,7 +263,7 @@ void CTestDlg::WriteMessage(const char *format, ...)
}
-void CTestDlg::OnClose()
+void CIvyProbeDlg::OnClose()
{
// TODO: Add your message handler code here and/or call default
TRACE ( TEXT("Quitting\n"));
@@ -273,7 +273,7 @@ void CTestDlg::OnClose()
}
-void CTestDlg::OnSend()
+void CIvyProbeDlg::OnSend()
{
CString buffer;
m_msg.SetEditSel( 0, -1 );
@@ -288,13 +288,13 @@ void CTestDlg::OnSend()
m_msg.Clear();
}
-void CTestDlg::OnBind()
+void CIvyProbeDlg::OnBind()
{
CString buffer;
m_expr.SetEditSel( 0, -1 );
m_expr.GetWindowText( buffer );
if ( buffer.IsEmpty() ) return;
- int count = bus->BindMsg( CONVSTR(buffer) , BUS_CALLBACK_OF(CTestDlg, IvyCallback ));
+ int count = bus->BindMsg( CONVSTR(buffer) , BUS_CALLBACK_OF(CIvyProbeDlg, IvyCallback ));
if ( m_expr.FindStringExact(-1, buffer) == CB_ERR )
{
m_expr.AddString( buffer );
@@ -303,56 +303,56 @@ void CTestDlg::OnBind()
m_expr.Clear();
}
-void CTestDlg::OnClockFastBackward()
+void CIvyProbeDlg::OnClockFastBackward()
{
CString buffer = "SetClock Rate=-9.0" ;
int count = bus->SendMsg( CONVSTR(buffer) );
WriteMessage( "Sending %d message %s",count,CONVSTR(buffer) );
}
-void CTestDlg::OnClockBackward()
+void CIvyProbeDlg::OnClockBackward()
{
CString buffer = "SetClock Rate=-1.0" ;
int count = bus->SendMsg( CONVSTR(buffer) );
WriteMessage( "Sending %d message %s",count,CONVSTR(buffer) );
}
-void CTestDlg::OnClockPause()
+void CIvyProbeDlg::OnClockPause()
{
CString buffer = "ClockPause" ;
int count = bus->SendMsg( CONVSTR(buffer) );
WriteMessage( "Sending %d message %s",count,CONVSTR(buffer) );
}
-void CTestDlg::OnClockStart()
+void CIvyProbeDlg::OnClockStart()
{
CString buffer = "ClockStart" ;
int count = bus->SendMsg( CONVSTR(buffer) );
WriteMessage( "Sending %d message %s",count,CONVSTR(buffer) );
}
-void CTestDlg::OnClockForward()
+void CIvyProbeDlg::OnClockForward()
{
CString buffer = "SetClock Rate=9.0" ;
int count = bus->SendMsg( CONVSTR(buffer) );
WriteMessage( "Sending %d message %s",count,CONVSTR(buffer) );
}
-void CTestDlg::OnClockFastForward()
+void CIvyProbeDlg::OnClockFastForward()
{
CString buffer = "SetClock Rate=100.0" ;
int count = bus->SendMsg( CONVSTR(buffer) );
WriteMessage( "Sending %d message %s",count,CONVSTR(buffer) );
}
-void CTestDlg::OnClockRate()
+void CIvyProbeDlg::OnClockRate()
{
CString buffer = "SetClock Rate=1.0" ;
int count = bus->SendMsg( CONVSTR(buffer) );
WriteMessage( "Sending %d message %s",count,CONVSTR(buffer) );
}
-void CTestDlg::OnLoad()
+void CIvyProbeDlg::OnLoad()
{
#ifndef UNDER_CE
// TODO ReadString doesn't existe
@@ -372,7 +372,7 @@ void CTestDlg::OnLoad()
#endif
}
-void CTestDlg::OnSave()
+void CIvyProbeDlg::OnSave()
{
#ifndef UNDER_CE
// TODO WriteString doesn't existe