public void executeAction_onFunctionSelect(Node nSelectedNode)
        {
            if (rbOnFunctionSelect_Show.Checked)
            {
                Int32 iNameSpaceDepth;
                Int32.TryParse(cBoxShowFunctionClass_Depth.Text, out iNameSpaceDepth);
                nSelectedNode.NodeAttribute.Label = FilteredSignature.filterSignature(nSelectedNode.Id,
                                                                                      cbGLEE_ShowParameters.Checked,
                                                                                      cbGLEE_ShowReturnClass.Checked,
                                                                                      cbGLEE_ShowNamespace.Checked,
                                                                                      iNameSpaceDepth);
                nSelectedNode.NodeAttribute.Shape = Shape.Box;
            }
            else if (rbOnFunctionSelect_Clear.Checked)
            {
                O2Graph.makeEmptyNode(nSelectedNode);
            }
            else if (rbOnFunctionSelect_Remove.Checked)
            {
                O2Graph.deleteNodeFromGraph(fgdGraphData, nSelectedNode, true);
            }
            else if (rbOnFunctionSelect_HighlightAllCalls_To.Checked)
            {
                applyFiltersToGraph(fgdGraphData.gGraph, true);
                highlighCallsToNode_Recursive(nSelectedNode);
                highlighCallsFromNode_Recursive(nSelectedNode);
            }
            else
            {
            }
            //else if (rbOnFunctionSelect_SClear.Checked)

            /*
             */
        }
        public override string ToString()
        {
            String     sStringToFilter  = Signature;
            const bool bShowParameters  = true;
            const bool bShowReturnClass = false;
            const bool bShowNamespace   = false;
            const int  iNamespaceDepth  = 1;

            return(FilteredSignature.filterSignature(sStringToFilter, bShowParameters, bShowReturnClass, bShowNamespace,
                                                     iNamespaceDepth));
        }
        public override string ToString()
        {
            if (false == OnlyShowFunctionNameInToString)
            {
                return(FunctionSignature);
            }

            String     sStringToFilter  = FunctionSignature;
            const bool bShowParameters  = true;
            const bool bShowReturnClass = true;
            const bool bShowNamespace   = true;
            const int  iNamespaceDepth  = 1;

            return(FilteredSignature.filterSignature(sStringToFilter, bShowParameters, bShowReturnClass, bShowNamespace,
                                                     iNamespaceDepth));
        }
Beispiel #4
0
 public static void makeLostSourcesVisible(GraphData fgdGraphData, bool bShowParameters, bool bShowReturnClass,
                                           bool bShowNamespace, int iNamespaceDepth)
 {
     foreach (String sNode in fgdGraphData.dNodes.Keys)
     {
         if (false == fgdGraphData.dNodeIsCalledBy.ContainsKey(sNode))
         {
             fgdGraphData.dNodes[sNode].NodeAttribute.Label = FilteredSignature.filterSignature(sNode,
                                                                                                bShowParameters,
                                                                                                bShowReturnClass,
                                                                                                bShowNamespace,
                                                                                                iNamespaceDepth);
             ;
             fgdGraphData.dNodes[sNode].NodeAttribute.Shape = Shape.Box;
             if (fgdGraphData.lnEmptyNodes.Contains(fgdGraphData.dNodes[sNode]))
             {
                 fgdGraphData.lnEmptyNodes.Remove(fgdGraphData.dNodes[sNode]);
             }
         }
     }
 }