From 7dc7e8ef2adce6391ad809eb04737297d28e00ea Mon Sep 17 00:00:00 2001 From: mazze Date: Sat, 2 Apr 2016 06:34:39 +0000 Subject: [PATCH] Not needed anymore because Wanderer has internal delete function. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@52521 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- .../Wanderer/Tools/Delete/Catalogs/Delete.cd | 37 ----- .../Wanderer/Tools/Delete/Catalogs/croatian.ct | 53 ------ .../system/Wanderer/Tools/Delete/Catalogs/czech.ct | 53 ------ .../Wanderer/Tools/Delete/Catalogs/danish.ct | 54 ------ .../Wanderer/Tools/Delete/Catalogs/french.ct | 42 ----- .../Wanderer/Tools/Delete/Catalogs/german.ct | 53 ------ .../Wanderer/Tools/Delete/Catalogs/italian.ct | 53 ------ .../Wanderer/Tools/Delete/Catalogs/mmakefile.src | 10 -- .../Wanderer/Tools/Delete/Catalogs/polish.ct | 52 ------ .../Wanderer/Tools/Delete/Catalogs/portuguese.ct | 52 ------ .../Wanderer/Tools/Delete/Catalogs/russian.ct | 42 ----- .../Wanderer/Tools/Delete/Catalogs/spanish.ct | 52 ------ .../Wanderer/Tools/Delete/icons/Delete.info.src | 2 - .../system/Wanderer/Tools/Delete/icons/Delete.png | Bin 2072 -> 0 bytes .../Wanderer/Tools/Delete/icons/mmakefile.src | 9 - workbench/system/Wanderer/Tools/Delete/locale.c | 58 ------- workbench/system/Wanderer/Tools/Delete/locale.h | 23 --- workbench/system/Wanderer/Tools/Delete/main.c | 182 --------------------- .../system/Wanderer/Tools/Delete/mmakefile.src | 18 -- 19 files changed, 845 deletions(-) delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/Delete.cd delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/croatian.ct delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/czech.ct delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/danish.ct delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/french.ct delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/german.ct delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/italian.ct delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/mmakefile.src delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/polish.ct delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/portuguese.ct delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/russian.ct delete mode 100644 workbench/system/Wanderer/Tools/Delete/Catalogs/spanish.ct delete mode 100644 workbench/system/Wanderer/Tools/Delete/icons/Delete.info.src delete mode 100644 workbench/system/Wanderer/Tools/Delete/icons/Delete.png delete mode 100644 workbench/system/Wanderer/Tools/Delete/icons/mmakefile.src delete mode 100644 workbench/system/Wanderer/Tools/Delete/locale.c delete mode 100644 workbench/system/Wanderer/Tools/Delete/locale.h delete mode 100644 workbench/system/Wanderer/Tools/Delete/main.c delete mode 100644 workbench/system/Wanderer/Tools/Delete/mmakefile.src diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/Delete.cd b/workbench/system/Wanderer/Tools/Delete/Catalogs/Delete.cd deleted file mode 100644 index 2e8cf9cea4..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/Delete.cd +++ /dev/null @@ -1,37 +0,0 @@ -; -MSG_TITLE (//) -Delete -; -MSG_DELETE_REQUEST (//) -Delete? -; -MSG_DELETE_CHOICE (//) -Delete|Cancel -; -MSG_REQUEST (//) -Are you sure you want to delete '%s'? -; -MSG_ERROR (//) -Error -; -MSG_OK (//) -OK -; -MSG_COULDNT_DELETE (//) -Could not delete file. -; -MSG_COULDNT_ALLOCATE (//) -Could not allocate memory. -; -MSG_COULDNT_LOCK (//) -Could not lock file for deletion. -; -MSG_INFO (//) -Info -; -MSG_WRONG_ARGS (//) -Error: Wrong number of arguments. -; -MSG_WB_ONLY (//) -Error: Must be started from Wanderer.\n -; \ No newline at end of file diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/croatian.ct b/workbench/system/Wanderer/Tools/Delete/Catalogs/croatian.ct deleted file mode 100644 index 75472c2c54..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/croatian.ct +++ /dev/null @@ -1,53 +0,0 @@ -## version $VER: Delete.catalog 1.3 (04.01.2010) -## language hrvatski -## codeset 0 -; -; -MSG_TITLE -Brisanje -; Delete -; -MSG_DELETE_REQUEST -Izbrisati? -; Delete? -; -MSG_DELETE_CHOICE -Izbri¹i|Odustani -; Delete|Cancel -; -MSG_REQUEST -®elite li izbrisati '%s'? -; Are you sure you want to delete '%s'? -; -MSG_ERROR -Pogre¹ka -; Error -; -MSG_OK -U redu -; OK -; -MSG_COULDNT_DELETE -Datoteku nije moguæe izbrisati. -; Could not delete file. -; -MSG_COULDNT_ALLOCATE -Nedovoljno memorije. -; Could not allocate memory. -; -MSG_COULDNT_LOCK -Ne mogu zaprimiti datoteku za brisanje. -; Could not lock file for deletion. -; -MSG_INFO -Info -; Info -; -MSG_WRONG_ARGS -Pogre¹ka: Krivi broj argumenata. -; Error: Wrong number of arguments. -; -MSG_WB_ONLY -Pogre¹ka: Program mora biti startan iz Wanderer-a.\n -; Error: Must be started from Wanderer.\n -; diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/czech.ct b/workbench/system/Wanderer/Tools/Delete/Catalogs/czech.ct deleted file mode 100644 index 4b964ea986..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/czech.ct +++ /dev/null @@ -1,53 +0,0 @@ -## version $VER: Delete.catalog 1.3 (7.12.2007) -## language czech -## codeset 5 -; -; -MSG_TITLE -Smazání objektu -; Delete -; -MSG_DELETE_REQUEST -Smazat -; Delete? -; -MSG_DELETE_CHOICE -Smazat|Zru¹it -; Delete|Cancel -; -MSG_REQUEST -Opravdu chcete smazat vybraný objekt\n\'%s'? -; Are you sure you want to delete '%s'? -; -MSG_ERROR -Chyba -; Error -; -MSG_OK -OK -; OK -; -MSG_COULDNT_DELETE -Vybraný objekt nelze smazat. -; Could not delete file. -; -MSG_COULDNT_ALLOCATE -Není dostatek volné pamìti. -; Could not allocate memory. -; -MSG_COULDNT_LOCK -Vybraný objekt nelze zamknout. -; Could not lock file for deletion. -; -MSG_INFO -Informace -; Info -; -MSG_WRONG_ARGS -Chyba: Zadaný poèet argumentù je neplatný. -; Error: Wrong number of arguments. -; -MSG_WB_ONLY -Chyba: Program lze spustit jen ze systému Wanderer.\n -; Error: Must be started from Wanderer.\n -; diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/danish.ct b/workbench/system/Wanderer/Tools/Delete/Catalogs/danish.ct deleted file mode 100644 index 7e764212eb..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/danish.ct +++ /dev/null @@ -1,54 +0,0 @@ -## version $VER: Delete.catalog 1.0 (26.06.2010) -## language dansk -## codeset 0 -; -; Initial translation by Kristian Poul Herkild -; -MSG_TITLE -Slet -; Delete -; -MSG_DELETE_REQUEST -Slet? -; Delete? -; -MSG_DELETE_CHOICE -Slet|Afbryd -; Delete|Cancel -; -MSG_REQUEST -Er du sikker på, at du vil slette '%s'? -; Are you sure you want to delete '%s'? -; -MSG_ERROR -Fejl -; Error -; -MSG_OK -O.k. -; OK -; -MSG_COULDNT_DELETE -Kunne ikke slette fil. -; Could not delete file. -; -MSG_COULDNT_ALLOCATE -Kunne ikke tildele hukommelse. -; Could not allocate memory. -; -MSG_COULDNT_LOCK -Kunne ikke låse fil til sletning. -; Could not lock file for deletion. -; -MSG_INFO -Info -; Info -; -MSG_WRONG_ARGS -Fejl: Forkert antal argumenter. -; Error: Wrong number of arguments. -; -MSG_WB_ONLY -Fejl: Kan kun startes fra Wanderer.\n -; Error: Must be started from Wanderer.\n -; diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/french.ct b/workbench/system/Wanderer/Tools/Delete/Catalogs/french.ct deleted file mode 100644 index 58512c789d..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/french.ct +++ /dev/null @@ -1,42 +0,0 @@ -## version $VER: delete.catalog 1.0 (21.03.2006) -## language français -## codeset 0 -; -; -; -MSG_TITLE -Effacer -; -MSG_DELETE_REQUEST -Effacer ? -; -MSG_DELETE_CHOICE -_Effacer|A_nnuler -; -MSG_REQUEST -Êtes vous sûr de vouloir effacer '%s' ? -; -MSG_ERROR -Erreur -; -MSG_OK -OK -; -MSG_COULDNT_DELETE -Impossible d'effacer le fichier. -; -MSG_COULDNT_ALLOCATE -Impossible d'allouer de la mémoire. -; -MSG_COULDNT_LOCK -Impossible de verrouiller le fichier. -; -MSG_INFO -Info -; -MSG_WRONG_ARGS -Erreur: Nombre d'arguments faux. -; -MSG_WB_ONLY -Erreur: doit être démarré depuis le Wanderer !\n -; \ No newline at end of file diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/german.ct b/workbench/system/Wanderer/Tools/Delete/Catalogs/german.ct deleted file mode 100644 index 205466c730..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/german.ct +++ /dev/null @@ -1,53 +0,0 @@ -## version $VER: delete.catalog 1.0 (17.02.2008) -## language deutsch -## codeset 0 -; -; -MSG_TITLE -Delete -; Delete -; -MSG_DELETE_REQUEST -Löschen? -; Delete? -; -MSG_DELETE_CHOICE -Löschen|Abbrechen -; Delete|Cancel -; -MSG_REQUEST -Soll '%s' wirklich gelöscht werden? -; Are you sure you want to delete '%s'? -; -MSG_ERROR -Fehler -; Error -; -MSG_OK -OK -; OK -; -MSG_COULDNT_DELETE -Datei konnte nicht gelöscht werden. -; Could not delete file. -; -MSG_COULDNT_ALLOCATE -Speicher konnte nicht bereitgestellt werden. -; Could not allocate memory. -; -MSG_COULDNT_LOCK -Dateisperre konnte nicht erstellt werden. -; Could not lock file for deletion. -; -MSG_INFO -Info -; Info -; -MSG_WRONG_ARGS -Fehler: Falsche Anzahl an Argumenten. -; Error: Wrong number of arguments. -; -MSG_WB_ONLY -Fehler: Das Programm muss von Wanderer aus gestartet werden.\n -; Error: Must be started from Wanderer.\n -; diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/italian.ct b/workbench/system/Wanderer/Tools/Delete/Catalogs/italian.ct deleted file mode 100644 index 260ac74d4e..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/italian.ct +++ /dev/null @@ -1,53 +0,0 @@ -## version $VER: delete.catalog 1.0 (21.03.2006) -## language italiano -## codeset 0 -; -; -MSG_TITLE -Elimina -; Delete -; -MSG_DELETE_REQUEST -Elimino? -; Delete? -; -MSG_DELETE_CHOICE -Elimina|Annulla -; Delete|Cancel -; -MSG_REQUEST -Sei sicuro di voler eliminare '%s'? -; Are you sure you want to delete '%s'? -; -MSG_ERROR -Errore -; Error -; -MSG_OK -OK -; OK -; -MSG_COULDNT_DELETE -Impossibile eliminare il file. -; Could not delete file. -; -MSG_COULDNT_ALLOCATE -Impossibile allocare la memoria. -; Could not allocate memory. -; -MSG_COULDNT_LOCK -Impossibile marcare il file per la cancellazione. -; Could not lock file for deletion. -; -MSG_INFO -Informazioni -; Info -; -MSG_WRONG_ARGS -Errore: numero di argomenti sbagliato. -; Error: Wrong number of arguments. -; -MSG_WB_ONLY -Errore: l'operazione va avviata da Wanderer.\n -; Error: Must be started from Wanderer.\n -; diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/mmakefile.src b/workbench/system/Wanderer/Tools/Delete/Catalogs/mmakefile.src deleted file mode 100644 index 79598308ff..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/mmakefile.src +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright © 2003, The AROS Development Team. All rights reserved. -# $Id$ - -include $(SRCDIR)/config/aros.cfg - -CATALOGS:=croatian czech danish french german italian polish portuguese russian spanish - -%build_catalogs mmake=workbench-system-wanderer-tools-delete-catalogs \ - catalogs=$(CATALOGS) \ - name=Delete subdir=System/System/Wanderer/Tools diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/polish.ct b/workbench/system/Wanderer/Tools/Delete/Catalogs/polish.ct deleted file mode 100644 index 63caa6ae39..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/polish.ct +++ /dev/null @@ -1,52 +0,0 @@ -## version $VER: delete.catalog 1.0 (29.04.2010) -## codeset 5 -## language polski -; -MSG_TITLE -Delete -; Delete -; -MSG_DELETE_REQUEST -Skasowaæ? -; Delete? -; -MSG_DELETE_CHOICE -Skasuj|Poniechaj -; Delete|Cancel -; -MSG_REQUEST -Czy na pewno chcesz skasowaæ \"%s\"? -; Are you sure you want to delete '%s'? -; -MSG_ERROR -B³±d -; Error -; -MSG_OK -OK -; OK -; -MSG_COULDNT_DELETE -Nie mo¿na skasowaæ pliku. -; Could not delete file. -; -MSG_COULDNT_ALLOCATE -Nie mo¿na zaalokowaæ pamiêci. -; Could not allocate memory. -; -MSG_COULDNT_LOCK -Nie mo¿na uzyskaæ dostêpu do pliku. -; Could not lock file for deletion. -; -MSG_INFO -Informacja -; Info -; -MSG_WRONG_ARGS -B³±d: niew³a¶ciwa ilo¶æ parametrów. -; Error: Wrong number of arguments. -; -MSG_WB_ONLY -B³±d: program musi byæ wywo³any przez Wanderera.\n -; Error: Must be started from Wanderer.\n -; diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/portuguese.ct b/workbench/system/Wanderer/Tools/Delete/Catalogs/portuguese.ct deleted file mode 100644 index 9ec161e14e..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/portuguese.ct +++ /dev/null @@ -1,52 +0,0 @@ -## version $VER: delete.catalog 1.0 (30.09.2007) -## language português -## codeset 0 -; -; Translated by João Ralha (hardwired) -; -MSG_TITLE -Apagar -;Delete -; -MSG_DELETE_REQUEST -¿Apagar? -;Delete? -; -MSG_DELETE_CHOICE -Apagar|Cancelar -;Delete|Cancel -; -MSG_REQUEST -¿De certeza que quer apagar '%s'? -;Are you sure you want to delete '%s'? -; -MSG_ERROR -Erro -; -MSG_OK -Aceitar -;OK -; -MSG_COULDNT_DELETE -Não foi possível apagar o ficheiro. -;Could not delete file. -; -MSG_COULDNT_ALLOCATE -Não conseguiu alocar memória. -;Could not allocate memory. -; -MSG_COULDNT_LOCK -Não foi possível bloquear o ficheiro para apagar. -;Could not lock file for deletion. -; -MSG_INFO -Info -; -MSG_WRONG_ARGS -Erro: Número de argumentos errado. -;Error: Wrong number of arguments. -; -MSG_WB_ONLY -Error: Deve ser iniciado do Wanderer.\n -;Error: Must be started from Wanderer.\n -; \ No newline at end of file diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/russian.ct b/workbench/system/Wanderer/Tools/Delete/Catalogs/russian.ct deleted file mode 100644 index 696411cd72..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/russian.ct +++ /dev/null @@ -1,42 +0,0 @@ -## version $VER: delete.catalog 1.0 (12.09.2006) -## language russian -## codeset 0 -; -; -; -MSG_TITLE -Óäàëèòü -; -MSG_DELETE_REQUEST -Óäàëèòü ? -; -MSG_DELETE_CHOICE -_Óäàëèòü|Î_òìåíà -; -MSG_REQUEST -Âû óâåðåíû, ÷òî íàäî óäàëèòü '%s' ? -; -MSG_ERROR -Îøèáêà -; -MSG_OK -OK -; -MSG_COULDNT_DELETE -Íåâîçìîæíî óäàëèòü ôàéë. -; -MSG_COULDNT_ALLOCATE -Íåâîçìîæíî âûäåëèòü ïàìÿòü. -; -MSG_COULDNT_LOCK -Íåâîçìîæíî çàíÿòü ôàéë äëÿ óäàëåíèÿ. -; -MSG_INFO -Èíôîðìàöèÿ -; -MSG_WRONG_ARGS -Îøèáêà: Íåäîñòàòî÷íî àðãóìåíòîâ -; -MSG_WB_ONLY -Îøèáêà: Íóæíî çàïóñêàòü èç Wanderer !\n -; diff --git a/workbench/system/Wanderer/Tools/Delete/Catalogs/spanish.ct b/workbench/system/Wanderer/Tools/Delete/Catalogs/spanish.ct deleted file mode 100644 index 9152258a5f..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/Catalogs/spanish.ct +++ /dev/null @@ -1,52 +0,0 @@ -## version $VER: delete.catalog 1.0 (30.09.2007) -## language español -## codeset 0 -; -; Translated by ahg -; -MSG_TITLE -Borrar -;Delete -; -MSG_DELETE_REQUEST -¿Borrar? -;Delete? -; -MSG_DELETE_CHOICE -Borrar|Cancelar -;Delete|Cancel -; -MSG_REQUEST -¿Estás seguro de borrar '%s'? -;Are you sure you want to delete '%s'? -; -MSG_ERROR -Error -; -MSG_OK -Aceptar -;OK -; -MSG_COULDNT_DELETE -No se pudo borrar el archivo. -;Could not delete file. -; -MSG_COULDNT_ALLOCATE -No se pudo asignar memoria. -;Could not allocate memory. -; -MSG_COULDNT_LOCK -No se pudo bloquear el archivo para borrar. -;Could not lock file for deletion. -; -MSG_INFO -Info -; -MSG_WRONG_ARGS -Error: Cantidad equivocada de argumentos. -;Error: Wrong number of arguments. -; -MSG_WB_ONLY -Error: Debe ser iniciado desde el Wanderer.\n -;Error: Must be started from Wanderer.\n -; \ No newline at end of file diff --git a/workbench/system/Wanderer/Tools/Delete/icons/Delete.info.src b/workbench/system/Wanderer/Tools/Delete/icons/Delete.info.src deleted file mode 100644 index 42cd57b961..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/icons/Delete.info.src +++ /dev/null @@ -1,2 +0,0 @@ -TYPE = TOOL -STACK = 8192 diff --git a/workbench/system/Wanderer/Tools/Delete/icons/Delete.png b/workbench/system/Wanderer/Tools/Delete/icons/Delete.png deleted file mode 100644 index 982bf4d1ce938a01df4911b2f1b08ec98f0865a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcwPel00001 literal 2072 zcwPY*2%CMPE+ zC@3f?DJd*0EG;c9E-o%FFE2AQGc+_bH8nLhHa0joI6FH#Jv}`>K0ZG`KR`f0K|w)7 zLqkMFL`6kKMn*Cc=sHmx_sj8}~tE;Q5 ztgNlAt*)-FudlDLu&}YQv9hwVv$M0bw6wLgwYIjlx3{;rxVX8wxw^W#ySux*yu7`= zy}rJ_zrVl0z`()5!NS7A!^6YG#KgtL#m2_Q$H&LW$jHgb$;!&g%gf8m%*@Tr&Cbrw z&(F`$(9qG*(bCe=)6>(`)YR40)z;S5*VotB*x1?G+1lFL+uPgR+}z#W-QM2b-{0Th z;Naom;o{=ruz*=jZ3>=;-O`>FVn0>+9?6?CkFD?(p#N@$vEU^78ZZ z^Yrxe_V)Jo_xJkx`v3p`^{$C|00001bW%=J06^y0W&i*H0b)x>L;#2d9Y_EG010qN zS#tmY3ljhU3ljkVnw%H_000McNliru)d&n1DKi#+m`wlx1ldVMK~zY`jn@5NQ&kuM zaPKt8%tY%}28gM>*~hX^8NQH4B@>j83PCrvyNxj!gTZ7h2TYj^iBNf&n?MZ2U~c!0 zUAEmZ++?7dG#U+F z3JAbwWJ5H_n?_r`HY{x2n$Z8~(+osDfAO9DX+o*IST2)fbC1z?Z;x306as_v^)V7n ztFErRs6Z?d<%si76-ZBIGroB51quT4U+1*gu9fnV>2U|?hY}K#zDYTr&J#*xg}KaK zF9iy4O*c4ObLcU9_Q%J?A5KjAIw|E?YT9uIi=PV!Ydh>WYT!!Xv{ccf_wS24n@o>S zNQ}?sB!TpFHo|6cCGuS1Za+bT54$jR%--1OqwUSHpB+j#a)i;8d^GvnlvD=7MOfmJ zEa46q@+q*o$%M0_V|NR?2W*mh*1^Ptn96oRsY<2D=bm755LqEF^|_@I5FFmwVNTt< zN9DP7C1+?sc_1<8qW(=7jlGzy~q2bk8UIYUjp>rWYy>d|u-A%#T~`1Yxr{oy7vsEI$xo za1WrSsdHu}zRIk0O+vPGHx39~>R+!7XUJu2v=GGZ}0y2SEaxgkq=x z@44+THeM)G$WNb^6^OI>2;&5k&E=A>2f%NXUNfR7rf+TQAiAu^7EM)IiA<6!%;bS= zZ-5HywMzheb(P(K8QNMJG@AOxrlv-1O{G$vmr1_co6lhj;(g}^1ixi8p@z1rP4((a zm8w#OTvm`L%HsbII0%>hs?XFQC-*L^(F-ouT==0}S#nyMpR))M1j&5ce}Y5sRx_$^ zY0)*1Kvn7oKnK#(BYg{yV4E2myZLjyy0-cWC?o+no*&&ySjn| zTX59e*=ey_Z6->v?89xtQOsoOFylD(1YBMOd6X5R%wQcrF$^Yc;>IuCOBLfX+k~m8whz#7bHo|b!#T&T6U_||aT$(Q_WV`{x z&j;*^pk&Bb8oL8W4cFVQ>Ke6mmwr5d?yN#_rkKAoglgkm2X2ObDAbxA4l7s$bq(6f zb=6hM+#~OXf*!7-*w{bvZu=pdqrVe=e@0naTyQe&%MZdsym!N?&jLF`mJS&!p~c^{ z$Y&fkcD%e2_6=ywrXY?q?{D6?VMEv};aj#-Jp31T7|kzdC3?>Q0000 -#include -#include - -#define CATCOMP_ARRAY -#include "strings.h" - -#define CATALOG_NAME "System/System/Wanderer/Tools/Delete.catalog" -#define CATALOG_VERSION 1 - -/*** Variables **************************************************************/ -static struct Catalog *catalog; - - -/*** Functions **************************************************************/ -/* Main *********************************************************************/ -CONST_STRPTR _(ULONG id) -{ - if (LocaleBase != NULL && catalog != NULL) - { - return GetCatalogStr(catalog, id, CatCompArray[id].cca_Str); - } - else - { - return CatCompArray[id].cca_Str; - } -} - -/* Setup ********************************************************************/ -BOOL Locale_Initialize(VOID) -{ - if (LocaleBase != NULL) - { - catalog = OpenCatalog - ( - NULL, CATALOG_NAME, OC_Version, CATALOG_VERSION, TAG_DONE - ); - } - else - { - catalog = NULL; - } - - return TRUE; -} - -VOID Locale_Deinitialize(VOID) -{ - if(LocaleBase != NULL && catalog != NULL) CloseCatalog(catalog); -} - -ADD2INIT(Locale_Initialize, 90); -ADD2EXIT(Locale_Deinitialize, 90); diff --git a/workbench/system/Wanderer/Tools/Delete/locale.h b/workbench/system/Wanderer/Tools/Delete/locale.h deleted file mode 100644 index e765a7992b..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/locale.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef _LOCALE_H -#define _LOCALE_H - -/* - Copyright © 2006, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#include - -#define CATCOMP_NUMBERS -#include "strings.h" - -/*** Prototypes *************************************************************/ -/* Main *********************************************************************/ -STRPTR _(ULONG ID); /* Get a message, as a STRPTR */ -#define __(id) ((IPTR) _(id)) /* Get a message, as an IPTR */ - -/* Setup ********************************************************************/ -BOOL Locale_Initialize(void); -void Locale_Deinitialize(void); - -#endif /* _LOCALE_H */ diff --git a/workbench/system/Wanderer/Tools/Delete/main.c b/workbench/system/Wanderer/Tools/Delete/main.c deleted file mode 100644 index 5bb0ae8b67..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/main.c +++ /dev/null @@ -1,182 +0,0 @@ -/* - Copyright © 2003, The AROS Development Team. All rights reserved. - $Id$ -*/ - -#define MUIMASTER_YES_INLINE_STDARG - -#define DEBUG 1 -#include - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#include - -#include "locale.h" - -STRPTR AllocateNameFromLock(BPTR lock); - -int main(int argc, char **argv) -{ - int result = RETURN_OK; - - if (argc == 0) - { - struct WBStartup *startup = (struct WBStartup *) argv; - - if (startup->sm_NumArgs == 2) - { - BPTR parent = startup->sm_ArgList[1].wa_Lock; - STRPTR name = startup->sm_ArgList[1].wa_Name; - - if - ( - MUI_Request - ( - NULL, NULL, 0, - _(MSG_DELETE_REQUEST), _(MSG_DELETE_CHOICE), - _(MSG_REQUEST), (IPTR) name - ) == 1 - ) - { - BPTR cd = CurrentDir(parent); - BPTR lock = Lock(name, ACCESS_WRITE); - - if (lock != BNULL) - { - STRPTR buffer = AllocateNameFromLock(lock); - - UnLock(lock); - - if (buffer != NULL) - { - if (DeleteFile(name)) - { - UpdateWorkbenchObject(buffer, WBPROJECT, TAG_DONE); - } - else - { - MUI_Request - ( - NULL, NULL, 0, - _(MSG_ERROR), _(MSG_OK), - _(MSG_COULDNT_DELETE) - ); - } - - FreeVec(buffer); - } - else - { - MUI_Request - ( - NULL, NULL, 0, - _(MSG_ERROR), _(MSG_OK), - _(MSG_COULDNT_ALLOCATE) - ); - } - } - else - { - MUI_Request - ( - NULL, NULL, 0, - _(MSG_ERROR), _(MSG_OK), - _(MSG_COULDNT_LOCK) - ); - } - - CurrentDir(cd); - } - } - else if (startup->sm_NumArgs > 2) - { - ULONG i; - - for (i = 1; i < startup->sm_NumArgs; i++) - { - OpenWorkbenchObject - ( - "WANDERER:Tools/Delete", - WBOPENA_ArgLock, (IPTR) startup->sm_ArgList[i].wa_Lock, - WBOPENA_ArgName, (IPTR) startup->sm_ArgList[i].wa_Name, - TAG_DONE - ); - } - } - else - { - MUI_RequestA - ( - NULL, NULL, 0, - _(MSG_INFO), _(MSG_OK), _(MSG_WRONG_ARGS), NULL - ); - result = RETURN_ERROR; - } - } - else - { - PutStr(_(MSG_WB_ONLY)); - result = RETURN_FAIL; - } - return result; -} - -STRPTR AllocateNameFromLock(BPTR lock) -{ - ULONG length = 512; - STRPTR buffer = NULL; - BOOL done = FALSE; - - while (!done) - { - if (buffer != NULL) FreeVec(buffer); - - buffer = AllocVec(length, MEMF_ANY); - if (buffer != NULL) - { - if (NameFromLock(lock, buffer, length)) - { - done = TRUE; - break; - } - else - { - if (IoErr() == ERROR_LINE_TOO_LONG) - { - length += 512; - continue; - } - else - { - break; - } - } - } - else - { - SetIoErr(ERROR_NO_FREE_STORE); - break; - } - } - - if (done) - { - return buffer; - } - else - { - if (buffer != NULL) FreeVec(buffer); - return NULL; - } -} diff --git a/workbench/system/Wanderer/Tools/Delete/mmakefile.src b/workbench/system/Wanderer/Tools/Delete/mmakefile.src deleted file mode 100644 index bed931edad..0000000000 --- a/workbench/system/Wanderer/Tools/Delete/mmakefile.src +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright © 2003, The AROS Development Team. All rights reserved. -# $Id$ - -include $(SRCDIR)/config/aros.cfg - -FILES := main locale -EXEDIR := $(AROS_WANDERER)/Tools - -#MM- workbench-system-wanderer-tools : workbench-system-wanderer-tools-delete -#MM workbench-system-wanderer-tools-delete : \ -#MM workbench-system-wanderer-tools-delete-icons \ -#MM workbench-system-wanderer-tools-delete-catalogs - -%build_prog mmake=workbench-system-wanderer-tools-delete \ - progname=Delete targetdir=$(EXEDIR) \ - files=$(FILES) - -%common -- 2.11.4.GIT