Skip to content

Commit

Permalink
Multiselect uses label/wav value when appropiate
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoru committed Jan 13, 2018
1 parent 06a3247 commit a3a09c7
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 76 deletions.
66 changes: 33 additions & 33 deletions iBMSC/MainWindow.designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 37 additions & 37 deletions iBMSC/MainWindow.resx
Original file line number Diff line number Diff line change
Expand Up @@ -148,43 +148,43 @@
<data name="TBWavIncrease.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAheSURBVFhHvZZ7UNNXFsd/vHXd1q6tndmuLVQsKCoiEkAQ
IwgqYUF5CUSx1W6t09WxWlFrdVMVLA95BHm/DBheSSABwitAYgAVqEVEKasiYm2VhIeu1voHrd+9v5DC
pmAH3Jmemc/8Jje/e873nHvvuT+KNkEgZaDgMA0VHMpQM/BHGodD6Wfus5pzlmNpls95Z752+I8zOvOz
HFOzmE8Xh0bvtzkjjlxxsDHJKqT2qzdWl3NmvJO+gjLSvkp51f9J4lGm99yjSg/ulYQKPawt18daiT7c
xIQSfawrnVWpfX1qRpedzjxmn01S/EF7VHGd0ZrN6GtOtiq+mGr5cXOSlU1tjPUs+l0SfKTuaT7qfuJP
SsNPhXATGoHJMZ1BXtej50zJAinKoDSa8UV1oguuiwJxp+L9kduVQYO3KvzvXC12V1RFLowQHHnLxkOs
N1L79BwShj9GzNB2HeKHdkJGRLgVG+GVt6jXKeY091NTqvW2tiwnVY90+/PhtgNQt+xFrywUlws8IY20
vsU/tDDcK3vGz9WPeTg9tAOnBkN0iBn6QCPAtcgI1AzKlFpAmWhdT83qot90b0y2rOyrDno40LYPqrY9
6KoIRWPO31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EMUDp7Bzm4W3m+xRQTXCkXRHrggOAB5eY4m+NXOq2hrbYe88TxaWi6h
WFiE8FO74RFhqsmcDm7xN4aShNQ9BbRpm8NcAv0nrZAu0zh2WYajfDUX7/Y4I/C6NXZKFuNznhdEBYlQ
Khvw1ZVutF5qQ0vzRSgUzZDK5BBn5kC0++/fZ7u68w7Oneuv9Uv7/wNh0keLnrY50Mro8oxBLhYTFjXL
LsNwNF+VgK3djvDtWqbh/SYvJBZyoWhqRtfVa2hsUKBRrkQDeRbk5EF69Dg6Q0Mhd3FRiZYty0ywsLBY
QFGziV/dTjgdW5luOJo3EI+ga0x4dy7R4HfZFh+c3wSu5DTKy6W4RMpf1SAHP4eHhkNH0BW2Hf2+vuhh
s3HRxaW/2NIym2dmtlLrcma2MpUxenYgDgFdtmB3mI/j/eVS7KkLBa8iF2USMUSZ2RCGH0aTfwA6PTzw
NaGLcIHFQsXy5feFy5d/wKEoI+JyZhWwTSYCHsTB/6oNPDve0SGgg4mMy/E4Fh2OnD37flR4+0Du5AQ5
kwmFoyPkhAaCjFBhaxudbGpqIiAfw1rX0zPbMy8W4Nu5Atl348CONEeWm5tIymQ+UTo5o87ODmTtIbaz
e15rbw+xjQ0EVlacjIUL55KzOLMK2HDHBIReWwW/TmsdgrscQC+PfeRsHJs/b7vIcqmgzsHhgZQIEBAB
5ba2EK9Y8axo2bLW/KVL6dMws+C02SQyRvMHEsEjG3EqzqmSYH9yNv1FtIi7aJFN0ZIlIrGl5aMqknkp
yZwEb8tbsmRThrn561qXMzPnhDkSxwij5/R9Tl+p9K1GXyx0b/9Fk1nAmj//9wXm5quFVlYHSdkzi62s
YkjmwWSMDj7z7H82bbN6jTBVs/q5ydD/a5pM1oIF89Lefts+xczsTYGlJb3z/2+j1U9uVhPQ4+NNhhw3
fTowveMnbzqK+i+0KibWP70jiwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="FStatus2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
Expand Down
2 changes: 1 addition & 1 deletion iBMSC/PanelDraw.vb
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ Partial Public Class MainWindow

If ModifierMultiselectActive() Then
For Each note In Notes
If IsNoteVisible(note, xTHeight, xVS) And note.Value = Notes(KMouseOver).Value Then
If IsNoteVisible(note, xTHeight, xVS) AndAlso IsLabelMatch(note, KMouseOver) Then
Dim nrect = GetNoteRectangle(note, xTHeight, xHS, xVS)
e1.Graphics.DrawRectangle(pen, nrect.X, nrect.Y, nrect.Width - 1, nrect.Height - 1)
End If
Expand Down
26 changes: 21 additions & 5 deletions iBMSC/PanelEvents.vb
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,26 @@ Partial Public Class MainWindow

Private Sub SelectAllWithHoveredNoteLabel()
For xI1 = 0 To UBound(Notes)
If Notes(xI1).Value = Notes(KMouseOver).Value Then
Notes(xI1).Selected = True
End If
Notes(xI1).Selected = IIf(IsLabelMatch(Notes(xI1), KMouseOver), True, Notes(xI1).Selected)
Next
End Sub

Private Function IsLabelMatch(note As Note, index As Integer) As Boolean
If TBShowFileName.Checked Then
Dim wavidx = Notes(index).Value / 10000
Dim wav = hWAV(wavidx)
If hWAV(note.Value / 10000) = wav Then
Return True
End If
Else
If note.Value = Notes(index).Value Then
Return True
End If
End If

Return False
End Function

Private Sub DecreaseCurrentWav()
If LWAV.SelectedIndex = -1 Then
LWAV.SelectedIndex = 0
Expand Down Expand Up @@ -726,8 +740,10 @@ Partial Public Class MainWindow

ElseIf ModifierMultiselectActive() Then
For xI1 = 0 To UBound(Notes)
If Notes(xI1).Value = Notes(NoteIndex).Value And IsNoteVisible(xI1, xTHeight, xVS) Then
Notes(xI1).Selected = Not Notes(xI1).Selected
If IsNoteVisible(xI1, xTHeight, xVS) Then
If IsLabelMatch(Notes(xI1), NoteIndex) Then
Notes(xI1).Selected = Not Notes(xI1).Selected
End If
End If
Next
Else
Expand Down

0 comments on commit a3a09c7

Please sign in to comment.