Skip to content

Commit

Permalink
Show SATA Picture in Drives
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Aug 5, 2014
1 parent b0d3ff7 commit bbdd18a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions I-Nex/i-nex/.src/Disk_Drives.module
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Public Logical_Size As String
Public hw_sata_spd_limit As String
Public sata_spd As String
Public sata_spd_limit As String
Public SATA_PIC As Picture
Function _inits()
Dim Avail_HDD As Integer
Logs("Add Drives to ComboBox", Logger.Info)
Expand Down Expand Up @@ -369,6 +370,17 @@ Public Sub disks()
Next
End With
Next

Select Case sata_spd
Case Like "*1.5*Gbps*"
SATA_PIC = Picture.Load("Data/SATA/SATA1.jpg")
Case Like "*3.0*Gbps*"
SATA_PIC = Picture.Load("Data/SATA/SATA2.jpg")
Case Like "*6.0*Gbps*"
SATA_PIC = Picture.Load("Data/SATA/SATA3.jpg")
Case Like "*<unknown>*"
SATA_PIC = Picture.Load("Data/SATA/SATA.jpg")
End Select
End

Function SETNULL()
Expand Down
1 change: 1 addition & 0 deletions I-Nex/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ Label134.Text = "Rq affinity: " & Disk_Drives.rq_affinity
Label253.Text = "SATA SPD Limit:" & Space$(2) & Disk_Drives.sata_spd_limit
Label253.Tooltip = "Maximum speed imposed by libata."

PictureBox4.Picture = Disk_Drives.SATA_PIC
End

Public Sub ComboBox5_Click()
Expand Down
4 changes: 4 additions & 0 deletions I-Nex/i-nex/.src/Finfosys.form
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,10 @@
Text = ("Label253")
Border = Border.Raised
}
{ PictureBox4 PictureBox
Move(392,224,77,63)
Stretch = True
}
Index = 5
Text = "System"
Picture = Picture["AppIcons/Finfosys/applications-system.png"]
Expand Down
Binary file added I-Nex/i-nex/Data/SATA/SATA.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added I-Nex/i-nex/Data/SATA/SATA1.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added I-Nex/i-nex/Data/SATA/SATA2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added I-Nex/i-nex/Data/SATA/SATA3.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bbdd18a

Please sign in to comment.