diff options
author | fcolin | 2007-02-01 13:11:06 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 13:11:06 +0000 |
commit | 8576e4d65fb5683bda81d2a4d40327e0f34f4804 (patch) | |
tree | c363a0ba49c53a2211950e4548a4d60724b1b6b3 /IvyProbe/IvyProbeDlg.cpp | |
parent | 49e3b1e92ab32714523690991027b5bc0cbb18ef (diff) | |
download | ivy-cplusplus-8576e4d65fb5683bda81d2a4d40327e0f34f4804.zip ivy-cplusplus-8576e4d65fb5683bda81d2a4d40327e0f34f4804.tar.gz ivy-cplusplus-8576e4d65fb5683bda81d2a4d40327e0f34f4804.tar.bz2 ivy-cplusplus-8576e4d65fb5683bda81d2a4d40327e0f34f4804.tar.xz |
Utilisateur : Fcolin Date : 6/06/06 Heure : 16:43 Archivé dans $/Bus/IvyProbe Commentaire: (vss 21)
Diffstat (limited to 'IvyProbe/IvyProbeDlg.cpp')
-rw-r--r-- | IvyProbe/IvyProbeDlg.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/IvyProbe/IvyProbeDlg.cpp b/IvyProbe/IvyProbeDlg.cpp index 997ae6f..3d0e7b2 100644 --- a/IvyProbe/IvyProbeDlg.cpp +++ b/IvyProbe/IvyProbeDlg.cpp @@ -157,6 +157,7 @@ BOOL CIvyProbeDlg::OnInitDialog() m_busnumber = cmd.m_busNumber;
bus = new Ivy( "IvyProbe Windows","IvyProbe Windows Ready",this,FALSE);
+ bus->SetBindCallback( this );
// bus->BindMsg("(.*)", BUS_CALLBACK_OF(CTestDlg, IvyCallback ));
@@ -203,7 +204,7 @@ void CIvyProbeDlg::OnStart() UpdateData(FALSE);
}
-void CIvyProbeDlg::IvyCallback(IvyApplication *app, int argc, const char **argv)
+void CIvyProbeDlg::OnMessage(IvyApplication *app, int argc, const char **argv)
{
int i;
CString text;
@@ -233,6 +234,20 @@ void CIvyProbeDlg::OnApplicationDisconnected(IvyApplication *app) {
WriteMessage( "Application: %s bye",(LPCSTR)(app->GetName()) );
}
+
+void CIvyProbeDlg::OnAddBind (IvyApplication *app, int id, const char * regexp)
+{
+ WriteMessage( "Application: %s Add Binding %s",(LPCSTR)(app->GetName()), regexp );
+}
+void CIvyProbeDlg::OnRemoveBind (IvyApplication *app, int id, const char * regexp)
+{
+ WriteMessage( "Application: %s Remove Binding %s",(LPCSTR)(app->GetName()), regexp );
+}
+void CIvyProbeDlg::OnFilterBind (IvyApplication *app, int id, const char * regexp)
+{
+ WriteMessage( "Application: %s Filtered Binding %s",(LPCSTR)(app->GetName()), regexp );
+}
+
void CIvyProbeDlg::WriteMessage(const char *format, ...)
{
char str[4096];
@@ -280,7 +295,7 @@ void CIvyProbeDlg::OnBind() m_expr.SetEditSel( 0, -1 );
m_expr.GetWindowText( buffer );
if ( buffer.IsEmpty() ) return;
- int count = bus->BindMsg( CONVSTR(buffer) , BUS_CALLBACK_OF(CIvyProbeDlg, IvyCallback ));
+ int count = bus->BindMsg( CONVSTR(buffer) , this );
if ( m_expr.FindStringExact(-1, buffer) == CB_ERR )
{
m_expr.AddString( buffer );
|