Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • AppImage
  • WorkSpace
  • cmake
  • evdev
  • exclamation-mark-completion
  • gb.chart2
  • gb.git
  • gb.joystick
  • gb.net.imap
  • gb.spreadsheet
  • gb.test
  • gb.test.tap
  • master
  • newdialogs
  • stable
  • 3.11.0
  • 3.11.1
  • 3.11.2
  • 3.11.3
  • 3.11.4
  • 3.12.0
  • 3.12.1
  • 3.12.2
  • 3.13.0
  • 3.14.0
  • 3.14.1
  • 3.14.2
  • 3.14.3
  • 3.15.0
  • 3.15.1
  • 3.15.2
  • 3.16.0
  • 3.16.1
  • 3.16.2
  • 3.16.3
  • 3.17.0
  • 3.17.1
  • 3.17.2
  • 3.17.3
  • 3.18.0
  • 3.18.1
  • 3.18.2
  • 3.18.3
  • 3.18.4
  • 3.19.0
  • 3.19.1
  • 3.19.2
  • 3.19.3
  • 3.19.4
  • 3.19.5
  • 3.19.6
  • 3.20.0
  • 3.20.1
  • 3.20.2
  • help
  • v1.9.44
  • v1.9.45
  • v1.9.46
  • v1.9.47
  • v1.9.48
  • v1.9.49
  • v1.9.50
  • v1.9.51
  • v1.9.90
  • v1.9.91
  • v1.9.92
  • v2.0.0
  • v2.1
  • v2.1.1
  • v2.10
  • v2.10.1
  • v2.10.2
  • v2.11
  • v2.11.1
  • v2.12
  • v2.13
  • v2.13.1
  • v2.14
  • v2.15
  • v2.15.1
  • v2.15.2
  • v2.16.0
  • v2.17.0
  • v2.18.0
  • v2.19.0
  • v2.2
  • v2.2.1
  • v2.20.0
  • v2.20.1
  • v2.20.2
  • v2.21.0
  • v2.22.0
  • v2.23.0
  • v2.23.1
  • v2.24.0
  • v2.3
  • v2.4
  • v2.4.1
  • v2.5
  • v2.6
  • v2.7
  • v2.8
  • v2.8.1
  • v2.8.2
  • v2.9
  • v2.9.0
  • v2.99.1
  • v2.99.2
  • v2.99.3
  • v2.99.4
  • v2.99.5
  • v2.99.6
  • v2.99.7
  • v3.0.0
  • v3.1.0
115 results

Target

Select target project
  • xmonader/gambas
  • gambas/gambas
  • gbWilly/gambas
  • dtardon/gambas
  • Davidmue/gambas
  • mmu_man/gambas
  • jguardon/gambas
  • tstueker/gambas
  • timsoft/gambas
  • yann64/gambas
  • Matthew-Collins/gambas
  • microhobby/gambas
  • ercoupeflyer/gambas
  • pebauer68/gambas
  • ptmarstech/gambas
  • christhal/gambas
  • tboege/gambas
  • christopherwoo/gambas
  • yusronarif/gambas
  • gen.braga/gambas
  • MelvinG24/gambas
  • Krischel/gambas
  • liang-wei/gambas
  • brucebruen/gambas
  • LibreDWG/gambas
  • SkyN9ne/gambas
  • zxMarce/gambas
  • lordheavy/gambas
  • ddabrahams76/gambas
  • GianluigiOr/gambas
  • rfc1394/gambas
  • wekan/gambas
  • bsteers4/gambas
  • fweimer-rh/gambas
  • CDCDCDCDCDCD/gambas
  • geekdu42/gambas
  • belmotek/gambas
  • jfrank1500/gambas
  • mfischerq/gambas
  • shiny0110/gambas
  • kk667788/gambas
  • bandali/gambas
  • 64sys/gambas
  • justlostintime/gambas
  • aleasto/gambas
  • bgermann/gambas
  • linusky/gambas
47 results
Select Git revision
  • AppImage
  • WorkSpace
  • cmake
  • evdev
  • exclamation-mark-completion
  • gb.chart2
  • gb.git
  • gb.joystick
  • gb.net.imap
  • gb.spreadsheet
  • gb.test
  • gb.test.tap
  • master
  • newdialogs
  • stable
  • 3.11.0
  • 3.11.1
  • 3.11.2
  • 3.11.3
  • 3.11.4
  • 3.12.0
  • 3.12.1
  • 3.12.2
  • 3.13.0
  • 3.14.0
  • 3.14.1
  • 3.14.2
  • 3.14.3
  • 3.15.0
  • 3.15.1
  • 3.15.2
  • 3.16.0
  • 3.16.1
  • 3.16.2
  • 3.16.3
  • 3.17.0
  • 3.17.1
  • 3.17.2
  • 3.17.3
  • 3.18.0
  • 3.18.1
  • 3.18.2
  • 3.18.3
  • 3.18.4
  • 3.19.0
  • 3.19.1
  • 3.19.2
  • 3.19.3
  • 3.19.4
  • 3.19.5
  • 3.19.6
  • 3.20.0
  • 3.20.1
  • 3.20.2
  • help
  • v1.9.44
  • v1.9.45
  • v1.9.46
  • v1.9.47
  • v1.9.48
  • v1.9.49
  • v1.9.50
  • v1.9.51
  • v1.9.90
  • v1.9.91
  • v1.9.92
  • v2.0.0
  • v2.1
  • v2.1.1
  • v2.10
  • v2.10.1
  • v2.10.2
  • v2.11
  • v2.11.1
  • v2.12
  • v2.13
  • v2.13.1
  • v2.14
  • v2.15
  • v2.15.1
  • v2.15.2
  • v2.16.0
  • v2.17.0
  • v2.18.0
  • v2.19.0
  • v2.2
  • v2.2.1
  • v2.20.0
  • v2.20.1
  • v2.20.2
  • v2.21.0
  • v2.22.0
  • v2.23.0
  • v2.23.1
  • v2.24.0
  • v2.3
  • v2.4
  • v2.4.1
  • v2.5
  • v2.6
  • v2.7
  • v2.8
  • v2.8.1
  • v2.8.2
  • v2.9
  • v2.9.0
  • v2.99.1
  • v2.99.2
  • v2.99.3
  • v2.99.4
  • v2.99.5
  • v2.99.6
  • v2.99.7
  • v3.0.0
  • v3.1.0
