Skip to content

Commit

Permalink
Fix debian/control Build-depends and Depends.
Browse files Browse the repository at this point in the history
Screenshot not based on gnome-screenshot.
New modules and Forms for create screenshot.
  • Loading branch information
eloaders committed Jan 28, 2012
1 parent 8021139 commit 8cfb367
Show file tree
Hide file tree
Showing 23 changed files with 221 additions and 35 deletions.
4 changes: 2 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ Source: i-nex
Section: contrib/gnome
Priority: optional
Maintainer: eloaders <eloaders@yahoo.com>
Build-Depends: debhelper (>= 5.0.0), gambas3-dev (>= 2.90.0), gambas3-dev (<< 3.0.90), gambas3-gb-image (>= 2.90.0), gambas3-gb-image (<< 3.0.90), gambas3-gb-gtk (>= 2.90.0), gambas3-gb-gtk (<< 3.0.90), gambas3-gb-form (>= 2.90.0), gambas3-gb-form (<< 3.0.90), gambas3-gb-desktop (>= 2.90.0), gambas3-gb-desktop (<< 3.0.90), gambas3-gb-settings (>= 2.90.0), gambas3-gb-settings (<< 3.0.90), gambas3-gb-form-mdi (>= 2.90.0), gambas3-gb-form-mdi (<< 3.0.90), gambas3-gb-form-stock (>= 2.90.0), gambas3-gb-dbus (>= 2.90.0), dpkg (>= 1.16), grep (>= 2.9), mount (>= 2.19), procps, x11-xserver-utils (>= 7.6), lsb-release (>= 4.0), bash (>= 4.2), coreutils (>= 8.5), sed (>= 4.2), pciutils, x11-utils (>= 7.6), mesa-utils (>= 7.6), hostname
Build-Depends: debhelper (>= 5.0.0), gambas3-dev (>= 2.90.0), gambas3-dev (<< 3.0.90), gambas3-gb-image (>= 2.90.0), gambas3-gb-image (<< 3.0.90), gambas3-gb-gtk (>= 2.90.0), gambas3-gb-gtk (<< 3.0.90), gambas3-gb-form (>= 2.90.0), gambas3-gb-form (<< 3.0.90), gambas3-gb-desktop (>= 2.90.0), gambas3-gb-desktop (<< 3.0.90), gambas3-gb-form-dialog (>= 2.90.0), gambas3-gb-form-dialog (<< 3.0.90), gambas3-gb-settings (>= 2.90.0), gambas3-gb-settings (<< 3.0.90), gambas3-gb-form-stock (>= 2.90.0), dpkg (>= 1.16), grep (>= 2.9), mount (>= 2.19), procps, x11-xserver-utils (>= 7.6), lsb-release (>= 4.0), bash (>= 4.2), coreutils (>= 8.5), sed (>= 4.2), pciutils, x11-utils (>= 7.6), mesa-utils (>= 7.6), hostname
Standards-Version: 3.7.2

