Changeset 1304
- Timestamp:
- 2/8/2010 2:47:09 PM (5 weeks ago)
- Location:
- branches/EveHQv2
- Files:
-
- 3 added
- 10 modified
-
EveHQ.Core/EveHQ.Core.vbproj (modified) (1 diff)
-
EveHQ.Core/Reports.vb (modified) (4 diffs)
-
EveHQ.Core/SkillQueue.vb (added)
-
EveHQ.Core/SkillQueueFunctions.vb (modified) (4 diffs)
-
EveHQ.Core/SkillQueueItem.vb (added)
-
EveHQ.Core/SortedQueueItem.vb (added)
-
EveHQ.Creation/frmCharCreate.vb (modified) (2 diffs)
-
EveHQ/Controls/DBControls/DBCSkillQueueInfo.vb (modified) (1 diff)
-
EveHQ/Forms/frmEveHQ.vb (modified) (3 diffs)
-
EveHQ/Forms/frmImplants.vb (modified) (1 diff)
-
EveHQ/Forms/frmNeuralRemap.vb (modified) (1 diff)
-
EveHQ/Forms/frmSettings.vb (modified) (2 diffs)
-
EveHQ/Forms/frmTraining.vb (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/EveHQv2/EveHQ.Core/EveHQ.Core.vbproj
r1303 r1304 154 154 </Compile> 155 155 <Compile Include="SkillFunctions.vb" /> 156 <Compile Include="SkillQueue.vb" /> 156 157 <Compile Include="SkillQueueFunctions.vb" /> 158 <Compile Include="SkillQueueItem.vb" /> 159 <Compile Include="SortedQueueItem.vb" /> 157 160 <Compile Include="SplitButton.vb"> 158 161 <SubType>Component</SubType> -
branches/EveHQv2/EveHQ.Core/Reports.vb
r1137 r1304 1031 1031 1032 1032 For skill As Integer = 0 To arrQueue.Count - 1 1033 Dim qItem As EveHQ.Core.SortedQueue = CType(arrQueue(skill), EveHQ.Core.SortedQueue)1033 Dim qItem As EveHQ.Core.SortedQueueItem = CType(arrQueue(skill), EveHQ.Core.SortedQueueItem) 1034 1034 Dim skillName As String = qItem.Name 1035 1035 Dim curLevel As String = qItem.CurLevel … … 1098 1098 Dim skillPriceList As New ArrayList 1099 1099 For skill As Integer = 0 To arrQueue.Count - 1 1100 Dim qItem As EveHQ.Core.SortedQueue = CType(arrQueue(skill), SortedQueue)1100 Dim qItem As EveHQ.Core.SortedQueueItem = CType(arrQueue(skill), SortedQueueItem) 1101 1101 Dim skillName As String = qItem.Name 1102 1102 If rpilot.PilotSkills.Contains(skillName) = False Then … … 2893 2893 2894 2894 For skill As Integer = 0 To arrQueue.Count - 1 2895 Dim qItem As EveHQ.Core.SortedQueue = CType(arrQueue(skill), SortedQueue)2895 Dim qItem As EveHQ.Core.SortedQueueItem = CType(arrQueue(skill), SortedQueueItem) 2896 2896 Dim skillName As String = qItem.Name 2897 2897 Dim curLevel As String = qItem.CurLevel … … 2957 2957 Dim skillPriceList As New ArrayList 2958 2958 For skill As Integer = 0 To arrQueue.Count - 1 2959 Dim qItem As EveHQ.Core.SortedQueue = CType(arrQueue(skill), SortedQueue)2959 Dim qItem As EveHQ.Core.SortedQueueItem = CType(arrQueue(skill), SortedQueueItem) 2960 2960 Dim skillName As String = qItem.Name 2961 2961 If rpilot.PilotSkills.Contains(skillName) = False Then -
branches/EveHQv2/EveHQ.Core/SkillQueueFunctions.vb
r1231 r1304 98 98 End If 99 99 100 Dim qItem As EveHQ.Core.SortedQueue = New EveHQ.Core.SortedQueue100 Dim qItem As New EveHQ.Core.SortedQueueItem 101 101 qItem.IsTraining = True 102 102 qItem.IsInjected = True … … 303 303 ' Get the time taken to train to that level 304 304 Dim cTime As Integer 305 Dim qItem As EveHQ.Core.SortedQueue = New EveHQ.Core.SortedQueue305 Dim qItem As New EveHQ.Core.SortedQueueItem 306 306 qItem.IsInjected = qPilot.PilotSkills.Contains(myskill.Name) 307 307 … … 1151 1151 Dim count As Integer = 1 1152 1152 If qList IsNot Nothing Then 1153 For Each qItem As EveHQ.Core.SortedQueue In qList1153 For Each qItem As EveHQ.Core.SortedQueueItem In qList 1154 1154 If qItem.IsTraining = False Then 1155 1155 If qItem.Done = False Then … … 1390 1390 End Class 1391 1391 1392 <Serializable()> Public Class SkillQueueItem1393 Implements System.ICloneable1394 Public Key As String1395 Public Name As String1396 Public FromLevel As Integer1397 Public ToLevel As Integer1398 Public Pos As Integer1399 Public Priority As Integer1400 Public Notes As String1401 Public Function Clone() As Object Implements System.ICloneable.Clone1402 Dim R As SkillQueue = CType(Me.MemberwiseClone, SkillQueue)1403 Return R1404 End Function1405 End Class1406 Public Class SortedQueue1407 Public Done As Boolean1408 Public Key As String1409 Public ID As String1410 Public Name As String1411 Public CurLevel As String1412 Public FromLevel As String1413 Public ToLevel As String1414 Public PartTrained As Boolean1415 Public IsInjected As Boolean1416 Public Percent As String1417 Public TrainTime As String1418 Public DateFinished As Date1419 Public Rank As String1420 Public PAtt As String1421 Public SAtt As String1422 Public SPRate As String1423 Public SPTrained As String1424 Public IsTraining As Boolean1425 Public IsPrereq As Boolean1426 Public Prereq As String1427 Public HasPrereq As Boolean1428 Public Reqs As String1429 Public Priority As Integer1430 Public Notes As String1431 End Class1432 <Serializable()> Public Class SkillQueue1433 Implements System.ICloneable1434 Public Name As String1435 Public IncCurrentTraining As Boolean = True1436 Public Queue As New Collection1437 Public Primary As Boolean1438 Public QueueTime As Long1439 Public QueueSkills As Integer1440 1441 Public Function Clone() As Object Implements System.ICloneable.Clone1442 Dim newQueue As SkillQueue = CType(Me.MemberwiseClone, SkillQueue)1443 1444 Dim newQ As New Collection1445 For Each qItem As EveHQ.Core.SkillQueueItem In Me.Queue1446 Dim nItem As New EveHQ.Core.SkillQueueItem1447 nItem.ToLevel = qItem.ToLevel1448 nItem.FromLevel = qItem.FromLevel1449 nItem.Name = qItem.Name1450 nItem.Key = nItem.Name & nItem.FromLevel & nItem.ToLevel1451 nItem.Pos = qItem.Pos1452 nItem.Notes = qItem.Notes1453 nItem.Priority = qItem.Priority1454 newQ.Add(nItem, nItem.Key)1455 Next1456 newQueue.Queue = newQ1457 Return newQueue1458 1459 End Function1460 End Class -
branches/EveHQv2/EveHQ.Creation/frmCharCreate.vb
r1129 r1304 783 783 pointScores(a, 0) = a 784 784 Next 785 For Each skill As EveHQ.Core.SortedQueue In sQueue785 For Each skill As EveHQ.Core.SortedQueueItem In sQueue 786 786 Select Case skill.PAtt 787 787 Case "Charisma" … … 852 852 ' Add pilot to the list 853 853 Dim ttt As String = "" 854 For Each skill As EveHQ.Core.SortedQueue In aQueue854 For Each skill As EveHQ.Core.SortedQueueItem In aQueue 855 855 ttt &= skill.Name & " (" & skill.FromLevel & " to " & skill.ToLevel & ")" & ControlChars.CrLf 856 856 Next -
branches/EveHQv2/EveHQ/Controls/DBControls/DBCSkillQueueInfo.vb
r956 r1304 236 236 Dim arrQueue As ArrayList = EveHQ.Core.SkillQueueFunctions.BuildQueue(cPilot, cQueue) 237 237 For skill As Integer = 0 To arrQueue.Count - 1 238 Dim qItem As EveHQ.Core.SortedQueue = CType(arrQueue(skill), EveHQ.Core.SortedQueue)238 Dim qItem As EveHQ.Core.SortedQueueItem = CType(arrQueue(skill), EveHQ.Core.SortedQueueItem) 239 239 If qItem.Done = False Then 240 240 Dim newitem As New ListViewItem -
branches/EveHQv2/EveHQ/Forms/frmEveHQ.vb
r1291 r1304 743 743 If nq.Count > 1 Then 744 744 For q As Integer = 1 To nq.Count - 1 745 If CType(nq(1), EveHQ.Core.SortedQueue ).Done = False Then746 notifyText &= sq.Name & ": " & CType(nq(q), EveHQ.Core.SortedQueue ).Name747 notifyText &= " (" & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueue ).FromLevel))748 notifyText &= " to " & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueue ).FromLevel) + 1) & ")" & ControlChars.CrLf745 If CType(nq(1), EveHQ.Core.SortedQueueItem).Done = False Then 746 notifyText &= sq.Name & ": " & CType(nq(q), EveHQ.Core.SortedQueueItem).Name 747 notifyText &= " (" & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueueItem).FromLevel)) 748 notifyText &= " to " & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueueItem).FromLevel) + 1) & ")" & ControlChars.CrLf 749 749 Exit For 750 750 End If … … 754 754 If nq.Count > 0 Then 755 755 For q As Integer = 0 To nq.Count - 1 756 If CType(nq(1), EveHQ.Core.SortedQueue ).Done = False Then757 notifyText &= sq.Name & ": " & CType(nq(q), EveHQ.Core.SortedQueue ).Name758 notifyText &= " (" & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueue ).FromLevel))759 notifyText &= " to " & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueue ).FromLevel) + 1) & ")" & ControlChars.CrLf756 If CType(nq(1), EveHQ.Core.SortedQueueItem).Done = False Then 757 notifyText &= sq.Name & ": " & CType(nq(q), EveHQ.Core.SortedQueueItem).Name 758 notifyText &= " (" & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueueItem).FromLevel)) 759 notifyText &= " to " & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueueItem).FromLevel) + 1) & ")" & ControlChars.CrLf 760 760 Exit For 761 761 End If … … 807 807 If pq IsNot Nothing Then 808 808 Dim arrQueue As ArrayList = EveHQ.Core.SkillQueueFunctions.BuildQueue(cPilot, pq) 809 Dim qItem As EveHQ.Core.SortedQueue = New EveHQ.Core.SortedQueue809 Dim qItem As New EveHQ.Core.SortedQueueItem 810 810 For Each qItem In arrQueue 811 811 If qItem.Done = False Then -
branches/EveHQv2/EveHQ/Forms/frmImplants.vb
r535 r1304 149 149 pointScores(a, 0) = a 150 150 Next 151 For Each skill As EveHQ.Core.SortedQueue In nQueue151 For Each skill As EveHQ.Core.SortedQueueItem In nQueue 152 152 Select Case skill.PAtt 153 153 Case "Charisma" -
branches/EveHQv2/EveHQ/Forms/frmNeuralRemap.vb
r535 r1304 261 261 pointScores(a, 0) = a 262 262 Next 263 For Each skill As EveHQ.Core.SortedQueue In nQueue263 For Each skill As EveHQ.Core.SortedQueueItem In nQueue 264 264 Select Case skill.PAtt 265 265 Case "Charisma" -
branches/EveHQv2/EveHQ/Forms/frmSettings.vb
r1214 r1304 1471 1471 If nq.Count > 1 Then 1472 1472 For q As Integer = 1 To nq.Count - 1 1473 If CType(nq(1), EveHQ.Core.SortedQueue ).Done = False Then1474 notifyText &= sq.Name & ": " & CType(nq(q), EveHQ.Core.SortedQueue ).Name1475 notifyText &= " (" & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueue ).FromLevel))1476 notifyText &= " to " & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueue ).FromLevel) + 1) & ")" & ControlChars.CrLf1473 If CType(nq(1), EveHQ.Core.SortedQueueItem).Done = False Then 1474 notifyText &= sq.Name & ": " & CType(nq(q), EveHQ.Core.SortedQueueItem).Name 1475 notifyText &= " (" & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueueItem).FromLevel)) 1476 notifyText &= " to " & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueueItem).FromLevel) + 1) & ")" & ControlChars.CrLf 1477 1477 Exit For 1478 1478 End If … … 1482 1482 If nq.Count > 0 Then 1483 1483 For q As Integer = 0 To nq.Count - 1 1484 If CType(nq(1), EveHQ.Core.SortedQueue ).Done = False Then1485 notifyText &= sq.Name & ": " & CType(nq(q), EveHQ.Core.SortedQueue ).Name1486 notifyText &= " (" & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueue ).FromLevel))1487 notifyText &= " to " & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueue ).FromLevel) + 1) & ")" & ControlChars.CrLf1484 If CType(nq(1), EveHQ.Core.SortedQueueItem).Done = False Then 1485 notifyText &= sq.Name & ": " & CType(nq(q), EveHQ.Core.SortedQueueItem).Name 1486 notifyText &= " (" & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueueItem).FromLevel)) 1487 notifyText &= " to " & EveHQ.Core.SkillFunctions.Roman(CInt(CType(nq(q), EveHQ.Core.SortedQueueItem).FromLevel) + 1) & ")" & ControlChars.CrLf 1488 1488 Exit For 1489 1489 End If -
branches/EveHQv2/EveHQ/Forms/frmTraining.vb
r1242 r1304 607 607 Dim aq As EveHQ.Core.SkillQueue = CType(displayPilot.TrainingQueues(QueueName), Core.SkillQueue) 608 608 Dim arrQueue As ArrayList = EveHQ.Core.SkillQueueFunctions.BuildQueue(displayPilot, aq) 609 Dim qItem As EveHQ.Core.SortedQueue = New EveHQ.Core.SortedQueue609 Dim qItem As New EveHQ.Core.SortedQueueItem 610 610 Dim totalTime As Long = 0 611 611 Dim totalSP As Long = displayPilot.SkillPoints … … 679 679 End If 680 680 End Sub 681 Private Sub AddUserColumns(ByVal newskill As ListViewItem, ByVal qitem As EveHQ.Core.SortedQueue , ByVal totalSP As Long)681 Private Sub AddUserColumns(ByVal newskill As ListViewItem, ByVal qitem As EveHQ.Core.SortedQueueItem, ByVal totalSP As Long) 682 682 ' Add subitems based on the user selected columns 683 683 Dim colName As String = "" … … 2277 2277 Next 2278 2278 Dim arrQueue As ArrayList = EveHQ.Core.SkillQueueFunctions.BuildQueue(displayPilot, newQueue) 2279 Dim qItem As EveHQ.Core.SortedQueue = New EveHQ.Core.SortedQueue2279 Dim qItem As New EveHQ.Core.SortedQueueItem 2280 2280 Dim QTime As Double = 0 2281 2281 For Each qItem In arrQueue … … 2318 2318 Next 2319 2319 Dim arrQueue As ArrayList = EveHQ.Core.SkillQueueFunctions.BuildQueue(displayPilot, newQueue) 2320 Dim qItem As EveHQ.Core.SortedQueue = New EveHQ.Core.SortedQueue2320 Dim qItem As New EveHQ.Core.SortedQueueItem 2321 2321 Dim QTime As Double = 0 2322 2322 For Each qItem In arrQueue … … 2971 2971 If activeQueue IsNot Nothing Then 2972 2972 Dim arrQueue As ArrayList = EveHQ.Core.SkillQueueFunctions.BuildQueue(displayPilot, activeQueue) 2973 Dim qItem As EveHQ.Core.SortedQueue = New EveHQ.Core.SortedQueue2973 Dim qItem As New EveHQ.Core.SortedQueueItem 2974 2974 If arrQueue IsNot Nothing Then 2975 2975 Dim EMPAtt As XmlAttribute
