Skip to content

Commit 2254588

Browse files
committed
Changed method names.
1 parent f728428 commit 2254588

16 files changed

+63
-63
lines changed

ReClass.NET/Nodes/BaseFunctionPtrNode.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected Size Draw(ViewInfo view, int x, int y, string type, string name)
5151
x = AddText(view, x, y, view.Settings.NameColor, HotSpot.NameId, name) + view.Font.Width;
5252
}
5353

54-
x = AddOpenClose(view, x, y) + view.Font.Width;
54+
x = AddOpenCloseIcon(view, x, y) + view.Font.Width;
5555

5656
x = AddComment(view, x, y);
5757

@@ -71,9 +71,9 @@ protected Size Draw(ViewInfo view, int x, int y, string type, string name)
7171
}
7272
}
7373

74-
DrawInvalidMemoryIndicator(view, y);
75-
AddTypeDrop(view, y);
76-
AddDelete(view, y);
74+
DrawInvalidMemoryIndicatorIcon(view, y);
75+
AddContextDropDownIcon(view, y);
76+
AddDeleteIcon(view, y);
7777

7878
var size = new Size(x - origX, view.Font.Height);
7979

ReClass.NET/Nodes/BaseHexNode.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics.Contracts;
44
using System.Drawing;
@@ -88,9 +88,9 @@ protected Size Draw(ViewInfo view, int x, int y, string text, int length)
8888

8989
x = AddComment(view, x, y);
9090

91-
DrawInvalidMemoryIndicator(view, y);
92-
AddTypeDrop(view, y);
93-
AddDelete(view, y);
91+
DrawInvalidMemoryIndicatorIcon(view, y);
92+
AddContextDropDownIcon(view, y);
93+
AddDeleteIcon(view, y);
9494

9595
return new Size(x - origX, view.Font.Height);
9696
}

