Skip to content

Commit

Permalink
Add feanza icons and remember window position X/Y on all win
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jan 9, 2014
1 parent d2b3dcb commit 6de521b
Show file tree
Hide file tree
Showing 26 changed files with 82 additions and 44 deletions.
22 changes: 11 additions & 11 deletions src/i-nex/.settings
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ SearchString=True
[OpenFile]
File[1]=".src/Finfosys.form"
File[2]=".src/Global.class:149.56"
Active=3
File[3]=".src/About.form"
File[4]=".src/About.class:87.3"
File[5]=".src/battery.module:70.77"
File[6]=".src/Disk_Drives.module:49.45"
File[5]=".src/battery.module:46.5"
File[6]=".src/Disk_Drives.module:183.7"
File[7]=".src/ScreenShot.form"
File[8]=".src/ScreenShot.class:13.34"
File[9]=".src/ScreenShotM.module:7.0"
Expand All @@ -37,25 +38,25 @@ File[13]=".src/FReport_Gen.class:34.34"
File[14]=".src/Start_App_Args.form"
File[15]=".src/Start_App_Args.class:16.48"
File[16]=".src/ChkPrm.module:21.19"
File[17]=".src/thermal_zone.module:21.25"
File[17]=".src/thermal_zone.module:14.0"
File[18]=".src/FModules.form"
File[19]=".src/FModules.class:22.35"
File[20]=".src/Input_Devices.module:14.54"
File[21]=".src/net.module:2.25"
File[22]="Data/report-ng.sh:5.3"
File[23]=".src/Distribution_Detect.module:4.65"
File[23]=".src/Distribution_Detect.module:18.22"
File[24]=".src/FFlags.module:2.25"
File[25]=".src/Finfosys.class:15.35"
File[25]=".src/Finfosys.class:756.26"
File[26]=".src/FDF.form"
File[27]=".src/FDF.class:28.69"
File[27]=".src/FDF.class:20.36"
File[28]=".src/FNET_R_T.form"
File[29]=".src/FNET_R_T.class:28.32"
File[29]=".src/FNET_R_T.class:62.34"
File[30]=".src/FGraphic.module:12.20"
File[31]="logo/fb.png"
File[32]=".src/FCPU.module:3.4"
File[33]=".src/FUdisks.form"
File[34]=".src/FUdisks.class:242.28"
File[35]=".src/FCpudb.module:22.35"
File[34]=".src/FUdisks.class:8.34"
File[35]=".src/FCpudb.module:16.47"
File[36]=".src/JSON.module:68.59"
File[37]=".src/Settings.class:2.13"
File[38]=".src/Main.module:7.29"
Expand All @@ -76,8 +77,7 @@ File[52]=".src/Reports/MDRIVES_REPORT.module:12.40"
File[53]=".src/FInputDate.form"
File[54]=".src/MInit.module:33.0"
File[55]=".src/FEDID.form"
File[56]=".src/FEDID.class:8.7"
Active=57
File[56]=".src/FEDID.class:16.0"
File[57]=".src/Logger.class:12.5"
File[58]=".src/Formatter.module:3.0"
Count=58
Expand Down
9 changes: 6 additions & 3 deletions src/i-nex/.src/About.form
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@
Icon = Picture["logo/i-nex.0.4.x.png"]
Resizable = False
{ Button1 Button
Move(406,497,78,24)
Move(406,497,77,28)
#Translate = False
Text = "Close"
Picture = Picture["icon:/16/quit"]
Picture = Picture["AppIcons/application-exit2.png"]
}
{ TabStrip1 TabStrip
Move(0,0,483,497)
Count = 4
Index = 0
Text = ("Main")
Picture = Picture["AppIcons/gtk-info.png"]
{ PictureBox1 PictureBox
Move(0,0,250,250)
Picture = Picture["logo/i-nex.0.4.x.png"]
Expand All @@ -40,6 +41,7 @@
}
Index = 1
Text = ("Credits")
Picture = Picture["AppIcons/x-office-address-book.png"]
{ ScrollView1 ScrollView
Move(0,0,469,462)
{ Panel1 Panel
Expand Down Expand Up @@ -193,8 +195,9 @@
Index = 0
}
{ Button4 Button
Move(0,497,162,24)
Move(0,497,161,28)
#Translate = False
Text = "I-Nex Home page"
Picture = Picture["AppIcons/applications-internet.png"]
}
}
8 changes: 8 additions & 0 deletions src/i-nex/.src/FDF.class
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Public Sub Form_Open()
Dim i, Maximum, ty As Float
Dim allfilesystems, Face As String
Me.Center
Me.X = Settings["Window/X", Me.X]
Me.Y = Settings["Window/Y", Me.Y]
'Shell "LC_ALL=C df"
Shell "LC_ALL=C df | awk {'print $1'} | wc -l" Wait To allfilesystems
GridView1.Columns.Count = 6
Expand Down Expand Up @@ -41,3 +43,9 @@ End
Public Sub Form_Resize()

End

Public Sub Button1_Click()

Me.Close

End
11 changes: 10 additions & 1 deletion src/i-nex/.src/FDF.form
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Gambas Form File 3.0

{ Form Form
MoveScaled(0,0,86,30)
MoveScaled(0,0,90,45)
#Translate = False
Expand = True
Text = "I-Nex GUI for DF"
Expand All @@ -22,4 +22,13 @@
AutoResize = False
}
}
{ HBox2 HBox
MoveScaled(0,41,90,4)
AutoResize = True
{ Button1 Button
MoveScaled(63,0,16,4)
Text = ("Close")
Picture = Picture["AppIcons/application-exit2.png"]
}
}
}
1 change: 1 addition & 0 deletions src/i-nex/.src/FModules.form
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
MoveScaled(0,0,16,4)
Expand = True
Text = ("Close")
Picture = Picture["AppIcons/application-exit2.png"]
Cancel = True
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/i-nex/.src/FNET_R_T.class
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ End