Package: i-nex
Architecture: all
Depends: gambas3-runtime (>= 2.90.0), gambas3-runtime (<< 3.0.90), gambas3-gb-image (>= 2.90.0), gambas3-gb-image (<< 3.0.90), gambas3-gb-gtk (>= 2.90.0), gambas3-gb-gtk (<< 3.0.90), gambas3-gb-form (>= 2.90.0), gambas3-gb-form (<< 3.0.90), gambas3-gb-desktop (>= 2.90.0), gambas3-gb-desktop (<< 3.0.90), gambas3-gb-settings (>= 2.90.0), gambas3-gb-settings (<< 3.0.90), gambas3-gb-form-mdi (>= 2.90.0), gambas3-gb-form-mdi (<< 3.0.90), gambas3-gb-form-stock (>= 2.90.0), gambas3-gb-dbus (>= 2.90.0), dpkg (>= 1.16), grep (>= 2.9), mount (>= 2.19), procps, x11-xserver-utils (>= 7.6), lsb-release (>= 4.0), bash (>= 4.2), coreutils (>= 8.5), sed (>= 4.2), pciutils, x11-utils (>= 7.6), mesa-utils (>= 7.6), hostname
Depends: gambas3-runtime (>= 2.90.0), gambas3-runtime (<< 3.0.90), gambas3-gb-image (>= 2.90.0), gambas3-gb-image (<< 3.0.90), gambas3-gb-gtk (>= 2.90.0), gambas3-gb-gtk (<< 3.0.90), gambas3-gb-form (>= 2.90.0), gambas3-gb-form (<< 3.0.90), gambas3-gb-desktop (>= 2.90.0), gambas3-gb-desktop (<< 3.0.90), gambas3-gb-form-dialog (>= 2.90.0), gambas3-gb-form-dialog (<< 3.0.90), gambas3-gb-settings (>= 2.90.0), gambas3-gb-settings (<< 3.0.90), gambas3-gb-form-stock (>= 2.90.0), dpkg (>= 1.16), grep (>= 2.9), mount (>= 2.19), procps, x11-xserver-utils (>= 7.6), lsb-release (>= 4.0), bash (>= 4.2), coreutils (>= 8.5), sed (>= 4.2), pciutils, x11-utils (>= 7.6), mesa-utils (>= 7.6), hostname
Description:I-nex is a alternative to cpu-z
This program is written in Gambas
Binary file added src/i-nex/.gambas/ABOUT
Binary file not shown.
Binary file added src/i-nex/.gambas/BATTERY
Binary file not shown.
Binary file added src/i-nex/.gambas/DISK_DRIVES
Binary file not shown.
Binary file added src/i-nex/.gambas/DISTRODETECT
Binary file not shown.
Binary file added src/i-nex/.gambas/FINFOSYS
Binary file not shown.
Binary file added src/i-nex/.gambas/FLICENCJA
Binary file not shown.
Binary file added src/i-nex/.gambas/FZASLUGI
Binary file not shown.
Binary file added src/i-nex/.gambas/GLOBAL
Binary file not shown.
Binary file added src/i-nex/.gambas/SCREENSHOT
Binary file not shown.
Binary file added src/i-nex/.gambas/SCREENSHOTM
Binary file not shown.
2 changes: 1 addition & 1 deletion src/i-nex/.hidden/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Fri Jan 13 2012 eloaders <eloaders@yahoo.com> 0.3.1
* Sat Jan 28 2012 eloaders <eloaders@yahoo.com> 0.4.0

* Sat Oct 22 2011 eloaders <eloaders@yahoo.com> 0.2.4
- i
Expand Down
28 changes: 20 additions & 8 deletions src/i-nex/.lang/.pot
Original file line number Diff line number Diff line change
Expand Up @@ -490,14 +490,6 @@ msgstr ""
msgid "Zamknij"
msgstr ""

#: Form1.form:29
msgid "Bardzo i to bardzo długi i zajebisty tekst"
msgstr ""

#: Form1.form:43
msgid "Jeszcze tak sobie zajebiście napisałem: "
msgstr ""

#: Fzaslugi.form:36
msgid "Application"
msgstr ""
Expand Down Expand Up @@ -565,3 +557,23 @@ msgstr ""
#: Fzaslugi.form:132
msgid "Other"
msgstr ""

#: ScreenShot.form:27
msgid "Save"
msgstr ""

#: ScreenShot.form:33
msgid "Cancel"
msgstr ""

#: ScreenShot.form:40
msgid "File name:"
msgstr ""

#: ScreenShot.form:46
msgid "Save directory:"
msgstr ""

#: ScreenShot.form:73
msgid "Picture quality:"
msgstr ""
36 changes: 36 additions & 0 deletions src/i-nex/.lang/ScreenShot.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# /home/michal/Baazar/i-nex/src/i-nex/.src/ScreenShot.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"

#: ScreenShot.form:27
msgid "Save"
msgstr ""

#: ScreenShot.form:33
msgid "Cancel"
msgstr ""

#: ScreenShot.form:40
msgid "File name:"
msgstr ""

#: ScreenShot.form:46
msgid "Save directory:"
msgstr ""

#: ScreenShot.form:73
msgid "Picture quality:"
msgstr ""

16 changes: 16 additions & 0 deletions src/i-nex/.lang/ScreenShotM.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# /home/michal/Baazar/i-nex/src/i-nex/.src/ScreenShotM.module
# 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"

