[commit] r179 - in sofaswitch/trunk: callflow/src voip
Author: derek Date: Mon Nov 13 00:59:55 2006 New Revision: 179 Modified: sofaswitch/trunk/callflow/src/python.cpp sofaswitch/trunk/voip/comms.cxx Log: Change gtraphics. Modified: sofaswitch/trunk/callflow/src/python.cpp ============================================================================== --- sofaswitch/trunk/callflow/src/python.cpp (original) +++ sofaswitch/trunk/callflow/src/python.cpp Mon Nov 13 00:59:55 2006 @@ -14,8 +14,8 @@ #include "python.h" +#include "bitmaps/Python.xpm" - ///////////////////////////////////////////////////////////////////////////// DndShapePython::DndShapePython() : DndShape(Python) @@ -39,34 +39,17 @@ dc.SetPen(*wxBLACK_PEN); wxPoint p1(m_rect.GetPosition()); - wxPoint pA(p1.x + 25, p1.y + 15); + wxPoint pA(p1.x + 25, p1.y + 9); wxPoint pB(p1.x + 25, p1.y + 0); wxPoint pC(p1.x + 25, p1.y + 50); + wxPoint pD(p1.x + 25, p1.y + 41); DrawArrow(dc, pA, ArrowDown, InputPointConnected(0) ? Connected : Loose); DrawArrow(dc, pC, ArrowDown, OutputPointConnected(0) ? Connected : Loose); - dc.DrawLine(pC, pB); + dc.DrawLine(pA, pB); + dc.DrawLine(pD, pC); - DrawBox(dc, 0, 10, 21, 21); - DrawBox(dc, 29, 10, 21, 21); - - wxString text("Pyt"); - dc.SetFont(*wxITALIC_FONT); - wxCoord w, h; - dc.GetTextExtent(text, &w, &h); - int xPos = m_rect.x + 0 + ((21 - w)/2); - int yPos = m_rect.y + 10 + ((21 - h)/2); - dc.DrawText(text, xPos, yPos); - - text = "hon"; - dc.GetTextExtent(text, &w, &h); - xPos = m_rect.x + 29 + ((21 - w)/2); - yPos = m_rect.y + 10 + ((21 - h)/2); - dc.DrawText(text, xPos, yPos); - - - DrawBox(dc, 0, 35, 13, 13); - DrawBox(dc, 37, 35, 13, 13); + dc.DrawBitmap(Python_xpm, p1.x + 9, p1.y + 9, true); DndShape::Draw(dc); } Modified: sofaswitch/trunk/voip/comms.cxx ============================================================================== --- sofaswitch/trunk/voip/comms.cxx (original) +++ sofaswitch/trunk/voip/comms.cxx Mon Nov 13 00:59:55 2006 @@ -23,6 +23,9 @@ #include <ptlib.h> +#include <opal/mediafmt.h> +//#include <codec/allcodecs.h> + #ifdef __GNUC__ #pragma implementation "comms.h" #endif
participants (1)
-
SofaSWITCH SVN