Public Sub Form_Open()
Me.Center
Me.X = Settings["Window/X", Me.X]
Me.Y = Settings["Window/Y", Me.Y]
Timer1.Start
net_()
End
8 changes: 4 additions & 4 deletions src/i-nex/.src/FReport_Gen.form
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
Expand = True
AutoResize = True
Text = ("Generate")
Picture = Picture["icon:/16/apply"]
Picture = Picture["AppIcons/dialog-ok.png"]
}
{ Button2 Button
Move(147,0,98,28)
Drop = True
Expand = True
AutoResize = True
Text = ("Close")
Picture = Picture["icon:/16/quit"]
Picture = Picture["AppIcons/application-exit2.png"]
}
}
{ HPanel1 HPanel
Expand Down Expand Up @@ -149,7 +149,7 @@
{ Button3 Button
Move(455,385,28,28)
ToolTip = ("Open link in default web browser")
Picture = Picture["icon:/16/network"]
Picture = Picture["AppIcons/applications-internet.png"]
}
{ TextBox1 TextBox
Move(7,385,420,28)
Expand Down Expand Up @@ -178,6 +178,6 @@
{ Button4 Button
Move(427,385,28,28)
ToolTip = ("Copy this link")
Picture = Picture["icon:/small/copy"]
Picture = Picture["AppIcons/edit-copy.png"]
}
}
4 changes: 3 additions & 1 deletion src/i-nex/.src/FUdisks.class
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
Public Sub Form_Open()
Udisks
Finfosys.Hide
Me.Center
Me.Center
Me.X = Settings["Window/X", Me.X]
Me.Y = Settings["Window/Y", Me.Y]
End

Public Sub Button1_Click()
Expand Down
4 changes: 2 additions & 2 deletions src/i-nex/.src/FUdisks.form
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Move(0,497,301,28)
{ Button1 Button
Move(7,0,21,24)
Picture = Picture["icon:/16/camera"]
Picture = Picture["AppIcons/camera-photo.png"]
}
{ HBox11 HBox
Move(140,-7,156,36)
Expand All @@ -44,7 +44,7 @@
Font = Font["10"]
ToolTip = ("Close this program")
Text = ("Close")
Picture = Picture["icon:/16/quit"]
Picture = Picture["AppIcons/application-exit2.png"]
}
}
}
41 changes: 21 additions & 20 deletions src/i-nex/.src/Finfosys.form
Original file line number Diff line number Diff line change
Expand Up @@ -57,36 +57,36 @@
#Translate = False
Font = Font["8"]
ToolTip = "Take a screenshot"
Picture = Picture["icon:/16/camera"]
Picture = Picture["AppIcons/camera-photo.png"]
}
{ Button3 Button
Move(84,497,28,28)
#Translate = False
Font = Font["8"]
ToolTip = "About this app"
Picture = Picture["icon:/16/help"]
Picture = Picture["AppIcons/help-about.png"]
}
{ Button1 Button
Move(399,497,77,28)
#Translate = False
Font = Font["8"]
ToolTip = "Close this program"
Text = "Close"
Picture = Picture["icon:/16/quit"]
Picture = Picture["AppIcons/application-exit2.png"]
}
{ Button12 Button
Move(56,497,28,28)
#Translate = False
Font = Font["8"]
ToolTip = "Generate report"
Picture = Picture["icon:/16/printer"]
Picture = Picture["AppIcons/printer.png"]
}
{ Button13 Button
Move(28,497,28,28)
#Translate = False
Font = Font["8"]
ToolTip = "You found a bug in I-Nex?\nPlease click this button and write in forum about bug which you have found."
Picture = Picture["icon:/16/important"]
Picture = Picture["AppIcons/mail-mark-important.png"]
}
{ TabStrip1 TabStrip
Move(0,0,476,497)
Expand Down Expand Up @@ -1992,31 +1992,32 @@
Picture = Picture["icon:/16/make"]
}
{ !HBox19 HBox
Move(266,497,133,28)
Move(196,497,203,28)
#Public = True
Visible = False
{ !Button8 Button
Move(0,0,28,28)
#Public = True
Visible = False
Text = ("DF")
}
{ !Button14 Button
Move(28,0,49,28)
#Public = True
Visible = False
Text = ("udisks")
}
{ ComboBox4 ComboBox
Move(0,0,63,28)
Move(77,0,63,28)
#Translate = False
Expand = True
ReadOnly = True
}
{ ComboBox3 ComboBox
Move(63,0,63,28)
Move(140,0,63,28)
#Translate = False
Expand = True
ReadOnly = True
}
}
{ !Button14 Button
Move(217,497,49,28)
#Public = True
Visible = False
Text = ("udisks")
}
{ !Button8 Button
Move(189,497,28,28)
#Public = True
Visible = False
Text = ("DF")
}
}
4 changes: 2 additions & 2 deletions src/i-nex/.src/ScreenShot.form
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
{ Button1 Button
MoveScaled(56,70,13,4)
Text = ("Save")
Picture = Picture["icon:/16/save"]
Picture = Picture["AppIcons/document-save.png"]
}
{ Button2 Button
MoveScaled(43,70,13,4)
Text = ("Cancel")
Picture = Picture["icon:/16/quit"]
Picture = Picture["AppIcons/application-exit2.png"]
}
{ Label1 Label
MoveScaled(1,60,18,4)
Expand Down
12 changes: 12 additions & 0 deletions src/i-nex/.src/battery.module
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ If Exist("/proc/acpi/battery/BAT1/info", True) Then
battery._replace_n()
Finfosys.battery_info()
Endif
If Exist("/sys/class/power_supply/BAT1/", True) Then
Finfosys.TabStrip1[9].Visible = True
battery._get_inf_other()
battery._replace_n()
Finfosys.battery_info()
Endif
End

Public Sub _get_inf()
Expand All @@ -60,6 +66,12 @@ Public Sub _get_inf()
Shell "grep 'last full capacity:' " & addres_battery & " | cut -d ':' -f 2" Wait To calculate_percentage_max
Shell "grep 'remaining capacity:' " & addres_battery_2 & " | cut -d ':' -f 2" Wait To calculate_percentage

End

Public Sub _get_inf_other()



End

Public Sub _replace_n()
Expand Down
Binary file added src/i-nex/AppIcons/application-exit2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/applications-internet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/camera-photo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/dialog-ok.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/document-save.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/edit-copy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/gtk-info.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/gtk-yes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/help-about.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/mail-mark-important.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/printer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/i-nex/AppIcons/x-office-address-book.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/i-nex/Data/check_false.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/i-nex/Data/check_true.png
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 6de521b

Please sign in to comment.