ReClass.NET/Nodes/BaseMatrixNode.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ protected Size DrawMatrixType(ViewInfo view, int x, int y, string type, DrawMatr
4545
{
4646
x = AddText(view, x, y, view.Settings.NameColor, HotSpot.NameId, Name);
4747
}
48-
x = AddOpenClose(view, x, y);
48+
x = AddOpenCloseIcon(view, x, y);
4949

5050
x += view.Font.Width;
5151

5252
x = AddComment(view, x, y);
5353

54-
DrawInvalidMemoryIndicator(view, y);
55-
AddTypeDrop(view, y);
56-
AddDelete(view, y);
54+
DrawInvalidMemoryIndicatorIcon(view, y);
55+
AddContextDropDownIcon(view, y);
56+
AddDeleteIcon(view, y);
5757

5858
if (LevelsOpen[view.Level])
5959
{
@@ -75,7 +75,7 @@ protected Size DrawVectorType(ViewInfo view, int x, int y, string type, DrawVect
7575
return DrawHidden(view, x, y);
7676
}
7777

78-
DrawInvalidMemoryIndicator(view, y);
78+
DrawInvalidMemoryIndicatorIcon(view, y);
7979

8080
var origX = x;
8181
var origY = y;
@@ -92,7 +92,7 @@ protected Size DrawVectorType(ViewInfo view, int x, int y, string type, DrawVect
9292
{
9393
x = AddText(view, x, y, view.Settings.NameColor, HotSpot.NameId, Name);
9494
}
95-
x = AddOpenClose(view, x, y);
95+
x = AddOpenCloseIcon(view, x, y);
9696

9797
if (LevelsOpen[view.Level])
9898
{
@@ -103,8 +103,8 @@ protected Size DrawVectorType(ViewInfo view, int x, int y, string type, DrawVect
103103

104104
x = AddComment(view, x, y);
105105

106-
AddTypeDrop(view, y);
107-
AddDelete(view, y);
106+
AddContextDropDownIcon(view, y);
107+
AddDeleteIcon(view, y);
108108

109109
return new Size(x - origX, y - origY + view.Font.Height);
110110
}

ReClass.NET/Nodes/BaseNode.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics;
44
using System.Diagnostics.Contracts;
@@ -420,7 +420,7 @@ protected int AddIcon(ViewInfo view, int x, int y, Image icon, int id, HotSpotTy
420420
/// <param name="x">The x coordinate.</param>
421421
/// <param name="y">The y coordinate.</param>
422422
/// <returns>The new x coordinate after drawing the icon.</returns>
423-
protected int AddOpenClose(ViewInfo view, int x, int y)
423+
protected int AddOpenCloseIcon(ViewInfo view, int x, int y)
424424
{
425425
Contract.Requires(view != null);
426426
Contract.Requires(view.Context != null);
@@ -433,10 +433,10 @@ protected int AddOpenClose(ViewInfo view, int x, int y)
433433
return AddIcon(view, x, y, LevelsOpen[view.Level] ? Icons.OpenCloseOpen : Icons.OpenCloseClosed, 0, HotSpotType.OpenClose);
434434
}
435435

436-
/// <summary>Draws a type drop icon if the node is selected.</summary>
436+
/// <summary>Draws a context drop icon if the node is selected.</summary>
437437
/// <param name="view">The view information.</param>
438438
/// <param name="y">The y coordinate.</param>
439-
protected void AddTypeDrop(ViewInfo view, int y)
439+
protected void AddContextDropDownIcon(ViewInfo view, int y)
440440
{
441441
Contract.Requires(view != null);
442442
Contract.Requires(view.Context != null);
@@ -455,7 +455,7 @@ protected void AddTypeDrop(ViewInfo view, int y)
455455
/// <summary>Draws a delete icon if the node is selected.</summary>
456456
/// <param name="view">The view information.</param>
457457
/// <param name="y">The y coordinate.</param>
458-
protected void AddDelete(ViewInfo view, int y)
458+
protected void AddDeleteIcon(ViewInfo view, int y)
459459
{
460460
Contract.Requires(view != null);
461461
Contract.Requires(view.Context != null);
@@ -509,7 +509,7 @@ protected Size DrawHidden(ViewInfo view, int x, int y)
509509
/// <summary>Draws an error indicator if the used memory buffer is not valid.</summary>
510510
/// <param name="view">The view information.</param>
511511
/// <param name="y">The y coordinate.</param>
512-
protected void DrawInvalidMemoryIndicator(ViewInfo view, int y)
512+
protected void DrawInvalidMemoryIndicatorIcon(ViewInfo view, int y)
513513
{
514514
if (!view.Memory.ContainsValidData)
515515
{

ReClass.NET/Nodes/BaseNumericNode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ protected Size DrawNumeric(ViewInfo view, int x, int y, Image icon, string type,
5050

5151
x = AddComment(view, x, y);
5252

53-
DrawInvalidMemoryIndicator(view, y);
54-
AddTypeDrop(view, y);
55-
AddDelete(view, y);
53+
DrawInvalidMemoryIndicatorIcon(view, y);
54+
AddContextDropDownIcon(view, y);
55+
AddDeleteIcon(view, y);
5656

5757
return new Size(x - origX, view.Font.Height);
5858
}

ReClass.NET/Nodes/BaseTextNode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ protected Size DrawText(ViewInfo view, int x, int y, string type)
6060

6161
x = AddComment(view, x, y);
6262

63-
DrawInvalidMemoryIndicator(view, y);
64-
AddTypeDrop(view, y);
65-
AddDelete(view, y);
63+
DrawInvalidMemoryIndicatorIcon(view, y);
64+
AddContextDropDownIcon(view, y);
65+
AddDeleteIcon(view, y);
6666

6767
return new Size(x - origX, view.Font.Height);
6868
}

ReClass.NET/Nodes/BaseTextPtrNode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public Size DrawText(ViewInfo view, int x, int y, string type)
5252

5353
x = AddComment(view, x, y);
5454

55-
DrawInvalidMemoryIndicator(view, y);
56-
AddTypeDrop(view, y);
57-
AddDelete(view, y);
55+
DrawInvalidMemoryIndicatorIcon(view, y);
56+
AddContextDropDownIcon(view, y);
57+
AddDeleteIcon(view, y);
5858

5959
return new Size(x - origX, view.Font.Height);
6060
}

ReClass.NET/Nodes/BaseWrapperArrayNode.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected Size Draw(ViewInfo view, int x, int y, string type)
3838

3939
AddSelection(view, x, y, view.Font.Height);
4040

41-
x = AddOpenClose(view, x, y);
41+
x = AddOpenCloseIcon(view, x, y);
4242
x = AddIcon(view, x, y, Icons.Array, HotSpot.NoneId, HotSpotType.None);
4343

4444
var tx = x;
@@ -65,9 +65,9 @@ protected Size Draw(ViewInfo view, int x, int y, string type)
6565
x += view.Font.Width;
6666
x = AddComment(view, x, y);
6767

68-
DrawInvalidMemoryIndicator(view, y);
69-
AddTypeDrop(view, y);
70-
AddDelete(view, y);
68+
DrawInvalidMemoryIndicatorIcon(view, y);
69+
AddContextDropDownIcon(view, y);
70+
AddDeleteIcon(view, y);
7171

7272
y += view.Font.Height;
7373

ReClass.NET/Nodes/BitFieldNode.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public override Size Draw(ViewInfo view, int x, int y)
134134
x = AddText(view, x, y, view.Settings.NameColor, HotSpot.NameId, Name) + view.Font.Width;
135135
}
136136

137-
x = AddOpenClose(view, x, y) + view.Font.Width;
137+
x = AddOpenCloseIcon(view, x, y) + view.Font.Width;
138138

139139
var tx = x - 3;
140140

@@ -149,9 +149,9 @@ public override Size Draw(ViewInfo view, int x, int y)
149149

150150
x = AddComment(view, x, y);
151151

152-
DrawInvalidMemoryIndicator(view, y);
153-
AddTypeDrop(view, y);
154-
AddDelete(view, y);
152+
DrawInvalidMemoryIndicatorIcon(view, y);
153+
AddContextDropDownIcon(view, y);
154+
AddDeleteIcon(view, y);
155155

156156
if (LevelsOpen[view.Level])
157157
{

ReClass.NET/Nodes/BoolNode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ public override Size Draw(ViewInfo view, int x, int y)
4040

4141
x = AddComment(view, x, y);
4242

43-
DrawInvalidMemoryIndicator(view, y);
44-
AddTypeDrop(view, y);
45-
AddDelete(view, y);
43+
DrawInvalidMemoryIndicatorIcon(view, y);
44+
AddContextDropDownIcon(view, y);
45+
AddDeleteIcon(view, y);
4646

4747
return new Size(x - origX, view.Font.Height);
4848
}

0 commit comments

Comments
 (0)