home *** CD-ROM | disk | FTP | other *** search
- G4C
-
- WINBIG 440 234 335 390 "BOOKMARKS"
- wintype 11010001
- WINBACKGROUND SOLID 1 0
-
- xONLOAD
- Set help on
- VARPATH ShowGUI/ListConfig
-
-
- ifexists FILE S:Picture.data
- changed = 0
- else
- gosub PicList ListeMachen
- changed = 1
- lvuse PicList 1
- lvchange S:Picture.data
- endif
-
- guiopen PicList
-
-
- lvuse PicList 1
- setgad PicList 1 HIDE
- LVMove #0
- setgad PicList 1 SHOW
-
-
-
- XLISTVIEW 5 10 240 355 '' liste S:Picture.data 0 SHOW
- gadid 1
- Gadhelp "Select Entry to activate"
- gosub PicList UpdList
-
- xONCLOSE
- guiclose PicList
-
- XRoutine PicHolen
-
- if $pics > ''
- Parsevar pics
- setvar w 0
- setgad PicList 1 HIDE
-
- while $w < $$parse.total
- sp = $$parse.$w
- EXTRACT sp FILE *name
- lvadd ''
- %name = $*name
- %artist = $artist ;''
- %type = $type ;''
- %date = $date ;''
- %path = $$parse.$w
- w == $w + 1
- endwhile
- lvmove #0
- lvmove #$$LV.TOTAL
- lvgo #$$LV.TOTAL
- setgad PicList 1 SHOW
- changed = 1
- endif
-
- XRoutine UpdList
- if $$lv.line > 1
- extract %name CLEAN *name
- extract %artist CLEAN *artist
- extract %type CLEAN *type
- extract %date CLEAN *date
- extract %path CLEAN *path
-
- ifexists GUI Editor
- update Editor 1 $*name
- update Editor 2 $*artist
- update Editor 3 $*type
- update Editor 4 $*date
- endif
- endif
- xROUTINE ListeMachen
-
- TEXTFILE ram:Picture.data
- GCDB
- 0
- 5
- %name 15 S
- %artist 15 S
- %type 8 S
- %date 15 S
- %path 150 S
- ###
-
- LVUse PicList 101
-
- lvadd ''
- %name = 'Name'
- %artist = 'Artist'
- %type = 'Type'
- %date = 'Date'
- %path = 'Path'
- lvadd ''
-
- ifexists FILE s:Picture.data
- ;
- else
- lvsave s:Picture.data
- ;
- endif
-
- lvuse PicList 1
-
-
- XLISTVIEW 600 600 290 38 "" deppy "ram:Picture.data" 0 SHOW
- gadid 101
-
-
- xRoutine ListSave
- ReqFile 0 0 200 400 "Save List as..." SAVE listy ShowGUI:
- if $listy > ''
- lvuse PicList 1
- lvsave $listy
- changed = 0
- else
- ezreq "There's no file to save!" "Ok" ok
- endif
-
-
- image 247 10 bshow
- Attr RESIZE 1002
- XAREA 250 11 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Shows a picture from the list"
- if $$lv.line > 1
- ShowGUI/pic = $%path
- SET BUFFERS 5000
- .ShowGUIconfig = 'G4C\n\nxOnLoad\n'
- appvar .ShowGUIconfig '\nShowGUI/ppicture = "$ppicture"'
- appvar .ShowGUIconfig '\nShowGUI/pcopy = "$pcopy"'
- appvar .ShowGUIconfig '\nShowGUI/pproggy = "$pproggy"'
- appvar .ShowGUIconfig '\nShowGUI/pic = $pic'
- appvar .ShowGUIconfig '\nShowGUI/viewer = "$viewer"'
- appvar .ShowGUIconfig '\nShowGUI/befehl = "$befehl"'
- appvar .ShowGUIconfig '\nShowGUI/PLISTE = "$PLISTE"'
- appvar .ShowGUIconfig '\nShowGUI/artist = "$artist"'
- appvar .ShowGUIconfig '\nShowGUI/type = "$type"'
- appvar .ShowGUIconfig '\nShowGUI/date = "$date"'
- appvar .SHOWGUIconfig '\nShowGUI/PICSTART = "$PICSTART"'
- appvar .SHOWGUIconfig '\nShowGUI/PATTERN = "$PATTERN"'
- appvar .SHOWGUIconfig '\nShowGUI/PATTERNPATH = "$PATTERNPATH"'
- appvar .SHOWGUIconfig '\nShowGUI/extviewer = "$extviewer"'
- appvar .SHOWGUIconfig '\nShowGUI/argu = "$argu"'
- appvar .ShowGUIconfig '\nGuiQuit #This'
- copy env:.ShowGUIconfig ShowGUI:Config/ShowGUIconfig
- guiload ShowGUI:Config/ShowGUIconfig
- gosub ShowGUI JetztLaden2
- endif
-
- image 247 40 bload
- Attr RESIZE 1000
- XAREA 250 41 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Load a picture LIST"
- ReqFile 0 0 200 400 "Load List" LOAD listy $PLISTE
- if $listy > ''
- ifexists file $listy
- lvuse PicList 1
- lvchange $listy
- changed = 0
- endif
- else
- ezreq "There's no list to load!" "Ok" ok
- endif
-
- image 247 130 bsavedef
- Attr RESIZE 1000
- XAREA 250 131 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Save list as the default list"
- lvsave s:Picture.data
- changed = 0
-
-
- image 247 70 bsave
- Attr RESIZE 1000
- xAREA 250 71 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Save list"
- if $listy > ''
- lvuse PicList 1
- lvsave $listy
- changed = 0
- else
- ezreq "There's no list to save!" "Ok" ok
- endif
-
-
- image 247 100 bsaveas
- Attr RESIZE 1000
- XAREA 250 101 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Save list as..."
- ReqFile 0 0 200 400 "Save list as..." SAVE listy $PLISTE
- if $listy > ''
- lvuse PicList 1
- lvsave $listy
- changed = 0
- else
- ezreq "There's no list to save!" "Ok" ok
- endif
-
- image 247 225 bconfig
- Attr RESIZE 1000
- XAREA 250 226 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Configure the piclist"
- Update ListConfig 13 $viewer
- Update ListConfig 14 $PLISTE
- Update ListConfig 15 $befehl
- Update ListConfig 16 $artist
- Update ListConfig 17 $type
- Update ListConfig 18 $date
- guiopen ListConfig
-
- image 247 168 badd
- Attr RESIZE 1000
- XAREA 250 169 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Add a picture to the list"
- set buffers 60000
- ReqFile 0 0 200 400 "Select pictures..." MULTI pics $ppicture
- gosub PicList PicHolen
- gosub PicList UpdList
-
- image 247 188 bbook
- Attr RESIZE 1000
- xAREA 250 189 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Take current pic and place it in the list"
- extract pic FILE picname
- lvadd ''
- %name = "$picname"
- %artist = ''
- %type = ''
- %date = ''
- %path = $pic
-
- lvmove #0
- lvmove #$$LV.TOTAL
- lvgo #$$LV.TOTAL
-
- changed = 1
- setgad PicList 1 SHOW
-
-
- image 247 255 bedit
- Attr RESIZE 1000
- XAREA 250 256 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Edit list entry"
- if $$lv.line > 1
- update Editor 1 $*name
- update Editor 2 $*artist
- update Editor 3 $*type
- update Editor 4 $*date
- guiopen Editor
- endif
-
- image 247 315 bclear
- Attr RESIZE 1000
- XAREA 250 316 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Clear the whole list"
- TEXTFILE ram:Picture.data
- GCDB
- 0
- 5
- %name 15 S
- %artist 15 S
- %type 8 S
- %date 15 S
- %path 150 S
- ###
- lvclear
- lvchange ram:Picture.data
-
- lvadd ''
- %name = 'Name'
- %artist = 'Artist'
- %type = 'Type'
- %date = 'Date'
- %path = 'Path'
- lvadd ''
-
- image 247 285 bdelete
- Attr RESIZE 1000
- XAREA 250 286 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "Delete an entry from the list"
- if $$lv.line > 1
- gosub PicList Löschen
- endif
-
- image 247 345 bview
- Attr RESIZE 1000
- XAREA 250 346 78 17 BOX
- Attr RESIZE 1000
- Gadhelp "View with external viewer"
- if $$lv.line > 1
- ShowGUI/pic = $%path
- CLI 'C:run >NIL: $viewer $befehl $pic'
- endif
-
-
- xMenu 'Sort' 'Name' '' '1'
-
- setgad PicList 1 HIDE
- lvdel 0
- lvsort %name
- gosub PicList Ordnung
-
-
-
- xMenu 'Sort' 'Artist' '' '2'
-
- setgad PicList 1 HIDE
- lvdel 0
- lvsort %artist
- gosub PicList Ordnung
-
-
- xMenu 'Sort' 'Type' '' '3'
-
- setgad PicList 1 HIDE
- lvdel 0
- lvsort %type
- gosub PicList Ordnung
-
-
- xMenu 'Sort' 'Date' '' '4'
-
- setgad PicList 1 HIDE
- lvdel 0
- lvsort %date
- gosub PicList Ordnung
-
-
- xMenu 'Sort' 'Path' '' '5'
-
- setgad PicList 1 HIDE
- lvdel 0
- lvsort %path
- gosub PicList Ordnung
-
- xRoutine Ordnung
-
- lvinsert 0 ''
- %name = 'Name'
- %artist = 'Artist'
- %type = 'Type'
- %date = 'Date'
- %path = 'Path'
- lvmove #0
- changed = 1
- setgad PicList 1 SHOW
-
-
-
- XRoutine Löschen
- if $$LV.LIST > 1
-
- EXTRACT %name CLEAN pname
-
- setgad PicList 1 HIDE
-
- ezreq "Delete $pname ?" "Yes|No" wosjetzt
- if $wosjetzt = 1
- LVdel -1
- lvgo #$$LV.LIST
- lvmove #$$LV.LIST
- changed = 1
- endif
-
- setgad PicList 1 SHOW
-
- endif
-
-
-
-