5 changes: 2 additions & 3 deletions src/i-nex/.project
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ VersionFile=1
Component=gb.image
Component=gb.gtk
Component=gb.form
Component=gb.dbus
Component=gb.desktop
Component=gb.form.dialog
Component=gb.settings
Component=gb.form.mdi
Authors="eloaders"
TabSize=1
Translate=1
Expand All @@ -26,7 +25,7 @@ Address=eloaders@yahoo.com
Url=http://code.google.com/p/lft/
License=General Public Licence
UseRelease=1
PackageName=i-nex-0.3.1
PackageName=i-nex-0.4.0
Systems=ubuntu
Menus=Applications/System/Hardware
Categories=System
Expand Down
16 changes: 10 additions & 6 deletions src/i-nex/.settings
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Count=0
[DebugWindow]
Count=0

[DebugWindow/Picture]
Geometry=[-9,212,180,180]

[FFind]
SearchIn="Module"
CaseSensitive=False
Expand All @@ -13,7 +16,8 @@ SearchString=True

[OpenFile]
File[1]=".src/Finfosys.form"
File[2]=".src/Finfosys.class:3.2"
Active=2
File[2]=".src/Finfosys.class:7.46"
File[3]=".src/Global.class:120.69"
File[4]=".src/About.form"
File[5]=".src/About.class:29.47"
Expand All @@ -23,11 +27,11 @@ File[8]=".src/Fzaslugi.class:35.0"
File[9]=".src/Flicencja.class:4.11"
File[10]=".src/distrodetect.class:7.35"
File[11]=".src/battery.module:20.18"
File[12]=".src/Disk_Drives.module:2.0"
Active=13
File[13]=".src/Form1.form"
File[14]=".src/Form1.class:7.20"
Count=14
File[12]=".src/Disk_Drives.module:80.31"
File[13]=".src/ScreenShot.form"
File[14]=".src/ScreenShot.class:8.10"
File[15]=".src/ScreenShotM.module:2.21"
Count=15

[Watches]
Count=0
Expand Down
32 changes: 19 additions & 13 deletions src/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
' Gambas class file

Public Sub Form_Open()
Dim gnome_screenshot As Boolean = Exist("/usr/bin/gnome-screenshot")
Dim default_display_manager As Boolean = Exist("/etc/X11/default-display-manager")
Dim cpuz0, cpuz1, cpuz2, cpuz3, cpuz4, cpuz5, cpuz6, cpuz7, cpuz8, cpuz9, cpuz10, cpuz11 As String
Object.Call(Disk_Drives, "_init")
Object.Call(Disk_Drives, "_init_2")
Object.Call(Disk_Drives, "get_informations")
Debug "Check Gnome Screenshot"
If gnome_screenshot = True Then
Button2.Visible = True
Debug "Gnome Screenshot Exist = True"
Endif
Debug "Check for default display manager"
If default_display_manager = True Then
Label4.Visible = True
Expand Down Expand Up @@ -166,7 +160,9 @@ Public Sub System()
End

Public Sub grafika()
Dim stringa, risultato, gpu, opengl_vendor_string, opengl_renderer_string, opengl_version_string, rozdzielczosc As String
Dim stringa, risultato, gpu As String
Dim opengl_vendor_string, opengl_renderer_string, opengl_version_string As String
Dim rozdzielczosc As String
Dim righe As New String[]
Dim count As Integer
Dim riga As New String[]
Expand Down Expand Up @@ -224,7 +220,9 @@ End

Public Sub Wykrywanie_procesorow()
Dim eloaders, eloaders2, eloaders3 As String
Dim obrazekcpu, cpu, vendor_id, flags, cpu_MHz, model, stepping, cpu_family, bogomips, address_sizes, cache_size, ldata, linstruction As String
Dim obrazekcpu, cpu, vendor_id, flags, cpu_MHz As String
Dim model, stepping, cpu_family, bogomips As String
Dim address_sizes, cache_size, ldata, linstruction As String
Dim physical_id, cpu_cores, level3cache As String

If ComboBox1.Text = "Procesor0" Then
Expand Down Expand Up @@ -342,14 +340,14 @@ Public Sub Wykrywanie_procesorow()
TextBox5.Text = physical_id
TextBox36.Text = level3cache
Global.ikonaprocka()

End

Public Sub Button2_Click()

Exec ["gnome-screenshot", "-w"]
Debug "Running Gnome Screenshot"

' Exec ["gnome-screenshot", "-w"]
' Debug "Running Gnome Screenshot"
ScreenShotM.pic = Desktop.Screenshot(Me.X, Me.Y, Me.W, Me.H + 30)
ScreenShot.Show

