home *** CD-ROM | disk | FTP | other *** search
- G4C
- ; $VER: HTMLLIB Rev.027 by Juan Manuel Wehrli 1999 - 2000
- WinBig -1 -1 700 235 "HTMLEXT: HTML Bibliothek"
- WinType 11110000
- WinBackground IMAGE BG 0
- Winout "NIL:"
-
- xOnLoad
- SetGad #This 4 HIDE
- SetGad #This 6 HIDE
- CLI 'LIST HTMLEXT:Settings/htmllib/ LFORMAT="%N" >t:htmlext/lib.list'
- LVUSE #This 1
- LVChange "t:htmlext/lib.list"
- LVSort ASC
- LVDel -1
- LVUse #This 3
- LVClear
- GuiOpen #This
-
- xOnClose
- GuiQuit #This
-
- xMenu "Projekt" "Importieren" "" ""
- CLI 'lha -T x ram:HTMLEXT_lib.lha HTMLEXT: >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
-
- xMenu "Projekt" "Exportieren" "" ""
- CLI 'lha -A -r u ram:HTMLEXT_lib.lha HTMLEXT:Settings/htmllib >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
-
- xMenu "Projekt" "Synchronisieren" "" ""
- ifexists FILE "ram:HTMLEXT_lib.lha"
- CLI 'lha -T x ram:HTMLEXT_lib.lha HTMLEXT: >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
- CLI 'lha -r u ram:HTMLEXT_lib.lha HTMLEXT:Settings/htmllib >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
- EZReq "Soll das Update nun verschickt werden?" "Ja|Nein" ezupd
- if $ezupd = 1
- if $*EMAILADR = ""
- SetVar *EMAILADR "jmw@pop.ch"
- endif
- SetVar .HTMLEXT.emad $*EMAILADR
- SetVar .HTMLEXT.subj "HTMLEXT Library Update"
- CLI 'setenv .HTMLEXT.user $*USER'
- CLI 'rx $*EMAILER LIBUPDATE "ram:HTMLEXT_lib.lha"'
- endif
- else
- CLI 'lha -r a ram:HTMLEXT_lib.lha HTMLEXT:Settings/htmllib >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
- EZReq "Soll das Update nun verschickt werden?" "Ja|Nein" ezupd
- if $ezupd = 1
- if $*EMAILADR = ""
- SetVar *EMAILADR "jmw@pop.ch"
- endif
- SetVar .HTMLEXT.emad $*EMAILADR
- SetVar .HTMLEXT.subj "HTMLEXT Library Update"
- CLI 'setenv .HTMLEXT.user $*USER'
- CLI 'rx $*EMAILER LIBUPDATE "ram:HTMLEXT_lib.lha"'
- endif
- endif
-
- xMenu "Projekt" "Beenden" "" ""
- GuiQuit #This
-
- xMenu "Kategorie" "Import" "" ""
- Reqfile -1 -1 200 500 "Bitte Import Verzeichnis auswählen" DIR "impdir" "ram:"
- Reqfile -1 -1 200 500 "Bitte Destination auswählen" DIR "destdir" "HTMLEXT:Settings/htmllib/"
- FailAt 21
- CLI 'copy $impdir to $destdir ALL >CON:0/0/550/50/Kopiere/CLOSE/PUBSCREEN$*SCREEN'
-
- xMenu "Kategorie" "Import LhA" "" ""
- Reqfile -1 -1 200 500 "Bitte Import Datei wählen" FILE "impfile" "ram:"
- CLI 'lha x $impfile HTMLEXT: >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
-
- xMenu "Kategorie" "Export" "" ""
- SetVar VORS "HTMLEXT:Settings/htmllib/"
- AppVar VORS "$LVP"
- Reqfile -1 -1 200 500 "Bitte Destination auswählen" DIR "dest" "ram:"
- SetVar destdir $dest
- AppVar destdir $LVP
- CLI 'makedir $destdir'
- FailAt 21
- CLI 'copy $VORS TO $destdir >CON:0/0/550/50/Kopiere/CLOSE/PUBSCREEN$*SCREEN'
-
- xMenu "Kategorie" "Export LhA" "" ""
- SetVar dir "HTMLEXT:Settings/htmllib/"
- AppVar dir $LVP
- SetVar name "ram:"
- AppVar name $LVP
- AppVar name "_lib.lha"
- CLI 'Lha -r a $name $dir >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
-
- ;Projekte Teil
- xLISTVIEW 5 5 100 180 "" "LVP" "t:htmlext/lib.list" 0 "SHOW"
- GadID 1
- GadFont xHelvetica.font 11 000
- CLI 'LIST HTMLEXT:Settings/htmllib/$LVP LFORMAT="%N" >t:htmlext/lib.tags'
- LVUSE #This 3
- LVChange "t:htmlext/lib.tags"
- LVSort ASC
- LVDel -1
-
- xTextIn 255 210 365 18 "" STR "" 200
- GadID 4
- GadFont xHelvetica.font 11 000
- LVUSE #This 1
- string = $STR
- LVADD "$STR"
- LVSort ASC
- Update #This 4 ""
- SetVar TMP "HTMLEXT:Settings/htmllib/"
- AppVar TMP "$string"
- CLI 'makedir $TMP'
- SetGad #This 4 HIDE
- PARTREDRAW #This 254 209 367 20
-
-
- xButton 5 190 35 18 "Neu"
- GadFont xHelvetica.font 11 000
- SetGad #This 4 SHOW
- PARTREDRAW #This 254 209 367 20
-
- xButton 40 190 65 18 "Löschen"
- GadFont xHelvetica.font 11 000
- EZREQ "Achtung: Es werden alle Daten der aktuellen Kategorie gelöscht!" "Weiter|Abbrechen" EZVAR
- if $EZVAR = "1"
- SetVar TMP "HTMLEXT:Settings/htmllib/"
- AppVar TMP "$LVP"
- FailAt 21
- CLI 'delete $TMP ALL NOREQ'
- LVUSE #This 1
- LVDEL -1
- endif
-
-
- ; TAG Teil
- xLISTVIEW 105 5 150 180 "" "LVT" "t:htmlext/lib.list" 0 "SHOW"
- GadID 3
- GadFont xHelvetica.font 11 000
- UPDATE #This 4 $LVT
- STRT = $LVT
- SetVar ALVDATA "HTMLEXT:Settings/htmllib/$LVP"
- AppVar ALVDATA "/$LVT"
- LVUSE #This 5
- LVChange "$ALVDATA"
- if $aprev = "1"
- SetVar VORS "HTMLEXT:Settings/htmllib/"
- AppVar VORS "$LVP"
- AppVar VORS "/"
- AppVar VORS "$LVT"
- IfExists FILE $VORS
- FailAt 21
- CLI 'rx $*BROWSER OPEN $VORS'
- endif
- endif
-
-
- xTextIn 255 210 365 18 "" STR2 "" 200
- GadFont xHelvetica.font 11 000
- GadID 6
- SetVar TMP "HTMLEXT:Settings/htmllib/"
- AppVar TMP "$LVP"
- AppVar TMP "/"
- AppVar TMP "$STR2"
- FailAt 21
- CLI 'copy HTMLEXT:settings/_defs/Libtag.txt to $TMP'
- SetVar Befehl "rx "
- AppVar Befehl $*EDITOR
- AppVar Befehl " OPEN "
- AppVar Befehl $TMP
- CLI '$Befehl'
- CLI 'LIST HTMLEXT:Settings/htmllib/$LVP LFORMAT="%N" >t:htmlext/lib.tags'
- LVUSE #This 3
- LVChange "t:htmlext/lib.tags"
- LVSort ASC
- LVDel -1
- SetGad #This 6 HIDE
- PARTREDRAW #This 254 209 367 20
-
- xButton 105 190 35 18 "Neu"
- GadFont xHelvetica.font 11 000
- SetGad #This 6 SHOW
- PARTREDRAW #This 254 209 367 20
-
- xButton 140 190 60 18 "N. v. Mark"
- GadFont xHelvetica.font 11 000
- GadHelp "Erzeugt neuen Eintrag vom selektiertem Abschnitt im Editor"
- SetVar .htmlext.rqt "Tag Name:" ;Titel
- SetVar .htmlext.rqb "Bitte geben Sie den gewünschen TAG Namen ein ..." ;Body
- SetVar .htmlext.rqd "Neu" ;Default
- SetVar .htmlext.rqu "Weiter|Abbrechen" ;Buttons
- cli 'rx htmlext:mod/htmlext.smod REQSTRING'
- if $.htmlext.res = 1
- SetVar TMP "HTMLEXT:Settings/htmllib/"
- AppVar TMP "$LVP"
- AppVar TMP "/"
- AppVar TMP "$.htmlext.tmp"
- cli 'rx $*EDITOR BLOCKSAVE $TMP'
- CLI 'LIST HTMLEXT:Settings/htmllib/$LVP LFORMAT="%N" >t:htmlext/lib.tags'
- LVUSE #This 3
- LVChange "t:htmlext/lib.tags"
- LVSort ASC
- LVDel -1
-
- endif
-
- xButton 200 190 55 18 "Löschen"
- GadFont xHelvetica.font 11 000
- LVUSE #This 3
- SetVar TMP "HTMLEXT:Settings/htmllib/"
- AppVar TMP $LVP
- AppVar TMP "/"
- AppVar TMP $LVT
- FailAt 21
- CLI 'delete $TMP FORCE'
- LVDEl -1
-
- ; DATA Teil
- xLISTVIEW 255 5 440 180 "" "LIBD" "HTMLEXT:Settings/htmllib/hilfe/Einleitung" 10 "TXT"
- GadID 5
- GadFont xCourier.font 11 000
-
- xButton 255 190 70 18 "Bearbeiten"
- GadFont xHelvetica.font 11 000
- SetVar BEARB "HTMLEXT:Settings/htmllib/"
- AppVar BEARB "$LVP"
- AppVar BEARB "/"
- AppVar BEARB "$LVT"
- IfExists FILE $BEARB
- CLI '$*EDITOR OPEN "$BEARB"'
- else
- FailAt 21
- COPY "HTMLEXT:settings/_defs/Libtag.txt" "$BEARB"
- CLI '$*EDITOR OPEN "$BEARB"'
- endif
-
-
- xButton 385 190 70 18 "Datei erz."
- GadFont xHelvetica.font 11 000
- GadHelp "Neue Datei erzeugen"
- SetVar BEARB "HTMLEXT:Settings/htmllib/"
- AppVar BEARB "$LVP"
- AppVar BEARB "/"
- AppVar BEARB "$LVT"
- LVUSE HTMLEXT 3
- SetVar nfile "$$LV.DIR"
- AppVar nfile ".htm"
- SetVar .htmlext.rqt "Datei erzeugen" ;Titel
- SetVar .htmlext.rqb "Bitte Dateinamen eingeben ..." ;Body
- SetVar .htmlext.rqd "$nfile" ;Default
- SetVar .htmlext.rqu "Erzeugen|Abbrechen" ;Buttons
- cli 'rx htmlext:mod/htmlext.smod REQSTRING'
- if $.htmlext.res = 1
- IfExists FILE $BEARB
- FailAt 21
- CLI 'copy "$BEARB" to $.htmlext.tmp'
- CLI 'rx $*BROWSER OPEN $.htmlext.tmp'
- endif
- LVUSE HTMLEXT 3
- LVDIR #$$LV.DIR
-
- xButton 455 190 70 18 "Einfügen"
- GadFont xHelvetica.font 11 000
- SetVar BEARB "HTMLEXT:Settings/htmllib/"
- AppVar BEARB "$LVP"
- AppVar BEARB "/"
- AppVar BEARB "$LVT"
- CLI '$*EDITOR INSERT "$BEARB"'
-
- xButton 525 190 70 18 "_Vorschau"
- GadFont xHelvetica.font 11 000
- GadKey "v"
- SetVar VORS "HTMLEXT:Settings/htmllib/"
- AppVar VORS "$LVP"
- AppVar VORS "/"
- AppVar VORS "$LVT"
- IfExists FILE $VORS
- FailAt 21
- CLI 'rx $*BROWSER OPEN $VORS'
- endif
-
- xCheckBox 595 190 18 18 "" aprev "1" "2" OFF
- GadHelp "Automaitsche Vorschau aktivieren."
-
- ; Globaler Teil
- xButton 625 190 70 18 "B_eenden"
- GadKey "s"
- GadFont xHelvetica.font 11 000
- GuiQuit #This
-
-