115 results
Show changes
Commits on Source (2)
......@@ -273,7 +273,7 @@ Public Sub Scanner_PageBegin()
End
Public Sub Scanner_PageFinished()
Public Sub Scanner_PageEnd()
Dim hImg As Image
Dim s As String
......@@ -293,7 +293,7 @@ Public Sub Scanner_PageFinished()
End
Public Sub Scanner_Finished()
Public Sub Scanner_End()
hbProgress.Hide
Spring1.Show
......
......@@ -20,7 +20,7 @@ End
End
Public Sub Scan_Finished()
Public Sub Scan_End()
Print "End"
......
......@@ -15,13 +15,13 @@ Private $sDeviceName As String
Private $bASync As Boolean
'Property _Name As String
Private $sName As String
'Private $Options As _Options
'Private $Options As ScannerOptions
Property Read Progress As Float
Private bHaveInfo As Boolean
Private $aOptionsNames As String[]
Private $aOptions As _Option[]
Private $aOptions As ScannerOption[]
Private $aImgStack As New String[]
Private $sCurImagePath As String
......@@ -35,8 +35,9 @@ Private $fProgress As Float
Private $stmpPath As String = File.Dir(Temp())
Event Begin
Event PageBegin
Event PageFinished
Event PageEnd
Event Finished
Event End
Event Progress
Event Error(ErrorText As String)
......@@ -95,7 +96,7 @@ Private Sub GetOptions()
Dim sRet As String
Dim s, sCurGroup As String
Dim aLine As String[]
Dim hOption As _Option
Dim hOption As ScannerOption
Dim a As String[]
Dim iTiret As Integer
Dim sName As String
......@@ -107,7 +108,7 @@ Private Sub GetOptions()
If Not IsAvailable() Then Error.Raise("Unknown device or device not available")
$aOptionsNames = New String[]
$aOptions = New _Option[]
$aOptions = New ScannerOption[]
Shell "scanimage " & $sDeviceName & " -A" To sRet
For Each s In Split(sRet, "\n")
......@@ -136,7 +137,7 @@ Private Sub GetOptions()
sValues = Trim(Mid(s, iStartOptions + 1, iEndOptions - iStartOptions - 1))
sDefault = Mid(s, iEndOptions + 1)
'aLine = Split(Mid(s, iStartOptions), " ", "()")
hOption = New _Option
hOption = New ScannerOption
'Store the option group
hOption._Group = sCurGroup
'Manage the option cutting
......@@ -254,7 +255,7 @@ Public Function Scan() As Image
Dim sCommand As String
'Dim sTemp As String = Temp
Dim hImage As Image
Dim hOption As _Option
Dim hOption As ScannerOption
Dim sCount As String
If Not $aOptionsNames Then GetOptions
......@@ -331,6 +332,7 @@ Public Sub Process_Kill()
'$aImgStack.Push($sCurImagePath)
$fProgress = 1
Raise Finished
Raise End
End
......@@ -341,7 +343,7 @@ Public Sub Process_Read()
s = Read #Last, Lof(Last)
$aImgStack.Add(Trim(s))
Raise PageFinished
Raise PageEnd
End
......@@ -376,7 +378,7 @@ Public Function _next() As String
End
''Find an option from it's name (same as hScan[key])
Public Sub Find(Key As String) As _Option
Public Sub Find(Key As String) As ScannerOption
If Not $aOptionsNames Then GetOptions
Try Return $aOptions[$aOptionsNames.Find(Key)]
......@@ -392,7 +394,7 @@ Public Sub Exist(Key As String) As Boolean
End
''Return an Option from it's name
Public Function _get(Name As String) As _Option
Public Function _get(Name As String) As ScannerOption
If Not $aOptionsNames Then GetOptions
If Not $aOptionsNames.Exist(Name) Then
......
' Gambas class file
Export
Property Read Group As String ''Return the group option name
Property Read IsRange As Boolean ''Indicate if the option give a range between too value
Property Read MaxValue As Float ''Return the range max value
......
......@@ -24,7 +24,7 @@ Event Found
Static Public Sub _init()
If Not System.Exist("scanimage") Then
Error.Raise("Scanner CLI tool is not detected.\nPlease Install the Sane package")
Error.Raise("Scanner CLI tool is not detected. Please Install the Sane package")
Endif
' GetList(True)
'$IsInit = True
......