End

Public Sub Button1_Click()
Expand Down Expand Up @@ -496,6 +494,7 @@ Public Sub ComboBox4_Click()
End

Public Sub refreshing()
Dim checking_device_uuid As String
Label16.Text = "Device model: " & Disk_Drives.device_model & ""
Label17.Text = "Device vendor: " & Disk_Drives.device_vendor & ""
TextArea8.Text = Disk_Drives.mount_point
Expand Down Expand Up @@ -539,4 +538,11 @@ Public Sub refreshing()
Else
Label48.Visible = False
Endif
' If Disk_Drives.mount_point Not Like "*/media*" And Disk_Drives.device_uuid <> 0 Then
' Debug "Not found mount point, maby mount piont id device uuid?"
' Shell "ls /media/" & Disk_Drives.device_uuid & "" Wait To checking_device_uuid
' Endif
' If checking_device_uuid Like "" & Disk_Drives.device_uuid & "" Then
' TextArea8.Text = checking_device_uuid
' Endif
End
54 changes: 54 additions & 0 deletions src/i-nex/.src/ScreenShot.class
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
' Gambas class file


Public Sub Form_Resize()

End

Public Sub Form_Open()
Me.Center
PictureBox1.Picture = ScreenShotM.pic
TextBox1.Text = Date & Time
TextBox1.Text = Replace(TextBox1.Text, "/", "")
TextBox1.Text = Replace(TextBox1.Text, ":", "")
TextBox1.Text = Replace(TextBox1.Text, ".", "")
ComboBox1.Add(".png")
ComboBox1.Add(".jpg")
ComboBox1.Text = ".png"
SpinBox1.Value = 70
Slider1.Value = 70
ButtonBox1.Text = User.Home

End

Public Sub Button2_Click()

Me.Close

End

Public Sub Button1_Click()

ScreenShotM.save(ButtonBox1.Text, TextBox1.Text, ComboBox1.Text, Slider1.Value)
Me.Close
End

Public Sub ButtonBox1_Click()

Dialog.SelectDirectory
Dialog.Title = "Select dir"
ButtonBox1.Text = Dialog.Path

End

Public Sub Slider1_Change()

SpinBox1.Value = Slider1.Value

End

Public Sub SpinBox1_Change()

Slider1.Value = SpinBox1.Value

End
51 changes: 51 additions & 0 deletions src/i-nex/.src/ScreenShot.form
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Gambas Form File 3.0

{ Form Form
MoveScaled(0,0,80,32)
Resizable = False
{ PictureBox1 PictureBox
MoveScaled(0,0,21,26)
Stretch = True
}
{ Button1 Button
MoveScaled(66,27,13,4)
Text = ("Save")
Picture = Picture["icon:/16/save"]
}
{ Button2 Button
MoveScaled(52,27,13,4)
Text = ("Cancel")
Picture = Picture["icon:/16/quit"]
}
{ Label1 Label
MoveScaled(22,4,18,4)
Font = Font["Bold,11"]
Text = ("File name:")
}
{ Label2 Label
MoveScaled(22,10,17,4)
Font = Font["Bold,11"]
Text = ("Save directory:")
}
{ Slider1 Slider
MoveScaled(0,27,51,4)
MinValue = 1
}
{ ButtonBox1 ButtonBox
MoveScaled(43,10,36,4)
}
{ TextBox1 TextBox
MoveScaled(43,4,36,4)
}
{ ComboBox1 ComboBox
MoveScaled(55,16,24,4)
}
{ SpinBox1 SpinBox
MoveScaled(42,23,9,4)
MinValue = 1
}
{ Label3 Label
MoveScaled(22,23,19,4)
Text = ("Picture quality:")
}
}
9 changes: 9 additions & 0 deletions src/i-nex/.src/ScreenShotM.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
' Gambas module file

Public pic As Picture

Public Sub save(directory As String, filename As String, fileformat As String, filequality As Integer)

pic.Save("" & directory & "/" & filename & "" & fileformat & "", filequality)

End
3 changes: 1 addition & 2 deletions src/i-nex/.startup
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ i-nex
gb.image
gb.gtk
gb.form
gb.dbus
gb.desktop
gb.form.dialog
gb.settings
gb.form.mdi

Binary file added src/i-nex/i-nex.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 8cfb367

Please sign in to comment.