Skip to content

Commit 2a6671a

Browse files
committed
Add more search options to 'Search & Replace'
1 parent 6d4b2b3 commit 2a6671a

File tree

5 files changed

+305
-229
lines changed

5 files changed

+305
-229
lines changed

BasicPawn/Classes/ClassTools.vb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ Public Class ClassTools
201201

202202
Return iBytes.ToString("0.##") & " " & sNames(i)
203203
End Function
204-
205204
End Class
206205

207206
Class ClassControls

BasicPawn/Classes/FormMain/ClassTabControl.vb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,20 @@ Public Class ClassTabControl
302302
Return -1
303303
End Function
304304

305+
Public Function GetTabByFile(sFile As String) As ClassTabControl.SourceTabPage
306+
If (String.IsNullOrEmpty(sFile)) Then
307+
Return Nothing
308+
End If
309+
310+
For i = 0 To m_TabsCount - 1
311+
If (Not m_Tab(i).m_IsUnsaved AndAlso m_Tab(i).m_File.ToLower = sFile.ToLower) Then
312+
Return m_Tab(i)
313+
End If
314+
Next
315+
316+
Return Nothing
317+
End Function
318+
305319
Private Sub OnSwitchTabDelay(sender As Object, e As EventArgs) Handles g_mTimer.Tick
306320
g_mTimer.Stop()
307321

BasicPawn/Controls and Forms/FormSearch.Designer.vb

Lines changed: 75 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)