summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/zsafe/main.cpp12
-rw-r--r--noncore/apps/zsafe/opie-zsafe.control2
-rw-r--r--noncore/apps/zsafe/pics/zsafe/copy.xpm124
-rw-r--r--noncore/apps/zsafe/pics/zsafe/cut.xpm89
-rw-r--r--noncore/apps/zsafe/pics/zsafe/edit.xpm108
-rw-r--r--noncore/apps/zsafe/pics/zsafe/editdelete.xpm95
-rw-r--r--noncore/apps/zsafe/pics/zsafe/find.xpm130
-rw-r--r--noncore/apps/zsafe/pics/zsafe/folder_open.xpm103
-rw-r--r--noncore/apps/zsafe/pics/zsafe/help_icon.xpm119
-rw-r--r--noncore/apps/zsafe/pics/zsafe/new.xpm115
-rw-r--r--noncore/apps/zsafe/pics/zsafe/pass.xpm20
-rw-r--r--noncore/apps/zsafe/pics/zsafe/paste.xpm159
-rw-r--r--noncore/apps/zsafe/pics/zsafe/quit_icon.xpm120
-rw-r--r--noncore/apps/zsafe/pics/zsafe/save.xpm117
-rw-r--r--noncore/apps/zsafe/pics/zsafe/trash.xpm127
-rw-r--r--noncore/apps/zsafe/pics/zsafe/zsafe.pngbin1427 -> 0 bytes
-rw-r--r--noncore/apps/zsafe/pics/zsafe/zsafe.xpm306
-rw-r--r--noncore/apps/zsafe/zsafe.cpp247
-rw-r--r--noncore/apps/zsafe/zsafe.h15
19 files changed, 80 insertions, 1928 deletions
diff --git a/noncore/apps/zsafe/main.cpp b/noncore/apps/zsafe/main.cpp
index 6dfd455..3d818f9 100644
--- a/noncore/apps/zsafe/main.cpp
+++ b/noncore/apps/zsafe/main.cpp
@@ -15,17 +15,5 @@
/* QT */
#include <opie2/oapplicationfactory.h>
-void suspend (int signum)
-{
- printf ("Suspend signal %d received\n", signum);
-}
-
-void resume (int signum)
-{
- printf ("Resume signal %d received\n", signum);
- zs->resume(signum);
-}
-
-
OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<ZSafe> )
diff --git a/noncore/apps/zsafe/opie-zsafe.control b/noncore/apps/zsafe/opie-zsafe.control
index 6288fac..a00818f 100644
--- a/noncore/apps/zsafe/opie-zsafe.control
+++ b/noncore/apps/zsafe/opie-zsafe.control
@@ -4,6 +4,6 @@ Priority: optional
Section: opie/applications
Version: $QPE_VERSION$EXTRAVERSION
Architecture: arm
-Depends: task-opie-minimal, libopieui2
+Depends: task-opie-minimal, libopiecore2, libopieui2
Maintainer: Carsten Schneider <zcarsten@gmx.net>
Description: This is a password manager program for Opie.
diff --git a/noncore/apps/zsafe/pics/zsafe/copy.xpm b/noncore/apps/zsafe/pics/zsafe/copy.xpm
deleted file mode 100644
index 03a143f..0000000
--- a/noncore/apps/zsafe/pics/zsafe/copy.xpm
+++ b/dev/null
@@ -1,124 +0,0 @@
-/* XPM */
-static char * copy_xpm[] = {
-"14 14 107 2",
-" c None",
-". c #C9D1DA",
-"+ c #CED5DD",
-"@ c #D0D8DF",
-"# c #CED6DE",
-"$ c #A6B3C3",
-"% c #8B9BB1",
-"& c #C4CDD7",
-"* c #E0E5EA",
-"= c #E3E7EC",
-"- c #D7DEE4",
-"; c #D7DDE4",
-"> c #ADBAC8",
-", c #9EADBD",
-"' c #8394AB",
-") c #E2E6EB",
-"! c #E6EAED",
-"~ c #DDE3E8",
-"{ c #C9D2DA",
-"] c #B9C4CF",
-"^ c #94A3B5",
-"/ c #A0A2B0",
-"( c #C0BBC6",
-"_ c #D8DEE4",
-": c #EAEEF0",
-"< c #DBE1E6",
-"[ c #D5DCE2",
-"} c #C0C9D4",
-"| c #AFBAC7",
-"1 c #9EA1AF",
-"2 c #BEBAC2",
-"3 c #D2CDD9",
-"4 c #B2AABA",
-"5 c #D0D7DF",
-"6 c #E8ECEF",
-"7 c #CED6DD",
-"8 c #C3CCD6",
-"9 c #C1C9D4",
-"0 c #C0CAD3",
-"a c #99A1AF",
-"b c #B9B6BD",
-"c c #C5BECB",
-"d c #B2A7BB",
-"e c #9C92A5",
-"f c #CDD4DD",
-"g c #E7ECEF",
-"h c #DCE2E7",
-"i c #CBD3DB",
-"j c #C6CFD9",
-"k c #C7D0D8",
-"l c #9FA8B7",
-"m c #B2B0B9",
-"n c #CBC5CF",
-"o c #CFC7D6",
-"p c #B5ABBE",
-"q c #DEE3E8",
-"r c #CDD5DD",
-"s c #CAD2DB",
-"t c #C7CFD9",
-"u c #D2D8E0",
-"v c #AFB8C5",
-"w c #A6A7B1",
-"x c #BEB9C4",
-"y c #D7D1DE",
-"z c #BBB2C4",
-"A c #DBE1E7",
-"B c #DAE0E6",
-"C c #D2D9E0",
-"D c #C5CCD7",
-"E c #A1ABBB",
-"F c #9C9FAD",
-"G c #B4AFBA",
-"H c #D5D0DC",
-"I c #BDB4C5",
-"J c #CBD3DC",
-"K c #D5DBE2",
-"L c #C6CED8",
-"M c #B3BBC8",
-"N c #A5ADBA",
-"O c #9EA5B4",
-"P c #A9ABB9",
-"Q c #B5B2BE",
-"R c #D9D4DF",
-"S c #BEB6C6",
-"T c #9CA9BC",
-"U c #B0B2C0",
-"V c #C9C9D0",
-"W c #C9C5CE",
-"X c #D1CCD6",
-"Y c #D5D0DB",
-"Z c #D8D2DE",
-"` c #E0DBE6",
-" . c #BFB6C7",
-".. c #DBD6E0",
-"+. c #F2F1F4",
-"@. c #E9E6ED",
-"#. c #E9E5ED",
-"$. c #E8E3EC",
-"%. c #E5E1EA",
-"&. c #E8E4ED",
-"*. c #C0B8C8",
-"=. c #BDB5C6",
-"-. c #C6BFCC",
-";. c #C3BBCA",
-">. c #C2BAC9",
-",. c #C1B8C8",
-"'. c #B0A6B9",
-" ",
-" . + @ # $ % ",
-"& * = - ; > , ' ",
-" ) ! - ~ { ] ^ / ( ",
-" _ : < [ . } | 1 2 3 4 ",
-" 5 6 < 7 8 9 0 a b c d e ",
-" f g h i . j k l m n o p ",
-" q q r s t u v w x y z ",
-" _ ! A B C D E F G H I ",
-" J K L M N O P Q ( R S ",
-" T U V W X Y Z ` . ",
-" ..+.@.#.$.%.&.*. ",
-" =.-.;.>.>.,.*.'. ",
-" "};
diff --git a/noncore/apps/zsafe/pics/zsafe/cut.xpm b/noncore/apps/zsafe/pics/zsafe/cut.xpm
deleted file mode 100644
index cecd174..0000000
--- a/noncore/apps/zsafe/pics/zsafe/cut.xpm
+++ b/dev/null
@@ -1,89 +0,0 @@
-/* XPM */
-static char * cut_xpm[] = {
-"14 14 72 1",
-" c None",
-". c #FDD900",
-"+ c #FBE601",
-"@ c #DD8000",
-"# c #FDDC00",
-"$ c #EDDB02",
-"% c #CFC305",
-"& c #EE9600",
-"* c #FEE600",
-"= c #C9A607",
-"- c #897905",
-"; c #EC9300",
-"> c #FCDA00",
-", c #DAB905",
-"' c #AC9A06",
-") c #917000",
-"! c #DFC503",
-"~ c #D5B606",
-"{ c #CF8B04",
-"] c #F1C201",
-"^ c #EADA03",
-"/ c #F39900",
-"( c #DCB502",
-"_ c #BBA105",
-": c #AD9705",
-"< c #E49301",
-"[ c #D9961E",
-"} c #FBB509",
-"| c #ED8B0A",
-"1 c #DDBB05",
-"2 c #C3B204",
-"3 c #E3D400",
-"4 c #F09E00",
-"5 c #7EA5CE",
-"6 c #C5CFDB",
-"7 c #7393B6",
-"8 c #D07C09",
-"9 c #F7AF00",
-"0 c #F2A300",
-"a c #B16200",
-"b c #C7E5F5",
-"c c #89C0E7",
-"d c #BCD8FA",
-"e c #4798E4",
-"f c #35201A",
-"g c #862F00",
-"h c #702A00",
-"i c #C1E0F3",
-"j c #A0D3F6",
-"k c #5CA0DD",
-"l c #BED8FA",
-"m c #4899E6",
-"n c #AFD3ED",
-"o c #A1D3F6",
-"p c #3E80BF",
-"q c #3578B9",
-"r c #BFD8F8",
-"s c #4E99E1",
-"t c #81B6E7",
-"u c #4385C4",
-"v c #4479A8",
-"w c #C1D9F8",
-"x c #4F99E1",
-"y c #367DC6",
-"z c #4B86BB",
-"A c #BED9F9",
-"B c #5E9CD6",
-"C c #5592C8",
-"D c #60A6EE",
-"E c #2F5475",
-"F c #1D7DD3",
-"G c #11579E",
-" .+@ ",
-" #$%& ",
-" *=-; ",
-" >,';)!~{ ",
-" ]^/(_:< ",
-" [}|1234 ",
-" 567890a ",
-" bcdefgh ",
-" ijklm ",
-" nopqrs ",
-" tu vwx ",
-" y zAB ",
-" CDE ",
-" FG "};
diff --git a/noncore/apps/zsafe/pics/zsafe/edit.xpm b/noncore/apps/zsafe/pics/zsafe/edit.xpm
deleted file mode 100644
index 50fba51..0000000
--- a/noncore/apps/zsafe/pics/zsafe/edit.xpm
+++ b/dev/null
@@ -1,108 +0,0 @@
-/* XPM */
-static char * edit_xpm[] = {
-"14 14 91 1",
-" c None",
-". c #D6DFED",
-"+ c #E5EAF4",
-"@ c #E3EAF4",
-"# c #DAE3F2",
-"$ c #C5CEDC",
-"% c #E4EAF4",
-"& c #FFFFFF",
-"* c #FBFEFF",
-"= c #EDF3FD",
-"- c #E5CE80",
-"; c #F8CF69",
-"> c #EBB785",
-", c #FEFFFF",
-"' c #F3F1ED",
-") c #F8D625",
-"! c #FEB006",
-"~ c #E99141",
-"{ c #F8E59F",
-"] c #FDCD09",
-"^ c #FC9E10",
-"/ c #C49277",
-"( c #9DADC9",
-"_ c #FEFAF3",
-": c #FCDB44",
-"< c #FEC219",
-"[ c #EF9234",
-"} c #C1BFCC",
-"| c #A7B6D0",
-"1 c #FDEDBB",
-"2 c #FDD82E",
-"3 c #FEB832",
-"4 c #DAA27B",
-"5 c #CCD8EB",
-"6 c #AFBED6",
-"7 c #FEFDFB",
-"8 c #FBE072",
-"9 c #FED342",
-"0 c #F6A845",
-"a c #D7D0D7",
-"b c #D6E0F1",
-"c c #B6C3D9",
-"d c #F7EED3",
-"e c #FDE35E",
-"f c #FECD5C",
-"g c #E4B184",
-"h c #E1E9F7",
-"i c #DCE4F3",
-"j c #B5C1D7",
-"k c #FCFEFF",
-"l c #F7DEAD",
-"m c #FEE483",
-"n c #F6C471",
-"o c #DECDC9",
-"p c #D7DEEC",
-"q c #CDD4E5",
-"r c #AAB5CB",
-"s c #FBFFFF",
-"t c #ECD3B7",
-"u c #F7DFC0",
-"v c #D6BAA9",
-"w c #D3D7E4",
-"x c #CFD6E5",
-"y c #CCD3E3",
-"z c #ABB6CC",
-"A c #FAFEFF",
-"B c #C8B7AF",
-"C c #C2AEA9",
-"D c #D7DCE6",
-"E c #D4DAE7",
-"F c #D0D7E6",
-"G c #D1D8E7",
-"H c #B5C0D6",
-"I c #F9FEFF",
-"J c #ECE9EB",
-"K c #EAF0F7",
-"L c #E6ECF6",
-"M c #E0E6F3",
-"N c #E2E9F6",
-"O c #E2EAF8",
-"P c #BECADF",
-"Q c #CDD7E6",
-"R c #D8DEE7",
-"S c #D4DDE7",
-"T c #D2DBE7",
-"U c #D0D9E7",
-"V c #CED7E6",
-"W c #CAD4E5",
-"X c #C6D1E3",
-"Y c #C4CFE2",
-"Z c #ACB9D1",
-".+++@#$ ",
-"%&&&*=-;> ",
-"%&&&,')!~ ",
-"%&&&&{]^/( ",
-"%&&&_:<[}| ",
-"%&&&123456 ",
-"%&&7890abc ",
-"%&&defghij ",
-"%&klmnopqr ",
-"%&stuvwxyz ",
-"%&ABCDEFGH ",
-"%,IJKLMNOP ",
-"QRSTUVWXYZ ",
-" "};
diff --git a/noncore/apps/zsafe/pics/zsafe/editdelete.xpm b/noncore/apps/zsafe/pics/zsafe/editdelete.xpm
deleted file mode 100644
index 675b4eb..0000000
--- a/noncore/apps/zsafe/pics/zsafe/editdelete.xpm
+++ b/dev/null
@@ -1,95 +0,0 @@
-/* XPM */
-static char * editdelete_xpm[] = {
-"14 14 78 1",
-" c None",
-". c #000000",
-"+ c #201313",
-"@ c #764747",
-"# c #795353",
-"$ c #150D0D",
-"% c #261818",
-"& c #8B5F5F",
-"* c #E08383",
-"= c #7E3F3F",
-"- c #946C6C",
-"; c #E79696",
-"> c #824141",
-", c #764848",
-"' c #D37171",
-") c #CF6767",
-"! c #783C3C",
-"~ c #020101",
-"{ c #040303",
-"] c #E89B9B",
-"^ c #CA6969",
-"/ c #944A4A",
-"( c #412121",
-"_ c #7F3F3F",
-": c #CF6868",
-"< c #CD6666",
-"[ c #D46C6C",
-"} c #683838",
-"| c #795757",
-"1 c #E99A9A",
-"2 c #8A4444",
-"3 c #3D1E1E",
-"4 c #763B3B",
-"5 c #D46D6D",
-"6 c #CD6969",
-"7 c #D77878",
-"8 c #DB8383",
-"9 c #C76868",
-"0 c #8F4646",
-"a c #3B1D1D",
-"b c #683737",
-"c c #D77777",
-"d c #D06C6C",
-"e c #CE6666",
-"f c #AB5555",
-"g c #361B1B",
-"h c #785858",
-"i c #DB8282",
-"j c #CE6767",
-"k c #C86363",
-"l c #B95C5C",
-"m c #572C2C",
-"n c #926B6B",
-"o c #EA9B9B",
-"p c #C86868",
-"q c #AB5454",
-"r c #C86464",
-"s c #C66363",
-"t c #723939",
-"u c #956C6C",
-"v c #C76363",
-"w c #D06868",
-"x c #CA6565",
-"y c #713939",
-"z c #785050",
-"A c #E79595",
-"B c #3C1E1E",
-"C c #743A3A",
-"D c #BD5E5E",
-"E c #A15151",
-"F c #4E2727",
-"G c #884444",
-"H c #964A4A",
-"I c #3D1F1F",
-"J c #713838",
-"K c #A25050",
-"L c #542929",
-"M c #4B2525",
-" . . ",
-" +@. .#$ ",
-" %&*=. .-;>. ",
-".,*')!~{-]^/(~",
-" ._:<[}|1^23. ",
-" .4567890a. ",
-" .bcdefg. ",
-" .hijklm. ",
-" .nopqlrst. ",
-" .u]^0gmvwxy. ",
-".zA^2B.~CxDEF.",
-" .GHI. .JKL. ",
-" .(. .M. ",
-" . . "};
diff --git a/noncore/apps/zsafe/pics/zsafe/find.xpm b/noncore/apps/zsafe/pics/zsafe/find.xpm
deleted file mode 100644
index 9d67a41..0000000
--- a/noncore/apps/zsafe/pics/zsafe/find.xpm
+++ b/dev/null
@@ -1,130 +0,0 @@
-/* XPM */
-static char * find_xpm[] = {
-"14 14 113 2",
-" c None",
-". c #A5B4CE",
-"+ c #A0BFDF",
-"@ c #A8CAE7",
-"# c #A6C7E3",
-"$ c #AABED6",
-"% c #6A849D",
-"& c #95AFD1",
-"* c #96CCF2",
-"= c #A8E0FA",
-"- c #ACE4FB",
-"; c #A9E1FB",
-"> c #ABE2FA",
-", c #AACADF",
-"' c #9DB3C5",
-") c #87A0B5",
-"! c #748CA3",
-"~ c #8E9EBD",
-"{ c #93CAF1",
-"] c #B5ECFC",
-"^ c #CCFAFE",
-"/ c #BFF1FD",
-"( c #B8EEFC",
-"_ c #B4EBFC",
-": c #BDF1FC",
-"< c #A8C1D2",
-"[ c #728FA8",
-"} c #53728F",
-"| c #6B849C",
-"1 c #88A7CC",
-"2 c #A4DDFA",
-"3 c #C8F8FE",
-"4 c #E8FFFF",
-"5 c #CDF5FE",
-"6 c #CCF9FE",
-"7 c #CAFCFE",
-"8 c #CCFDFF",
-"9 c #BCE2E9",
-"0 c #4F6E8B",
-"a c #3C5A79",
-"b c #76899F",
-"c c #8EB0D2",
-"d c #A8E1FB",
-"e c #B6EBFC",
-"f c #C8F3FD",
-"g c #CAF9FE",
-"h c #DBFFFF",
-"i c #DAFFFF",
-"j c #DCFFFF",
-"k c #CEEEF1",
-"l c #809FC4",
-"m c #A7E0FA",
-"n c #B1E8FB",
-"o c #C4F5FE",
-"p c #D7FEFF",
-"q c #DEFFFF",
-"r c #E7FFFF",
-"s c #EBFFFF",
-"t c #CCE0E7",
-"u c #6A7DA1",
-"v c #A4DBF6",
-"w c #ACE5FB",
-"x c #C0F5FD",
-"y c #D4FFFF",
-"z c #E2FFFF",
-"A c #F0FFFF",
-"B c #F7FEFF",
-"C c #AEB7C6",
-"D c #7C99BA",
-"E c #B1E6F7",
-"F c #C1F5FE",
-"G c #D2FFFF",
-"H c #E0FFFF",
-"I c #ECFEFE",
-"J c #C6CED8",
-"K c #898AA2",
-"L c #768CAA",
-"M c #A0C4D5",
-"N c #B7DCE4",
-"O c #B9D4DD",
-"P c #9EABBC",
-"Q c #8789A1",
-"R c #A7A5B2",
-"S c #C89F68",
-"T c #CF8A23",
-"U c #B48549",
-"V c #EFD28D",
-"W c #ECB34D",
-"X c #C37F21",
-"Y c #8197AC",
-"Z c #617C97",
-"` c #CCA153",
-" . c #F8E19E",
-".. c #EAB24E",
-"+. c #B77622",
-"@. c #A4B9CA",
-"#. c #7592AB",
-"$. c #7A93AA",
-"%. c #C29851",
-"&. c #F8DF9B",
-"*. c #E9B351",
-"=. c #A26825",
-"-. c #7592AA",
-";. c #51708D",
-">. c #405E7D",
-",. c #879DB1",
-"'. c #BB9353",
-"). c #E2C586",
-"!. c #977964",
-"~. c #7D94AA",
-"{. c #3D5C7A",
-"]. c #5D758E",
-"^. c #87644D",
-" . + @ # $ % ",
-" & * = - ; > , ' ) ! ",
-"~ { ] ^ / ( _ : < [ } | ",
-"1 2 3 4 5 6 7 8 9 0 a b ",
-"c d e f g h i j k ",
-"l m n o p q r s t ",
-"u v w x y z A B C ",
-" D E F G H I J K ",
-" L M N O P Q R S T ",
-" U V W X ",
-" Y Z ` ...+. ",
-"@.#.$. %.&.*.=.",
-"-.;.>.,. '.).!.",
-"~.{.]. ^. "};
diff --git a/noncore/apps/zsafe/pics/zsafe/folder_open.xpm b/noncore/apps/zsafe/pics/zsafe/folder_open.xpm
deleted file mode 100644
index 10b4d6c..0000000
--- a/noncore/apps/zsafe/pics/zsafe/folder_open.xpm
+++ b/dev/null
@@ -1,103 +0,0 @@
-/* XPM */
-static char * folder_open_xpm[] = {
-"14 14 86 1",
-" c None",
-". c #E9EAF3",
-"+ c #DCDFEE",
-"@ c #EDEEF5",
-"# c #ECECF4",
-"$ c #EAEAF3",
-"% c #879ED4",
-"& c #A2CAF6",
-"* c #F1F2F7",
-"= c #F2F2F8",
-"- c #E6E6F0",
-"; c #CFD4EA",
-"> c #5880D6",
-", c #D1E6FC",
-"' c #CFE4FF",
-") c #C3DAF8",
-"! c #EFF2F7",
-"~ c #F8F8FB",
-"{ c #F3F2F7",
-"] c #C2D1EB",
-"^ c #9FBCE8",
-"/ c #6FA2EA",
-"( c #5197F1",
-"_ c #0045C7",
-": c #C3DFFB",
-"< c #CAE1FF",
-"[ c #E0E6EE",
-"} c #FEFEFE",
-"| c #C1D5EE",
-"1 c #9BC6F7",
-"2 c #65A7F8",
-"3 c #5A9FF7",
-"4 c #3E7DE3",
-"5 c #002DB1",
-"6 c #ABD1F7",
-"7 c #C4DEFF",
-"8 c #BACDEA",
-"9 c #CEE3F6",
-"0 c #B2D4F3",
-"a c #9FCBF7",
-"b c #75B3FA",
-"c c #589CF6",
-"d c #3E78E2",
-"e c #0C39BE",
-"f c #002CAE",
-"g c #C1DCFF",
-"h c #9EC8F8",
-"i c #C5E4F8",
-"j c #AED9FD",
-"k c #87BEFA",
-"l c #5996F1",
-"m c #336FE3",
-"n c #2054CF",
-"o c #6279C5",
-"p c #5E71B0",
-"q c #AFD0FA",
-"r c #91C2F8",
-"s c #ABD4F8",
-"t c #98C9FA",
-"u c #6FA8F4",
-"v c #518BEB",
-"w c #7596DB",
-"x c #B2B6CF",
-"y c #B4B4C6",
-"z c #4C63A8",
-"A c #97BFF1",
-"B c #8BBEF7",
-"C c #94C9FE",
-"D c #7EB6F6",
-"E c #9DBDEE",
-"F c #CBD0E0",
-"G c #CBCBD8",
-"H c #9BA4C4",
-"I c #4A63A7",
-"J c #91C1F6",
-"K c #BBDCFC",
-"L c #E0E7F1",
-"M c #E3E2E9",
-"N c #B9C1D7",
-"O c #6178B6",
-"P c #9FC5F0",
-"Q c #FAFAFB",
-"R c #DAE0EC",
-"S c #7C99CC",
-"T c #82AFE6",
-"U c #9CBCE4",
-" ",
-" .+ ",
-" @#$% ",
-" & *=#-; > ",
-" ,')!~{]^/(_ ",
-" :<[}~|12345 ",
-" 67890abcdef ",
-" ghijklmnop ",
-" qrstuvwxyz ",
-" ABCDEFGHI ",
-" JKLMNO ",
-" PQRS ",
-" TU ",
-" "};
diff --git a/noncore/apps/zsafe/pics/zsafe/help_icon.xpm b/noncore/apps/zsafe/pics/zsafe/help_icon.xpm
deleted file mode 100644
index 58e6312..0000000
--- a/noncore/apps/zsafe/pics/zsafe/help_icon.xpm
+++ b/dev/null
@@ -1,119 +0,0 @@
-/* XPM */
-static char * help_icon_xpm[] = {
-"14 14 102 2",
-" c None",
-". c #FBC4AC",
-"+ c #FBBA9E",
-"@ c #FEA391",
-"# c #FDEAE2",
-"$ c #FDFAF9",
-"% c #FDFDFD",
-"& c #FFBEBC",
-"* c #FE8473",
-"= c #F64A1B",
-"- c #FF9687",
-"; c #FFB7B6",
-"> c #FDEFEF",
-", c #FCFCFC",
-"' c #FBFBFB",
-") c #FBF5F5",
-"! c #FDCDCD",
-"~ c #FECCCC",
-"{ c #FFB2AF",
-"] c #EE502D",
-"^ c #FE8F7C",
-"/ c #FFABAA",
-"( c #FEBFBF",
-"_ c #F9B6B5",
-": c #EEC9BA",
-"< c #DAA28A",
-"[ c #DD7D62",
-"} c #EF604C",
-"| c #F7A9A8",
-"1 c #FDBFBF",
-"2 c #FEA9A7",
-"3 c #D25735",
-"4 c #FF877F",
-"5 c #FEAAAA",
-"6 c #F79696",
-"7 c #E0533A",
-"8 c #E13A19",
-"9 c #F4BBBA",
-"0 c #FBF2F2",
-"a c #ECC4B8",
-"b c #FDDCDB",
-"c c #FAC5C5",
-"d c #ED7061",
-"e c #E5B9AA",
-"f c #F8F8F8",
-"g c #F9F4F2",
-"h c #FBC3AB",
-"i c #F6F6F6",
-"j c #D9A189",
-"k c #D7947E",
-"l c #F5F5F5",
-"m c #FAFAFA",
-"n c #AE6A5A",
-"o c #F4F4F4",
-"p c #DC9C82",
-"q c #D28470",
-"r c #F3F0F0",
-"s c #F9F9F9",
-"t c #A66558",
-"u c #FAF5F3",
-"v c #F4F3F3",
-"w c #E9917E",
-"x c #D02C21",
-"y c #EE6868",
-"z c #F68988",
-"A c #FBAF9E",
-"B c #F76D6D",
-"C c #E83838",
-"D c #DB2908",
-"E c #C11C08",
-"F c #E03837",
-"G c #F14040",
-"H c #DB2622",
-"I c #F6390B",
-"J c #FC2926",
-"K c #F12B2B",
-"L c #E22525",
-"M c #DA5748",
-"N c #D6937D",
-"O c #D2917D",
-"P c #D69C91",
-"Q c #DC2B2B",
-"R c #EA2B2B",
-"S c #F32726",
-"T c #900D05",
-"U c #ED2A06",
-"V c #F91614",
-"W c #F01616",
-"X c #EDAAAA",
-"Y c #ECECEC",
-"Z c #EFEEEE",
-"` c #EF7979",
-" . c #F11514",
-".. c #A80D06",
-"+. c #D22301",
-"@. c #EB1407",
-"#. c #F5E0DF",
-"$. c #F3EFEE",
-"%. c #D8A6A1",
-"&. c #900C04",
-"*. c #AE6959",
-"=. c #A66658",
-" . + ",
-" @ # $ % % & * = ",
-" - ; > , ' ) ! ~ { ] ",
-" ^ / ( _ : < [ } | 1 2 3 ",
-" 4 5 6 7 8 9 0 a ",
-" b c d e f g ",
-"h ' i j k l m n ",
-"+ m o p q r s t ",
-" u v w x y z ",
-" A B C D E F G H ",
-" I J K L M N O P Q R S T ",
-" U V W X Y Y Z ` ... ",
-" +.@.#.i i $.%.&. ",
-" *.=. "};
diff --git a/noncore/apps/zsafe/pics/zsafe/new.xpm b/noncore/apps/zsafe/pics/zsafe/new.xpm
deleted file mode 100644
index d5f7e25..0000000
--- a/noncore/apps/zsafe/pics/zsafe/new.xpm
+++ b/dev/null
@@ -1,115 +0,0 @@
-/* XPM */
-static char * new_xpm[] = {
-"14 14 98 2",
-" c None",
-". c #CBD5E6",
-"+ c #E1E6EF",
-"@ c #E0E6EF",
-"# c #DBE2EE",
-"$ c #D1DAE9",
-"% c #BCC7DC",
-"& c #D9E1EE",
-"* c #FFFFFF",
-"= c #FDFFFF",
-"- c #F2F7FE",
-"; c #E4EAF5",
-"> c #C8D2E4",
-", c #D3DCEB",
-"' c #FEFFFF",
-") c #F7FAFF",
-"! c #EAEEF8",
-"~ c #CDD6E7",
-"{ c #EAEEF5",
-"] c #CCD5E5",
-"^ c #F9FCFF",
-"/ c #EDF2FB",
-"( c #D9E1EF",
-"_ c #B6C2D6",
-": c #A3B2CB",
-"< c #94A5C0",
-"[ c #FAFDFF",
-"} c #F0F4FB",
-"| c #EAC99F",
-"1 c #C7C9D0",
-"2 c #B7C4DA",
-"3 c #A1B0CA",
-"4 c #F8FBFF",
-"5 c #ECE6E2",
-"6 c #F7C05D",
-"7 c #D2AE82",
-"8 c #C2CDE0",
-"9 c #AAB8CF",
-"0 c #E9EFF8",
-"a c #E8C9A0",
-"b c #FDEA5A",
-"c c #EABA5D",
-"d c #CACED8",
-"e c #B1BDD3",
-"f c #FFFAF3",
-"g c #FEE0AF",
-"h c #F5D39F",
-"i c #F1CA86",
-"j c #F7CB5D",
-"k c #FFFE4C",
-"l c #FAE75A",
-"m c #E1AE69",
-"n c #CBA57C",
-"o c #FFFAF2",
-"p c #F9C671",
-"q c #FEDF57",
-"r c #FFF24A",
-"s c #FFF643",
-"t c #FFF838",
-"u c #FFF83D",
-"v c #FEF247",
-"w c #FBE248",
-"x c #E19226",
-"y c #FEFEFF",
-"z c #F2F1F0",
-"A c #F0C47A",
-"B c #FBCF23",
-"C c #FFE324",
-"D c #FDD426",
-"E c #D6932B",
-"F c #FDFEFF",
-"G c #F1F5FD",
-"H c #ECF0F6",
-"I c #F3AB31",
-"J c #FFCC10",
-"K c #FFCB10",
-"L c #F6AD11",
-"M c #AC8C77",
-"N c #FAFCFE",
-"O c #EFF4FC",
-"P c #ECE9E9",
-"Q c #F6A113",
-"R c #FDA902",
-"S c #F2960B",
-"T c #F8A403",
-"U c #FAA402",
-"V c #B2805C",
-"W c #C3CEE0",
-"X c #D1D8E3",
-"Y c #CAD3E1",
-"Z c #D1BEB1",
-"` c #EE8208",
-" . c #C77D33",
-".. c #AF9A8F",
-"+. c #B98B69",
-"@. c #DA7614",
-"#. c #B96730",
-"$. c #983C0A",
-" . + + @ # $ % ",
-" & * * = - ; > , ",
-" & * * ' ) ! ~ { ] ",
-" & * * * ^ / ( _ : < ",
-" & * * * [ } | 1 2 3 ",
-" & * * ' 4 5 6 7 8 9 ",
-" & * ' [ 0 a b c d e ",
-" & f g h i j k l m n ",
-" & o p q r s t u v w x ",
-" & y z A B C C C D E ",
-" & F G H I J K J L M ",
-" & N O P Q R S T U V ",
-" W X Y Z ` ...+.@.#. ",
-" $. "};
diff --git a/noncore/apps/zsafe/pics/zsafe/pass.xpm b/noncore/apps/zsafe/pics/zsafe/pass.xpm
deleted file mode 100644
index 512c262..0000000
--- a/noncore/apps/zsafe/pics/zsafe/pass.xpm
+++ b/dev/null
@@ -1,20 +0,0 @@
-/* XPM */
-static char * pass_xpm[] = {
-"16 14 3 1",
-" c None",
-". c #000000",
-"+ c #FFFF00",
-" ",
-" ",
-" ..... . ",
-" .+++. .+. ",
-" .+++. .+++. ",
-" .+++. .+++++. ",
-" .+++..+++++++.",
-"...+++....+++...",
-".+++++++..+++. ",
-" .+++++. .+++. ",
-" .+++. .+++. ",
-" .+. .+++. ",
-" . .+++. ",
-" ..... "};
diff --git a/noncore/apps/zsafe/pics/zsafe/paste.xpm b/noncore/apps/zsafe/pics/zsafe/paste.xpm
deleted file mode 100644
index 546366f..0000000
--- a/noncore/apps/zsafe/pics/zsafe/paste.xpm
+++ b/dev/null
@@ -1,159 +0,0 @@
-/* XPM */
-static char * paste_xpm[] = {
-"14 14 142 2",
-" c None",
-". c #96A0AC",
-"+ c #9BB0D4",
-"@ c #5E7095",
-"# c #EFBE61",
-"$ c #F2D797",
-"% c #EDCF86",
-"& c #BAAF8F",
-"* c #A7B4C7",
-"= c #C9D6EB",
-"- c #C0D1EB",
-"; c #7E8289",
-"> c #C39033",
-", c #D58C1D",
-"' c #7E440B",
-") c #F0C470",
-"! c #F5F0D4",
-"~ c #DDD6B5",
-"{ c #8695A8",
-"] c #7285A7",
-"^ c #7786A1",
-"/ c #7A879C",
-"( c #69748E",
-"_ c #946339",
-": c #F67202",
-"< c #A44102",
-"[ c #F0C36E",
-"} c #F4EBCC",
-"| c #ECDCAF",
-"1 c #CDC29B",
-"2 c #C1B486",
-"3 c #C3A86B",
-"4 c #B8924A",
-"5 c #B17B31",
-"6 c #C66C1C",
-"7 c #DE6610",
-"8 c #944311",
-"9 c #F3E7C5",
-"0 c #F4E1AA",
-"a c #F7DF9B",
-"b c #F8D781",
-"c c #F7C353",
-"d c #CFA555",
-"e c #B8B7AC",
-"f c #C2B1AA",
-"g c #B7AAAC",
-"h c #9BA0B2",
-"i c #55739A",
-"j c #F3E3B5",
-"k c #F3D893",
-"l c #F3D485",
-"m c #F4C663",
-"n c #F3AA27",
-"o c #BC9656",
-"p c #C5E2FF",
-"q c #BFDAFB",
-"r c #ADCFFC",
-"s c #A9CCFD",
-"t c #6EABF2",
-"u c #2061A8",
-"v c #F0C36D",
-"w c #F3E2AD",
-"x c #F3D890",
-"y c #F3CC73",
-"z c #F4B63E",
-"A c #F3A216",
-"B c #BC9859",
-"C c #CDE6FE",
-"D c #C8DFFB",
-"E c #BAD6FB",
-"F c #A8CCFB",
-"G c #5DA3F8",
-"H c #218AF6",
-"I c #F3E0AF",
-"J c #F3D181",
-"K c #F3C056",
-"L c #F4B539",
-"M c #F2AB22",
-"N c #BC9C60",
-"O c #CCE5FE",
-"P c #C7DEFB",
-"Q c #B8D5FB",
-"R c #BBD5FD",
-"S c #ABCAFE",
-"T c #6CB0FF",
-"U c #F3DDA7",
-"V c #F3C564",
-"W c #F3BC4C",
-"X c #F4B63C",
-"Y c #F3AC26",
-"Z c #BC9E63",
-"` c #CAE4FF",
-" . c #BCD7FB",
-".. c #A4C8FB",
-"+. c #92BBFB",
-"@. c #8EB7FB",
-"#. c #72B3FE",
-"$. c #F3D99A",
-"%. c #F3BD50",
-"&. c #F3BA45",
-"*. c #F4B53B",
-"=. c #F3AC25",
-"-. c #BC9D63",
-";. c #CAE5FF",
-">. c #BBD6FB",
-",. c #A1C5FB",
-"'. c #99C1FB",
-"). c #9CC1FC",
-"!. c #7CB9FE",
-"~. c #F5C870",
-"{. c #F8DC9B",
-"]. c #F8C65C",
-"^. c #F8C252",
-"/. c #F8BE49",
-"(. c #F7B534",
-"_. c #BFA46C",
-":. c #CBE4FF",
-"<. c #B7D3FB",
-"[. c #A4C6FB",
-"}. c #A0C4FB",
-"|. c #A2C4FC",
-"1. c #80BDFF",
-"2. c #B08749",
-"3. c #B78958",
-"4. c #B48041",
-"5. c #B47D3A",
-"6. c #B47C36",
-"7. c #B3742B",
-"8. c #927D68",
-"9. c #C4E7FF",
-"0. c #C1DEFE",
-"a. c #B4D6FE",
-"b. c #AED3FE",
-"c. c #AED2FE",
-"d. c #7DC1FF",
-"e. c #303341",
-"f. c #3A7CBA",
-"g. c #3C78B3",
-"h. c #3975B3",
-"i. c #3774B3",
-"j. c #3674B3",
-"k. c #2570B9",
-" . + @ ",
-"# $ % & * = - ; > , ' ",
-") ! ~ { ] ^ / ( _ : < ",
-"[ } | 1 2 3 4 5 6 7 8 ",
-"[ 9 0 a b c d e f g h i ",
-"[ j k l m n o p q r s t u ",
-"v w x y z A B C D E F G H ",
-"v I J K L M N O P Q R S T ",
-"[ U V W X Y Z ` ...+.@.#. ",
-"v $.%.&.*.=.-.;.>.,.'.).!. ",
-"~.{.].^./.(._.:.<.[.}.|.1. ",
-"2.3.4.5.6.7.8.9.0.a.b.c.d. ",
-" e.f.g.h.i.j.k. ",
-" "};
diff --git a/noncore/apps/zsafe/pics/zsafe/quit_icon.xpm b/noncore/apps/zsafe/pics/zsafe/quit_icon.xpm
deleted file mode 100644
index 5e1b983..0000000
--- a/noncore/apps/zsafe/pics/zsafe/quit_icon.xpm
+++ b/dev/null
@@ -1,120 +0,0 @@
-/* XPM */
-static char * quit_icon_xpm[] = {
-"14 14 103 2",
-" c None",
-". c #C50000",
-"+ c #C20000",
-"@ c #CB0000",
-"# c #D51313",
-"$ c #E44A4A",
-"% c #ED6F6F",
-"& c #EC7070",
-"* c #E05050",
-"= c #C91A1A",
-"- c #B30000",
-"; c #CD0000",
-"> c #E53B3B",
-", c #FBB1B1",
-"' c #FFD6D6",
-") c #FFD9D9",
-"! c #FFD7D7",
-"~ c #FBBCBC",
-"{ c #DB4C4C",
-"] c #B00000",
-"^ c #CA0000",
-"/ c #E52F2F",
-"( c #FEADAD",
-"_ c #FFBDBD",
-": c #FFB3B3",
-"< c #FEB1B1",
-"[ c #D84343",
-"} c #A60000",
-"| c #D50808",
-"1 c #FB7272",
-"2 c #FFBCBC",
-"3 c #FFFFFF",
-"4 c #FFE7E7",
-"5 c #FF9B9B",
-"6 c #FFBBBB",
-"7 c #FA7171",
-"8 c #B90C0C",
-"9 c #E41B1B",
-"0 c #FF6464",
-"a c #FF7474",
-"b c #FFE0E0",
-"c c #FCC6C6",
-"d c #F63535",
-"e c #F30E0E",
-"f c #D00202",
-"g c #EC1C1C",
-"h c #FF3F3F",
-"i c #FF5252",
-"j c #FFD2D2",
-"k c #F31C1C",
-"l c #F20000",
-"m c #DC0000",
-"n c #9B0000",
-"o c #C10000",
-"p c #EC0A0A",
-"q c #FF1616",
-"r c #FF3131",
-"s c #FFCECE",
-"t c #F41C1C",
-"u c #F40000",
-"v c #970000",
-"w c #E10000",
-"x c #FE0101",
-"y c #FE1B1B",
-"z c #FFC5C5",
-"A c #FFC6C6",
-"B c #FDC4C4",
-"C c #FA1A1A",
-"D c #FA0000",
-"E c #CF0000",
-"F c #CB0202",
-"G c #FC0909",
-"H c #FF6D6D",
-"I c #FFC8C8",
-"J c #FF2525",
-"K c #FB0909",
-"L c #AE0202",
-"M c #B30101",
-"N c #DE1313",
-"O c #FF2828",
-"P c #FF7E7E",
-"Q c #FF3A3A",
-"R c #FF2323",
-"S c #FE2828",
-"T c #D01313",
-"U c #8E0101",
-"V c #B00404",
-"W c #DB2121",
-"X c #FC3B3B",
-"Y c #FF3D3D",
-"Z c #FB3B3B",
-"` c #D02121",
-" . c #930404",
-".. c #A50202",
-"+. c #BB1616",
-"@. c #D73131",
-"#. c #E63F3F",
-"$. c #E53F3F",
-"%. c #D33131",
-"&. c #AF1616",
-"*. c #8E0202",
-"=. c #9B0505",
-"-. c #970505",
-" . + ",
-" @ # $ % & * = - ",
-" ; > , ' ) ) ! ~ { ] ",
-" ^ / ( ' _ : : _ ' < [ } ",
-" | 1 2 3 4 5 5 4 3 6 7 8 ",
-" 9 0 a ) 3 b b 3 c d e f ",
-". g h h i j 3 3 c k l l m n ",
-"o p q q r s 3 3 c t u u m v ",
-" w x y z 3 A A 3 B C D E ",
-" F G H 3 I J J I 3 H K L ",
-" M N O P Q R R Q P S T U ",
-" V W X Y Y Y Y Z ` . ",
-" ..+.@.#.$.%.&.*. ",
-" =.-. "};
diff --git a/noncore/apps/zsafe/pics/zsafe/save.xpm b/noncore/apps/zsafe/pics/zsafe/save.xpm
deleted file mode 100644
index f7e5cf3..0000000
--- a/noncore/apps/zsafe/pics/zsafe/save.xpm
+++ b/dev/null
@@ -1,117 +0,0 @@
-/* XPM */
-static char * save_xpm[] = {
-"14 14 100 2",
-" c None",
-". c #788F79",
-"+ c #36B43E",
-"@ c #52A357",
-"# c #5E5E5E",
-"$ c #949494",
-"% c #9D9E9D",
-"& c #E9F8E9",
-"* c #E6F4E6",
-"= c #E6F5E6",
-"- c #E5F4E5",
-"; c #E4F3E4",
-"> c #C3CBC3",
-", c #595959",
-"' c #8F8F8F",
-") c #999999",
-"! c #FAFAFA",
-"~ c #F6F6F6",
-"{ c #F5F5F5",
-"] c #F4F4F4",
-"^ c #F2F2F2",
-"/ c #EEEEEE",
-"( c #EAEAEA",
-"_ c #BEBEBE",
-": c #575757",
-"< c #8E8E8E",
-"[ c #9B9B9B",
-"} c #F8F8F8",
-"| c #F3F3F3",
-"1 c #F1F1F1",
-"2 c #EBEBEB",
-"3 c #E5E5E5",
-"4 c #DFDFDF",
-"5 c #DBDBDB",
-"6 c #AEAEAE",
-"7 c #4D4D4D",
-"8 c #9D9D9D",
-"9 c #E7E7E7",
-"0 c #E1E1E1",
-"a c #DADADA",
-"b c #D4D4D4",
-"c c #CECECE",
-"d c #C9C9C9",
-"e c #484848",
-"f c #909090",
-"g c #8C8C8C",
-"h c #C4C4C4",
-"i c #BDBDBD",
-"j c #B5B5B5",
-"k c #AFAFAF",
-"l c #AAAAAA",
-"m c #A4A4A4",
-"n c #9C9C9C",
-"o c #797979",
-"p c #444444",
-"q c #7D7D7D",
-"r c #767676",
-"s c #6E6E6E",
-"t c #656565",
-"u c #5D5D5D",
-"v c #5C5C5C",
-"w c #585858",
-"x c #515151",
-"y c #3B3B3B",
-"z c #888888",
-"A c #737373",
-"B c #C2C2C2",
-"C c #C7C7C7",
-"D c #ABABAB",
-"E c #606060",
-"F c #353535",
-"G c #828282",
-"H c #6D6D6D",
-"I c #D9D9D9",
-"J c #A9A9A9",
-"K c #BFBFBF",
-"L c #B3B3B3",
-"M c #424242",
-"N c #313131",
-"O c #7E7E7E",
-"P c #6B6B6B",
-"Q c #747474",
-"R c #979797",
-"S c #A0A0A0",
-"T c #9E9E9E",
-"U c #A2A2A2",
-"V c #404040",
-"W c #2F2F2F",
-"X c #636363",
-"Y c #B0B0B0",
-"Z c #929292",
-"` c #B8B8B8",
-" . c #3C3C3C",
-".. c #252525",
-"+. c #191919",
-"@. c #1F1F1F",
-"#. c #292929",
-"$. c #282828",
-"%. c #1A1A1A",
-"&. c #101010",
-" ",
-" . + + + + + + + @ # ",
-" $ % & * = = = - ; > , ",
-" ' ) ! ~ { ] ^ / ( _ : ",
-" < [ } | 1 2 3 4 5 6 7 ",
-" ' 8 ^ 9 0 a b c d [ e ",
-" f g h i j k l m n o p ",
-" ' q r s t u v v w x y ",
-" z A h B C C B D E e F ",
-" G H I o J K L 8 : M N ",
-" O P C Q R S T U : V W ",
-" X Y Z < [ J ` , ... ",
-" +.@.#.#.#.#.$.%.&. ",
-" "};
diff --git a/noncore/apps/zsafe/pics/zsafe/trash.xpm b/noncore/apps/zsafe/pics/zsafe/trash.xpm
deleted file mode 100644
index df85d02..0000000
--- a/noncore/apps/zsafe/pics/zsafe/trash.xpm
+++ b/dev/null
@@ -1,127 +0,0 @@
-/* XPM */
-static char * trash_xpm[] = {
-"14 14 110 2",
-" c None",
-". c #BEBEBD",
-"+ c #B2B2B2",
-"@ c #A5A5A6",
-"# c #979797",
-"$ c #8B8B8C",
-"% c #DCDDDD",
-"& c #D4D4D4",
-"* c #C2C3C3",
-"= c #B4B5B4",
-"- c #A5A5A5",
-"; c #969698",
-"> c #8C8C8D",
-", c #7D7E7E",
-"' c #717071",
-") c #C8C8C8",
-"! c #EAEAEA",
-"~ c #C3C4C3",
-"{ c #B9BABA",
-"] c #AFAFB0",
-"^ c #A2A2A2",
-"/ c #959495",
-"( c #8C8C8C",
-"_ c #7B7C7C",
-": c #676767",
-"< c #535353",
-"[ c #ABACAC",
-"} c #DBDBDA",
-"| c #D1D1D1",
-"1 c #C5C5C5",
-"2 c #B5B5B5",
-"3 c #A3A3A4",
-"4 c #9A999A",
-"5 c #848484",
-"6 c #626262",
-"7 c #474747",
-"8 c #A4A5A5",
-"9 c #C2C2C2",
-"0 c #C6C6C5",
-"a c #BBBBBB",
-"b c #AEAEAE",
-"c c #9D9D9D",
-"d c #939393",
-"e c #7B7B7C",
-"f c #595959",
-"g c #494949",
-"h c #A1A1A1",
-"i c #B6B6B6",
-"j c #A9AAA9",
-"k c #9B9B9B",
-"l c #7F7F7F",
-"m c #686868",
-"n c #4E4E4E",
-"o c #4B4A4B",
-"p c #BEBEBE",
-"q c #EDEDED",
-"r c #CFCFCF",
-"s c #ABABAB",
-"t c #A0A0A0",
-"u c #939394",
-"v c #888889",
-"w c #696969",
-"x c #4D4D4D",
-"y c #484848",
-"z c #C0C0C0",
-"A c #ECECEC",
-"B c #CDCDCD",
-"C c #AAAAAA",
-"D c #9F9F9F",
-"E c #929393",
-"F c #8A8A8A",
-"G c #7A7A7A",
-"H c #5E5E5E",
-"I c #BCBCBC",
-"J c #E0E0E0",
-"K c #C6C6C6",
-"L c #A9A9A9",
-"M c #9E9E9D",
-"N c #909190",
-"O c #868687",
-"P c #757575",
-"Q c #5C5C5C",
-"R c #B9B9B9",
-"S c #A8A8A8",
-"T c #8F8F8E",
-"U c #707070",
-"V c #575757",
-"W c #C9C9C9",
-"X c #BABABA",
-"Y c #A7A8A8",
-"Z c #9C9C9C",
-"` c #8E8D8C",
-" . c #828281",
-".. c #6C6C6C",
-"+. c #525252",
-"@. c #3C3C3C",
-"#. c #BBBABB",
-"$. c #A7A7A7",
-"%. c #9A9A9A",
-"&. c #8B8B8B",
-"*. c #7E7E7E",
-"=. c #4C4C4C",
-"-. c #302F2F",
-";. c #ACACAC",
-">. c #A3A3A3",
-",. c #979798",
-"'. c #868686",
-"). c #777777",
-"!. c #3E3E3E",
-"~. c #212121",
-" . + @ # $ ",
-" % & * = - ; > , ' ",
-") ! ~ { ] ^ / ( _ : < ",
-"[ } | | 1 2 3 4 5 6 7 ",
-"8 9 1 0 a b c d e f g ",
-" h i 2 j k $ l m n o ",
-" p q r s t u v w x y ",
-" z A B C D E F G H g ",
-" I J K L M N O P Q n ",
-" R & z S c T 5 U V g ",
-" i W X Y Z ` ...+.@. ",
-" + #.+ $.%.&.*.: =.-. ",
-" ;.$.L >.,.'.).f !.~. ",
-" "};
diff --git a/noncore/apps/zsafe/pics/zsafe/zsafe.png b/noncore/apps/zsafe/pics/zsafe/zsafe.png
deleted file mode 100644
index 34f5170..0000000
--- a/noncore/apps/zsafe/pics/zsafe/zsafe.png
+++ b/dev/null
Binary files differ
diff --git a/noncore/apps/zsafe/pics/zsafe/zsafe.xpm b/noncore/apps/zsafe/pics/zsafe/zsafe.xpm
deleted file mode 100644
index 75a2551..0000000
--- a/noncore/apps/zsafe/pics/zsafe/zsafe.xpm
+++ b/dev/null
@@ -1,306 +0,0 @@
-/* XPM */
-static char * zsafe_xpm[] = {
-"32 32 271 2",
-" c None",
-". c #8E8EA9",
-"+ c #8F8FA9",
-"@ c #8C8CA7",
-"# c #8B8BA6",
-"$ c #AEAEC1",
-"% c #CACAD6",
-"& c #DEDEE5",
-"* c #DBDBE2",
-"= c #CDCDD7",
-"- c #A9A9BC",
-"; c #8D8DA8",
-"> c #83839C",
-", c #8686A2",
-"' c #A4A4B9",
-") c #EEEEF1",
-"! c #FEFEFE",
-"~ c #FFFFFF",
-"{ c #FDFDFD",
-"] c #E4E4E8",
-"^ c #9F9FB4",
-"/ c #82829D",
-"( c #80809D",
-"_ c #B0B0C2",
-": c #FBFBFB",
-"< c #F3F3F3",
-"[ c #EDEDED",
-"} c #EBEBEB",
-"| c #ECECEC",
-"1 c #F6F6F6",
-"2 c #FAFAFA",
-"3 c #A9A9BB",
-"4 c #7B7B97",
-"5 c #7A7A98",
-"6 c #9B9BB1",
-"7 c #F2F2F2",
-"8 c #D3D3D9",
-"9 c #B6B6C4",
-"0 c #AEAEBD",
-"a c #CACAD0",
-"b c #D9D9D9",
-"c c #E5E5E5",
-"d c #FCFCFC",
-"e c #9898AC",
-"f c #6B6B85",
-"g c #777795",
-"h c #ECECEF",
-"i c #F0F0F0",
-"j c #E3E3E5",
-"k c #9292A9",
-"l c #757592",
-"m c #666680",
-"n c #676780",
-"o c #72728F",
-"p c #8888A1",
-"q c #C0C0C5",
-"r c #DADADA",
-"s c #E5E5E6",
-"t c #7B7B98",
-"u c #6F6F8E",
-"v c #A3A3B6",
-"w c #F4F4F4",
-"x c #E9E9E9",
-"y c #8787A0",
-"z c #60607B",
-"A c #5E5E78",
-"B c #767693",
-"C c #C3C3C5",
-"D c #E2E2E2",
-"E c #9696AA",
-"F c #6A6A89",
-"G c #E8E8E8",
-"H c #B7B7C3",
-"I c #656583",
-"J c #636380",
-"K c #8C8CA0",
-"L c #C4C4C4",
-"M c #BFBFC9",
-"N c #626280",
-"O c #666686",
-"P c #EFEFF1",
-"Q c #F5F5F5",
-"R c #E3E3E3",
-"S c #85859D",
-"T c #46465C",
-"U c #6B6B8A",
-"V c #BCBCBC",
-"W c #EEEEEE",
-"X c #DFDFE1",
-"Y c #606082",
-"Z c #F8F8F8",
-"` c #DEDEDE",
-" . c #7F7F98",
-".. c #B7B7B7",
-"+. c #5B5B7D",
-"@. c #EAEAEA",
-"#. c #7A7A93",
-"$. c #B6B6B6",
-"%. c #D7D7D7",
-"&. c #E7E7E7",
-"*. c #555578",
-"=. c #D5D5D5",
-"-. c #75758F",
-";. c #D3D3D3",
-">. c #E1E1E1",
-",. c #545477",
-"'. c #E4E4E4",
-"). c #DDDDDD",
-"!. c #D0D0D0",
-"~. c #73738D",
-"{. c #CFCFCF",
-"]. c #DBDBDB",
-"^. c #D7922A",
-"/. c #977451",
-"(. c #DCB985",
-"_. c #D9B682",
-":. c #D3B07C",
-"<. c #A6835B",
-"[. c #A67632",
-"}. c #C08326",
-"|. c #CF8C29",
-"1. c #D18E29",
-"2. c #C8A571",
-"3. c #D3B07B",
-"4. c #D8B581",
-"5. c #B17823",
-"6. c #CB892A",
-"7. c #D08C2A",
-"8. c #DDAA48",
-"9. c #EAC766",
-"0. c #BD7F27",
-"a. c #C1802A",
-"b. c #E5C76C",
-"c. c #FFFD99",
-"d. c #FFFC75",
-"e. c #FFFC6F",
-"f. c #E5C760",
-"g. c #B27529",
-"h. c #ECD880",
-"i. c #FFF242",
-"j. c #FFF23C",
-"k. c #FFE635",
-"l. c #ECA41E",
-"m. c #A46928",
-"n. c #E8CF65",
-"o. c #FFEA37",
-"p. c #FFB81C",
-"q. c #E89A1A",
-"r. c #955E28",
-"s. c #E5C863",
-"t. c #FFE233",
-"u. c #FFDF31",
-"v. c #FFB51B",
-"w. c #FFA814",
-"x. c #E59418",
-"y. c #875327",
-"z. c #E1C161",
-"A. c #FFDA2E",
-"B. c #FFD42B",
-"C. c #FFB319",
-"D. c #FFA713",
-"E. c #FFA412",
-"F. c #E18E16",
-"G. c #784726",
-"H. c #DDBA5E",
-"I. c #FFD12A",
-"J. c #FFC523",
-"K. c #FFAB15",
-"L. c #FFA613",
-"M. c #FFA311",
-"N. c #FFA110",
-"O. c #DD8814",
-"P. c #744426",
-"Q. c #DCB65C",
-"R. c #FFC926",
-"S. c #FFC624",
-"T. c #FFB41A",
-"U. c #FFA512",
-"V. c #FFA211",
-"W. c #FF9F0F",
-"X. c #FF9D0E",
-"Y. c #DC8513",
-"Z. c #DCB15A",
-"`. c #FFC121",
-" + c #FFBF20",
-".+ c #FFBE1F",
-"++ c #FFBD1F",
-"@+ c #FFB91D",
-"#+ c #FFA914",
-"$+ c #FF9E0E",
-"%+ c #FF9C0D",
-"&+ c #FF990C",
-"*+ c #DC8211",
-"=+ c #DCAD58",
-"-+ c #FFB81D",
-";+ c #FFBC1F",
-">+ c #FFBC1E",
-",+ c #FFBA1D",
-"'+ c #FFB71C",
-")+ c #FFB51A",
-"!+ c #FFB219",
-"~+ c #FFAF18",
-"{+ c #FFAD16",
-"]+ c #FFAA15",
-"^+ c #FFA813",
-"/+ c #FFA00F",
-"(+ c #FF9A0C",
-"_+ c #FF980B",
-":+ c #FF950A",
-"<+ c #DC7F10",
-"[+ c #DCA955",
-"}+ c #FFB118",
-"|+ c #FFBB1E",
-"1+ c #FFB61B",
-"2+ c #FFB31A",
-"3+ c #FFAE17",
-"4+ c #FFAC16",
-"5+ c #FFA411",
-"6+ c #FF970A",
-"7+ c #FF9409",
-"8+ c #FF9108",
-"9+ c #DC7C0E",
-"0+ c #DCA553",
-"a+ c #FFB018",
-"b+ c #FF9B0D",
-"c+ c #FF9308",
-"d+ c #FF9007",
-"e+ c #FF8D06",
-"f+ c #DC790D",
-"g+ c #DCAC57",
-"h+ c #FFB119",
-"i+ c #FF970B",
-"j+ c #FF9208",
-"k+ c #FF8F06",
-"l+ c #FF8C05",
-"m+ c #FF8A04",
-"n+ c #DC760B",
-"o+ c #C29759",
-"p+ c #FFBE31",
-"q+ c #FF960A",
-"r+ c #FF9309",
-"s+ c #FF8E06",
-"t+ c #FF8B04",
-"u+ c #FF8803",
-"v+ c #FF8602",
-"w+ c #C26912",
-"x+ c #714225",
-"y+ c #9F713F",
-"z+ c #BA7E27",
-"A+ c #BA7A1F",
-"B+ c #BA781E",
-"C+ c #BA771D",
-"D+ c #BA761D",
-"E+ c #BA741C",
-"F+ c #BA731B",
-"G+ c #BA721B",
-"H+ c #BA711A",
-"I+ c #BA6F19",
-"J+ c #BA6E19",
-"K+ c #BA6D18",
-"L+ c #BA6B17",
-"M+ c #BA6A16",
-"N+ c #BA6916",
-"O+ c #BA6715",
-"P+ c #BA6614",
-"Q+ c #BA6514",
-"R+ c #9F581A",
-"S+ c #6A3E23",
-"T+ c #653B21",
-"U+ c #6B3F23",
-"V+ c #5B351E",
-" ",
-" . + . @ ",
-" # @ $ % & * = - ; > ",
-" , ' ) ! ~ ~ ~ ~ { ] ^ / ",
-" ( _ ! ~ : < [ } | 1 ~ 2 3 4 ",
-" 5 6 ! ! 7 } 8 9 0 a b c d d e f ",
-" g h ! i j k l m n o p q r ~ s t ",
-" u v ~ w x y z A B C D ~ E z ",
-" F = ! G H I J K L ~ M N ",
-" O P Q R S T U V W X O ",
-" Y Z i ` . Y ..r | Y ",
-" +.7 @.r #. +.$.%.&.+. ",
-" *.} R =.-. *.$.;.>.*. ",
-" ,.'.).!.~. ,.$.{.].,. ",
-" ^./.(._.:.<.[.}.|.1.1.1.1.1./.2.3.4./.5. ",
-" 6.7.8.9.9.9.9.9.9.9.9.9.9.9.9.9.9.9.9.9.9.8.7.0. ",
-" a.b.c.d.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.f.a. ",
-" g.h.i.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.k.l.g. ",
-" m.n.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.k.p.q.m. ",
-" r.s.t.t.t.t.t.t.t.t.t.t.t.t.t.t.t.t.t.u.v.w.x.r. ",
-" y.z.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.A.B.C.D.E.F.y. ",
-" G.H.I.I.I.I.I.I.I.I.I.I.I.I.I.I.I.J.K.L.M.N.O.G. ",
-" P.Q.R.R.R.R.R.R.R.R.R.R.R.R.R.S.T.D.U.V.W.X.Y.P. ",
-" P.Z.`.`.`.`.`.`. + +.+++++@+T.#+L.M.N.$+%+&+*+P. ",
-" P.=+-+-+;+++>+,+'+)+!+~+{+]+^+U.V./+X.(+_+:+<+P. ",
-" P.[+}+++.+|+@+1+2+}+3+4+#+L.5+N.W.%+&+6+7+8+9+P. ",
-" P.0+|+++,+p.v.!+a+{+]+w.U.M./+X.b+_+:+c+d+e+f+P. ",
-" P.g+>+@+1+T.h+3+4+#+D.E.N.W.%+&+i+7+j+k+l+m+n+P. ",
-" P.o+p+v.!+a+{+K.w.U.M./+$+b+_+q+r+d+s+t+u+v+w+P. ",
-" x+P.y+z+A+B+C+D+E+F+G+H+I+J+K+L+M+N+O+P+Q+R+P.S+ ",
-" T+U+S+S+S+S+S+S+S+S+S+S+S+S+S+S+S+S+S+S+S+V+ ",
-" "};
diff --git a/noncore/apps/zsafe/zsafe.cpp b/noncore/apps/zsafe/zsafe.cpp
index 2b182f9..f70f863 100644
--- a/noncore/apps/zsafe/zsafe.cpp
+++ b/noncore/apps/zsafe/zsafe.cpp
@@ -19,6 +19,7 @@
#include "zlistview.h"
#include "shadedlistitem.h"
+#include <opie2/oresource.h>
#include <opie2/ofiledialog.h>
#include <opie2/odebug.h>
using namespace Opie::Core;
@@ -38,12 +39,12 @@ using namespace Opie::Ui;
#include <qpopupmenu.h>
#include <qfile.h>
-#include <qpe/fileselector.h>
+#include <qpe/applnk.h>
#include <qpe/global.h>
#include <qpe/qpeapplication.h>
-#include <qpe/resource.h>
#include <qpe/config.h>
+#include <qaction.h>
#include <qtimer.h>
#include <qlayout.h>
#include <qmessagebox.h>
@@ -51,7 +52,6 @@ using namespace Opie::Ui;
#include <qtextstream.h>
#include <qheader.h>
#include <qlistview.h>
-#include <qtoolbutton.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
@@ -64,34 +64,18 @@ using namespace Opie::Ui;
#include <qtextbrowser.h>
#include <qlabel.h>
#include <qcombobox.h>
+#include <qtoolbar.h>
#include "krc2.h"
#include "wait.h"
-int DeskW, DeskH;
-QApplication *appl;
-ZSafe *zs;
-
const QString APP_KEY = "";
// include xmp images
-#include "pics/zsafe/copy.xpm"
-#include "pics/zsafe/cut.xpm"
-#include "pics/zsafe/edit.xpm"
-#include "pics/zsafe/editdelete.xpm"
-#include "pics/zsafe/find.xpm"
-#include "pics/zsafe/folder_open.xpm"
-#include "pics/zsafe/help_icon.xpm"
-#include "pics/zsafe/new.xpm"
-#include "pics/zsafe/paste.xpm"
-#include "pics/zsafe/quit_icon.xpm"
-#include "pics/zsafe/save.xpm"
-#include "pics/zsafe/trash.xpm"
#include "pics/zsafe/expand.xpm"
#include "pics/zsafe/export.xpm"
#include "pics/zsafe/import.xpm"
-#include "pics/zsafe/zsafe.xpm"
static const char* const bank_cards_data[] = {
"14 14 16 1",
@@ -336,14 +320,9 @@ static const char* const general_data[] = {
* TRUE to construct a modal dialog.
*/
ZSafe::ZSafe( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl),
- Edit(0l), Delete(0l), Find(0l), New(0l), ListView(0l)
+ : QMainWindow( parent, name, fl),
+ ListView(0l)
{
- zs = this;
- appl = qApp;
- DeskW = qApp->desktop()->width();
- DeskH = qApp->desktop()->height();
-
IsCut = false;
IsCopy = false;
modified = false;
@@ -362,18 +341,16 @@ ZSafe::ZSafe( QWidget* parent, const char* name, WFlags fl )
expandTree = conf->readNumEntry(APP_KEY+"expandTree", 0);
conf->setGroup ("zsafe");
- QPixmap copy_img((const char**) copy_xpm);
- QPixmap cut_img((const char**) cut_xpm);
- QPixmap edit_img((const char**) edit_xpm);
- QPixmap editdelete_img((const char**) editdelete_xpm);
- QPixmap find_img((const char**) find_xpm);
- QPixmap folder_open_img((const char**) folder_open_xpm);
- QPixmap help_icon_img((const char**) help_icon_xpm);
- QPixmap new_img((const char**) new_xpm);
- QPixmap paste_img((const char**) paste_xpm);
- QPixmap quit_icon_img((const char**) quit_icon_xpm);
- QPixmap save_img((const char**) save_xpm);
- QPixmap trash_img((const char**) trash_xpm);
+ QPixmap new_img = Opie::Core::OResource::loadPixmap( "new", Opie::Core::OResource::SmallIcon );
+ QPixmap edit_img = Opie::Core::OResource::loadPixmap( "edit", Opie::Core::OResource::SmallIcon );
+ QPixmap trash_img = Opie::Core::OResource::loadPixmap( "trash", Opie::Core::OResource::SmallIcon );
+ QPixmap copy_img = Opie::Core::OResource::loadPixmap( "copy", Opie::Core::OResource::SmallIcon );
+ QPixmap cut_img = Opie::Core::OResource::loadPixmap( "cut", Opie::Core::OResource::SmallIcon );
+ QPixmap editdelete_img = Opie::Core::OResource::loadPixmap( "editdelete", Opie::Core::OResource::SmallIcon );
+ QPixmap folder_open_img = Opie::Core::OResource::loadPixmap( "folder_open", Opie::Core::OResource::SmallIcon );
+ QPixmap help_icon_img = Opie::Core::OResource::loadPixmap( "help_icon", Opie::Core::OResource::SmallIcon );
+ QPixmap paste_img = Opie::Core::OResource::loadPixmap( "paste", Opie::Core::OResource::SmallIcon );
+ QPixmap save_img = Opie::Core::OResource::loadPixmap( "save", Opie::Core::OResource::SmallIcon );
QPixmap expand_img((const char**) expand_xpm);
QPixmap export_img((const char**) export_xpm);
QPixmap import_img((const char**) import_xpm);
@@ -382,7 +359,7 @@ ZSafe::ZSafe( QWidget* parent, const char* name, WFlags fl )
QPixmap passwords( ( const char** ) passwords_data );
QPixmap software( ( const char** ) software_data );
QPixmap general( ( const char** ) general_data );
- QPixmap image0( ( const char** ) zsafe_xpm );
+ QPixmap image0 = Opie::Core::OResource::loadPixmap( "zsafe/zsafe", Opie::Core::OResource::SmallIcon );
if ( !name )
setName( "ZSafe" );
@@ -448,90 +425,75 @@ ZSafe::ZSafe( QWidget* parent, const char* name, WFlags fl )
categoryDialog = NULL;
infoForm->setIcon( image0);
+ // Create menu and tool bar dock
+ setToolBarsMovable( false );
+ QToolBar *dock = new QToolBar( this );
+ dock->setHorizontalStretchable( true );
+
// add a menu bar
- QMenuBar *menu = new QMenuBar( this );
+ QMenuBar *menu = new QMenuBar( dock );
+ menu->setMargin( 0 );
+
+ // Add a toolbar
+ QToolBar *toolbar = new QToolBar( this );
// add file menu
// QPopupMenu *file = new QPopupMenu( this );
file = new QPopupMenu( this );
- file->insertItem( new_img, tr("&New document"), this, SLOT(newDocument()) );
- file->insertItem( folder_open_img, tr("&Open document"), this, SLOT(loadDocument()) );
- file->insertItem( save_img, tr("&Save document as .."), this, SLOT(saveDocumentAs()) );
+ // File menu
+ file->insertItem( new_img, tr("New document"), this, SLOT(newDocument()) );
+ file->insertItem( folder_open_img, tr("Open document"), this, SLOT(loadDocument()) );
+ file->insertItem( save_img, tr("Save document as"), this, SLOT(saveDocumentAs()) );
file->insertSeparator();
- file->insertItem( save_img, tr("&Save document"), this, SLOT(saveDocumentWithoutPwd()) );
- file->insertItem( save_img, tr("S&ave document with new Password"), this,
+ file->insertItem( save_img, tr("Save document"), this, SLOT(saveDocumentWithoutPwd()) );
+ file->insertItem( save_img, tr("Save document with new Password"), this,
SLOT(saveDocumentWithPwd()) );
file->insertSeparator();
- file->insertItem( export_img, tr("&Export text file"), this, SLOT(writeAllEntries()) );
- file->insertItem( import_img, tr("&Import text file"), this, SLOT(readAllEntries()) );
- file->insertItem( trash_img, tr("&Remove text file"), this, SLOT(removeAsciiFile()) );
+ file->insertItem( export_img, tr("Export text file"), this, SLOT(writeAllEntries()) );
+ file->insertItem( import_img, tr("Import text file"), this, SLOT(readAllEntries()) );
+ file->insertItem( trash_img, tr("Remove text file"), this, SLOT(removeAsciiFile()) );
file->insertSeparator();
- file->insertItem( expand_img, tr("&Open entries expanded"), this,
+ file->insertItem( expand_img, tr("Open entries expanded"), this,
SLOT(setExpandFlag()), 0, 'o');
file->setItemChecked('o', expandTree);
- file->insertSeparator();
- file->insertItem( quit_icon_img, tr("E&xit"), this, SLOT(quitMe()) );
- menu->insertItem( tr("&File"), file );
+ menu->insertItem( tr("File"), file );
+ // Category menu
QPopupMenu *cat = new QPopupMenu( this );
- cat->insertItem( new_img, tr("&New"), this, SLOT(addCategory()) );
- cat->insertItem( edit_img, tr("&Edit"), this, SLOT(editCategory()) );
- cat->insertItem( trash_img, tr("&Delete"), this, SLOT(delCategory()) );
- menu->insertItem( tr("&Category"), cat );
+ cat->insertItem( new_img, tr("New"), this, SLOT(addCategory()) );
+ cat->insertItem( edit_img, tr("Edit"), this, SLOT(editCategory()) );
+ cat->insertItem( trash_img, tr("Delete"), this, SLOT(delCategory()) );
+ menu->insertItem( tr("Category"), cat );
+ // Entry menu
QPopupMenu *it = new QPopupMenu( this );
- it->insertItem( cut_img, tr("&Cut"), this, SLOT(cutItem()) );
- it->insertItem( copy_img, tr("C&opy"), this, SLOT(copyItem()) );
- it->insertItem( paste_img, tr("&Paste"), this, SLOT(pasteItem()) );
+ it->insertItem( cut_img, tr("Cut"), this, SLOT(cutItem()) );
+ it->insertItem( copy_img, tr("Copy"), this, SLOT(copyItem()) );
+ it->insertItem( paste_img, tr("Paste"), this, SLOT(pasteItem()) );
it->insertSeparator();
- it->insertItem( new_img, tr("&New"), this, SLOT(newPwd()) );
- it->insertItem( edit_img, tr("&Edit"), this, SLOT(editPwd()) );
- it->insertItem( trash_img, tr("&Delete"), this, SLOT(deletePwd()) );
- it->insertItem( find_img, tr("&Search"), this, SLOT(findPwd()) );
- menu->insertItem( tr("&Entry"), it );
-
- QPopupMenu *help = new QPopupMenu( this );
- help->insertItem( help_icon_img, tr("&About"), this, SLOT(about()) );
- menu->insertItem( tr("&Help"), help );
-
- // toolbar icons
-
- New = new QToolButton( menu, "New" );
- New->setGeometry( QRect( DeskW-84, 2, 20, 20 ) );
- New->setMouseTracking( TRUE );
- New->setText( "" );
- New->setPixmap( new_img );
- QToolTip::add( New, tr( "New entry" ) );
-
- Edit = new QToolButton( menu, "Edit" );
- Edit->setGeometry( QRect( DeskW-64, 2, 20, 20 ) );
- Edit->setText( "" );
- Edit->setPixmap( edit_img );
- QToolTip::add( Edit, tr( "Edit category or entry" ) );
-
- Delete = new QToolButton( menu, "Delete" );
- Delete->setGeometry( QRect( DeskW-44, 2, 20, 20 ) );
- Delete->setText( "" );
- Delete->setPixmap( trash_img );
- QToolTip::add( Delete, tr( "Delete category or entry" ) );
-
- Find = new QToolButton( menu, "Find" );
- Find->setGeometry( QRect( DeskW-24, 2, 20, 20 ) );
- Find->setText( "" );
- Find->setPixmap( find_img );
- QToolTip::add( Find, tr( "Find entry" ) );
-
-/*
- QBoxLayout * h = new QHBoxLayout( this );
- h->addWidget (menu);
- h->addWidget (New);
- h->addWidget (Edit);
- h->addWidget (Delete);
- h->addWidget (Find);
-*/
+ QAction *a = new QAction( tr( "New" ), new_img, QString::null, 0, this, 0 );
+ connect( a, SIGNAL(activated()), this, SLOT(newPwd()) );
+ a->addTo( it );
+ a->addTo( toolbar );
+ a = new QAction( tr( "Edit" ), edit_img, QString::null, 0, this, 0 );
+ connect( a, SIGNAL(activated()), this, SLOT(editPwd()) );
+ a->addTo( it );
+ a->addTo( toolbar );
+ a = new QAction( tr( "Delete" ), trash_img, QString::null, 0, this, 0 );
+ connect( a, SIGNAL(activated()), this, SLOT(deletePwd()) );
+ a->addTo( it );
+ a->addTo( toolbar );
+ a = new QAction( tr( "Search" ), Opie::Core::OResource::loadPixmap( "find", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
+ connect( a, SIGNAL(activated()), this, SLOT(findPwd()) );
+ a->addTo( it );
+ a->addTo( toolbar );
+ menu->insertItem( tr("Entry"), it );
+
+ // Add main view
ListView = new ZListView( this, "ListView" );
ListView->addColumn( tr( "Name" ) );
ListView->addColumn( tr( "Field 2" ) );
@@ -542,10 +504,7 @@ ZSafe::ZSafe( QWidget* parent, const char* name, WFlags fl )
ListView->setAllColumnsShowFocus(TRUE);
ListView->setResizePolicy(QScrollView::AutoOneFit);
- // ListView->setGeometry( QRect( 0, 22,
- // this->width(), this->height() - 30 ) );
- // ListView->setMaximumSize( QSize( 440, 290 ) );
- // ListView->setVScrollBarMode( QListView::Auto );
+ setCentralWidget( ListView );
QBoxLayout * l = new QVBoxLayout( this );
l->addWidget (menu);
@@ -557,11 +516,6 @@ ZSafe::ZSafe( QWidget* parent, const char* name, WFlags fl )
raiseFlag = true;
connect( &raiseTimer, SIGNAL(timeout()), SLOT( slotRaiseTimer() ) );
- // signals and slots connections for QTollButton
- connect( New, SIGNAL( clicked() ), this, SLOT( newPwd() ) );
- connect( Edit, SIGNAL( clicked() ), this, SLOT( editPwd() ) );
- connect( Delete, SIGNAL( clicked() ), this, SLOT( deletePwd() ) );
- connect( Find, SIGNAL( clicked() ), this, SLOT( findPwd() ) );
// signals and slots connections for QListView
connect( ListView, SIGNAL( selectionChanged(QListViewItem*) ),
this, SLOT( listViewSelected(QListViewItem*) ) );
@@ -2110,8 +2064,8 @@ void ZSafe::getDocPassword(QString title)
newPwdDialog = dialog;
newPwdDialogResult = false;
- QPixmap image0( ( const char** ) zsafe_xpm );
- dialog->setIcon( image0);
+// QPixmap image0 = Opie::Core::OResource::loadPixmap( "zsafe/zsafe", Opie::Core::OResource::SmallIcon );
+// dialog->setIcon( image0);
connect( dialog->PasswordField, SIGNAL( returnPressed() ),
this, SLOT( setPasswordDialogDone() ) );
@@ -2407,10 +2361,7 @@ void ZSafe::addCategory()
QString fileName = fi->fileName();
if(fileName.right(4) == ".png"){
fileName = fileName.mid(0,fileName.length()-4);
- QPixmap imageOfFile(Resource::loadPixmap(fileName));
- QImage foo = imageOfFile.convertToImage();
- foo = foo.smoothScale(16,16);
- imageOfFile.convertFromImage(foo);
+ QPixmap imageOfFile(Opie::Core::OResource::loadPixmap(fileName,Opie::Core::OResource::SmallIcon));
dialog->IconField->insertItem(imageOfFile,fileName);
}
++it;
@@ -2761,10 +2712,7 @@ void ZSafe::editCategory()
if(fileName.right(4) == ".png")
{
fileName = fileName.mid(0,fileName.length()-4);
- QPixmap imageOfFile(Resource::loadPixmap(fileName));
- QImage foo = imageOfFile.convertToImage();
- foo = foo.smoothScale(16,16);
- imageOfFile.convertFromImage(foo);
+ QPixmap imageOfFile(Opie::Core::OResource::loadPixmap(fileName,Opie::Core::OResource::SmallIcon));
dialog->IconField->insertItem(imageOfFile,fileName);
if(fileName+".png"==icon)
dialog->IconField->setCurrentItem(i+1);
@@ -3113,33 +3061,6 @@ void ZSafe::saveDocumentWithPwd()
saveDocument(filename, TRUE);
}
-void ZSafe::about()
-{
- QString info;
- info = tr("<html><body><div align=""center"">"
- "<b>"
- "Zaurus Password Manager<br>"
- "ZSafe version 2.1.2<br>"
- "</b>"
- "by Carsten Schneider<br>"
- "zcarsten@gmx.net<br>"
- "http://z-soft.z-portal.info/zsafe"
- "<br>"
- "Translations by Robert Ernst<br>"
- "robert.ernst@linux-solutions.at<br>"
- "<br></div>"
- "</body></html>");
-
- // QMessageBox::information( this, tr("ZSafe"), info, tr("&OK"), 0);
-
- QMessageBox mb( this, tr("ZSafe"));
- mb.setText (info);
- mb.setButtonText (QMessageBox::Ok, tr ("&OK"));
- QPixmap zsafe_img((const char**) zsafe_xpm);
- mb.setIconPixmap (zsafe_img);
- mb.exec();
-}
-
void ZSafe::setExpandFlag()
{
expandTree = !expandTree;
@@ -3163,22 +3084,6 @@ void ZSafe::paintEvent( QPaintEvent * )
}
}
-void ZSafe::resizeEvent ( QResizeEvent * )
-{
- // owarn << "resizeEvent" << oendl;
- DeskW = appl->desktop()->width();
- DeskH = appl->desktop()->height();
-
- if (New)
- New->setGeometry ( QRect( DeskW-84, 2, 20, 20 ) );
- if (Edit)
- Edit->setGeometry ( QRect( DeskW-64, 2, 20, 20 ) );
- if (Delete)
- Delete->setGeometry( QRect( DeskW-44, 2, 20, 20 ) );
- if (Find)
- Find->setGeometry ( QRect( DeskW-24, 2, 20, 20 ) );
-}
-
void ZSafe::slotRaiseTimer()
{
if (infoForm->isVisible())
@@ -3268,10 +3173,10 @@ void ZSafe::ListPressed(int mouse, QListViewItem *item, const QPoint&, int colum
{
QClipboard *cb = QApplication::clipboard();
- QIconSet copy_img((const char**) copy_xpm);
- QIconSet edit_img((const char**) edit_xpm);
- QPixmap folder_open_img((const char**) folder_open_xpm);
- QPixmap editdelete_img((const char**) editdelete_xpm);
+ QIconSet copy_img = Opie::Core::OResource::loadPixmap( "copy", Opie::Core::OResource::SmallIcon );
+ QIconSet edit_img = Opie::Core::OResource::loadPixmap( "edit", Opie::Core::OResource::SmallIcon );
+ QPixmap folder_open_img = Opie::Core::OResource::loadPixmap( "folder_open", Opie::Core::OResource::SmallIcon );
+ QPixmap editdelete_img = Opie::Core::OResource::loadPixmap( "editdelete", Opie::Core::OResource::SmallIcon );
QPopupMenu *m = new QPopupMenu(this);
int copyItem = m->insertItem( copy_img, tr( "Copy to Clipboard" ));
diff --git a/noncore/apps/zsafe/zsafe.h b/noncore/apps/zsafe/zsafe.h
index 3d812f8..0be579c 100644
--- a/noncore/apps/zsafe/zsafe.h
+++ b/noncore/apps/zsafe/zsafe.h
@@ -20,6 +20,8 @@
#include "categorylist.h"
#include "shadedlistitem.h"
+#include <qmainwindow.h>
+
#include <qvariant.h>
#include <qdialog.h>
#include <qwidgetstack.h>
@@ -46,13 +48,12 @@ class QPixmap;
// number of fields for one entry
#define FIELD_SIZE 7
-class ZSafe : public QWidget
+class ZSafe : public QMainWindow
{
Q_OBJECT
protected:
void paintEvent( QPaintEvent * e );
- void resizeEvent ( QResizeEvent * );
bool raiseFlag;
QTimer raiseTimer;
@@ -65,10 +66,6 @@ public:
static const QColor *evenRowColor;
static const QColor *oddRowColor;
- QToolButton* Edit;
- QToolButton* Delete;
- QToolButton* Find;
- QToolButton* New;
ZListView* ListView;
QString cfgFile;
@@ -181,7 +178,6 @@ public slots:
virtual void saveDocumentAs();
virtual void saveDocumentWithoutPwd();
virtual void saveDocumentWithPwd();
- virtual void about();
virtual void setExpandFlag();
virtual void categoryFieldActivated( const QString& str);
@@ -196,9 +192,4 @@ private slots:
};
-
-extern ZSafe *zs;
-extern QApplication *appl;
-extern int DeskW;
-extern int DeskH;
#endif // ZSAFE_H