[Sofaswitch-svn] [commit] r218 - sofaswitch/trunk/callflow/src
Author: derek Date: Tue Dec 5 16:28:59 2006 New Revision: 218 Modified: sofaswitch/trunk/callflow/src/transfermedia.cpp Log: Fix up a booboo in the text. Modified: sofaswitch/trunk/callflow/src/transfermedia.cpp ============================================================================== --- sofaswitch/trunk/callflow/src/transfermedia.cpp (original) +++ sofaswitch/trunk/callflow/src/transfermedia.cpp Tue Dec 5 16:28:59 2006 @@ -1,13 +1,13 @@ -#include "wx/wxprec.h" +#include "wx/wxprec.h" -#ifdef __BORLANDC__ -#pragma hdrstop -#endif +#ifdef __BORLANDC__ +#pragma hdrstop +#endif -#ifndef WX_PRECOMP -#include "wx/wx.h" -#endif +#ifndef WX_PRECOMP +#include "wx/wx.h" +#endif #include <wx/textfile.h> #include <wx/tokenzr.h> #include "shapelist.h" @@ -22,14 +22,14 @@ { wxSize newSize(50, 50); SetSize(newSize); - + relInputPoints.Add(25, 0); relOutputPoints.Add(25, 50); - displayData[displayData.size()] = + displayData[displayData.size()] = InformationSection(wxT("First SofaSwitch worker (python)"), wxT("voip1")); - displayData[displayData.size()] = + displayData[displayData.size()] = InformationSection(wxT("Second SofaSwitch worker (python)"), wxT("am1")); AdjustIoPoints(); @@ -63,7 +63,7 @@ DrawArrow(dc, pA, ArrowDown, InputPointConnected(0) ? Connected : Loose); DrawArrow(dc, pB, ArrowDown, OutputPointConnected(0) ? Connected : Loose); - + DndShape::Draw(dc); } @@ -88,7 +88,7 @@ file.AddLine(" self.transport.write(self.rhost) "); file.AddLine(" return self.data[a][\"Output\"] "); file.AddLine(""); - + return true; } @@ -117,20 +117,20 @@ bool DndShapeTransferMedia::TestInternalVariables() { DndShape::TestInternalVariables(); - + bool firstEmpty = displayData[1].data.IsEmpty(); bool secondEmpty = displayData[2].data.IsEmpty(); - if (firstEmpty) + if (firstEmpty) SetCompileError(wxT("You must supply a valid python expression as the name of the first SofaSwitch worker")); - if (secondEmpty) + if (secondEmpty) SetCompileError(wxT("You must supply a valid python expression as the name of the second SofaSwitch worker")); if (firstEmpty && secondEmpty) SetCompileError(wxT("You must supply a valid python expression for the names of the two SofaSwitch workers")); - if (firstEmpty || secondEmpty) + if (firstEmpty || secondEmpty) return false; return true;
participants (1)
-
SofaSWITCH SVN