-
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.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 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,24 @@ | ||
' Gambas class file | ||
|
||
|
||
|
||
Public Sub Form_Open() | ||
Me.Center | ||
ButtonBox1.Text = Setting.Settings["battery/patch", ButtonBox1.Text] | ||
CheckBox1.Value = Setting.Settings["battery/active", CheckBox1.Value] | ||
End | ||
|
||
Public Sub ButtonBox1_Click() | ||
Dialog.OpenFile | ||
ButtonBox1.Text = Dialog.Path | ||
End | ||
|
||
Public Sub Button1_Click() | ||
|
||
Setting.Settings["battery/patch"] = ButtonBox1.Text | ||
Setting.Settings["battery/active"] = CheckBox1.Value | ||
Object.Call(battery, "_init") | ||
Object.Call(Finfosys, "battery_info") | ||
Options.Close | ||
|
||
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,20 @@ | ||
# Gambas Form File 3.0 | ||
|
||
{ Form Form | ||
MoveScaled(0,0,85,12) | ||
Text = ("Options") | ||
Icon = Picture["icon:/16/properties"] | ||
Resizable = False | ||
{ ButtonBox1 ButtonBox | ||
MoveScaled(41,2,43,4) | ||
} | ||
{ Button1 Button | ||
MoveScaled(68,7,16,4) | ||
Text = ("Close & Save") | ||
Picture = Picture["icon:/16/apply"] | ||
} | ||
{ CheckBox1 CheckBox | ||
MoveScaled(1,1,40,5) | ||
Text = ("Battery info patch\nExample: /proc/acpi/battery/BAT1/info") | ||
} | ||
} |