-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new Experimental GUI, Test run i-nex.gambas --dev
- Loading branch information
Showing
5 changed files
with
70 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# /home/michal/Baazar/i-nex/src/i-nex/.src/FinfosysNew.class | ||
# Generated by Gambas compiler | ||
|
||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n""POT-Creation-Date: 2002-11-01 04:27+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
' Gambas class file | ||
|
||
|
||
Public Sub Form_Open() | ||
|
||
TreeView1.Add("First", "CPU",, "", "") | ||
TreeView1.Add("Two", "CPU1",, "First", "") | ||
TreeView1.Add("Dyski", "Dyski / Partycje",, "", "") | ||
Devices() | ||
End | ||
|
||
Public Sub Devices() | ||
|
||
Dim sdx, sdz As String | ||
Dim Avail_HDD, Drives_in_sdx As Integer | ||
Dim Max_HDD, Max_Drives_in_sdx As Integer | ||
Dim cache, cache2 As String | ||
Debug "Add Drives to ComboBox" | ||
Shell "ls /sys/block/ | grep 'sd' | wc -l" Wait To cache | ||
Max_HDD = Replace(Replace(cache, " ", ""), "\n", "") | ||
For Avail_HDD = 1 To Max_HDD | ||
Shell "ls /sys/block/ | grep 'sd' | sed -n '" & Avail_HDD & "p'" Wait To sdx | ||
sdx = Replace(sdx, "\n", "") | ||
TreeView1.Add("" & sdx & "", "" & sdx & "",, "Dyski", "") | ||
Shell "ls /sys/block/$(ls /sys/block/ | grep " & sdx & ") | grep " & sdx & "| wc -l" Wait To cache2 | ||
Max_Drives_in_sdx = Replace(Replace(cache2, " ", ""), "\n", "") | ||
For Drives_in_sdx = 1 To Max_Drives_in_sdx | ||
Shell "ls /sys/block/$(ls /sys/block/ | grep " & sdx & ") | grep " & sdx & " | sed -n '" & Drives_in_sdx & "p'" Wait To sdz | ||
sdz = Replace(sdz, "\n", "") | ||
TreeView1.Add("" & sdz & "", "" & sdz & "",, "" & sdx & "") | ||
Next | ||
Next | ||
|
||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Gambas Form File 3.0 | ||
|
||
{ Form Form | ||
MoveScaled(0,0,106,67) | ||
{ TreeView1 TreeView | ||
MoveScaled(0,0,21,67) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters